diff --git a/.editorconfig b/.editorconfig index 7296159d3..f9f3187b7 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,22 +1,31 @@ -# EditorConfig helps developers define and maintain consistent -# coding styles between different editors and IDEs. -# editorconfig.org - -root = true - [*] +charset=utf-8 +end_of_line=lf +insert_final_newline=true +indent_style=space +indent_size=2 -# We recommend you to keep these unchanged. -charset = utf-8 -end_of_line = lf -indent_size = 4 -indent_style = tab -insert_final_newline = true -trim_trailing_whitespace = true +[*.svg] +indent_style=tab +tab_width=3 -[package.json] -indent_style = space -indent_size = 2 +[*.html] +indent_style=space +indent_size=3 [*.md] -trim_trailing_whitespace = false \ No newline at end of file +indent_style=tab +tab_width=3 + +[*.js.map] +indent_style=tab +indent_size=2 + +[{*.css,*.scss}] +indent_style=space +indent_size=2 +insert_final_newline = true + +[{*.yml,*.yaml}] +indent_style=space +indent_size=2 diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 000000000..b52928bb5 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,10 @@ +{ + "rules": { + "semi": ["error", "always"], + "quotes": ["error", "single"], + "no-var": ["error"] + }, + "parserOptions": { + "ecmaVersion": 6 + } +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index c4e3f31b4..03ea074b7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,18 +1,10 @@ -.idea/ -_site/ -/node_modules/ -/.sass-cache/ -/.jekyll-metadata -/.asset-cache/ -.DS_Store -/_test/ -src/assets/css/*.css -src/assets/plugins/**/plugin.css -src/assets/plugins/**/plugin.min.css -generated-site -deploy-site -/commits.sh -/assets/css/ -/vendor/ +node_modules/ /package-lock.json -Gemfile.lock \ No newline at end of file +.idea/ +/db.json +.jekyll-metadata +tmp/ +/yarn.lock +.DS_Store +/Gemfile.lock +/dist/ diff --git a/.stylelintrc b/.stylelintrc new file mode 100644 index 000000000..87eb443df --- /dev/null +++ b/.stylelintrc @@ -0,0 +1,8 @@ +{ + "extends": [ + "stylelint-config-twbs-bootstrap/scss" + ], + "rules": { + "selector-no-qualifying-type": null + } +} \ No newline at end of file diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md deleted file mode 100644 index 6849e55c2..000000000 --- a/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,46 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at codecalm@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] - -[homepage]: http://contributor-covenant.org -[version]: http://contributor-covenant.org/version/1/4/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index 3d601add4..000000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,92 +0,0 @@ -# Contributing - -When contributing to this repository, please first discuss the change you wish to make via issue, -email, or any other method with the owners of this repository before making a change. - -Please note we have a code of conduct, please follow it in all your interactions with the project. - -## Pull Request Process - -1. Ensure any install or build dependencies are removed before the end of the layer when doing a - build. -2. Update the README.md with details of changes to the interface, this includes new environment - variables, exposed ports, useful file locations and container parameters. -3. Increase the version numbers in any examples files and the README.md to the new version that this - Pull Request would represent. The versioning scheme we use is [SemVer](http://semver.org/). -4. You may merge the Pull Request in once you have the sign-off of two other developers, or if you - do not have permission to do that, you may request the second reviewer to merge it for you. - -## Code of Conduct - -### Our Pledge - -In the interest of fostering an open and welcoming environment, we as -contributors and maintainers pledge to making participation in our project and -our community a harassment-free experience for everyone, regardless of age, body -size, disability, ethnicity, gender identity and expression, level of experience, -nationality, personal appearance, race, religion, or sexual identity and -orientation. - -### Our Standards - -Examples of behavior that contributes to creating a positive environment -include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or -advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic - address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a - professional setting - -### Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable -behavior and are expected to take appropriate and fair corrective action in -response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or -reject comments, commits, code, wiki edits, issues, and other contributions -that are not aligned to this Code of Conduct, or to ban temporarily or -permanently any contributor for other behaviors that they deem inappropriate, -threatening, offensive, or harmful. - -### Scope - -This Code of Conduct applies both within project spaces and in public spaces -when an individual is representing the project or its community. Examples of -representing a project or community include using an official project e-mail -address, posting via an official social media account, or acting as an appointed -representative at an online or offline event. Representation of a project may be -further defined and clarified by project maintainers. - -### Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported by contacting the project team. All complaints will be reviewed and -investigated and will result in a response that is deemed necessary and appropriate -to the circumstances. The project team is obligated to maintain confidentiality -with regard to the reporter of an incident. Further details of specific -enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good -faith may face temporary or permanent repercussions as determined by other -members of the project's leadership. - -### Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, -available at [http://contributor-covenant.org/version/1/4][version] - -[homepage]: http://contributor-covenant.org -[version]: http://contributor-covenant.org/version/1/4/ \ No newline at end of file diff --git a/Gemfile b/Gemfile index a5671666a..148d74901 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,12 @@ -source 'https://rubygems.org' do - gem 'jekyll-tidy' - gem 'jekyll-redirect-from' - gem 'jekyll-toc' - gem 'jekyll-random' -end +# frozen_string_literal: true + +source "https://rubygems.org" + +git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } + +# gem "rails" + +gem "jekyll-random", "~> 0.0.3" +gem "jekyll-tidy" +gem "jekyll-timeago" +gem 'jekyll-redirect-from' diff --git a/Gemfile.lock b/Gemfile.lock index 7d81d6a39..035dd92ea 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,22 +1,22 @@ GEM remote: https://rubygems.org/ specs: - addressable (2.5.2) + addressable (2.6.0) public_suffix (>= 2.0.2, < 4.0) colorator (1.1.0) - concurrent-ruby (1.0.5) + concurrent-ruby (1.1.4) em-websocket (0.5.1) eventmachine (>= 0.12.9) http_parser.rb (~> 0.6.0) eventmachine (1.2.7) - ffi (1.9.25) + ffi (1.10.0) forwardable-extended (2.6.0) htmlbeautifier (1.3.1) htmlcompressor (0.4.0) http_parser.rb (0.6.0) i18n (0.9.5) concurrent-ruby (~> 1.0) - jekyll (3.8.3) + jekyll (3.8.5) addressable (~> 2.4) colorator (~> 1.0) em-websocket (~> 0.5) @@ -39,30 +39,28 @@ GEM htmlbeautifier htmlcompressor jekyll - jekyll-toc (0.6.0) - nokogiri (~> 1.7) - jekyll-watch (2.0.0) + jekyll-timeago (0.12.3) + mini_i18n (>= 0.8.0) + jekyll-watch (2.1.2) listen (~> 3.0) kramdown (1.17.0) - liquid (4.0.0) + liquid (4.0.1) listen (3.1.5) rb-fsevent (~> 0.9, >= 0.9.4) rb-inotify (~> 0.9, >= 0.9.7) ruby_dep (~> 1.2) mercenary (0.3.6) - mini_portile2 (2.3.0) - nokogiri (1.8.4) - mini_portile2 (~> 2.3.0) - pathutil (0.16.1) + mini_i18n (0.8.0) + pathutil (0.16.2) forwardable-extended (~> 2.6) - public_suffix (3.0.2) + public_suffix (3.0.3) rb-fsevent (0.10.3) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rouge (3.1.1) + rb-inotify (0.10.0) + ffi (~> 1.0) + rouge (3.3.0) ruby_dep (1.5.0) safe_yaml (1.0.4) - sass (3.5.7) + sass (3.7.3) sass-listen (~> 4.0.0) sass-listen (4.0.0) rb-fsevent (~> 0.9, >= 0.9.4) @@ -72,11 +70,10 @@ PLATFORMS ruby DEPENDENCIES - jekyll-random! - jekyll-redirect-from! - jekyll-tidy! - jekyll-toc! - public_suffix (= 3.0.2)! + jekyll-random (~> 0.0.3) + jekyll-redirect-from + jekyll-tidy + jekyll-timeago BUNDLED WITH - 1.16.3 + 2.0.1 diff --git a/LICENSE b/LICENSE deleted file mode 100644 index d18ecb69a..000000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2018 Paweł Kuna - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md index 7de9af35c..0cecd8033 100644 --- a/README.md +++ b/README.md @@ -1,118 +1,6 @@ -# Tabler -[![Backers on Open Collective](https://opencollective.com/tabler/backers/badge.svg)](#backers) - [![Sponsors on Open Collective](https://opencollective.com/tabler/sponsors/badge.svg)](#sponsors) -Automated by Buddy - -Premium and Open Source dashboard template with responsive and high quality UI. - -View Demo | Download ZIP | Join us on Slack - -

- -![Tabler preview](https://tabler.github.io/assets/images/dashboard.png) - -## Features - - - - -We created this admin panel for everyone who wants to create any templates based on our pre-made components. Our mission is to deliver a user-friendly, clear and easy administration panel, that can be used by both, simple websites and sophisticated systems. The only requirement is a basic HTML and CSS knowledge—as a reward, you'll be able to manage and visualize different types of data in the easiest possible way! - -* **Responsive:** With support for mobile, tablet and desktop it doesn’t matter what device you’re using. Tabler is responsive in all major browsers. -* **Cross Browser:** Our theme works perfectly with: Latest Chrome, Firefox+, Latest Safari, Opera, Internet Explorer 10+ and mobile browsers. We work hard to continuously support them. -* **HTML5 & CSS3:** We only use modern web technologies like HTML5 and CSS3. Our theme includes some subtle CSS3 animations so you will get anyone’s attention. -* **Clean Code:** We strictly followed Bootstrap’s guidelines to make your integration as easy as possible. All code is handwritten and W3C valid. -* **Demo pages**: Tabler features over 20 individual pages featuring various components, giving you the freedom to choose and combine. All components can take variation in color and styling that can easily be modified using Sass. The sky is the limit! - -## Status - - Total Downloads License Latest Release devDependency Status [![buddy pipeline](https://app.buddy.works/codecalm/tabler/pipelines/pipeline/131922/badge.svg?token=1ab151000ecf8700a90dd4d0d7184945d439d2642679b257092d16e76a45dce4 "buddy pipeline")](https://app.buddy.works/codecalm/tabler/pipelines/pipeline/131922) - - -## Documentation - -For full documentation, visit [tabler.github.io/tabler/docs](https://tabler.github.io/tabler/docs/index.html). - -## Getting Started - -### [Download ZIP](https://github.com/tabler/tabler/archive/dev.zip) or Git Clone +# UI Kit ``` -git clone https://github.com/tabler/tabler.git +yarn start ``` -### Setup environment - -To use our build system and run documentation locally, you will need a copy of Tabler's source files and Node. Follow the steps below: - -1. [Download and install Node.js](https://nodejs.org/download/), which is used to manage our dependencies. -2. Navigate to the root `/tabler` directory and run `npm install` to install local dependencies listed in `package.json`. -3. [Install Ruby](https://www.ruby-lang.org/en/documentation/installation/), install [Bundler](https://bundler.io/) with `gem install bundler`, and finally run `bundle install`. This will install all Ruby dependencies, such as Jekyll and plugins. - - **Windows users:** Read [this guide](https://jekyllrb.com/docs/windows/) to get Jekyll up and running without problems. - -When completed, you will be able to run the various commands provided in the command line. - -### Build Tabler - -1. From the root `/tabler` directory, run `npm run serve` in the command line. -2. Open [http://localhost:4000](http://localhost:4000) in your browser, and voilà. -3. Any change in `/src` directory will build application and refresh the page. - -**Warning!** all changes made in `_site/` folder would be overwritten on application build. - -## Development preview - -All changes made on `dev` branch are avaliable on http://tabler.codecalm.net/dev/. Every change in the code automatically compiles the source code. - -## Bugs and feature requests - -Have a bug or a feature request? [Please open a new issue](https://github.com/tabler/tabler/issues/new). - -## Browser Support - -![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png) ---- | --- | --- | --- | --- | --- -Latest ✔ | Latest ✔ | Latest ✔ | 11+ ✔ | 9.1+ ✔ | Latest ✔ - -## Creators - -**Paweł Kuna** - -- -- -- - -## Contributors - -This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. - - - -## Backers - -Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/tabler#backer)] - - - - -## Sponsors - -Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/tabler#sponsor)] - - - - - - - - - - - - - - -## Copyright and license - -Code and documentation copyright 2018 the [Tabler Authors](https://github.com/tabler/tabler/graphs/contributors) and [codecalm.net](https://codecalm.net). Code released under the [MIT License](https://github.com/tabler/tabler/blob/master/LICENSE). diff --git a/_config.yml b/_config.yml index b474d4ae8..1877b9afb 100644 --- a/_config.yml +++ b/_config.yml @@ -1,46 +1,22 @@ -title: Tabler -description: tabler.github.io - a responsive, flat and full featured admin template +source: pages +destination: tmp -source: src -host: 0.0.0.0 +title: UI Kit +description: Premium and Open Source dashboard template with responsive and high quality UI. + +debug: true plugins: - - jekyll-tidy - - jekyll-toc - - jekyll-random - -exclude: - - regenerate-images.sh - - .editorconfig - - buddy.yml - - package.json - - gulpfile.js - - start.sh - - Gemfile - - Gemfile.lock - - .git - - .idea - - .gitignore - - node_modules/ - - .DS_Store - - .sass-cache/ - - .asset-cache/ - - push-to-repo.sh - - commits.sh - - assets/scss/* - - assets/plugins/**/*.scss - -collections: - docs: - output: true - -defaults: - - scope: - path: "" - type: docs - values: - layout: docs +- jekyll-random +- jekyll-tidy +- jekyll-timeago +- jekyll-redirect-from +keep_files: +- css/ui-kit.css +- css/dark.css +- css/rtl.css +#- js/ui-kit.js markdown: kramdown highlighter: rouge @@ -52,26 +28,28 @@ kramdown: span: line_numbers: false -toc: - min_level: 2 - max_level: 3 - jekyll_tidy: compress_html: false ignore_env: development -base_color: '#467fcf' -github_url: https://github.com/tabler/tabler -author: - name: codecalm.net - url: https://codecalm.net +collections: + docs: + output: true + changelog: + output: false -docs-menu: - - title: Getting started - pages: [index] - - title: Components - pages: [alerts, avatars, buttons, colors, cards, charts, form-components, tags, typography] +defaults: + - + scope: + type: pages + values: + layout: default + - + scope: + type: docs + values: + layout: docs colors: blue: @@ -113,118 +91,16 @@ colors: gray: hex: '#868e96' name: Gray - gray-dark: - hex: '#343a40' - name: Dark gray -theme-colors: - primary: - hex: '#467fcf' - name: Primary - secondary: - hex: '#868e96' - name: Secondary - success: - hex: '#38c172' - name: Success - info: - hex: '#17a2b8' - name: Info - warning: - hex: '#f8b700' - name: Warning - danger: - hex: '#f90049' - name: Danger -# light: -# hex: '#f8f9fa' -# name: Light -# dark: -# hex: '#343a40' -# name: Dark +variants: [primary, secondary, success, info, warning, danger, dark] +socials: [facebook, twitter, google, youtube, vimeo, dribbble, github, instagram, pinterest, vk, rss, flickr, bitbucket] -color_variants: - - name: 'Darkest' - suffix: -darkest - - name: 'Darker' - suffix: -darker - - name: 'Dark' - suffix: -dark - - name: 'Default' - suffix: '' - - name: 'Light' - suffix: -light - - name: 'Lighter' - suffix: -lighter - - name: 'Lightest' - suffix: -lightest +months_short: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] +months_long: ['January', 'Febuary', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] -social-buttons: - facebook: - icon: fa fa-facebook - name: Facebook - twitter: - icon: fa fa-twitter - name: Twitter - google: - icon: fa fa-google - name: Google - youtube: - icon: fa fa-youtube - name: Youtube - vimeo: - icon: fa fa-vimeo - name: Vimeo - dribbble: - icon: fa fa-dribbble - name: Dribble - github: - icon: fa fa-github - name: Github - instagram: - icon: fa fa-instagram - name: Instagram - pinterest: - icon: fa fa-pinterest - name: Pinterest - vk: - icon: fa fa-vk - name: VKontakte - rss: - icon: fa fa-rss - name: RSS - flickr: - icon: fa fa-flickr - name: Flickr - bitbucket: - icon: fa fa-bitbucket - name: Bitbucket -google-maps-key: AIzaSyBEJy4UvF-JfcNciWlvlznyDlUckcspiD4 -google-maps-url: https://maps.googleapis.com/maps/api/js?key=AIzaSyCOJwXN0eoyeFZ3cYtGzPLFw8zGhQ750Xk - -theme-plugins: - charts-c3: - name: c3.js Charts - files: [css, js] - maps-google: - name: Google Maps - files: [css, js] - input-mask: - name: Input Mask - files: [js] - datatables: - name: Datatables - files: [js] -# iconfonts: -# name: Iconfonts -# files: [css] -# prismjs: -# name: Code Highlight -# files: [css, js] -# fullcalendar: -# name: FullCalendar -# files: [css, js] -# weather: -# name: Weather -# files: [css] \ No newline at end of file +docs-menu: +- title: Getting started + pages: [index] +- title: Components + pages: [avatars, typography, alerts, buttons, colors, cards] \ No newline at end of file diff --git a/bin/people.js b/bin/people.js new file mode 100644 index 000000000..2607aba43 --- /dev/null +++ b/bin/people.js @@ -0,0 +1,24 @@ +const people = require('../pages/_data/people.json'), + fs = require('fs'); + + +let count = { + 'Male': 0, + 'Female': 0 +}; + +function padTo(number) { + number = (`000${number}`).slice(-3); + + return number; +} + +people.map(function (person) { + person.photo = 'img/avatars/' + padTo(count[person.gender]) + (person.gender === 'Male' ? 'm' : 'f') + '.jpg'; + + count[person.gender]++; +}); + +fs.writeFile('./pages/_data/people.json', JSON.stringify(people), 'utf8', function(err){ + if (err) throw err; +}); diff --git a/bin/rename-images.js b/bin/rename-images.js new file mode 100755 index 000000000..df4f5cfd8 --- /dev/null +++ b/bin/rename-images.js @@ -0,0 +1,27 @@ +#!/usr/bin/env node + +var fs = require('fs'), + path = require('path'), + dir = __dirname + '/../img/photos/', + match = RegExp('kaboompics_', 'g'), + files; + +files = fs.readdirSync(dir); + +function generate_token(length){ + //edit the token allowed characters + var a = "abcdef1234567890".split(""); + var b = []; + for (var i=0; i - - - - - - - - - - - - - - - - - Page 400 - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
-
-
400
-

Oops.. You just found an error page..

-

We are sorry but your request contains bad syntax and cannot be fulfilled…

- - Go back - -
-
-
- - \ No newline at end of file diff --git a/dist/401.html b/dist/401.html deleted file mode 100644 index 0d4919538..000000000 --- a/dist/401.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - Page 401 - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
-
-
401
-

Oops.. You just found an error page..

-

We are sorry but you are not authorized to access this page…

- - Go back - -
-
-
- - \ No newline at end of file diff --git a/dist/403.html b/dist/403.html deleted file mode 100644 index 88fe1454e..000000000 --- a/dist/403.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - Page 403 - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
-
-
403
-

Oops.. You just found an error page..

-

We are sorry but you do not have permission to access this page…

- - Go back - -
-
-
- - \ No newline at end of file diff --git a/dist/404.html b/dist/404.html deleted file mode 100644 index f360651f4..000000000 --- a/dist/404.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - Page 404 - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
-
-
404
-

Oops.. You just found an error page..

-

We are sorry but our service is currently not available…

- - Go back - -
-
-
- - \ No newline at end of file diff --git a/dist/500.html b/dist/500.html deleted file mode 100644 index 355f4eee0..000000000 --- a/dist/500.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - Page 500 - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
-
-
500
-

Oops.. You just found an error page..

-

We are sorry but your request contains bad syntax and cannot be fulfilled…

- - Go back - -
-
-
- - \ No newline at end of file diff --git a/dist/503.html b/dist/503.html deleted file mode 100644 index 185b3569c..000000000 --- a/dist/503.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - Page 503 - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
-
-
503
-

Oops.. You just found an error page..

-

We are sorry but our service is currently not available…

- - Go back - -
-
-
- - \ No newline at end of file diff --git a/dist/assets/css/dashboard.css b/dist/assets/css/dashboard.css deleted file mode 100644 index 101047581..000000000 --- a/dist/assets/css/dashboard.css +++ /dev/null @@ -1,18610 +0,0 @@ -@charset "UTF-8"; -/** -Dashboard UI - */ -/*! - * Bootstrap v4.1.0 (https://getbootstrap.com/) - * Copyright 2011-2018 The Bootstrap Authors - * Copyright 2011-2018 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - */ -:root { - --blue: #467fcf; - --indigo: #6574cd; - --purple: #a55eea; - --pink: #f66d9b; - --red: #cd201f; - --orange: #fd9644; - --yellow: #f1c40f; - --green: #5eba00; - --teal: #2bcbba; - --cyan: #17a2b8; - --white: #fff; - --gray: #868e96; - --gray-dark: #343a40; - --azure: #45aaf2; - --lime: #7bd235; - --primary: #467fcf; - --secondary: #868e96; - --success: #5eba00; - --info: #45aaf2; - --warning: #f1c40f; - --danger: #cd201f; - --light: #f8f9fa; - --dark: #343a40; - --breakpoint-xs: 0; - --breakpoint-sm: 576px; - --breakpoint-md: 768px; - --breakpoint-lg: 992px; - --breakpoint-xl: 1280px; - --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - --font-family-monospace: Monaco, Consolas, "Liberation Mono", "Courier New", monospace; -} - -*, -*::before, -*::after { - box-sizing: border-box; -} - -html { - font-family: sans-serif; - line-height: 1.15; - -webkit-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; - -ms-overflow-style: scrollbar; - -webkit-tap-highlight-color: transparent; -} - -@-ms-viewport { - width: device-width; -} - -article, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section { - display: block; -} - -body { - margin: 0; - font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; - font-size: 0.9375rem; - font-weight: 400; - line-height: 1.5; - color: #495057; - text-align: left; - background-color: #f5f7fb; -} - -[tabindex="-1"]:focus { - outline: 0 !important; -} - -hr { - box-sizing: content-box; - height: 0; - overflow: visible; -} - -h1, h2, h3, h4, h5, h6 { - margin-top: 0; - margin-bottom: 0.66em; -} - -p { - margin-top: 0; - margin-bottom: 1rem; -} - -abbr[title], -abbr[data-original-title] { - text-decoration: underline; - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; - cursor: help; - border-bottom: 0; -} - -address { - margin-bottom: 1rem; - font-style: normal; - line-height: inherit; -} - -ol, -ul, -dl { - margin-top: 0; - margin-bottom: 1rem; -} - -ol ol, -ul ul, -ol ul, -ul ol { - margin-bottom: 0; -} - -dt { - font-weight: 700; -} - -dd { - margin-bottom: .5rem; - margin-left: 0; -} - -blockquote { - margin: 0 0 1rem; -} - -dfn { - font-style: italic; -} - -b, -strong { - font-weight: bolder; -} - -small { - font-size: 80%; -} - -sub, -sup { - position: relative; - font-size: 75%; - line-height: 0; - vertical-align: baseline; -} - -sub { - bottom: -.25em; -} - -sup { - top: -.5em; -} - -a { - color: #467fcf; - text-decoration: none; - background-color: transparent; - -webkit-text-decoration-skip: objects; -} - -a:hover { - color: #295a9f; - text-decoration: underline; -} - -a:not([href]):not([tabindex]) { - color: inherit; - text-decoration: none; -} - -a:not([href]):not([tabindex]):hover, a:not([href]):not([tabindex]):focus { - color: inherit; - text-decoration: none; -} - -a:not([href]):not([tabindex]):focus { - outline: 0; -} - -pre, -code, -kbd, -samp { - font-family: monospace, monospace; - font-size: 1em; -} - -pre { - margin-top: 0; - margin-bottom: 1rem; - overflow: auto; - -ms-overflow-style: scrollbar; -} - -figure { - margin: 0 0 1rem; -} - -img { - vertical-align: middle; - border-style: none; -} - -svg:not(:root) { - overflow: hidden; -} - -table { - border-collapse: collapse; -} - -caption { - padding-top: 0.75rem; - padding-bottom: 0.75rem; - color: #9aa0ac; - text-align: left; - caption-side: bottom; -} - -th { - text-align: inherit; -} - -label { - display: inline-block; - margin-bottom: 0.5rem; -} - -button { - border-radius: 0; -} - -button:focus { - outline: 1px dotted; - outline: 5px auto -webkit-focus-ring-color; -} - -input, -button, -select, -optgroup, -textarea { - margin: 0; - font-family: inherit; - font-size: inherit; - line-height: inherit; -} - -button, -input { - overflow: visible; -} - -button, -select { - text-transform: none; -} - -button, -html [type="button"], -[type="reset"], -[type="submit"] { - -webkit-appearance: button; -} - -button::-moz-focus-inner, -[type="button"]::-moz-focus-inner, -[type="reset"]::-moz-focus-inner, -[type="submit"]::-moz-focus-inner { - padding: 0; - border-style: none; -} - -input[type="radio"], -input[type="checkbox"] { - box-sizing: border-box; - padding: 0; -} - -input[type="date"], -input[type="time"], -input[type="datetime-local"], -input[type="month"] { - -webkit-appearance: listbox; -} - -textarea { - overflow: auto; - resize: vertical; -} - -fieldset { - min-width: 0; - padding: 0; - margin: 0; - border: 0; -} - -legend { - display: block; - width: 100%; - max-width: 100%; - padding: 0; - margin-bottom: .5rem; - font-size: 1.5rem; - line-height: inherit; - color: inherit; - white-space: normal; -} - -progress { - vertical-align: baseline; -} - -[type="number"]::-webkit-inner-spin-button, -[type="number"]::-webkit-outer-spin-button { - height: auto; -} - -[type="search"] { - outline-offset: -2px; - -webkit-appearance: none; -} - -[type="search"]::-webkit-search-cancel-button, -[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -::-webkit-file-upload-button { - font: inherit; - -webkit-appearance: button; -} - -output { - display: inline-block; -} - -summary { - display: list-item; - cursor: pointer; -} - -template { - display: none; -} - -[hidden] { - display: none !important; -} - -h1, h2, h3, h4, h5, h6, -.h1, .h2, .h3, .h4, .h5, .h6 { - margin-bottom: 0.66em; - font-family: inherit; - font-weight: 600; - line-height: 1.1; - color: inherit; -} - -h1, .h1 { - font-size: 2rem; -} - -h2, .h2 { - font-size: 1.75rem; -} - -h3, .h3 { - font-size: 1.5rem; -} - -h4, .h4 { - font-size: 1.125rem; -} - -h5, .h5 { - font-size: 1rem; -} - -h6, .h6 { - font-size: 0.875rem; -} - -.lead { - font-size: 1.171875rem; - font-weight: 300; -} - -.display-1 { - font-size: 4.5rem; - font-weight: 300; - line-height: 1.1; -} - -.display-2 { - font-size: 4rem; - font-weight: 300; - line-height: 1.1; -} - -.display-3 { - font-size: 3.5rem; - font-weight: 300; - line-height: 1.1; -} - -.display-4 { - font-size: 3rem; - font-weight: 300; - line-height: 1.1; -} - -hr { - margin-top: 1rem; - margin-bottom: 1rem; - border: 0; - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -small, -.small { - font-size: 87.5%; - font-weight: 400; -} - -mark, -.mark { - padding: 0.2em; - background-color: #fcf8e3; -} - -.list-unstyled { - padding-left: 0; - list-style: none; -} - -.list-inline { - padding-left: 0; - list-style: none; -} - -.list-inline-item { - display: inline-block; -} - -.list-inline-item:not(:last-child) { - margin-right: 0.5rem; -} - -.initialism { - font-size: 90%; - text-transform: uppercase; -} - -.blockquote { - margin-bottom: 1rem; - font-size: 1.171875rem; -} - -.blockquote-footer { - display: block; - font-size: 80%; - color: #868e96; -} - -.blockquote-footer::before { - content: "\2014 \00A0"; -} - -.img-fluid { - max-width: 100%; - height: auto; -} - -.img-thumbnail { - padding: 0.25rem; - background-color: #fff; - border: 1px solid #dee2e6; - border-radius: 3px; - max-width: 100%; - height: auto; -} - -.figure { - display: inline-block; -} - -.figure-img { - margin-bottom: 0.5rem; - line-height: 1; -} - -.figure-caption { - font-size: 90%; - color: #868e96; -} - -code, -kbd, -pre, -samp { - font-family: Monaco, Consolas, "Liberation Mono", "Courier New", monospace; -} - -code { - font-size: 85%; - color: inherit; - word-break: break-word; -} - -a > code { - color: inherit; -} - -kbd { - padding: 0.2rem 0.4rem; - font-size: 85%; - color: #fff; - background-color: #343a40; - border-radius: 3px; -} - -kbd kbd { - padding: 0; - font-size: 100%; - font-weight: 700; -} - -pre { - display: block; - font-size: 85%; - color: #212529; -} - -pre code { - font-size: inherit; - color: inherit; - word-break: normal; -} - -.pre-scrollable { - max-height: 340px; - overflow-y: scroll; -} - -.container { - width: 100%; - padding-right: 0.75rem; - padding-left: 0.75rem; - margin-right: auto; - margin-left: auto; -} - -@media (min-width: 576px) { - .container { - max-width: 540px; - } -} - -@media (min-width: 768px) { - .container { - max-width: 720px; - } -} - -@media (min-width: 992px) { - .container { - max-width: 960px; - } -} - -@media (min-width: 1280px) { - .container { - max-width: 1200px; - } -} - -.container-fluid { - width: 100%; - padding-right: 0.75rem; - padding-left: 0.75rem; - margin-right: auto; - margin-left: auto; -} - -.row { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-right: -0.75rem; - margin-left: -0.75rem; -} - -.no-gutters { - margin-right: 0; - margin-left: 0; -} - -.no-gutters > .col, -.no-gutters > [class*="col-"] { - padding-right: 0; - padding-left: 0; -} - -.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, -.col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, -.col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, -.col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, -.col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl, -.col-xl-auto { - position: relative; - width: 100%; - min-height: 1px; - padding-right: 0.75rem; - padding-left: 0.75rem; -} - -.col { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; -} - -.col-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; -} - -.col-1 { - -ms-flex: 0 0 8.33333333%; - flex: 0 0 8.33333333%; - max-width: 8.33333333%; -} - -.col-2 { - -ms-flex: 0 0 16.66666667%; - flex: 0 0 16.66666667%; - max-width: 16.66666667%; -} - -.col-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; -} - -.col-4 { - -ms-flex: 0 0 33.33333333%; - flex: 0 0 33.33333333%; - max-width: 33.33333333%; -} - -.col-5 { - -ms-flex: 0 0 41.66666667%; - flex: 0 0 41.66666667%; - max-width: 41.66666667%; -} - -.col-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; -} - -.col-7 { - -ms-flex: 0 0 58.33333333%; - flex: 0 0 58.33333333%; - max-width: 58.33333333%; -} - -.col-8 { - -ms-flex: 0 0 66.66666667%; - flex: 0 0 66.66666667%; - max-width: 66.66666667%; -} - -.col-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; -} - -.col-10 { - -ms-flex: 0 0 83.33333333%; - flex: 0 0 83.33333333%; - max-width: 83.33333333%; -} - -.col-11 { - -ms-flex: 0 0 91.66666667%; - flex: 0 0 91.66666667%; - max-width: 91.66666667%; -} - -.col-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; -} - -.order-first { - -ms-flex-order: -1; - order: -1; -} - -.order-last { - -ms-flex-order: 13; - order: 13; -} - -.order-0 { - -ms-flex-order: 0; - order: 0; -} - -.order-1 { - -ms-flex-order: 1; - order: 1; -} - -.order-2 { - -ms-flex-order: 2; - order: 2; -} - -.order-3 { - -ms-flex-order: 3; - order: 3; -} - -.order-4 { - -ms-flex-order: 4; - order: 4; -} - -.order-5 { - -ms-flex-order: 5; - order: 5; -} - -.order-6 { - -ms-flex-order: 6; - order: 6; -} - -.order-7 { - -ms-flex-order: 7; - order: 7; -} - -.order-8 { - -ms-flex-order: 8; - order: 8; -} - -.order-9 { - -ms-flex-order: 9; - order: 9; -} - -.order-10 { - -ms-flex-order: 10; - order: 10; -} - -.order-11 { - -ms-flex-order: 11; - order: 11; -} - -.order-12 { - -ms-flex-order: 12; - order: 12; -} - -.offset-1 { - margin-left: 8.33333333%; -} - -.offset-2 { - margin-left: 16.66666667%; -} - -.offset-3 { - margin-left: 25%; -} - -.offset-4 { - margin-left: 33.33333333%; -} - -.offset-5 { - margin-left: 41.66666667%; -} - -.offset-6 { - margin-left: 50%; -} - -.offset-7 { - margin-left: 58.33333333%; -} - -.offset-8 { - margin-left: 66.66666667%; -} - -.offset-9 { - margin-left: 75%; -} - -.offset-10 { - margin-left: 83.33333333%; -} - -.offset-11 { - margin-left: 91.66666667%; -} - -@media (min-width: 576px) { - .col-sm { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; - } - .col-sm-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; - } - .col-sm-1 { - -ms-flex: 0 0 8.33333333%; - flex: 0 0 8.33333333%; - max-width: 8.33333333%; - } - .col-sm-2 { - -ms-flex: 0 0 16.66666667%; - flex: 0 0 16.66666667%; - max-width: 16.66666667%; - } - .col-sm-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-sm-4 { - -ms-flex: 0 0 33.33333333%; - flex: 0 0 33.33333333%; - max-width: 33.33333333%; - } - .col-sm-5 { - -ms-flex: 0 0 41.66666667%; - flex: 0 0 41.66666667%; - max-width: 41.66666667%; - } - .col-sm-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .col-sm-7 { - -ms-flex: 0 0 58.33333333%; - flex: 0 0 58.33333333%; - max-width: 58.33333333%; - } - .col-sm-8 { - -ms-flex: 0 0 66.66666667%; - flex: 0 0 66.66666667%; - max-width: 66.66666667%; - } - .col-sm-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } - .col-sm-10 { - -ms-flex: 0 0 83.33333333%; - flex: 0 0 83.33333333%; - max-width: 83.33333333%; - } - .col-sm-11 { - -ms-flex: 0 0 91.66666667%; - flex: 0 0 91.66666667%; - max-width: 91.66666667%; - } - .col-sm-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .order-sm-first { - -ms-flex-order: -1; - order: -1; - } - .order-sm-last { - -ms-flex-order: 13; - order: 13; - } - .order-sm-0 { - -ms-flex-order: 0; - order: 0; - } - .order-sm-1 { - -ms-flex-order: 1; - order: 1; - } - .order-sm-2 { - -ms-flex-order: 2; - order: 2; - } - .order-sm-3 { - -ms-flex-order: 3; - order: 3; - } - .order-sm-4 { - -ms-flex-order: 4; - order: 4; - } - .order-sm-5 { - -ms-flex-order: 5; - order: 5; - } - .order-sm-6 { - -ms-flex-order: 6; - order: 6; - } - .order-sm-7 { - -ms-flex-order: 7; - order: 7; - } - .order-sm-8 { - -ms-flex-order: 8; - order: 8; - } - .order-sm-9 { - -ms-flex-order: 9; - order: 9; - } - .order-sm-10 { - -ms-flex-order: 10; - order: 10; - } - .order-sm-11 { - -ms-flex-order: 11; - order: 11; - } - .order-sm-12 { - -ms-flex-order: 12; - order: 12; - } - .offset-sm-0 { - margin-left: 0; - } - .offset-sm-1 { - margin-left: 8.33333333%; - } - .offset-sm-2 { - margin-left: 16.66666667%; - } - .offset-sm-3 { - margin-left: 25%; - } - .offset-sm-4 { - margin-left: 33.33333333%; - } - .offset-sm-5 { - margin-left: 41.66666667%; - } - .offset-sm-6 { - margin-left: 50%; - } - .offset-sm-7 { - margin-left: 58.33333333%; - } - .offset-sm-8 { - margin-left: 66.66666667%; - } - .offset-sm-9 { - margin-left: 75%; - } - .offset-sm-10 { - margin-left: 83.33333333%; - } - .offset-sm-11 { - margin-left: 91.66666667%; - } -} - -@media (min-width: 768px) { - .col-md { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; - } - .col-md-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; - } - .col-md-1 { - -ms-flex: 0 0 8.33333333%; - flex: 0 0 8.33333333%; - max-width: 8.33333333%; - } - .col-md-2 { - -ms-flex: 0 0 16.66666667%; - flex: 0 0 16.66666667%; - max-width: 16.66666667%; - } - .col-md-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-md-4 { - -ms-flex: 0 0 33.33333333%; - flex: 0 0 33.33333333%; - max-width: 33.33333333%; - } - .col-md-5 { - -ms-flex: 0 0 41.66666667%; - flex: 0 0 41.66666667%; - max-width: 41.66666667%; - } - .col-md-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .col-md-7 { - -ms-flex: 0 0 58.33333333%; - flex: 0 0 58.33333333%; - max-width: 58.33333333%; - } - .col-md-8 { - -ms-flex: 0 0 66.66666667%; - flex: 0 0 66.66666667%; - max-width: 66.66666667%; - } - .col-md-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } - .col-md-10 { - -ms-flex: 0 0 83.33333333%; - flex: 0 0 83.33333333%; - max-width: 83.33333333%; - } - .col-md-11 { - -ms-flex: 0 0 91.66666667%; - flex: 0 0 91.66666667%; - max-width: 91.66666667%; - } - .col-md-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .order-md-first { - -ms-flex-order: -1; - order: -1; - } - .order-md-last { - -ms-flex-order: 13; - order: 13; - } - .order-md-0 { - -ms-flex-order: 0; - order: 0; - } - .order-md-1 { - -ms-flex-order: 1; - order: 1; - } - .order-md-2 { - -ms-flex-order: 2; - order: 2; - } - .order-md-3 { - -ms-flex-order: 3; - order: 3; - } - .order-md-4 { - -ms-flex-order: 4; - order: 4; - } - .order-md-5 { - -ms-flex-order: 5; - order: 5; - } - .order-md-6 { - -ms-flex-order: 6; - order: 6; - } - .order-md-7 { - -ms-flex-order: 7; - order: 7; - } - .order-md-8 { - -ms-flex-order: 8; - order: 8; - } - .order-md-9 { - -ms-flex-order: 9; - order: 9; - } - .order-md-10 { - -ms-flex-order: 10; - order: 10; - } - .order-md-11 { - -ms-flex-order: 11; - order: 11; - } - .order-md-12 { - -ms-flex-order: 12; - order: 12; - } - .offset-md-0 { - margin-left: 0; - } - .offset-md-1 { - margin-left: 8.33333333%; - } - .offset-md-2 { - margin-left: 16.66666667%; - } - .offset-md-3 { - margin-left: 25%; - } - .offset-md-4 { - margin-left: 33.33333333%; - } - .offset-md-5 { - margin-left: 41.66666667%; - } - .offset-md-6 { - margin-left: 50%; - } - .offset-md-7 { - margin-left: 58.33333333%; - } - .offset-md-8 { - margin-left: 66.66666667%; - } - .offset-md-9 { - margin-left: 75%; - } - .offset-md-10 { - margin-left: 83.33333333%; - } - .offset-md-11 { - margin-left: 91.66666667%; - } -} - -@media (min-width: 992px) { - .col-lg { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; - } - .col-lg-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; - } - .col-lg-1 { - -ms-flex: 0 0 8.33333333%; - flex: 0 0 8.33333333%; - max-width: 8.33333333%; - } - .col-lg-2 { - -ms-flex: 0 0 16.66666667%; - flex: 0 0 16.66666667%; - max-width: 16.66666667%; - } - .col-lg-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-lg-4 { - -ms-flex: 0 0 33.33333333%; - flex: 0 0 33.33333333%; - max-width: 33.33333333%; - } - .col-lg-5 { - -ms-flex: 0 0 41.66666667%; - flex: 0 0 41.66666667%; - max-width: 41.66666667%; - } - .col-lg-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .col-lg-7 { - -ms-flex: 0 0 58.33333333%; - flex: 0 0 58.33333333%; - max-width: 58.33333333%; - } - .col-lg-8 { - -ms-flex: 0 0 66.66666667%; - flex: 0 0 66.66666667%; - max-width: 66.66666667%; - } - .col-lg-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } - .col-lg-10 { - -ms-flex: 0 0 83.33333333%; - flex: 0 0 83.33333333%; - max-width: 83.33333333%; - } - .col-lg-11 { - -ms-flex: 0 0 91.66666667%; - flex: 0 0 91.66666667%; - max-width: 91.66666667%; - } - .col-lg-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .order-lg-first { - -ms-flex-order: -1; - order: -1; - } - .order-lg-last { - -ms-flex-order: 13; - order: 13; - } - .order-lg-0 { - -ms-flex-order: 0; - order: 0; - } - .order-lg-1 { - -ms-flex-order: 1; - order: 1; - } - .order-lg-2 { - -ms-flex-order: 2; - order: 2; - } - .order-lg-3 { - -ms-flex-order: 3; - order: 3; - } - .order-lg-4 { - -ms-flex-order: 4; - order: 4; - } - .order-lg-5 { - -ms-flex-order: 5; - order: 5; - } - .order-lg-6 { - -ms-flex-order: 6; - order: 6; - } - .order-lg-7 { - -ms-flex-order: 7; - order: 7; - } - .order-lg-8 { - -ms-flex-order: 8; - order: 8; - } - .order-lg-9 { - -ms-flex-order: 9; - order: 9; - } - .order-lg-10 { - -ms-flex-order: 10; - order: 10; - } - .order-lg-11 { - -ms-flex-order: 11; - order: 11; - } - .order-lg-12 { - -ms-flex-order: 12; - order: 12; - } - .offset-lg-0 { - margin-left: 0; - } - .offset-lg-1 { - margin-left: 8.33333333%; - } - .offset-lg-2 { - margin-left: 16.66666667%; - } - .offset-lg-3 { - margin-left: 25%; - } - .offset-lg-4 { - margin-left: 33.33333333%; - } - .offset-lg-5 { - margin-left: 41.66666667%; - } - .offset-lg-6 { - margin-left: 50%; - } - .offset-lg-7 { - margin-left: 58.33333333%; - } - .offset-lg-8 { - margin-left: 66.66666667%; - } - .offset-lg-9 { - margin-left: 75%; - } - .offset-lg-10 { - margin-left: 83.33333333%; - } - .offset-lg-11 { - margin-left: 91.66666667%; - } -} - -@media (min-width: 1280px) { - .col-xl { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; - } - .col-xl-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; - } - .col-xl-1 { - -ms-flex: 0 0 8.33333333%; - flex: 0 0 8.33333333%; - max-width: 8.33333333%; - } - .col-xl-2 { - -ms-flex: 0 0 16.66666667%; - flex: 0 0 16.66666667%; - max-width: 16.66666667%; - } - .col-xl-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-xl-4 { - -ms-flex: 0 0 33.33333333%; - flex: 0 0 33.33333333%; - max-width: 33.33333333%; - } - .col-xl-5 { - -ms-flex: 0 0 41.66666667%; - flex: 0 0 41.66666667%; - max-width: 41.66666667%; - } - .col-xl-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .col-xl-7 { - -ms-flex: 0 0 58.33333333%; - flex: 0 0 58.33333333%; - max-width: 58.33333333%; - } - .col-xl-8 { - -ms-flex: 0 0 66.66666667%; - flex: 0 0 66.66666667%; - max-width: 66.66666667%; - } - .col-xl-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } - .col-xl-10 { - -ms-flex: 0 0 83.33333333%; - flex: 0 0 83.33333333%; - max-width: 83.33333333%; - } - .col-xl-11 { - -ms-flex: 0 0 91.66666667%; - flex: 0 0 91.66666667%; - max-width: 91.66666667%; - } - .col-xl-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .order-xl-first { - -ms-flex-order: -1; - order: -1; - } - .order-xl-last { - -ms-flex-order: 13; - order: 13; - } - .order-xl-0 { - -ms-flex-order: 0; - order: 0; - } - .order-xl-1 { - -ms-flex-order: 1; - order: 1; - } - .order-xl-2 { - -ms-flex-order: 2; - order: 2; - } - .order-xl-3 { - -ms-flex-order: 3; - order: 3; - } - .order-xl-4 { - -ms-flex-order: 4; - order: 4; - } - .order-xl-5 { - -ms-flex-order: 5; - order: 5; - } - .order-xl-6 { - -ms-flex-order: 6; - order: 6; - } - .order-xl-7 { - -ms-flex-order: 7; - order: 7; - } - .order-xl-8 { - -ms-flex-order: 8; - order: 8; - } - .order-xl-9 { - -ms-flex-order: 9; - order: 9; - } - .order-xl-10 { - -ms-flex-order: 10; - order: 10; - } - .order-xl-11 { - -ms-flex-order: 11; - order: 11; - } - .order-xl-12 { - -ms-flex-order: 12; - order: 12; - } - .offset-xl-0 { - margin-left: 0; - } - .offset-xl-1 { - margin-left: 8.33333333%; - } - .offset-xl-2 { - margin-left: 16.66666667%; - } - .offset-xl-3 { - margin-left: 25%; - } - .offset-xl-4 { - margin-left: 33.33333333%; - } - .offset-xl-5 { - margin-left: 41.66666667%; - } - .offset-xl-6 { - margin-left: 50%; - } - .offset-xl-7 { - margin-left: 58.33333333%; - } - .offset-xl-8 { - margin-left: 66.66666667%; - } - .offset-xl-9 { - margin-left: 75%; - } - .offset-xl-10 { - margin-left: 83.33333333%; - } - .offset-xl-11 { - margin-left: 91.66666667%; - } -} - -.table, .text-wrap table { - width: 100%; - max-width: 100%; - margin-bottom: 1rem; - background-color: transparent; -} - -.table th, .text-wrap table th, -.table td, -.text-wrap table td { - padding: 0.75rem; - vertical-align: top; - border-top: 1px solid #dee2e6; -} - -.table thead th, .text-wrap table thead th { - vertical-align: bottom; - border-bottom: 2px solid #dee2e6; -} - -.table tbody + tbody, .text-wrap table tbody + tbody { - border-top: 2px solid #dee2e6; -} - -.table .table, .text-wrap table .table, .table .text-wrap table, .text-wrap .table table, .text-wrap table table { - background-color: #f5f7fb; -} - -.table-sm th, -.table-sm td { - padding: 0.3rem; -} - -.table-bordered, .text-wrap table { - border: 1px solid #dee2e6; -} - -.table-bordered th, .text-wrap table th, -.table-bordered td, -.text-wrap table td { - border: 1px solid #dee2e6; -} - -.table-bordered thead th, .text-wrap table thead th, -.table-bordered thead td, -.text-wrap table thead td { - border-bottom-width: 2px; -} - -.table-borderless th, -.table-borderless td, -.table-borderless thead th, -.table-borderless tbody + tbody { - border: 0; -} - -.table-striped tbody tr:nth-of-type(odd) { - background-color: rgba(0, 0, 0, 0.02); -} - -.table-hover tbody tr:hover { - background-color: rgba(0, 0, 0, 0.04); -} - -.table-primary, -.table-primary > th, -.table-primary > td { - background-color: #cbdbf2; -} - -.table-hover .table-primary:hover { - background-color: #b7cded; -} - -.table-hover .table-primary:hover > td, -.table-hover .table-primary:hover > th { - background-color: #b7cded; -} - -.table-secondary, -.table-secondary > th, -.table-secondary > td { - background-color: #dddfe2; -} - -.table-hover .table-secondary:hover { - background-color: #cfd2d6; -} - -.table-hover .table-secondary:hover > td, -.table-hover .table-secondary:hover > th { - background-color: #cfd2d6; -} - -.table-success, -.table-success > th, -.table-success > td { - background-color: #d2ecb8; -} - -.table-hover .table-success:hover { - background-color: #c5e7a4; -} - -.table-hover .table-success:hover > td, -.table-hover .table-success:hover > th { - background-color: #c5e7a4; -} - -.table-info, -.table-info > th, -.table-info > td { - background-color: #cbe7fb; -} - -.table-hover .table-info:hover { - background-color: #b3dcf9; -} - -.table-hover .table-info:hover > td, -.table-hover .table-info:hover > th { - background-color: #b3dcf9; -} - -.table-warning, -.table-warning > th, -.table-warning > td { - background-color: #fbeebc; -} - -.table-hover .table-warning:hover { - background-color: #fae8a4; -} - -.table-hover .table-warning:hover > td, -.table-hover .table-warning:hover > th { - background-color: #fae8a4; -} - -.table-danger, -.table-danger > th, -.table-danger > td { - background-color: #f1c1c0; -} - -.table-hover .table-danger:hover { - background-color: #ecacab; -} - -.table-hover .table-danger:hover > td, -.table-hover .table-danger:hover > th { - background-color: #ecacab; -} - -.table-light, -.table-light > th, -.table-light > td { - background-color: #fdfdfe; -} - -.table-hover .table-light:hover { - background-color: #ececf6; -} - -.table-hover .table-light:hover > td, -.table-hover .table-light:hover > th { - background-color: #ececf6; -} - -.table-dark, -.table-dark > th, -.table-dark > td { - background-color: #c6c8ca; -} - -.table-hover .table-dark:hover { - background-color: #b9bbbe; -} - -.table-hover .table-dark:hover > td, -.table-hover .table-dark:hover > th { - background-color: #b9bbbe; -} - -.table-active, -.table-active > th, -.table-active > td { - background-color: rgba(0, 0, 0, 0.04); -} - -.table-hover .table-active:hover { - background-color: rgba(0, 0, 0, 0.04); -} - -.table-hover .table-active:hover > td, -.table-hover .table-active:hover > th { - background-color: rgba(0, 0, 0, 0.04); -} - -.table .thead-dark th, .text-wrap table .thead-dark th { - color: #f5f7fb; - background-color: #212529; - border-color: #32383e; -} - -.table .thead-light th, .text-wrap table .thead-light th { - color: #495057; - background-color: #e9ecef; - border-color: #dee2e6; -} - -.table-dark { - color: #f5f7fb; - background-color: #212529; -} - -.table-dark th, -.table-dark td, -.table-dark thead th { - border-color: #32383e; -} - -.table-dark.table-bordered, .text-wrap table.table-dark { - border: 0; -} - -.table-dark.table-striped tbody tr:nth-of-type(odd) { - background-color: rgba(255, 255, 255, 0.05); -} - -.table-dark.table-hover tbody tr:hover { - background-color: rgba(255, 255, 255, 0.075); -} - -@media (max-width: 575.98px) { - .table-responsive-sm { - display: block; - width: 100%; - overflow-x: auto; - -webkit-overflow-scrolling: touch; - -ms-overflow-style: -ms-autohiding-scrollbar; - } - .table-responsive-sm > .table-bordered, .text-wrap .table-responsive-sm > table { - border: 0; - } -} - -@media (max-width: 767.98px) { - .table-responsive-md { - display: block; - width: 100%; - overflow-x: auto; - -webkit-overflow-scrolling: touch; - -ms-overflow-style: -ms-autohiding-scrollbar; - } - .table-responsive-md > .table-bordered, .text-wrap .table-responsive-md > table { - border: 0; - } -} - -@media (max-width: 991.98px) { - .table-responsive-lg { - display: block; - width: 100%; - overflow-x: auto; - -webkit-overflow-scrolling: touch; - -ms-overflow-style: -ms-autohiding-scrollbar; - } - .table-responsive-lg > .table-bordered, .text-wrap .table-responsive-lg > table { - border: 0; - } -} - -@media (max-width: 1279.98px) { - .table-responsive-xl { - display: block; - width: 100%; - overflow-x: auto; - -webkit-overflow-scrolling: touch; - -ms-overflow-style: -ms-autohiding-scrollbar; - } - .table-responsive-xl > .table-bordered, .text-wrap .table-responsive-xl > table { - border: 0; - } -} - -.table-responsive { - display: block; - width: 100%; - overflow-x: auto; - -webkit-overflow-scrolling: touch; - -ms-overflow-style: -ms-autohiding-scrollbar; -} - -.table-responsive > .table-bordered, .text-wrap .table-responsive > table { - border: 0; -} - -.form-control { - display: block; - width: 100%; - padding: 0.375rem 0.75rem; - font-size: 0.9375rem; - line-height: 1.6; - color: #495057; - background-color: #fff; - background-clip: padding-box; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; - transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; -} - -@media screen and (prefers-reduced-motion: reduce) { - .form-control { - transition: none; - } -} - -.form-control::-ms-expand { - background-color: transparent; - border: 0; -} - -.form-control:focus { - color: #495057; - background-color: #fff; - border-color: #1991eb; - outline: 0; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.form-control::-webkit-input-placeholder { - color: #adb5bd; - opacity: 1; -} - -.form-control::-moz-placeholder { - color: #adb5bd; - opacity: 1; -} - -.form-control:-ms-input-placeholder { - color: #adb5bd; - opacity: 1; -} - -.form-control::-ms-input-placeholder { - color: #adb5bd; - opacity: 1; -} - -.form-control::placeholder { - color: #adb5bd; - opacity: 1; -} - -.form-control:disabled, .form-control[readonly] { - background-color: #f8f9fa; - opacity: 1; -} - -select.form-control:not([size]):not([multiple]) { - height: 2.375rem; -} - -select.form-control:focus::-ms-value { - color: #495057; - background-color: #fff; -} - -.form-control-file, -.form-control-range { - display: block; - width: 100%; -} - -.col-form-label { - padding-top: calc(0.375rem + 1px); - padding-bottom: calc(0.375rem + 1px); - margin-bottom: 0; - font-size: inherit; - line-height: 1.6; -} - -.col-form-label-lg { - padding-top: calc(0.5rem + 1px); - padding-bottom: calc(0.5rem + 1px); - font-size: 1.125rem; - line-height: 1.44444444; -} - -.col-form-label-sm { - padding-top: calc(0.25rem + 1px); - padding-bottom: calc(0.25rem + 1px); - font-size: 0.875rem; - line-height: 1.14285714; -} - -.form-control-plaintext { - display: block; - width: 100%; - padding-top: 0.375rem; - padding-bottom: 0.375rem; - margin-bottom: 0; - line-height: 1.6; - color: #495057; - background-color: transparent; - border: solid transparent; - border-width: 1px 0; -} - -.form-control-plaintext.form-control-sm, .input-group-sm > .form-control-plaintext.form-control, -.input-group-sm > .input-group-prepend > .form-control-plaintext.input-group-text, -.input-group-sm > .input-group-append > .form-control-plaintext.input-group-text, -.input-group-sm > .input-group-prepend > .form-control-plaintext.btn, -.input-group-sm > .input-group-append > .form-control-plaintext.btn, .form-control-plaintext.form-control-lg, .input-group-lg > .form-control-plaintext.form-control, -.input-group-lg > .input-group-prepend > .form-control-plaintext.input-group-text, -.input-group-lg > .input-group-append > .form-control-plaintext.input-group-text, -.input-group-lg > .input-group-prepend > .form-control-plaintext.btn, -.input-group-lg > .input-group-append > .form-control-plaintext.btn { - padding-right: 0; - padding-left: 0; -} - -.form-control-sm, .input-group-sm > .form-control, -.input-group-sm > .input-group-prepend > .input-group-text, -.input-group-sm > .input-group-append > .input-group-text, -.input-group-sm > .input-group-prepend > .btn, -.input-group-sm > .input-group-append > .btn { - padding: 0.25rem 0.5rem; - font-size: 0.875rem; - line-height: 1.14285714; - border-radius: 3px; -} - -select.form-control-sm:not([size]):not([multiple]), .input-group-sm > select.form-control:not([size]):not([multiple]), -.input-group-sm > .input-group-prepend > select.input-group-text:not([size]):not([multiple]), -.input-group-sm > .input-group-append > select.input-group-text:not([size]):not([multiple]), -.input-group-sm > .input-group-prepend > select.btn:not([size]):not([multiple]), -.input-group-sm > .input-group-append > select.btn:not([size]):not([multiple]) { - height: calc(1.8125rem + 2px); -} - -.form-control-lg, .input-group-lg > .form-control, -.input-group-lg > .input-group-prepend > .input-group-text, -.input-group-lg > .input-group-append > .input-group-text, -.input-group-lg > .input-group-prepend > .btn, -.input-group-lg > .input-group-append > .btn { - padding: 0.5rem 1rem; - font-size: 1.125rem; - line-height: 1.44444444; - border-radius: 3px; -} - -select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.form-control:not([size]):not([multiple]), -.input-group-lg > .input-group-prepend > select.input-group-text:not([size]):not([multiple]), -.input-group-lg > .input-group-append > select.input-group-text:not([size]):not([multiple]), -.input-group-lg > .input-group-prepend > select.btn:not([size]):not([multiple]), -.input-group-lg > .input-group-append > select.btn:not([size]):not([multiple]) { - height: calc(2.6875rem + 2px); -} - -.form-group { - margin-bottom: 1rem; -} - -.form-text { - display: block; - margin-top: 0.25rem; -} - -.form-row { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-right: -5px; - margin-left: -5px; -} - -.form-row > .col, -.form-row > [class*="col-"] { - padding-right: 5px; - padding-left: 5px; -} - -.form-check { - position: relative; - display: block; - padding-left: 1.25rem; -} - -.form-check-input { - position: absolute; - margin-top: 0.3rem; - margin-left: -1.25rem; -} - -.form-check-input:disabled ~ .form-check-label { - color: #9aa0ac; -} - -.form-check-label { - margin-bottom: 0; -} - -.form-check-inline { - display: -ms-inline-flexbox; - display: inline-flex; - -ms-flex-align: center; - align-items: center; - padding-left: 0; - margin-right: 0.75rem; -} - -.form-check-inline .form-check-input { - position: static; - margin-top: 0; - margin-right: 0.3125rem; - margin-left: 0; -} - -.valid-feedback { - display: none; - width: 100%; - margin-top: 0.25rem; - font-size: 87.5%; - color: #5eba00; -} - -.valid-tooltip { - position: absolute; - top: 100%; - z-index: 5; - display: none; - max-width: 100%; - padding: .5rem; - margin-top: .1rem; - font-size: .875rem; - line-height: 1; - color: #fff; - background-color: rgba(94, 186, 0, 0.8); - border-radius: .2rem; -} - -.was-validated .form-control:valid, .form-control.is-valid, .was-validated -.custom-select:valid, -.custom-select.is-valid { - border-color: #5eba00; -} - -.was-validated .form-control:valid:focus, .form-control.is-valid:focus, .was-validated -.custom-select:valid:focus, -.custom-select.is-valid:focus { - border-color: #5eba00; - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.25); -} - -.was-validated .form-control:valid ~ .valid-feedback, -.was-validated .form-control:valid ~ .valid-tooltip, .form-control.is-valid ~ .valid-feedback, -.form-control.is-valid ~ .valid-tooltip, .was-validated -.custom-select:valid ~ .valid-feedback, -.was-validated -.custom-select:valid ~ .valid-tooltip, -.custom-select.is-valid ~ .valid-feedback, -.custom-select.is-valid ~ .valid-tooltip { - display: block; -} - -.was-validated .form-check-input:valid ~ .form-check-label, .form-check-input.is-valid ~ .form-check-label { - color: #5eba00; -} - -.was-validated .form-check-input:valid ~ .valid-feedback, -.was-validated .form-check-input:valid ~ .valid-tooltip, .form-check-input.is-valid ~ .valid-feedback, -.form-check-input.is-valid ~ .valid-tooltip { - display: block; -} - -.was-validated .custom-control-input:valid ~ .custom-control-label, .custom-control-input.is-valid ~ .custom-control-label { - color: #5eba00; -} - -.was-validated .custom-control-input:valid ~ .custom-control-label::before, .custom-control-input.is-valid ~ .custom-control-label::before { - background-color: #9eff3b; -} - -.was-validated .custom-control-input:valid ~ .valid-feedback, -.was-validated .custom-control-input:valid ~ .valid-tooltip, .custom-control-input.is-valid ~ .valid-feedback, -.custom-control-input.is-valid ~ .valid-tooltip { - display: block; -} - -.was-validated .custom-control-input:valid:checked ~ .custom-control-label::before, .custom-control-input.is-valid:checked ~ .custom-control-label::before { - background-color: #78ed00; -} - -.was-validated .custom-control-input:valid:focus ~ .custom-control-label::before, .custom-control-input.is-valid:focus ~ .custom-control-label::before { - box-shadow: 0 0 0 1px #f5f7fb, 0 0 0 2px rgba(94, 186, 0, 0.25); -} - -.was-validated .custom-file-input:valid ~ .custom-file-label, .custom-file-input.is-valid ~ .custom-file-label { - border-color: #5eba00; -} - -.was-validated .custom-file-input:valid ~ .custom-file-label::before, .custom-file-input.is-valid ~ .custom-file-label::before { - border-color: inherit; -} - -.was-validated .custom-file-input:valid ~ .valid-feedback, -.was-validated .custom-file-input:valid ~ .valid-tooltip, .custom-file-input.is-valid ~ .valid-feedback, -.custom-file-input.is-valid ~ .valid-tooltip { - display: block; -} - -.was-validated .custom-file-input:valid:focus ~ .custom-file-label, .custom-file-input.is-valid:focus ~ .custom-file-label { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.25); -} - -.invalid-feedback { - display: none; - width: 100%; - margin-top: 0.25rem; - font-size: 87.5%; - color: #cd201f; -} - -.invalid-tooltip { - position: absolute; - top: 100%; - z-index: 5; - display: none; - max-width: 100%; - padding: .5rem; - margin-top: .1rem; - font-size: .875rem; - line-height: 1; - color: #fff; - background-color: rgba(205, 32, 31, 0.8); - border-radius: .2rem; -} - -.was-validated .form-control:invalid, .form-control.is-invalid, .was-validated -.custom-select:invalid, -.custom-select.is-invalid { - border-color: #cd201f; -} - -.was-validated .form-control:invalid:focus, .form-control.is-invalid:focus, .was-validated -.custom-select:invalid:focus, -.custom-select.is-invalid:focus { - border-color: #cd201f; - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.25); -} - -.was-validated .form-control:invalid ~ .invalid-feedback, -.was-validated .form-control:invalid ~ .invalid-tooltip, .form-control.is-invalid ~ .invalid-feedback, -.form-control.is-invalid ~ .invalid-tooltip, .was-validated -.custom-select:invalid ~ .invalid-feedback, -.was-validated -.custom-select:invalid ~ .invalid-tooltip, -.custom-select.is-invalid ~ .invalid-feedback, -.custom-select.is-invalid ~ .invalid-tooltip { - display: block; -} - -.was-validated .form-check-input:invalid ~ .form-check-label, .form-check-input.is-invalid ~ .form-check-label { - color: #cd201f; -} - -.was-validated .form-check-input:invalid ~ .invalid-feedback, -.was-validated .form-check-input:invalid ~ .invalid-tooltip, .form-check-input.is-invalid ~ .invalid-feedback, -.form-check-input.is-invalid ~ .invalid-tooltip { - display: block; -} - -.was-validated .custom-control-input:invalid ~ .custom-control-label, .custom-control-input.is-invalid ~ .custom-control-label { - color: #cd201f; -} - -.was-validated .custom-control-input:invalid ~ .custom-control-label::before, .custom-control-input.is-invalid ~ .custom-control-label::before { - background-color: #ec8080; -} - -.was-validated .custom-control-input:invalid ~ .invalid-feedback, -.was-validated .custom-control-input:invalid ~ .invalid-tooltip, .custom-control-input.is-invalid ~ .invalid-feedback, -.custom-control-input.is-invalid ~ .invalid-tooltip { - display: block; -} - -.was-validated .custom-control-input:invalid:checked ~ .custom-control-label::before, .custom-control-input.is-invalid:checked ~ .custom-control-label::before { - background-color: #e23e3d; -} - -.was-validated .custom-control-input:invalid:focus ~ .custom-control-label::before, .custom-control-input.is-invalid:focus ~ .custom-control-label::before { - box-shadow: 0 0 0 1px #f5f7fb, 0 0 0 2px rgba(205, 32, 31, 0.25); -} - -.was-validated .custom-file-input:invalid ~ .custom-file-label, .custom-file-input.is-invalid ~ .custom-file-label { - border-color: #cd201f; -} - -.was-validated .custom-file-input:invalid ~ .custom-file-label::before, .custom-file-input.is-invalid ~ .custom-file-label::before { - border-color: inherit; -} - -.was-validated .custom-file-input:invalid ~ .invalid-feedback, -.was-validated .custom-file-input:invalid ~ .invalid-tooltip, .custom-file-input.is-invalid ~ .invalid-feedback, -.custom-file-input.is-invalid ~ .invalid-tooltip { - display: block; -} - -.was-validated .custom-file-input:invalid:focus ~ .custom-file-label, .custom-file-input.is-invalid:focus ~ .custom-file-label { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.25); -} - -.form-inline { - display: -ms-flexbox; - display: flex; - -ms-flex-flow: row wrap; - flex-flow: row wrap; - -ms-flex-align: center; - align-items: center; -} - -.form-inline .form-check { - width: 100%; -} - -@media (min-width: 576px) { - .form-inline label { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - margin-bottom: 0; - } - .form-inline .form-group { - display: -ms-flexbox; - display: flex; - -ms-flex: 0 0 auto; - flex: 0 0 auto; - -ms-flex-flow: row wrap; - flex-flow: row wrap; - -ms-flex-align: center; - align-items: center; - margin-bottom: 0; - } - .form-inline .form-control { - display: inline-block; - width: auto; - vertical-align: middle; - } - .form-inline .form-control-plaintext { - display: inline-block; - } - .form-inline .input-group, - .form-inline .custom-select { - width: auto; - } - .form-inline .form-check { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - width: auto; - padding-left: 0; - } - .form-inline .form-check-input { - position: relative; - margin-top: 0; - margin-right: 0.25rem; - margin-left: 0; - } - .form-inline .custom-control { - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - } - .form-inline .custom-control-label { - margin-bottom: 0; - } -} - -.btn { - display: inline-block; - font-weight: 400; - text-align: center; - white-space: nowrap; - vertical-align: middle; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - border: 1px solid transparent; - padding: 0.375rem 0.75rem; - font-size: 0.9375rem; - line-height: 1.84615385; - border-radius: 3px; - transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; -} - -@media screen and (prefers-reduced-motion: reduce) { - .btn { - transition: none; - } -} - -.btn:hover, .btn:focus { - text-decoration: none; -} - -.btn:focus, .btn.focus { - outline: 0; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.btn.disabled, .btn:disabled { - opacity: 0.65; -} - -.btn:not(:disabled):not(.disabled) { - cursor: pointer; -} - -.btn:not(:disabled):not(.disabled):active, .btn:not(:disabled):not(.disabled).active { - background-image: none; -} - -a.btn.disabled, -fieldset:disabled a.btn { - pointer-events: none; -} - -.btn-primary { - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.btn-primary:hover { - color: #fff; - background-color: #316cbe; - border-color: #2f66b3; -} - -.btn-primary:focus, .btn-primary.focus { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.5); -} - -.btn-primary.disabled, .btn-primary:disabled { - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active, -.show > .btn-primary.dropdown-toggle { - color: #fff; - background-color: #2f66b3; - border-color: #2c60a9; -} - -.btn-primary:not(:disabled):not(.disabled):active:focus, .btn-primary:not(:disabled):not(.disabled).active:focus, -.show > .btn-primary.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.5); -} - -.btn-secondary { - color: #fff; - background-color: #868e96; - border-color: #868e96; -} - -.btn-secondary:hover { - color: #fff; - background-color: #727b84; - border-color: #6c757d; -} - -.btn-secondary:focus, .btn-secondary.focus { - box-shadow: 0 0 0 2px rgba(134, 142, 150, 0.5); -} - -.btn-secondary.disabled, .btn-secondary:disabled { - color: #fff; - background-color: #868e96; - border-color: #868e96; -} - -.btn-secondary:not(:disabled):not(.disabled):active, .btn-secondary:not(:disabled):not(.disabled).active, -.show > .btn-secondary.dropdown-toggle { - color: #fff; - background-color: #6c757d; - border-color: #666e76; -} - -.btn-secondary:not(:disabled):not(.disabled):active:focus, .btn-secondary:not(:disabled):not(.disabled).active:focus, -.show > .btn-secondary.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(134, 142, 150, 0.5); -} - -.btn-success { - color: #fff; - background-color: #5eba00; - border-color: #5eba00; -} - -.btn-success:hover { - color: #fff; - background-color: #4b9400; - border-color: #448700; -} - -.btn-success:focus, .btn-success.focus { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.5); -} - -.btn-success.disabled, .btn-success:disabled { - color: #fff; - background-color: #5eba00; - border-color: #5eba00; -} - -.btn-success:not(:disabled):not(.disabled):active, .btn-success:not(:disabled):not(.disabled).active, -.show > .btn-success.dropdown-toggle { - color: #fff; - background-color: #448700; - border-color: #3e7a00; -} - -.btn-success:not(:disabled):not(.disabled):active:focus, .btn-success:not(:disabled):not(.disabled).active:focus, -.show > .btn-success.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.5); -} - -.btn-info { - color: #fff; - background-color: #45aaf2; - border-color: #45aaf2; -} - -.btn-info:hover { - color: #fff; - background-color: #219af0; - border-color: #1594ef; -} - -.btn-info:focus, .btn-info.focus { - box-shadow: 0 0 0 2px rgba(69, 170, 242, 0.5); -} - -.btn-info.disabled, .btn-info:disabled { - color: #fff; - background-color: #45aaf2; - border-color: #45aaf2; -} - -.btn-info:not(:disabled):not(.disabled):active, .btn-info:not(:disabled):not(.disabled).active, -.show > .btn-info.dropdown-toggle { - color: #fff; - background-color: #1594ef; - border-color: #108ee7; -} - -.btn-info:not(:disabled):not(.disabled):active:focus, .btn-info:not(:disabled):not(.disabled).active:focus, -.show > .btn-info.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(69, 170, 242, 0.5); -} - -.btn-warning { - color: #fff; - background-color: #f1c40f; - border-color: #f1c40f; -} - -.btn-warning:hover { - color: #fff; - background-color: #cea70c; - border-color: #c29d0b; -} - -.btn-warning:focus, .btn-warning.focus { - box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.5); -} - -.btn-warning.disabled, .btn-warning:disabled { - color: #fff; - background-color: #f1c40f; - border-color: #f1c40f; -} - -.btn-warning:not(:disabled):not(.disabled):active, .btn-warning:not(:disabled):not(.disabled).active, -.show > .btn-warning.dropdown-toggle { - color: #fff; - background-color: #c29d0b; - border-color: #b6940b; -} - -.btn-warning:not(:disabled):not(.disabled):active:focus, .btn-warning:not(:disabled):not(.disabled).active:focus, -.show > .btn-warning.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.5); -} - -.btn-danger { - color: #fff; - background-color: #cd201f; - border-color: #cd201f; -} - -.btn-danger:hover { - color: #fff; - background-color: #ac1b1a; - border-color: #a11918; -} - -.btn-danger:focus, .btn-danger.focus { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.5); -} - -.btn-danger.disabled, .btn-danger:disabled { - color: #fff; - background-color: #cd201f; - border-color: #cd201f; -} - -.btn-danger:not(:disabled):not(.disabled):active, .btn-danger:not(:disabled):not(.disabled).active, -.show > .btn-danger.dropdown-toggle { - color: #fff; - background-color: #a11918; - border-color: #961717; -} - -.btn-danger:not(:disabled):not(.disabled):active:focus, .btn-danger:not(:disabled):not(.disabled).active:focus, -.show > .btn-danger.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.5); -} - -.btn-light { - color: #495057; - background-color: #f8f9fa; - border-color: #f8f9fa; -} - -.btn-light:hover { - color: #495057; - background-color: #e2e6ea; - border-color: #dae0e5; -} - -.btn-light:focus, .btn-light.focus { - box-shadow: 0 0 0 2px rgba(248, 249, 250, 0.5); -} - -.btn-light.disabled, .btn-light:disabled { - color: #495057; - background-color: #f8f9fa; - border-color: #f8f9fa; -} - -.btn-light:not(:disabled):not(.disabled):active, .btn-light:not(:disabled):not(.disabled).active, -.show > .btn-light.dropdown-toggle { - color: #495057; - background-color: #dae0e5; - border-color: #d3d9df; -} - -.btn-light:not(:disabled):not(.disabled):active:focus, .btn-light:not(:disabled):not(.disabled).active:focus, -.show > .btn-light.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(248, 249, 250, 0.5); -} - -.btn-dark { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} - -.btn-dark:hover { - color: #fff; - background-color: #23272b; - border-color: #1d2124; -} - -.btn-dark:focus, .btn-dark.focus { - box-shadow: 0 0 0 2px rgba(52, 58, 64, 0.5); -} - -.btn-dark.disabled, .btn-dark:disabled { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} - -.btn-dark:not(:disabled):not(.disabled):active, .btn-dark:not(:disabled):not(.disabled).active, -.show > .btn-dark.dropdown-toggle { - color: #fff; - background-color: #1d2124; - border-color: #171a1d; -} - -.btn-dark:not(:disabled):not(.disabled):active:focus, .btn-dark:not(:disabled):not(.disabled).active:focus, -.show > .btn-dark.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(52, 58, 64, 0.5); -} - -.btn-outline-primary { - color: #467fcf; - background-color: transparent; - background-image: none; - border-color: #467fcf; -} - -.btn-outline-primary:hover { - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.btn-outline-primary:focus, .btn-outline-primary.focus { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.5); -} - -.btn-outline-primary.disabled, .btn-outline-primary:disabled { - color: #467fcf; - background-color: transparent; -} - -.btn-outline-primary:not(:disabled):not(.disabled):active, .btn-outline-primary:not(:disabled):not(.disabled).active, -.show > .btn-outline-primary.dropdown-toggle { - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.btn-outline-primary:not(:disabled):not(.disabled):active:focus, .btn-outline-primary:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-primary.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.5); -} - -.btn-outline-secondary { - color: #868e96; - background-color: transparent; - background-image: none; - border-color: #868e96; -} - -.btn-outline-secondary:hover { - color: #fff; - background-color: #868e96; - border-color: #868e96; -} - -.btn-outline-secondary:focus, .btn-outline-secondary.focus { - box-shadow: 0 0 0 2px rgba(134, 142, 150, 0.5); -} - -.btn-outline-secondary.disabled, .btn-outline-secondary:disabled { - color: #868e96; - background-color: transparent; -} - -.btn-outline-secondary:not(:disabled):not(.disabled):active, .btn-outline-secondary:not(:disabled):not(.disabled).active, -.show > .btn-outline-secondary.dropdown-toggle { - color: #fff; - background-color: #868e96; - border-color: #868e96; -} - -.btn-outline-secondary:not(:disabled):not(.disabled):active:focus, .btn-outline-secondary:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-secondary.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(134, 142, 150, 0.5); -} - -.btn-outline-success { - color: #5eba00; - background-color: transparent; - background-image: none; - border-color: #5eba00; -} - -.btn-outline-success:hover { - color: #fff; - background-color: #5eba00; - border-color: #5eba00; -} - -.btn-outline-success:focus, .btn-outline-success.focus { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.5); -} - -.btn-outline-success.disabled, .btn-outline-success:disabled { - color: #5eba00; - background-color: transparent; -} - -.btn-outline-success:not(:disabled):not(.disabled):active, .btn-outline-success:not(:disabled):not(.disabled).active, -.show > .btn-outline-success.dropdown-toggle { - color: #fff; - background-color: #5eba00; - border-color: #5eba00; -} - -.btn-outline-success:not(:disabled):not(.disabled):active:focus, .btn-outline-success:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-success.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.5); -} - -.btn-outline-info { - color: #45aaf2; - background-color: transparent; - background-image: none; - border-color: #45aaf2; -} - -.btn-outline-info:hover { - color: #fff; - background-color: #45aaf2; - border-color: #45aaf2; -} - -.btn-outline-info:focus, .btn-outline-info.focus { - box-shadow: 0 0 0 2px rgba(69, 170, 242, 0.5); -} - -.btn-outline-info.disabled, .btn-outline-info:disabled { - color: #45aaf2; - background-color: transparent; -} - -.btn-outline-info:not(:disabled):not(.disabled):active, .btn-outline-info:not(:disabled):not(.disabled).active, -.show > .btn-outline-info.dropdown-toggle { - color: #fff; - background-color: #45aaf2; - border-color: #45aaf2; -} - -.btn-outline-info:not(:disabled):not(.disabled):active:focus, .btn-outline-info:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-info.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(69, 170, 242, 0.5); -} - -.btn-outline-warning { - color: #f1c40f; - background-color: transparent; - background-image: none; - border-color: #f1c40f; -} - -.btn-outline-warning:hover { - color: #fff; - background-color: #f1c40f; - border-color: #f1c40f; -} - -.btn-outline-warning:focus, .btn-outline-warning.focus { - box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.5); -} - -.btn-outline-warning.disabled, .btn-outline-warning:disabled { - color: #f1c40f; - background-color: transparent; -} - -.btn-outline-warning:not(:disabled):not(.disabled):active, .btn-outline-warning:not(:disabled):not(.disabled).active, -.show > .btn-outline-warning.dropdown-toggle { - color: #fff; - background-color: #f1c40f; - border-color: #f1c40f; -} - -.btn-outline-warning:not(:disabled):not(.disabled):active:focus, .btn-outline-warning:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-warning.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.5); -} - -.btn-outline-danger { - color: #cd201f; - background-color: transparent; - background-image: none; - border-color: #cd201f; -} - -.btn-outline-danger:hover { - color: #fff; - background-color: #cd201f; - border-color: #cd201f; -} - -.btn-outline-danger:focus, .btn-outline-danger.focus { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.5); -} - -.btn-outline-danger.disabled, .btn-outline-danger:disabled { - color: #cd201f; - background-color: transparent; -} - -.btn-outline-danger:not(:disabled):not(.disabled):active, .btn-outline-danger:not(:disabled):not(.disabled).active, -.show > .btn-outline-danger.dropdown-toggle { - color: #fff; - background-color: #cd201f; - border-color: #cd201f; -} - -.btn-outline-danger:not(:disabled):not(.disabled):active:focus, .btn-outline-danger:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-danger.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.5); -} - -.btn-outline-light { - color: #f8f9fa; - background-color: transparent; - background-image: none; - border-color: #f8f9fa; -} - -.btn-outline-light:hover { - color: #495057; - background-color: #f8f9fa; - border-color: #f8f9fa; -} - -.btn-outline-light:focus, .btn-outline-light.focus { - box-shadow: 0 0 0 2px rgba(248, 249, 250, 0.5); -} - -.btn-outline-light.disabled, .btn-outline-light:disabled { - color: #f8f9fa; - background-color: transparent; -} - -.btn-outline-light:not(:disabled):not(.disabled):active, .btn-outline-light:not(:disabled):not(.disabled).active, -.show > .btn-outline-light.dropdown-toggle { - color: #495057; - background-color: #f8f9fa; - border-color: #f8f9fa; -} - -.btn-outline-light:not(:disabled):not(.disabled):active:focus, .btn-outline-light:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-light.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(248, 249, 250, 0.5); -} - -.btn-outline-dark { - color: #343a40; - background-color: transparent; - background-image: none; - border-color: #343a40; -} - -.btn-outline-dark:hover { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} - -.btn-outline-dark:focus, .btn-outline-dark.focus { - box-shadow: 0 0 0 2px rgba(52, 58, 64, 0.5); -} - -.btn-outline-dark.disabled, .btn-outline-dark:disabled { - color: #343a40; - background-color: transparent; -} - -.btn-outline-dark:not(:disabled):not(.disabled):active, .btn-outline-dark:not(:disabled):not(.disabled).active, -.show > .btn-outline-dark.dropdown-toggle { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} - -.btn-outline-dark:not(:disabled):not(.disabled):active:focus, .btn-outline-dark:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-dark.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(52, 58, 64, 0.5); -} - -.btn-link { - font-weight: 400; - color: #467fcf; - background-color: transparent; -} - -.btn-link:hover { - color: #295a9f; - text-decoration: underline; - background-color: transparent; - border-color: transparent; -} - -.btn-link:focus, .btn-link.focus { - text-decoration: underline; - border-color: transparent; - box-shadow: none; -} - -.btn-link:disabled, .btn-link.disabled { - color: #868e96; - pointer-events: none; -} - -.btn-lg, .btn-group-lg > .btn { - padding: 0.5rem 1rem; - font-size: 1.125rem; - line-height: 1.625; - border-radius: 3px; -} - -.btn-sm, .btn-group-sm > .btn { - padding: 0.25rem 0.5rem; - font-size: 0.875rem; - line-height: 1.33333333; - border-radius: 3px; -} - -.btn-block { - display: block; - width: 100%; -} - -.btn-block + .btn-block { - margin-top: 0.5rem; -} - -input[type="submit"].btn-block, -input[type="reset"].btn-block, -input[type="button"].btn-block { - width: 100%; -} - -.fade { - transition: opacity 0.15s linear; -} - -@media screen and (prefers-reduced-motion: reduce) { - .fade { - transition: none; - } -} - -.fade:not(.show) { - opacity: 0; -} - -.collapse:not(.show) { - display: none; -} - -.collapsing { - position: relative; - height: 0; - overflow: hidden; - transition: height 0.35s ease; -} - -@media screen and (prefers-reduced-motion: reduce) { - .collapsing { - transition: none; - } -} - -.dropup, -.dropright, -.dropdown, -.dropleft { - position: relative; -} - -.dropdown-toggle::after { - display: inline-block; - width: 0; - height: 0; - margin-left: 0.255em; - vertical-align: 0.255em; - content: ""; - border-top: 0.3em solid; - border-right: 0.3em solid transparent; - border-bottom: 0; - border-left: 0.3em solid transparent; -} - -.dropdown-toggle:empty::after { - margin-left: 0; -} - -.dropdown-menu { - position: absolute; - top: 100%; - left: 0; - z-index: 1000; - display: none; - float: left; - min-width: 10rem; - padding: 0.5rem 0; - margin: 0.125rem 0 0; - font-size: 0.9375rem; - color: #495057; - text-align: left; - list-style: none; - background-color: #fff; - background-clip: padding-box; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; -} - -.dropdown-menu-right { - right: 0; - left: auto; -} - -.dropup .dropdown-menu { - top: auto; - bottom: 100%; - margin-top: 0; - margin-bottom: 0.125rem; -} - -.dropup .dropdown-toggle::after { - display: inline-block; - width: 0; - height: 0; - margin-left: 0.255em; - vertical-align: 0.255em; - content: ""; - border-top: 0; - border-right: 0.3em solid transparent; - border-bottom: 0.3em solid; - border-left: 0.3em solid transparent; -} - -.dropup .dropdown-toggle:empty::after { - margin-left: 0; -} - -.dropright .dropdown-menu { - top: 0; - right: auto; - left: 100%; - margin-top: 0; - margin-left: 0.125rem; -} - -.dropright .dropdown-toggle::after { - display: inline-block; - width: 0; - height: 0; - margin-left: 0.255em; - vertical-align: 0.255em; - content: ""; - border-top: 0.3em solid transparent; - border-right: 0; - border-bottom: 0.3em solid transparent; - border-left: 0.3em solid; -} - -.dropright .dropdown-toggle:empty::after { - margin-left: 0; -} - -.dropright .dropdown-toggle::after { - vertical-align: 0; -} - -.dropleft .dropdown-menu { - top: 0; - right: 100%; - left: auto; - margin-top: 0; - margin-right: 0.125rem; -} - -.dropleft .dropdown-toggle::after { - display: inline-block; - width: 0; - height: 0; - margin-left: 0.255em; - vertical-align: 0.255em; - content: ""; -} - -.dropleft .dropdown-toggle::after { - display: none; -} - -.dropleft .dropdown-toggle::before { - display: inline-block; - width: 0; - height: 0; - margin-right: 0.255em; - vertical-align: 0.255em; - content: ""; - border-top: 0.3em solid transparent; - border-right: 0.3em solid; - border-bottom: 0.3em solid transparent; -} - -.dropleft .dropdown-toggle:empty::after { - margin-left: 0; -} - -.dropleft .dropdown-toggle::before { - vertical-align: 0; -} - -.dropdown-menu[x-placement^="top"], .dropdown-menu[x-placement^="right"], .dropdown-menu[x-placement^="bottom"], .dropdown-menu[x-placement^="left"] { - right: auto; - bottom: auto; -} - -.dropdown-divider { - height: 0; - margin: 0.5rem 0; - overflow: hidden; - border-top: 1px solid #e9ecef; -} - -.dropdown-item { - display: block; - width: 100%; - padding: 0.25rem 1.5rem; - clear: both; - font-weight: 400; - color: #212529; - text-align: inherit; - white-space: nowrap; - background-color: transparent; - border: 0; -} - -.dropdown-item:hover, .dropdown-item:focus { - color: #16181b; - text-decoration: none; - background-color: #f8f9fa; -} - -.dropdown-item.active, .dropdown-item:active { - color: #fff; - text-decoration: none; - background-color: #467fcf; -} - -.dropdown-item.disabled, .dropdown-item:disabled { - color: #868e96; - background-color: transparent; -} - -.dropdown-menu.show { - display: block; -} - -.dropdown-header { - display: block; - padding: 0.5rem 1.5rem; - margin-bottom: 0; - font-size: 0.875rem; - color: #868e96; - white-space: nowrap; -} - -.dropdown-item-text { - display: block; - padding: 0.25rem 1.5rem; - color: #212529; -} - -.btn-group, -.btn-group-vertical { - position: relative; - display: -ms-inline-flexbox; - display: inline-flex; - vertical-align: middle; -} - -.btn-group > .btn, -.btn-group-vertical > .btn { - position: relative; - -ms-flex: 0 1 auto; - flex: 0 1 auto; -} - -.btn-group > .btn:hover, -.btn-group-vertical > .btn:hover { - z-index: 1; -} - -.btn-group > .btn:focus, .btn-group > .btn:active, .btn-group > .btn.active, -.btn-group-vertical > .btn:focus, -.btn-group-vertical > .btn:active, -.btn-group-vertical > .btn.active { - z-index: 1; -} - -.btn-group .btn + .btn, -.btn-group .btn + .btn-group, -.btn-group .btn-group + .btn, -.btn-group .btn-group + .btn-group, -.btn-group-vertical .btn + .btn, -.btn-group-vertical .btn + .btn-group, -.btn-group-vertical .btn-group + .btn, -.btn-group-vertical .btn-group + .btn-group { - margin-left: -1px; -} - -.btn-toolbar { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -ms-flex-pack: start; - justify-content: flex-start; -} - -.btn-toolbar .input-group { - width: auto; -} - -.btn-group > .btn:first-child { - margin-left: 0; -} - -.btn-group > .btn:not(:last-child):not(.dropdown-toggle), -.btn-group > .btn-group:not(:last-child) > .btn { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} - -.btn-group > .btn:not(:first-child), -.btn-group > .btn-group:not(:first-child) > .btn { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} - -.dropdown-toggle-split { - padding-right: 0.5625rem; - padding-left: 0.5625rem; -} - -.dropdown-toggle-split::after, -.dropup .dropdown-toggle-split::after, -.dropright .dropdown-toggle-split::after { - margin-left: 0; -} - -.dropleft .dropdown-toggle-split::before { - margin-right: 0; -} - -.btn-sm + .dropdown-toggle-split, .btn-group-sm > .btn + .dropdown-toggle-split { - padding-right: 0.375rem; - padding-left: 0.375rem; -} - -.btn-lg + .dropdown-toggle-split, .btn-group-lg > .btn + .dropdown-toggle-split { - padding-right: 0.75rem; - padding-left: 0.75rem; -} - -.btn-group-vertical { - -ms-flex-direction: column; - flex-direction: column; - -ms-flex-align: start; - align-items: flex-start; - -ms-flex-pack: center; - justify-content: center; -} - -.btn-group-vertical .btn, -.btn-group-vertical .btn-group { - width: 100%; -} - -.btn-group-vertical > .btn + .btn, -.btn-group-vertical > .btn + .btn-group, -.btn-group-vertical > .btn-group + .btn, -.btn-group-vertical > .btn-group + .btn-group { - margin-top: -1px; - margin-left: 0; -} - -.btn-group-vertical > .btn:not(:last-child):not(.dropdown-toggle), -.btn-group-vertical > .btn-group:not(:last-child) > .btn { - border-bottom-right-radius: 0; - border-bottom-left-radius: 0; -} - -.btn-group-vertical > .btn:not(:first-child), -.btn-group-vertical > .btn-group:not(:first-child) > .btn { - border-top-left-radius: 0; - border-top-right-radius: 0; -} - -.btn-group-toggle > .btn, -.btn-group-toggle > .btn-group > .btn { - margin-bottom: 0; -} - -.btn-group-toggle > .btn input[type="radio"], -.btn-group-toggle > .btn input[type="checkbox"], -.btn-group-toggle > .btn-group > .btn input[type="radio"], -.btn-group-toggle > .btn-group > .btn input[type="checkbox"] { - position: absolute; - clip: rect(0, 0, 0, 0); - pointer-events: none; -} - -.input-group { - position: relative; - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -ms-flex-align: stretch; - align-items: stretch; - width: 100%; -} - -.input-group > .form-control, -.input-group > .custom-select, -.input-group > .custom-file { - position: relative; - -ms-flex: 1 1 auto; - flex: 1 1 auto; - width: 1%; - margin-bottom: 0; -} - -.input-group > .form-control:focus, -.input-group > .custom-select:focus, -.input-group > .custom-file:focus { - z-index: 3; -} - -.input-group > .form-control + .form-control, -.input-group > .form-control + .custom-select, -.input-group > .form-control + .custom-file, -.input-group > .custom-select + .form-control, -.input-group > .custom-select + .custom-select, -.input-group > .custom-select + .custom-file, -.input-group > .custom-file + .form-control, -.input-group > .custom-file + .custom-select, -.input-group > .custom-file + .custom-file { - margin-left: -1px; -} - -.input-group > .form-control:not(:last-child), -.input-group > .custom-select:not(:last-child) { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} - -.input-group > .form-control:not(:first-child), -.input-group > .custom-select:not(:first-child) { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} - -.input-group > .custom-file { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; -} - -.input-group > .custom-file:not(:last-child) .custom-file-label, -.input-group > .custom-file:not(:last-child) .custom-file-label::after { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} - -.input-group > .custom-file:not(:first-child) .custom-file-label, -.input-group > .custom-file:not(:first-child) .custom-file-label::after { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} - -.input-group-prepend, -.input-group-append { - display: -ms-flexbox; - display: flex; -} - -.input-group-prepend .btn, -.input-group-append .btn { - position: relative; - z-index: 2; -} - -.input-group-prepend .btn + .btn, -.input-group-prepend .btn + .input-group-text, -.input-group-prepend .input-group-text + .input-group-text, -.input-group-prepend .input-group-text + .btn, -.input-group-append .btn + .btn, -.input-group-append .btn + .input-group-text, -.input-group-append .input-group-text + .input-group-text, -.input-group-append .input-group-text + .btn { - margin-left: -1px; -} - -.input-group-prepend { - margin-right: -1px; -} - -.input-group-append { - margin-left: -1px; -} - -.input-group-text { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - padding: 0.375rem 0.75rem; - margin-bottom: 0; - font-size: 0.9375rem; - font-weight: 400; - line-height: 1.6; - color: #495057; - text-align: center; - white-space: nowrap; - background-color: #fbfbfc; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; -} - -.input-group-text input[type="radio"], -.input-group-text input[type="checkbox"] { - margin-top: 0; -} - -.input-group > .input-group-prepend > .btn, -.input-group > .input-group-prepend > .input-group-text, -.input-group > .input-group-append:not(:last-child) > .btn, -.input-group > .input-group-append:not(:last-child) > .input-group-text, -.input-group > .input-group-append:last-child > .btn:not(:last-child):not(.dropdown-toggle), -.input-group > .input-group-append:last-child > .input-group-text:not(:last-child) { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} - -.input-group > .input-group-append > .btn, -.input-group > .input-group-append > .input-group-text, -.input-group > .input-group-prepend:not(:first-child) > .btn, -.input-group > .input-group-prepend:not(:first-child) > .input-group-text, -.input-group > .input-group-prepend:first-child > .btn:not(:first-child), -.input-group > .input-group-prepend:first-child > .input-group-text:not(:first-child) { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} - -.custom-control { - position: relative; - display: block; - min-height: 1.5rem; - padding-left: 1.5rem; -} - -.custom-control-inline { - display: -ms-inline-flexbox; - display: inline-flex; - margin-right: 1rem; -} - -.custom-control-input { - position: absolute; - z-index: -1; - opacity: 0; -} - -.custom-control-input:checked ~ .custom-control-label::before { - color: #fff; - background-color: #467fcf; -} - -.custom-control-input:focus ~ .custom-control-label::before { - box-shadow: 0 0 0 1px #f5f7fb, 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.custom-control-input:active ~ .custom-control-label::before { - color: #fff; - background-color: #d4e1f4; -} - -.custom-control-input:disabled ~ .custom-control-label { - color: #868e96; -} - -.custom-control-input:disabled ~ .custom-control-label::before { - background-color: #e9ecef; -} - -.custom-control-label { - margin-bottom: 0; -} - -.custom-control-label::before { - position: absolute; - top: 0.25rem; - left: 0; - display: block; - width: 1rem; - height: 1rem; - pointer-events: none; - content: ""; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - background-color: #dee2e6; -} - -.custom-control-label::after { - position: absolute; - top: 0.25rem; - left: 0; - display: block; - width: 1rem; - height: 1rem; - content: ""; - background-repeat: no-repeat; - background-position: center center; - background-size: 50% 50%; -} - -.custom-checkbox .custom-control-label::before { - border-radius: 3px; -} - -.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before { - background-color: #467fcf; -} - -.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E"); -} - -.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before { - background-color: #467fcf; -} - -.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::after { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3E%3Cpath stroke='%23fff' d='M0 2h4'/%3E%3C/svg%3E"); -} - -.custom-checkbox .custom-control-input:disabled:checked ~ .custom-control-label::before { - background-color: rgba(70, 127, 207, 0.5); -} - -.custom-checkbox .custom-control-input:disabled:indeterminate ~ .custom-control-label::before { - background-color: rgba(70, 127, 207, 0.5); -} - -.custom-radio .custom-control-label::before { - border-radius: 50%; -} - -.custom-radio .custom-control-input:checked ~ .custom-control-label::before { - background-color: #467fcf; -} - -.custom-radio .custom-control-input:checked ~ .custom-control-label::after { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E"); -} - -.custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before { - background-color: rgba(70, 127, 207, 0.5); -} - -.custom-select { - display: inline-block; - width: 100%; - height: 2.375rem; - padding: 0.5rem 1.75rem 0.5rem 0.75rem; - line-height: 1.5; - color: #495057; - vertical-align: middle; - background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 5'%3E%3Cpath fill='#999' d='M0 0L10 0L5 5L0 0'/%3E%3C/svg%3E") no-repeat right 0.75rem center; - background-size: 8px 10px; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; -} - -.custom-select:focus { - border-color: #1991eb; - outline: 0; - box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075), 0 0 5px rgba(25, 145, 235, 0.5); -} - -.custom-select:focus::-ms-value { - color: #495057; - background-color: #fff; -} - -.custom-select[multiple], .custom-select[size]:not([size="1"]) { - height: auto; - padding-right: 0.75rem; - background-image: none; -} - -.custom-select:disabled { - color: #868e96; - background-color: #e9ecef; -} - -.custom-select::-ms-expand { - opacity: 0; -} - -.custom-select-sm { - height: calc(1.8125rem + 2px); - padding-top: 0.5rem; - padding-bottom: 0.5rem; - font-size: 75%; -} - -.custom-select-lg { - height: calc(2.6875rem + 2px); - padding-top: 0.5rem; - padding-bottom: 0.5rem; - font-size: 125%; -} - -.custom-file { - position: relative; - display: inline-block; - width: 100%; - height: 2.375rem; - margin-bottom: 0; -} - -.custom-file-input { - position: relative; - z-index: 2; - width: 100%; - height: 2.375rem; - margin: 0; - opacity: 0; -} - -.custom-file-input:focus ~ .custom-file-label { - border-color: #1991eb; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.custom-file-input:focus ~ .custom-file-label::after { - border-color: #1991eb; -} - -.custom-file-input:lang(en) ~ .custom-file-label::after { - content: "Browse"; -} - -.custom-file-label { - position: absolute; - top: 0; - right: 0; - left: 0; - z-index: 1; - height: 2.375rem; - padding: 0.375rem 0.75rem; - line-height: 1.5; - color: #495057; - background-color: #fff; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; -} - -.custom-file-label::after { - position: absolute; - top: 0; - right: 0; - bottom: 0; - z-index: 3; - display: block; - height: calc(2.375rem - 1px * 2); - padding: 0.375rem 0.75rem; - line-height: 1.5; - color: #495057; - content: "Browse"; - background-color: #fbfbfc; - border-left: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 0 3px 3px 0; -} - -.custom-range { - width: 100%; - padding-left: 0; - background-color: transparent; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; -} - -.custom-range:focus { - outline: none; -} - -.custom-range::-moz-focus-outer { - border: 0; -} - -.custom-range::-webkit-slider-thumb { - width: 1rem; - height: 1rem; - margin-top: -0.25rem; - background-color: #467fcf; - border: 0; - border-radius: 1rem; - -webkit-appearance: none; - appearance: none; -} - -.custom-range::-webkit-slider-thumb:focus { - outline: none; - box-shadow: 0 0 0 1px #f5f7fb, 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.custom-range::-webkit-slider-thumb:active { - background-color: #d4e1f4; -} - -.custom-range::-webkit-slider-runnable-track { - width: 100%; - height: 0.5rem; - color: transparent; - cursor: pointer; - background-color: #dee2e6; - border-color: transparent; - border-radius: 1rem; -} - -.custom-range::-moz-range-thumb { - width: 1rem; - height: 1rem; - background-color: #467fcf; - border: 0; - border-radius: 1rem; - -moz-appearance: none; - appearance: none; -} - -.custom-range::-moz-range-thumb:focus { - outline: none; - box-shadow: 0 0 0 1px #f5f7fb, 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.custom-range::-moz-range-thumb:active { - background-color: #d4e1f4; -} - -.custom-range::-moz-range-track { - width: 100%; - height: 0.5rem; - color: transparent; - cursor: pointer; - background-color: #dee2e6; - border-color: transparent; - border-radius: 1rem; -} - -.custom-range::-ms-thumb { - width: 1rem; - height: 1rem; - background-color: #467fcf; - border: 0; - border-radius: 1rem; - appearance: none; -} - -.custom-range::-ms-thumb:focus { - outline: none; - box-shadow: 0 0 0 1px #f5f7fb, 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.custom-range::-ms-thumb:active { - background-color: #d4e1f4; -} - -.custom-range::-ms-track { - width: 100%; - height: 0.5rem; - color: transparent; - cursor: pointer; - background-color: transparent; - border-color: transparent; - border-width: 0.5rem; -} - -.custom-range::-ms-fill-lower { - background-color: #dee2e6; - border-radius: 1rem; -} - -.custom-range::-ms-fill-upper { - margin-right: 15px; - background-color: #dee2e6; - border-radius: 1rem; -} - -.nav { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - padding-left: 0; - margin-bottom: 0; - list-style: none; -} - -.nav-link { - display: block; - padding: 0.5rem 1rem; -} - -.nav-link:hover, .nav-link:focus { - text-decoration: none; -} - -.nav-link.disabled { - color: #868e96; -} - -.nav-tabs { - border-bottom: 1px solid #dee2e6; -} - -.nav-tabs .nav-item { - margin-bottom: -1px; -} - -.nav-tabs .nav-link { - border: 1px solid transparent; - border-top-left-radius: 3px; - border-top-right-radius: 3px; -} - -.nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus { - border-color: #e9ecef #e9ecef #dee2e6; -} - -.nav-tabs .nav-link.disabled { - color: #868e96; - background-color: transparent; - border-color: transparent; -} - -.nav-tabs .nav-link.active, -.nav-tabs .nav-item.show .nav-link { - color: #495057; - background-color: transparent; - border-color: #dee2e6 #dee2e6 transparent; -} - -.nav-tabs .dropdown-menu { - margin-top: -1px; - border-top-left-radius: 0; - border-top-right-radius: 0; -} - -.nav-pills .nav-link { - border-radius: 3px; -} - -.nav-pills .nav-link.active, -.nav-pills .show > .nav-link { - color: #fff; - background-color: #467fcf; -} - -.nav-fill .nav-item { - -ms-flex: 1 1 auto; - flex: 1 1 auto; - text-align: center; -} - -.nav-justified .nav-item { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - text-align: center; -} - -.tab-content > .tab-pane { - display: none; -} - -.tab-content > .active { - display: block; -} - -.navbar { - position: relative; - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: justify; - justify-content: space-between; - padding: 0.5rem 1rem; -} - -.navbar > .container, -.navbar > .container-fluid { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: justify; - justify-content: space-between; -} - -.navbar-brand { - display: inline-block; - padding-top: 0.359375rem; - padding-bottom: 0.359375rem; - margin-right: 1rem; - font-size: 1.125rem; - line-height: inherit; - white-space: nowrap; -} - -.navbar-brand:hover, .navbar-brand:focus { - text-decoration: none; -} - -.navbar-nav { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - padding-left: 0; - margin-bottom: 0; - list-style: none; -} - -.navbar-nav .nav-link { - padding-right: 0; - padding-left: 0; -} - -.navbar-nav .dropdown-menu { - position: static; - float: none; -} - -.navbar-text { - display: inline-block; - padding-top: 0.5rem; - padding-bottom: 0.5rem; -} - -.navbar-collapse { - -ms-flex-preferred-size: 100%; - flex-basis: 100%; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-align: center; - align-items: center; -} - -.navbar-toggler { - padding: 0.25rem 0.75rem; - font-size: 1.125rem; - line-height: 1; - background-color: transparent; - border: 1px solid transparent; - border-radius: 3px; -} - -.navbar-toggler:hover, .navbar-toggler:focus { - text-decoration: none; -} - -.navbar-toggler:not(:disabled):not(.disabled) { - cursor: pointer; -} - -.navbar-toggler-icon { - display: inline-block; - width: 1.5em; - height: 1.5em; - vertical-align: middle; - content: ""; - background: no-repeat center center; - background-size: 100% 100%; -} - -@media (max-width: 575.98px) { - .navbar-expand-sm > .container, - .navbar-expand-sm > .container-fluid { - padding-right: 0; - padding-left: 0; - } -} - -@media (min-width: 576px) { - .navbar-expand-sm { - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -ms-flex-pack: start; - justify-content: flex-start; - } - .navbar-expand-sm .navbar-nav { - -ms-flex-direction: row; - flex-direction: row; - } - .navbar-expand-sm .navbar-nav .dropdown-menu { - position: absolute; - } - .navbar-expand-sm .navbar-nav .nav-link { - padding-right: 0.5rem; - padding-left: 0.5rem; - } - .navbar-expand-sm > .container, - .navbar-expand-sm > .container-fluid { - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - } - .navbar-expand-sm .navbar-collapse { - display: -ms-flexbox !important; - display: flex !important; - -ms-flex-preferred-size: auto; - flex-basis: auto; - } - .navbar-expand-sm .navbar-toggler { - display: none; - } -} - -@media (max-width: 767.98px) { - .navbar-expand-md > .container, - .navbar-expand-md > .container-fluid { - padding-right: 0; - padding-left: 0; - } -} - -@media (min-width: 768px) { - .navbar-expand-md { - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -ms-flex-pack: start; - justify-content: flex-start; - } - .navbar-expand-md .navbar-nav { - -ms-flex-direction: row; - flex-direction: row; - } - .navbar-expand-md .navbar-nav .dropdown-menu { - position: absolute; - } - .navbar-expand-md .navbar-nav .nav-link { - padding-right: 0.5rem; - padding-left: 0.5rem; - } - .navbar-expand-md > .container, - .navbar-expand-md > .container-fluid { - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - } - .navbar-expand-md .navbar-collapse { - display: -ms-flexbox !important; - display: flex !important; - -ms-flex-preferred-size: auto; - flex-basis: auto; - } - .navbar-expand-md .navbar-toggler { - display: none; - } -} - -@media (max-width: 991.98px) { - .navbar-expand-lg > .container, - .navbar-expand-lg > .container-fluid { - padding-right: 0; - padding-left: 0; - } -} - -@media (min-width: 992px) { - .navbar-expand-lg { - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -ms-flex-pack: start; - justify-content: flex-start; - } - .navbar-expand-lg .navbar-nav { - -ms-flex-direction: row; - flex-direction: row; - } - .navbar-expand-lg .navbar-nav .dropdown-menu { - position: absolute; - } - .navbar-expand-lg .navbar-nav .nav-link { - padding-right: 0.5rem; - padding-left: 0.5rem; - } - .navbar-expand-lg > .container, - .navbar-expand-lg > .container-fluid { - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - } - .navbar-expand-lg .navbar-collapse { - display: -ms-flexbox !important; - display: flex !important; - -ms-flex-preferred-size: auto; - flex-basis: auto; - } - .navbar-expand-lg .navbar-toggler { - display: none; - } -} - -@media (max-width: 1279.98px) { - .navbar-expand-xl > .container, - .navbar-expand-xl > .container-fluid { - padding-right: 0; - padding-left: 0; - } -} - -@media (min-width: 1280px) { - .navbar-expand-xl { - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -ms-flex-pack: start; - justify-content: flex-start; - } - .navbar-expand-xl .navbar-nav { - -ms-flex-direction: row; - flex-direction: row; - } - .navbar-expand-xl .navbar-nav .dropdown-menu { - position: absolute; - } - .navbar-expand-xl .navbar-nav .nav-link { - padding-right: 0.5rem; - padding-left: 0.5rem; - } - .navbar-expand-xl > .container, - .navbar-expand-xl > .container-fluid { - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - } - .navbar-expand-xl .navbar-collapse { - display: -ms-flexbox !important; - display: flex !important; - -ms-flex-preferred-size: auto; - flex-basis: auto; - } - .navbar-expand-xl .navbar-toggler { - display: none; - } -} - -.navbar-expand { - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -ms-flex-pack: start; - justify-content: flex-start; -} - -.navbar-expand > .container, -.navbar-expand > .container-fluid { - padding-right: 0; - padding-left: 0; -} - -.navbar-expand .navbar-nav { - -ms-flex-direction: row; - flex-direction: row; -} - -.navbar-expand .navbar-nav .dropdown-menu { - position: absolute; -} - -.navbar-expand .navbar-nav .nav-link { - padding-right: 0.5rem; - padding-left: 0.5rem; -} - -.navbar-expand > .container, -.navbar-expand > .container-fluid { - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; -} - -.navbar-expand .navbar-collapse { - display: -ms-flexbox !important; - display: flex !important; - -ms-flex-preferred-size: auto; - flex-basis: auto; -} - -.navbar-expand .navbar-toggler { - display: none; -} - -.navbar-light .navbar-brand { - color: rgba(0, 0, 0, 0.9); -} - -.navbar-light .navbar-brand:hover, .navbar-light .navbar-brand:focus { - color: rgba(0, 0, 0, 0.9); -} - -.navbar-light .navbar-nav .nav-link { - color: rgba(0, 0, 0, 0.5); -} - -.navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus { - color: rgba(0, 0, 0, 0.7); -} - -.navbar-light .navbar-nav .nav-link.disabled { - color: rgba(0, 0, 0, 0.3); -} - -.navbar-light .navbar-nav .show > .nav-link, -.navbar-light .navbar-nav .active > .nav-link, -.navbar-light .navbar-nav .nav-link.show, -.navbar-light .navbar-nav .nav-link.active { - color: rgba(0, 0, 0, 0.9); -} - -.navbar-light .navbar-toggler { - color: rgba(0, 0, 0, 0.5); - border-color: rgba(0, 0, 0, 0.1); -} - -.navbar-light .navbar-toggler-icon { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); -} - -.navbar-light .navbar-text { - color: rgba(0, 0, 0, 0.5); -} - -.navbar-light .navbar-text a { - color: rgba(0, 0, 0, 0.9); -} - -.navbar-light .navbar-text a:hover, .navbar-light .navbar-text a:focus { - color: rgba(0, 0, 0, 0.9); -} - -.navbar-dark .navbar-brand { - color: #fff; -} - -.navbar-dark .navbar-brand:hover, .navbar-dark .navbar-brand:focus { - color: #fff; -} - -.navbar-dark .navbar-nav .nav-link { - color: rgba(255, 255, 255, 0.5); -} - -.navbar-dark .navbar-nav .nav-link:hover, .navbar-dark .navbar-nav .nav-link:focus { - color: rgba(255, 255, 255, 0.75); -} - -.navbar-dark .navbar-nav .nav-link.disabled { - color: rgba(255, 255, 255, 0.25); -} - -.navbar-dark .navbar-nav .show > .nav-link, -.navbar-dark .navbar-nav .active > .nav-link, -.navbar-dark .navbar-nav .nav-link.show, -.navbar-dark .navbar-nav .nav-link.active { - color: #fff; -} - -.navbar-dark .navbar-toggler { - color: rgba(255, 255, 255, 0.5); - border-color: rgba(255, 255, 255, 0.1); -} - -.navbar-dark .navbar-toggler-icon { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); -} - -.navbar-dark .navbar-text { - color: rgba(255, 255, 255, 0.5); -} - -.navbar-dark .navbar-text a { - color: #fff; -} - -.navbar-dark .navbar-text a:hover, .navbar-dark .navbar-text a:focus { - color: #fff; -} - -.card { - position: relative; - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - min-width: 0; - word-wrap: break-word; - background-color: #fff; - background-clip: border-box; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; -} - -.card > hr { - margin-right: 0; - margin-left: 0; -} - -.card > .list-group:first-child .list-group-item:first-child { - border-top-left-radius: 3px; - border-top-right-radius: 3px; -} - -.card > .list-group:last-child .list-group-item:last-child { - border-bottom-right-radius: 3px; - border-bottom-left-radius: 3px; -} - -.card-body { - -ms-flex: 1 1 auto; - flex: 1 1 auto; - padding: 1.5rem; -} - -.card-title { - margin-bottom: 1.5rem; -} - -.card-subtitle { - margin-top: -0.75rem; - margin-bottom: 0; -} - -.card-text:last-child { - margin-bottom: 0; -} - -.card-link:hover { - text-decoration: none; -} - -.card-link + .card-link { - margin-left: 1.5rem; -} - -.card-header { - padding: 1.5rem 1.5rem; - margin-bottom: 0; - background-color: rgba(0, 0, 0, 0.03); - border-bottom: 1px solid rgba(0, 40, 100, 0.12); -} - -.card-header:first-child { - border-radius: calc(3px - 1px) calc(3px - 1px) 0 0; -} - -.card-header + .list-group .list-group-item:first-child { - border-top: 0; -} - -.card-footer { - padding: 1.5rem 1.5rem; - background-color: rgba(0, 0, 0, 0.03); - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.card-footer:last-child { - border-radius: 0 0 calc(3px - 1px) calc(3px - 1px); -} - -.card-header-tabs { - margin-right: -0.75rem; - margin-bottom: -1.5rem; - margin-left: -0.75rem; - border-bottom: 0; -} - -.card-header-pills { - margin-right: -0.75rem; - margin-left: -0.75rem; -} - -.card-img-overlay { - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - padding: 1.25rem; -} - -.card-img { - width: 100%; - border-radius: calc(3px - 1px); -} - -.card-img-top { - width: 100%; - border-top-left-radius: calc(3px - 1px); - border-top-right-radius: calc(3px - 1px); -} - -.card-img-bottom { - width: 100%; - border-bottom-right-radius: calc(3px - 1px); - border-bottom-left-radius: calc(3px - 1px); -} - -.card-deck { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; -} - -.card-deck .card { - margin-bottom: 0.75rem; -} - -@media (min-width: 576px) { - .card-deck { - -ms-flex-flow: row wrap; - flex-flow: row wrap; - margin-right: -0.75rem; - margin-left: -0.75rem; - } - .card-deck .card { - display: -ms-flexbox; - display: flex; - -ms-flex: 1 0 0%; - flex: 1 0 0%; - -ms-flex-direction: column; - flex-direction: column; - margin-right: 0.75rem; - margin-bottom: 0; - margin-left: 0.75rem; - } -} - -.card-group { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; -} - -.card-group > .card { - margin-bottom: 0.75rem; -} - -@media (min-width: 576px) { - .card-group { - -ms-flex-flow: row wrap; - flex-flow: row wrap; - } - .card-group > .card { - -ms-flex: 1 0 0%; - flex: 1 0 0%; - margin-bottom: 0; - } - .card-group > .card + .card { - margin-left: 0; - border-left: 0; - } - .card-group > .card:first-child { - border-top-right-radius: 0; - border-bottom-right-radius: 0; - } - .card-group > .card:first-child .card-img-top, - .card-group > .card:first-child .card-header { - border-top-right-radius: 0; - } - .card-group > .card:first-child .card-img-bottom, - .card-group > .card:first-child .card-footer { - border-bottom-right-radius: 0; - } - .card-group > .card:last-child { - border-top-left-radius: 0; - border-bottom-left-radius: 0; - } - .card-group > .card:last-child .card-img-top, - .card-group > .card:last-child .card-header { - border-top-left-radius: 0; - } - .card-group > .card:last-child .card-img-bottom, - .card-group > .card:last-child .card-footer { - border-bottom-left-radius: 0; - } - .card-group > .card:only-child { - border-radius: 3px; - } - .card-group > .card:only-child .card-img-top, - .card-group > .card:only-child .card-header { - border-top-left-radius: 3px; - border-top-right-radius: 3px; - } - .card-group > .card:only-child .card-img-bottom, - .card-group > .card:only-child .card-footer { - border-bottom-right-radius: 3px; - border-bottom-left-radius: 3px; - } - .card-group > .card:not(:first-child):not(:last-child):not(:only-child) { - border-radius: 0; - } - .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-img-top, - .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-img-bottom, - .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-header, - .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-footer { - border-radius: 0; - } -} - -.card-columns .card { - margin-bottom: 1.5rem; -} - -@media (min-width: 576px) { - .card-columns { - -webkit-column-count: 3; - -moz-column-count: 3; - column-count: 3; - -webkit-column-gap: 1.25rem; - -moz-column-gap: 1.25rem; - column-gap: 1.25rem; - orphans: 1; - widows: 1; - } - .card-columns .card { - display: inline-block; - width: 100%; - } -} - -.accordion .card:not(:first-of-type):not(:last-of-type) { - border-bottom: 0; - border-radius: 0; -} - -.accordion .card:not(:first-of-type) .card-header:first-child { - border-radius: 0; -} - -.accordion .card:first-of-type { - border-bottom: 0; - border-bottom-right-radius: 0; - border-bottom-left-radius: 0; -} - -.accordion .card:last-of-type { - border-top-left-radius: 0; - border-top-right-radius: 0; -} - -.breadcrumb { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - padding: 0.75rem 1rem; - margin-bottom: 1rem; - list-style: none; - background-color: #e9ecef; - border-radius: 3px; -} - -.breadcrumb-item + .breadcrumb-item { - padding-left: 0.5rem; -} - -.breadcrumb-item + .breadcrumb-item::before { - display: inline-block; - padding-right: 0.5rem; - color: #868e96; - content: "/"; -} - -.breadcrumb-item + .breadcrumb-item:hover::before { - text-decoration: underline; -} - -.breadcrumb-item + .breadcrumb-item:hover::before { - text-decoration: none; -} - -.breadcrumb-item.active { - color: #868e96; -} - -.pagination { - display: -ms-flexbox; - display: flex; - padding-left: 0; - list-style: none; - border-radius: 3px; -} - -.page-link { - position: relative; - display: block; - padding: 0.5rem 0.75rem; - margin-left: -1px; - line-height: 1.25; - color: #495057; - background-color: #fff; - border: 1px solid #dee2e6; -} - -.page-link:hover { - z-index: 2; - color: #295a9f; - text-decoration: none; - background-color: #e9ecef; - border-color: #dee2e6; -} - -.page-link:focus { - z-index: 2; - outline: 0; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.page-link:not(:disabled):not(.disabled) { - cursor: pointer; -} - -.page-item:first-child .page-link { - margin-left: 0; - border-top-left-radius: 3px; - border-bottom-left-radius: 3px; -} - -.page-item:last-child .page-link { - border-top-right-radius: 3px; - border-bottom-right-radius: 3px; -} - -.page-item.active .page-link { - z-index: 1; - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.page-item.disabled .page-link { - color: #ced4da; - pointer-events: none; - cursor: auto; - background-color: #fff; - border-color: #dee2e6; -} - -.pagination-lg .page-link { - padding: 0.75rem 1.5rem; - font-size: 1.125rem; - line-height: 1.5; -} - -.pagination-lg .page-item:first-child .page-link { - border-top-left-radius: 3px; - border-bottom-left-radius: 3px; -} - -.pagination-lg .page-item:last-child .page-link { - border-top-right-radius: 3px; - border-bottom-right-radius: 3px; -} - -.pagination-sm .page-link { - padding: 0.25rem 0.5rem; - font-size: 0.875rem; - line-height: 1.5; -} - -.pagination-sm .page-item:first-child .page-link { - border-top-left-radius: 3px; - border-bottom-left-radius: 3px; -} - -.pagination-sm .page-item:last-child .page-link { - border-top-right-radius: 3px; - border-bottom-right-radius: 3px; -} - -.badge { - display: inline-block; - padding: 0.25em 0.4em; - font-size: 75%; - font-weight: 600; - line-height: 1; - text-align: center; - white-space: nowrap; - vertical-align: baseline; - border-radius: 3px; -} - -.badge:empty { - display: none; -} - -.btn .badge { - position: relative; - top: -1px; -} - -.badge-pill { - padding-right: 0.6em; - padding-left: 0.6em; - border-radius: 10rem; -} - -.badge-primary { - color: #fff; - background-color: #467fcf; -} - -.badge-primary[href]:hover, .badge-primary[href]:focus { - color: #fff; - text-decoration: none; - background-color: #2f66b3; -} - -.badge-secondary { - color: #fff; - background-color: #868e96; -} - -.badge-secondary[href]:hover, .badge-secondary[href]:focus { - color: #fff; - text-decoration: none; - background-color: #6c757d; -} - -.badge-success { - color: #fff; - background-color: #5eba00; -} - -.badge-success[href]:hover, .badge-success[href]:focus { - color: #fff; - text-decoration: none; - background-color: #448700; -} - -.badge-info { - color: #fff; - background-color: #45aaf2; -} - -.badge-info[href]:hover, .badge-info[href]:focus { - color: #fff; - text-decoration: none; - background-color: #1594ef; -} - -.badge-warning { - color: #fff; - background-color: #f1c40f; -} - -.badge-warning[href]:hover, .badge-warning[href]:focus { - color: #fff; - text-decoration: none; - background-color: #c29d0b; -} - -.badge-danger { - color: #fff; - background-color: #cd201f; -} - -.badge-danger[href]:hover, .badge-danger[href]:focus { - color: #fff; - text-decoration: none; - background-color: #a11918; -} - -.badge-light { - color: #495057; - background-color: #f8f9fa; -} - -.badge-light[href]:hover, .badge-light[href]:focus { - color: #495057; - text-decoration: none; - background-color: #dae0e5; -} - -.badge-dark { - color: #fff; - background-color: #343a40; -} - -.badge-dark[href]:hover, .badge-dark[href]:focus { - color: #fff; - text-decoration: none; - background-color: #1d2124; -} - -.jumbotron { - padding: 2rem 1rem; - margin-bottom: 2rem; - background-color: #e9ecef; - border-radius: 3px; -} - -@media (min-width: 576px) { - .jumbotron { - padding: 4rem 2rem; - } -} - -.jumbotron-fluid { - padding-right: 0; - padding-left: 0; - border-radius: 0; -} - -.alert { - position: relative; - padding: 0.75rem 1.25rem; - margin-bottom: 1rem; - border: 1px solid transparent; - border-radius: 3px; -} - -.alert-heading { - color: inherit; -} - -.alert-link { - font-weight: 600; -} - -.alert-dismissible { - padding-right: 3.90625rem; -} - -.alert-dismissible .close { - position: absolute; - top: 0; - right: 0; - padding: 0.75rem 1.25rem; - color: inherit; -} - -.alert-primary { - color: #24426c; - background-color: #dae5f5; - border-color: #cbdbf2; -} - -.alert-primary hr { - border-top-color: #b7cded; -} - -.alert-primary .alert-link { - color: #172b46; -} - -.alert-secondary { - color: #464a4e; - background-color: #e7e8ea; - border-color: #dddfe2; -} - -.alert-secondary hr { - border-top-color: #cfd2d6; -} - -.alert-secondary .alert-link { - color: #2e3133; -} - -.alert-success { - color: #316100; - background-color: #dff1cc; - border-color: #d2ecb8; -} - -.alert-success hr { - border-top-color: #c5e7a4; -} - -.alert-success .alert-link { - color: #172e00; -} - -.alert-info { - color: #24587e; - background-color: #daeefc; - border-color: #cbe7fb; -} - -.alert-info hr { - border-top-color: #b3dcf9; -} - -.alert-info .alert-link { - color: #193c56; -} - -.alert-warning { - color: #7d6608; - background-color: #fcf3cf; - border-color: #fbeebc; -} - -.alert-warning hr { - border-top-color: #fae8a4; -} - -.alert-warning .alert-link { - color: #4d3f05; -} - -.alert-danger { - color: #6b1110; - background-color: #f5d2d2; - border-color: #f1c1c0; -} - -.alert-danger hr { - border-top-color: #ecacab; -} - -.alert-danger .alert-link { - color: #3f0a09; -} - -.alert-light { - color: #818182; - background-color: #fefefe; - border-color: #fdfdfe; -} - -.alert-light hr { - border-top-color: #ececf6; -} - -.alert-light .alert-link { - color: #686868; -} - -.alert-dark { - color: #1b1e21; - background-color: #d6d8d9; - border-color: #c6c8ca; -} - -.alert-dark hr { - border-top-color: #b9bbbe; -} - -.alert-dark .alert-link { - color: #040505; -} - -@-webkit-keyframes progress-bar-stripes { - from { - background-position: 1rem 0; - } - to { - background-position: 0 0; - } -} - -@keyframes progress-bar-stripes { - from { - background-position: 1rem 0; - } - to { - background-position: 0 0; - } -} - -.progress { - display: -ms-flexbox; - display: flex; - height: 1rem; - overflow: hidden; - font-size: 0.703125rem; - background-color: #e9ecef; - border-radius: 3px; -} - -.progress-bar { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - -ms-flex-pack: center; - justify-content: center; - color: #fff; - text-align: center; - white-space: nowrap; - background-color: #467fcf; - transition: width 0.6s ease; -} - -@media screen and (prefers-reduced-motion: reduce) { - .progress-bar { - transition: none; - } -} - -.progress-bar-striped { - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-size: 1rem 1rem; -} - -.progress-bar-animated { - -webkit-animation: progress-bar-stripes 1s linear infinite; - animation: progress-bar-stripes 1s linear infinite; -} - -.media { - display: -ms-flexbox; - display: flex; - -ms-flex-align: start; - align-items: flex-start; -} - -.media-body { - -ms-flex: 1; - flex: 1; -} - -.list-group { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - padding-left: 0; - margin-bottom: 0; -} - -.list-group-item-action { - width: 100%; - color: #495057; - text-align: inherit; -} - -.list-group-item-action:hover, .list-group-item-action:focus { - color: #495057; - text-decoration: none; - background-color: #f8f9fa; -} - -.list-group-item-action:active { - color: #495057; - background-color: #e9ecef; -} - -.list-group-item { - position: relative; - display: block; - padding: 0.75rem 1.25rem; - margin-bottom: -1px; - background-color: #fff; - border: 1px solid rgba(0, 40, 100, 0.12); -} - -.list-group-item:first-child { - border-top-left-radius: 3px; - border-top-right-radius: 3px; -} - -.list-group-item:last-child { - margin-bottom: 0; - border-bottom-right-radius: 3px; - border-bottom-left-radius: 3px; -} - -.list-group-item:hover, .list-group-item:focus { - z-index: 1; - text-decoration: none; -} - -.list-group-item.disabled, .list-group-item:disabled { - color: #868e96; - background-color: #fff; -} - -.list-group-item.active { - z-index: 2; - color: #467fcf; - background-color: #f8fafd; - border-color: rgba(0, 40, 100, 0.12); -} - -.list-group-flush .list-group-item { - border-right: 0; - border-left: 0; - border-radius: 0; -} - -.list-group-flush:first-child .list-group-item:first-child { - border-top: 0; -} - -.list-group-flush:last-child .list-group-item:last-child { - border-bottom: 0; -} - -.list-group-item-primary { - color: #24426c; - background-color: #cbdbf2; -} - -.list-group-item-primary.list-group-item-action:hover, .list-group-item-primary.list-group-item-action:focus { - color: #24426c; - background-color: #b7cded; -} - -.list-group-item-primary.list-group-item-action.active { - color: #fff; - background-color: #24426c; - border-color: #24426c; -} - -.list-group-item-secondary { - color: #464a4e; - background-color: #dddfe2; -} - -.list-group-item-secondary.list-group-item-action:hover, .list-group-item-secondary.list-group-item-action:focus { - color: #464a4e; - background-color: #cfd2d6; -} - -.list-group-item-secondary.list-group-item-action.active { - color: #fff; - background-color: #464a4e; - border-color: #464a4e; -} - -.list-group-item-success { - color: #316100; - background-color: #d2ecb8; -} - -.list-group-item-success.list-group-item-action:hover, .list-group-item-success.list-group-item-action:focus { - color: #316100; - background-color: #c5e7a4; -} - -.list-group-item-success.list-group-item-action.active { - color: #fff; - background-color: #316100; - border-color: #316100; -} - -.list-group-item-info { - color: #24587e; - background-color: #cbe7fb; -} - -.list-group-item-info.list-group-item-action:hover, .list-group-item-info.list-group-item-action:focus { - color: #24587e; - background-color: #b3dcf9; -} - -.list-group-item-info.list-group-item-action.active { - color: #fff; - background-color: #24587e; - border-color: #24587e; -} - -.list-group-item-warning { - color: #7d6608; - background-color: #fbeebc; -} - -.list-group-item-warning.list-group-item-action:hover, .list-group-item-warning.list-group-item-action:focus { - color: #7d6608; - background-color: #fae8a4; -} - -.list-group-item-warning.list-group-item-action.active { - color: #fff; - background-color: #7d6608; - border-color: #7d6608; -} - -.list-group-item-danger { - color: #6b1110; - background-color: #f1c1c0; -} - -.list-group-item-danger.list-group-item-action:hover, .list-group-item-danger.list-group-item-action:focus { - color: #6b1110; - background-color: #ecacab; -} - -.list-group-item-danger.list-group-item-action.active { - color: #fff; - background-color: #6b1110; - border-color: #6b1110; -} - -.list-group-item-light { - color: #818182; - background-color: #fdfdfe; -} - -.list-group-item-light.list-group-item-action:hover, .list-group-item-light.list-group-item-action:focus { - color: #818182; - background-color: #ececf6; -} - -.list-group-item-light.list-group-item-action.active { - color: #fff; - background-color: #818182; - border-color: #818182; -} - -.list-group-item-dark { - color: #1b1e21; - background-color: #c6c8ca; -} - -.list-group-item-dark.list-group-item-action:hover, .list-group-item-dark.list-group-item-action:focus { - color: #1b1e21; - background-color: #b9bbbe; -} - -.list-group-item-dark.list-group-item-action.active { - color: #fff; - background-color: #1b1e21; - border-color: #1b1e21; -} - -.close { - float: right; - font-size: 1.40625rem; - font-weight: 700; - line-height: 1; - color: #000; - text-shadow: 0 1px 0 #fff; - opacity: .5; -} - -.close:hover, .close:focus { - color: #000; - text-decoration: none; - opacity: .75; -} - -.close:not(:disabled):not(.disabled) { - cursor: pointer; -} - -button.close { - padding: 0; - background-color: transparent; - border: 0; - -webkit-appearance: none; -} - -.modal-open { - overflow: hidden; -} - -.modal { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 1050; - display: none; - overflow: hidden; - outline: 0; -} - -.modal-open .modal { - overflow-x: hidden; - overflow-y: auto; -} - -.modal-dialog { - position: relative; - width: auto; - margin: 0.5rem; - pointer-events: none; -} - -.modal.fade .modal-dialog { - transition: -webkit-transform 0.3s ease-out; - transition: transform 0.3s ease-out; - transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out; - -webkit-transform: translate(0, -25%); - transform: translate(0, -25%); -} - -@media screen and (prefers-reduced-motion: reduce) { - .modal.fade .modal-dialog { - transition: none; - } -} - -.modal.show .modal-dialog { - -webkit-transform: translate(0, 0); - transform: translate(0, 0); -} - -.modal-dialog-centered { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - min-height: calc(100% - (0.5rem * 2)); -} - -.modal-content { - position: relative; - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - width: 100%; - pointer-events: auto; - background-color: #fff; - background-clip: padding-box; - border: 1px solid rgba(0, 0, 0, 0.2); - border-radius: 3px; - outline: 0; -} - -.modal-backdrop { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 1040; - background-color: #000; -} - -.modal-backdrop.fade { - opacity: 0; -} - -.modal-backdrop.show { - opacity: 0.5; -} - -.modal-header { - display: -ms-flexbox; - display: flex; - -ms-flex-align: start; - align-items: flex-start; - -ms-flex-pack: justify; - justify-content: space-between; - padding: 1rem; - border-bottom: 1px solid #e9ecef; - border-top-left-radius: 3px; - border-top-right-radius: 3px; -} - -.modal-header .close { - padding: 1rem; - margin: -1rem -1rem -1rem auto; -} - -.modal-title { - margin-bottom: 0; - line-height: 1.5; -} - -.modal-body { - position: relative; - -ms-flex: 1 1 auto; - flex: 1 1 auto; - padding: 1rem; -} - -.modal-footer { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: end; - justify-content: flex-end; - padding: 1rem; - border-top: 1px solid #e9ecef; -} - -.modal-footer > :not(:first-child) { - margin-left: .25rem; -} - -.modal-footer > :not(:last-child) { - margin-right: .25rem; -} - -.modal-scrollbar-measure { - position: absolute; - top: -9999px; - width: 50px; - height: 50px; - overflow: scroll; -} - -@media (min-width: 576px) { - .modal-dialog { - max-width: 500px; - margin: 1.75rem auto; - } - .modal-dialog-centered { - min-height: calc(100% - (1.75rem * 2)); - } - .modal-sm { - max-width: 300px; - } -} - -@media (min-width: 992px) { - .modal-lg { - max-width: 800px; - } -} - -.tooltip { - position: absolute; - z-index: 1070; - display: block; - margin: 0; - font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; - font-style: normal; - font-weight: 400; - line-height: 1.5; - text-align: left; - text-align: start; - text-decoration: none; - text-shadow: none; - text-transform: none; - letter-spacing: normal; - word-break: normal; - word-spacing: normal; - white-space: normal; - line-break: auto; - font-size: 0.875rem; - word-wrap: break-word; - opacity: 0; -} - -.tooltip.show { - opacity: 0.9; -} - -.tooltip .arrow { - position: absolute; - display: block; - width: 0.8rem; - height: 0.4rem; -} - -.tooltip .arrow::before { - position: absolute; - content: ""; - border-color: transparent; - border-style: solid; -} - -.bs-tooltip-top, .bs-tooltip-auto[x-placement^="top"] { - padding: 0.4rem 0; -} - -.bs-tooltip-top .arrow, .bs-tooltip-auto[x-placement^="top"] .arrow { - bottom: 0; -} - -.bs-tooltip-top .arrow::before, .bs-tooltip-auto[x-placement^="top"] .arrow::before { - top: 0; - border-width: 0.4rem 0.4rem 0; - border-top-color: #000; -} - -.bs-tooltip-right, .bs-tooltip-auto[x-placement^="right"] { - padding: 0 0.4rem; -} - -.bs-tooltip-right .arrow, .bs-tooltip-auto[x-placement^="right"] .arrow { - left: 0; - width: 0.4rem; - height: 0.8rem; -} - -.bs-tooltip-right .arrow::before, .bs-tooltip-auto[x-placement^="right"] .arrow::before { - right: 0; - border-width: 0.4rem 0.4rem 0.4rem 0; - border-right-color: #000; -} - -.bs-tooltip-bottom, .bs-tooltip-auto[x-placement^="bottom"] { - padding: 0.4rem 0; -} - -.bs-tooltip-bottom .arrow, .bs-tooltip-auto[x-placement^="bottom"] .arrow { - top: 0; -} - -.bs-tooltip-bottom .arrow::before, .bs-tooltip-auto[x-placement^="bottom"] .arrow::before { - bottom: 0; - border-width: 0 0.4rem 0.4rem; - border-bottom-color: #000; -} - -.bs-tooltip-left, .bs-tooltip-auto[x-placement^="left"] { - padding: 0 0.4rem; -} - -.bs-tooltip-left .arrow, .bs-tooltip-auto[x-placement^="left"] .arrow { - right: 0; - width: 0.4rem; - height: 0.8rem; -} - -.bs-tooltip-left .arrow::before, .bs-tooltip-auto[x-placement^="left"] .arrow::before { - left: 0; - border-width: 0.4rem 0 0.4rem 0.4rem; - border-left-color: #000; -} - -.tooltip-inner { - max-width: 200px; - padding: 0.25rem 0.5rem; - color: #fff; - text-align: center; - background-color: #000; - border-radius: 3px; -} - -.popover { - position: absolute; - top: 0; - left: 0; - z-index: 1060; - display: block; - max-width: 276px; - font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; - font-style: normal; - font-weight: 400; - line-height: 1.5; - text-align: left; - text-align: start; - text-decoration: none; - text-shadow: none; - text-transform: none; - letter-spacing: normal; - word-break: normal; - word-spacing: normal; - white-space: normal; - line-break: auto; - font-size: 0.875rem; - word-wrap: break-word; - background-color: #fff; - background-clip: padding-box; - border: 1px solid #dee3eb; - border-radius: 3px; -} - -.popover .arrow { - position: absolute; - display: block; - width: 0.5rem; - height: 0.5rem; - margin: 0 3px; -} - -.popover .arrow::before, .popover .arrow::after { - position: absolute; - display: block; - content: ""; - border-color: transparent; - border-style: solid; -} - -.bs-popover-top, .bs-popover-auto[x-placement^="top"] { - margin-bottom: 0.5rem; -} - -.bs-popover-top .arrow, .bs-popover-auto[x-placement^="top"] .arrow { - bottom: calc((0.5rem + 1px) * -1); -} - -.bs-popover-top .arrow::before, .bs-popover-auto[x-placement^="top"] .arrow::before, -.bs-popover-top .arrow::after, -.bs-popover-auto[x-placement^="top"] .arrow::after { - border-width: 0.5rem 0.25rem 0; -} - -.bs-popover-top .arrow::before, .bs-popover-auto[x-placement^="top"] .arrow::before { - bottom: 0; - border-top-color: #dee3eb; -} - - -.bs-popover-top .arrow::after, -.bs-popover-auto[x-placement^="top"] .arrow::after { - bottom: 1px; - border-top-color: #fff; -} - -.bs-popover-right, .bs-popover-auto[x-placement^="right"] { - margin-left: 0.5rem; -} - -.bs-popover-right .arrow, .bs-popover-auto[x-placement^="right"] .arrow { - left: calc((0.5rem + 1px) * -1); - width: 0.5rem; - height: 0.5rem; - margin: 3px 0; -} - -.bs-popover-right .arrow::before, .bs-popover-auto[x-placement^="right"] .arrow::before, -.bs-popover-right .arrow::after, -.bs-popover-auto[x-placement^="right"] .arrow::after { - border-width: 0.25rem 0.5rem 0.25rem 0; -} - -.bs-popover-right .arrow::before, .bs-popover-auto[x-placement^="right"] .arrow::before { - left: 0; - border-right-color: #dee3eb; -} - - -.bs-popover-right .arrow::after, -.bs-popover-auto[x-placement^="right"] .arrow::after { - left: 1px; - border-right-color: #fff; -} - -.bs-popover-bottom, .bs-popover-auto[x-placement^="bottom"] { - margin-top: 0.5rem; -} - -.bs-popover-bottom .arrow, .bs-popover-auto[x-placement^="bottom"] .arrow { - top: calc((0.5rem + 1px) * -1); -} - -.bs-popover-bottom .arrow::before, .bs-popover-auto[x-placement^="bottom"] .arrow::before, -.bs-popover-bottom .arrow::after, -.bs-popover-auto[x-placement^="bottom"] .arrow::after { - border-width: 0 0.25rem 0.5rem 0.25rem; -} - -.bs-popover-bottom .arrow::before, .bs-popover-auto[x-placement^="bottom"] .arrow::before { - top: 0; - border-bottom-color: #dee3eb; -} - - -.bs-popover-bottom .arrow::after, -.bs-popover-auto[x-placement^="bottom"] .arrow::after { - top: 1px; - border-bottom-color: #fff; -} - -.bs-popover-bottom .popover-header::before, .bs-popover-auto[x-placement^="bottom"] .popover-header::before { - position: absolute; - top: 0; - left: 50%; - display: block; - width: 0.5rem; - margin-left: -0.25rem; - content: ""; - border-bottom: 1px solid #f7f7f7; -} - -.bs-popover-left, .bs-popover-auto[x-placement^="left"] { - margin-right: 0.5rem; -} - -.bs-popover-left .arrow, .bs-popover-auto[x-placement^="left"] .arrow { - right: calc((0.5rem + 1px) * -1); - width: 0.5rem; - height: 0.5rem; - margin: 3px 0; -} - -.bs-popover-left .arrow::before, .bs-popover-auto[x-placement^="left"] .arrow::before, -.bs-popover-left .arrow::after, -.bs-popover-auto[x-placement^="left"] .arrow::after { - border-width: 0.25rem 0 0.25rem 0.5rem; -} - -.bs-popover-left .arrow::before, .bs-popover-auto[x-placement^="left"] .arrow::before { - right: 0; - border-left-color: #dee3eb; -} - - -.bs-popover-left .arrow::after, -.bs-popover-auto[x-placement^="left"] .arrow::after { - right: 1px; - border-left-color: #fff; -} - -.popover-header { - padding: 0.5rem 0.75rem; - margin-bottom: 0; - font-size: 0.9375rem; - color: inherit; - background-color: #f7f7f7; - border-bottom: 1px solid #ebebeb; - border-top-left-radius: calc(3px - 1px); - border-top-right-radius: calc(3px - 1px); -} - -.popover-header:empty { - display: none; -} - -.popover-body { - padding: 0.75rem 1rem; - color: #6e7687; -} - -.carousel { - position: relative; -} - -.carousel-inner { - position: relative; - width: 100%; - overflow: hidden; -} - -.carousel-item { - position: relative; - display: none; - -ms-flex-align: center; - align-items: center; - width: 100%; - transition: -webkit-transform 0.6s ease; - transition: transform 0.6s ease; - transition: transform 0.6s ease, -webkit-transform 0.6s ease; - -webkit-backface-visibility: hidden; - backface-visibility: hidden; - -webkit-perspective: 1000px; - perspective: 1000px; -} - -@media screen and (prefers-reduced-motion: reduce) { - .carousel-item { - transition: none; - } -} - -.carousel-item.active, -.carousel-item-next, -.carousel-item-prev { - display: block; -} - -.carousel-item-next, -.carousel-item-prev { - position: absolute; - top: 0; -} - -.carousel-item-next.carousel-item-left, -.carousel-item-prev.carousel-item-right { - -webkit-transform: translateX(0); - transform: translateX(0); -} - -@supports ((-webkit-transform-style: preserve-3d) or (transform-style: preserve-3d)) { - .carousel-item-next.carousel-item-left, - .carousel-item-prev.carousel-item-right { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); - } -} - -.carousel-item-next, -.active.carousel-item-right { - -webkit-transform: translateX(100%); - transform: translateX(100%); -} - -@supports ((-webkit-transform-style: preserve-3d) or (transform-style: preserve-3d)) { - .carousel-item-next, - .active.carousel-item-right { - -webkit-transform: translate3d(100%, 0, 0); - transform: translate3d(100%, 0, 0); - } -} - -.carousel-item-prev, -.active.carousel-item-left { - -webkit-transform: translateX(-100%); - transform: translateX(-100%); -} - -@supports ((-webkit-transform-style: preserve-3d) or (transform-style: preserve-3d)) { - .carousel-item-prev, - .active.carousel-item-left { - -webkit-transform: translate3d(-100%, 0, 0); - transform: translate3d(-100%, 0, 0); - } -} - -.carousel-fade .carousel-item { - opacity: 0; - transition-duration: .6s; - transition-property: opacity; -} - -.carousel-fade .carousel-item.active, -.carousel-fade .carousel-item-next.carousel-item-left, -.carousel-fade .carousel-item-prev.carousel-item-right { - opacity: 1; -} - -.carousel-fade .active.carousel-item-left, -.carousel-fade .active.carousel-item-right { - opacity: 0; -} - -.carousel-fade .carousel-item-next, -.carousel-fade .carousel-item-prev, -.carousel-fade .carousel-item.active, -.carousel-fade .active.carousel-item-left, -.carousel-fade .active.carousel-item-prev { - -webkit-transform: translateX(0); - transform: translateX(0); -} - -@supports ((-webkit-transform-style: preserve-3d) or (transform-style: preserve-3d)) { - .carousel-fade .carousel-item-next, - .carousel-fade .carousel-item-prev, - .carousel-fade .carousel-item.active, - .carousel-fade .active.carousel-item-left, - .carousel-fade .active.carousel-item-prev { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); - } -} - -.carousel-control-prev, -.carousel-control-next { - position: absolute; - top: 0; - bottom: 0; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - width: 15%; - color: #fff; - text-align: center; - opacity: 0.5; -} - -.carousel-control-prev:hover, .carousel-control-prev:focus, -.carousel-control-next:hover, -.carousel-control-next:focus { - color: #fff; - text-decoration: none; - outline: 0; - opacity: .9; -} - -.carousel-control-prev { - left: 0; -} - -.carousel-control-next { - right: 0; -} - -.carousel-control-prev-icon, -.carousel-control-next-icon { - display: inline-block; - width: 20px; - height: 20px; - background: transparent no-repeat center center; - background-size: 100% 100%; -} - -.carousel-control-prev-icon { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E"); -} - -.carousel-control-next-icon { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E"); -} - -.carousel-indicators { - position: absolute; - right: 0; - bottom: 10px; - left: 0; - z-index: 15; - display: -ms-flexbox; - display: flex; - -ms-flex-pack: center; - justify-content: center; - padding-left: 0; - margin-right: 15%; - margin-left: 15%; - list-style: none; -} - -.carousel-indicators li { - position: relative; - -ms-flex: 0 1 auto; - flex: 0 1 auto; - width: 30px; - height: 3px; - margin-right: 3px; - margin-left: 3px; - text-indent: -999px; - background-color: rgba(255, 255, 255, 0.5); -} - -.carousel-indicators li::before { - position: absolute; - top: -10px; - left: 0; - display: inline-block; - width: 100%; - height: 10px; - content: ""; -} - -.carousel-indicators li::after { - position: absolute; - bottom: -10px; - left: 0; - display: inline-block; - width: 100%; - height: 10px; - content: ""; -} - -.carousel-indicators .active { - background-color: #fff; -} - -.carousel-caption { - position: absolute; - right: 15%; - bottom: 20px; - left: 15%; - z-index: 10; - padding-top: 20px; - padding-bottom: 20px; - color: #fff; - text-align: center; -} - -.align-baseline { - vertical-align: baseline !important; -} - -.align-top { - vertical-align: top !important; -} - -.align-middle { - vertical-align: middle !important; -} - -.align-bottom { - vertical-align: bottom !important; -} - -.align-text-bottom { - vertical-align: text-bottom !important; -} - -.align-text-top { - vertical-align: text-top !important; -} - -.bg-primary { - background-color: #467fcf !important; -} - -a.bg-primary:hover, a.bg-primary:focus, -button.bg-primary:hover, -button.bg-primary:focus { - background-color: #2f66b3 !important; -} - -.bg-secondary { - background-color: #868e96 !important; -} - -a.bg-secondary:hover, a.bg-secondary:focus, -button.bg-secondary:hover, -button.bg-secondary:focus { - background-color: #6c757d !important; -} - -.bg-success { - background-color: #5eba00 !important; -} - -a.bg-success:hover, a.bg-success:focus, -button.bg-success:hover, -button.bg-success:focus { - background-color: #448700 !important; -} - -.bg-info { - background-color: #45aaf2 !important; -} - -a.bg-info:hover, a.bg-info:focus, -button.bg-info:hover, -button.bg-info:focus { - background-color: #1594ef !important; -} - -.bg-warning { - background-color: #f1c40f !important; -} - -a.bg-warning:hover, a.bg-warning:focus, -button.bg-warning:hover, -button.bg-warning:focus { - background-color: #c29d0b !important; -} - -.bg-danger { - background-color: #cd201f !important; -} - -a.bg-danger:hover, a.bg-danger:focus, -button.bg-danger:hover, -button.bg-danger:focus { - background-color: #a11918 !important; -} - -.bg-light { - background-color: #f8f9fa !important; -} - -a.bg-light:hover, a.bg-light:focus, -button.bg-light:hover, -button.bg-light:focus { - background-color: #dae0e5 !important; -} - -.bg-dark { - background-color: #343a40 !important; -} - -a.bg-dark:hover, a.bg-dark:focus, -button.bg-dark:hover, -button.bg-dark:focus { - background-color: #1d2124 !important; -} - -.bg-white { - background-color: #fff !important; -} - -.bg-transparent { - background-color: transparent !important; -} - -.border { - border: 1px solid rgba(0, 40, 100, 0.12) !important; -} - -.border-top { - border-top: 1px solid rgba(0, 40, 100, 0.12) !important; -} - -.border-right { - border-right: 1px solid rgba(0, 40, 100, 0.12) !important; -} - -.border-bottom { - border-bottom: 1px solid rgba(0, 40, 100, 0.12) !important; -} - -.border-left { - border-left: 1px solid rgba(0, 40, 100, 0.12) !important; -} - -.border-0 { - border: 0 !important; -} - -.border-top-0 { - border-top: 0 !important; -} - -.border-right-0 { - border-right: 0 !important; -} - -.border-bottom-0 { - border-bottom: 0 !important; -} - -.border-left-0 { - border-left: 0 !important; -} - -.border-primary { - border-color: #467fcf !important; -} - -.border-secondary { - border-color: #868e96 !important; -} - -.border-success { - border-color: #5eba00 !important; -} - -.border-info { - border-color: #45aaf2 !important; -} - -.border-warning { - border-color: #f1c40f !important; -} - -.border-danger { - border-color: #cd201f !important; -} - -.border-light { - border-color: #f8f9fa !important; -} - -.border-dark { - border-color: #343a40 !important; -} - -.border-white { - border-color: #fff !important; -} - -.rounded { - border-radius: 3px !important; -} - -.rounded-top { - border-top-left-radius: 3px !important; - border-top-right-radius: 3px !important; -} - -.rounded-right { - border-top-right-radius: 3px !important; - border-bottom-right-radius: 3px !important; -} - -.rounded-bottom { - border-bottom-right-radius: 3px !important; - border-bottom-left-radius: 3px !important; -} - -.rounded-left { - border-top-left-radius: 3px !important; - border-bottom-left-radius: 3px !important; -} - -.rounded-circle { - border-radius: 50% !important; -} - -.rounded-0 { - border-radius: 0 !important; -} - -.clearfix::after { - display: block; - clear: both; - content: ""; -} - -.d-none { - display: none !important; -} - -.d-inline { - display: inline !important; -} - -.d-inline-block { - display: inline-block !important; -} - -.d-block { - display: block !important; -} - -.d-table { - display: table !important; -} - -.d-table-row { - display: table-row !important; -} - -.d-table-cell { - display: table-cell !important; -} - -.d-flex { - display: -ms-flexbox !important; - display: flex !important; -} - -.d-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; -} - -@media (min-width: 576px) { - .d-sm-none { - display: none !important; - } - .d-sm-inline { - display: inline !important; - } - .d-sm-inline-block { - display: inline-block !important; - } - .d-sm-block { - display: block !important; - } - .d-sm-table { - display: table !important; - } - .d-sm-table-row { - display: table-row !important; - } - .d-sm-table-cell { - display: table-cell !important; - } - .d-sm-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-sm-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media (min-width: 768px) { - .d-md-none { - display: none !important; - } - .d-md-inline { - display: inline !important; - } - .d-md-inline-block { - display: inline-block !important; - } - .d-md-block { - display: block !important; - } - .d-md-table { - display: table !important; - } - .d-md-table-row { - display: table-row !important; - } - .d-md-table-cell { - display: table-cell !important; - } - .d-md-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-md-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media (min-width: 992px) { - .d-lg-none { - display: none !important; - } - .d-lg-inline { - display: inline !important; - } - .d-lg-inline-block { - display: inline-block !important; - } - .d-lg-block { - display: block !important; - } - .d-lg-table { - display: table !important; - } - .d-lg-table-row { - display: table-row !important; - } - .d-lg-table-cell { - display: table-cell !important; - } - .d-lg-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-lg-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media (min-width: 1280px) { - .d-xl-none { - display: none !important; - } - .d-xl-inline { - display: inline !important; - } - .d-xl-inline-block { - display: inline-block !important; - } - .d-xl-block { - display: block !important; - } - .d-xl-table { - display: table !important; - } - .d-xl-table-row { - display: table-row !important; - } - .d-xl-table-cell { - display: table-cell !important; - } - .d-xl-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-xl-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media print { - .d-print-none { - display: none !important; - } - .d-print-inline { - display: inline !important; - } - .d-print-inline-block { - display: inline-block !important; - } - .d-print-block { - display: block !important; - } - .d-print-table { - display: table !important; - } - .d-print-table-row { - display: table-row !important; - } - .d-print-table-cell { - display: table-cell !important; - } - .d-print-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-print-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -.embed-responsive { - position: relative; - display: block; - width: 100%; - padding: 0; - overflow: hidden; -} - -.embed-responsive::before { - display: block; - content: ""; -} - -.embed-responsive .embed-responsive-item, -.embed-responsive iframe, -.embed-responsive embed, -.embed-responsive object, -.embed-responsive video { - position: absolute; - top: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - border: 0; -} - -.embed-responsive-21by9::before { - padding-top: 42.85714286%; -} - -.embed-responsive-16by9::before { - padding-top: 56.25%; -} - -.embed-responsive-4by3::before { - padding-top: 75%; -} - -.embed-responsive-1by1::before { - padding-top: 100%; -} - -.flex-row { - -ms-flex-direction: row !important; - flex-direction: row !important; -} - -.flex-column { - -ms-flex-direction: column !important; - flex-direction: column !important; -} - -.flex-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; -} - -.flex-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; -} - -.flex-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; -} - -.flex-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; -} - -.flex-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; -} - -.flex-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; -} - -.flex-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; -} - -.flex-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; -} - -.flex-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; -} - -.flex-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; -} - -.justify-content-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; -} - -.justify-content-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; -} - -.justify-content-center { - -ms-flex-pack: center !important; - justify-content: center !important; -} - -.justify-content-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; -} - -.justify-content-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; -} - -.align-items-start { - -ms-flex-align: start !important; - align-items: flex-start !important; -} - -.align-items-end { - -ms-flex-align: end !important; - align-items: flex-end !important; -} - -.align-items-center { - -ms-flex-align: center !important; - align-items: center !important; -} - -.align-items-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; -} - -.align-items-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; -} - -.align-content-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; -} - -.align-content-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; -} - -.align-content-center { - -ms-flex-line-pack: center !important; - align-content: center !important; -} - -.align-content-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; -} - -.align-content-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; -} - -.align-content-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; -} - -.align-self-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; -} - -.align-self-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; -} - -.align-self-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; -} - -.align-self-center { - -ms-flex-item-align: center !important; - align-self: center !important; -} - -.align-self-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; -} - -.align-self-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; -} - -@media (min-width: 576px) { - .flex-sm-row { - -ms-flex-direction: row !important; - flex-direction: row !important; - } - .flex-sm-column { - -ms-flex-direction: column !important; - flex-direction: column !important; - } - .flex-sm-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; - } - .flex-sm-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; - } - .flex-sm-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; - } - .flex-sm-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; - } - .flex-sm-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; - } - .flex-sm-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; - } - .flex-sm-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; - } - .flex-sm-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; - } - .flex-sm-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; - } - .flex-sm-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; - } - .justify-content-sm-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; - } - .justify-content-sm-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; - } - .justify-content-sm-center { - -ms-flex-pack: center !important; - justify-content: center !important; - } - .justify-content-sm-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; - } - .justify-content-sm-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; - } - .align-items-sm-start { - -ms-flex-align: start !important; - align-items: flex-start !important; - } - .align-items-sm-end { - -ms-flex-align: end !important; - align-items: flex-end !important; - } - .align-items-sm-center { - -ms-flex-align: center !important; - align-items: center !important; - } - .align-items-sm-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; - } - .align-items-sm-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; - } - .align-content-sm-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; - } - .align-content-sm-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; - } - .align-content-sm-center { - -ms-flex-line-pack: center !important; - align-content: center !important; - } - .align-content-sm-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; - } - .align-content-sm-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; - } - .align-content-sm-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; - } - .align-self-sm-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; - } - .align-self-sm-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; - } - .align-self-sm-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; - } - .align-self-sm-center { - -ms-flex-item-align: center !important; - align-self: center !important; - } - .align-self-sm-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; - } - .align-self-sm-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; - } -} - -@media (min-width: 768px) { - .flex-md-row { - -ms-flex-direction: row !important; - flex-direction: row !important; - } - .flex-md-column { - -ms-flex-direction: column !important; - flex-direction: column !important; - } - .flex-md-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; - } - .flex-md-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; - } - .flex-md-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; - } - .flex-md-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; - } - .flex-md-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; - } - .flex-md-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; - } - .flex-md-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; - } - .flex-md-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; - } - .flex-md-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; - } - .flex-md-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; - } - .justify-content-md-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; - } - .justify-content-md-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; - } - .justify-content-md-center { - -ms-flex-pack: center !important; - justify-content: center !important; - } - .justify-content-md-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; - } - .justify-content-md-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; - } - .align-items-md-start { - -ms-flex-align: start !important; - align-items: flex-start !important; - } - .align-items-md-end { - -ms-flex-align: end !important; - align-items: flex-end !important; - } - .align-items-md-center { - -ms-flex-align: center !important; - align-items: center !important; - } - .align-items-md-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; - } - .align-items-md-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; - } - .align-content-md-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; - } - .align-content-md-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; - } - .align-content-md-center { - -ms-flex-line-pack: center !important; - align-content: center !important; - } - .align-content-md-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; - } - .align-content-md-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; - } - .align-content-md-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; - } - .align-self-md-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; - } - .align-self-md-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; - } - .align-self-md-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; - } - .align-self-md-center { - -ms-flex-item-align: center !important; - align-self: center !important; - } - .align-self-md-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; - } - .align-self-md-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; - } -} - -@media (min-width: 992px) { - .flex-lg-row { - -ms-flex-direction: row !important; - flex-direction: row !important; - } - .flex-lg-column { - -ms-flex-direction: column !important; - flex-direction: column !important; - } - .flex-lg-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; - } - .flex-lg-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; - } - .flex-lg-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; - } - .flex-lg-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; - } - .flex-lg-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; - } - .flex-lg-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; - } - .flex-lg-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; - } - .flex-lg-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; - } - .flex-lg-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; - } - .flex-lg-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; - } - .justify-content-lg-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; - } - .justify-content-lg-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; - } - .justify-content-lg-center { - -ms-flex-pack: center !important; - justify-content: center !important; - } - .justify-content-lg-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; - } - .justify-content-lg-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; - } - .align-items-lg-start { - -ms-flex-align: start !important; - align-items: flex-start !important; - } - .align-items-lg-end { - -ms-flex-align: end !important; - align-items: flex-end !important; - } - .align-items-lg-center { - -ms-flex-align: center !important; - align-items: center !important; - } - .align-items-lg-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; - } - .align-items-lg-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; - } - .align-content-lg-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; - } - .align-content-lg-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; - } - .align-content-lg-center { - -ms-flex-line-pack: center !important; - align-content: center !important; - } - .align-content-lg-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; - } - .align-content-lg-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; - } - .align-content-lg-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; - } - .align-self-lg-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; - } - .align-self-lg-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; - } - .align-self-lg-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; - } - .align-self-lg-center { - -ms-flex-item-align: center !important; - align-self: center !important; - } - .align-self-lg-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; - } - .align-self-lg-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; - } -} - -@media (min-width: 1280px) { - .flex-xl-row { - -ms-flex-direction: row !important; - flex-direction: row !important; - } - .flex-xl-column { - -ms-flex-direction: column !important; - flex-direction: column !important; - } - .flex-xl-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; - } - .flex-xl-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; - } - .flex-xl-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; - } - .flex-xl-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; - } - .flex-xl-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; - } - .flex-xl-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; - } - .flex-xl-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; - } - .flex-xl-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; - } - .flex-xl-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; - } - .flex-xl-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; - } - .justify-content-xl-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; - } - .justify-content-xl-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; - } - .justify-content-xl-center { - -ms-flex-pack: center !important; - justify-content: center !important; - } - .justify-content-xl-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; - } - .justify-content-xl-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; - } - .align-items-xl-start { - -ms-flex-align: start !important; - align-items: flex-start !important; - } - .align-items-xl-end { - -ms-flex-align: end !important; - align-items: flex-end !important; - } - .align-items-xl-center { - -ms-flex-align: center !important; - align-items: center !important; - } - .align-items-xl-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; - } - .align-items-xl-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; - } - .align-content-xl-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; - } - .align-content-xl-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; - } - .align-content-xl-center { - -ms-flex-line-pack: center !important; - align-content: center !important; - } - .align-content-xl-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; - } - .align-content-xl-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; - } - .align-content-xl-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; - } - .align-self-xl-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; - } - .align-self-xl-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; - } - .align-self-xl-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; - } - .align-self-xl-center { - -ms-flex-item-align: center !important; - align-self: center !important; - } - .align-self-xl-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; - } - .align-self-xl-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; - } -} - -.float-left { - float: left !important; -} - -.float-right { - float: right !important; -} - -.float-none { - float: none !important; -} - -@media (min-width: 576px) { - .float-sm-left { - float: left !important; - } - .float-sm-right { - float: right !important; - } - .float-sm-none { - float: none !important; - } -} - -@media (min-width: 768px) { - .float-md-left { - float: left !important; - } - .float-md-right { - float: right !important; - } - .float-md-none { - float: none !important; - } -} - -@media (min-width: 992px) { - .float-lg-left { - float: left !important; - } - .float-lg-right { - float: right !important; - } - .float-lg-none { - float: none !important; - } -} - -@media (min-width: 1280px) { - .float-xl-left { - float: left !important; - } - .float-xl-right { - float: right !important; - } - .float-xl-none { - float: none !important; - } -} - -.position-static { - position: static !important; -} - -.position-relative { - position: relative !important; -} - -.position-absolute { - position: absolute !important; -} - -.position-fixed { - position: fixed !important; -} - -.position-sticky { - position: -webkit-sticky !important; - position: sticky !important; -} - -.fixed-top { - position: fixed; - top: 0; - right: 0; - left: 0; - z-index: 1030; -} - -.fixed-bottom { - position: fixed; - right: 0; - bottom: 0; - left: 0; - z-index: 1030; -} - -@supports ((position: -webkit-sticky) or (position: sticky)) { - .sticky-top { - position: -webkit-sticky; - position: sticky; - top: 0; - z-index: 1020; - } -} - -.sr-only { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - overflow: hidden; - clip: rect(0, 0, 0, 0); - white-space: nowrap; - border: 0; -} - -.sr-only-focusable:active, .sr-only-focusable:focus { - position: static; - width: auto; - height: auto; - overflow: visible; - clip: auto; - white-space: normal; -} - -.shadow-sm { - box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; -} - -.shadow { - box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; -} - -.shadow-lg { - box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important; -} - -.shadow-none { - box-shadow: none !important; -} - -.w-25 { - width: 25% !important; -} - -.w-50 { - width: 50% !important; -} - -.w-75 { - width: 75% !important; -} - -.w-100 { - width: 100% !important; -} - -.w-auto { - width: auto !important; -} - -.w-0 { - width: 0 !important; -} - -.w-1 { - width: 0.25rem !important; -} - -.w-2 { - width: 0.5rem !important; -} - -.w-3 { - width: 0.75rem !important; -} - -.w-4 { - width: 1rem !important; -} - -.w-5 { - width: 1.5rem !important; -} - -.w-6 { - width: 2rem !important; -} - -.w-7 { - width: 3rem !important; -} - -.w-8 { - width: 4rem !important; -} - -.w-9 { - width: 6rem !important; -} - -.h-25 { - height: 25% !important; -} - -.h-50 { - height: 50% !important; -} - -.h-75 { - height: 75% !important; -} - -.h-100 { - height: 100% !important; -} - -.h-auto { - height: auto !important; -} - -.h-0 { - height: 0 !important; -} - -.h-1 { - height: 0.25rem !important; -} - -.h-2 { - height: 0.5rem !important; -} - -.h-3 { - height: 0.75rem !important; -} - -.h-4 { - height: 1rem !important; -} - -.h-5 { - height: 1.5rem !important; -} - -.h-6 { - height: 2rem !important; -} - -.h-7 { - height: 3rem !important; -} - -.h-8 { - height: 4rem !important; -} - -.h-9 { - height: 6rem !important; -} - -.mw-100 { - max-width: 100% !important; -} - -.mh-100 { - max-height: 100% !important; -} - -.m-0 { - margin: 0 !important; -} - -.mt-0, -.my-0 { - margin-top: 0 !important; -} - -.mr-0, -.mx-0 { - margin-right: 0 !important; -} - -.mb-0, -.my-0 { - margin-bottom: 0 !important; -} - -.ml-0, -.mx-0 { - margin-left: 0 !important; -} - -.m-1 { - margin: 0.25rem !important; -} - -.mt-1, -.my-1 { - margin-top: 0.25rem !important; -} - -.mr-1, -.mx-1 { - margin-right: 0.25rem !important; -} - -.mb-1, -.my-1 { - margin-bottom: 0.25rem !important; -} - -.ml-1, -.mx-1 { - margin-left: 0.25rem !important; -} - -.m-2 { - margin: 0.5rem !important; -} - -.mt-2, -.my-2 { - margin-top: 0.5rem !important; -} - -.mr-2, -.mx-2 { - margin-right: 0.5rem !important; -} - -.mb-2, -.my-2 { - margin-bottom: 0.5rem !important; -} - -.ml-2, -.mx-2 { - margin-left: 0.5rem !important; -} - -.m-3 { - margin: 0.75rem !important; -} - -.mt-3, -.my-3 { - margin-top: 0.75rem !important; -} - -.mr-3, -.mx-3 { - margin-right: 0.75rem !important; -} - -.mb-3, -.my-3 { - margin-bottom: 0.75rem !important; -} - -.ml-3, -.mx-3 { - margin-left: 0.75rem !important; -} - -.m-4 { - margin: 1rem !important; -} - -.mt-4, -.my-4 { - margin-top: 1rem !important; -} - -.mr-4, -.mx-4 { - margin-right: 1rem !important; -} - -.mb-4, -.my-4 { - margin-bottom: 1rem !important; -} - -.ml-4, -.mx-4 { - margin-left: 1rem !important; -} - -.m-5 { - margin: 1.5rem !important; -} - -.mt-5, -.my-5 { - margin-top: 1.5rem !important; -} - -.mr-5, -.mx-5 { - margin-right: 1.5rem !important; -} - -.mb-5, -.my-5 { - margin-bottom: 1.5rem !important; -} - -.ml-5, -.mx-5 { - margin-left: 1.5rem !important; -} - -.m-6 { - margin: 2rem !important; -} - -.mt-6, -.my-6 { - margin-top: 2rem !important; -} - -.mr-6, -.mx-6 { - margin-right: 2rem !important; -} - -.mb-6, -.my-6 { - margin-bottom: 2rem !important; -} - -.ml-6, -.mx-6 { - margin-left: 2rem !important; -} - -.m-7 { - margin: 3rem !important; -} - -.mt-7, -.my-7 { - margin-top: 3rem !important; -} - -.mr-7, -.mx-7 { - margin-right: 3rem !important; -} - -.mb-7, -.my-7 { - margin-bottom: 3rem !important; -} - -.ml-7, -.mx-7 { - margin-left: 3rem !important; -} - -.m-8 { - margin: 4rem !important; -} - -.mt-8, -.my-8 { - margin-top: 4rem !important; -} - -.mr-8, -.mx-8 { - margin-right: 4rem !important; -} - -.mb-8, -.my-8 { - margin-bottom: 4rem !important; -} - -.ml-8, -.mx-8 { - margin-left: 4rem !important; -} - -.m-9 { - margin: 6rem !important; -} - -.mt-9, -.my-9 { - margin-top: 6rem !important; -} - -.mr-9, -.mx-9 { - margin-right: 6rem !important; -} - -.mb-9, -.my-9 { - margin-bottom: 6rem !important; -} - -.ml-9, -.mx-9 { - margin-left: 6rem !important; -} - -.p-0 { - padding: 0 !important; -} - -.pt-0, -.py-0 { - padding-top: 0 !important; -} - -.pr-0, -.px-0 { - padding-right: 0 !important; -} - -.pb-0, -.py-0 { - padding-bottom: 0 !important; -} - -.pl-0, -.px-0 { - padding-left: 0 !important; -} - -.p-1 { - padding: 0.25rem !important; -} - -.pt-1, -.py-1 { - padding-top: 0.25rem !important; -} - -.pr-1, -.px-1 { - padding-right: 0.25rem !important; -} - -.pb-1, -.py-1 { - padding-bottom: 0.25rem !important; -} - -.pl-1, -.px-1 { - padding-left: 0.25rem !important; -} - -.p-2 { - padding: 0.5rem !important; -} - -.pt-2, -.py-2 { - padding-top: 0.5rem !important; -} - -.pr-2, -.px-2 { - padding-right: 0.5rem !important; -} - -.pb-2, -.py-2 { - padding-bottom: 0.5rem !important; -} - -.pl-2, -.px-2 { - padding-left: 0.5rem !important; -} - -.p-3 { - padding: 0.75rem !important; -} - -.pt-3, -.py-3 { - padding-top: 0.75rem !important; -} - -.pr-3, -.px-3 { - padding-right: 0.75rem !important; -} - -.pb-3, -.py-3 { - padding-bottom: 0.75rem !important; -} - -.pl-3, -.px-3 { - padding-left: 0.75rem !important; -} - -.p-4 { - padding: 1rem !important; -} - -.pt-4, -.py-4 { - padding-top: 1rem !important; -} - -.pr-4, -.px-4 { - padding-right: 1rem !important; -} - -.pb-4, -.py-4 { - padding-bottom: 1rem !important; -} - -.pl-4, -.px-4 { - padding-left: 1rem !important; -} - -.p-5 { - padding: 1.5rem !important; -} - -.pt-5, -.py-5 { - padding-top: 1.5rem !important; -} - -.pr-5, -.px-5 { - padding-right: 1.5rem !important; -} - -.pb-5, -.py-5 { - padding-bottom: 1.5rem !important; -} - -.pl-5, -.px-5 { - padding-left: 1.5rem !important; -} - -.p-6 { - padding: 2rem !important; -} - -.pt-6, -.py-6 { - padding-top: 2rem !important; -} - -.pr-6, -.px-6 { - padding-right: 2rem !important; -} - -.pb-6, -.py-6 { - padding-bottom: 2rem !important; -} - -.pl-6, -.px-6 { - padding-left: 2rem !important; -} - -.p-7 { - padding: 3rem !important; -} - -.pt-7, -.py-7 { - padding-top: 3rem !important; -} - -.pr-7, -.px-7 { - padding-right: 3rem !important; -} - -.pb-7, -.py-7 { - padding-bottom: 3rem !important; -} - -.pl-7, -.px-7 { - padding-left: 3rem !important; -} - -.p-8 { - padding: 4rem !important; -} - -.pt-8, -.py-8 { - padding-top: 4rem !important; -} - -.pr-8, -.px-8 { - padding-right: 4rem !important; -} - -.pb-8, -.py-8 { - padding-bottom: 4rem !important; -} - -.pl-8, -.px-8 { - padding-left: 4rem !important; -} - -.p-9 { - padding: 6rem !important; -} - -.pt-9, -.py-9 { - padding-top: 6rem !important; -} - -.pr-9, -.px-9 { - padding-right: 6rem !important; -} - -.pb-9, -.py-9 { - padding-bottom: 6rem !important; -} - -.pl-9, -.px-9 { - padding-left: 6rem !important; -} - -.m-auto { - margin: auto !important; -} - -.mt-auto, -.my-auto { - margin-top: auto !important; -} - -.mr-auto, -.mx-auto { - margin-right: auto !important; -} - -.mb-auto, -.my-auto { - margin-bottom: auto !important; -} - -.ml-auto, -.mx-auto { - margin-left: auto !important; -} - -@media (min-width: 576px) { - .m-sm-0 { - margin: 0 !important; - } - .mt-sm-0, - .my-sm-0 { - margin-top: 0 !important; - } - .mr-sm-0, - .mx-sm-0 { - margin-right: 0 !important; - } - .mb-sm-0, - .my-sm-0 { - margin-bottom: 0 !important; - } - .ml-sm-0, - .mx-sm-0 { - margin-left: 0 !important; - } - .m-sm-1 { - margin: 0.25rem !important; - } - .mt-sm-1, - .my-sm-1 { - margin-top: 0.25rem !important; - } - .mr-sm-1, - .mx-sm-1 { - margin-right: 0.25rem !important; - } - .mb-sm-1, - .my-sm-1 { - margin-bottom: 0.25rem !important; - } - .ml-sm-1, - .mx-sm-1 { - margin-left: 0.25rem !important; - } - .m-sm-2 { - margin: 0.5rem !important; - } - .mt-sm-2, - .my-sm-2 { - margin-top: 0.5rem !important; - } - .mr-sm-2, - .mx-sm-2 { - margin-right: 0.5rem !important; - } - .mb-sm-2, - .my-sm-2 { - margin-bottom: 0.5rem !important; - } - .ml-sm-2, - .mx-sm-2 { - margin-left: 0.5rem !important; - } - .m-sm-3 { - margin: 0.75rem !important; - } - .mt-sm-3, - .my-sm-3 { - margin-top: 0.75rem !important; - } - .mr-sm-3, - .mx-sm-3 { - margin-right: 0.75rem !important; - } - .mb-sm-3, - .my-sm-3 { - margin-bottom: 0.75rem !important; - } - .ml-sm-3, - .mx-sm-3 { - margin-left: 0.75rem !important; - } - .m-sm-4 { - margin: 1rem !important; - } - .mt-sm-4, - .my-sm-4 { - margin-top: 1rem !important; - } - .mr-sm-4, - .mx-sm-4 { - margin-right: 1rem !important; - } - .mb-sm-4, - .my-sm-4 { - margin-bottom: 1rem !important; - } - .ml-sm-4, - .mx-sm-4 { - margin-left: 1rem !important; - } - .m-sm-5 { - margin: 1.5rem !important; - } - .mt-sm-5, - .my-sm-5 { - margin-top: 1.5rem !important; - } - .mr-sm-5, - .mx-sm-5 { - margin-right: 1.5rem !important; - } - .mb-sm-5, - .my-sm-5 { - margin-bottom: 1.5rem !important; - } - .ml-sm-5, - .mx-sm-5 { - margin-left: 1.5rem !important; - } - .m-sm-6 { - margin: 2rem !important; - } - .mt-sm-6, - .my-sm-6 { - margin-top: 2rem !important; - } - .mr-sm-6, - .mx-sm-6 { - margin-right: 2rem !important; - } - .mb-sm-6, - .my-sm-6 { - margin-bottom: 2rem !important; - } - .ml-sm-6, - .mx-sm-6 { - margin-left: 2rem !important; - } - .m-sm-7 { - margin: 3rem !important; - } - .mt-sm-7, - .my-sm-7 { - margin-top: 3rem !important; - } - .mr-sm-7, - .mx-sm-7 { - margin-right: 3rem !important; - } - .mb-sm-7, - .my-sm-7 { - margin-bottom: 3rem !important; - } - .ml-sm-7, - .mx-sm-7 { - margin-left: 3rem !important; - } - .m-sm-8 { - margin: 4rem !important; - } - .mt-sm-8, - .my-sm-8 { - margin-top: 4rem !important; - } - .mr-sm-8, - .mx-sm-8 { - margin-right: 4rem !important; - } - .mb-sm-8, - .my-sm-8 { - margin-bottom: 4rem !important; - } - .ml-sm-8, - .mx-sm-8 { - margin-left: 4rem !important; - } - .m-sm-9 { - margin: 6rem !important; - } - .mt-sm-9, - .my-sm-9 { - margin-top: 6rem !important; - } - .mr-sm-9, - .mx-sm-9 { - margin-right: 6rem !important; - } - .mb-sm-9, - .my-sm-9 { - margin-bottom: 6rem !important; - } - .ml-sm-9, - .mx-sm-9 { - margin-left: 6rem !important; - } - .p-sm-0 { - padding: 0 !important; - } - .pt-sm-0, - .py-sm-0 { - padding-top: 0 !important; - } - .pr-sm-0, - .px-sm-0 { - padding-right: 0 !important; - } - .pb-sm-0, - .py-sm-0 { - padding-bottom: 0 !important; - } - .pl-sm-0, - .px-sm-0 { - padding-left: 0 !important; - } - .p-sm-1 { - padding: 0.25rem !important; - } - .pt-sm-1, - .py-sm-1 { - padding-top: 0.25rem !important; - } - .pr-sm-1, - .px-sm-1 { - padding-right: 0.25rem !important; - } - .pb-sm-1, - .py-sm-1 { - padding-bottom: 0.25rem !important; - } - .pl-sm-1, - .px-sm-1 { - padding-left: 0.25rem !important; - } - .p-sm-2 { - padding: 0.5rem !important; - } - .pt-sm-2, - .py-sm-2 { - padding-top: 0.5rem !important; - } - .pr-sm-2, - .px-sm-2 { - padding-right: 0.5rem !important; - } - .pb-sm-2, - .py-sm-2 { - padding-bottom: 0.5rem !important; - } - .pl-sm-2, - .px-sm-2 { - padding-left: 0.5rem !important; - } - .p-sm-3 { - padding: 0.75rem !important; - } - .pt-sm-3, - .py-sm-3 { - padding-top: 0.75rem !important; - } - .pr-sm-3, - .px-sm-3 { - padding-right: 0.75rem !important; - } - .pb-sm-3, - .py-sm-3 { - padding-bottom: 0.75rem !important; - } - .pl-sm-3, - .px-sm-3 { - padding-left: 0.75rem !important; - } - .p-sm-4 { - padding: 1rem !important; - } - .pt-sm-4, - .py-sm-4 { - padding-top: 1rem !important; - } - .pr-sm-4, - .px-sm-4 { - padding-right: 1rem !important; - } - .pb-sm-4, - .py-sm-4 { - padding-bottom: 1rem !important; - } - .pl-sm-4, - .px-sm-4 { - padding-left: 1rem !important; - } - .p-sm-5 { - padding: 1.5rem !important; - } - .pt-sm-5, - .py-sm-5 { - padding-top: 1.5rem !important; - } - .pr-sm-5, - .px-sm-5 { - padding-right: 1.5rem !important; - } - .pb-sm-5, - .py-sm-5 { - padding-bottom: 1.5rem !important; - } - .pl-sm-5, - .px-sm-5 { - padding-left: 1.5rem !important; - } - .p-sm-6 { - padding: 2rem !important; - } - .pt-sm-6, - .py-sm-6 { - padding-top: 2rem !important; - } - .pr-sm-6, - .px-sm-6 { - padding-right: 2rem !important; - } - .pb-sm-6, - .py-sm-6 { - padding-bottom: 2rem !important; - } - .pl-sm-6, - .px-sm-6 { - padding-left: 2rem !important; - } - .p-sm-7 { - padding: 3rem !important; - } - .pt-sm-7, - .py-sm-7 { - padding-top: 3rem !important; - } - .pr-sm-7, - .px-sm-7 { - padding-right: 3rem !important; - } - .pb-sm-7, - .py-sm-7 { - padding-bottom: 3rem !important; - } - .pl-sm-7, - .px-sm-7 { - padding-left: 3rem !important; - } - .p-sm-8 { - padding: 4rem !important; - } - .pt-sm-8, - .py-sm-8 { - padding-top: 4rem !important; - } - .pr-sm-8, - .px-sm-8 { - padding-right: 4rem !important; - } - .pb-sm-8, - .py-sm-8 { - padding-bottom: 4rem !important; - } - .pl-sm-8, - .px-sm-8 { - padding-left: 4rem !important; - } - .p-sm-9 { - padding: 6rem !important; - } - .pt-sm-9, - .py-sm-9 { - padding-top: 6rem !important; - } - .pr-sm-9, - .px-sm-9 { - padding-right: 6rem !important; - } - .pb-sm-9, - .py-sm-9 { - padding-bottom: 6rem !important; - } - .pl-sm-9, - .px-sm-9 { - padding-left: 6rem !important; - } - .m-sm-auto { - margin: auto !important; - } - .mt-sm-auto, - .my-sm-auto { - margin-top: auto !important; - } - .mr-sm-auto, - .mx-sm-auto { - margin-right: auto !important; - } - .mb-sm-auto, - .my-sm-auto { - margin-bottom: auto !important; - } - .ml-sm-auto, - .mx-sm-auto { - margin-left: auto !important; - } -} - -@media (min-width: 768px) { - .m-md-0 { - margin: 0 !important; - } - .mt-md-0, - .my-md-0 { - margin-top: 0 !important; - } - .mr-md-0, - .mx-md-0 { - margin-right: 0 !important; - } - .mb-md-0, - .my-md-0 { - margin-bottom: 0 !important; - } - .ml-md-0, - .mx-md-0 { - margin-left: 0 !important; - } - .m-md-1 { - margin: 0.25rem !important; - } - .mt-md-1, - .my-md-1 { - margin-top: 0.25rem !important; - } - .mr-md-1, - .mx-md-1 { - margin-right: 0.25rem !important; - } - .mb-md-1, - .my-md-1 { - margin-bottom: 0.25rem !important; - } - .ml-md-1, - .mx-md-1 { - margin-left: 0.25rem !important; - } - .m-md-2 { - margin: 0.5rem !important; - } - .mt-md-2, - .my-md-2 { - margin-top: 0.5rem !important; - } - .mr-md-2, - .mx-md-2 { - margin-right: 0.5rem !important; - } - .mb-md-2, - .my-md-2 { - margin-bottom: 0.5rem !important; - } - .ml-md-2, - .mx-md-2 { - margin-left: 0.5rem !important; - } - .m-md-3 { - margin: 0.75rem !important; - } - .mt-md-3, - .my-md-3 { - margin-top: 0.75rem !important; - } - .mr-md-3, - .mx-md-3 { - margin-right: 0.75rem !important; - } - .mb-md-3, - .my-md-3 { - margin-bottom: 0.75rem !important; - } - .ml-md-3, - .mx-md-3 { - margin-left: 0.75rem !important; - } - .m-md-4 { - margin: 1rem !important; - } - .mt-md-4, - .my-md-4 { - margin-top: 1rem !important; - } - .mr-md-4, - .mx-md-4 { - margin-right: 1rem !important; - } - .mb-md-4, - .my-md-4 { - margin-bottom: 1rem !important; - } - .ml-md-4, - .mx-md-4 { - margin-left: 1rem !important; - } - .m-md-5 { - margin: 1.5rem !important; - } - .mt-md-5, - .my-md-5 { - margin-top: 1.5rem !important; - } - .mr-md-5, - .mx-md-5 { - margin-right: 1.5rem !important; - } - .mb-md-5, - .my-md-5 { - margin-bottom: 1.5rem !important; - } - .ml-md-5, - .mx-md-5 { - margin-left: 1.5rem !important; - } - .m-md-6 { - margin: 2rem !important; - } - .mt-md-6, - .my-md-6 { - margin-top: 2rem !important; - } - .mr-md-6, - .mx-md-6 { - margin-right: 2rem !important; - } - .mb-md-6, - .my-md-6 { - margin-bottom: 2rem !important; - } - .ml-md-6, - .mx-md-6 { - margin-left: 2rem !important; - } - .m-md-7 { - margin: 3rem !important; - } - .mt-md-7, - .my-md-7 { - margin-top: 3rem !important; - } - .mr-md-7, - .mx-md-7 { - margin-right: 3rem !important; - } - .mb-md-7, - .my-md-7 { - margin-bottom: 3rem !important; - } - .ml-md-7, - .mx-md-7 { - margin-left: 3rem !important; - } - .m-md-8 { - margin: 4rem !important; - } - .mt-md-8, - .my-md-8 { - margin-top: 4rem !important; - } - .mr-md-8, - .mx-md-8 { - margin-right: 4rem !important; - } - .mb-md-8, - .my-md-8 { - margin-bottom: 4rem !important; - } - .ml-md-8, - .mx-md-8 { - margin-left: 4rem !important; - } - .m-md-9 { - margin: 6rem !important; - } - .mt-md-9, - .my-md-9 { - margin-top: 6rem !important; - } - .mr-md-9, - .mx-md-9 { - margin-right: 6rem !important; - } - .mb-md-9, - .my-md-9 { - margin-bottom: 6rem !important; - } - .ml-md-9, - .mx-md-9 { - margin-left: 6rem !important; - } - .p-md-0 { - padding: 0 !important; - } - .pt-md-0, - .py-md-0 { - padding-top: 0 !important; - } - .pr-md-0, - .px-md-0 { - padding-right: 0 !important; - } - .pb-md-0, - .py-md-0 { - padding-bottom: 0 !important; - } - .pl-md-0, - .px-md-0 { - padding-left: 0 !important; - } - .p-md-1 { - padding: 0.25rem !important; - } - .pt-md-1, - .py-md-1 { - padding-top: 0.25rem !important; - } - .pr-md-1, - .px-md-1 { - padding-right: 0.25rem !important; - } - .pb-md-1, - .py-md-1 { - padding-bottom: 0.25rem !important; - } - .pl-md-1, - .px-md-1 { - padding-left: 0.25rem !important; - } - .p-md-2 { - padding: 0.5rem !important; - } - .pt-md-2, - .py-md-2 { - padding-top: 0.5rem !important; - } - .pr-md-2, - .px-md-2 { - padding-right: 0.5rem !important; - } - .pb-md-2, - .py-md-2 { - padding-bottom: 0.5rem !important; - } - .pl-md-2, - .px-md-2 { - padding-left: 0.5rem !important; - } - .p-md-3 { - padding: 0.75rem !important; - } - .pt-md-3, - .py-md-3 { - padding-top: 0.75rem !important; - } - .pr-md-3, - .px-md-3 { - padding-right: 0.75rem !important; - } - .pb-md-3, - .py-md-3 { - padding-bottom: 0.75rem !important; - } - .pl-md-3, - .px-md-3 { - padding-left: 0.75rem !important; - } - .p-md-4 { - padding: 1rem !important; - } - .pt-md-4, - .py-md-4 { - padding-top: 1rem !important; - } - .pr-md-4, - .px-md-4 { - padding-right: 1rem !important; - } - .pb-md-4, - .py-md-4 { - padding-bottom: 1rem !important; - } - .pl-md-4, - .px-md-4 { - padding-left: 1rem !important; - } - .p-md-5 { - padding: 1.5rem !important; - } - .pt-md-5, - .py-md-5 { - padding-top: 1.5rem !important; - } - .pr-md-5, - .px-md-5 { - padding-right: 1.5rem !important; - } - .pb-md-5, - .py-md-5 { - padding-bottom: 1.5rem !important; - } - .pl-md-5, - .px-md-5 { - padding-left: 1.5rem !important; - } - .p-md-6 { - padding: 2rem !important; - } - .pt-md-6, - .py-md-6 { - padding-top: 2rem !important; - } - .pr-md-6, - .px-md-6 { - padding-right: 2rem !important; - } - .pb-md-6, - .py-md-6 { - padding-bottom: 2rem !important; - } - .pl-md-6, - .px-md-6 { - padding-left: 2rem !important; - } - .p-md-7 { - padding: 3rem !important; - } - .pt-md-7, - .py-md-7 { - padding-top: 3rem !important; - } - .pr-md-7, - .px-md-7 { - padding-right: 3rem !important; - } - .pb-md-7, - .py-md-7 { - padding-bottom: 3rem !important; - } - .pl-md-7, - .px-md-7 { - padding-left: 3rem !important; - } - .p-md-8 { - padding: 4rem !important; - } - .pt-md-8, - .py-md-8 { - padding-top: 4rem !important; - } - .pr-md-8, - .px-md-8 { - padding-right: 4rem !important; - } - .pb-md-8, - .py-md-8 { - padding-bottom: 4rem !important; - } - .pl-md-8, - .px-md-8 { - padding-left: 4rem !important; - } - .p-md-9 { - padding: 6rem !important; - } - .pt-md-9, - .py-md-9 { - padding-top: 6rem !important; - } - .pr-md-9, - .px-md-9 { - padding-right: 6rem !important; - } - .pb-md-9, - .py-md-9 { - padding-bottom: 6rem !important; - } - .pl-md-9, - .px-md-9 { - padding-left: 6rem !important; - } - .m-md-auto { - margin: auto !important; - } - .mt-md-auto, - .my-md-auto { - margin-top: auto !important; - } - .mr-md-auto, - .mx-md-auto { - margin-right: auto !important; - } - .mb-md-auto, - .my-md-auto { - margin-bottom: auto !important; - } - .ml-md-auto, - .mx-md-auto { - margin-left: auto !important; - } -} - -@media (min-width: 992px) { - .m-lg-0 { - margin: 0 !important; - } - .mt-lg-0, - .my-lg-0 { - margin-top: 0 !important; - } - .mr-lg-0, - .mx-lg-0 { - margin-right: 0 !important; - } - .mb-lg-0, - .my-lg-0 { - margin-bottom: 0 !important; - } - .ml-lg-0, - .mx-lg-0 { - margin-left: 0 !important; - } - .m-lg-1 { - margin: 0.25rem !important; - } - .mt-lg-1, - .my-lg-1 { - margin-top: 0.25rem !important; - } - .mr-lg-1, - .mx-lg-1 { - margin-right: 0.25rem !important; - } - .mb-lg-1, - .my-lg-1 { - margin-bottom: 0.25rem !important; - } - .ml-lg-1, - .mx-lg-1 { - margin-left: 0.25rem !important; - } - .m-lg-2 { - margin: 0.5rem !important; - } - .mt-lg-2, - .my-lg-2 { - margin-top: 0.5rem !important; - } - .mr-lg-2, - .mx-lg-2 { - margin-right: 0.5rem !important; - } - .mb-lg-2, - .my-lg-2 { - margin-bottom: 0.5rem !important; - } - .ml-lg-2, - .mx-lg-2 { - margin-left: 0.5rem !important; - } - .m-lg-3 { - margin: 0.75rem !important; - } - .mt-lg-3, - .my-lg-3 { - margin-top: 0.75rem !important; - } - .mr-lg-3, - .mx-lg-3 { - margin-right: 0.75rem !important; - } - .mb-lg-3, - .my-lg-3 { - margin-bottom: 0.75rem !important; - } - .ml-lg-3, - .mx-lg-3 { - margin-left: 0.75rem !important; - } - .m-lg-4 { - margin: 1rem !important; - } - .mt-lg-4, - .my-lg-4 { - margin-top: 1rem !important; - } - .mr-lg-4, - .mx-lg-4 { - margin-right: 1rem !important; - } - .mb-lg-4, - .my-lg-4 { - margin-bottom: 1rem !important; - } - .ml-lg-4, - .mx-lg-4 { - margin-left: 1rem !important; - } - .m-lg-5 { - margin: 1.5rem !important; - } - .mt-lg-5, - .my-lg-5 { - margin-top: 1.5rem !important; - } - .mr-lg-5, - .mx-lg-5 { - margin-right: 1.5rem !important; - } - .mb-lg-5, - .my-lg-5 { - margin-bottom: 1.5rem !important; - } - .ml-lg-5, - .mx-lg-5 { - margin-left: 1.5rem !important; - } - .m-lg-6 { - margin: 2rem !important; - } - .mt-lg-6, - .my-lg-6 { - margin-top: 2rem !important; - } - .mr-lg-6, - .mx-lg-6 { - margin-right: 2rem !important; - } - .mb-lg-6, - .my-lg-6 { - margin-bottom: 2rem !important; - } - .ml-lg-6, - .mx-lg-6 { - margin-left: 2rem !important; - } - .m-lg-7 { - margin: 3rem !important; - } - .mt-lg-7, - .my-lg-7 { - margin-top: 3rem !important; - } - .mr-lg-7, - .mx-lg-7 { - margin-right: 3rem !important; - } - .mb-lg-7, - .my-lg-7 { - margin-bottom: 3rem !important; - } - .ml-lg-7, - .mx-lg-7 { - margin-left: 3rem !important; - } - .m-lg-8 { - margin: 4rem !important; - } - .mt-lg-8, - .my-lg-8 { - margin-top: 4rem !important; - } - .mr-lg-8, - .mx-lg-8 { - margin-right: 4rem !important; - } - .mb-lg-8, - .my-lg-8 { - margin-bottom: 4rem !important; - } - .ml-lg-8, - .mx-lg-8 { - margin-left: 4rem !important; - } - .m-lg-9 { - margin: 6rem !important; - } - .mt-lg-9, - .my-lg-9 { - margin-top: 6rem !important; - } - .mr-lg-9, - .mx-lg-9 { - margin-right: 6rem !important; - } - .mb-lg-9, - .my-lg-9 { - margin-bottom: 6rem !important; - } - .ml-lg-9, - .mx-lg-9 { - margin-left: 6rem !important; - } - .p-lg-0 { - padding: 0 !important; - } - .pt-lg-0, - .py-lg-0 { - padding-top: 0 !important; - } - .pr-lg-0, - .px-lg-0 { - padding-right: 0 !important; - } - .pb-lg-0, - .py-lg-0 { - padding-bottom: 0 !important; - } - .pl-lg-0, - .px-lg-0 { - padding-left: 0 !important; - } - .p-lg-1 { - padding: 0.25rem !important; - } - .pt-lg-1, - .py-lg-1 { - padding-top: 0.25rem !important; - } - .pr-lg-1, - .px-lg-1 { - padding-right: 0.25rem !important; - } - .pb-lg-1, - .py-lg-1 { - padding-bottom: 0.25rem !important; - } - .pl-lg-1, - .px-lg-1 { - padding-left: 0.25rem !important; - } - .p-lg-2 { - padding: 0.5rem !important; - } - .pt-lg-2, - .py-lg-2 { - padding-top: 0.5rem !important; - } - .pr-lg-2, - .px-lg-2 { - padding-right: 0.5rem !important; - } - .pb-lg-2, - .py-lg-2 { - padding-bottom: 0.5rem !important; - } - .pl-lg-2, - .px-lg-2 { - padding-left: 0.5rem !important; - } - .p-lg-3 { - padding: 0.75rem !important; - } - .pt-lg-3, - .py-lg-3 { - padding-top: 0.75rem !important; - } - .pr-lg-3, - .px-lg-3 { - padding-right: 0.75rem !important; - } - .pb-lg-3, - .py-lg-3 { - padding-bottom: 0.75rem !important; - } - .pl-lg-3, - .px-lg-3 { - padding-left: 0.75rem !important; - } - .p-lg-4 { - padding: 1rem !important; - } - .pt-lg-4, - .py-lg-4 { - padding-top: 1rem !important; - } - .pr-lg-4, - .px-lg-4 { - padding-right: 1rem !important; - } - .pb-lg-4, - .py-lg-4 { - padding-bottom: 1rem !important; - } - .pl-lg-4, - .px-lg-4 { - padding-left: 1rem !important; - } - .p-lg-5 { - padding: 1.5rem !important; - } - .pt-lg-5, - .py-lg-5 { - padding-top: 1.5rem !important; - } - .pr-lg-5, - .px-lg-5 { - padding-right: 1.5rem !important; - } - .pb-lg-5, - .py-lg-5 { - padding-bottom: 1.5rem !important; - } - .pl-lg-5, - .px-lg-5 { - padding-left: 1.5rem !important; - } - .p-lg-6 { - padding: 2rem !important; - } - .pt-lg-6, - .py-lg-6 { - padding-top: 2rem !important; - } - .pr-lg-6, - .px-lg-6 { - padding-right: 2rem !important; - } - .pb-lg-6, - .py-lg-6 { - padding-bottom: 2rem !important; - } - .pl-lg-6, - .px-lg-6 { - padding-left: 2rem !important; - } - .p-lg-7 { - padding: 3rem !important; - } - .pt-lg-7, - .py-lg-7 { - padding-top: 3rem !important; - } - .pr-lg-7, - .px-lg-7 { - padding-right: 3rem !important; - } - .pb-lg-7, - .py-lg-7 { - padding-bottom: 3rem !important; - } - .pl-lg-7, - .px-lg-7 { - padding-left: 3rem !important; - } - .p-lg-8 { - padding: 4rem !important; - } - .pt-lg-8, - .py-lg-8 { - padding-top: 4rem !important; - } - .pr-lg-8, - .px-lg-8 { - padding-right: 4rem !important; - } - .pb-lg-8, - .py-lg-8 { - padding-bottom: 4rem !important; - } - .pl-lg-8, - .px-lg-8 { - padding-left: 4rem !important; - } - .p-lg-9 { - padding: 6rem !important; - } - .pt-lg-9, - .py-lg-9 { - padding-top: 6rem !important; - } - .pr-lg-9, - .px-lg-9 { - padding-right: 6rem !important; - } - .pb-lg-9, - .py-lg-9 { - padding-bottom: 6rem !important; - } - .pl-lg-9, - .px-lg-9 { - padding-left: 6rem !important; - } - .m-lg-auto { - margin: auto !important; - } - .mt-lg-auto, - .my-lg-auto { - margin-top: auto !important; - } - .mr-lg-auto, - .mx-lg-auto { - margin-right: auto !important; - } - .mb-lg-auto, - .my-lg-auto { - margin-bottom: auto !important; - } - .ml-lg-auto, - .mx-lg-auto { - margin-left: auto !important; - } -} - -@media (min-width: 1280px) { - .m-xl-0 { - margin: 0 !important; - } - .mt-xl-0, - .my-xl-0 { - margin-top: 0 !important; - } - .mr-xl-0, - .mx-xl-0 { - margin-right: 0 !important; - } - .mb-xl-0, - .my-xl-0 { - margin-bottom: 0 !important; - } - .ml-xl-0, - .mx-xl-0 { - margin-left: 0 !important; - } - .m-xl-1 { - margin: 0.25rem !important; - } - .mt-xl-1, - .my-xl-1 { - margin-top: 0.25rem !important; - } - .mr-xl-1, - .mx-xl-1 { - margin-right: 0.25rem !important; - } - .mb-xl-1, - .my-xl-1 { - margin-bottom: 0.25rem !important; - } - .ml-xl-1, - .mx-xl-1 { - margin-left: 0.25rem !important; - } - .m-xl-2 { - margin: 0.5rem !important; - } - .mt-xl-2, - .my-xl-2 { - margin-top: 0.5rem !important; - } - .mr-xl-2, - .mx-xl-2 { - margin-right: 0.5rem !important; - } - .mb-xl-2, - .my-xl-2 { - margin-bottom: 0.5rem !important; - } - .ml-xl-2, - .mx-xl-2 { - margin-left: 0.5rem !important; - } - .m-xl-3 { - margin: 0.75rem !important; - } - .mt-xl-3, - .my-xl-3 { - margin-top: 0.75rem !important; - } - .mr-xl-3, - .mx-xl-3 { - margin-right: 0.75rem !important; - } - .mb-xl-3, - .my-xl-3 { - margin-bottom: 0.75rem !important; - } - .ml-xl-3, - .mx-xl-3 { - margin-left: 0.75rem !important; - } - .m-xl-4 { - margin: 1rem !important; - } - .mt-xl-4, - .my-xl-4 { - margin-top: 1rem !important; - } - .mr-xl-4, - .mx-xl-4 { - margin-right: 1rem !important; - } - .mb-xl-4, - .my-xl-4 { - margin-bottom: 1rem !important; - } - .ml-xl-4, - .mx-xl-4 { - margin-left: 1rem !important; - } - .m-xl-5 { - margin: 1.5rem !important; - } - .mt-xl-5, - .my-xl-5 { - margin-top: 1.5rem !important; - } - .mr-xl-5, - .mx-xl-5 { - margin-right: 1.5rem !important; - } - .mb-xl-5, - .my-xl-5 { - margin-bottom: 1.5rem !important; - } - .ml-xl-5, - .mx-xl-5 { - margin-left: 1.5rem !important; - } - .m-xl-6 { - margin: 2rem !important; - } - .mt-xl-6, - .my-xl-6 { - margin-top: 2rem !important; - } - .mr-xl-6, - .mx-xl-6 { - margin-right: 2rem !important; - } - .mb-xl-6, - .my-xl-6 { - margin-bottom: 2rem !important; - } - .ml-xl-6, - .mx-xl-6 { - margin-left: 2rem !important; - } - .m-xl-7 { - margin: 3rem !important; - } - .mt-xl-7, - .my-xl-7 { - margin-top: 3rem !important; - } - .mr-xl-7, - .mx-xl-7 { - margin-right: 3rem !important; - } - .mb-xl-7, - .my-xl-7 { - margin-bottom: 3rem !important; - } - .ml-xl-7, - .mx-xl-7 { - margin-left: 3rem !important; - } - .m-xl-8 { - margin: 4rem !important; - } - .mt-xl-8, - .my-xl-8 { - margin-top: 4rem !important; - } - .mr-xl-8, - .mx-xl-8 { - margin-right: 4rem !important; - } - .mb-xl-8, - .my-xl-8 { - margin-bottom: 4rem !important; - } - .ml-xl-8, - .mx-xl-8 { - margin-left: 4rem !important; - } - .m-xl-9 { - margin: 6rem !important; - } - .mt-xl-9, - .my-xl-9 { - margin-top: 6rem !important; - } - .mr-xl-9, - .mx-xl-9 { - margin-right: 6rem !important; - } - .mb-xl-9, - .my-xl-9 { - margin-bottom: 6rem !important; - } - .ml-xl-9, - .mx-xl-9 { - margin-left: 6rem !important; - } - .p-xl-0 { - padding: 0 !important; - } - .pt-xl-0, - .py-xl-0 { - padding-top: 0 !important; - } - .pr-xl-0, - .px-xl-0 { - padding-right: 0 !important; - } - .pb-xl-0, - .py-xl-0 { - padding-bottom: 0 !important; - } - .pl-xl-0, - .px-xl-0 { - padding-left: 0 !important; - } - .p-xl-1 { - padding: 0.25rem !important; - } - .pt-xl-1, - .py-xl-1 { - padding-top: 0.25rem !important; - } - .pr-xl-1, - .px-xl-1 { - padding-right: 0.25rem !important; - } - .pb-xl-1, - .py-xl-1 { - padding-bottom: 0.25rem !important; - } - .pl-xl-1, - .px-xl-1 { - padding-left: 0.25rem !important; - } - .p-xl-2 { - padding: 0.5rem !important; - } - .pt-xl-2, - .py-xl-2 { - padding-top: 0.5rem !important; - } - .pr-xl-2, - .px-xl-2 { - padding-right: 0.5rem !important; - } - .pb-xl-2, - .py-xl-2 { - padding-bottom: 0.5rem !important; - } - .pl-xl-2, - .px-xl-2 { - padding-left: 0.5rem !important; - } - .p-xl-3 { - padding: 0.75rem !important; - } - .pt-xl-3, - .py-xl-3 { - padding-top: 0.75rem !important; - } - .pr-xl-3, - .px-xl-3 { - padding-right: 0.75rem !important; - } - .pb-xl-3, - .py-xl-3 { - padding-bottom: 0.75rem !important; - } - .pl-xl-3, - .px-xl-3 { - padding-left: 0.75rem !important; - } - .p-xl-4 { - padding: 1rem !important; - } - .pt-xl-4, - .py-xl-4 { - padding-top: 1rem !important; - } - .pr-xl-4, - .px-xl-4 { - padding-right: 1rem !important; - } - .pb-xl-4, - .py-xl-4 { - padding-bottom: 1rem !important; - } - .pl-xl-4, - .px-xl-4 { - padding-left: 1rem !important; - } - .p-xl-5 { - padding: 1.5rem !important; - } - .pt-xl-5, - .py-xl-5 { - padding-top: 1.5rem !important; - } - .pr-xl-5, - .px-xl-5 { - padding-right: 1.5rem !important; - } - .pb-xl-5, - .py-xl-5 { - padding-bottom: 1.5rem !important; - } - .pl-xl-5, - .px-xl-5 { - padding-left: 1.5rem !important; - } - .p-xl-6 { - padding: 2rem !important; - } - .pt-xl-6, - .py-xl-6 { - padding-top: 2rem !important; - } - .pr-xl-6, - .px-xl-6 { - padding-right: 2rem !important; - } - .pb-xl-6, - .py-xl-6 { - padding-bottom: 2rem !important; - } - .pl-xl-6, - .px-xl-6 { - padding-left: 2rem !important; - } - .p-xl-7 { - padding: 3rem !important; - } - .pt-xl-7, - .py-xl-7 { - padding-top: 3rem !important; - } - .pr-xl-7, - .px-xl-7 { - padding-right: 3rem !important; - } - .pb-xl-7, - .py-xl-7 { - padding-bottom: 3rem !important; - } - .pl-xl-7, - .px-xl-7 { - padding-left: 3rem !important; - } - .p-xl-8 { - padding: 4rem !important; - } - .pt-xl-8, - .py-xl-8 { - padding-top: 4rem !important; - } - .pr-xl-8, - .px-xl-8 { - padding-right: 4rem !important; - } - .pb-xl-8, - .py-xl-8 { - padding-bottom: 4rem !important; - } - .pl-xl-8, - .px-xl-8 { - padding-left: 4rem !important; - } - .p-xl-9 { - padding: 6rem !important; - } - .pt-xl-9, - .py-xl-9 { - padding-top: 6rem !important; - } - .pr-xl-9, - .px-xl-9 { - padding-right: 6rem !important; - } - .pb-xl-9, - .py-xl-9 { - padding-bottom: 6rem !important; - } - .pl-xl-9, - .px-xl-9 { - padding-left: 6rem !important; - } - .m-xl-auto { - margin: auto !important; - } - .mt-xl-auto, - .my-xl-auto { - margin-top: auto !important; - } - .mr-xl-auto, - .mx-xl-auto { - margin-right: auto !important; - } - .mb-xl-auto, - .my-xl-auto { - margin-bottom: auto !important; - } - .ml-xl-auto, - .mx-xl-auto { - margin-left: auto !important; - } -} - -.text-monospace { - font-family: Monaco, Consolas, "Liberation Mono", "Courier New", monospace; -} - -.text-justify { - text-align: justify !important; -} - -.text-nowrap { - white-space: nowrap !important; -} - -.text-truncate { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.text-left { - text-align: left !important; -} - -.text-right { - text-align: right !important; -} - -.text-center { - text-align: center !important; -} - -@media (min-width: 576px) { - .text-sm-left { - text-align: left !important; - } - .text-sm-right { - text-align: right !important; - } - .text-sm-center { - text-align: center !important; - } -} - -@media (min-width: 768px) { - .text-md-left { - text-align: left !important; - } - .text-md-right { - text-align: right !important; - } - .text-md-center { - text-align: center !important; - } -} - -@media (min-width: 992px) { - .text-lg-left { - text-align: left !important; - } - .text-lg-right { - text-align: right !important; - } - .text-lg-center { - text-align: center !important; - } -} - -@media (min-width: 1280px) { - .text-xl-left { - text-align: left !important; - } - .text-xl-right { - text-align: right !important; - } - .text-xl-center { - text-align: center !important; - } -} - -.text-lowercase { - text-transform: lowercase !important; -} - -.text-uppercase { - text-transform: uppercase !important; -} - -.text-capitalize { - text-transform: capitalize !important; -} - -.font-weight-light { - font-weight: 300 !important; -} - -.font-weight-normal { - font-weight: 400 !important; -} - -.font-weight-bold { - font-weight: 700 !important; -} - -.font-italic { - font-style: italic !important; -} - -.text-white { - color: #fff !important; -} - -.text-primary { - color: #467fcf !important; -} - -a.text-primary:hover, a.text-primary:focus { - color: #2f66b3 !important; -} - -.text-secondary { - color: #868e96 !important; -} - -a.text-secondary:hover, a.text-secondary:focus { - color: #6c757d !important; -} - -.text-success { - color: #5eba00 !important; -} - -a.text-success:hover, a.text-success:focus { - color: #448700 !important; -} - -.text-info { - color: #45aaf2 !important; -} - -a.text-info:hover, a.text-info:focus { - color: #1594ef !important; -} - -.text-warning { - color: #f1c40f !important; -} - -a.text-warning:hover, a.text-warning:focus { - color: #c29d0b !important; -} - -.text-danger { - color: #cd201f !important; -} - -a.text-danger:hover, a.text-danger:focus { - color: #a11918 !important; -} - -.text-light { - color: #f8f9fa !important; -} - -a.text-light:hover, a.text-light:focus { - color: #dae0e5 !important; -} - -.text-dark { - color: #343a40 !important; -} - -a.text-dark:hover, a.text-dark:focus { - color: #1d2124 !important; -} - -.text-body { - color: #495057 !important; -} - -.text-muted { - color: #9aa0ac !important; -} - -.text-black-50 { - color: rgba(0, 0, 0, 0.5) !important; -} - -.text-white-50 { - color: rgba(255, 255, 255, 0.5) !important; -} - -.text-hide { - font: 0/0 a; - color: transparent; - text-shadow: none; - background-color: transparent; - border: 0; -} - -.visible { - visibility: visible !important; -} - -.invisible { - visibility: hidden !important; -} - -@media print { - *, - *::before, - *::after { - text-shadow: none !important; - box-shadow: none !important; - } - a:not(.btn) { - text-decoration: underline; - } - abbr[title]::after { - content: " (" attr(title) ")"; - } - pre { - white-space: pre-wrap !important; - } - pre, - blockquote { - border: 1px solid #adb5bd; - page-break-inside: avoid; - } - thead { - display: table-header-group; - } - tr, - img { - page-break-inside: avoid; - } - p, - h2, - h3 { - orphans: 3; - widows: 3; - } - h2, - h3 { - page-break-after: avoid; - } - @page { - size: a3; - } - body { - min-width: 992px !important; - } - .container { - min-width: 992px !important; - } - .navbar { - display: none; - } - .badge { - border: 1px solid #000; - } - .table, .text-wrap table { - border-collapse: collapse !important; - } - - .table td, - .text-wrap table td, .table th, .text-wrap table th { - background-color: #fff !important; - } - .table-bordered th, .text-wrap table th, - .table-bordered td, - .text-wrap table td { - border: 1px solid #dee2e6 !important; - } -} - -html { - font-size: 16px; - height: 100%; - direction: ltr; -} - -body { - direction: ltr; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - -webkit-tap-highlight-color: transparent; - -webkit-text-size-adjust: none; - -ms-touch-action: manipulation; - touch-action: manipulation; - -webkit-font-feature-settings: "liga" 0; - font-feature-settings: "liga" 0; - height: 100%; - overflow-y: scroll; - position: relative; -} - -@media print { - body { - background: none; - } -} - -body *::-webkit-scrollbar { - width: 6px; - height: 6px; - transition: .3s background; -} - -body *::-webkit-scrollbar-thumb { - background: #ced4da; -} - -body *:hover::-webkit-scrollbar-thumb { - background: #adb5bd; -} - -.lead { - line-height: 1.4; -} - -a { - -webkit-text-decoration-skip: ink; - text-decoration-skip: ink; -} - -h1 a, h2 a, h3 a, h4 a, h5 a, h6 a, -.h1 a, .h2 a, .h3 a, .h4 a, .h5 a, .h6 a { - color: inherit; -} - -strong, -b { - font-weight: 600; -} - -p, -ul, -ol, -blockquote { - margin-bottom: 1em; -} - -blockquote { - font-style: italic; - color: #6e7687; - padding-left: 2rem; - border-left: 2px solid rgba(0, 40, 100, 0.12); -} - -blockquote p { - margin-bottom: 1rem; -} - -blockquote cite { - display: block; - text-align: right; -} - -blockquote cite:before { - content: '— '; -} - -code { - background: rgba(0, 0, 0, 0.025); - border: 1px solid rgba(0, 0, 0, 0.05); - border-radius: 3px; - padding: 3px; -} - -pre code { - padding: 0; - border-radius: 0; - border: none; - background: none; -} - -hr { - margin-top: 2rem; - margin-bottom: 2rem; -} - -pre { - color: #343a40; - padding: 1rem; - overflow: auto; - font-size: 85%; - line-height: 1.45; - background-color: #f8fafc; - border-radius: 3px; - -moz-tab-size: 4; - -o-tab-size: 4; - tab-size: 4; - text-shadow: 0 1px white; - -webkit-hyphens: none; - -moz-hyphens: none; - -ms-hyphens: none; - hyphens: none; -} - -img { - max-width: 100%; -} - -.text-wrap { - font-size: 1rem; - line-height: 1.66; -} - -.text-wrap > :first-child { - margin-top: 0; -} - -.text-wrap > :last-child { - margin-bottom: 0; -} - -.text-wrap > h1, .text-wrap > h2, .text-wrap > h3, .text-wrap > h4, .text-wrap > h5, .text-wrap > h6 { - margin-top: 1em; -} - -.section-nav { - background-color: #f8f9fa; - margin: 1rem 0; - padding: .5rem 1rem; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; - list-style: none; -} - -.section-nav:before { - content: 'Table of contents:'; - display: block; - font-weight: 600; -} - -@media print { - .container { - max-width: none; - } -} - -.row-cards > .col, -.row-cards > [class*='col-'] { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; -} - -.row-deck > .col, -.row-deck > [class*='col-'] { - display: -ms-flexbox; - display: flex; - -ms-flex-align: stretch; - align-items: stretch; -} - -.row-deck > .col .card, -.row-deck > [class*='col-'] .card { - -ms-flex: 1 1 auto; - flex: 1 1 auto; -} - -.col-text { - max-width: 48rem; -} - -.col-login { - max-width: 24rem; -} - -.gutters-0 { - margin-right: 0; - margin-left: 0; -} - -.gutters-0 > .col, -.gutters-0 > [class*="col-"] { - padding-right: 0; - padding-left: 0; -} - -.gutters-0 .card { - margin-bottom: 0; -} - -.gutters-xs { - margin-right: -0.25rem; - margin-left: -0.25rem; -} - -.gutters-xs > .col, -.gutters-xs > [class*="col-"] { - padding-right: 0.25rem; - padding-left: 0.25rem; -} - -.gutters-xs .card { - margin-bottom: 0.5rem; -} - -.gutters-sm { - margin-right: -0.5rem; - margin-left: -0.5rem; -} - -.gutters-sm > .col, -.gutters-sm > [class*="col-"] { - padding-right: 0.5rem; - padding-left: 0.5rem; -} - -.gutters-sm .card { - margin-bottom: 1rem; -} - -.gutters-lg { - margin-right: -1rem; - margin-left: -1rem; -} - -.gutters-lg > .col, -.gutters-lg > [class*="col-"] { - padding-right: 1rem; - padding-left: 1rem; -} - -.gutters-lg .card { - margin-bottom: 2rem; -} - -.gutters-xl { - margin-right: -1.5rem; - margin-left: -1.5rem; -} - -.gutters-xl > .col, -.gutters-xl > [class*="col-"] { - padding-right: 1.5rem; - padding-left: 1.5rem; -} - -.gutters-xl .card { - margin-bottom: 3rem; -} - -.page { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - -ms-flex-pack: center; - justify-content: center; - min-height: 100%; -} - -body.fixed-header .page { - padding-top: 4.5rem; -} - -@media (min-width: 1600px) { - body.aside-opened .page { - margin-right: 22rem; - } -} - -.page-main { - -ms-flex: 1 1 auto; - flex: 1 1 auto; -} - -.page-content { - margin: .75rem 0; -} - -@media (min-width: 768px) { - .page-content { - margin: 1.5rem 0; - } -} - -.page-header { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - margin: 1.5rem 0 1.5rem; - -ms-flex-wrap: wrap; - flex-wrap: wrap; -} - -.page-title { - margin: 0; - font-size: 1.5rem; - font-weight: 400; - line-height: 2.5rem; -} - -.page-title-icon { - color: #9aa0ac; - font-size: 1.25rem; -} - -.page-subtitle { - font-size: 0.8125rem; - color: #6e7687; - margin-left: 2rem; -} - -.page-subtitle a { - color: inherit; -} - -.page-options { - margin-left: auto; -} - -.page-breadcrumb { - -ms-flex-preferred-size: 100%; - flex-basis: 100%; -} - -.page-description { - margin: .25rem 0 0; - color: #6e7687; -} - -.page-description a { - color: inherit; -} - -.page-single { - -ms-flex: 1 1 auto; - flex: 1 1 auto; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - padding: 1rem 0; -} - -.content-heading { - font-weight: 400; - margin: 2rem 0 1.5rem; - font-size: 1.25rem; - line-height: 1.25; -} - -.content-heading:first-child { - margin-top: 0; -} - -.aside { - position: fixed; - top: 0; - right: 0; - bottom: 0; - width: 22rem; - background: #ffffff; - border-left: 1px solid rgba(0, 40, 100, 0.12); - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - z-index: 100; - visibility: hidden; - box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.05); -} - -@media (min-width: 1600px) { - body.aside-opened .aside { - visibility: visible; - } -} - -.aside-body { - padding: 1.5rem; - -ms-flex: 1 1 auto; - flex: 1 1 auto; - overflow: auto; -} - -.aside-footer { - padding: 1rem 1.5rem; - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.aside-header { - padding: 1rem 1.5rem; - border-bottom: 1px solid rgba(0, 40, 100, 0.12); -} - -.header { - padding-top: .75rem; - padding-bottom: .75rem; - background: #fff; - border-bottom: 1px solid rgba(0, 40, 100, 0.12); -} - -body.fixed-header .header { - position: fixed; - top: 0; - left: 0; - right: 0; - z-index: 1030; -} - -@media print { - .header { - display: none; - } -} - -.header .dropdown-menu { - margin-top: .75rem; -} - -.nav-unread { - position: absolute; - top: .25rem; - right: .25rem; - background: #cd201f; - width: .5rem; - height: .5rem; - border-radius: 50%; -} - -.header-brand { - color: inherit; - margin-right: 1rem; - font-size: 1.25rem; - white-space: nowrap; - font-weight: 600; - padding: 0; - transition: .3s opacity; - line-height: 2rem; -} - -.header-brand:hover { - opacity: .8; - color: inherit; - text-decoration: none; -} - -.header-brand-img { - height: 2rem; - line-height: 2rem; - vertical-align: bottom; - margin-right: .5rem; - width: auto; -} - -.header-avatar { - width: 2rem; - height: 2rem; - display: inline-block; - vertical-align: bottom; - border-radius: 50%; -} - -.header-btn { - display: inline-block; - width: 2rem; - height: 2rem; - line-height: 2rem; - text-align: center; - font-size: 1rem; -} - -.header-btn.has-new { - position: relative; -} - -.header-btn.has-new:before { - content: ''; - width: 6px; - height: 6px; - background: #cd201f; - position: absolute; - top: 4px; - right: 4px; - border-radius: 50%; -} - -.header-toggler { - width: 2rem; - height: 2rem; - position: relative; - color: #9aa0ac; -} - -.header-toggler:hover { - color: #6e7687; -} - -.header-toggler-icon { - position: absolute; - width: 1rem; - height: 2px; - color: inherit; - background: currentColor; - border-radius: 3px; - top: 50%; - left: 50%; - margin: -2px 0 0 -.5rem; - box-shadow: 0 5px currentColor, 0 -5px currentColor; -} - -.footer { - background: #fff; - border-top: 1px solid rgba(0, 40, 100, 0.12); - font-size: 0.875rem; - padding: 1.25rem 0; - color: #9aa0ac; -} - -.footer a:not(.btn) { - color: #6e7687; -} - -@media print { - .footer { - display: none; - } -} - -.bg-blue-lightest { - background-color: #edf2fa !important; -} - -a.bg-blue-lightest:hover, a.bg-blue-lightest:focus, -button.bg-blue-lightest:hover, -button.bg-blue-lightest:focus { - background-color: #c5d5ef !important; -} - -.bg-blue-lighter { - background-color: #c8d9f1 !important; -} - -a.bg-blue-lighter:hover, a.bg-blue-lighter:focus, -button.bg-blue-lighter:hover, -button.bg-blue-lighter:focus { - background-color: #9fbde7 !important; -} - -.bg-blue-light { - background-color: #7ea5dd !important; -} - -a.bg-blue-light:hover, a.bg-blue-light:focus, -button.bg-blue-light:hover, -button.bg-blue-light:focus { - background-color: #5689d2 !important; -} - -.bg-blue-dark { - background-color: #3866a6 !important; -} - -a.bg-blue-dark:hover, a.bg-blue-dark:focus, -button.bg-blue-dark:hover, -button.bg-blue-dark:focus { - background-color: #2b4f80 !important; -} - -.bg-blue-darker { - background-color: #1c3353 !important; -} - -a.bg-blue-darker:hover, a.bg-blue-darker:focus, -button.bg-blue-darker:hover, -button.bg-blue-darker:focus { - background-color: #0f1c2d !important; -} - -.bg-blue-darkest { - background-color: #0e1929 !important; -} - -a.bg-blue-darkest:hover, a.bg-blue-darkest:focus, -button.bg-blue-darkest:hover, -button.bg-blue-darkest:focus { - background-color: #010203 !important; -} - -.bg-indigo-lightest { - background-color: #f0f1fa !important; -} - -a.bg-indigo-lightest:hover, a.bg-indigo-lightest:focus, -button.bg-indigo-lightest:hover, -button.bg-indigo-lightest:focus { - background-color: #cacded !important; -} - -.bg-indigo-lighter { - background-color: #d1d5f0 !important; -} - -a.bg-indigo-lighter:hover, a.bg-indigo-lighter:focus, -button.bg-indigo-lighter:hover, -button.bg-indigo-lighter:focus { - background-color: #abb2e3 !important; -} - -.bg-indigo-light { - background-color: #939edc !important; -} - -a.bg-indigo-light:hover, a.bg-indigo-light:focus, -button.bg-indigo-light:hover, -button.bg-indigo-light:focus { - background-color: #6c7bd0 !important; -} - -.bg-indigo-dark { - background-color: #515da4 !important; -} - -a.bg-indigo-dark:hover, a.bg-indigo-dark:focus, -button.bg-indigo-dark:hover, -button.bg-indigo-dark:focus { - background-color: #404a82 !important; -} - -.bg-indigo-darker { - background-color: #282e52 !important; -} - -a.bg-indigo-darker:hover, a.bg-indigo-darker:focus, -button.bg-indigo-darker:hover, -button.bg-indigo-darker:focus { - background-color: #171b30 !important; -} - -.bg-indigo-darkest { - background-color: #141729 !important; -} - -a.bg-indigo-darkest:hover, a.bg-indigo-darkest:focus, -button.bg-indigo-darkest:hover, -button.bg-indigo-darkest:focus { - background-color: #030407 !important; -} - -.bg-purple-lightest { - background-color: #f6effd !important; -} - -a.bg-purple-lightest:hover, a.bg-purple-lightest:focus, -button.bg-purple-lightest:hover, -button.bg-purple-lightest:focus { - background-color: #ddc2f7 !important; -} - -.bg-purple-lighter { - background-color: #e4cff9 !important; -} - -a.bg-purple-lighter:hover, a.bg-purple-lighter:focus, -button.bg-purple-lighter:hover, -button.bg-purple-lighter:focus { - background-color: #cba2f3 !important; -} - -.bg-purple-light { - background-color: #c08ef0 !important; -} - -a.bg-purple-light:hover, a.bg-purple-light:focus, -button.bg-purple-light:hover, -button.bg-purple-light:focus { - background-color: #a761ea !important; -} - -.bg-purple-dark { - background-color: #844bbb !important; -} - -a.bg-purple-dark:hover, a.bg-purple-dark:focus, -button.bg-purple-dark:hover, -button.bg-purple-dark:focus { - background-color: #6a3a99 !important; -} - -.bg-purple-darker { - background-color: #42265e !important; -} - -a.bg-purple-darker:hover, a.bg-purple-darker:focus, -button.bg-purple-darker:hover, -button.bg-purple-darker:focus { - background-color: #29173a !important; -} - -.bg-purple-darkest { - background-color: #21132f !important; -} - -a.bg-purple-darkest:hover, a.bg-purple-darkest:focus, -button.bg-purple-darkest:hover, -button.bg-purple-darkest:focus { - background-color: #08040b !important; -} - -.bg-pink-lightest { - background-color: #fef0f5 !important; -} - -a.bg-pink-lightest:hover, a.bg-pink-lightest:focus, -button.bg-pink-lightest:hover, -button.bg-pink-lightest:focus { - background-color: #fbc0d5 !important; -} - -.bg-pink-lighter { - background-color: #fcd3e1 !important; -} - -a.bg-pink-lighter:hover, a.bg-pink-lighter:focus, -button.bg-pink-lighter:hover, -button.bg-pink-lighter:focus { - background-color: #f9a3c0 !important; -} - -.bg-pink-light { - background-color: #f999b9 !important; -} - -a.bg-pink-light:hover, a.bg-pink-light:focus, -button.bg-pink-light:hover, -button.bg-pink-light:focus { - background-color: #f66998 !important; -} - -.bg-pink-dark { - background-color: #c5577c !important; -} - -a.bg-pink-dark:hover, a.bg-pink-dark:focus, -button.bg-pink-dark:hover, -button.bg-pink-dark:focus { - background-color: #ad3c62 !important; -} - -.bg-pink-darker { - background-color: #622c3e !important; -} - -a.bg-pink-darker:hover, a.bg-pink-darker:focus, -button.bg-pink-darker:hover, -button.bg-pink-darker:focus { - background-color: #3f1c28 !important; -} - -.bg-pink-darkest { - background-color: #31161f !important; -} - -a.bg-pink-darkest:hover, a.bg-pink-darkest:focus, -button.bg-pink-darkest:hover, -button.bg-pink-darkest:focus { - background-color: #0e0609 !important; -} - -.bg-red-lightest { - background-color: #fae9e9 !important; -} - -a.bg-red-lightest:hover, a.bg-red-lightest:focus, -button.bg-red-lightest:hover, -button.bg-red-lightest:focus { - background-color: #f1bfbf !important; -} - -.bg-red-lighter { - background-color: #f0bcbc !important; -} - -a.bg-red-lighter:hover, a.bg-red-lighter:focus, -button.bg-red-lighter:hover, -button.bg-red-lighter:focus { - background-color: #e79292 !important; -} - -.bg-red-light { - background-color: #dc6362 !important; -} - -a.bg-red-light:hover, a.bg-red-light:focus, -button.bg-red-light:hover, -button.bg-red-light:focus { - background-color: #d33a38 !important; -} - -.bg-red-dark { - background-color: #a41a19 !important; -} - -a.bg-red-dark:hover, a.bg-red-dark:focus, -button.bg-red-dark:hover, -button.bg-red-dark:focus { - background-color: #781312 !important; -} - -.bg-red-darker { - background-color: #520d0c !important; -} - -a.bg-red-darker:hover, a.bg-red-darker:focus, -button.bg-red-darker:hover, -button.bg-red-darker:focus { - background-color: #260605 !important; -} - -.bg-red-darkest { - background-color: #290606 !important; -} - -a.bg-red-darkest:hover, a.bg-red-darkest:focus, -button.bg-red-darkest:hover, -button.bg-red-darkest:focus { - background-color: black !important; -} - -.bg-orange-lightest { - background-color: #fff5ec !important; -} - -a.bg-orange-lightest:hover, a.bg-orange-lightest:focus, -button.bg-orange-lightest:hover, -button.bg-orange-lightest:focus { - background-color: peachpuff !important; -} - -.bg-orange-lighter { - background-color: #fee0c7 !important; -} - -a.bg-orange-lighter:hover, a.bg-orange-lighter:focus, -button.bg-orange-lighter:hover, -button.bg-orange-lighter:focus { - background-color: #fdc495 !important; -} - -.bg-orange-light { - background-color: #feb67c !important; -} - -a.bg-orange-light:hover, a.bg-orange-light:focus, -button.bg-orange-light:hover, -button.bg-orange-light:focus { - background-color: #fe9a49 !important; -} - -.bg-orange-dark { - background-color: #ca7836 !important; -} - -a.bg-orange-dark:hover, a.bg-orange-dark:focus, -button.bg-orange-dark:hover, -button.bg-orange-dark:focus { - background-color: #a2602b !important; -} - -.bg-orange-darker { - background-color: #653c1b !important; -} - -a.bg-orange-darker:hover, a.bg-orange-darker:focus, -button.bg-orange-darker:hover, -button.bg-orange-darker:focus { - background-color: #3d2410 !important; -} - -.bg-orange-darkest { - background-color: #331e0e !important; -} - -a.bg-orange-darkest:hover, a.bg-orange-darkest:focus, -button.bg-orange-darkest:hover, -button.bg-orange-darkest:focus { - background-color: #0b0603 !important; -} - -.bg-yellow-lightest { - background-color: #fef9e7 !important; -} - -a.bg-yellow-lightest:hover, a.bg-yellow-lightest:focus, -button.bg-yellow-lightest:hover, -button.bg-yellow-lightest:focus { - background-color: #fcedb6 !important; -} - -.bg-yellow-lighter { - background-color: #fbedb7 !important; -} - -a.bg-yellow-lighter:hover, a.bg-yellow-lighter:focus, -button.bg-yellow-lighter:hover, -button.bg-yellow-lighter:focus { - background-color: #f8e187 !important; -} - -.bg-yellow-light { - background-color: #f5d657 !important; -} - -a.bg-yellow-light:hover, a.bg-yellow-light:focus, -button.bg-yellow-light:hover, -button.bg-yellow-light:focus { - background-color: #f2ca27 !important; -} - -.bg-yellow-dark { - background-color: #c19d0c !important; -} - -a.bg-yellow-dark:hover, a.bg-yellow-dark:focus, -button.bg-yellow-dark:hover, -button.bg-yellow-dark:focus { - background-color: #917609 !important; -} - -.bg-yellow-darker { - background-color: #604e06 !important; -} - -a.bg-yellow-darker:hover, a.bg-yellow-darker:focus, -button.bg-yellow-darker:hover, -button.bg-yellow-darker:focus { - background-color: #302703 !important; -} - -.bg-yellow-darkest { - background-color: #302703 !important; -} - -a.bg-yellow-darkest:hover, a.bg-yellow-darkest:focus, -button.bg-yellow-darkest:hover, -button.bg-yellow-darkest:focus { - background-color: black !important; -} - -.bg-green-lightest { - background-color: #eff8e6 !important; -} - -a.bg-green-lightest:hover, a.bg-green-lightest:focus, -button.bg-green-lightest:hover, -button.bg-green-lightest:focus { - background-color: #d6edbe !important; -} - -.bg-green-lighter { - background-color: #cfeab3 !important; -} - -a.bg-green-lighter:hover, a.bg-green-lighter:focus, -button.bg-green-lighter:hover, -button.bg-green-lighter:focus { - background-color: #b6df8b !important; -} - -.bg-green-light { - background-color: #8ecf4d !important; -} - -a.bg-green-light:hover, a.bg-green-light:focus, -button.bg-green-light:hover, -button.bg-green-light:focus { - background-color: #75b831 !important; -} - -.bg-green-dark { - background-color: #4b9500 !important; -} - -a.bg-green-dark:hover, a.bg-green-dark:focus, -button.bg-green-dark:hover, -button.bg-green-dark:focus { - background-color: #316200 !important; -} - -.bg-green-darker { - background-color: #264a00 !important; -} - -a.bg-green-darker:hover, a.bg-green-darker:focus, -button.bg-green-darker:hover, -button.bg-green-darker:focus { - background-color: #0c1700 !important; -} - -.bg-green-darkest { - background-color: #132500 !important; -} - -a.bg-green-darkest:hover, a.bg-green-darkest:focus, -button.bg-green-darkest:hover, -button.bg-green-darkest:focus { - background-color: black !important; -} - -.bg-teal-lightest { - background-color: #eafaf8 !important; -} - -a.bg-teal-lightest:hover, a.bg-teal-lightest:focus, -button.bg-teal-lightest:hover, -button.bg-teal-lightest:focus { - background-color: #c1f0ea !important; -} - -.bg-teal-lighter { - background-color: #bfefea !important; -} - -a.bg-teal-lighter:hover, a.bg-teal-lighter:focus, -button.bg-teal-lighter:hover, -button.bg-teal-lighter:focus { - background-color: #96e5dd !important; -} - -.bg-teal-light { - background-color: #6bdbcf !important; -} - -a.bg-teal-light:hover, a.bg-teal-light:focus, -button.bg-teal-light:hover, -button.bg-teal-light:focus { - background-color: #42d1c2 !important; -} - -.bg-teal-dark { - background-color: #22a295 !important; -} - -a.bg-teal-dark:hover, a.bg-teal-dark:focus, -button.bg-teal-dark:hover, -button.bg-teal-dark:focus { - background-color: #19786e !important; -} - -.bg-teal-darker { - background-color: #11514a !important; -} - -a.bg-teal-darker:hover, a.bg-teal-darker:focus, -button.bg-teal-darker:hover, -button.bg-teal-darker:focus { - background-color: #082723 !important; -} - -.bg-teal-darkest { - background-color: #092925 !important; -} - -a.bg-teal-darkest:hover, a.bg-teal-darkest:focus, -button.bg-teal-darkest:hover, -button.bg-teal-darkest:focus { - background-color: black !important; -} - -.bg-cyan-lightest { - background-color: #e8f6f8 !important; -} - -a.bg-cyan-lightest:hover, a.bg-cyan-lightest:focus, -button.bg-cyan-lightest:hover, -button.bg-cyan-lightest:focus { - background-color: #c1e7ec !important; -} - -.bg-cyan-lighter { - background-color: #b9e3ea !important; -} - -a.bg-cyan-lighter:hover, a.bg-cyan-lighter:focus, -button.bg-cyan-lighter:hover, -button.bg-cyan-lighter:focus { - background-color: #92d3de !important; -} - -.bg-cyan-light { - background-color: #5dbecd !important; -} - -a.bg-cyan-light:hover, a.bg-cyan-light:focus, -button.bg-cyan-light:hover, -button.bg-cyan-light:focus { - background-color: #3aabbd !important; -} - -.bg-cyan-dark { - background-color: #128293 !important; -} - -a.bg-cyan-dark:hover, a.bg-cyan-dark:focus, -button.bg-cyan-dark:hover, -button.bg-cyan-dark:focus { - background-color: #0c5a66 !important; -} - -.bg-cyan-darker { - background-color: #09414a !important; -} - -a.bg-cyan-darker:hover, a.bg-cyan-darker:focus, -button.bg-cyan-darker:hover, -button.bg-cyan-darker:focus { - background-color: #03191d !important; -} - -.bg-cyan-darkest { - background-color: #052025 !important; -} - -a.bg-cyan-darkest:hover, a.bg-cyan-darkest:focus, -button.bg-cyan-darkest:hover, -button.bg-cyan-darkest:focus { - background-color: black !important; -} - -.bg-white-lightest { - background-color: white !important; -} - -a.bg-white-lightest:hover, a.bg-white-lightest:focus, -button.bg-white-lightest:hover, -button.bg-white-lightest:focus { - background-color: #e6e5e5 !important; -} - -.bg-white-lighter { - background-color: white !important; -} - -a.bg-white-lighter:hover, a.bg-white-lighter:focus, -button.bg-white-lighter:hover, -button.bg-white-lighter:focus { - background-color: #e6e5e5 !important; -} - -.bg-white-light { - background-color: white !important; -} - -a.bg-white-light:hover, a.bg-white-light:focus, -button.bg-white-light:hover, -button.bg-white-light:focus { - background-color: #e6e5e5 !important; -} - -.bg-white-dark { - background-color: #cccccc !important; -} - -a.bg-white-dark:hover, a.bg-white-dark:focus, -button.bg-white-dark:hover, -button.bg-white-dark:focus { - background-color: #b3b2b2 !important; -} - -.bg-white-darker { - background-color: #666666 !important; -} - -a.bg-white-darker:hover, a.bg-white-darker:focus, -button.bg-white-darker:hover, -button.bg-white-darker:focus { - background-color: #4d4c4c !important; -} - -.bg-white-darkest { - background-color: #333333 !important; -} - -a.bg-white-darkest:hover, a.bg-white-darkest:focus, -button.bg-white-darkest:hover, -button.bg-white-darkest:focus { - background-color: #1a1919 !important; -} - -.bg-gray-lightest { - background-color: #f3f4f5 !important; -} - -a.bg-gray-lightest:hover, a.bg-gray-lightest:focus, -button.bg-gray-lightest:hover, -button.bg-gray-lightest:focus { - background-color: #d7dbde !important; -} - -.bg-gray-lighter { - background-color: #dbdde0 !important; -} - -a.bg-gray-lighter:hover, a.bg-gray-lighter:focus, -button.bg-gray-lighter:hover, -button.bg-gray-lighter:focus { - background-color: #c0c3c8 !important; -} - -.bg-gray-light { - background-color: #aab0b6 !important; -} - -a.bg-gray-light:hover, a.bg-gray-light:focus, -button.bg-gray-light:hover, -button.bg-gray-light:focus { - background-color: #8f979e !important; -} - -.bg-gray-dark { - background-color: #6b7278 !important; -} - -a.bg-gray-dark:hover, a.bg-gray-dark:focus, -button.bg-gray-dark:hover, -button.bg-gray-dark:focus { - background-color: #53585d !important; -} - -.bg-gray-darker { - background-color: #36393c !important; -} - -a.bg-gray-darker:hover, a.bg-gray-darker:focus, -button.bg-gray-darker:hover, -button.bg-gray-darker:focus { - background-color: #1e2021 !important; -} - -.bg-gray-darkest { - background-color: #1b1c1e !important; -} - -a.bg-gray-darkest:hover, a.bg-gray-darkest:focus, -button.bg-gray-darkest:hover, -button.bg-gray-darkest:focus { - background-color: #030303 !important; -} - -.bg-gray-dark-lightest { - background-color: #ebebec !important; -} - -a.bg-gray-dark-lightest:hover, a.bg-gray-dark-lightest:focus, -button.bg-gray-dark-lightest:hover, -button.bg-gray-dark-lightest:focus { - background-color: #d1d1d3 !important; -} - -.bg-gray-dark-lighter { - background-color: #c2c4c6 !important; -} - -a.bg-gray-dark-lighter:hover, a.bg-gray-dark-lighter:focus, -button.bg-gray-dark-lighter:hover, -button.bg-gray-dark-lighter:focus { - background-color: #a8abad !important; -} - -.bg-gray-dark-light { - background-color: #717579 !important; -} - -a.bg-gray-dark-light:hover, a.bg-gray-dark-light:focus, -button.bg-gray-dark-light:hover, -button.bg-gray-dark-light:focus { - background-color: #585c5f !important; -} - -.bg-gray-dark-dark { - background-color: #2a2e33 !important; -} - -a.bg-gray-dark-dark:hover, a.bg-gray-dark-dark:focus, -button.bg-gray-dark-dark:hover, -button.bg-gray-dark-dark:focus { - background-color: #131517 !important; -} - -.bg-gray-dark-darker { - background-color: #15171a !important; -} - -a.bg-gray-dark-darker:hover, a.bg-gray-dark-darker:focus, -button.bg-gray-dark-darker:hover, -button.bg-gray-dark-darker:focus { - background-color: black !important; -} - -.bg-gray-dark-darkest { - background-color: #0a0c0d !important; -} - -a.bg-gray-dark-darkest:hover, a.bg-gray-dark-darkest:focus, -button.bg-gray-dark-darkest:hover, -button.bg-gray-dark-darkest:focus { - background-color: black !important; -} - -.bg-azure-lightest { - background-color: #ecf7fe !important; -} - -a.bg-azure-lightest:hover, a.bg-azure-lightest:focus, -button.bg-azure-lightest:hover, -button.bg-azure-lightest:focus { - background-color: #bce3fb !important; -} - -.bg-azure-lighter { - background-color: #c7e6fb !important; -} - -a.bg-azure-lighter:hover, a.bg-azure-lighter:focus, -button.bg-azure-lighter:hover, -button.bg-azure-lighter:focus { - background-color: #97d1f8 !important; -} - -.bg-azure-light { - background-color: #7dc4f6 !important; -} - -a.bg-azure-light:hover, a.bg-azure-light:focus, -button.bg-azure-light:hover, -button.bg-azure-light:focus { - background-color: #4daef3 !important; -} - -.bg-azure-dark { - background-color: #3788c2 !important; -} - -a.bg-azure-dark:hover, a.bg-azure-dark:focus, -button.bg-azure-dark:hover, -button.bg-azure-dark:focus { - background-color: #2c6c9a !important; -} - -.bg-azure-darker { - background-color: #1c4461 !important; -} - -a.bg-azure-darker:hover, a.bg-azure-darker:focus, -button.bg-azure-darker:hover, -button.bg-azure-darker:focus { - background-color: #112839 !important; -} - -.bg-azure-darkest { - background-color: #0e2230 !important; -} - -a.bg-azure-darkest:hover, a.bg-azure-darkest:focus, -button.bg-azure-darkest:hover, -button.bg-azure-darkest:focus { - background-color: #020609 !important; -} - -.bg-lime-lightest { - background-color: #f2fbeb !important; -} - -a.bg-lime-lightest:hover, a.bg-lime-lightest:focus, -button.bg-lime-lightest:hover, -button.bg-lime-lightest:focus { - background-color: #d6f3c1 !important; -} - -.bg-lime-lighter { - background-color: #d7f2c2 !important; -} - -a.bg-lime-lighter:hover, a.bg-lime-lighter:focus, -button.bg-lime-lighter:hover, -button.bg-lime-lighter:focus { - background-color: #bbe998 !important; -} - -.bg-lime-light { - background-color: #a3e072 !important; -} - -a.bg-lime-light:hover, a.bg-lime-light:focus, -button.bg-lime-light:hover, -button.bg-lime-light:focus { - background-color: #88d748 !important; -} - -.bg-lime-dark { - background-color: #62a82a !important; -} - -a.bg-lime-dark:hover, a.bg-lime-dark:focus, -button.bg-lime-dark:hover, -button.bg-lime-dark:focus { - background-color: #4a7f20 !important; -} - -.bg-lime-darker { - background-color: #315415 !important; -} - -a.bg-lime-darker:hover, a.bg-lime-darker:focus, -button.bg-lime-darker:hover, -button.bg-lime-darker:focus { - background-color: #192b0b !important; -} - -.bg-lime-darkest { - background-color: #192a0b !important; -} - -a.bg-lime-darkest:hover, a.bg-lime-darkest:focus, -button.bg-lime-darkest:hover, -button.bg-lime-darkest:focus { - background-color: #010200 !important; -} - -.display-1 i, -.display-2 i, -.display-3 i, -.display-4 i { - vertical-align: baseline; - font-size: 0.815em; -} - -.text-inherit { - color: inherit !important; -} - -.text-default { - color: #495057 !important; -} - -.text-muted-dark { - color: #6e7687 !important; -} - -.tracking-tight { - letter-spacing: -0.05em !important; -} - -.tracking-normal { - letter-spacing: 0 !important; -} - -.tracking-wide { - letter-spacing: 0.05em !important; -} - -.leading-none { - line-height: 1 !important; -} - -.leading-tight { - line-height: 1.25 !important; -} - -.leading-normal { - line-height: 1.5 !important; -} - -.leading-loose { - line-height: 2 !important; -} - -.bg-blue { - background-color: #467fcf !important; -} - -a.bg-blue:hover, a.bg-blue:focus, -button.bg-blue:hover, -button.bg-blue:focus { - background-color: #2f66b3 !important; -} - -.text-blue { - color: #467fcf !important; -} - -.bg-indigo { - background-color: #6574cd !important; -} - -a.bg-indigo:hover, a.bg-indigo:focus, -button.bg-indigo:hover, -button.bg-indigo:focus { - background-color: #3f51c1 !important; -} - -.text-indigo { - color: #6574cd !important; -} - -.bg-purple { - background-color: #a55eea !important; -} - -a.bg-purple:hover, a.bg-purple:focus, -button.bg-purple:hover, -button.bg-purple:focus { - background-color: #8c31e4 !important; -} - -.text-purple { - color: #a55eea !important; -} - -.bg-pink { - background-color: #f66d9b !important; -} - -a.bg-pink:hover, a.bg-pink:focus, -button.bg-pink:hover, -button.bg-pink:focus { - background-color: #f33d7a !important; -} - -.text-pink { - color: #f66d9b !important; -} - -.bg-red { - background-color: #cd201f !important; -} - -a.bg-red:hover, a.bg-red:focus, -button.bg-red:hover, -button.bg-red:focus { - background-color: #a11918 !important; -} - -.text-red { - color: #cd201f !important; -} - -.bg-orange { - background-color: #fd9644 !important; -} - -a.bg-orange:hover, a.bg-orange:focus, -button.bg-orange:hover, -button.bg-orange:focus { - background-color: #fc7a12 !important; -} - -.text-orange { - color: #fd9644 !important; -} - -.bg-yellow { - background-color: #f1c40f !important; -} - -a.bg-yellow:hover, a.bg-yellow:focus, -button.bg-yellow:hover, -button.bg-yellow:focus { - background-color: #c29d0b !important; -} - -.text-yellow { - color: #f1c40f !important; -} - -.bg-green { - background-color: #5eba00 !important; -} - -a.bg-green:hover, a.bg-green:focus, -button.bg-green:hover, -button.bg-green:focus { - background-color: #448700 !important; -} - -.text-green { - color: #5eba00 !important; -} - -.bg-teal { - background-color: #2bcbba !important; -} - -a.bg-teal:hover, a.bg-teal:focus, -button.bg-teal:hover, -button.bg-teal:focus { - background-color: #22a193 !important; -} - -.text-teal { - color: #2bcbba !important; -} - -.bg-cyan { - background-color: #17a2b8 !important; -} - -a.bg-cyan:hover, a.bg-cyan:focus, -button.bg-cyan:hover, -button.bg-cyan:focus { - background-color: #117a8b !important; -} - -.text-cyan { - color: #17a2b8 !important; -} - -.bg-white { - background-color: #fff !important; -} - -a.bg-white:hover, a.bg-white:focus, -button.bg-white:hover, -button.bg-white:focus { - background-color: #e6e5e5 !important; -} - -.text-white { - color: #fff !important; -} - -.bg-gray { - background-color: #868e96 !important; -} - -a.bg-gray:hover, a.bg-gray:focus, -button.bg-gray:hover, -button.bg-gray:focus { - background-color: #6c757d !important; -} - -.text-gray { - color: #868e96 !important; -} - -.bg-gray-dark { - background-color: #343a40 !important; -} - -a.bg-gray-dark:hover, a.bg-gray-dark:focus, -button.bg-gray-dark:hover, -button.bg-gray-dark:focus { - background-color: #1d2124 !important; -} - -.text-gray-dark { - color: #343a40 !important; -} - -.bg-azure { - background-color: #45aaf2 !important; -} - -a.bg-azure:hover, a.bg-azure:focus, -button.bg-azure:hover, -button.bg-azure:focus { - background-color: #1594ef !important; -} - -.text-azure { - color: #45aaf2 !important; -} - -.bg-lime { - background-color: #7bd235 !important; -} - -a.bg-lime:hover, a.bg-lime:focus, -button.bg-lime:hover, -button.bg-lime:focus { - background-color: #63ad27 !important; -} - -.text-lime { - color: #7bd235 !important; -} - -.icon { - color: #9aa0ac !important; -} - -.icon i { - vertical-align: -1px; -} - -a.icon { - text-decoration: none; - cursor: pointer; -} - -a.icon:hover { - color: #495057 !important; -} - -.o-auto { - overflow: auto !important; -} - -.o-hidden { - overflow: hidden !important; -} - -.shadow { - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; -} - -.shadow-none { - box-shadow: none !important; -} - -.nav-link, -.nav-item { - padding: 0 .75rem; - min-width: 2rem; - transition: .3s color; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - cursor: pointer; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; -} - -.nav-link .badge, -.nav-item .badge { - position: absolute; - top: 0; - right: 0; - padding: .2rem .25rem; - min-width: 1rem; -} - -.nav-tabs { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - color: #9aa0ac; - margin: 0 -.75rem; -} - -.nav-tabs .nav-link { - border: 0; - color: inherit; - border-bottom: 1px solid transparent; - margin-bottom: -1px; - transition: .3s border-color; - font-weight: 400; - padding: 1rem 0; -} - -.nav-tabs .nav-link:hover:not(.disabled) { - border-color: #6e7687; - color: #6e7687; -} - -.nav-tabs .nav-link.active { - border-color: #467fcf; - color: #467fcf; - background: transparent; -} - -.nav-tabs .nav-link.disabled { - opacity: .4; - cursor: default; - pointer-events: none; -} - -.nav-tabs .nav-item { - margin-bottom: 0; - position: relative; -} - -.nav-tabs .nav-item i { - margin-right: .25rem; - line-height: 1; - font-size: 0.875rem; - width: 0.875rem; - vertical-align: baseline; - display: inline-block; -} - -.nav-tabs .nav-item:hover .nav-submenu { - display: block; -} - -.nav-tabs .nav-submenu { - display: none; - position: absolute; - background: #fff; - border: 1px solid rgba(0, 40, 100, 0.12); - border-top: none; - z-index: 10; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); - min-width: 10rem; - border-radius: 0 0 3px 3px; -} - -.nav-tabs .nav-submenu .nav-item { - display: block; - padding: .5rem 1rem; - color: #9aa0ac; - margin: 0 !important; - cursor: pointer; - transition: .3s background; -} - -.nav-tabs .nav-submenu .nav-item.active { - color: #467fcf; -} - -.nav-tabs .nav-submenu .nav-item:hover { - color: #6e7687; - text-decoration: none; - background: rgba(0, 0, 0, 0.024); -} - -.btn { - cursor: pointer; - font-weight: 600; - letter-spacing: .03em; - font-size: 0.8125rem; - min-width: 2.375rem; -} - -.btn i { - font-size: 1rem; - vertical-align: -2px; -} - -.btn-icon { - padding-left: .5rem; - padding-right: .5rem; - text-align: center; -} - -.btn-secondary { - color: #495057; - background-color: #fff; - border-color: rgba(0, 40, 100, 0.12); - box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.05); -} - -.btn-secondary:hover { - color: #495057; - background-color: #f6f6f6; - border-color: rgba(0, 20, 49, 0.12); -} - -.btn-secondary:focus, .btn-secondary.focus { - box-shadow: 0 0 0 2px rgba(0, 40, 100, 0.5); -} - -.btn-secondary.disabled, .btn-secondary:disabled { - color: #495057; - background-color: #fff; - border-color: rgba(0, 40, 100, 0.12); -} - -.btn-secondary:not(:disabled):not(.disabled):active, .btn-secondary:not(:disabled):not(.disabled).active, -.show > .btn-secondary.dropdown-toggle { - color: #495057; - background-color: #e6e5e5; - border-color: rgba(0, 15, 36, 0.12); -} - -.btn-secondary:not(:disabled):not(.disabled):active:focus, .btn-secondary:not(:disabled):not(.disabled).active:focus, -.show > .btn-secondary.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(0, 40, 100, 0.5); -} - -.btn-pill { - border-radius: 10rem; - padding-left: 1.5em; - padding-right: 1.5em; -} - -.btn-square { - border-radius: 0; -} - -.btn-facebook { - color: #fff; - background-color: #3b5998; - border-color: #3b5998; -} - -.btn-facebook:hover { - color: #fff; - background-color: #30497c; - border-color: #2d4373; -} - -.btn-facebook:focus, .btn-facebook.focus { - box-shadow: 0 0 0 2px rgba(59, 89, 152, 0.5); -} - -.btn-facebook.disabled, .btn-facebook:disabled { - color: #fff; - background-color: #3b5998; - border-color: #3b5998; -} - -.btn-facebook:not(:disabled):not(.disabled):active, .btn-facebook:not(:disabled):not(.disabled).active, -.show > .btn-facebook.dropdown-toggle { - color: #fff; - background-color: #2d4373; - border-color: #293e6a; -} - -.btn-facebook:not(:disabled):not(.disabled):active:focus, .btn-facebook:not(:disabled):not(.disabled).active:focus, -.show > .btn-facebook.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(59, 89, 152, 0.5); -} - -.btn-twitter { - color: #fff; - background-color: #1da1f2; - border-color: #1da1f2; -} - -.btn-twitter:hover { - color: #fff; - background-color: #0d8ddc; - border-color: #0c85d0; -} - -.btn-twitter:focus, .btn-twitter.focus { - box-shadow: 0 0 0 2px rgba(29, 161, 242, 0.5); -} - -.btn-twitter.disabled, .btn-twitter:disabled { - color: #fff; - background-color: #1da1f2; - border-color: #1da1f2; -} - -.btn-twitter:not(:disabled):not(.disabled):active, .btn-twitter:not(:disabled):not(.disabled).active, -.show > .btn-twitter.dropdown-toggle { - color: #fff; - background-color: #0c85d0; - border-color: #0b7ec4; -} - -.btn-twitter:not(:disabled):not(.disabled):active:focus, .btn-twitter:not(:disabled):not(.disabled).active:focus, -.show > .btn-twitter.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(29, 161, 242, 0.5); -} - -.btn-google { - color: #fff; - background-color: #dc4e41; - border-color: #dc4e41; -} - -.btn-google:hover { - color: #fff; - background-color: #d03526; - border-color: #c63224; -} - -.btn-google:focus, .btn-google.focus { - box-shadow: 0 0 0 2px rgba(220, 78, 65, 0.5); -} - -.btn-google.disabled, .btn-google:disabled { - color: #fff; - background-color: #dc4e41; - border-color: #dc4e41; -} - -.btn-google:not(:disabled):not(.disabled):active, .btn-google:not(:disabled):not(.disabled).active, -.show > .btn-google.dropdown-toggle { - color: #fff; - background-color: #c63224; - border-color: #bb2f22; -} - -.btn-google:not(:disabled):not(.disabled):active:focus, .btn-google:not(:disabled):not(.disabled).active:focus, -.show > .btn-google.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(220, 78, 65, 0.5); -} - -.btn-youtube { - color: #fff; - background-color: #f00; - border-color: #f00; -} - -.btn-youtube:hover { - color: #fff; - background-color: #d90000; - border-color: #cc0000; -} - -.btn-youtube:focus, .btn-youtube.focus { - box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.5); -} - -.btn-youtube.disabled, .btn-youtube:disabled { - color: #fff; - background-color: #f00; - border-color: #f00; -} - -.btn-youtube:not(:disabled):not(.disabled):active, .btn-youtube:not(:disabled):not(.disabled).active, -.show > .btn-youtube.dropdown-toggle { - color: #fff; - background-color: #cc0000; - border-color: #bf0000; -} - -.btn-youtube:not(:disabled):not(.disabled):active:focus, .btn-youtube:not(:disabled):not(.disabled).active:focus, -.show > .btn-youtube.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.5); -} - -.btn-vimeo { - color: #fff; - background-color: #1ab7ea; - border-color: #1ab7ea; -} - -.btn-vimeo:hover { - color: #fff; - background-color: #139ecb; - border-color: #1295bf; -} - -.btn-vimeo:focus, .btn-vimeo.focus { - box-shadow: 0 0 0 2px rgba(26, 183, 234, 0.5); -} - -.btn-vimeo.disabled, .btn-vimeo:disabled { - color: #fff; - background-color: #1ab7ea; - border-color: #1ab7ea; -} - -.btn-vimeo:not(:disabled):not(.disabled):active, .btn-vimeo:not(:disabled):not(.disabled).active, -.show > .btn-vimeo.dropdown-toggle { - color: #fff; - background-color: #1295bf; - border-color: #108cb4; -} - -.btn-vimeo:not(:disabled):not(.disabled):active:focus, .btn-vimeo:not(:disabled):not(.disabled).active:focus, -.show > .btn-vimeo.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(26, 183, 234, 0.5); -} - -.btn-dribbble { - color: #fff; - background-color: #ea4c89; - border-color: #ea4c89; -} - -.btn-dribbble:hover { - color: #fff; - background-color: #e62a72; - border-color: #e51e6b; -} - -.btn-dribbble:focus, .btn-dribbble.focus { - box-shadow: 0 0 0 2px rgba(234, 76, 137, 0.5); -} - -.btn-dribbble.disabled, .btn-dribbble:disabled { - color: #fff; - background-color: #ea4c89; - border-color: #ea4c89; -} - -.btn-dribbble:not(:disabled):not(.disabled):active, .btn-dribbble:not(:disabled):not(.disabled).active, -.show > .btn-dribbble.dropdown-toggle { - color: #fff; - background-color: #e51e6b; - border-color: #dc1a65; -} - -.btn-dribbble:not(:disabled):not(.disabled):active:focus, .btn-dribbble:not(:disabled):not(.disabled).active:focus, -.show > .btn-dribbble.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(234, 76, 137, 0.5); -} - -.btn-github { - color: #fff; - background-color: #181717; - border-color: #181717; -} - -.btn-github:hover { - color: #fff; - background-color: #040404; - border-color: black; -} - -.btn-github:focus, .btn-github.focus { - box-shadow: 0 0 0 2px rgba(24, 23, 23, 0.5); -} - -.btn-github.disabled, .btn-github:disabled { - color: #fff; - background-color: #181717; - border-color: #181717; -} - -.btn-github:not(:disabled):not(.disabled):active, .btn-github:not(:disabled):not(.disabled).active, -.show > .btn-github.dropdown-toggle { - color: #fff; - background-color: black; - border-color: black; -} - -.btn-github:not(:disabled):not(.disabled):active:focus, .btn-github:not(:disabled):not(.disabled).active:focus, -.show > .btn-github.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(24, 23, 23, 0.5); -} - -.btn-instagram { - color: #fff; - background-color: #e4405f; - border-color: #e4405f; -} - -.btn-instagram:hover { - color: #fff; - background-color: #de1f44; - border-color: #d31e40; -} - -.btn-instagram:focus, .btn-instagram.focus { - box-shadow: 0 0 0 2px rgba(228, 64, 95, 0.5); -} - -.btn-instagram.disabled, .btn-instagram:disabled { - color: #fff; - background-color: #e4405f; - border-color: #e4405f; -} - -.btn-instagram:not(:disabled):not(.disabled):active, .btn-instagram:not(:disabled):not(.disabled).active, -.show > .btn-instagram.dropdown-toggle { - color: #fff; - background-color: #d31e40; - border-color: #c81c3d; -} - -.btn-instagram:not(:disabled):not(.disabled):active:focus, .btn-instagram:not(:disabled):not(.disabled).active:focus, -.show > .btn-instagram.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(228, 64, 95, 0.5); -} - -.btn-pinterest { - color: #fff; - background-color: #bd081c; - border-color: #bd081c; -} - -.btn-pinterest:hover { - color: #fff; - background-color: #980617; - border-color: #8c0615; -} - -.btn-pinterest:focus, .btn-pinterest.focus { - box-shadow: 0 0 0 2px rgba(189, 8, 28, 0.5); -} - -.btn-pinterest.disabled, .btn-pinterest:disabled { - color: #fff; - background-color: #bd081c; - border-color: #bd081c; -} - -.btn-pinterest:not(:disabled):not(.disabled):active, .btn-pinterest:not(:disabled):not(.disabled).active, -.show > .btn-pinterest.dropdown-toggle { - color: #fff; - background-color: #8c0615; - border-color: #800513; -} - -.btn-pinterest:not(:disabled):not(.disabled):active:focus, .btn-pinterest:not(:disabled):not(.disabled).active:focus, -.show > .btn-pinterest.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(189, 8, 28, 0.5); -} - -.btn-vk { - color: #fff; - background-color: #6383a8; - border-color: #6383a8; -} - -.btn-vk:hover { - color: #fff; - background-color: #527093; - border-color: #4d6a8b; -} - -.btn-vk:focus, .btn-vk.focus { - box-shadow: 0 0 0 2px rgba(99, 131, 168, 0.5); -} - -.btn-vk.disabled, .btn-vk:disabled { - color: #fff; - background-color: #6383a8; - border-color: #6383a8; -} - -.btn-vk:not(:disabled):not(.disabled):active, .btn-vk:not(:disabled):not(.disabled).active, -.show > .btn-vk.dropdown-toggle { - color: #fff; - background-color: #4d6a8b; - border-color: #496482; -} - -.btn-vk:not(:disabled):not(.disabled):active:focus, .btn-vk:not(:disabled):not(.disabled).active:focus, -.show > .btn-vk.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(99, 131, 168, 0.5); -} - -.btn-rss { - color: #fff; - background-color: #ffa500; - border-color: #ffa500; -} - -.btn-rss:hover { - color: #fff; - background-color: #d98c00; - border-color: #cc8400; -} - -.btn-rss:focus, .btn-rss.focus { - box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.5); -} - -.btn-rss.disabled, .btn-rss:disabled { - color: #fff; - background-color: #ffa500; - border-color: #ffa500; -} - -.btn-rss:not(:disabled):not(.disabled):active, .btn-rss:not(:disabled):not(.disabled).active, -.show > .btn-rss.dropdown-toggle { - color: #fff; - background-color: #cc8400; - border-color: #bf7c00; -} - -.btn-rss:not(:disabled):not(.disabled):active:focus, .btn-rss:not(:disabled):not(.disabled).active:focus, -.show > .btn-rss.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.5); -} - -.btn-flickr { - color: #fff; - background-color: #0063dc; - border-color: #0063dc; -} - -.btn-flickr:hover { - color: #fff; - background-color: #0052b6; - border-color: #004ca9; -} - -.btn-flickr:focus, .btn-flickr.focus { - box-shadow: 0 0 0 2px rgba(0, 99, 220, 0.5); -} - -.btn-flickr.disabled, .btn-flickr:disabled { - color: #fff; - background-color: #0063dc; - border-color: #0063dc; -} - -.btn-flickr:not(:disabled):not(.disabled):active, .btn-flickr:not(:disabled):not(.disabled).active, -.show > .btn-flickr.dropdown-toggle { - color: #fff; - background-color: #004ca9; - border-color: #00469c; -} - -.btn-flickr:not(:disabled):not(.disabled):active:focus, .btn-flickr:not(:disabled):not(.disabled).active:focus, -.show > .btn-flickr.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(0, 99, 220, 0.5); -} - -.btn-bitbucket { - color: #fff; - background-color: #0052cc; - border-color: #0052cc; -} - -.btn-bitbucket:hover { - color: #fff; - background-color: #0043a6; - border-color: #003e99; -} - -.btn-bitbucket:focus, .btn-bitbucket.focus { - box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.5); -} - -.btn-bitbucket.disabled, .btn-bitbucket:disabled { - color: #fff; - background-color: #0052cc; - border-color: #0052cc; -} - -.btn-bitbucket:not(:disabled):not(.disabled):active, .btn-bitbucket:not(:disabled):not(.disabled).active, -.show > .btn-bitbucket.dropdown-toggle { - color: #fff; - background-color: #003e99; - border-color: #00388c; -} - -.btn-bitbucket:not(:disabled):not(.disabled):active:focus, .btn-bitbucket:not(:disabled):not(.disabled).active:focus, -.show > .btn-bitbucket.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.5); -} - -.btn-blue { - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.btn-blue:hover { - color: #fff; - background-color: #316cbe; - border-color: #2f66b3; -} - -.btn-blue:focus, .btn-blue.focus { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.5); -} - -.btn-blue.disabled, .btn-blue:disabled { - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.btn-blue:not(:disabled):not(.disabled):active, .btn-blue:not(:disabled):not(.disabled).active, -.show > .btn-blue.dropdown-toggle { - color: #fff; - background-color: #2f66b3; - border-color: #2c60a9; -} - -.btn-blue:not(:disabled):not(.disabled):active:focus, .btn-blue:not(:disabled):not(.disabled).active:focus, -.show > .btn-blue.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.5); -} - -.btn-indigo { - color: #fff; - background-color: #6574cd; - border-color: #6574cd; -} - -.btn-indigo:hover { - color: #fff; - background-color: #485ac4; - border-color: #3f51c1; -} - -.btn-indigo:focus, .btn-indigo.focus { - box-shadow: 0 0 0 2px rgba(101, 116, 205, 0.5); -} - -.btn-indigo.disabled, .btn-indigo:disabled { - color: #fff; - background-color: #6574cd; - border-color: #6574cd; -} - -.btn-indigo:not(:disabled):not(.disabled):active, .btn-indigo:not(:disabled):not(.disabled).active, -.show > .btn-indigo.dropdown-toggle { - color: #fff; - background-color: #3f51c1; - border-color: #3b4db7; -} - -.btn-indigo:not(:disabled):not(.disabled):active:focus, .btn-indigo:not(:disabled):not(.disabled).active:focus, -.show > .btn-indigo.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(101, 116, 205, 0.5); -} - -.btn-purple { - color: #fff; - background-color: #a55eea; - border-color: #a55eea; -} - -.btn-purple:hover { - color: #fff; - background-color: #923ce6; - border-color: #8c31e4; -} - -.btn-purple:focus, .btn-purple.focus { - box-shadow: 0 0 0 2px rgba(165, 94, 234, 0.5); -} - -.btn-purple.disabled, .btn-purple:disabled { - color: #fff; - background-color: #a55eea; - border-color: #a55eea; -} - -.btn-purple:not(:disabled):not(.disabled):active, .btn-purple:not(:disabled):not(.disabled).active, -.show > .btn-purple.dropdown-toggle { - color: #fff; - background-color: #8c31e4; - border-color: #8526e3; -} - -.btn-purple:not(:disabled):not(.disabled):active:focus, .btn-purple:not(:disabled):not(.disabled).active:focus, -.show > .btn-purple.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(165, 94, 234, 0.5); -} - -.btn-pink { - color: #fff; - background-color: #f66d9b; - border-color: #f66d9b; -} - -.btn-pink:hover { - color: #fff; - background-color: #f44982; - border-color: #f33d7a; -} - -.btn-pink:focus, .btn-pink.focus { - box-shadow: 0 0 0 2px rgba(246, 109, 155, 0.5); -} - -.btn-pink.disabled, .btn-pink:disabled { - color: #fff; - background-color: #f66d9b; - border-color: #f66d9b; -} - -.btn-pink:not(:disabled):not(.disabled):active, .btn-pink:not(:disabled):not(.disabled).active, -.show > .btn-pink.dropdown-toggle { - color: #fff; - background-color: #f33d7a; - border-color: #f23172; -} - -.btn-pink:not(:disabled):not(.disabled):active:focus, .btn-pink:not(:disabled):not(.disabled).active:focus, -.show > .btn-pink.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(246, 109, 155, 0.5); -} - -.btn-red { - color: #fff; - background-color: #cd201f; - border-color: #cd201f; -} - -.btn-red:hover { - color: #fff; - background-color: #ac1b1a; - border-color: #a11918; -} - -.btn-red:focus, .btn-red.focus { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.5); -} - -.btn-red.disabled, .btn-red:disabled { - color: #fff; - background-color: #cd201f; - border-color: #cd201f; -} - -.btn-red:not(:disabled):not(.disabled):active, .btn-red:not(:disabled):not(.disabled).active, -.show > .btn-red.dropdown-toggle { - color: #fff; - background-color: #a11918; - border-color: #961717; -} - -.btn-red:not(:disabled):not(.disabled):active:focus, .btn-red:not(:disabled):not(.disabled).active:focus, -.show > .btn-red.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.5); -} - -.btn-orange { - color: #fff; - background-color: #fd9644; - border-color: #fd9644; -} - -.btn-orange:hover { - color: #fff; - background-color: #fd811e; - border-color: #fc7a12; -} - -.btn-orange:focus, .btn-orange.focus { - box-shadow: 0 0 0 2px rgba(253, 150, 68, 0.5); -} - -.btn-orange.disabled, .btn-orange:disabled { - color: #fff; - background-color: #fd9644; - border-color: #fd9644; -} - -.btn-orange:not(:disabled):not(.disabled):active, .btn-orange:not(:disabled):not(.disabled).active, -.show > .btn-orange.dropdown-toggle { - color: #fff; - background-color: #fc7a12; - border-color: #fc7305; -} - -.btn-orange:not(:disabled):not(.disabled):active:focus, .btn-orange:not(:disabled):not(.disabled).active:focus, -.show > .btn-orange.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(253, 150, 68, 0.5); -} - -.btn-yellow { - color: #fff; - background-color: #f1c40f; - border-color: #f1c40f; -} - -.btn-yellow:hover { - color: #fff; - background-color: #cea70c; - border-color: #c29d0b; -} - -.btn-yellow:focus, .btn-yellow.focus { - box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.5); -} - -.btn-yellow.disabled, .btn-yellow:disabled { - color: #fff; - background-color: #f1c40f; - border-color: #f1c40f; -} - -.btn-yellow:not(:disabled):not(.disabled):active, .btn-yellow:not(:disabled):not(.disabled).active, -.show > .btn-yellow.dropdown-toggle { - color: #fff; - background-color: #c29d0b; - border-color: #b6940b; -} - -.btn-yellow:not(:disabled):not(.disabled):active:focus, .btn-yellow:not(:disabled):not(.disabled).active:focus, -.show > .btn-yellow.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.5); -} - -.btn-green { - color: #fff; - background-color: #5eba00; - border-color: #5eba00; -} - -.btn-green:hover { - color: #fff; - background-color: #4b9400; - border-color: #448700; -} - -.btn-green:focus, .btn-green.focus { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.5); -} - -.btn-green.disabled, .btn-green:disabled { - color: #fff; - background-color: #5eba00; - border-color: #5eba00; -} - -.btn-green:not(:disabled):not(.disabled):active, .btn-green:not(:disabled):not(.disabled).active, -.show > .btn-green.dropdown-toggle { - color: #fff; - background-color: #448700; - border-color: #3e7a00; -} - -.btn-green:not(:disabled):not(.disabled):active:focus, .btn-green:not(:disabled):not(.disabled).active:focus, -.show > .btn-green.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.5); -} - -.btn-teal { - color: #fff; - background-color: #2bcbba; - border-color: #2bcbba; -} - -.btn-teal:hover { - color: #fff; - background-color: #24ab9d; - border-color: #22a193; -} - -.btn-teal:focus, .btn-teal.focus { - box-shadow: 0 0 0 2px rgba(43, 203, 186, 0.5); -} - -.btn-teal.disabled, .btn-teal:disabled { - color: #fff; - background-color: #2bcbba; - border-color: #2bcbba; -} - -.btn-teal:not(:disabled):not(.disabled):active, .btn-teal:not(:disabled):not(.disabled).active, -.show > .btn-teal.dropdown-toggle { - color: #fff; - background-color: #22a193; - border-color: #20968a; -} - -.btn-teal:not(:disabled):not(.disabled):active:focus, .btn-teal:not(:disabled):not(.disabled).active:focus, -.show > .btn-teal.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(43, 203, 186, 0.5); -} - -.btn-cyan { - color: #fff; - background-color: #17a2b8; - border-color: #17a2b8; -} - -.btn-cyan:hover { - color: #fff; - background-color: #138496; - border-color: #117a8b; -} - -.btn-cyan:focus, .btn-cyan.focus { - box-shadow: 0 0 0 2px rgba(23, 162, 184, 0.5); -} - -.btn-cyan.disabled, .btn-cyan:disabled { - color: #fff; - background-color: #17a2b8; - border-color: #17a2b8; -} - -.btn-cyan:not(:disabled):not(.disabled):active, .btn-cyan:not(:disabled):not(.disabled).active, -.show > .btn-cyan.dropdown-toggle { - color: #fff; - background-color: #117a8b; - border-color: #10707f; -} - -.btn-cyan:not(:disabled):not(.disabled):active:focus, .btn-cyan:not(:disabled):not(.disabled).active:focus, -.show > .btn-cyan.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(23, 162, 184, 0.5); -} - -.btn-white { - color: #495057; - background-color: #fff; - border-color: #fff; -} - -.btn-white:hover { - color: #495057; - background-color: #ececec; - border-color: #e6e5e5; -} - -.btn-white:focus, .btn-white.focus { - box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); -} - -.btn-white.disabled, .btn-white:disabled { - color: #495057; - background-color: #fff; - border-color: #fff; -} - -.btn-white:not(:disabled):not(.disabled):active, .btn-white:not(:disabled):not(.disabled).active, -.show > .btn-white.dropdown-toggle { - color: #495057; - background-color: #e6e5e5; - border-color: #dfdfdf; -} - -.btn-white:not(:disabled):not(.disabled):active:focus, .btn-white:not(:disabled):not(.disabled).active:focus, -.show > .btn-white.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); -} - -.btn-gray { - color: #fff; - background-color: #868e96; - border-color: #868e96; -} - -.btn-gray:hover { - color: #fff; - background-color: #727b84; - border-color: #6c757d; -} - -.btn-gray:focus, .btn-gray.focus { - box-shadow: 0 0 0 2px rgba(134, 142, 150, 0.5); -} - -.btn-gray.disabled, .btn-gray:disabled { - color: #fff; - background-color: #868e96; - border-color: #868e96; -} - -.btn-gray:not(:disabled):not(.disabled):active, .btn-gray:not(:disabled):not(.disabled).active, -.show > .btn-gray.dropdown-toggle { - color: #fff; - background-color: #6c757d; - border-color: #666e76; -} - -.btn-gray:not(:disabled):not(.disabled):active:focus, .btn-gray:not(:disabled):not(.disabled).active:focus, -.show > .btn-gray.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(134, 142, 150, 0.5); -} - -.btn-gray-dark { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} - -.btn-gray-dark:hover { - color: #fff; - background-color: #23272b; - border-color: #1d2124; -} - -.btn-gray-dark:focus, .btn-gray-dark.focus { - box-shadow: 0 0 0 2px rgba(52, 58, 64, 0.5); -} - -.btn-gray-dark.disabled, .btn-gray-dark:disabled { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} - -.btn-gray-dark:not(:disabled):not(.disabled):active, .btn-gray-dark:not(:disabled):not(.disabled).active, -.show > .btn-gray-dark.dropdown-toggle { - color: #fff; - background-color: #1d2124; - border-color: #171a1d; -} - -.btn-gray-dark:not(:disabled):not(.disabled):active:focus, .btn-gray-dark:not(:disabled):not(.disabled).active:focus, -.show > .btn-gray-dark.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(52, 58, 64, 0.5); -} - -.btn-azure { - color: #fff; - background-color: #45aaf2; - border-color: #45aaf2; -} - -.btn-azure:hover { - color: #fff; - background-color: #219af0; - border-color: #1594ef; -} - -.btn-azure:focus, .btn-azure.focus { - box-shadow: 0 0 0 2px rgba(69, 170, 242, 0.5); -} - -.btn-azure.disabled, .btn-azure:disabled { - color: #fff; - background-color: #45aaf2; - border-color: #45aaf2; -} - -.btn-azure:not(:disabled):not(.disabled):active, .btn-azure:not(:disabled):not(.disabled).active, -.show > .btn-azure.dropdown-toggle { - color: #fff; - background-color: #1594ef; - border-color: #108ee7; -} - -.btn-azure:not(:disabled):not(.disabled):active:focus, .btn-azure:not(:disabled):not(.disabled).active:focus, -.show > .btn-azure.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(69, 170, 242, 0.5); -} - -.btn-lime { - color: #fff; - background-color: #7bd235; - border-color: #7bd235; -} - -.btn-lime:hover { - color: #fff; - background-color: #69b829; - border-color: #63ad27; -} - -.btn-lime:focus, .btn-lime.focus { - box-shadow: 0 0 0 2px rgba(123, 210, 53, 0.5); -} - -.btn-lime.disabled, .btn-lime:disabled { - color: #fff; - background-color: #7bd235; - border-color: #7bd235; -} - -.btn-lime:not(:disabled):not(.disabled):active, .btn-lime:not(:disabled):not(.disabled).active, -.show > .btn-lime.dropdown-toggle { - color: #fff; - background-color: #63ad27; - border-color: #5da324; -} - -.btn-lime:not(:disabled):not(.disabled):active:focus, .btn-lime:not(:disabled):not(.disabled).active:focus, -.show > .btn-lime.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(123, 210, 53, 0.5); -} - -.btn-option { - background: transparent; - color: #9aa0ac; -} - -.btn-option:hover { - color: #6e7687; -} - -.btn-option:focus { - box-shadow: none; - color: #6e7687; -} - -.btn-sm, .btn-group-sm > .btn { - font-size: 0.75rem; - min-width: 1.625rem; -} - -.btn-lg, .btn-group-lg > .btn { - font-size: 1rem; - min-width: 2.75rem; - font-weight: 400; -} - -.btn-list { - margin-bottom: -.5rem; - font-size: 0; -} - -.btn-list > .btn, -.btn-list > .dropdown { - margin-bottom: .5rem; -} - -.btn-list > .btn:not(:last-child), -.btn-list > .dropdown:not(:last-child) { - margin-right: .5rem; -} - -.btn-loading { - color: transparent !important; - pointer-events: none; - position: relative; -} - -.btn-loading:after { - content: ''; - -webkit-animation: loader 500ms infinite linear; - animation: loader 500ms infinite linear; - border: 2px solid #fff; - border-radius: 50%; - border-right-color: transparent !important; - border-top-color: transparent !important; - display: block; - height: 1.4em; - width: 1.4em; - position: absolute; - left: calc(50% - (1.4em / 2)); - top: calc(50% - (1.4em / 2)); - -webkit-transform-origin: center; - transform-origin: center; - position: absolute !important; -} - -.btn-loading.btn-sm:after, .btn-group-sm > .btn-loading.btn:after { - height: 1em; - width: 1em; - left: calc(50% - (1em / 2)); - top: calc(50% - (1em / 2)); -} - -.btn-loading.btn-secondary:after { - border-color: #495057; -} - -.alert { - font-size: 0.9375rem; -} - -.alert-icon { - padding-left: 3rem; -} - -.alert-icon > i { - color: inherit !important; - font-size: 1rem; - position: absolute; - top: 1rem; - left: 1rem; -} - -.alert-avatar { - padding-left: 3.75rem; -} - -.alert-avatar .avatar { - position: absolute; - top: .5rem; - left: .75rem; -} - -.close { - font-size: 1rem; - line-height: 1.5; - transition: .3s color; -} - -.close:before { - content: '\ea00'; - font-family: "feather"; -} - -.badge { - color: #fff; -} - -.badge-default { - background: #e9ecef; - color: #868e96; -} - -.table thead th, .text-wrap table thead th { - border-top: 0; - border-bottom-width: 1px; - padding-top: .5rem; - padding-bottom: .5rem; -} - -.table th, .text-wrap table th { - color: #9aa0ac; - text-transform: uppercase; - font-size: 0.875rem; - font-weight: 400; -} - -.table-md th, -.table-md td { - padding: .5rem; -} - -.table-vcenter td, -.table-vcenter th { - vertical-align: middle; -} - -.table-center td, -.table-center th { - text-align: center; -} - -.table-striped tbody tr:nth-of-type(odd) { - background: transparent; -} - -.table-striped tbody tr:nth-of-type(even) { - background-color: rgba(0, 0, 0, 0.02); -} - -.table-calendar { - margin: 0 0 .75rem; -} - -.table-calendar td, -.table-calendar th { - border: 0; - text-align: center; - padding: 0 !important; - width: 14.28571429%; - line-height: 2.5rem; -} - -.table-calendar td { - border-top: 0; -} - -.table-calendar-link { - line-height: 2rem; - min-width: calc(2rem + 2px); - display: inline-block; - border-radius: 3px; - background: #f8f9fa; - color: #495057; - font-weight: 600; - transition: .3s background, .3s color; - position: relative; -} - -.table-calendar-link:before { - content: ''; - width: 4px; - height: 4px; - position: absolute; - left: .25rem; - top: .25rem; - border-radius: 50px; - background: #467fcf; -} - -.table-calendar-link:hover { - color: #fff; - text-decoration: none; - background: #467fcf; - transition: .3s background; -} - -.table-calendar-link:hover:before { - background: #fff; -} - -.table-header { - cursor: pointer; - transition: .3s color; -} - -.table-header:hover { - color: #495057 !important; -} - -.table-header:after { - content: '\f0dc'; - font-family: FontAwesome; - display: inline-block; - margin-left: .5rem; - font-size: .75rem; -} - -.table-header-asc { - color: #495057 !important; -} - -.table-header-asc:after { - content: '\f0de'; -} - -.table-header-desc { - color: #495057 !important; -} - -.table-header-desc:after { - content: '\f0dd'; -} - -.page-breadcrumb { - background: none; - padding: 0; - margin: 1rem 0 0; - font-size: 0.875rem; -} - -@media (min-width: 768px) { - .page-breadcrumb { - margin: -.5rem 0 0; - } -} - -.page-breadcrumb .breadcrumb-item { - color: #9aa0ac; -} - -.page-breadcrumb .breadcrumb-item.active { - color: #6e7687; -} - -.pagination-simple .page-item .page-link { - background: none; - border: none; -} - -.pagination-simple .page-item.active .page-link { - color: #495057; - font-weight: 700; -} - -.pagination-pager .page-prev { - margin-right: auto; -} - -.pagination-pager .page-next { - margin-left: auto; -} - -.page-total-text { - margin-right: 1rem; - -ms-flex-item-align: center; - align-self: center; - color: #6e7687; -} - -.card { - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); - position: relative; - margin-bottom: 1.5rem; - width: 100%; -} - -.card .card { - box-shadow: none; -} - -@media print { - .card { - box-shadow: none; - border: none; - } -} - -.card-body { - -ms-flex: 1 1 auto; - flex: 1 1 auto; - margin: 0; - padding: 1.5rem 1.5rem; - position: relative; -} - -.card-body + .card-body { - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.card-body > :last-child { - margin-bottom: 0; -} - -@media print { - .card-body { - padding: 0; - } -} - -.card-body-scrollable { - overflow: auto; -} - -.card-footer, -.card-bottom { - padding: 1rem 1.5rem; - background: none; -} - -.card-footer { - border-top: 1px solid rgba(0, 40, 100, 0.12); - color: #6e7687; -} - -.card-header { - background: none; - padding: 0.5rem 1.5rem; - display: -ms-flexbox; - display: flex; - min-height: 3.5rem; - -ms-flex-align: center; - align-items: center; -} - -.card-header .card-title { - margin-bottom: 0; -} - -.card-header.border-0 + .card-body { - padding-top: 0; -} - -@media print { - .card-header { - display: none; - } -} - -.card-img-top { - border-top-left-radius: 3px; - border-top-right-radius: 3px; -} - -.card-img-overlay { - background-color: rgba(0, 0, 0, 0.4); - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; -} - -.card-title { - font-size: 1.125rem; - line-height: 1.2; - font-weight: 400; - margin-bottom: 1.5rem; -} - -.card-title a { - color: inherit; -} - -.card-title:only-child { - margin-bottom: 0; -} - -.card-title small, -.card-subtitle { - color: #9aa0ac; - font-size: 0.875rem; - display: block; - margin: -.75rem 0 1rem; - line-height: 1.1; - font-weight: 400; -} - -.card-table { - margin-bottom: 0; -} - -.card-table tr:first-child td, -.card-table tr:first-child th { - border-top: 0; -} - -.card-table tr td:first-child, -.card-table tr th:first-child { - padding-left: 1.5rem; -} - -.card-table tr td:last-child, -.card-table tr th:last-child { - padding-right: 1.5rem; -} - -.card-body + .card-table { - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.card-profile .card-header { - height: 9rem; - background-size: cover; -} - -.card-profile-img { - max-width: 6rem; - margin-top: -5rem; - margin-bottom: 1rem; - border: 3px solid #fff; - border-radius: 100%; - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); -} - -.card-link + .card-link { - margin-left: 1rem; -} - -.card-body + .card-list-group { - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.card-list-group .list-group-item { - border-right: 0; - border-left: 0; - border-radius: 0; - padding-left: 1.5rem; - padding-right: 1.5rem; -} - -.card-list-group .list-group-item:last-child { - border-bottom: 0; -} - -.card-list-group .list-group-item:first-child { - border-top: 0; -} - -.card-header-tabs { - margin: -1.25rem 0; - border-bottom: 0; - line-height: 2rem; -} - -.card-header-tabs .nav-item { - margin-bottom: 1px; -} - -.card-header-pills { - margin: -.75rem 0; -} - -.card-aside { - -ms-flex-direction: row; - flex-direction: row; -} - -.card-aside-column { - min-width: 5rem; - width: 30%; - -ms-flex: 0 0 30%; - flex: 0 0 30%; - border-top-left-radius: 3px; - border-bottom-left-radius: 3px; - background: no-repeat center/cover; -} - -.card-value { - font-size: 2.5rem; - line-height: 3.4rem; - height: 3.4rem; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - font-weight: 400; -} - -.card-value i { - vertical-align: middle; -} - -.card-chart-bg { - height: 4rem; - margin-top: -1rem; - position: relative; - z-index: 1; - overflow: hidden; -} - -.card-options { - margin-left: auto; - display: -ms-flexbox; - display: flex; - -ms-flex-order: 100; - order: 100; - margin-right: -.5rem; - color: #9aa0ac; - -ms-flex-item-align: center; - align-self: center; -} - -.card-options a:not(.btn) { - margin-left: .5rem; - color: #9aa0ac; - display: inline-block; - min-width: 1rem; -} - -.card-options a:not(.btn):hover { - text-decoration: none; - color: #6e7687; -} - -.card-options a:not(.btn) i { - font-size: 1rem; - vertical-align: middle; -} - -.card-options .dropdown-toggle:after { - display: none; -} - -/* -Card options - */ -.card-collapsed > :not(.card-header):not(.card-status) { - display: none; -} - -.card-collapsed .card-options-collapse i:before { - content: '\e92d'; -} - -.card-fullscreen .card-options-fullscreen i:before { - content: '\e992'; -} - -.card-fullscreen .card-options-remove { - display: none; -} - -/* -Card maps - */ -.card-map { - height: 15rem; - background: #e9ecef; -} - -.card-map-placeholder { - background: no-repeat center; -} - -/** -Card tabs - */ -.card-tabs { - display: -ms-flexbox; - display: flex; -} - -.card-tabs-bottom .card-tabs-item { - border: 0; - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.card-tabs-bottom .card-tabs-item.active { - border-top-color: #fff; -} - -.card-tabs-item { - -ms-flex: 1 1 auto; - flex: 1 1 auto; - display: block; - padding: 1rem 1.5rem; - border-bottom: 1px solid rgba(0, 40, 100, 0.12); - color: inherit; - overflow: hidden; -} - -a.card-tabs-item { - background: #fafbfc; -} - -a.card-tabs-item:hover { - text-decoration: none; - color: inherit; -} - -a.card-tabs-item:focus { - z-index: 1; -} - -a.card-tabs-item.active { - background: #fff; - border-bottom-color: #fff; -} - -.card-tabs-item + .card-tabs-item { - border-left: 1px solid rgba(0, 40, 100, 0.12); -} - -/** -Card status - */ -.card-status { - position: absolute; - top: -1px; - left: -1px; - right: -1px; - height: 3px; - border-radius: 3px 3px 0 0; - background: rgba(0, 40, 100, 0.12); -} - -.card-status-left { - right: auto; - bottom: 0; - height: auto; - width: 3px; - border-radius: 3px 0 0 3px; -} - -/** -Card icon - */ -.card-icon { - width: 3rem; - font-size: 2.5rem; - line-height: 3rem; - text-align: center; -} - -/** -Card fullscreen - */ -.card-fullscreen { - position: fixed; - top: 0; - left: 0; - right: 0; - bottom: 0; - z-index: 1; - margin: 0; -} - -/** -Card alert - */ -.card-alert { - border-radius: 0; - margin: -1px -1px 0; -} - -.card-category { - font-size: 0.875rem; - text-transform: uppercase; - text-align: center; - font-weight: 600; - letter-spacing: .05em; - margin: 0 0 .5rem; -} - -.popover { - -webkit-filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1)); - filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1)); -} - -.popover.bs-popover-top, .popover.bs-popover-auto[x-placement^="top"] { - margin-bottom: 0.625rem; -} - -.popover .arrow { - margin-left: calc(.25rem + 2px); -} - -.dropdown { - display: inline-block; -} - -.dropdown-menu { - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); - min-width: 12rem; -} - -.dropdown-item { - color: #6e7687; -} - -.dropdown-menu-arrow:before { - position: absolute; - top: -6px; - left: 12px; - display: inline-block; - border-right: 5px solid transparent; - border-bottom: 5px solid rgba(0, 40, 100, 0.12); - border-left: 5px solid transparent; - border-bottom-color: rgba(0, 0, 0, 0.2); - content: ''; -} - -.dropdown-menu-arrow:after { - position: absolute; - top: -5px; - left: 12px; - display: inline-block; - border-right: 5px solid transparent; - border-bottom: 5px solid #fff; - border-left: 5px solid transparent; - content: ''; -} - -.dropdown-menu-arrow.dropdown-menu-right:before, .dropdown-menu-arrow.dropdown-menu-right:after { - left: auto; - right: 12px; -} - -.dropdown-toggle { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - cursor: pointer; -} - -.dropdown-toggle:after { - vertical-align: 0.155em; -} - -.dropdown-toggle:empty:after { - margin-left: 0; -} - -.dropdown-icon { - color: #9aa0ac; - margin-right: .5rem; - margin-left: -.5rem; - width: 1em; - display: inline-block; - text-align: center; - vertical-align: -1px; -} - -.list-inline-dots .list-inline-item + .list-inline-item:before { - content: '· '; - margin-left: -2px; - margin-right: 3px; -} - -.list-separated-item { - padding: 1rem 0; -} - -.list-separated-item:first-child { - padding-top: 0; -} - -.list-separated-item:last-child { - padding-bottom: 0; -} - -.list-separated-item + .list-separated-item { - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.list-group-item.active .icon { - color: inherit !important; -} - -.list-group-transparent .list-group-item { - background: none; - border: 0; - padding: .5rem 1rem; - border-radius: 3px; -} - -.list-group-transparent .list-group-item.active { - background: rgba(70, 127, 207, 0.06); - font-weight: 600; -} - -.avatar { - width: 2rem; - height: 2rem; - line-height: 2rem; - border-radius: 50%; - display: inline-block; - background: #ced4da no-repeat center/cover; - position: relative; - text-align: center; - color: #868e96; - font-weight: 600; - vertical-align: bottom; - font-size: .875rem; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.avatar i { - font-size: 125%; - vertical-align: sub; -} - -.avatar-status { - position: absolute; - right: -2px; - bottom: -2px; - width: .75rem; - height: .75rem; - border: 2px solid #fff; - background: #868e96; - border-radius: 50%; -} - -.avatar-sm { - width: 1.5rem; - height: 1.5rem; - line-height: 1.5rem; - font-size: .75rem; -} - -.avatar-md { - width: 2.5rem; - height: 2.5rem; - line-height: 2.5rem; - font-size: 1rem; -} - -.avatar-lg { - width: 3rem; - height: 3rem; - line-height: 3rem; - font-size: 1.25rem; -} - -.avatar-xl { - width: 4rem; - height: 4rem; - line-height: 4rem; - font-size: 1.75rem; -} - -.avatar-xxl { - width: 5rem; - height: 5rem; - line-height: 5rem; - font-size: 2rem; -} - -.avatar-placeholder { - background: #ced4da url('data:image/svg+xml;charset=utf8,') no-repeat center/80%; -} - -.avatar-list { - margin: 0 0 -.5rem; - padding: 0; - font-size: 0; -} - -.avatar-list .avatar { - margin-bottom: .5rem; -} - -.avatar-list .avatar:not(:last-child) { - margin-right: .5rem; -} - -.avatar-list-stacked .avatar { - margin-right: -.8em !important; -} - -.avatar-list-stacked .avatar { - box-shadow: 0 0 0 2px #fff; -} - -.avatar-blue { - background-color: #c8d9f1; - color: #467fcf; -} - -.avatar-indigo { - background-color: #d1d5f0; - color: #6574cd; -} - -.avatar-purple { - background-color: #e4cff9; - color: #a55eea; -} - -.avatar-pink { - background-color: #fcd3e1; - color: #f66d9b; -} - -.avatar-red { - background-color: #f0bcbc; - color: #cd201f; -} - -.avatar-orange { - background-color: #fee0c7; - color: #fd9644; -} - -.avatar-yellow { - background-color: #fbedb7; - color: #f1c40f; -} - -.avatar-green { - background-color: #cfeab3; - color: #5eba00; -} - -.avatar-teal { - background-color: #bfefea; - color: #2bcbba; -} - -.avatar-cyan { - background-color: #b9e3ea; - color: #17a2b8; -} - -.avatar-white { - background-color: white; - color: #fff; -} - -.avatar-gray { - background-color: #dbdde0; - color: #868e96; -} - -.avatar-gray-dark { - background-color: #c2c4c6; - color: #343a40; -} - -.avatar-azure { - background-color: #c7e6fb; - color: #45aaf2; -} - -.avatar-lime { - background-color: #d7f2c2; - color: #7bd235; -} - -.product-price { - font-size: 1rem; -} - -.product-price strong { - font-size: 1.5rem; -} - -@-webkit-keyframes indeterminate { - 0% { - left: -35%; - right: 100%; - } - 100%, 60% { - left: 100%; - right: -90%; - } -} - -@keyframes indeterminate { - 0% { - left: -35%; - right: 100%; - } - 100%, 60% { - left: 100%; - right: -90%; - } -} - -@-webkit-keyframes indeterminate-short { - 0% { - left: -200%; - right: 100%; - } - 100%, 60% { - left: 107%; - right: -8%; - } -} - -@keyframes indeterminate-short { - 0% { - left: -200%; - right: 100%; - } - 100%, 60% { - left: 107%; - right: -8%; - } -} - -.progress { - position: relative; -} - -.progress-xs, -.progress-xs .progress-bar { - height: .25rem; -} - -.progress-sm, -.progress-sm .progress-bar { - height: .5rem; -} - -.progress-bar-indeterminate:after, .progress-bar-indeterminate:before { - content: ''; - position: absolute; - background-color: inherit; - left: 0; - will-change: left, right; - top: 0; - bottom: 0; -} - -.progress-bar-indeterminate:before { - -webkit-animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; -} - -.progress-bar-indeterminate:after { - -webkit-animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite; - animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite; - -webkit-animation-delay: 1.15s; - animation-delay: 1.15s; -} - -@-webkit-keyframes loader { - from { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - to { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -@keyframes loader { - from { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - to { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -/** -Dimmer -*/ -.dimmer { - position: relative; -} - -.dimmer .loader { - display: none; - margin: 0 auto; - position: absolute; - top: 50%; - left: 0; - right: 0; - -webkit-transform: translateY(-50%); - transform: translateY(-50%); -} - -.dimmer.active .loader { - display: block; -} - -.dimmer.active .dimmer-content { - opacity: .04; - pointer-events: none; -} - -/** -Loader -*/ -.loader { - display: block; - position: relative; - height: 2.5rem; - width: 2.5rem; - color: #467fcf; -} - -.loader:before, .loader:after { - width: 2.5rem; - height: 2.5rem; - margin: -1.25rem 0 0 -1.25rem; - position: absolute; - content: ''; - top: 50%; - left: 50%; -} - -.loader:before { - border-radius: 50%; - border: 3px solid currentColor; - opacity: .15; -} - -.loader:after { - -webkit-animation: loader .6s linear; - animation: loader .6s linear; - -webkit-animation-iteration-count: infinite; - animation-iteration-count: infinite; - border-radius: 50%; - border: 3px solid; - border-color: transparent; - border-top-color: currentColor; - box-shadow: 0 0 0 1px transparent; -} - -.icons-list { - list-style: none; - margin: 0 -1px -1px 0; - padding: 0; - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; -} - -.icons-list > li { - -ms-flex: 1 0 4rem; - flex: 1 0 4rem; -} - -.icons-list-wrap { - overflow: hidden; -} - -.icons-list-item { - text-align: center; - height: 4rem; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - border-right: 1px solid rgba(0, 40, 100, 0.12); - border-bottom: 1px solid rgba(0, 40, 100, 0.12); -} - -.icons-list-item i { - font-size: 1.25rem; -} - -.img-gallery { - margin-right: -.25rem; - margin-left: -.25rem; - margin-bottom: -.5rem; -} - -.img-gallery > .col, -.img-gallery > [class*="col-"] { - padding-left: .25rem; - padding-right: .25rem; - padding-bottom: .5rem; -} - -.link-overlay { - position: relative; -} - -.link-overlay:hover .link-overlay-bg { - opacity: 1; -} - -.link-overlay-bg { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - background: rgba(70, 127, 207, 0.8); - display: -ms-flexbox; - display: flex; - color: #fff; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - font-size: 1.25rem; - opacity: 0; - transition: .3s opacity; -} - -.media-icon { - width: 2rem; - height: 2rem; - line-height: 2rem; - text-align: center; - border-radius: 100%; -} - -.media-list { - margin: 0; - padding: 0; - list-style: none; -} - -textarea[cols] { - height: auto; -} - -.form-group { - display: block; -} - -.form-label { - display: block; - margin-bottom: .375rem; - font-weight: 600; - font-size: 0.875rem; -} - -.form-label-small { - float: right; - font-weight: 400; - font-size: 87.5%; -} - -.form-footer { - margin-top: 2rem; -} - -.custom-control { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.custom-controls-stacked .custom-control { - margin-bottom: .25rem; -} - -.custom-control-label { - vertical-align: middle; -} - -.custom-control-label:before { - border: 1px solid rgba(0, 40, 100, 0.12); - background-color: #fff; - background-size: .5rem; -} - -.custom-control-description { - line-height: 1.5rem; -} - -.input-group-prepend, -.input-group-append, -.input-group-btn { - font-size: 0.9375rem; -} - -.input-group-prepend > .btn, -.input-group-append > .btn, -.input-group-btn > .btn { - height: 100%; - border-color: rgba(0, 40, 100, 0.12); -} - -.input-group-prepend > .input-group-text { - border-right: 0; -} - -.input-group-append > .input-group-text { - border-left: 0; -} - -/** -Icon input - */ -.input-icon { - position: relative; -} - -.input-icon .form-control:not(:last-child) { - padding-right: 2.5rem; -} - -.input-icon .form-control:not(:first-child) { - padding-left: 2.5rem; -} - -.input-icon-addon { - position: absolute; - top: 0; - bottom: 0; - left: 0; - color: #9aa0ac; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - min-width: 2.5rem; - pointer-events: none; -} - -.input-icon-addon:last-child { - left: auto; - right: 0; -} - -.form-fieldset { - background: #f8f9fa; - border: 1px solid #e9ecef; - padding: 1rem; - border-radius: 3px; - margin-bottom: 1rem; -} - -.form-required { - color: #cd201f; -} - -.form-required:before { - content: ' '; -} - -.state-valid { - padding-right: 2rem; - background: url("data:image/svg+xml;charset=utf8,") no-repeat center right 0.5rem/1rem; -} - -.state-invalid { - padding-right: 2rem; - background: url("data:image/svg+xml;charset=utf8,") no-repeat center right 0.5rem/1rem; -} - -.form-help { - display: inline-block; - width: 1rem; - height: 1rem; - text-align: center; - line-height: 1rem; - color: #9aa0ac; - background: #f8f9fa; - border-radius: 50%; - font-size: 0.75rem; - transition: .3s background-color, .3s color; - text-decoration: none; - cursor: pointer; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.form-help:hover, .form-help[aria-describedby] { - background: #467fcf; - color: #fff; -} - -.sparkline { - display: inline-block; - height: 2rem; -} - -.jqstooltip { - box-sizing: content-box; - font-family: inherit !important; - background: #333 !important; - border: none !important; - border-radius: 3px; - font-size: 11px !important; - font-weight: 700 !important; - line-height: 1 !important; - padding: 6px !important; -} - -.jqstooltip .jqsfield { - font: inherit !important; -} - -.social-links li a { - background: #f8f8f8; - border-radius: 50%; - color: #9aa0ac; - display: inline-block; - height: 1.75rem; - width: 1.75rem; - line-height: 1.75rem; - text-align: center; -} - -.map, -.chart { - position: relative; - padding-top: 56.25%; -} - -.map-square, -.chart-square { - padding-top: 100%; -} - -.map-content, -.chart-content { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; -} - -.map-header { - margin-top: -1.5rem; - margin-bottom: 1.5rem; - height: 15rem; - position: relative; - margin-bottom: -1.5rem; -} - -.map-header:before { - content: ''; - position: absolute; - bottom: 0; - left: 0; - right: 0; - height: 10rem; - background: linear-gradient(to bottom, rgba(245, 247, 251, 0) 5%, #f5f7fb 95%); - pointer-events: none; -} - -.map-header-layer { - height: 100%; -} - -.map-static { - height: 120px; - width: 100%; - max-width: 640px; - background-position: center center; - background-size: 640px 120px; -} - -@-webkit-keyframes status-pulse { - 0%, 100% { - opacity: 1; - } - 50% { - opacity: .32; - } -} - -@keyframes status-pulse { - 0%, 100% { - opacity: 1; - } - 50% { - opacity: .32; - } -} - -.status-icon { - content: ''; - width: 0.5rem; - height: 0.5rem; - display: inline-block; - background: currentColor; - border-radius: 50%; - -webkit-transform: translateY(-1px); - transform: translateY(-1px); - margin-right: .375rem; - vertical-align: middle; -} - -.status-animated { - -webkit-animation: 1s status-pulse infinite ease; - animation: 1s status-pulse infinite ease; -} - -.chart-circle { - display: block; - height: 8rem; - width: 8rem; - position: relative; -} - -.chart-circle canvas { - margin: 0 auto; - display: block; - max-width: 100%; - max-height: 100%; -} - -.chart-circle-xs { - height: 2.5rem; - width: 2.5rem; - font-size: .8rem; -} - -.chart-circle-sm { - height: 4rem; - width: 4rem; - font-size: .8rem; -} - -.chart-circle-lg { - height: 10rem; - width: 10rem; - font-size: .8rem; -} - -.chart-circle-value { - position: absolute; - top: 0; - left: 0; - right: 0; - margin-left: auto; - margin-right: auto; - bottom: 0; - display: -ms-flexbox; - display: flex; - -ms-flex-pack: center; - justify-content: center; - -ms-flex-align: center; - align-items: center; - -ms-flex-direction: column; - flex-direction: column; - line-height: 1; -} - -.chart-circle-value small { - display: block; - color: #9aa0ac; - font-size: 0.9375rem; -} - -.chips { - margin: 0 0 -.5rem; -} - -.chips .chip { - margin: 0 .5rem .5rem 0; -} - -.chip { - display: inline-block; - height: 2rem; - line-height: 2rem; - font-size: 0.875rem; - font-weight: 500; - color: #6e7687; - padding: 0 .75rem; - border-radius: 1rem; - background-color: #f8f9fa; - transition: .3s background; -} - -.chip .avatar { - float: left; - margin: 0 .5rem 0 -.75rem; - height: 2rem; - width: 2rem; - border-radius: 50%; -} - -a.chip:hover { - color: inherit; - text-decoration: none; - background-color: #e9ecef; -} - -.stamp { - color: #fff; - background: #868e96; - display: inline-block; - min-width: 2rem; - height: 2rem; - padding: 0 .25rem; - line-height: 2rem; - text-align: center; - border-radius: 3px; - font-weight: 600; -} - -.stamp-md { - min-width: 2.5rem; - height: 2.5rem; - line-height: 2.5rem; -} - -.chat { - outline: 0; - margin: 0; - padding: 0; - list-style-type: none; - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - -ms-flex-pack: end; - justify-content: flex-end; - min-height: 100%; -} - -.chat-line { - padding: 0; - text-align: right; - position: relative; - display: -ms-flexbox; - display: flex; - -ms-flex-direction: row-reverse; - flex-direction: row-reverse; -} - -.chat-line + .chat-line { - padding-top: 1rem; -} - -.chat-message { - position: relative; - display: inline-block; - background-color: #467fcf; - color: #fff; - font-size: 0.875rem; - padding: .375rem .5rem; - border-radius: 3px; - white-space: normal; - text-align: left; - margin: 0 .5rem 0 2.5rem; - line-height: 1.4; -} - -.chat-message > :last-child { - margin-bottom: 0 !important; -} - -.chat-message:after { - content: ""; - position: absolute; - right: -5px; - top: 7px; - border-bottom: 6px solid transparent; - border-left: 6px solid #467fcf; - border-top: 6px solid transparent; -} - -.chat-message img { - max-width: 100%; -} - -.chat-message p { - margin-bottom: 1em; -} - -.chat-line-friend { - -ms-flex-direction: row; - flex-direction: row; -} - -.chat-line-friend + .chat-line-friend { - margin-top: -.5rem; -} - -.chat-line-friend + .chat-line-friend .chat-author { - visibility: hidden; -} - -.chat-line-friend + .chat-line-friend .chat-message:after { - display: none; -} - -.chat-line-friend .chat-message { - background-color: #f3f3f3; - color: #495057; - margin-left: .5rem; - margin-right: 2.5rem; -} - -.chat-line-friend .chat-message:after { - right: auto; - left: -5px; - border-left-width: 0; - border-right: 5px solid #f3f3f3; -} - -.example { - padding: 1.5rem; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px 3px 0 0; - font-size: 0.9375rem; -} - -.example-bg { - background: #f5f7fb; -} - -.example + .highlight { - border-top: none; - margin-top: 0; - border-radius: 0 0 3px 3px; -} - -.highlight { - margin: 1rem 0 2rem; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; - font-size: 0.9375rem; - max-height: 40rem; - overflow: auto; - background: #fcfcfc; -} - -.highlight pre { - margin-bottom: 0; - background-color: transparent; -} - -.example-column { - margin: 0 auto; -} - -.example-column > .card:last-of-type { - margin-bottom: 0; -} - -.example-column-1 { - max-width: 20rem; -} - -.example-column-2 { - max-width: 40rem; -} - -.tag { - font-size: 0.75rem; - color: #6e7687; - background-color: #e9ecef; - border-radius: 3px; - padding: 0 .5rem; - line-height: 2em; - display: -ms-inline-flexbox; - display: inline-flex; - cursor: default; - font-weight: 400; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -a.tag { - text-decoration: none; - cursor: pointer; - transition: .3s color, .3s background; -} - -a.tag:hover { - background-color: rgba(110, 118, 135, 0.2); - color: inherit; -} - -.tag-addon { - display: inline-block; - padding: 0 .5rem; - color: inherit; - text-decoration: none; - background: rgba(0, 0, 0, 0.06); - margin: 0 -.5rem 0 .5rem; - text-align: center; - min-width: 1.5rem; -} - -.tag-addon:last-child { - border-top-right-radius: 3px; - border-bottom-right-radius: 3px; -} - -.tag-addon i { - vertical-align: middle; - margin: 0 -.25rem; -} - -a.tag-addon { - text-decoration: none; - cursor: pointer; - transition: .3s color, .3s background; -} - -a.tag-addon:hover { - background: rgba(0, 0, 0, 0.16); - color: inherit; -} - -.tag-avatar { - width: 1.5rem; - height: 1.5rem; - border-radius: 3px 0 0 3px; - margin: 0 .5rem 0 -.5rem; -} - -.tag-blue { - background-color: #467fcf; - color: #fff; -} - -.tag-indigo { - background-color: #6574cd; - color: #fff; -} - -.tag-purple { - background-color: #a55eea; - color: #fff; -} - -.tag-pink { - background-color: #f66d9b; - color: #fff; -} - -.tag-red { - background-color: #cd201f; - color: #fff; -} - -.tag-orange { - background-color: #fd9644; - color: #fff; -} - -.tag-yellow { - background-color: #f1c40f; - color: #fff; -} - -.tag-green { - background-color: #5eba00; - color: #fff; -} - -.tag-teal { - background-color: #2bcbba; - color: #fff; -} - -.tag-cyan { - background-color: #17a2b8; - color: #fff; -} - -.tag-white { - background-color: #fff; - color: #fff; -} - -.tag-gray { - background-color: #868e96; - color: #fff; -} - -.tag-gray-dark { - background-color: #343a40; - color: #fff; -} - -.tag-azure { - background-color: #45aaf2; - color: #fff; -} - -.tag-lime { - background-color: #7bd235; - color: #fff; -} - -.tag-primary { - background-color: #467fcf; - color: #fff; -} - -.tag-secondary { - background-color: #868e96; - color: #fff; -} - -.tag-success { - background-color: #5eba00; - color: #fff; -} - -.tag-info { - background-color: #45aaf2; - color: #fff; -} - -.tag-warning { - background-color: #f1c40f; - color: #fff; -} - -.tag-danger { - background-color: #cd201f; - color: #fff; -} - -.tag-light { - background-color: #f8f9fa; - color: #fff; -} - -.tag-dark { - background-color: #343a40; - color: #fff; -} - -.tag-rounded { - border-radius: 50px; -} - -.tag-rounded .tag-avatar { - border-radius: 50px; -} - -.tags { - margin-bottom: -.5rem; - font-size: 0; -} - -.tags > .tag { - margin-bottom: .5rem; -} - -.tags > .tag:not(:last-child) { - margin-right: .5rem; -} - -.highlight .hll { - background-color: #ffc; -} - -.highlight .c { - color: #999; -} - -.highlight .k { - color: #069; -} - -.highlight .o { - color: #555; -} - -.highlight .cm { - color: #999; -} - -.highlight .cp { - color: #099; -} - -.highlight .c1 { - color: #999; -} - -.highlight .cs { - color: #999; -} - -.highlight .gd { - background-color: #fcc; - border: 1px solid #c00; -} - -.highlight .ge { - font-style: italic; -} - -.highlight .gr { - color: #f00; -} - -.highlight .gh { - color: #030; -} - -.highlight .gi { - background-color: #cfc; - border: 1px solid #0c0; -} - -.highlight .go { - color: #aaa; -} - -.highlight .gp { - color: #009; -} - -.highlight .gu { - color: #030; -} - -.highlight .gt { - color: #9c6; -} - -.highlight .kc { - color: #069; -} - -.highlight .kd { - color: #069; -} - -.highlight .kn { - color: #069; -} - -.highlight .kp { - color: #069; -} - -.highlight .kr { - color: #069; -} - -.highlight .kt { - color: #078; -} - -.highlight .m { - color: #f60; -} - -.highlight .s { - color: #d44950; -} - -.highlight .na { - color: #4f9fcf; -} - -.highlight .nb { - color: #366; -} - -.highlight .nc { - color: #0a8; -} - -.highlight .no { - color: #360; -} - -.highlight .nd { - color: #99f; -} - -.highlight .ni { - color: #999; -} - -.highlight .ne { - color: #c00; -} - -.highlight .nf { - color: #c0f; -} - -.highlight .nl { - color: #99f; -} - -.highlight .nn { - color: #0cf; -} - -.highlight .nt { - color: #2f6f9f; -} - -.highlight .nv { - color: #033; -} - -.highlight .ow { - color: #000; -} - -.highlight .w { - color: #bbb; -} - -.highlight .mf { - color: #f60; -} - -.highlight .mh { - color: #f60; -} - -.highlight .mi { - color: #f60; -} - -.highlight .mo { - color: #f60; -} - -.highlight .sb { - color: #c30; -} - -.highlight .sc { - color: #c30; -} - -.highlight .sd { - font-style: italic; - color: #c30; -} - -.highlight .s2 { - color: #c30; -} - -.highlight .se { - color: #c30; -} - -.highlight .sh { - color: #c30; -} - -.highlight .si { - color: #a00; -} - -.highlight .sx { - color: #c30; -} - -.highlight .sr { - color: #3aa; -} - -.highlight .s1 { - color: #c30; -} - -.highlight .ss { - color: #fc3; -} - -.highlight .bp { - color: #366; -} - -.highlight .vc { - color: #033; -} - -.highlight .vg { - color: #033; -} - -.highlight .vi { - color: #033; -} - -.highlight .il { - color: #f60; -} - -.highlight .css .o, -.highlight .css .o + .nt, -.highlight .css .nt + .nt { - color: #999; -} - -.highlight .language-bash::before, -.highlight .language-sh::before { - color: #009; - content: "$ "; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.highlight .language-powershell::before { - color: #009; - content: "PM> "; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.carousel-item-background { - content: ''; - background: rgba(0, 0, 0, 0.5); - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; -} - -.custom-range { - -ms-flex-align: center; - align-items: center; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - background: none; - cursor: pointer; - display: -ms-flexbox; - display: flex; - height: 100%; - min-height: 2.375rem; - overflow: hidden; - padding: 0; - border: 0; -} - -.custom-range:focus { - box-shadow: none; - outline: none; -} - -.custom-range:focus::-webkit-slider-thumb { - border-color: #467fcf; - background-color: #467fcf; -} - -.custom-range:focus::-moz-range-thumb { - border-color: #467fcf; - background-color: #467fcf; -} - -.custom-range:focus::-ms-thumb { - border-color: #467fcf; - background-color: #467fcf; -} - -.custom-range::-moz-focus-outer { - border: 0; -} - -.custom-range::-webkit-slider-runnable-track { - background: #467fcf; - content: ''; - height: 2px; - pointer-events: none; -} - -.custom-range::-webkit-slider-thumb { - width: 14px; - height: 14px; - -webkit-appearance: none; - appearance: none; - background: #fff; - border-radius: 50px; - box-shadow: 1px 0 0 -6px rgba(0, 50, 126, 0.12), 6px 0 0 -6px rgba(0, 50, 126, 0.12), 7px 0 0 -6px rgba(0, 50, 126, 0.12), 8px 0 0 -6px rgba(0, 50, 126, 0.12), 9px 0 0 -6px rgba(0, 50, 126, 0.12), 10px 0 0 -6px rgba(0, 50, 126, 0.12), 11px 0 0 -6px rgba(0, 50, 126, 0.12), 12px 0 0 -6px rgba(0, 50, 126, 0.12), 13px 0 0 -6px rgba(0, 50, 126, 0.12), 14px 0 0 -6px rgba(0, 50, 126, 0.12), 15px 0 0 -6px rgba(0, 50, 126, 0.12), 16px 0 0 -6px rgba(0, 50, 126, 0.12), 17px 0 0 -6px rgba(0, 50, 126, 0.12), 18px 0 0 -6px rgba(0, 50, 126, 0.12), 19px 0 0 -6px rgba(0, 50, 126, 0.12), 20px 0 0 -6px rgba(0, 50, 126, 0.12), 21px 0 0 -6px rgba(0, 50, 126, 0.12), 22px 0 0 -6px rgba(0, 50, 126, 0.12), 23px 0 0 -6px rgba(0, 50, 126, 0.12), 24px 0 0 -6px rgba(0, 50, 126, 0.12), 25px 0 0 -6px rgba(0, 50, 126, 0.12), 26px 0 0 -6px rgba(0, 50, 126, 0.12), 27px 0 0 -6px rgba(0, 50, 126, 0.12), 28px 0 0 -6px rgba(0, 50, 126, 0.12), 29px 0 0 -6px rgba(0, 50, 126, 0.12), 30px 0 0 -6px rgba(0, 50, 126, 0.12), 31px 0 0 -6px rgba(0, 50, 126, 0.12), 32px 0 0 -6px rgba(0, 50, 126, 0.12), 33px 0 0 -6px rgba(0, 50, 126, 0.12), 34px 0 0 -6px rgba(0, 50, 126, 0.12), 35px 0 0 -6px rgba(0, 50, 126, 0.12), 36px 0 0 -6px rgba(0, 50, 126, 0.12), 37px 0 0 -6px rgba(0, 50, 126, 0.12), 38px 0 0 -6px rgba(0, 50, 126, 0.12), 39px 0 0 -6px rgba(0, 50, 126, 0.12), 40px 0 0 -6px rgba(0, 50, 126, 0.12), 41px 0 0 -6px rgba(0, 50, 126, 0.12), 42px 0 0 -6px rgba(0, 50, 126, 0.12), 43px 0 0 -6px rgba(0, 50, 126, 0.12), 44px 0 0 -6px rgba(0, 50, 126, 0.12), 45px 0 0 -6px rgba(0, 50, 126, 0.12), 46px 0 0 -6px rgba(0, 50, 126, 0.12), 47px 0 0 -6px rgba(0, 50, 126, 0.12), 48px 0 0 -6px rgba(0, 50, 126, 0.12), 49px 0 0 -6px rgba(0, 50, 126, 0.12), 50px 0 0 -6px rgba(0, 50, 126, 0.12), 51px 0 0 -6px rgba(0, 50, 126, 0.12), 52px 0 0 -6px rgba(0, 50, 126, 0.12), 53px 0 0 -6px rgba(0, 50, 126, 0.12), 54px 0 0 -6px rgba(0, 50, 126, 0.12), 55px 0 0 -6px rgba(0, 50, 126, 0.12), 56px 0 0 -6px rgba(0, 50, 126, 0.12), 57px 0 0 -6px rgba(0, 50, 126, 0.12), 58px 0 0 -6px rgba(0, 50, 126, 0.12), 59px 0 0 -6px rgba(0, 50, 126, 0.12), 60px 0 0 -6px rgba(0, 50, 126, 0.12), 61px 0 0 -6px rgba(0, 50, 126, 0.12), 62px 0 0 -6px rgba(0, 50, 126, 0.12), 63px 0 0 -6px rgba(0, 50, 126, 0.12), 64px 0 0 -6px rgba(0, 50, 126, 0.12), 65px 0 0 -6px rgba(0, 50, 126, 0.12), 66px 0 0 -6px rgba(0, 50, 126, 0.12), 67px 0 0 -6px rgba(0, 50, 126, 0.12), 68px 0 0 -6px rgba(0, 50, 126, 0.12), 69px 0 0 -6px rgba(0, 50, 126, 0.12), 70px 0 0 -6px rgba(0, 50, 126, 0.12), 71px 0 0 -6px rgba(0, 50, 126, 0.12), 72px 0 0 -6px rgba(0, 50, 126, 0.12), 73px 0 0 -6px rgba(0, 50, 126, 0.12), 74px 0 0 -6px rgba(0, 50, 126, 0.12), 75px 0 0 -6px rgba(0, 50, 126, 0.12), 76px 0 0 -6px rgba(0, 50, 126, 0.12), 77px 0 0 -6px rgba(0, 50, 126, 0.12), 78px 0 0 -6px rgba(0, 50, 126, 0.12), 79px 0 0 -6px rgba(0, 50, 126, 0.12), 80px 0 0 -6px rgba(0, 50, 126, 0.12), 81px 0 0 -6px rgba(0, 50, 126, 0.12), 82px 0 0 -6px rgba(0, 50, 126, 0.12), 83px 0 0 -6px rgba(0, 50, 126, 0.12), 84px 0 0 -6px rgba(0, 50, 126, 0.12), 85px 0 0 -6px rgba(0, 50, 126, 0.12), 86px 0 0 -6px rgba(0, 50, 126, 0.12), 87px 0 0 -6px rgba(0, 50, 126, 0.12), 88px 0 0 -6px rgba(0, 50, 126, 0.12), 89px 0 0 -6px rgba(0, 50, 126, 0.12), 90px 0 0 -6px rgba(0, 50, 126, 0.12), 91px 0 0 -6px rgba(0, 50, 126, 0.12), 92px 0 0 -6px rgba(0, 50, 126, 0.12), 93px 0 0 -6px rgba(0, 50, 126, 0.12), 94px 0 0 -6px rgba(0, 50, 126, 0.12), 95px 0 0 -6px rgba(0, 50, 126, 0.12), 96px 0 0 -6px rgba(0, 50, 126, 0.12), 97px 0 0 -6px rgba(0, 50, 126, 0.12), 98px 0 0 -6px rgba(0, 50, 126, 0.12), 99px 0 0 -6px rgba(0, 50, 126, 0.12), 100px 0 0 -6px rgba(0, 50, 126, 0.12), 101px 0 0 -6px rgba(0, 50, 126, 0.12), 102px 0 0 -6px rgba(0, 50, 126, 0.12), 103px 0 0 -6px rgba(0, 50, 126, 0.12), 104px 0 0 -6px rgba(0, 50, 126, 0.12), 105px 0 0 -6px rgba(0, 50, 126, 0.12), 106px 0 0 -6px rgba(0, 50, 126, 0.12), 107px 0 0 -6px rgba(0, 50, 126, 0.12), 108px 0 0 -6px rgba(0, 50, 126, 0.12), 109px 0 0 -6px rgba(0, 50, 126, 0.12), 110px 0 0 -6px rgba(0, 50, 126, 0.12), 111px 0 0 -6px rgba(0, 50, 126, 0.12), 112px 0 0 -6px rgba(0, 50, 126, 0.12), 113px 0 0 -6px rgba(0, 50, 126, 0.12), 114px 0 0 -6px rgba(0, 50, 126, 0.12), 115px 0 0 -6px rgba(0, 50, 126, 0.12), 116px 0 0 -6px rgba(0, 50, 126, 0.12), 117px 0 0 -6px rgba(0, 50, 126, 0.12), 118px 0 0 -6px rgba(0, 50, 126, 0.12), 119px 0 0 -6px rgba(0, 50, 126, 0.12), 120px 0 0 -6px rgba(0, 50, 126, 0.12), 121px 0 0 -6px rgba(0, 50, 126, 0.12), 122px 0 0 -6px rgba(0, 50, 126, 0.12), 123px 0 0 -6px rgba(0, 50, 126, 0.12), 124px 0 0 -6px rgba(0, 50, 126, 0.12), 125px 0 0 -6px rgba(0, 50, 126, 0.12), 126px 0 0 -6px rgba(0, 50, 126, 0.12), 127px 0 0 -6px rgba(0, 50, 126, 0.12), 128px 0 0 -6px rgba(0, 50, 126, 0.12), 129px 0 0 -6px rgba(0, 50, 126, 0.12), 130px 0 0 -6px rgba(0, 50, 126, 0.12), 131px 0 0 -6px rgba(0, 50, 126, 0.12), 132px 0 0 -6px rgba(0, 50, 126, 0.12), 133px 0 0 -6px rgba(0, 50, 126, 0.12), 134px 0 0 -6px rgba(0, 50, 126, 0.12), 135px 0 0 -6px rgba(0, 50, 126, 0.12), 136px 0 0 -6px rgba(0, 50, 126, 0.12), 137px 0 0 -6px rgba(0, 50, 126, 0.12), 138px 0 0 -6px rgba(0, 50, 126, 0.12), 139px 0 0 -6px rgba(0, 50, 126, 0.12), 140px 0 0 -6px rgba(0, 50, 126, 0.12), 141px 0 0 -6px rgba(0, 50, 126, 0.12), 142px 0 0 -6px rgba(0, 50, 126, 0.12), 143px 0 0 -6px rgba(0, 50, 126, 0.12), 144px 0 0 -6px rgba(0, 50, 126, 0.12), 145px 0 0 -6px rgba(0, 50, 126, 0.12), 146px 0 0 -6px rgba(0, 50, 126, 0.12), 147px 0 0 -6px rgba(0, 50, 126, 0.12), 148px 0 0 -6px rgba(0, 50, 126, 0.12), 149px 0 0 -6px rgba(0, 50, 126, 0.12), 150px 0 0 -6px rgba(0, 50, 126, 0.12), 151px 0 0 -6px rgba(0, 50, 126, 0.12), 152px 0 0 -6px rgba(0, 50, 126, 0.12), 153px 0 0 -6px rgba(0, 50, 126, 0.12), 154px 0 0 -6px rgba(0, 50, 126, 0.12), 155px 0 0 -6px rgba(0, 50, 126, 0.12), 156px 0 0 -6px rgba(0, 50, 126, 0.12), 157px 0 0 -6px rgba(0, 50, 126, 0.12), 158px 0 0 -6px rgba(0, 50, 126, 0.12), 159px 0 0 -6px rgba(0, 50, 126, 0.12), 160px 0 0 -6px rgba(0, 50, 126, 0.12), 161px 0 0 -6px rgba(0, 50, 126, 0.12), 162px 0 0 -6px rgba(0, 50, 126, 0.12), 163px 0 0 -6px rgba(0, 50, 126, 0.12), 164px 0 0 -6px rgba(0, 50, 126, 0.12), 165px 0 0 -6px rgba(0, 50, 126, 0.12), 166px 0 0 -6px rgba(0, 50, 126, 0.12), 167px 0 0 -6px rgba(0, 50, 126, 0.12), 168px 0 0 -6px rgba(0, 50, 126, 0.12), 169px 0 0 -6px rgba(0, 50, 126, 0.12), 170px 0 0 -6px rgba(0, 50, 126, 0.12), 171px 0 0 -6px rgba(0, 50, 126, 0.12), 172px 0 0 -6px rgba(0, 50, 126, 0.12), 173px 0 0 -6px rgba(0, 50, 126, 0.12), 174px 0 0 -6px rgba(0, 50, 126, 0.12), 175px 0 0 -6px rgba(0, 50, 126, 0.12), 176px 0 0 -6px rgba(0, 50, 126, 0.12), 177px 0 0 -6px rgba(0, 50, 126, 0.12), 178px 0 0 -6px rgba(0, 50, 126, 0.12), 179px 0 0 -6px rgba(0, 50, 126, 0.12), 180px 0 0 -6px rgba(0, 50, 126, 0.12), 181px 0 0 -6px rgba(0, 50, 126, 0.12), 182px 0 0 -6px rgba(0, 50, 126, 0.12), 183px 0 0 -6px rgba(0, 50, 126, 0.12), 184px 0 0 -6px rgba(0, 50, 126, 0.12), 185px 0 0 -6px rgba(0, 50, 126, 0.12), 186px 0 0 -6px rgba(0, 50, 126, 0.12), 187px 0 0 -6px rgba(0, 50, 126, 0.12), 188px 0 0 -6px rgba(0, 50, 126, 0.12), 189px 0 0 -6px rgba(0, 50, 126, 0.12), 190px 0 0 -6px rgba(0, 50, 126, 0.12), 191px 0 0 -6px rgba(0, 50, 126, 0.12), 192px 0 0 -6px rgba(0, 50, 126, 0.12), 193px 0 0 -6px rgba(0, 50, 126, 0.12), 194px 0 0 -6px rgba(0, 50, 126, 0.12), 195px 0 0 -6px rgba(0, 50, 126, 0.12), 196px 0 0 -6px rgba(0, 50, 126, 0.12), 197px 0 0 -6px rgba(0, 50, 126, 0.12), 198px 0 0 -6px rgba(0, 50, 126, 0.12), 199px 0 0 -6px rgba(0, 50, 126, 0.12), 200px 0 0 -6px rgba(0, 50, 126, 0.12), 201px 0 0 -6px rgba(0, 50, 126, 0.12), 202px 0 0 -6px rgba(0, 50, 126, 0.12), 203px 0 0 -6px rgba(0, 50, 126, 0.12), 204px 0 0 -6px rgba(0, 50, 126, 0.12), 205px 0 0 -6px rgba(0, 50, 126, 0.12), 206px 0 0 -6px rgba(0, 50, 126, 0.12), 207px 0 0 -6px rgba(0, 50, 126, 0.12), 208px 0 0 -6px rgba(0, 50, 126, 0.12), 209px 0 0 -6px rgba(0, 50, 126, 0.12), 210px 0 0 -6px rgba(0, 50, 126, 0.12), 211px 0 0 -6px rgba(0, 50, 126, 0.12), 212px 0 0 -6px rgba(0, 50, 126, 0.12), 213px 0 0 -6px rgba(0, 50, 126, 0.12), 214px 0 0 -6px rgba(0, 50, 126, 0.12), 215px 0 0 -6px rgba(0, 50, 126, 0.12), 216px 0 0 -6px rgba(0, 50, 126, 0.12), 217px 0 0 -6px rgba(0, 50, 126, 0.12), 218px 0 0 -6px rgba(0, 50, 126, 0.12), 219px 0 0 -6px rgba(0, 50, 126, 0.12), 220px 0 0 -6px rgba(0, 50, 126, 0.12), 221px 0 0 -6px rgba(0, 50, 126, 0.12), 222px 0 0 -6px rgba(0, 50, 126, 0.12), 223px 0 0 -6px rgba(0, 50, 126, 0.12), 224px 0 0 -6px rgba(0, 50, 126, 0.12), 225px 0 0 -6px rgba(0, 50, 126, 0.12), 226px 0 0 -6px rgba(0, 50, 126, 0.12), 227px 0 0 -6px rgba(0, 50, 126, 0.12), 228px 0 0 -6px rgba(0, 50, 126, 0.12), 229px 0 0 -6px rgba(0, 50, 126, 0.12), 230px 0 0 -6px rgba(0, 50, 126, 0.12), 231px 0 0 -6px rgba(0, 50, 126, 0.12), 232px 0 0 -6px rgba(0, 50, 126, 0.12), 233px 0 0 -6px rgba(0, 50, 126, 0.12), 234px 0 0 -6px rgba(0, 50, 126, 0.12), 235px 0 0 -6px rgba(0, 50, 126, 0.12), 236px 0 0 -6px rgba(0, 50, 126, 0.12), 237px 0 0 -6px rgba(0, 50, 126, 0.12), 238px 0 0 -6px rgba(0, 50, 126, 0.12), 239px 0 0 -6px rgba(0, 50, 126, 0.12), 240px 0 0 -6px rgba(0, 50, 126, 0.12); - margin-top: -6px; - border: 1px solid rgba(0, 30, 75, 0.12); - transition: .3s border-color, .3s background-color; -} - -.custom-range::-moz-range-track { - width: 240px; - height: 2px; - background: rgba(0, 50, 126, 0.12); -} - -.custom-range::-moz-range-thumb { - width: 14px; - height: 14px; - background: #fff; - border-radius: 50px; - border: 1px solid rgba(0, 30, 75, 0.12); - position: relative; - transition: .3s border-color, .3s background-color; -} - -.custom-range::-moz-range-progress { - height: 2px; - background: #467fcf; - border: 0; - margin-top: 0; -} - -.custom-range::-ms-track { - background: transparent; - border: 0; - border-color: transparent; - border-radius: 0; - border-width: 0; - color: transparent; - height: 2px; - margin-top: 10px; - width: 240px; -} - -.custom-range::-ms-thumb { - width: 240px; - height: 2px; - background: #fff; - border-radius: 50px; - border: 1px solid rgba(0, 30, 75, 0.12); - transition: .3s border-color, .3s background-color; -} - -.custom-range::-ms-fill-lower { - background: #467fcf; - border-radius: 0; -} - -.custom-range::-ms-fill-upper { - background: rgba(0, 50, 126, 0.12); - border-radius: 0; -} - -.custom-range::-ms-tooltip { - display: none; -} - -.selectgroup { - display: -ms-inline-flexbox; - display: inline-flex; -} - -.selectgroup-item { - -ms-flex-positive: 1; - flex-grow: 1; - position: relative; -} - -.selectgroup-item + .selectgroup-item { - margin-left: -1px; -} - -.selectgroup-item:not(:first-child) .selectgroup-button { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} - -.selectgroup-item:not(:last-child) .selectgroup-button { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} - -.selectgroup-input { - opacity: 0; - position: absolute; - z-index: -1; - top: 0; - left: 0; -} - -.selectgroup-button { - display: block; - border: 1px solid rgba(0, 40, 100, 0.12); - text-align: center; - padding: 0.375rem 1rem; - position: relative; - cursor: pointer; - border-radius: 3px; - color: #9aa0ac; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - font-size: 0.9375rem; - line-height: 1.5rem; - min-width: 2.375rem; -} - -.selectgroup-button-icon { - padding-left: .5rem; - padding-right: .5rem; - font-size: 1rem; -} - -.selectgroup-input:checked + .selectgroup-button { - border-color: #467fcf; - z-index: 1; - color: #467fcf; - background: #edf2fa; -} - -.selectgroup-input:focus + .selectgroup-button { - border-color: #467fcf; - z-index: 2; - color: #467fcf; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.selectgroup-pills { - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -ms-flex-align: start; - align-items: flex-start; -} - -.selectgroup-pills .selectgroup-item { - margin-right: .5rem; - -ms-flex-positive: 0; - flex-grow: 0; -} - -.selectgroup-pills .selectgroup-button { - border-radius: 50px !important; -} - -.custom-switch { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - cursor: default; - display: -ms-inline-flexbox; - display: inline-flex; - -ms-flex-align: center; - align-items: center; - margin: 0; -} - -.custom-switch-input { - position: absolute; - z-index: -1; - opacity: 0; -} - -.custom-switches-stacked { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; -} - -.custom-switches-stacked .custom-switch { - margin-bottom: .5rem; -} - -.custom-switch-indicator { - display: inline-block; - height: 1.25rem; - width: 2.25rem; - background: #e9ecef; - border-radius: 50px; - position: relative; - vertical-align: bottom; - border: 1px solid rgba(0, 40, 100, 0.12); - transition: .3s border-color, .3s background-color; -} - -.custom-switch-indicator:before { - content: ''; - position: absolute; - height: calc(1.25rem - 4px); - width: calc(1.25rem - 4px); - top: 1px; - left: 1px; - background: #fff; - border-radius: 50%; - transition: .3s left; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); -} - -.custom-switch-input:checked ~ .custom-switch-indicator { - background: #467fcf; -} - -.custom-switch-input:checked ~ .custom-switch-indicator:before { - left: calc(1rem + 1px); -} - -.custom-switch-input:focus ~ .custom-switch-indicator { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); - border-color: #467fcf; -} - -.custom-switch-description { - margin-left: .5rem; - color: #6e7687; - transition: .3s color; -} - -.custom-switch-input:checked ~ .custom-switch-description { - color: #495057; -} - -.imagecheck { - margin: 0; - position: relative; - cursor: pointer; -} - -.imagecheck-input { - position: absolute; - z-index: -1; - opacity: 0; -} - -.imagecheck-figure { - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; - margin: 0; - position: relative; -} - -.imagecheck-input:focus ~ .imagecheck-figure { - border-color: #467fcf; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.imagecheck-input:checked ~ .imagecheck-figure { - border-color: rgba(0, 40, 100, 0.24); -} - -.imagecheck-figure:before { - content: ''; - position: absolute; - top: .25rem; - left: .25rem; - display: block; - width: 1rem; - height: 1rem; - pointer-events: none; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - background: #467fcf url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E") no-repeat center center/50% 50%; - color: #fff; - z-index: 1; - border-radius: 3px; - opacity: 0; - transition: .3s opacity; -} - -.imagecheck-input:checked ~ .imagecheck-figure:before { - opacity: 1; -} - -.imagecheck-image { - max-width: 100%; - opacity: .64; - transition: .3s opacity; -} - -.imagecheck-image:first-child { - border-top-left-radius: 2px; - border-top-right-radius: 2px; -} - -.imagecheck-image:last-child { - border-bottom-left-radius: 2px; - border-bottom-right-radius: 2px; -} - -.imagecheck:hover .imagecheck-image, -.imagecheck-input:focus ~ .imagecheck-figure .imagecheck-image, -.imagecheck-input:checked ~ .imagecheck-figure .imagecheck-image { - opacity: 1; -} - -.imagecheck-caption { - text-align: center; - padding: .25rem .25rem; - color: #9aa0ac; - font-size: 0.875rem; - transition: .3s color; -} - -.imagecheck:hover .imagecheck-caption, -.imagecheck-input:focus ~ .imagecheck-figure .imagecheck-caption, -.imagecheck-input:checked ~ .imagecheck-figure .imagecheck-caption { - color: #495057; -} - -.colorinput { - margin: 0; - position: relative; - cursor: pointer; -} - -.colorinput-input { - position: absolute; - z-index: -1; - opacity: 0; -} - -.colorinput-color { - display: inline-block; - width: 1.75rem; - height: 1.75rem; - border-radius: 3px; - border: 1px solid rgba(0, 40, 100, 0.12); - color: #fff; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); -} - -.colorinput-color:before { - content: ''; - opacity: 0; - position: absolute; - top: .25rem; - left: .25rem; - height: 1.25rem; - width: 1.25rem; - transition: .3s opacity; - background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E") no-repeat center center/50% 50%; -} - -.colorinput-input:checked ~ .colorinput-color:before { - opacity: 1; -} - -.colorinput-input:focus ~ .colorinput-color { - border-color: #467fcf; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.timeline { - position: relative; - margin: 0 0 2rem; - padding: 0; - list-style: none; -} - -.timeline:before { - background-color: #e9ecef; - position: absolute; - display: block; - content: ''; - width: 1px; - height: 100%; - top: 0; - bottom: 0; - left: 4px; -} - -.timeline-item { - position: relative; - display: -ms-flexbox; - display: flex; - padding-left: 2rem; - margin: .5rem 0; -} - -.timeline-item:first-child:before, .timeline-item:last-child:before { - content: ''; - position: absolute; - background: #fff; - width: 1px; - left: .25rem; -} - -.timeline-item:first-child { - margin-top: 0; -} - -.timeline-item:first-child:before { - top: 0; - height: .5rem; -} - -.timeline-item:last-child { - margin-bottom: 0; -} - -.timeline-item:last-child:before { - top: .5rem; - bottom: 0; -} - -.timeline-badge { - position: absolute; - display: block; - width: 0.4375rem; - height: 0.4375rem; - left: 1px; - top: .5rem; - border-radius: 100%; - border: 1px solid #fff; - background: #adb5bd; -} - -.timeline-time { - white-space: nowrap; - margin-left: auto; - color: #9aa0ac; - font-size: 87.5%; -} - -.browser { - width: 1.25rem; - height: 1.25rem; - display: inline-block; - background: no-repeat center/100% 100%; - vertical-align: bottom; - font-style: normal; -} - -.browser-android-browser { - background-image: url("../images/browsers/android-browser.svg"); -} - -.browser-aol-explorer { - background-image: url("../images/browsers/aol-explorer.svg"); -} - -.browser-blackberry { - background-image: url("../images/browsers/blackberry.svg"); -} - -.browser-camino { - background-image: url("../images/browsers/camino.svg"); -} - -.browser-chrome { - background-image: url("../images/browsers/chrome.svg"); -} - -.browser-chromium { - background-image: url("../images/browsers/chromium.svg"); -} - -.browser-dolphin { - background-image: url("../images/browsers/dolphin.svg"); -} - -.browser-edge { - background-image: url("../images/browsers/edge.svg"); -} - -.browser-firefox { - background-image: url("../images/browsers/firefox.svg"); -} - -.browser-ie { - background-image: url("../images/browsers/ie.svg"); -} - -.browser-maxthon { - background-image: url("../images/browsers/maxthon.svg"); -} - -.browser-mozilla { - background-image: url("../images/browsers/mozilla.svg"); -} - -.browser-netscape { - background-image: url("../images/browsers/netscape.svg"); -} - -.browser-opera { - background-image: url("../images/browsers/opera.svg"); -} - -.browser-safari { - background-image: url("../images/browsers/safari.svg"); -} - -.browser-sleipnir { - background-image: url("../images/browsers/sleipnir.svg"); -} - -.browser-uc-browser { - background-image: url("../images/browsers/uc-browser.svg"); -} - -.browser-vivaldi { - background-image: url("../images/browsers/vivaldi.svg"); -} - -.flag { - width: 1.6rem; - height: 1.2rem; - display: inline-block; - background: no-repeat center/100% 100%; - vertical-align: bottom; - font-style: normal; - box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.1); - border-radius: 2px; -} - -.flag-ad { - background-image: url("../images/flags/ad.svg"); -} - -.flag-ae { - background-image: url("../images/flags/ae.svg"); -} - -.flag-af { - background-image: url("../images/flags/af.svg"); -} - -.flag-ag { - background-image: url("../images/flags/ag.svg"); -} - -.flag-ai { - background-image: url("../images/flags/ai.svg"); -} - -.flag-al { - background-image: url("../images/flags/al.svg"); -} - -.flag-am { - background-image: url("../images/flags/am.svg"); -} - -.flag-ao { - background-image: url("../images/flags/ao.svg"); -} - -.flag-aq { - background-image: url("../images/flags/aq.svg"); -} - -.flag-ar { - background-image: url("../images/flags/ar.svg"); -} - -.flag-as { - background-image: url("../images/flags/as.svg"); -} - -.flag-at { - background-image: url("../images/flags/at.svg"); -} - -.flag-au { - background-image: url("../images/flags/au.svg"); -} - -.flag-aw { - background-image: url("../images/flags/aw.svg"); -} - -.flag-ax { - background-image: url("../images/flags/ax.svg"); -} - -.flag-az { - background-image: url("../images/flags/az.svg"); -} - -.flag-ba { - background-image: url("../images/flags/ba.svg"); -} - -.flag-bb { - background-image: url("../images/flags/bb.svg"); -} - -.flag-bd { - background-image: url("../images/flags/bd.svg"); -} - -.flag-be { - background-image: url("../images/flags/be.svg"); -} - -.flag-bf { - background-image: url("../images/flags/bf.svg"); -} - -.flag-bg { - background-image: url("../images/flags/bg.svg"); -} - -.flag-bh { - background-image: url("../images/flags/bh.svg"); -} - -.flag-bi { - background-image: url("../images/flags/bi.svg"); -} - -.flag-bj { - background-image: url("../images/flags/bj.svg"); -} - -.flag-bl { - background-image: url("../images/flags/bl.svg"); -} - -.flag-bm { - background-image: url("../images/flags/bm.svg"); -} - -.flag-bn { - background-image: url("../images/flags/bn.svg"); -} - -.flag-bo { - background-image: url("../images/flags/bo.svg"); -} - -.flag-bq { - background-image: url("../images/flags/bq.svg"); -} - -.flag-br { - background-image: url("../images/flags/br.svg"); -} - -.flag-bs { - background-image: url("../images/flags/bs.svg"); -} - -.flag-bt { - background-image: url("../images/flags/bt.svg"); -} - -.flag-bv { - background-image: url("../images/flags/bv.svg"); -} - -.flag-bw { - background-image: url("../images/flags/bw.svg"); -} - -.flag-by { - background-image: url("../images/flags/by.svg"); -} - -.flag-bz { - background-image: url("../images/flags/bz.svg"); -} - -.flag-ca { - background-image: url("../images/flags/ca.svg"); -} - -.flag-cc { - background-image: url("../images/flags/cc.svg"); -} - -.flag-cd { - background-image: url("../images/flags/cd.svg"); -} - -.flag-cf { - background-image: url("../images/flags/cf.svg"); -} - -.flag-cg { - background-image: url("../images/flags/cg.svg"); -} - -.flag-ch { - background-image: url("../images/flags/ch.svg"); -} - -.flag-ci { - background-image: url("../images/flags/ci.svg"); -} - -.flag-ck { - background-image: url("../images/flags/ck.svg"); -} - -.flag-cl { - background-image: url("../images/flags/cl.svg"); -} - -.flag-cm { - background-image: url("../images/flags/cm.svg"); -} - -.flag-cn { - background-image: url("../images/flags/cn.svg"); -} - -.flag-co { - background-image: url("../images/flags/co.svg"); -} - -.flag-cr { - background-image: url("../images/flags/cr.svg"); -} - -.flag-cu { - background-image: url("../images/flags/cu.svg"); -} - -.flag-cv { - background-image: url("../images/flags/cv.svg"); -} - -.flag-cw { - background-image: url("../images/flags/cw.svg"); -} - -.flag-cx { - background-image: url("../images/flags/cx.svg"); -} - -.flag-cy { - background-image: url("../images/flags/cy.svg"); -} - -.flag-cz { - background-image: url("../images/flags/cz.svg"); -} - -.flag-de { - background-image: url("../images/flags/de.svg"); -} - -.flag-dj { - background-image: url("../images/flags/dj.svg"); -} - -.flag-dk { - background-image: url("../images/flags/dk.svg"); -} - -.flag-dm { - background-image: url("../images/flags/dm.svg"); -} - -.flag-do { - background-image: url("../images/flags/do.svg"); -} - -.flag-dz { - background-image: url("../images/flags/dz.svg"); -} - -.flag-ec { - background-image: url("../images/flags/ec.svg"); -} - -.flag-ee { - background-image: url("../images/flags/ee.svg"); -} - -.flag-eg { - background-image: url("../images/flags/eg.svg"); -} - -.flag-eh { - background-image: url("../images/flags/eh.svg"); -} - -.flag-er { - background-image: url("../images/flags/er.svg"); -} - -.flag-es { - background-image: url("../images/flags/es.svg"); -} - -.flag-et { - background-image: url("../images/flags/et.svg"); -} - -.flag-eu { - background-image: url("../images/flags/eu.svg"); -} - -.flag-fi { - background-image: url("../images/flags/fi.svg"); -} - -.flag-fj { - background-image: url("../images/flags/fj.svg"); -} - -.flag-fk { - background-image: url("../images/flags/fk.svg"); -} - -.flag-fm { - background-image: url("../images/flags/fm.svg"); -} - -.flag-fo { - background-image: url("../images/flags/fo.svg"); -} - -.flag-fr { - background-image: url("../images/flags/fr.svg"); -} - -.flag-ga { - background-image: url("../images/flags/ga.svg"); -} - -.flag-gb-eng { - background-image: url("../images/flags/gb-eng.svg"); -} - -.flag-gb-nir { - background-image: url("../images/flags/gb-nir.svg"); -} - -.flag-gb-sct { - background-image: url("../images/flags/gb-sct.svg"); -} - -.flag-gb-wls { - background-image: url("../images/flags/gb-wls.svg"); -} - -.flag-gb { - background-image: url("../images/flags/gb.svg"); -} - -.flag-gd { - background-image: url("../images/flags/gd.svg"); -} - -.flag-ge { - background-image: url("../images/flags/ge.svg"); -} - -.flag-gf { - background-image: url("../images/flags/gf.svg"); -} - -.flag-gg { - background-image: url("../images/flags/gg.svg"); -} - -.flag-gh { - background-image: url("../images/flags/gh.svg"); -} - -.flag-gi { - background-image: url("../images/flags/gi.svg"); -} - -.flag-gl { - background-image: url("../images/flags/gl.svg"); -} - -.flag-gm { - background-image: url("../images/flags/gm.svg"); -} - -.flag-gn { - background-image: url("../images/flags/gn.svg"); -} - -.flag-gp { - background-image: url("../images/flags/gp.svg"); -} - -.flag-gq { - background-image: url("../images/flags/gq.svg"); -} - -.flag-gr { - background-image: url("../images/flags/gr.svg"); -} - -.flag-gs { - background-image: url("../images/flags/gs.svg"); -} - -.flag-gt { - background-image: url("../images/flags/gt.svg"); -} - -.flag-gu { - background-image: url("../images/flags/gu.svg"); -} - -.flag-gw { - background-image: url("../images/flags/gw.svg"); -} - -.flag-gy { - background-image: url("../images/flags/gy.svg"); -} - -.flag-hk { - background-image: url("../images/flags/hk.svg"); -} - -.flag-hm { - background-image: url("../images/flags/hm.svg"); -} - -.flag-hn { - background-image: url("../images/flags/hn.svg"); -} - -.flag-hr { - background-image: url("../images/flags/hr.svg"); -} - -.flag-ht { - background-image: url("../images/flags/ht.svg"); -} - -.flag-hu { - background-image: url("../images/flags/hu.svg"); -} - -.flag-id { - background-image: url("../images/flags/id.svg"); -} - -.flag-ie { - background-image: url("../images/flags/ie.svg"); -} - -.flag-il { - background-image: url("../images/flags/il.svg"); -} - -.flag-im { - background-image: url("../images/flags/im.svg"); -} - -.flag-in { - background-image: url("../images/flags/in.svg"); -} - -.flag-io { - background-image: url("../images/flags/io.svg"); -} - -.flag-iq { - background-image: url("../images/flags/iq.svg"); -} - -.flag-ir { - background-image: url("../images/flags/ir.svg"); -} - -.flag-is { - background-image: url("../images/flags/is.svg"); -} - -.flag-it { - background-image: url("../images/flags/it.svg"); -} - -.flag-je { - background-image: url("../images/flags/je.svg"); -} - -.flag-jm { - background-image: url("../images/flags/jm.svg"); -} - -.flag-jo { - background-image: url("../images/flags/jo.svg"); -} - -.flag-jp { - background-image: url("../images/flags/jp.svg"); -} - -.flag-ke { - background-image: url("../images/flags/ke.svg"); -} - -.flag-kg { - background-image: url("../images/flags/kg.svg"); -} - -.flag-kh { - background-image: url("../images/flags/kh.svg"); -} - -.flag-ki { - background-image: url("../images/flags/ki.svg"); -} - -.flag-km { - background-image: url("../images/flags/km.svg"); -} - -.flag-kn { - background-image: url("../images/flags/kn.svg"); -} - -.flag-kp { - background-image: url("../images/flags/kp.svg"); -} - -.flag-kr { - background-image: url("../images/flags/kr.svg"); -} - -.flag-kw { - background-image: url("../images/flags/kw.svg"); -} - -.flag-ky { - background-image: url("../images/flags/ky.svg"); -} - -.flag-kz { - background-image: url("../images/flags/kz.svg"); -} - -.flag-la { - background-image: url("../images/flags/la.svg"); -} - -.flag-lb { - background-image: url("../images/flags/lb.svg"); -} - -.flag-lc { - background-image: url("../images/flags/lc.svg"); -} - -.flag-li { - background-image: url("../images/flags/li.svg"); -} - -.flag-lk { - background-image: url("../images/flags/lk.svg"); -} - -.flag-lr { - background-image: url("../images/flags/lr.svg"); -} - -.flag-ls { - background-image: url("../images/flags/ls.svg"); -} - -.flag-lt { - background-image: url("../images/flags/lt.svg"); -} - -.flag-lu { - background-image: url("../images/flags/lu.svg"); -} - -.flag-lv { - background-image: url("../images/flags/lv.svg"); -} - -.flag-ly { - background-image: url("../images/flags/ly.svg"); -} - -.flag-ma { - background-image: url("../images/flags/ma.svg"); -} - -.flag-mc { - background-image: url("../images/flags/mc.svg"); -} - -.flag-md { - background-image: url("../images/flags/md.svg"); -} - -.flag-me { - background-image: url("../images/flags/me.svg"); -} - -.flag-mf { - background-image: url("../images/flags/mf.svg"); -} - -.flag-mg { - background-image: url("../images/flags/mg.svg"); -} - -.flag-mh { - background-image: url("../images/flags/mh.svg"); -} - -.flag-mk { - background-image: url("../images/flags/mk.svg"); -} - -.flag-ml { - background-image: url("../images/flags/ml.svg"); -} - -.flag-mm { - background-image: url("../images/flags/mm.svg"); -} - -.flag-mn { - background-image: url("../images/flags/mn.svg"); -} - -.flag-mo { - background-image: url("../images/flags/mo.svg"); -} - -.flag-mp { - background-image: url("../images/flags/mp.svg"); -} - -.flag-mq { - background-image: url("../images/flags/mq.svg"); -} - -.flag-mr { - background-image: url("../images/flags/mr.svg"); -} - -.flag-ms { - background-image: url("../images/flags/ms.svg"); -} - -.flag-mt { - background-image: url("../images/flags/mt.svg"); -} - -.flag-mu { - background-image: url("../images/flags/mu.svg"); -} - -.flag-mv { - background-image: url("../images/flags/mv.svg"); -} - -.flag-mw { - background-image: url("../images/flags/mw.svg"); -} - -.flag-mx { - background-image: url("../images/flags/mx.svg"); -} - -.flag-my { - background-image: url("../images/flags/my.svg"); -} - -.flag-mz { - background-image: url("../images/flags/mz.svg"); -} - -.flag-na { - background-image: url("../images/flags/na.svg"); -} - -.flag-nc { - background-image: url("../images/flags/nc.svg"); -} - -.flag-ne { - background-image: url("../images/flags/ne.svg"); -} - -.flag-nf { - background-image: url("../images/flags/nf.svg"); -} - -.flag-ng { - background-image: url("../images/flags/ng.svg"); -} - -.flag-ni { - background-image: url("../images/flags/ni.svg"); -} - -.flag-nl { - background-image: url("../images/flags/nl.svg"); -} - -.flag-no { - background-image: url("../images/flags/no.svg"); -} - -.flag-np { - background-image: url("../images/flags/np.svg"); -} - -.flag-nr { - background-image: url("../images/flags/nr.svg"); -} - -.flag-nu { - background-image: url("../images/flags/nu.svg"); -} - -.flag-nz { - background-image: url("../images/flags/nz.svg"); -} - -.flag-om { - background-image: url("../images/flags/om.svg"); -} - -.flag-pa { - background-image: url("../images/flags/pa.svg"); -} - -.flag-pe { - background-image: url("../images/flags/pe.svg"); -} - -.flag-pf { - background-image: url("../images/flags/pf.svg"); -} - -.flag-pg { - background-image: url("../images/flags/pg.svg"); -} - -.flag-ph { - background-image: url("../images/flags/ph.svg"); -} - -.flag-pk { - background-image: url("../images/flags/pk.svg"); -} - -.flag-pl { - background-image: url("../images/flags/pl.svg"); -} - -.flag-pm { - background-image: url("../images/flags/pm.svg"); -} - -.flag-pn { - background-image: url("../images/flags/pn.svg"); -} - -.flag-pr { - background-image: url("../images/flags/pr.svg"); -} - -.flag-ps { - background-image: url("../images/flags/ps.svg"); -} - -.flag-pt { - background-image: url("../images/flags/pt.svg"); -} - -.flag-pw { - background-image: url("../images/flags/pw.svg"); -} - -.flag-py { - background-image: url("../images/flags/py.svg"); -} - -.flag-qa { - background-image: url("../images/flags/qa.svg"); -} - -.flag-re { - background-image: url("../images/flags/re.svg"); -} - -.flag-ro { - background-image: url("../images/flags/ro.svg"); -} - -.flag-rs { - background-image: url("../images/flags/rs.svg"); -} - -.flag-ru { - background-image: url("../images/flags/ru.svg"); -} - -.flag-rw { - background-image: url("../images/flags/rw.svg"); -} - -.flag-sa { - background-image: url("../images/flags/sa.svg"); -} - -.flag-sb { - background-image: url("../images/flags/sb.svg"); -} - -.flag-sc { - background-image: url("../images/flags/sc.svg"); -} - -.flag-sd { - background-image: url("../images/flags/sd.svg"); -} - -.flag-se { - background-image: url("../images/flags/se.svg"); -} - -.flag-sg { - background-image: url("../images/flags/sg.svg"); -} - -.flag-sh { - background-image: url("../images/flags/sh.svg"); -} - -.flag-si { - background-image: url("../images/flags/si.svg"); -} - -.flag-sj { - background-image: url("../images/flags/sj.svg"); -} - -.flag-sk { - background-image: url("../images/flags/sk.svg"); -} - -.flag-sl { - background-image: url("../images/flags/sl.svg"); -} - -.flag-sm { - background-image: url("../images/flags/sm.svg"); -} - -.flag-sn { - background-image: url("../images/flags/sn.svg"); -} - -.flag-so { - background-image: url("../images/flags/so.svg"); -} - -.flag-sr { - background-image: url("../images/flags/sr.svg"); -} - -.flag-ss { - background-image: url("../images/flags/ss.svg"); -} - -.flag-st { - background-image: url("../images/flags/st.svg"); -} - -.flag-sv { - background-image: url("../images/flags/sv.svg"); -} - -.flag-sx { - background-image: url("../images/flags/sx.svg"); -} - -.flag-sy { - background-image: url("../images/flags/sy.svg"); -} - -.flag-sz { - background-image: url("../images/flags/sz.svg"); -} - -.flag-tc { - background-image: url("../images/flags/tc.svg"); -} - -.flag-td { - background-image: url("../images/flags/td.svg"); -} - -.flag-tf { - background-image: url("../images/flags/tf.svg"); -} - -.flag-tg { - background-image: url("../images/flags/tg.svg"); -} - -.flag-th { - background-image: url("../images/flags/th.svg"); -} - -.flag-tj { - background-image: url("../images/flags/tj.svg"); -} - -.flag-tk { - background-image: url("../images/flags/tk.svg"); -} - -.flag-tl { - background-image: url("../images/flags/tl.svg"); -} - -.flag-tm { - background-image: url("../images/flags/tm.svg"); -} - -.flag-tn { - background-image: url("../images/flags/tn.svg"); -} - -.flag-to { - background-image: url("../images/flags/to.svg"); -} - -.flag-tr { - background-image: url("../images/flags/tr.svg"); -} - -.flag-tt { - background-image: url("../images/flags/tt.svg"); -} - -.flag-tv { - background-image: url("../images/flags/tv.svg"); -} - -.flag-tw { - background-image: url("../images/flags/tw.svg"); -} - -.flag-tz { - background-image: url("../images/flags/tz.svg"); -} - -.flag-ua { - background-image: url("../images/flags/ua.svg"); -} - -.flag-ug { - background-image: url("../images/flags/ug.svg"); -} - -.flag-um { - background-image: url("../images/flags/um.svg"); -} - -.flag-un { - background-image: url("../images/flags/un.svg"); -} - -.flag-us { - background-image: url("../images/flags/us.svg"); -} - -.flag-uy { - background-image: url("../images/flags/uy.svg"); -} - -.flag-uz { - background-image: url("../images/flags/uz.svg"); -} - -.flag-va { - background-image: url("../images/flags/va.svg"); -} - -.flag-vc { - background-image: url("../images/flags/vc.svg"); -} - -.flag-ve { - background-image: url("../images/flags/ve.svg"); -} - -.flag-vg { - background-image: url("../images/flags/vg.svg"); -} - -.flag-vi { - background-image: url("../images/flags/vi.svg"); -} - -.flag-vn { - background-image: url("../images/flags/vn.svg"); -} - -.flag-vu { - background-image: url("../images/flags/vu.svg"); -} - -.flag-wf { - background-image: url("../images/flags/wf.svg"); -} - -.flag-ws { - background-image: url("../images/flags/ws.svg"); -} - -.flag-ye { - background-image: url("../images/flags/ye.svg"); -} - -.flag-yt { - background-image: url("../images/flags/yt.svg"); -} - -.flag-za { - background-image: url("../images/flags/za.svg"); -} - -.flag-zm { - background-image: url("../images/flags/zm.svg"); -} - -.flag-zw { - background-image: url("../images/flags/zw.svg"); -} - -.payment { - width: 2.5rem; - height: 1.5rem; - display: inline-block; - background: no-repeat center/100% 100%; - vertical-align: bottom; - font-style: normal; - box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.1); - border-radius: 2px; -} - -.payment-2checkout-dark { - background-image: url("../images/payments/2checkout-dark.svg"); -} - -.payment-2checkout { - background-image: url("../images/payments/2checkout.svg"); -} - -.payment-alipay-dark { - background-image: url("../images/payments/alipay-dark.svg"); -} - -.payment-alipay { - background-image: url("../images/payments/alipay.svg"); -} - -.payment-amazon-dark { - background-image: url("../images/payments/amazon-dark.svg"); -} - -.payment-amazon { - background-image: url("../images/payments/amazon.svg"); -} - -.payment-americanexpress-dark { - background-image: url("../images/payments/americanexpress-dark.svg"); -} - -.payment-americanexpress { - background-image: url("../images/payments/americanexpress.svg"); -} - -.payment-applepay-dark { - background-image: url("../images/payments/applepay-dark.svg"); -} - -.payment-applepay { - background-image: url("../images/payments/applepay.svg"); -} - -.payment-bancontact-dark { - background-image: url("../images/payments/bancontact-dark.svg"); -} - -.payment-bancontact { - background-image: url("../images/payments/bancontact.svg"); -} - -.payment-bitcoin-dark { - background-image: url("../images/payments/bitcoin-dark.svg"); -} - -.payment-bitcoin { - background-image: url("../images/payments/bitcoin.svg"); -} - -.payment-bitpay-dark { - background-image: url("../images/payments/bitpay-dark.svg"); -} - -.payment-bitpay { - background-image: url("../images/payments/bitpay.svg"); -} - -.payment-cirrus-dark { - background-image: url("../images/payments/cirrus-dark.svg"); -} - -.payment-cirrus { - background-image: url("../images/payments/cirrus.svg"); -} - -.payment-clickandbuy-dark { - background-image: url("../images/payments/clickandbuy-dark.svg"); -} - -.payment-clickandbuy { - background-image: url("../images/payments/clickandbuy.svg"); -} - -.payment-coinkite-dark { - background-image: url("../images/payments/coinkite-dark.svg"); -} - -.payment-coinkite { - background-image: url("../images/payments/coinkite.svg"); -} - -.payment-dinersclub-dark { - background-image: url("../images/payments/dinersclub-dark.svg"); -} - -.payment-dinersclub { - background-image: url("../images/payments/dinersclub.svg"); -} - -.payment-directdebit-dark { - background-image: url("../images/payments/directdebit-dark.svg"); -} - -.payment-directdebit { - background-image: url("../images/payments/directdebit.svg"); -} - -.payment-discover-dark { - background-image: url("../images/payments/discover-dark.svg"); -} - -.payment-discover { - background-image: url("../images/payments/discover.svg"); -} - -.payment-dwolla-dark { - background-image: url("../images/payments/dwolla-dark.svg"); -} - -.payment-dwolla { - background-image: url("../images/payments/dwolla.svg"); -} - -.payment-ebay-dark { - background-image: url("../images/payments/ebay-dark.svg"); -} - -.payment-ebay { - background-image: url("../images/payments/ebay.svg"); -} - -.payment-eway-dark { - background-image: url("../images/payments/eway-dark.svg"); -} - -.payment-eway { - background-image: url("../images/payments/eway.svg"); -} - -.payment-giropay-dark { - background-image: url("../images/payments/giropay-dark.svg"); -} - -.payment-giropay { - background-image: url("../images/payments/giropay.svg"); -} - -.payment-googlewallet-dark { - background-image: url("../images/payments/googlewallet-dark.svg"); -} - -.payment-googlewallet { - background-image: url("../images/payments/googlewallet.svg"); -} - -.payment-ingenico-dark { - background-image: url("../images/payments/ingenico-dark.svg"); -} - -.payment-ingenico { - background-image: url("../images/payments/ingenico.svg"); -} - -.payment-jcb-dark { - background-image: url("../images/payments/jcb-dark.svg"); -} - -.payment-jcb { - background-image: url("../images/payments/jcb.svg"); -} - -.payment-klarna-dark { - background-image: url("../images/payments/klarna-dark.svg"); -} - -.payment-klarna { - background-image: url("../images/payments/klarna.svg"); -} - -.payment-laser-dark { - background-image: url("../images/payments/laser-dark.svg"); -} - -.payment-laser { - background-image: url("../images/payments/laser.svg"); -} - -.payment-maestro-dark { - background-image: url("../images/payments/maestro-dark.svg"); -} - -.payment-maestro { - background-image: url("../images/payments/maestro.svg"); -} - -.payment-mastercard-dark { - background-image: url("../images/payments/mastercard-dark.svg"); -} - -.payment-mastercard { - background-image: url("../images/payments/mastercard.svg"); -} - -.payment-monero-dark { - background-image: url("../images/payments/monero-dark.svg"); -} - -.payment-monero { - background-image: url("../images/payments/monero.svg"); -} - -.payment-neteller-dark { - background-image: url("../images/payments/neteller-dark.svg"); -} - -.payment-neteller { - background-image: url("../images/payments/neteller.svg"); -} - -.payment-ogone-dark { - background-image: url("../images/payments/ogone-dark.svg"); -} - -.payment-ogone { - background-image: url("../images/payments/ogone.svg"); -} - -.payment-okpay-dark { - background-image: url("../images/payments/okpay-dark.svg"); -} - -.payment-okpay { - background-image: url("../images/payments/okpay.svg"); -} - -.payment-paybox-dark { - background-image: url("../images/payments/paybox-dark.svg"); -} - -.payment-paybox { - background-image: url("../images/payments/paybox.svg"); -} - -.payment-paymill-dark { - background-image: url("../images/payments/paymill-dark.svg"); -} - -.payment-paymill { - background-image: url("../images/payments/paymill.svg"); -} - -.payment-payone-dark { - background-image: url("../images/payments/payone-dark.svg"); -} - -.payment-payone { - background-image: url("../images/payments/payone.svg"); -} - -.payment-payoneer-dark { - background-image: url("../images/payments/payoneer-dark.svg"); -} - -.payment-payoneer { - background-image: url("../images/payments/payoneer.svg"); -} - -.payment-paypal-dark { - background-image: url("../images/payments/paypal-dark.svg"); -} - -.payment-paypal { - background-image: url("../images/payments/paypal.svg"); -} - -.payment-paysafecard-dark { - background-image: url("../images/payments/paysafecard-dark.svg"); -} - -.payment-paysafecard { - background-image: url("../images/payments/paysafecard.svg"); -} - -.payment-payu-dark { - background-image: url("../images/payments/payu-dark.svg"); -} - -.payment-payu { - background-image: url("../images/payments/payu.svg"); -} - -.payment-payza-dark { - background-image: url("../images/payments/payza-dark.svg"); -} - -.payment-payza { - background-image: url("../images/payments/payza.svg"); -} - -.payment-ripple-dark { - background-image: url("../images/payments/ripple-dark.svg"); -} - -.payment-ripple { - background-image: url("../images/payments/ripple.svg"); -} - -.payment-sage-dark { - background-image: url("../images/payments/sage-dark.svg"); -} - -.payment-sage { - background-image: url("../images/payments/sage.svg"); -} - -.payment-sepa-dark { - background-image: url("../images/payments/sepa-dark.svg"); -} - -.payment-sepa { - background-image: url("../images/payments/sepa.svg"); -} - -.payment-shopify-dark { - background-image: url("../images/payments/shopify-dark.svg"); -} - -.payment-shopify { - background-image: url("../images/payments/shopify.svg"); -} - -.payment-skrill-dark { - background-image: url("../images/payments/skrill-dark.svg"); -} - -.payment-skrill { - background-image: url("../images/payments/skrill.svg"); -} - -.payment-solo-dark { - background-image: url("../images/payments/solo-dark.svg"); -} - -.payment-solo { - background-image: url("../images/payments/solo.svg"); -} - -.payment-square-dark { - background-image: url("../images/payments/square-dark.svg"); -} - -.payment-square { - background-image: url("../images/payments/square.svg"); -} - -.payment-stripe-dark { - background-image: url("../images/payments/stripe-dark.svg"); -} - -.payment-stripe { - background-image: url("../images/payments/stripe.svg"); -} - -.payment-switch-dark { - background-image: url("../images/payments/switch-dark.svg"); -} - -.payment-switch { - background-image: url("../images/payments/switch.svg"); -} - -.payment-ukash-dark { - background-image: url("../images/payments/ukash-dark.svg"); -} - -.payment-ukash { - background-image: url("../images/payments/ukash.svg"); -} - -.payment-unionpay-dark { - background-image: url("../images/payments/unionpay-dark.svg"); -} - -.payment-unionpay { - background-image: url("../images/payments/unionpay.svg"); -} - -.payment-verifone-dark { - background-image: url("../images/payments/verifone-dark.svg"); -} - -.payment-verifone { - background-image: url("../images/payments/verifone.svg"); -} - -.payment-verisign-dark { - background-image: url("../images/payments/verisign-dark.svg"); -} - -.payment-verisign { - background-image: url("../images/payments/verisign.svg"); -} - -.payment-visa-dark { - background-image: url("../images/payments/visa-dark.svg"); -} - -.payment-visa { - background-image: url("../images/payments/visa.svg"); -} - -.payment-webmoney-dark { - background-image: url("../images/payments/webmoney-dark.svg"); -} - -.payment-webmoney { - background-image: url("../images/payments/webmoney.svg"); -} - -.payment-westernunion-dark { - background-image: url("../images/payments/westernunion-dark.svg"); -} - -.payment-westernunion { - background-image: url("../images/payments/westernunion.svg"); -} - -.payment-worldpay-dark { - background-image: url("../images/payments/worldpay-dark.svg"); -} - -.payment-worldpay { - background-image: url("../images/payments/worldpay.svg"); -} - -svg { - -ms-touch-action: none; - touch-action: none; -} - -.jvectormap-container { - width: 100%; - height: 100%; - position: relative; - overflow: hidden; - -ms-touch-action: none; - touch-action: none; -} - -.jvectormap-tip { - position: absolute; - display: none; - border-radius: 3px; - background: #212529; - color: white; - padding: 6px; - font-size: 11px; - line-height: 1; - font-weight: 700; -} - -.jvectormap-tip small { - font-size: inherit; - font-weight: 400; -} - -.jvectormap-zoomin, .jvectormap-zoomout, .jvectormap-goback { - position: absolute; - left: 10px; - border-radius: 3px; - background: #292929; - padding: 3px; - color: white; - cursor: pointer; - line-height: 10px; - text-align: center; - box-sizing: content-box; -} - -.jvectormap-zoomin, .jvectormap-zoomout { - width: 10px; - height: 10px; -} - -.jvectormap-zoomin { - top: 10px; -} - -.jvectormap-zoomout { - top: 30px; -} - -.jvectormap-goback { - bottom: 10px; - z-index: 1000; - padding: 6px; -} - -.jvectormap-spinner { - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - background: center no-repeat url(data:image/gif;base64,R0lGODlhIAAgAPMAAP///wAAAMbGxoSEhLa2tpqamjY2NlZWVtjY2OTk5Ly8vB4eHgQEBAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAIAAgAAAE5xDISWlhperN52JLhSSdRgwVo1ICQZRUsiwHpTJT4iowNS8vyW2icCF6k8HMMBkCEDskxTBDAZwuAkkqIfxIQyhBQBFvAQSDITM5VDW6XNE4KagNh6Bgwe60smQUB3d4Rz1ZBApnFASDd0hihh12BkE9kjAJVlycXIg7CQIFA6SlnJ87paqbSKiKoqusnbMdmDC2tXQlkUhziYtyWTxIfy6BE8WJt5YJvpJivxNaGmLHT0VnOgSYf0dZXS7APdpB309RnHOG5gDqXGLDaC457D1zZ/V/nmOM82XiHRLYKhKP1oZmADdEAAAh+QQJCgAAACwAAAAAIAAgAAAE6hDISWlZpOrNp1lGNRSdRpDUolIGw5RUYhhHukqFu8DsrEyqnWThGvAmhVlteBvojpTDDBUEIFwMFBRAmBkSgOrBFZogCASwBDEY/CZSg7GSE0gSCjQBMVG023xWBhklAnoEdhQEfyNqMIcKjhRsjEdnezB+A4k8gTwJhFuiW4dokXiloUepBAp5qaKpp6+Ho7aWW54wl7obvEe0kRuoplCGepwSx2jJvqHEmGt6whJpGpfJCHmOoNHKaHx61WiSR92E4lbFoq+B6QDtuetcaBPnW6+O7wDHpIiK9SaVK5GgV543tzjgGcghAgAh+QQJCgAAACwAAAAAIAAgAAAE7hDISSkxpOrN5zFHNWRdhSiVoVLHspRUMoyUakyEe8PTPCATW9A14E0UvuAKMNAZKYUZCiBMuBakSQKG8G2FzUWox2AUtAQFcBKlVQoLgQReZhQlCIJesQXI5B0CBnUMOxMCenoCfTCEWBsJColTMANldx15BGs8B5wlCZ9Po6OJkwmRpnqkqnuSrayqfKmqpLajoiW5HJq7FL1Gr2mMMcKUMIiJgIemy7xZtJsTmsM4xHiKv5KMCXqfyUCJEonXPN2rAOIAmsfB3uPoAK++G+w48edZPK+M6hLJpQg484enXIdQFSS1u6UhksENEQAAIfkECQoAAAAsAAAAACAAIAAABOcQyEmpGKLqzWcZRVUQnZYg1aBSh2GUVEIQ2aQOE+G+cD4ntpWkZQj1JIiZIogDFFyHI0UxQwFugMSOFIPJftfVAEoZLBbcLEFhlQiqGp1Vd140AUklUN3eCA51C1EWMzMCezCBBmkxVIVHBWd3HHl9JQOIJSdSnJ0TDKChCwUJjoWMPaGqDKannasMo6WnM562R5YluZRwur0wpgqZE7NKUm+FNRPIhjBJxKZteWuIBMN4zRMIVIhffcgojwCF117i4nlLnY5ztRLsnOk+aV+oJY7V7m76PdkS4trKcdg0Zc0tTcKkRAAAIfkECQoAAAAsAAAAACAAIAAABO4QyEkpKqjqzScpRaVkXZWQEximw1BSCUEIlDohrft6cpKCk5xid5MNJTaAIkekKGQkWyKHkvhKsR7ARmitkAYDYRIbUQRQjWBwJRzChi9CRlBcY1UN4g0/VNB0AlcvcAYHRyZPdEQFYV8ccwR5HWxEJ02YmRMLnJ1xCYp0Y5idpQuhopmmC2KgojKasUQDk5BNAwwMOh2RtRq5uQuPZKGIJQIGwAwGf6I0JXMpC8C7kXWDBINFMxS4DKMAWVWAGYsAdNqW5uaRxkSKJOZKaU3tPOBZ4DuK2LATgJhkPJMgTwKCdFjyPHEnKxFCDhEAACH5BAkKAAAALAAAAAAgACAAAATzEMhJaVKp6s2nIkolIJ2WkBShpkVRWqqQrhLSEu9MZJKK9y1ZrqYK9WiClmvoUaF8gIQSNeF1Er4MNFn4SRSDARWroAIETg1iVwuHjYB1kYc1mwruwXKC9gmsJXliGxc+XiUCby9ydh1sOSdMkpMTBpaXBzsfhoc5l58Gm5yToAaZhaOUqjkDgCWNHAULCwOLaTmzswadEqggQwgHuQsHIoZCHQMMQgQGubVEcxOPFAcMDAYUA85eWARmfSRQCdcMe0zeP1AAygwLlJtPNAAL19DARdPzBOWSm1brJBi45soRAWQAAkrQIykShQ9wVhHCwCQCACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq+E71SRQeyqUToLA7VxF0JDyIQh/MVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiRMDjI0Fd30/iI2UA5GSS5UDj2l6NoqgOgN4gksEBgYFf0FDqKgHnyZ9OX8HrgYHdHpcHQULXAS2qKpENRg7eAMLC7kTBaixUYFkKAzWAAnLC7FLVxLWDBLKCwaKTULgEwbLA4hJtOkSBNqITT3xEgfLpBtzE/jiuL04RGEBgwWhShRgQExHBAAh+QQJCgAAACwAAAAAIAAgAAAE7xDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfZiCqGk5dTESJeaOAlClzsJsqwiJwiqnFrb2nS9kmIcgEsjQydLiIlHehhpejaIjzh9eomSjZR+ipslWIRLAgMDOR2DOqKogTB9pCUJBagDBXR6XB0EBkIIsaRsGGMMAxoDBgYHTKJiUYEGDAzHC9EACcUGkIgFzgwZ0QsSBcXHiQvOwgDdEwfFs0sDzt4S6BK4xYjkDOzn0unFeBzOBijIm1Dgmg5YFQwsCMjp1oJ8LyIAACH5BAkKAAAALAAAAAAgACAAAATwEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq+E71SRQeyqUToLA7VxF0JDyIQh/MVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GGl6NoiPOH16iZKNlH6KmyWFOggHhEEvAwwMA0N9GBsEC6amhnVcEwavDAazGwIDaH1ipaYLBUTCGgQDA8NdHz0FpqgTBwsLqAbWAAnIA4FWKdMLGdYGEgraigbT0OITBcg5QwPT4xLrROZL6AuQAPUS7bxLpoWidY0JtxLHKhwwMJBTHgPKdEQAACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq+E71SRQeyqUToLA7VxF0JDyIQh/MVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GAULDJCRiXo1CpGXDJOUjY+Yip9DhToJA4RBLwMLCwVDfRgbBAaqqoZ1XBMHswsHtxtFaH1iqaoGNgAIxRpbFAgfPQSqpbgGBqUD1wBXeCYp1AYZ19JJOYgH1KwA4UBvQwXUBxPqVD9L3sbp2BNk2xvvFPJd+MFCN6HAAIKgNggY0KtEBAAh+QQJCgAAACwAAAAAIAAgAAAE6BDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfYIDMaAFdTESJeaEDAIMxYFqrOUaNW4E4ObYcCXaiBVEgULe0NJaxxtYksjh2NLkZISgDgJhHthkpU4mW6blRiYmZOlh4JWkDqILwUGBnE6TYEbCgevr0N1gH4At7gHiRpFaLNrrq8HNgAJA70AWxQIH1+vsYMDAzZQPC9VCNkDWUhGkuE5PxJNwiUK4UfLzOlD4WvzAHaoG9nxPi5d+jYUqfAhhykOFwJWiAAAIfkECQoAAAAsAAAAACAAIAAABPAQyElpUqnqzaciSoVkXVUMFaFSwlpOCcMYlErAavhOMnNLNo8KsZsMZItJEIDIFSkLGQoQTNhIsFehRww2CQLKF0tYGKYSg+ygsZIuNqJksKgbfgIGepNo2cIUB3V1B3IvNiBYNQaDSTtfhhx0CwVPI0UJe0+bm4g5VgcGoqOcnjmjqDSdnhgEoamcsZuXO1aWQy8KAwOAuTYYGwi7w5h+Kr0SJ8MFihpNbx+4Erq7BYBuzsdiH1jCAzoSfl0rVirNbRXlBBlLX+BP0XJLAPGzTkAuAOqb0WT5AH7OcdCm5B8TgRwSRKIHQtaLCwg1RAAAOwAAAAAAAAAAAA==); -} - -.jvectormap-legend-title { - font-weight: bold; - font-size: 14px; - text-align: center; -} - -.jvectormap-legend-cnt { - position: absolute; -} - -.jvectormap-legend-cnt-h { - bottom: 0; - right: 0; -} - -.jvectormap-legend-cnt-v { - top: 0; - right: 0; -} - -.jvectormap-legend { - background: black; - color: white; - border-radius: 3px; -} - -.jvectormap-legend-cnt-h .jvectormap-legend { - float: left; - margin: 0 10px 10px 0; - padding: 3px 3px 1px 3px; -} - -.jvectormap-legend-cnt-h .jvectormap-legend .jvectormap-legend-tick { - float: left; -} - -.jvectormap-legend-cnt-v .jvectormap-legend { - margin: 10px 10px 0 0; - padding: 3px; -} - -.jvectormap-legend-cnt-h .jvectormap-legend-tick { - width: 40px; -} - -.jvectormap-legend-cnt-h .jvectormap-legend-tick-sample { - height: 15px; -} - -.jvectormap-legend-cnt-v .jvectormap-legend-tick-sample { - height: 20px; - width: 20px; - display: inline-block; - vertical-align: middle; -} - -.jvectormap-legend-tick-text { - font-size: 12px; -} - -.jvectormap-legend-cnt-h .jvectormap-legend-tick-text { - text-align: center; -} - -.jvectormap-legend-cnt-v .jvectormap-legend-tick-text { - display: inline-block; - vertical-align: middle; - line-height: 20px; - padding-left: 3px; -} - -/** - * selectize.css (v0.12.4) - * Copyright (c) 2013–2015 Brian Reavis & contributors - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF - * ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - * - * @author Brian Reavis - */ -.selectize-control.plugin-drag_drop.multi > .selectize-input > div.ui-sortable-placeholder { - visibility: visible !important; - background: #f2f2f2 !important; - background: rgba(0, 0, 0, 0.06) !important; - border: 0 none !important; - box-shadow: inset 0 0 12px 4px #fff; -} - -.selectize-control.plugin-drag_drop .ui-sortable-placeholder::after { - content: '!'; - visibility: hidden; -} - -.selectize-control.plugin-drag_drop .ui-sortable-helper { - box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); -} - -.selectize-dropdown-header { - position: relative; - padding: 5px 8px; - border-bottom: 1px solid #d0d0d0; - background: #f8f8f8; - border-radius: 3px 3px 0 0; -} - -.selectize-dropdown-header-close { - position: absolute; - right: 8px; - top: 50%; - color: #495057; - opacity: 0.4; - margin-top: -12px; - line-height: 20px; - font-size: 20px !important; -} - -.selectize-dropdown-header-close:hover { - color: #000; -} - -.selectize-dropdown.plugin-optgroup_columns .optgroup { - border-right: 1px solid #f2f2f2; - border-top: 0 none; - float: left; - box-sizing: border-box; -} - -.selectize-dropdown.plugin-optgroup_columns .optgroup:last-child { - border-right: 0 none; -} - -.selectize-dropdown.plugin-optgroup_columns .optgroup:before { - display: none; -} - -.selectize-dropdown.plugin-optgroup_columns .optgroup-header { - border-top: 0 none; -} - -.selectize-control.plugin-remove_button [data-value] { - position: relative; - padding-right: 24px !important; -} - -.selectize-control.plugin-remove_button [data-value] .remove { - z-index: 1; - /* fixes ie bug (see #392) */ - position: absolute; - top: 0; - right: 0; - bottom: 0; - width: 17px; - text-align: center; - font-weight: bold; - font-size: 12px; - color: inherit; - text-decoration: none; - vertical-align: middle; - display: inline-block; - padding: 2px 0 0 0; - border-left: 1px solid #d0d0d0; - border-radius: 0 2px 2px 0; - box-sizing: border-box; -} - -.selectize-control.plugin-remove_button [data-value] .remove:hover { - background: rgba(0, 0, 0, 0.05); -} - -.selectize-control.plugin-remove_button [data-value].active .remove { - border-left-color: #cacaca; -} - -.selectize-control.plugin-remove_button .disabled [data-value] .remove:hover { - background: none; -} - -.selectize-control.plugin-remove_button .disabled [data-value] .remove { - border-left-color: #fff; -} - -.selectize-control.plugin-remove_button .remove-single { - position: absolute; - right: 28px; - top: 6px; - font-size: 23px; -} - -.selectize-control { - position: relative; - padding: 0; - border: 0; -} - -.selectize-dropdown, -.selectize-input, -.selectize-input input { - color: #495057; - font-family: inherit; - font-size: 15px; - line-height: 18px; - -webkit-font-smoothing: inherit; -} - -.selectize-input, -.selectize-control.single .selectize-input.input-active { - background: #fff; - cursor: text; - display: inline-block; -} - -.selectize-input { - border: 1px solid rgba(0, 40, 100, 0.12); - padding: 0.5625rem 0.75rem; - display: inline-block; - display: block; - width: 100%; - overflow: hidden; - position: relative; - z-index: 1; - box-sizing: border-box; - border-radius: 3px; - transition: .3s border-color, .3s box-shadow; -} - -.selectize-control.multi .selectize-input.has-items { - padding: 7px 0.75rem 4px 7px; -} - -.selectize-input.full { - background-color: #fff; -} - -.selectize-input.disabled, -.selectize-input.disabled * { - cursor: default !important; -} - -.selectize-input.focus { - border-color: #467fcf; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.selectize-input.dropdown-active { - border-radius: 3px 3px 0 0; -} - -.selectize-input > * { - vertical-align: baseline; - display: -moz-inline-stack; - display: inline-block; - zoom: 1; - *display: inline; -} - -.selectize-control.multi .selectize-input > div { - cursor: pointer; - margin: 0 3px 3px 0; - padding: 2px 6px; - background: #e9ecef; - color: #495057; - font-size: 13px; - border: 0 solid rgba(0, 40, 100, 0.12); - border-radius: 3px; - font-weight: 400; -} - -.selectize-control.multi .selectize-input > div.active { - background: #e8e8e8; - color: #303030; - border: 0 solid #cacaca; -} - -.selectize-control.multi .selectize-input.disabled > div, -.selectize-control.multi .selectize-input.disabled > div.active { - color: #7d7d7d; - background: #fff; - border: 0 solid #fff; -} - -.selectize-input > input { - display: inline-block !important; - padding: 0 !important; - min-height: 0 !important; - max-height: none !important; - max-width: 100% !important; - margin: 0 2px 0 0 !important; - text-indent: 0 !important; - border: 0 none !important; - background: none !important; - line-height: inherit !important; - box-shadow: none !important; -} - -.selectize-input > input::-ms-clear { - display: none; -} - -.selectize-input > input:focus { - outline: none !important; -} - -.selectize-input::after { - content: ' '; - display: block; - clear: left; -} - -.selectize-input.dropdown-active::before { - content: ' '; - display: block; - position: absolute; - background: #f0f0f0; - height: 1px; - bottom: 0; - left: 0; - right: 0; -} - -.selectize-dropdown { - position: absolute; - z-index: 10; - border: 1px solid rgba(0, 40, 100, 0.12); - background: #fff; - margin: -1px 0 0 0; - border-top: 0 none; - box-sizing: border-box; - border-radius: 0 0 3px 3px; - height: auto; - padding: 0; -} - -.selectize-dropdown [data-selectable] { - cursor: pointer; - overflow: hidden; -} - -.selectize-dropdown [data-selectable] .highlight { - background: rgba(125, 168, 208, 0.2); - border-radius: 1px; -} - -.selectize-dropdown [data-selectable], -.selectize-dropdown .optgroup-header { - padding: 6px .75rem; -} - -.selectize-dropdown .optgroup:first-child .optgroup-header { - border-top: 0 none; -} - -.selectize-dropdown .optgroup-header { - color: #495057; - background: #fff; - cursor: default; -} - -.selectize-dropdown .active { - background-color: #F1F4F8; - color: #467fcf; -} - -.selectize-dropdown .active.create { - color: #495057; -} - -.selectize-dropdown .create { - color: rgba(48, 48, 48, 0.5); -} - -.selectize-dropdown-content { - overflow-y: auto; - overflow-x: hidden; - max-height: 200px; - -webkit-overflow-scrolling: touch; -} - -.selectize-control.single .selectize-input, -.selectize-control.single .selectize-input input { - cursor: pointer; -} - -.selectize-control.single .selectize-input.input-active, -.selectize-control.single .selectize-input.input-active input { - cursor: text; -} - -.selectize-control.single .selectize-input:after { - content: ''; - display: block; - position: absolute; - top: 13px; - right: 12px; - width: 8px; - height: 10px; - background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 5'%3E%3Cpath fill='#999' d='M0 0L10 0L5 5L0 0'/%3E%3C/svg%3E") no-repeat center; - background-size: 8px 10px; - transition: .3s transform; -} - -.selectize-control.single .selectize-input.dropdown-active:after { - -webkit-transform: rotate(180deg); - transform: rotate(180deg); -} - -.selectize-control .selectize-input.disabled { - opacity: 0.5; - background-color: #fafafa; -} - -.selectize-dropdown .image, -.selectize-input .image { - width: 1.25rem; - height: 1.25rem; - background-size: contain; - margin: -1px .5rem -1px -4px; - line-height: 1.25rem; - float: left; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; -} - -.selectize-dropdown .image img, -.selectize-input .image img { - max-width: 100%; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); - border-radius: 2px; -} - -.selectize-input .image { - width: 1.5rem; - height: 1.5rem; - margin: -3px .75rem -3px -5px; -} - -@font-face { - font-family: "feather"; - src: url("../fonts/feather/feather-webfont.eot?t=1501841394106"); - /* IE9*/ - src: url("../fonts/feather/feather-webfont.eot?t=1501841394106#iefix") format("embedded-opentype"), url("../fonts/feather/feather-webfont.woff?t=1501841394106") format("woff"), url("../fonts/feather/feather-webfont.ttf?t=1501841394106") format("truetype"), url("../fonts/feather/feather-webfont.svg?t=1501841394106#feather") format("svg"); - /* iOS 4.1- */ -} - -.fe { - font-family: 'feather' !important; - speak: none; - font-style: normal; - font-weight: normal; - font-variant: normal; - text-transform: none; - line-height: 1; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.fe-activity:before { - content: "\e900"; -} - -.fe-airplay:before { - content: "\e901"; -} - -.fe-alert-circle:before { - content: "\e902"; -} - -.fe-alert-octagon:before { - content: "\e903"; -} - -.fe-alert-triangle:before { - content: "\e904"; -} - -.fe-align-center:before { - content: "\e905"; -} - -.fe-align-justify:before { - content: "\e906"; -} - -.fe-align-left:before { - content: "\e907"; -} - -.fe-align-right:before { - content: "\e908"; -} - -.fe-anchor:before { - content: "\e909"; -} - -.fe-aperture:before { - content: "\e90a"; -} - -.fe-arrow-down:before { - content: "\e90b"; -} - -.fe-arrow-down-circle:before { - content: "\e90c"; -} - -.fe-arrow-down-left:before { - content: "\e90d"; -} - -.fe-arrow-down-right:before { - content: "\e90e"; -} - -.fe-arrow-left:before { - content: "\e90f"; -} - -.fe-arrow-left-circle:before { - content: "\e910"; -} - -.fe-arrow-right:before { - content: "\e911"; -} - -.fe-arrow-right-circle:before { - content: "\e912"; -} - -.fe-arrow-up:before { - content: "\e913"; -} - -.fe-arrow-up-circle:before { - content: "\e914"; -} - -.fe-arrow-up-left:before { - content: "\e915"; -} - -.fe-arrow-up-right:before { - content: "\e916"; -} - -.fe-at-sign:before { - content: "\e917"; -} - -.fe-award:before { - content: "\e918"; -} - -.fe-bar-chart:before { - content: "\e919"; -} - -.fe-bar-chart-2:before { - content: "\e91a"; -} - -.fe-battery:before { - content: "\e91b"; -} - -.fe-battery-charging:before { - content: "\e91c"; -} - -.fe-bell:before { - content: "\e91d"; -} - -.fe-bell-off:before { - content: "\e91e"; -} - -.fe-bluetooth:before { - content: "\e91f"; -} - -.fe-bold:before { - content: "\e920"; -} - -.fe-book:before { - content: "\e921"; -} - -.fe-book-open:before { - content: "\e922"; -} - -.fe-bookmark:before { - content: "\e923"; -} - -.fe-box:before { - content: "\e924"; -} - -.fe-briefcase:before { - content: "\e925"; -} - -.fe-calendar:before { - content: "\e926"; -} - -.fe-camera:before { - content: "\e927"; -} - -.fe-camera-off:before { - content: "\e928"; -} - -.fe-cast:before { - content: "\e929"; -} - -.fe-check:before { - content: "\e92a"; -} - -.fe-check-circle:before { - content: "\e92b"; -} - -.fe-check-square:before { - content: "\e92c"; -} - -.fe-chevron-down:before { - content: "\e92d"; -} - -.fe-chevron-left:before { - content: "\e92e"; -} - -.fe-chevron-right:before { - content: "\e92f"; -} - -.fe-chevron-up:before { - content: "\e930"; -} - -.fe-chevrons-down:before { - content: "\e931"; -} - -.fe-chevrons-left:before { - content: "\e932"; -} - -.fe-chevrons-right:before { - content: "\e933"; -} - -.fe-chevrons-up:before { - content: "\e934"; -} - -.fe-chrome:before { - content: "\e935"; -} - -.fe-circle:before { - content: "\e936"; -} - -.fe-clipboard:before { - content: "\e937"; -} - -.fe-clock:before { - content: "\e938"; -} - -.fe-cloud:before { - content: "\e939"; -} - -.fe-cloud-drizzle:before { - content: "\e93a"; -} - -.fe-cloud-lightning:before { - content: "\e93b"; -} - -.fe-cloud-off:before { - content: "\e93c"; -} - -.fe-cloud-rain:before { - content: "\e93d"; -} - -.fe-cloud-snow:before { - content: "\e93e"; -} - -.fe-code:before { - content: "\e93f"; -} - -.fe-codepen:before { - content: "\e940"; -} - -.fe-command:before { - content: "\e941"; -} - -.fe-compass:before { - content: "\e942"; -} - -.fe-copy:before { - content: "\e943"; -} - -.fe-corner-down-left:before { - content: "\e944"; -} - -.fe-corner-down-right:before { - content: "\e945"; -} - -.fe-corner-left-down:before { - content: "\e946"; -} - -.fe-corner-left-up:before { - content: "\e947"; -} - -.fe-corner-right-down:before { - content: "\e948"; -} - -.fe-corner-right-up:before { - content: "\e949"; -} - -.fe-corner-up-left:before { - content: "\e94a"; -} - -.fe-corner-up-right:before { - content: "\e94b"; -} - -.fe-cpu:before { - content: "\e94c"; -} - -.fe-credit-card:before { - content: "\e94d"; -} - -.fe-crop:before { - content: "\e94e"; -} - -.fe-crosshair:before { - content: "\e94f"; -} - -.fe-database:before { - content: "\e950"; -} - -.fe-delete:before { - content: "\e951"; -} - -.fe-disc:before { - content: "\e952"; -} - -.fe-dollar-sign:before { - content: "\e953"; -} - -.fe-download:before { - content: "\e954"; -} - -.fe-download-cloud:before { - content: "\e955"; -} - -.fe-droplet:before { - content: "\e956"; -} - -.fe-edit:before { - content: "\e957"; -} - -.fe-edit-2:before { - content: "\e958"; -} - -.fe-edit-3:before { - content: "\e959"; -} - -.fe-external-link:before { - content: "\e95a"; -} - -.fe-eye:before { - content: "\e95b"; -} - -.fe-eye-off:before { - content: "\e95c"; -} - -.fe-facebook:before { - content: "\e95d"; -} - -.fe-fast-forward:before { - content: "\e95e"; -} - -.fe-feather:before { - content: "\e95f"; -} - -.fe-file:before { - content: "\e960"; -} - -.fe-file-minus:before { - content: "\e961"; -} - -.fe-file-plus:before { - content: "\e962"; -} - -.fe-file-text:before { - content: "\e963"; -} - -.fe-film:before { - content: "\e964"; -} - -.fe-filter:before { - content: "\e965"; -} - -.fe-flag:before { - content: "\e966"; -} - -.fe-folder:before { - content: "\e967"; -} - -.fe-folder-minus:before { - content: "\e968"; -} - -.fe-folder-plus:before { - content: "\e969"; -} - -.fe-git-branch:before { - content: "\e96a"; -} - -.fe-git-commit:before { - content: "\e96b"; -} - -.fe-git-merge:before { - content: "\e96c"; -} - -.fe-git-pull-request:before { - content: "\e96d"; -} - -.fe-github:before { - content: "\e96e"; -} - -.fe-gitlab:before { - content: "\e96f"; -} - -.fe-globe:before { - content: "\e970"; -} - -.fe-grid:before { - content: "\e971"; -} - -.fe-hard-drive:before { - content: "\e972"; -} - -.fe-hash:before { - content: "\e973"; -} - -.fe-headphones:before { - content: "\e974"; -} - -.fe-heart:before { - content: "\e975"; -} - -.fe-help-circle:before { - content: "\e976"; -} - -.fe-home:before { - content: "\e977"; -} - -.fe-image:before { - content: "\e978"; -} - -.fe-inbox:before { - content: "\e979"; -} - -.fe-info:before { - content: "\e97a"; -} - -.fe-instagram:before { - content: "\e97b"; -} - -.fe-italic:before { - content: "\e97c"; -} - -.fe-layers:before { - content: "\e97d"; -} - -.fe-layout:before { - content: "\e97e"; -} - -.fe-life-buoy:before { - content: "\e97f"; -} - -.fe-link:before { - content: "\e980"; -} - -.fe-link-2:before { - content: "\e981"; -} - -.fe-linkedin:before { - content: "\e982"; -} - -.fe-list:before { - content: "\e983"; -} - -.fe-loader:before { - content: "\e984"; -} - -.fe-lock:before { - content: "\e985"; -} - -.fe-log-in:before { - content: "\e986"; -} - -.fe-log-out:before { - content: "\e987"; -} - -.fe-mail:before { - content: "\e988"; -} - -.fe-map:before { - content: "\e989"; -} - -.fe-map-pin:before { - content: "\e98a"; -} - -.fe-maximize:before { - content: "\e98b"; -} - -.fe-maximize-2:before { - content: "\e98c"; -} - -.fe-menu:before { - content: "\e98d"; -} - -.fe-message-circle:before { - content: "\e98e"; -} - -.fe-message-square:before { - content: "\e98f"; -} - -.fe-mic:before { - content: "\e990"; -} - -.fe-mic-off:before { - content: "\e991"; -} - -.fe-minimize:before { - content: "\e992"; -} - -.fe-minimize-2:before { - content: "\e993"; -} - -.fe-minus:before { - content: "\e994"; -} - -.fe-minus-circle:before { - content: "\e995"; -} - -.fe-minus-square:before { - content: "\e996"; -} - -.fe-monitor:before { - content: "\e997"; -} - -.fe-moon:before { - content: "\e998"; -} - -.fe-more-horizontal:before { - content: "\e999"; -} - -.fe-more-vertical:before { - content: "\e99a"; -} - -.fe-move:before { - content: "\e99b"; -} - -.fe-music:before { - content: "\e99c"; -} - -.fe-navigation:before { - content: "\e99d"; -} - -.fe-navigation-2:before { - content: "\e99e"; -} - -.fe-octagon:before { - content: "\e99f"; -} - -.fe-package:before { - content: "\e9a0"; -} - -.fe-paperclip:before { - content: "\e9a1"; -} - -.fe-pause:before { - content: "\e9a2"; -} - -.fe-pause-circle:before { - content: "\e9a3"; -} - -.fe-percent:before { - content: "\e9a4"; -} - -.fe-phone:before { - content: "\e9a5"; -} - -.fe-phone-call:before { - content: "\e9a6"; -} - -.fe-phone-forwarded:before { - content: "\e9a7"; -} - -.fe-phone-incoming:before { - content: "\e9a8"; -} - -.fe-phone-missed:before { - content: "\e9a9"; -} - -.fe-phone-off:before { - content: "\e9aa"; -} - -.fe-phone-outgoing:before { - content: "\e9ab"; -} - -.fe-pie-chart:before { - content: "\e9ac"; -} - -.fe-play:before { - content: "\e9ad"; -} - -.fe-play-circle:before { - content: "\e9ae"; -} - -.fe-plus:before { - content: "\e9af"; -} - -.fe-plus-circle:before { - content: "\e9b0"; -} - -.fe-plus-square:before { - content: "\e9b1"; -} - -.fe-pocket:before { - content: "\e9b2"; -} - -.fe-power:before { - content: "\e9b3"; -} - -.fe-printer:before { - content: "\e9b4"; -} - -.fe-radio:before { - content: "\e9b5"; -} - -.fe-refresh-ccw:before { - content: "\e9b6"; -} - -.fe-refresh-cw:before { - content: "\e9b7"; -} - -.fe-repeat:before { - content: "\e9b8"; -} - -.fe-rewind:before { - content: "\e9b9"; -} - -.fe-rotate-ccw:before { - content: "\e9ba"; -} - -.fe-rotate-cw:before { - content: "\e9bb"; -} - -.fe-rss:before { - content: "\e9bc"; -} - -.fe-save:before { - content: "\e9bd"; -} - -.fe-scissors:before { - content: "\e9be"; -} - -.fe-search:before { - content: "\e9bf"; -} - -.fe-send:before { - content: "\e9c0"; -} - -.fe-server:before { - content: "\e9c1"; -} - -.fe-settings:before { - content: "\e9c2"; -} - -.fe-share:before { - content: "\e9c3"; -} - -.fe-share-2:before { - content: "\e9c4"; -} - -.fe-shield:before { - content: "\e9c5"; -} - -.fe-shield-off:before { - content: "\e9c6"; -} - -.fe-shopping-bag:before { - content: "\e9c7"; -} - -.fe-shopping-cart:before { - content: "\e9c8"; -} - -.fe-shuffle:before { - content: "\e9c9"; -} - -.fe-sidebar:before { - content: "\e9ca"; -} - -.fe-skip-back:before { - content: "\e9cb"; -} - -.fe-skip-forward:before { - content: "\e9cc"; -} - -.fe-slack:before { - content: "\e9cd"; -} - -.fe-slash:before { - content: "\e9ce"; -} - -.fe-sliders:before { - content: "\e9cf"; -} - -.fe-smartphone:before { - content: "\e9d0"; -} - -.fe-speaker:before { - content: "\e9d1"; -} - -.fe-square:before { - content: "\e9d2"; -} - -.fe-star:before { - content: "\e9d3"; -} - -.fe-stop-circle:before { - content: "\e9d4"; -} - -.fe-sun:before { - content: "\e9d5"; -} - -.fe-sunrise:before { - content: "\e9d6"; -} - -.fe-sunset:before { - content: "\e9d7"; -} - -.fe-tablet:before { - content: "\e9d8"; -} - -.fe-tag:before { - content: "\e9d9"; -} - -.fe-target:before { - content: "\e9da"; -} - -.fe-terminal:before { - content: "\e9db"; -} - -.fe-thermometer:before { - content: "\e9dc"; -} - -.fe-thumbs-down:before { - content: "\e9dd"; -} - -.fe-thumbs-up:before { - content: "\e9de"; -} - -.fe-toggle-left:before { - content: "\e9df"; -} - -.fe-toggle-right:before { - content: "\e9e0"; -} - -.fe-trash:before { - content: "\e9e1"; -} - -.fe-trash-2:before { - content: "\e9e2"; -} - -.fe-trending-down:before { - content: "\e9e3"; -} - -.fe-trending-up:before { - content: "\e9e4"; -} - -.fe-triangle:before { - content: "\e9e5"; -} - -.fe-truck:before { - content: "\e9e6"; -} - -.fe-tv:before { - content: "\e9e7"; -} - -.fe-twitter:before { - content: "\e9e8"; -} - -.fe-type:before { - content: "\e9e9"; -} - -.fe-umbrella:before { - content: "\e9ea"; -} - -.fe-underline:before { - content: "\e9eb"; -} - -.fe-unlock:before { - content: "\e9ec"; -} - -.fe-upload:before { - content: "\e9ed"; -} - -.fe-upload-cloud:before { - content: "\e9ee"; -} - -.fe-user:before { - content: "\e9ef"; -} - -.fe-user-check:before { - content: "\e9f0"; -} - -.fe-user-minus:before { - content: "\e9f1"; -} - -.fe-user-plus:before { - content: "\e9f2"; -} - -.fe-user-x:before { - content: "\e9f3"; -} - -.fe-users:before { - content: "\e9f4"; -} - -.fe-video:before { - content: "\e9f5"; -} - -.fe-video-off:before { - content: "\e9f6"; -} - -.fe-voicemail:before { - content: "\e9f7"; -} - -.fe-volume:before { - content: "\e9f8"; -} - -.fe-volume-1:before { - content: "\e9f9"; -} - -.fe-volume-2:before { - content: "\e9fa"; -} - -.fe-volume-x:before { - content: "\e9fb"; -} - -.fe-watch:before { - content: "\e9fc"; -} - -.fe-wifi:before { - content: "\e9fd"; -} - -.fe-wifi-off:before { - content: "\e9fe"; -} - -.fe-wind:before { - content: "\e9ff"; -} - -.fe-x:before { - content: "\ea00"; -} - -.fe-x-circle:before { - content: "\ea01"; -} - -.fe-x-square:before { - content: "\ea02"; -} - -.fe-zap:before { - content: "\ea03"; -} - -.fe-zap-off:before { - content: "\ea04"; -} - -.fe-zoom-in:before { - content: "\ea05"; -} - -.fe-zoom-out:before { - content: "\ea06"; -} diff --git a/dist/assets/css/dashboard.rtl.css b/dist/assets/css/dashboard.rtl.css deleted file mode 100644 index 825506ec9..000000000 --- a/dist/assets/css/dashboard.rtl.css +++ /dev/null @@ -1,18610 +0,0 @@ -@charset "UTF-8"; -/** -Dashboard UI - */ -/*! - * Bootstrap v4.1.0 (https://getbootstrap.com/) - * Copyright 2011-2018 The Bootstrap Authors - * Copyright 2011-2018 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - */ -:root { - --blue: #467fcf; - --indigo: #6574cd; - --purple: #a55eea; - --pink: #f66d9b; - --red: #cd201f; - --orange: #fd9644; - --yellow: #f1c40f; - --green: #5eba00; - --teal: #2bcbba; - --cyan: #17a2b8; - --white: #fff; - --gray: #868e96; - --gray-dark: #343a40; - --azure: #45aaf2; - --lime: #7bd235; - --primary: #467fcf; - --secondary: #868e96; - --success: #5eba00; - --info: #45aaf2; - --warning: #f1c40f; - --danger: #cd201f; - --light: #f8f9fa; - --dark: #343a40; - --breakpoint-xs: 0; - --breakpoint-sm: 576px; - --breakpoint-md: 768px; - --breakpoint-lg: 992px; - --breakpoint-xl: 1280px; - --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - --font-family-monospace: Monaco, Consolas, "Liberation Mono", "Courier New", monospace; -} - -*, -*::before, -*::after { - box-sizing: border-box; -} - -html { - font-family: sans-serif; - line-height: 1.15; - -webkit-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; - -ms-overflow-style: scrollbar; - -webkit-tap-highlight-color: transparent; -} - -@-ms-viewport { - width: device-width; -} - -article, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section { - display: block; -} - -body { - margin: 0; - font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; - font-size: 0.9375rem; - font-weight: 400; - line-height: 1.5; - color: #495057; - text-align: right; - background-color: #f5f7fb; -} - -[tabindex="-1"]:focus { - outline: 0 !important; -} - -hr { - box-sizing: content-box; - height: 0; - overflow: visible; -} - -h1, h2, h3, h4, h5, h6 { - margin-top: 0; - margin-bottom: 0.66em; -} - -p { - margin-top: 0; - margin-bottom: 1rem; -} - -abbr[title], -abbr[data-original-title] { - text-decoration: underline; - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; - cursor: help; - border-bottom: 0; -} - -address { - margin-bottom: 1rem; - font-style: normal; - line-height: inherit; -} - -ol, -ul, -dl { - margin-top: 0; - margin-bottom: 1rem; -} - -ol ol, -ul ul, -ol ul, -ul ol { - margin-bottom: 0; -} - -dt { - font-weight: 700; -} - -dd { - margin-bottom: .5rem; - margin-right: 0; -} - -blockquote { - margin: 0 0 1rem; -} - -dfn { - font-style: italic; -} - -b, -strong { - font-weight: bolder; -} - -small { - font-size: 80%; -} - -sub, -sup { - position: relative; - font-size: 75%; - line-height: 0; - vertical-align: baseline; -} - -sub { - bottom: -.25em; -} - -sup { - top: -.5em; -} - -a { - color: #467fcf; - text-decoration: none; - background-color: transparent; - -webkit-text-decoration-skip: objects; -} - -a:hover { - color: #295a9f; - text-decoration: underline; -} - -a:not([href]):not([tabindex]) { - color: inherit; - text-decoration: none; -} - -a:not([href]):not([tabindex]):hover, a:not([href]):not([tabindex]):focus { - color: inherit; - text-decoration: none; -} - -a:not([href]):not([tabindex]):focus { - outline: 0; -} - -pre, -code, -kbd, -samp { - font-family: monospace, monospace; - font-size: 1em; -} - -pre { - margin-top: 0; - margin-bottom: 1rem; - overflow: auto; - -ms-overflow-style: scrollbar; -} - -figure { - margin: 0 0 1rem; -} - -img { - vertical-align: middle; - border-style: none; -} - -svg:not(:root) { - overflow: hidden; -} - -table { - border-collapse: collapse; -} - -caption { - padding-top: 0.75rem; - padding-bottom: 0.75rem; - color: #9aa0ac; - text-align: right; - caption-side: bottom; -} - -th { - text-align: inherit; -} - -label { - display: inline-block; - margin-bottom: 0.5rem; -} - -button { - border-radius: 0; -} - -button:focus { - outline: 1px dotted; - outline: 5px auto -webkit-focus-ring-color; -} - -input, -button, -select, -optgroup, -textarea { - margin: 0; - font-family: inherit; - font-size: inherit; - line-height: inherit; -} - -button, -input { - overflow: visible; -} - -button, -select { - text-transform: none; -} - -button, -html [type="button"], -[type="reset"], -[type="submit"] { - -webkit-appearance: button; -} - -button::-moz-focus-inner, -[type="button"]::-moz-focus-inner, -[type="reset"]::-moz-focus-inner, -[type="submit"]::-moz-focus-inner { - padding: 0; - border-style: none; -} - -input[type="radio"], -input[type="checkbox"] { - box-sizing: border-box; - padding: 0; -} - -input[type="date"], -input[type="time"], -input[type="datetime-local"], -input[type="month"] { - -webkit-appearance: listbox; -} - -textarea { - overflow: auto; - resize: vertical; -} - -fieldset { - min-width: 0; - padding: 0; - margin: 0; - border: 0; -} - -legend { - display: block; - width: 100%; - max-width: 100%; - padding: 0; - margin-bottom: .5rem; - font-size: 1.5rem; - line-height: inherit; - color: inherit; - white-space: normal; -} - -progress { - vertical-align: baseline; -} - -[type="number"]::-webkit-inner-spin-button, -[type="number"]::-webkit-outer-spin-button { - height: auto; -} - -[type="search"] { - outline-offset: -2px; - -webkit-appearance: none; -} - -[type="search"]::-webkit-search-cancel-button, -[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -::-webkit-file-upload-button { - font: inherit; - -webkit-appearance: button; -} - -output { - display: inline-block; -} - -summary { - display: list-item; - cursor: pointer; -} - -template { - display: none; -} - -[hidden] { - display: none !important; -} - -h1, h2, h3, h4, h5, h6, -.h1, .h2, .h3, .h4, .h5, .h6 { - margin-bottom: 0.66em; - font-family: inherit; - font-weight: 600; - line-height: 1.1; - color: inherit; -} - -h1, .h1 { - font-size: 2rem; -} - -h2, .h2 { - font-size: 1.75rem; -} - -h3, .h3 { - font-size: 1.5rem; -} - -h4, .h4 { - font-size: 1.125rem; -} - -h5, .h5 { - font-size: 1rem; -} - -h6, .h6 { - font-size: 0.875rem; -} - -.lead { - font-size: 1.171875rem; - font-weight: 300; -} - -.display-1 { - font-size: 4.5rem; - font-weight: 300; - line-height: 1.1; -} - -.display-2 { - font-size: 4rem; - font-weight: 300; - line-height: 1.1; -} - -.display-3 { - font-size: 3.5rem; - font-weight: 300; - line-height: 1.1; -} - -.display-4 { - font-size: 3rem; - font-weight: 300; - line-height: 1.1; -} - -hr { - margin-top: 1rem; - margin-bottom: 1rem; - border: 0; - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -small, -.small { - font-size: 87.5%; - font-weight: 400; -} - -mark, -.mark { - padding: 0.2em; - background-color: #fcf8e3; -} - -.list-unstyled { - padding-right: 0; - list-style: none; -} - -.list-inline { - padding-right: 0; - list-style: none; -} - -.list-inline-item { - display: inline-block; -} - -.list-inline-item:not(:last-child) { - margin-left: 0.5rem; -} - -.initialism { - font-size: 90%; - text-transform: uppercase; -} - -.blockquote { - margin-bottom: 1rem; - font-size: 1.171875rem; -} - -.blockquote-footer { - display: block; - font-size: 80%; - color: #868e96; -} - -.blockquote-footer::before { - content: "\2014 \00A0"; -} - -.img-fluid { - max-width: 100%; - height: auto; -} - -.img-thumbnail { - padding: 0.25rem; - background-color: #fff; - border: 1px solid #dee2e6; - border-radius: 3px; - max-width: 100%; - height: auto; -} - -.figure { - display: inline-block; -} - -.figure-img { - margin-bottom: 0.5rem; - line-height: 1; -} - -.figure-caption { - font-size: 90%; - color: #868e96; -} - -code, -kbd, -pre, -samp { - font-family: Monaco, Consolas, "Liberation Mono", "Courier New", monospace; -} - -code { - font-size: 85%; - color: inherit; - word-break: break-word; -} - -a > code { - color: inherit; -} - -kbd { - padding: 0.2rem 0.4rem; - font-size: 85%; - color: #fff; - background-color: #343a40; - border-radius: 3px; -} - -kbd kbd { - padding: 0; - font-size: 100%; - font-weight: 700; -} - -pre { - display: block; - font-size: 85%; - color: #212529; -} - -pre code { - font-size: inherit; - color: inherit; - word-break: normal; -} - -.pre-scrollable { - max-height: 340px; - overflow-y: scroll; -} - -.container { - width: 100%; - padding-left: 0.75rem; - padding-right: 0.75rem; - margin-left: auto; - margin-right: auto; -} - -@media (min-width: 576px) { - .container { - max-width: 540px; - } -} - -@media (min-width: 768px) { - .container { - max-width: 720px; - } -} - -@media (min-width: 992px) { - .container { - max-width: 960px; - } -} - -@media (min-width: 1280px) { - .container { - max-width: 1200px; - } -} - -.container-fluid { - width: 100%; - padding-left: 0.75rem; - padding-right: 0.75rem; - margin-left: auto; - margin-right: auto; -} - -.row { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-left: -0.75rem; - margin-right: -0.75rem; -} - -.no-gutters { - margin-left: 0; - margin-right: 0; -} - -.no-gutters > .col, -.no-gutters > [class*="col-"] { - padding-left: 0; - padding-right: 0; -} - -.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, -.col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, -.col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, -.col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, -.col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl, -.col-xl-auto { - position: relative; - width: 100%; - min-height: 1px; - padding-left: 0.75rem; - padding-right: 0.75rem; -} - -.col { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; -} - -.col-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; -} - -.col-1 { - -ms-flex: 0 0 8.33333333%; - flex: 0 0 8.33333333%; - max-width: 8.33333333%; -} - -.col-2 { - -ms-flex: 0 0 16.66666667%; - flex: 0 0 16.66666667%; - max-width: 16.66666667%; -} - -.col-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; -} - -.col-4 { - -ms-flex: 0 0 33.33333333%; - flex: 0 0 33.33333333%; - max-width: 33.33333333%; -} - -.col-5 { - -ms-flex: 0 0 41.66666667%; - flex: 0 0 41.66666667%; - max-width: 41.66666667%; -} - -.col-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; -} - -.col-7 { - -ms-flex: 0 0 58.33333333%; - flex: 0 0 58.33333333%; - max-width: 58.33333333%; -} - -.col-8 { - -ms-flex: 0 0 66.66666667%; - flex: 0 0 66.66666667%; - max-width: 66.66666667%; -} - -.col-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; -} - -.col-10 { - -ms-flex: 0 0 83.33333333%; - flex: 0 0 83.33333333%; - max-width: 83.33333333%; -} - -.col-11 { - -ms-flex: 0 0 91.66666667%; - flex: 0 0 91.66666667%; - max-width: 91.66666667%; -} - -.col-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; -} - -.order-first { - -ms-flex-order: -1; - order: -1; -} - -.order-last { - -ms-flex-order: 13; - order: 13; -} - -.order-0 { - -ms-flex-order: 0; - order: 0; -} - -.order-1 { - -ms-flex-order: 1; - order: 1; -} - -.order-2 { - -ms-flex-order: 2; - order: 2; -} - -.order-3 { - -ms-flex-order: 3; - order: 3; -} - -.order-4 { - -ms-flex-order: 4; - order: 4; -} - -.order-5 { - -ms-flex-order: 5; - order: 5; -} - -.order-6 { - -ms-flex-order: 6; - order: 6; -} - -.order-7 { - -ms-flex-order: 7; - order: 7; -} - -.order-8 { - -ms-flex-order: 8; - order: 8; -} - -.order-9 { - -ms-flex-order: 9; - order: 9; -} - -.order-10 { - -ms-flex-order: 10; - order: 10; -} - -.order-11 { - -ms-flex-order: 11; - order: 11; -} - -.order-12 { - -ms-flex-order: 12; - order: 12; -} - -.offset-1 { - margin-right: 8.33333333%; -} - -.offset-2 { - margin-right: 16.66666667%; -} - -.offset-3 { - margin-right: 25%; -} - -.offset-4 { - margin-right: 33.33333333%; -} - -.offset-5 { - margin-right: 41.66666667%; -} - -.offset-6 { - margin-right: 50%; -} - -.offset-7 { - margin-right: 58.33333333%; -} - -.offset-8 { - margin-right: 66.66666667%; -} - -.offset-9 { - margin-right: 75%; -} - -.offset-10 { - margin-right: 83.33333333%; -} - -.offset-11 { - margin-right: 91.66666667%; -} - -@media (min-width: 576px) { - .col-sm { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; - } - .col-sm-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; - } - .col-sm-1 { - -ms-flex: 0 0 8.33333333%; - flex: 0 0 8.33333333%; - max-width: 8.33333333%; - } - .col-sm-2 { - -ms-flex: 0 0 16.66666667%; - flex: 0 0 16.66666667%; - max-width: 16.66666667%; - } - .col-sm-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-sm-4 { - -ms-flex: 0 0 33.33333333%; - flex: 0 0 33.33333333%; - max-width: 33.33333333%; - } - .col-sm-5 { - -ms-flex: 0 0 41.66666667%; - flex: 0 0 41.66666667%; - max-width: 41.66666667%; - } - .col-sm-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .col-sm-7 { - -ms-flex: 0 0 58.33333333%; - flex: 0 0 58.33333333%; - max-width: 58.33333333%; - } - .col-sm-8 { - -ms-flex: 0 0 66.66666667%; - flex: 0 0 66.66666667%; - max-width: 66.66666667%; - } - .col-sm-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } - .col-sm-10 { - -ms-flex: 0 0 83.33333333%; - flex: 0 0 83.33333333%; - max-width: 83.33333333%; - } - .col-sm-11 { - -ms-flex: 0 0 91.66666667%; - flex: 0 0 91.66666667%; - max-width: 91.66666667%; - } - .col-sm-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .order-sm-first { - -ms-flex-order: -1; - order: -1; - } - .order-sm-last { - -ms-flex-order: 13; - order: 13; - } - .order-sm-0 { - -ms-flex-order: 0; - order: 0; - } - .order-sm-1 { - -ms-flex-order: 1; - order: 1; - } - .order-sm-2 { - -ms-flex-order: 2; - order: 2; - } - .order-sm-3 { - -ms-flex-order: 3; - order: 3; - } - .order-sm-4 { - -ms-flex-order: 4; - order: 4; - } - .order-sm-5 { - -ms-flex-order: 5; - order: 5; - } - .order-sm-6 { - -ms-flex-order: 6; - order: 6; - } - .order-sm-7 { - -ms-flex-order: 7; - order: 7; - } - .order-sm-8 { - -ms-flex-order: 8; - order: 8; - } - .order-sm-9 { - -ms-flex-order: 9; - order: 9; - } - .order-sm-10 { - -ms-flex-order: 10; - order: 10; - } - .order-sm-11 { - -ms-flex-order: 11; - order: 11; - } - .order-sm-12 { - -ms-flex-order: 12; - order: 12; - } - .offset-sm-0 { - margin-right: 0; - } - .offset-sm-1 { - margin-right: 8.33333333%; - } - .offset-sm-2 { - margin-right: 16.66666667%; - } - .offset-sm-3 { - margin-right: 25%; - } - .offset-sm-4 { - margin-right: 33.33333333%; - } - .offset-sm-5 { - margin-right: 41.66666667%; - } - .offset-sm-6 { - margin-right: 50%; - } - .offset-sm-7 { - margin-right: 58.33333333%; - } - .offset-sm-8 { - margin-right: 66.66666667%; - } - .offset-sm-9 { - margin-right: 75%; - } - .offset-sm-10 { - margin-right: 83.33333333%; - } - .offset-sm-11 { - margin-right: 91.66666667%; - } -} - -@media (min-width: 768px) { - .col-md { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; - } - .col-md-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; - } - .col-md-1 { - -ms-flex: 0 0 8.33333333%; - flex: 0 0 8.33333333%; - max-width: 8.33333333%; - } - .col-md-2 { - -ms-flex: 0 0 16.66666667%; - flex: 0 0 16.66666667%; - max-width: 16.66666667%; - } - .col-md-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-md-4 { - -ms-flex: 0 0 33.33333333%; - flex: 0 0 33.33333333%; - max-width: 33.33333333%; - } - .col-md-5 { - -ms-flex: 0 0 41.66666667%; - flex: 0 0 41.66666667%; - max-width: 41.66666667%; - } - .col-md-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .col-md-7 { - -ms-flex: 0 0 58.33333333%; - flex: 0 0 58.33333333%; - max-width: 58.33333333%; - } - .col-md-8 { - -ms-flex: 0 0 66.66666667%; - flex: 0 0 66.66666667%; - max-width: 66.66666667%; - } - .col-md-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } - .col-md-10 { - -ms-flex: 0 0 83.33333333%; - flex: 0 0 83.33333333%; - max-width: 83.33333333%; - } - .col-md-11 { - -ms-flex: 0 0 91.66666667%; - flex: 0 0 91.66666667%; - max-width: 91.66666667%; - } - .col-md-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .order-md-first { - -ms-flex-order: -1; - order: -1; - } - .order-md-last { - -ms-flex-order: 13; - order: 13; - } - .order-md-0 { - -ms-flex-order: 0; - order: 0; - } - .order-md-1 { - -ms-flex-order: 1; - order: 1; - } - .order-md-2 { - -ms-flex-order: 2; - order: 2; - } - .order-md-3 { - -ms-flex-order: 3; - order: 3; - } - .order-md-4 { - -ms-flex-order: 4; - order: 4; - } - .order-md-5 { - -ms-flex-order: 5; - order: 5; - } - .order-md-6 { - -ms-flex-order: 6; - order: 6; - } - .order-md-7 { - -ms-flex-order: 7; - order: 7; - } - .order-md-8 { - -ms-flex-order: 8; - order: 8; - } - .order-md-9 { - -ms-flex-order: 9; - order: 9; - } - .order-md-10 { - -ms-flex-order: 10; - order: 10; - } - .order-md-11 { - -ms-flex-order: 11; - order: 11; - } - .order-md-12 { - -ms-flex-order: 12; - order: 12; - } - .offset-md-0 { - margin-right: 0; - } - .offset-md-1 { - margin-right: 8.33333333%; - } - .offset-md-2 { - margin-right: 16.66666667%; - } - .offset-md-3 { - margin-right: 25%; - } - .offset-md-4 { - margin-right: 33.33333333%; - } - .offset-md-5 { - margin-right: 41.66666667%; - } - .offset-md-6 { - margin-right: 50%; - } - .offset-md-7 { - margin-right: 58.33333333%; - } - .offset-md-8 { - margin-right: 66.66666667%; - } - .offset-md-9 { - margin-right: 75%; - } - .offset-md-10 { - margin-right: 83.33333333%; - } - .offset-md-11 { - margin-right: 91.66666667%; - } -} - -@media (min-width: 992px) { - .col-lg { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; - } - .col-lg-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; - } - .col-lg-1 { - -ms-flex: 0 0 8.33333333%; - flex: 0 0 8.33333333%; - max-width: 8.33333333%; - } - .col-lg-2 { - -ms-flex: 0 0 16.66666667%; - flex: 0 0 16.66666667%; - max-width: 16.66666667%; - } - .col-lg-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-lg-4 { - -ms-flex: 0 0 33.33333333%; - flex: 0 0 33.33333333%; - max-width: 33.33333333%; - } - .col-lg-5 { - -ms-flex: 0 0 41.66666667%; - flex: 0 0 41.66666667%; - max-width: 41.66666667%; - } - .col-lg-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .col-lg-7 { - -ms-flex: 0 0 58.33333333%; - flex: 0 0 58.33333333%; - max-width: 58.33333333%; - } - .col-lg-8 { - -ms-flex: 0 0 66.66666667%; - flex: 0 0 66.66666667%; - max-width: 66.66666667%; - } - .col-lg-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } - .col-lg-10 { - -ms-flex: 0 0 83.33333333%; - flex: 0 0 83.33333333%; - max-width: 83.33333333%; - } - .col-lg-11 { - -ms-flex: 0 0 91.66666667%; - flex: 0 0 91.66666667%; - max-width: 91.66666667%; - } - .col-lg-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .order-lg-first { - -ms-flex-order: -1; - order: -1; - } - .order-lg-last { - -ms-flex-order: 13; - order: 13; - } - .order-lg-0 { - -ms-flex-order: 0; - order: 0; - } - .order-lg-1 { - -ms-flex-order: 1; - order: 1; - } - .order-lg-2 { - -ms-flex-order: 2; - order: 2; - } - .order-lg-3 { - -ms-flex-order: 3; - order: 3; - } - .order-lg-4 { - -ms-flex-order: 4; - order: 4; - } - .order-lg-5 { - -ms-flex-order: 5; - order: 5; - } - .order-lg-6 { - -ms-flex-order: 6; - order: 6; - } - .order-lg-7 { - -ms-flex-order: 7; - order: 7; - } - .order-lg-8 { - -ms-flex-order: 8; - order: 8; - } - .order-lg-9 { - -ms-flex-order: 9; - order: 9; - } - .order-lg-10 { - -ms-flex-order: 10; - order: 10; - } - .order-lg-11 { - -ms-flex-order: 11; - order: 11; - } - .order-lg-12 { - -ms-flex-order: 12; - order: 12; - } - .offset-lg-0 { - margin-right: 0; - } - .offset-lg-1 { - margin-right: 8.33333333%; - } - .offset-lg-2 { - margin-right: 16.66666667%; - } - .offset-lg-3 { - margin-right: 25%; - } - .offset-lg-4 { - margin-right: 33.33333333%; - } - .offset-lg-5 { - margin-right: 41.66666667%; - } - .offset-lg-6 { - margin-right: 50%; - } - .offset-lg-7 { - margin-right: 58.33333333%; - } - .offset-lg-8 { - margin-right: 66.66666667%; - } - .offset-lg-9 { - margin-right: 75%; - } - .offset-lg-10 { - margin-right: 83.33333333%; - } - .offset-lg-11 { - margin-right: 91.66666667%; - } -} - -@media (min-width: 1280px) { - .col-xl { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; - } - .col-xl-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; - } - .col-xl-1 { - -ms-flex: 0 0 8.33333333%; - flex: 0 0 8.33333333%; - max-width: 8.33333333%; - } - .col-xl-2 { - -ms-flex: 0 0 16.66666667%; - flex: 0 0 16.66666667%; - max-width: 16.66666667%; - } - .col-xl-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-xl-4 { - -ms-flex: 0 0 33.33333333%; - flex: 0 0 33.33333333%; - max-width: 33.33333333%; - } - .col-xl-5 { - -ms-flex: 0 0 41.66666667%; - flex: 0 0 41.66666667%; - max-width: 41.66666667%; - } - .col-xl-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .col-xl-7 { - -ms-flex: 0 0 58.33333333%; - flex: 0 0 58.33333333%; - max-width: 58.33333333%; - } - .col-xl-8 { - -ms-flex: 0 0 66.66666667%; - flex: 0 0 66.66666667%; - max-width: 66.66666667%; - } - .col-xl-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } - .col-xl-10 { - -ms-flex: 0 0 83.33333333%; - flex: 0 0 83.33333333%; - max-width: 83.33333333%; - } - .col-xl-11 { - -ms-flex: 0 0 91.66666667%; - flex: 0 0 91.66666667%; - max-width: 91.66666667%; - } - .col-xl-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .order-xl-first { - -ms-flex-order: -1; - order: -1; - } - .order-xl-last { - -ms-flex-order: 13; - order: 13; - } - .order-xl-0 { - -ms-flex-order: 0; - order: 0; - } - .order-xl-1 { - -ms-flex-order: 1; - order: 1; - } - .order-xl-2 { - -ms-flex-order: 2; - order: 2; - } - .order-xl-3 { - -ms-flex-order: 3; - order: 3; - } - .order-xl-4 { - -ms-flex-order: 4; - order: 4; - } - .order-xl-5 { - -ms-flex-order: 5; - order: 5; - } - .order-xl-6 { - -ms-flex-order: 6; - order: 6; - } - .order-xl-7 { - -ms-flex-order: 7; - order: 7; - } - .order-xl-8 { - -ms-flex-order: 8; - order: 8; - } - .order-xl-9 { - -ms-flex-order: 9; - order: 9; - } - .order-xl-10 { - -ms-flex-order: 10; - order: 10; - } - .order-xl-11 { - -ms-flex-order: 11; - order: 11; - } - .order-xl-12 { - -ms-flex-order: 12; - order: 12; - } - .offset-xl-0 { - margin-right: 0; - } - .offset-xl-1 { - margin-right: 8.33333333%; - } - .offset-xl-2 { - margin-right: 16.66666667%; - } - .offset-xl-3 { - margin-right: 25%; - } - .offset-xl-4 { - margin-right: 33.33333333%; - } - .offset-xl-5 { - margin-right: 41.66666667%; - } - .offset-xl-6 { - margin-right: 50%; - } - .offset-xl-7 { - margin-right: 58.33333333%; - } - .offset-xl-8 { - margin-right: 66.66666667%; - } - .offset-xl-9 { - margin-right: 75%; - } - .offset-xl-10 { - margin-right: 83.33333333%; - } - .offset-xl-11 { - margin-right: 91.66666667%; - } -} - -.table, .text-wrap table { - width: 100%; - max-width: 100%; - margin-bottom: 1rem; - background-color: transparent; -} - -.table th, .text-wrap table th, -.table td, -.text-wrap table td { - padding: 0.75rem; - vertical-align: top; - border-top: 1px solid #dee2e6; -} - -.table thead th, .text-wrap table thead th { - vertical-align: bottom; - border-bottom: 2px solid #dee2e6; -} - -.table tbody + tbody, .text-wrap table tbody + tbody { - border-top: 2px solid #dee2e6; -} - -.table .table, .text-wrap table .table, .table .text-wrap table, .text-wrap .table table, .text-wrap table table { - background-color: #f5f7fb; -} - -.table-sm th, -.table-sm td { - padding: 0.3rem; -} - -.table-bordered, .text-wrap table { - border: 1px solid #dee2e6; -} - -.table-bordered th, .text-wrap table th, -.table-bordered td, -.text-wrap table td { - border: 1px solid #dee2e6; -} - -.table-bordered thead th, .text-wrap table thead th, -.table-bordered thead td, -.text-wrap table thead td { - border-bottom-width: 2px; -} - -.table-borderless th, -.table-borderless td, -.table-borderless thead th, -.table-borderless tbody + tbody { - border: 0; -} - -.table-striped tbody tr:nth-of-type(odd) { - background-color: rgba(0, 0, 0, 0.02); -} - -.table-hover tbody tr:hover { - background-color: rgba(0, 0, 0, 0.04); -} - -.table-primary, -.table-primary > th, -.table-primary > td { - background-color: #cbdbf2; -} - -.table-hover .table-primary:hover { - background-color: #b7cded; -} - -.table-hover .table-primary:hover > td, -.table-hover .table-primary:hover > th { - background-color: #b7cded; -} - -.table-secondary, -.table-secondary > th, -.table-secondary > td { - background-color: #dddfe2; -} - -.table-hover .table-secondary:hover { - background-color: #cfd2d6; -} - -.table-hover .table-secondary:hover > td, -.table-hover .table-secondary:hover > th { - background-color: #cfd2d6; -} - -.table-success, -.table-success > th, -.table-success > td { - background-color: #d2ecb8; -} - -.table-hover .table-success:hover { - background-color: #c5e7a4; -} - -.table-hover .table-success:hover > td, -.table-hover .table-success:hover > th { - background-color: #c5e7a4; -} - -.table-info, -.table-info > th, -.table-info > td { - background-color: #cbe7fb; -} - -.table-hover .table-info:hover { - background-color: #b3dcf9; -} - -.table-hover .table-info:hover > td, -.table-hover .table-info:hover > th { - background-color: #b3dcf9; -} - -.table-warning, -.table-warning > th, -.table-warning > td { - background-color: #fbeebc; -} - -.table-hover .table-warning:hover { - background-color: #fae8a4; -} - -.table-hover .table-warning:hover > td, -.table-hover .table-warning:hover > th { - background-color: #fae8a4; -} - -.table-danger, -.table-danger > th, -.table-danger > td { - background-color: #f1c1c0; -} - -.table-hover .table-danger:hover { - background-color: #ecacab; -} - -.table-hover .table-danger:hover > td, -.table-hover .table-danger:hover > th { - background-color: #ecacab; -} - -.table-light, -.table-light > th, -.table-light > td { - background-color: #fdfdfe; -} - -.table-hover .table-light:hover { - background-color: #ececf6; -} - -.table-hover .table-light:hover > td, -.table-hover .table-light:hover > th { - background-color: #ececf6; -} - -.table-dark, -.table-dark > th, -.table-dark > td { - background-color: #c6c8ca; -} - -.table-hover .table-dark:hover { - background-color: #b9bbbe; -} - -.table-hover .table-dark:hover > td, -.table-hover .table-dark:hover > th { - background-color: #b9bbbe; -} - -.table-active, -.table-active > th, -.table-active > td { - background-color: rgba(0, 0, 0, 0.04); -} - -.table-hover .table-active:hover { - background-color: rgba(0, 0, 0, 0.04); -} - -.table-hover .table-active:hover > td, -.table-hover .table-active:hover > th { - background-color: rgba(0, 0, 0, 0.04); -} - -.table .thead-dark th, .text-wrap table .thead-dark th { - color: #f5f7fb; - background-color: #212529; - border-color: #32383e; -} - -.table .thead-light th, .text-wrap table .thead-light th { - color: #495057; - background-color: #e9ecef; - border-color: #dee2e6; -} - -.table-dark { - color: #f5f7fb; - background-color: #212529; -} - -.table-dark th, -.table-dark td, -.table-dark thead th { - border-color: #32383e; -} - -.table-dark.table-bordered, .text-wrap table.table-dark { - border: 0; -} - -.table-dark.table-striped tbody tr:nth-of-type(odd) { - background-color: rgba(255, 255, 255, 0.05); -} - -.table-dark.table-hover tbody tr:hover { - background-color: rgba(255, 255, 255, 0.075); -} - -@media (max-width: 575.98px) { - .table-responsive-sm { - display: block; - width: 100%; - overflow-x: auto; - -webkit-overflow-scrolling: touch; - -ms-overflow-style: -ms-autohiding-scrollbar; - } - .table-responsive-sm > .table-bordered, .text-wrap .table-responsive-sm > table { - border: 0; - } -} - -@media (max-width: 767.98px) { - .table-responsive-md { - display: block; - width: 100%; - overflow-x: auto; - -webkit-overflow-scrolling: touch; - -ms-overflow-style: -ms-autohiding-scrollbar; - } - .table-responsive-md > .table-bordered, .text-wrap .table-responsive-md > table { - border: 0; - } -} - -@media (max-width: 991.98px) { - .table-responsive-lg { - display: block; - width: 100%; - overflow-x: auto; - -webkit-overflow-scrolling: touch; - -ms-overflow-style: -ms-autohiding-scrollbar; - } - .table-responsive-lg > .table-bordered, .text-wrap .table-responsive-lg > table { - border: 0; - } -} - -@media (max-width: 1279.98px) { - .table-responsive-xl { - display: block; - width: 100%; - overflow-x: auto; - -webkit-overflow-scrolling: touch; - -ms-overflow-style: -ms-autohiding-scrollbar; - } - .table-responsive-xl > .table-bordered, .text-wrap .table-responsive-xl > table { - border: 0; - } -} - -.table-responsive { - display: block; - width: 100%; - overflow-x: auto; - -webkit-overflow-scrolling: touch; - -ms-overflow-style: -ms-autohiding-scrollbar; -} - -.table-responsive > .table-bordered, .text-wrap .table-responsive > table { - border: 0; -} - -.form-control { - display: block; - width: 100%; - padding: 0.375rem 0.75rem; - font-size: 0.9375rem; - line-height: 1.6; - color: #495057; - background-color: #fff; - background-clip: padding-box; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; - transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; -} - -@media screen and (prefers-reduced-motion: reduce) { - .form-control { - transition: none; - } -} - -.form-control::-ms-expand { - background-color: transparent; - border: 0; -} - -.form-control:focus { - color: #495057; - background-color: #fff; - border-color: #1991eb; - outline: 0; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.form-control::-webkit-input-placeholder { - color: #adb5bd; - opacity: 1; -} - -.form-control::-moz-placeholder { - color: #adb5bd; - opacity: 1; -} - -.form-control:-ms-input-placeholder { - color: #adb5bd; - opacity: 1; -} - -.form-control::-ms-input-placeholder { - color: #adb5bd; - opacity: 1; -} - -.form-control::placeholder { - color: #adb5bd; - opacity: 1; -} - -.form-control:disabled, .form-control[readonly] { - background-color: #f8f9fa; - opacity: 1; -} - -select.form-control:not([size]):not([multiple]) { - height: 2.375rem; -} - -select.form-control:focus::-ms-value { - color: #495057; - background-color: #fff; -} - -.form-control-file, -.form-control-range { - display: block; - width: 100%; -} - -.col-form-label { - padding-top: calc(0.375rem + 1px); - padding-bottom: calc(0.375rem + 1px); - margin-bottom: 0; - font-size: inherit; - line-height: 1.6; -} - -.col-form-label-lg { - padding-top: calc(0.5rem + 1px); - padding-bottom: calc(0.5rem + 1px); - font-size: 1.125rem; - line-height: 1.44444444; -} - -.col-form-label-sm { - padding-top: calc(0.25rem + 1px); - padding-bottom: calc(0.25rem + 1px); - font-size: 0.875rem; - line-height: 1.14285714; -} - -.form-control-plaintext { - display: block; - width: 100%; - padding-top: 0.375rem; - padding-bottom: 0.375rem; - margin-bottom: 0; - line-height: 1.6; - color: #495057; - background-color: transparent; - border: solid transparent; - border-width: 1px 0; -} - -.form-control-plaintext.form-control-sm, .input-group-sm > .form-control-plaintext.form-control, -.input-group-sm > .input-group-prepend > .form-control-plaintext.input-group-text, -.input-group-sm > .input-group-append > .form-control-plaintext.input-group-text, -.input-group-sm > .input-group-prepend > .form-control-plaintext.btn, -.input-group-sm > .input-group-append > .form-control-plaintext.btn, .form-control-plaintext.form-control-lg, .input-group-lg > .form-control-plaintext.form-control, -.input-group-lg > .input-group-prepend > .form-control-plaintext.input-group-text, -.input-group-lg > .input-group-append > .form-control-plaintext.input-group-text, -.input-group-lg > .input-group-prepend > .form-control-plaintext.btn, -.input-group-lg > .input-group-append > .form-control-plaintext.btn { - padding-left: 0; - padding-right: 0; -} - -.form-control-sm, .input-group-sm > .form-control, -.input-group-sm > .input-group-prepend > .input-group-text, -.input-group-sm > .input-group-append > .input-group-text, -.input-group-sm > .input-group-prepend > .btn, -.input-group-sm > .input-group-append > .btn { - padding: 0.25rem 0.5rem; - font-size: 0.875rem; - line-height: 1.14285714; - border-radius: 3px; -} - -select.form-control-sm:not([size]):not([multiple]), .input-group-sm > select.form-control:not([size]):not([multiple]), -.input-group-sm > .input-group-prepend > select.input-group-text:not([size]):not([multiple]), -.input-group-sm > .input-group-append > select.input-group-text:not([size]):not([multiple]), -.input-group-sm > .input-group-prepend > select.btn:not([size]):not([multiple]), -.input-group-sm > .input-group-append > select.btn:not([size]):not([multiple]) { - height: calc(1.8125rem + 2px); -} - -.form-control-lg, .input-group-lg > .form-control, -.input-group-lg > .input-group-prepend > .input-group-text, -.input-group-lg > .input-group-append > .input-group-text, -.input-group-lg > .input-group-prepend > .btn, -.input-group-lg > .input-group-append > .btn { - padding: 0.5rem 1rem; - font-size: 1.125rem; - line-height: 1.44444444; - border-radius: 3px; -} - -select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.form-control:not([size]):not([multiple]), -.input-group-lg > .input-group-prepend > select.input-group-text:not([size]):not([multiple]), -.input-group-lg > .input-group-append > select.input-group-text:not([size]):not([multiple]), -.input-group-lg > .input-group-prepend > select.btn:not([size]):not([multiple]), -.input-group-lg > .input-group-append > select.btn:not([size]):not([multiple]) { - height: calc(2.6875rem + 2px); -} - -.form-group { - margin-bottom: 1rem; -} - -.form-text { - display: block; - margin-top: 0.25rem; -} - -.form-row { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-left: -5px; - margin-right: -5px; -} - -.form-row > .col, -.form-row > [class*="col-"] { - padding-left: 5px; - padding-right: 5px; -} - -.form-check { - position: relative; - display: block; - padding-right: 1.25rem; -} - -.form-check-input { - position: absolute; - margin-top: 0.3rem; - margin-right: -1.25rem; -} - -.form-check-input:disabled ~ .form-check-label { - color: #9aa0ac; -} - -.form-check-label { - margin-bottom: 0; -} - -.form-check-inline { - display: -ms-inline-flexbox; - display: inline-flex; - -ms-flex-align: center; - align-items: center; - padding-right: 0; - margin-left: 0.75rem; -} - -.form-check-inline .form-check-input { - position: static; - margin-top: 0; - margin-left: 0.3125rem; - margin-right: 0; -} - -.valid-feedback { - display: none; - width: 100%; - margin-top: 0.25rem; - font-size: 87.5%; - color: #5eba00; -} - -.valid-tooltip { - position: absolute; - top: 100%; - z-index: 5; - display: none; - max-width: 100%; - padding: .5rem; - margin-top: .1rem; - font-size: .875rem; - line-height: 1; - color: #fff; - background-color: rgba(94, 186, 0, 0.8); - border-radius: .2rem; -} - -.was-validated .form-control:valid, .form-control.is-valid, .was-validated -.custom-select:valid, -.custom-select.is-valid { - border-color: #5eba00; -} - -.was-validated .form-control:valid:focus, .form-control.is-valid:focus, .was-validated -.custom-select:valid:focus, -.custom-select.is-valid:focus { - border-color: #5eba00; - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.25); -} - -.was-validated .form-control:valid ~ .valid-feedback, -.was-validated .form-control:valid ~ .valid-tooltip, .form-control.is-valid ~ .valid-feedback, -.form-control.is-valid ~ .valid-tooltip, .was-validated -.custom-select:valid ~ .valid-feedback, -.was-validated -.custom-select:valid ~ .valid-tooltip, -.custom-select.is-valid ~ .valid-feedback, -.custom-select.is-valid ~ .valid-tooltip { - display: block; -} - -.was-validated .form-check-input:valid ~ .form-check-label, .form-check-input.is-valid ~ .form-check-label { - color: #5eba00; -} - -.was-validated .form-check-input:valid ~ .valid-feedback, -.was-validated .form-check-input:valid ~ .valid-tooltip, .form-check-input.is-valid ~ .valid-feedback, -.form-check-input.is-valid ~ .valid-tooltip { - display: block; -} - -.was-validated .custom-control-input:valid ~ .custom-control-label, .custom-control-input.is-valid ~ .custom-control-label { - color: #5eba00; -} - -.was-validated .custom-control-input:valid ~ .custom-control-label::before, .custom-control-input.is-valid ~ .custom-control-label::before { - background-color: #9eff3b; -} - -.was-validated .custom-control-input:valid ~ .valid-feedback, -.was-validated .custom-control-input:valid ~ .valid-tooltip, .custom-control-input.is-valid ~ .valid-feedback, -.custom-control-input.is-valid ~ .valid-tooltip { - display: block; -} - -.was-validated .custom-control-input:valid:checked ~ .custom-control-label::before, .custom-control-input.is-valid:checked ~ .custom-control-label::before { - background-color: #78ed00; -} - -.was-validated .custom-control-input:valid:focus ~ .custom-control-label::before, .custom-control-input.is-valid:focus ~ .custom-control-label::before { - box-shadow: 0 0 0 1px #f5f7fb, 0 0 0 2px rgba(94, 186, 0, 0.25); -} - -.was-validated .custom-file-input:valid ~ .custom-file-label, .custom-file-input.is-valid ~ .custom-file-label { - border-color: #5eba00; -} - -.was-validated .custom-file-input:valid ~ .custom-file-label::before, .custom-file-input.is-valid ~ .custom-file-label::before { - border-color: inherit; -} - -.was-validated .custom-file-input:valid ~ .valid-feedback, -.was-validated .custom-file-input:valid ~ .valid-tooltip, .custom-file-input.is-valid ~ .valid-feedback, -.custom-file-input.is-valid ~ .valid-tooltip { - display: block; -} - -.was-validated .custom-file-input:valid:focus ~ .custom-file-label, .custom-file-input.is-valid:focus ~ .custom-file-label { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.25); -} - -.invalid-feedback { - display: none; - width: 100%; - margin-top: 0.25rem; - font-size: 87.5%; - color: #cd201f; -} - -.invalid-tooltip { - position: absolute; - top: 100%; - z-index: 5; - display: none; - max-width: 100%; - padding: .5rem; - margin-top: .1rem; - font-size: .875rem; - line-height: 1; - color: #fff; - background-color: rgba(205, 32, 31, 0.8); - border-radius: .2rem; -} - -.was-validated .form-control:invalid, .form-control.is-invalid, .was-validated -.custom-select:invalid, -.custom-select.is-invalid { - border-color: #cd201f; -} - -.was-validated .form-control:invalid:focus, .form-control.is-invalid:focus, .was-validated -.custom-select:invalid:focus, -.custom-select.is-invalid:focus { - border-color: #cd201f; - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.25); -} - -.was-validated .form-control:invalid ~ .invalid-feedback, -.was-validated .form-control:invalid ~ .invalid-tooltip, .form-control.is-invalid ~ .invalid-feedback, -.form-control.is-invalid ~ .invalid-tooltip, .was-validated -.custom-select:invalid ~ .invalid-feedback, -.was-validated -.custom-select:invalid ~ .invalid-tooltip, -.custom-select.is-invalid ~ .invalid-feedback, -.custom-select.is-invalid ~ .invalid-tooltip { - display: block; -} - -.was-validated .form-check-input:invalid ~ .form-check-label, .form-check-input.is-invalid ~ .form-check-label { - color: #cd201f; -} - -.was-validated .form-check-input:invalid ~ .invalid-feedback, -.was-validated .form-check-input:invalid ~ .invalid-tooltip, .form-check-input.is-invalid ~ .invalid-feedback, -.form-check-input.is-invalid ~ .invalid-tooltip { - display: block; -} - -.was-validated .custom-control-input:invalid ~ .custom-control-label, .custom-control-input.is-invalid ~ .custom-control-label { - color: #cd201f; -} - -.was-validated .custom-control-input:invalid ~ .custom-control-label::before, .custom-control-input.is-invalid ~ .custom-control-label::before { - background-color: #ec8080; -} - -.was-validated .custom-control-input:invalid ~ .invalid-feedback, -.was-validated .custom-control-input:invalid ~ .invalid-tooltip, .custom-control-input.is-invalid ~ .invalid-feedback, -.custom-control-input.is-invalid ~ .invalid-tooltip { - display: block; -} - -.was-validated .custom-control-input:invalid:checked ~ .custom-control-label::before, .custom-control-input.is-invalid:checked ~ .custom-control-label::before { - background-color: #e23e3d; -} - -.was-validated .custom-control-input:invalid:focus ~ .custom-control-label::before, .custom-control-input.is-invalid:focus ~ .custom-control-label::before { - box-shadow: 0 0 0 1px #f5f7fb, 0 0 0 2px rgba(205, 32, 31, 0.25); -} - -.was-validated .custom-file-input:invalid ~ .custom-file-label, .custom-file-input.is-invalid ~ .custom-file-label { - border-color: #cd201f; -} - -.was-validated .custom-file-input:invalid ~ .custom-file-label::before, .custom-file-input.is-invalid ~ .custom-file-label::before { - border-color: inherit; -} - -.was-validated .custom-file-input:invalid ~ .invalid-feedback, -.was-validated .custom-file-input:invalid ~ .invalid-tooltip, .custom-file-input.is-invalid ~ .invalid-feedback, -.custom-file-input.is-invalid ~ .invalid-tooltip { - display: block; -} - -.was-validated .custom-file-input:invalid:focus ~ .custom-file-label, .custom-file-input.is-invalid:focus ~ .custom-file-label { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.25); -} - -.form-inline { - display: -ms-flexbox; - display: flex; - -ms-flex-flow: row wrap; - flex-flow: row wrap; - -ms-flex-align: center; - align-items: center; -} - -.form-inline .form-check { - width: 100%; -} - -@media (min-width: 576px) { - .form-inline label { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - margin-bottom: 0; - } - .form-inline .form-group { - display: -ms-flexbox; - display: flex; - -ms-flex: 0 0 auto; - flex: 0 0 auto; - -ms-flex-flow: row wrap; - flex-flow: row wrap; - -ms-flex-align: center; - align-items: center; - margin-bottom: 0; - } - .form-inline .form-control { - display: inline-block; - width: auto; - vertical-align: middle; - } - .form-inline .form-control-plaintext { - display: inline-block; - } - .form-inline .input-group, - .form-inline .custom-select { - width: auto; - } - .form-inline .form-check { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - width: auto; - padding-right: 0; - } - .form-inline .form-check-input { - position: relative; - margin-top: 0; - margin-left: 0.25rem; - margin-right: 0; - } - .form-inline .custom-control { - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - } - .form-inline .custom-control-label { - margin-bottom: 0; - } -} - -.btn { - display: inline-block; - font-weight: 400; - text-align: center; - white-space: nowrap; - vertical-align: middle; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - border: 1px solid transparent; - padding: 0.375rem 0.75rem; - font-size: 0.9375rem; - line-height: 1.84615385; - border-radius: 3px; - transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; -} - -@media screen and (prefers-reduced-motion: reduce) { - .btn { - transition: none; - } -} - -.btn:hover, .btn:focus { - text-decoration: none; -} - -.btn:focus, .btn.focus { - outline: 0; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.btn.disabled, .btn:disabled { - opacity: 0.65; -} - -.btn:not(:disabled):not(.disabled) { - cursor: pointer; -} - -.btn:not(:disabled):not(.disabled):active, .btn:not(:disabled):not(.disabled).active { - background-image: none; -} - -a.btn.disabled, -fieldset:disabled a.btn { - pointer-events: none; -} - -.btn-primary { - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.btn-primary:hover { - color: #fff; - background-color: #316cbe; - border-color: #2f66b3; -} - -.btn-primary:focus, .btn-primary.focus { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.5); -} - -.btn-primary.disabled, .btn-primary:disabled { - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active, -.show > .btn-primary.dropdown-toggle { - color: #fff; - background-color: #2f66b3; - border-color: #2c60a9; -} - -.btn-primary:not(:disabled):not(.disabled):active:focus, .btn-primary:not(:disabled):not(.disabled).active:focus, -.show > .btn-primary.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.5); -} - -.btn-secondary { - color: #fff; - background-color: #868e96; - border-color: #868e96; -} - -.btn-secondary:hover { - color: #fff; - background-color: #727b84; - border-color: #6c757d; -} - -.btn-secondary:focus, .btn-secondary.focus { - box-shadow: 0 0 0 2px rgba(134, 142, 150, 0.5); -} - -.btn-secondary.disabled, .btn-secondary:disabled { - color: #fff; - background-color: #868e96; - border-color: #868e96; -} - -.btn-secondary:not(:disabled):not(.disabled):active, .btn-secondary:not(:disabled):not(.disabled).active, -.show > .btn-secondary.dropdown-toggle { - color: #fff; - background-color: #6c757d; - border-color: #666e76; -} - -.btn-secondary:not(:disabled):not(.disabled):active:focus, .btn-secondary:not(:disabled):not(.disabled).active:focus, -.show > .btn-secondary.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(134, 142, 150, 0.5); -} - -.btn-success { - color: #fff; - background-color: #5eba00; - border-color: #5eba00; -} - -.btn-success:hover { - color: #fff; - background-color: #4b9400; - border-color: #448700; -} - -.btn-success:focus, .btn-success.focus { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.5); -} - -.btn-success.disabled, .btn-success:disabled { - color: #fff; - background-color: #5eba00; - border-color: #5eba00; -} - -.btn-success:not(:disabled):not(.disabled):active, .btn-success:not(:disabled):not(.disabled).active, -.show > .btn-success.dropdown-toggle { - color: #fff; - background-color: #448700; - border-color: #3e7a00; -} - -.btn-success:not(:disabled):not(.disabled):active:focus, .btn-success:not(:disabled):not(.disabled).active:focus, -.show > .btn-success.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.5); -} - -.btn-info { - color: #fff; - background-color: #45aaf2; - border-color: #45aaf2; -} - -.btn-info:hover { - color: #fff; - background-color: #219af0; - border-color: #1594ef; -} - -.btn-info:focus, .btn-info.focus { - box-shadow: 0 0 0 2px rgba(69, 170, 242, 0.5); -} - -.btn-info.disabled, .btn-info:disabled { - color: #fff; - background-color: #45aaf2; - border-color: #45aaf2; -} - -.btn-info:not(:disabled):not(.disabled):active, .btn-info:not(:disabled):not(.disabled).active, -.show > .btn-info.dropdown-toggle { - color: #fff; - background-color: #1594ef; - border-color: #108ee7; -} - -.btn-info:not(:disabled):not(.disabled):active:focus, .btn-info:not(:disabled):not(.disabled).active:focus, -.show > .btn-info.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(69, 170, 242, 0.5); -} - -.btn-warning { - color: #fff; - background-color: #f1c40f; - border-color: #f1c40f; -} - -.btn-warning:hover { - color: #fff; - background-color: #cea70c; - border-color: #c29d0b; -} - -.btn-warning:focus, .btn-warning.focus { - box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.5); -} - -.btn-warning.disabled, .btn-warning:disabled { - color: #fff; - background-color: #f1c40f; - border-color: #f1c40f; -} - -.btn-warning:not(:disabled):not(.disabled):active, .btn-warning:not(:disabled):not(.disabled).active, -.show > .btn-warning.dropdown-toggle { - color: #fff; - background-color: #c29d0b; - border-color: #b6940b; -} - -.btn-warning:not(:disabled):not(.disabled):active:focus, .btn-warning:not(:disabled):not(.disabled).active:focus, -.show > .btn-warning.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.5); -} - -.btn-danger { - color: #fff; - background-color: #cd201f; - border-color: #cd201f; -} - -.btn-danger:hover { - color: #fff; - background-color: #ac1b1a; - border-color: #a11918; -} - -.btn-danger:focus, .btn-danger.focus { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.5); -} - -.btn-danger.disabled, .btn-danger:disabled { - color: #fff; - background-color: #cd201f; - border-color: #cd201f; -} - -.btn-danger:not(:disabled):not(.disabled):active, .btn-danger:not(:disabled):not(.disabled).active, -.show > .btn-danger.dropdown-toggle { - color: #fff; - background-color: #a11918; - border-color: #961717; -} - -.btn-danger:not(:disabled):not(.disabled):active:focus, .btn-danger:not(:disabled):not(.disabled).active:focus, -.show > .btn-danger.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.5); -} - -.btn-light { - color: #495057; - background-color: #f8f9fa; - border-color: #f8f9fa; -} - -.btn-light:hover { - color: #495057; - background-color: #e2e6ea; - border-color: #dae0e5; -} - -.btn-light:focus, .btn-light.focus { - box-shadow: 0 0 0 2px rgba(248, 249, 250, 0.5); -} - -.btn-light.disabled, .btn-light:disabled { - color: #495057; - background-color: #f8f9fa; - border-color: #f8f9fa; -} - -.btn-light:not(:disabled):not(.disabled):active, .btn-light:not(:disabled):not(.disabled).active, -.show > .btn-light.dropdown-toggle { - color: #495057; - background-color: #dae0e5; - border-color: #d3d9df; -} - -.btn-light:not(:disabled):not(.disabled):active:focus, .btn-light:not(:disabled):not(.disabled).active:focus, -.show > .btn-light.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(248, 249, 250, 0.5); -} - -.btn-dark { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} - -.btn-dark:hover { - color: #fff; - background-color: #23272b; - border-color: #1d2124; -} - -.btn-dark:focus, .btn-dark.focus { - box-shadow: 0 0 0 2px rgba(52, 58, 64, 0.5); -} - -.btn-dark.disabled, .btn-dark:disabled { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} - -.btn-dark:not(:disabled):not(.disabled):active, .btn-dark:not(:disabled):not(.disabled).active, -.show > .btn-dark.dropdown-toggle { - color: #fff; - background-color: #1d2124; - border-color: #171a1d; -} - -.btn-dark:not(:disabled):not(.disabled):active:focus, .btn-dark:not(:disabled):not(.disabled).active:focus, -.show > .btn-dark.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(52, 58, 64, 0.5); -} - -.btn-outline-primary { - color: #467fcf; - background-color: transparent; - background-image: none; - border-color: #467fcf; -} - -.btn-outline-primary:hover { - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.btn-outline-primary:focus, .btn-outline-primary.focus { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.5); -} - -.btn-outline-primary.disabled, .btn-outline-primary:disabled { - color: #467fcf; - background-color: transparent; -} - -.btn-outline-primary:not(:disabled):not(.disabled):active, .btn-outline-primary:not(:disabled):not(.disabled).active, -.show > .btn-outline-primary.dropdown-toggle { - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.btn-outline-primary:not(:disabled):not(.disabled):active:focus, .btn-outline-primary:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-primary.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.5); -} - -.btn-outline-secondary { - color: #868e96; - background-color: transparent; - background-image: none; - border-color: #868e96; -} - -.btn-outline-secondary:hover { - color: #fff; - background-color: #868e96; - border-color: #868e96; -} - -.btn-outline-secondary:focus, .btn-outline-secondary.focus { - box-shadow: 0 0 0 2px rgba(134, 142, 150, 0.5); -} - -.btn-outline-secondary.disabled, .btn-outline-secondary:disabled { - color: #868e96; - background-color: transparent; -} - -.btn-outline-secondary:not(:disabled):not(.disabled):active, .btn-outline-secondary:not(:disabled):not(.disabled).active, -.show > .btn-outline-secondary.dropdown-toggle { - color: #fff; - background-color: #868e96; - border-color: #868e96; -} - -.btn-outline-secondary:not(:disabled):not(.disabled):active:focus, .btn-outline-secondary:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-secondary.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(134, 142, 150, 0.5); -} - -.btn-outline-success { - color: #5eba00; - background-color: transparent; - background-image: none; - border-color: #5eba00; -} - -.btn-outline-success:hover { - color: #fff; - background-color: #5eba00; - border-color: #5eba00; -} - -.btn-outline-success:focus, .btn-outline-success.focus { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.5); -} - -.btn-outline-success.disabled, .btn-outline-success:disabled { - color: #5eba00; - background-color: transparent; -} - -.btn-outline-success:not(:disabled):not(.disabled):active, .btn-outline-success:not(:disabled):not(.disabled).active, -.show > .btn-outline-success.dropdown-toggle { - color: #fff; - background-color: #5eba00; - border-color: #5eba00; -} - -.btn-outline-success:not(:disabled):not(.disabled):active:focus, .btn-outline-success:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-success.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.5); -} - -.btn-outline-info { - color: #45aaf2; - background-color: transparent; - background-image: none; - border-color: #45aaf2; -} - -.btn-outline-info:hover { - color: #fff; - background-color: #45aaf2; - border-color: #45aaf2; -} - -.btn-outline-info:focus, .btn-outline-info.focus { - box-shadow: 0 0 0 2px rgba(69, 170, 242, 0.5); -} - -.btn-outline-info.disabled, .btn-outline-info:disabled { - color: #45aaf2; - background-color: transparent; -} - -.btn-outline-info:not(:disabled):not(.disabled):active, .btn-outline-info:not(:disabled):not(.disabled).active, -.show > .btn-outline-info.dropdown-toggle { - color: #fff; - background-color: #45aaf2; - border-color: #45aaf2; -} - -.btn-outline-info:not(:disabled):not(.disabled):active:focus, .btn-outline-info:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-info.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(69, 170, 242, 0.5); -} - -.btn-outline-warning { - color: #f1c40f; - background-color: transparent; - background-image: none; - border-color: #f1c40f; -} - -.btn-outline-warning:hover { - color: #fff; - background-color: #f1c40f; - border-color: #f1c40f; -} - -.btn-outline-warning:focus, .btn-outline-warning.focus { - box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.5); -} - -.btn-outline-warning.disabled, .btn-outline-warning:disabled { - color: #f1c40f; - background-color: transparent; -} - -.btn-outline-warning:not(:disabled):not(.disabled):active, .btn-outline-warning:not(:disabled):not(.disabled).active, -.show > .btn-outline-warning.dropdown-toggle { - color: #fff; - background-color: #f1c40f; - border-color: #f1c40f; -} - -.btn-outline-warning:not(:disabled):not(.disabled):active:focus, .btn-outline-warning:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-warning.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.5); -} - -.btn-outline-danger { - color: #cd201f; - background-color: transparent; - background-image: none; - border-color: #cd201f; -} - -.btn-outline-danger:hover { - color: #fff; - background-color: #cd201f; - border-color: #cd201f; -} - -.btn-outline-danger:focus, .btn-outline-danger.focus { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.5); -} - -.btn-outline-danger.disabled, .btn-outline-danger:disabled { - color: #cd201f; - background-color: transparent; -} - -.btn-outline-danger:not(:disabled):not(.disabled):active, .btn-outline-danger:not(:disabled):not(.disabled).active, -.show > .btn-outline-danger.dropdown-toggle { - color: #fff; - background-color: #cd201f; - border-color: #cd201f; -} - -.btn-outline-danger:not(:disabled):not(.disabled):active:focus, .btn-outline-danger:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-danger.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.5); -} - -.btn-outline-light { - color: #f8f9fa; - background-color: transparent; - background-image: none; - border-color: #f8f9fa; -} - -.btn-outline-light:hover { - color: #495057; - background-color: #f8f9fa; - border-color: #f8f9fa; -} - -.btn-outline-light:focus, .btn-outline-light.focus { - box-shadow: 0 0 0 2px rgba(248, 249, 250, 0.5); -} - -.btn-outline-light.disabled, .btn-outline-light:disabled { - color: #f8f9fa; - background-color: transparent; -} - -.btn-outline-light:not(:disabled):not(.disabled):active, .btn-outline-light:not(:disabled):not(.disabled).active, -.show > .btn-outline-light.dropdown-toggle { - color: #495057; - background-color: #f8f9fa; - border-color: #f8f9fa; -} - -.btn-outline-light:not(:disabled):not(.disabled):active:focus, .btn-outline-light:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-light.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(248, 249, 250, 0.5); -} - -.btn-outline-dark { - color: #343a40; - background-color: transparent; - background-image: none; - border-color: #343a40; -} - -.btn-outline-dark:hover { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} - -.btn-outline-dark:focus, .btn-outline-dark.focus { - box-shadow: 0 0 0 2px rgba(52, 58, 64, 0.5); -} - -.btn-outline-dark.disabled, .btn-outline-dark:disabled { - color: #343a40; - background-color: transparent; -} - -.btn-outline-dark:not(:disabled):not(.disabled):active, .btn-outline-dark:not(:disabled):not(.disabled).active, -.show > .btn-outline-dark.dropdown-toggle { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} - -.btn-outline-dark:not(:disabled):not(.disabled):active:focus, .btn-outline-dark:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-dark.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(52, 58, 64, 0.5); -} - -.btn-link { - font-weight: 400; - color: #467fcf; - background-color: transparent; -} - -.btn-link:hover { - color: #295a9f; - text-decoration: underline; - background-color: transparent; - border-color: transparent; -} - -.btn-link:focus, .btn-link.focus { - text-decoration: underline; - border-color: transparent; - box-shadow: none; -} - -.btn-link:disabled, .btn-link.disabled { - color: #868e96; - pointer-events: none; -} - -.btn-lg, .btn-group-lg > .btn { - padding: 0.5rem 1rem; - font-size: 1.125rem; - line-height: 1.625; - border-radius: 3px; -} - -.btn-sm, .btn-group-sm > .btn { - padding: 0.25rem 0.5rem; - font-size: 0.875rem; - line-height: 1.33333333; - border-radius: 3px; -} - -.btn-block { - display: block; - width: 100%; -} - -.btn-block + .btn-block { - margin-top: 0.5rem; -} - -input[type="submit"].btn-block, -input[type="reset"].btn-block, -input[type="button"].btn-block { - width: 100%; -} - -.fade { - transition: opacity 0.15s linear; -} - -@media screen and (prefers-reduced-motion: reduce) { - .fade { - transition: none; - } -} - -.fade:not(.show) { - opacity: 0; -} - -.collapse:not(.show) { - display: none; -} - -.collapsing { - position: relative; - height: 0; - overflow: hidden; - transition: height 0.35s ease; -} - -@media screen and (prefers-reduced-motion: reduce) { - .collapsing { - transition: none; - } -} - -.dropup, -.dropright, -.dropdown, -.dropleft { - position: relative; -} - -.dropdown-toggle::after { - display: inline-block; - width: 0; - height: 0; - margin-right: 0.255em; - vertical-align: 0.255em; - content: ""; - border-top: 0.3em solid; - border-left: 0.3em solid transparent; - border-bottom: 0; - border-right: 0.3em solid transparent; -} - -.dropdown-toggle:empty::after { - margin-right: 0; -} - -.dropdown-menu { - position: absolute; - top: 100%; - right: 0; - z-index: 1000; - display: none; - float: right; - min-width: 10rem; - padding: 0.5rem 0; - margin: 0.125rem 0 0; - font-size: 0.9375rem; - color: #495057; - text-align: right; - list-style: none; - background-color: #fff; - background-clip: padding-box; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; -} - -.dropdown-menu-right { - left: 0; - right: auto; -} - -.dropup .dropdown-menu { - top: auto; - bottom: 100%; - margin-top: 0; - margin-bottom: 0.125rem; -} - -.dropup .dropdown-toggle::after { - display: inline-block; - width: 0; - height: 0; - margin-right: 0.255em; - vertical-align: 0.255em; - content: ""; - border-top: 0; - border-left: 0.3em solid transparent; - border-bottom: 0.3em solid; - border-right: 0.3em solid transparent; -} - -.dropup .dropdown-toggle:empty::after { - margin-right: 0; -} - -.dropright .dropdown-menu { - top: 0; - left: auto; - right: 100%; - margin-top: 0; - margin-right: 0.125rem; -} - -.dropright .dropdown-toggle::after { - display: inline-block; - width: 0; - height: 0; - margin-right: 0.255em; - vertical-align: 0.255em; - content: ""; - border-top: 0.3em solid transparent; - border-left: 0; - border-bottom: 0.3em solid transparent; - border-right: 0.3em solid; -} - -.dropright .dropdown-toggle:empty::after { - margin-right: 0; -} - -.dropright .dropdown-toggle::after { - vertical-align: 0; -} - -.dropleft .dropdown-menu { - top: 0; - left: 100%; - right: auto; - margin-top: 0; - margin-left: 0.125rem; -} - -.dropleft .dropdown-toggle::after { - display: inline-block; - width: 0; - height: 0; - margin-right: 0.255em; - vertical-align: 0.255em; - content: ""; -} - -.dropleft .dropdown-toggle::after { - display: none; -} - -.dropleft .dropdown-toggle::before { - display: inline-block; - width: 0; - height: 0; - margin-left: 0.255em; - vertical-align: 0.255em; - content: ""; - border-top: 0.3em solid transparent; - border-left: 0.3em solid; - border-bottom: 0.3em solid transparent; -} - -.dropleft .dropdown-toggle:empty::after { - margin-right: 0; -} - -.dropleft .dropdown-toggle::before { - vertical-align: 0; -} - -.dropdown-menu[x-placement^="top"], .dropdown-menu[x-placement^="right"], .dropdown-menu[x-placement^="bottom"], .dropdown-menu[x-placement^="left"] { - left: auto; - bottom: auto; -} - -.dropdown-divider { - height: 0; - margin: 0.5rem 0; - overflow: hidden; - border-top: 1px solid #e9ecef; -} - -.dropdown-item { - display: block; - width: 100%; - padding: 0.25rem 1.5rem; - clear: both; - font-weight: 400; - color: #212529; - text-align: inherit; - white-space: nowrap; - background-color: transparent; - border: 0; -} - -.dropdown-item:hover, .dropdown-item:focus { - color: #16181b; - text-decoration: none; - background-color: #f8f9fa; -} - -.dropdown-item.active, .dropdown-item:active { - color: #fff; - text-decoration: none; - background-color: #467fcf; -} - -.dropdown-item.disabled, .dropdown-item:disabled { - color: #868e96; - background-color: transparent; -} - -.dropdown-menu.show { - display: block; -} - -.dropdown-header { - display: block; - padding: 0.5rem 1.5rem; - margin-bottom: 0; - font-size: 0.875rem; - color: #868e96; - white-space: nowrap; -} - -.dropdown-item-text { - display: block; - padding: 0.25rem 1.5rem; - color: #212529; -} - -.btn-group, -.btn-group-vertical { - position: relative; - display: -ms-inline-flexbox; - display: inline-flex; - vertical-align: middle; -} - -.btn-group > .btn, -.btn-group-vertical > .btn { - position: relative; - -ms-flex: 0 1 auto; - flex: 0 1 auto; -} - -.btn-group > .btn:hover, -.btn-group-vertical > .btn:hover { - z-index: 1; -} - -.btn-group > .btn:focus, .btn-group > .btn:active, .btn-group > .btn.active, -.btn-group-vertical > .btn:focus, -.btn-group-vertical > .btn:active, -.btn-group-vertical > .btn.active { - z-index: 1; -} - -.btn-group .btn + .btn, -.btn-group .btn + .btn-group, -.btn-group .btn-group + .btn, -.btn-group .btn-group + .btn-group, -.btn-group-vertical .btn + .btn, -.btn-group-vertical .btn + .btn-group, -.btn-group-vertical .btn-group + .btn, -.btn-group-vertical .btn-group + .btn-group { - margin-right: -1px; -} - -.btn-toolbar { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -ms-flex-pack: start; - justify-content: flex-start; -} - -.btn-toolbar .input-group { - width: auto; -} - -.btn-group > .btn:first-child { - margin-right: 0; -} - -.btn-group > .btn:not(:last-child):not(.dropdown-toggle), -.btn-group > .btn-group:not(:last-child) > .btn { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} - -.btn-group > .btn:not(:first-child), -.btn-group > .btn-group:not(:first-child) > .btn { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} - -.dropdown-toggle-split { - padding-left: 0.5625rem; - padding-right: 0.5625rem; -} - -.dropdown-toggle-split::after, -.dropup .dropdown-toggle-split::after, -.dropright .dropdown-toggle-split::after { - margin-right: 0; -} - -.dropleft .dropdown-toggle-split::before { - margin-left: 0; -} - -.btn-sm + .dropdown-toggle-split, .btn-group-sm > .btn + .dropdown-toggle-split { - padding-left: 0.375rem; - padding-right: 0.375rem; -} - -.btn-lg + .dropdown-toggle-split, .btn-group-lg > .btn + .dropdown-toggle-split { - padding-left: 0.75rem; - padding-right: 0.75rem; -} - -.btn-group-vertical { - -ms-flex-direction: column; - flex-direction: column; - -ms-flex-align: start; - align-items: flex-start; - -ms-flex-pack: center; - justify-content: center; -} - -.btn-group-vertical .btn, -.btn-group-vertical .btn-group { - width: 100%; -} - -.btn-group-vertical > .btn + .btn, -.btn-group-vertical > .btn + .btn-group, -.btn-group-vertical > .btn-group + .btn, -.btn-group-vertical > .btn-group + .btn-group { - margin-top: -1px; - margin-right: 0; -} - -.btn-group-vertical > .btn:not(:last-child):not(.dropdown-toggle), -.btn-group-vertical > .btn-group:not(:last-child) > .btn { - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; -} - -.btn-group-vertical > .btn:not(:first-child), -.btn-group-vertical > .btn-group:not(:first-child) > .btn { - border-top-right-radius: 0; - border-top-left-radius: 0; -} - -.btn-group-toggle > .btn, -.btn-group-toggle > .btn-group > .btn { - margin-bottom: 0; -} - -.btn-group-toggle > .btn input[type="radio"], -.btn-group-toggle > .btn input[type="checkbox"], -.btn-group-toggle > .btn-group > .btn input[type="radio"], -.btn-group-toggle > .btn-group > .btn input[type="checkbox"] { - position: absolute; - clip: rect(0, 0, 0, 0); - pointer-events: none; -} - -.input-group { - position: relative; - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -ms-flex-align: stretch; - align-items: stretch; - width: 100%; -} - -.input-group > .form-control, -.input-group > .custom-select, -.input-group > .custom-file { - position: relative; - -ms-flex: 1 1 auto; - flex: 1 1 auto; - width: 1%; - margin-bottom: 0; -} - -.input-group > .form-control:focus, -.input-group > .custom-select:focus, -.input-group > .custom-file:focus { - z-index: 3; -} - -.input-group > .form-control + .form-control, -.input-group > .form-control + .custom-select, -.input-group > .form-control + .custom-file, -.input-group > .custom-select + .form-control, -.input-group > .custom-select + .custom-select, -.input-group > .custom-select + .custom-file, -.input-group > .custom-file + .form-control, -.input-group > .custom-file + .custom-select, -.input-group > .custom-file + .custom-file { - margin-right: -1px; -} - -.input-group > .form-control:not(:last-child), -.input-group > .custom-select:not(:last-child) { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} - -.input-group > .form-control:not(:first-child), -.input-group > .custom-select:not(:first-child) { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} - -.input-group > .custom-file { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; -} - -.input-group > .custom-file:not(:last-child) .custom-file-label, -.input-group > .custom-file:not(:last-child) .custom-file-label::after { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} - -.input-group > .custom-file:not(:first-child) .custom-file-label, -.input-group > .custom-file:not(:first-child) .custom-file-label::after { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} - -.input-group-prepend, -.input-group-append { - display: -ms-flexbox; - display: flex; -} - -.input-group-prepend .btn, -.input-group-append .btn { - position: relative; - z-index: 2; -} - -.input-group-prepend .btn + .btn, -.input-group-prepend .btn + .input-group-text, -.input-group-prepend .input-group-text + .input-group-text, -.input-group-prepend .input-group-text + .btn, -.input-group-append .btn + .btn, -.input-group-append .btn + .input-group-text, -.input-group-append .input-group-text + .input-group-text, -.input-group-append .input-group-text + .btn { - margin-right: -1px; -} - -.input-group-prepend { - margin-left: -1px; -} - -.input-group-append { - margin-right: -1px; -} - -.input-group-text { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - padding: 0.375rem 0.75rem; - margin-bottom: 0; - font-size: 0.9375rem; - font-weight: 400; - line-height: 1.6; - color: #495057; - text-align: center; - white-space: nowrap; - background-color: #fbfbfc; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; -} - -.input-group-text input[type="radio"], -.input-group-text input[type="checkbox"] { - margin-top: 0; -} - -.input-group > .input-group-prepend > .btn, -.input-group > .input-group-prepend > .input-group-text, -.input-group > .input-group-append:not(:last-child) > .btn, -.input-group > .input-group-append:not(:last-child) > .input-group-text, -.input-group > .input-group-append:last-child > .btn:not(:last-child):not(.dropdown-toggle), -.input-group > .input-group-append:last-child > .input-group-text:not(:last-child) { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} - -.input-group > .input-group-append > .btn, -.input-group > .input-group-append > .input-group-text, -.input-group > .input-group-prepend:not(:first-child) > .btn, -.input-group > .input-group-prepend:not(:first-child) > .input-group-text, -.input-group > .input-group-prepend:first-child > .btn:not(:first-child), -.input-group > .input-group-prepend:first-child > .input-group-text:not(:first-child) { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} - -.custom-control { - position: relative; - display: block; - min-height: 1.5rem; - padding-right: 1.5rem; -} - -.custom-control-inline { - display: -ms-inline-flexbox; - display: inline-flex; - margin-left: 1rem; -} - -.custom-control-input { - position: absolute; - z-index: -1; - opacity: 0; -} - -.custom-control-input:checked ~ .custom-control-label::before { - color: #fff; - background-color: #467fcf; -} - -.custom-control-input:focus ~ .custom-control-label::before { - box-shadow: 0 0 0 1px #f5f7fb, 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.custom-control-input:active ~ .custom-control-label::before { - color: #fff; - background-color: #d4e1f4; -} - -.custom-control-input:disabled ~ .custom-control-label { - color: #868e96; -} - -.custom-control-input:disabled ~ .custom-control-label::before { - background-color: #e9ecef; -} - -.custom-control-label { - margin-bottom: 0; -} - -.custom-control-label::before { - position: absolute; - top: 0.25rem; - right: 0; - display: block; - width: 1rem; - height: 1rem; - pointer-events: none; - content: ""; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - background-color: #dee2e6; -} - -.custom-control-label::after { - position: absolute; - top: 0.25rem; - right: 0; - display: block; - width: 1rem; - height: 1rem; - content: ""; - background-repeat: no-repeat; - background-position: center center; - background-size: 50% 50%; -} - -.custom-checkbox .custom-control-label::before { - border-radius: 3px; -} - -.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before { - background-color: #467fcf; -} - -.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E"); -} - -.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before { - background-color: #467fcf; -} - -.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::after { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3E%3Cpath stroke='%23fff' d='M0 2h4'/%3E%3C/svg%3E"); -} - -.custom-checkbox .custom-control-input:disabled:checked ~ .custom-control-label::before { - background-color: rgba(70, 127, 207, 0.5); -} - -.custom-checkbox .custom-control-input:disabled:indeterminate ~ .custom-control-label::before { - background-color: rgba(70, 127, 207, 0.5); -} - -.custom-radio .custom-control-label::before { - border-radius: 50%; -} - -.custom-radio .custom-control-input:checked ~ .custom-control-label::before { - background-color: #467fcf; -} - -.custom-radio .custom-control-input:checked ~ .custom-control-label::after { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E"); -} - -.custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before { - background-color: rgba(70, 127, 207, 0.5); -} - -.custom-select { - display: inline-block; - width: 100%; - height: 2.375rem; - padding: 0.5rem 0.75rem 0.5rem 1.75rem; - line-height: 1.5; - color: #495057; - vertical-align: middle; - background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 5'%3E%3Cpath fill='#999' d='M0 0L10 0L5 5L0 0'/%3E%3C/svg%3E") no-repeat left 0.75rem center; - background-size: 8px 10px; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; -} - -.custom-select:focus { - border-color: #1991eb; - outline: 0; - box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075), 0 0 5px rgba(25, 145, 235, 0.5); -} - -.custom-select:focus::-ms-value { - color: #495057; - background-color: #fff; -} - -.custom-select[multiple], .custom-select[size]:not([size="1"]) { - height: auto; - padding-left: 0.75rem; - background-image: none; -} - -.custom-select:disabled { - color: #868e96; - background-color: #e9ecef; -} - -.custom-select::-ms-expand { - opacity: 0; -} - -.custom-select-sm { - height: calc(1.8125rem + 2px); - padding-top: 0.5rem; - padding-bottom: 0.5rem; - font-size: 75%; -} - -.custom-select-lg { - height: calc(2.6875rem + 2px); - padding-top: 0.5rem; - padding-bottom: 0.5rem; - font-size: 125%; -} - -.custom-file { - position: relative; - display: inline-block; - width: 100%; - height: 2.375rem; - margin-bottom: 0; -} - -.custom-file-input { - position: relative; - z-index: 2; - width: 100%; - height: 2.375rem; - margin: 0; - opacity: 0; -} - -.custom-file-input:focus ~ .custom-file-label { - border-color: #1991eb; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.custom-file-input:focus ~ .custom-file-label::after { - border-color: #1991eb; -} - -.custom-file-input:lang(en) ~ .custom-file-label::after { - content: "Browse"; -} - -.custom-file-label { - position: absolute; - top: 0; - left: 0; - right: 0; - z-index: 1; - height: 2.375rem; - padding: 0.375rem 0.75rem; - line-height: 1.5; - color: #495057; - background-color: #fff; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; -} - -.custom-file-label::after { - position: absolute; - top: 0; - left: 0; - bottom: 0; - z-index: 3; - display: block; - height: calc(2.375rem - 1px * 2); - padding: 0.375rem 0.75rem; - line-height: 1.5; - color: #495057; - content: "Browse"; - background-color: #fbfbfc; - border-right: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px 0 0 3px; -} - -.custom-range { - width: 100%; - padding-right: 0; - background-color: transparent; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; -} - -.custom-range:focus { - outline: none; -} - -.custom-range::-moz-focus-outer { - border: 0; -} - -.custom-range::-webkit-slider-thumb { - width: 1rem; - height: 1rem; - margin-top: -0.25rem; - background-color: #467fcf; - border: 0; - border-radius: 1rem; - -webkit-appearance: none; - appearance: none; -} - -.custom-range::-webkit-slider-thumb:focus { - outline: none; - box-shadow: 0 0 0 1px #f5f7fb, 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.custom-range::-webkit-slider-thumb:active { - background-color: #d4e1f4; -} - -.custom-range::-webkit-slider-runnable-track { - width: 100%; - height: 0.5rem; - color: transparent; - cursor: pointer; - background-color: #dee2e6; - border-color: transparent; - border-radius: 1rem; -} - -.custom-range::-moz-range-thumb { - width: 1rem; - height: 1rem; - background-color: #467fcf; - border: 0; - border-radius: 1rem; - -moz-appearance: none; - appearance: none; -} - -.custom-range::-moz-range-thumb:focus { - outline: none; - box-shadow: 0 0 0 1px #f5f7fb, 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.custom-range::-moz-range-thumb:active { - background-color: #d4e1f4; -} - -.custom-range::-moz-range-track { - width: 100%; - height: 0.5rem; - color: transparent; - cursor: pointer; - background-color: #dee2e6; - border-color: transparent; - border-radius: 1rem; -} - -.custom-range::-ms-thumb { - width: 1rem; - height: 1rem; - background-color: #467fcf; - border: 0; - border-radius: 1rem; - appearance: none; -} - -.custom-range::-ms-thumb:focus { - outline: none; - box-shadow: 0 0 0 1px #f5f7fb, 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.custom-range::-ms-thumb:active { - background-color: #d4e1f4; -} - -.custom-range::-ms-track { - width: 100%; - height: 0.5rem; - color: transparent; - cursor: pointer; - background-color: transparent; - border-color: transparent; - border-width: 0.5rem; -} - -.custom-range::-ms-fill-lower { - background-color: #dee2e6; - border-radius: 1rem; -} - -.custom-range::-ms-fill-upper { - margin-left: 15px; - background-color: #dee2e6; - border-radius: 1rem; -} - -.nav { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - padding-right: 0; - margin-bottom: 0; - list-style: none; -} - -.nav-link { - display: block; - padding: 0.5rem 1rem; -} - -.nav-link:hover, .nav-link:focus { - text-decoration: none; -} - -.nav-link.disabled { - color: #868e96; -} - -.nav-tabs { - border-bottom: 1px solid #dee2e6; -} - -.nav-tabs .nav-item { - margin-bottom: -1px; -} - -.nav-tabs .nav-link { - border: 1px solid transparent; - border-top-right-radius: 3px; - border-top-left-radius: 3px; -} - -.nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus { - border-color: #e9ecef #e9ecef #dee2e6; -} - -.nav-tabs .nav-link.disabled { - color: #868e96; - background-color: transparent; - border-color: transparent; -} - -.nav-tabs .nav-link.active, -.nav-tabs .nav-item.show .nav-link { - color: #495057; - background-color: transparent; - border-color: #dee2e6 #dee2e6 transparent; -} - -.nav-tabs .dropdown-menu { - margin-top: -1px; - border-top-right-radius: 0; - border-top-left-radius: 0; -} - -.nav-pills .nav-link { - border-radius: 3px; -} - -.nav-pills .nav-link.active, -.nav-pills .show > .nav-link { - color: #fff; - background-color: #467fcf; -} - -.nav-fill .nav-item { - -ms-flex: 1 1 auto; - flex: 1 1 auto; - text-align: center; -} - -.nav-justified .nav-item { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - text-align: center; -} - -.tab-content > .tab-pane { - display: none; -} - -.tab-content > .active { - display: block; -} - -.navbar { - position: relative; - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: justify; - justify-content: space-between; - padding: 0.5rem 1rem; -} - -.navbar > .container, -.navbar > .container-fluid { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: justify; - justify-content: space-between; -} - -.navbar-brand { - display: inline-block; - padding-top: 0.359375rem; - padding-bottom: 0.359375rem; - margin-left: 1rem; - font-size: 1.125rem; - line-height: inherit; - white-space: nowrap; -} - -.navbar-brand:hover, .navbar-brand:focus { - text-decoration: none; -} - -.navbar-nav { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - padding-right: 0; - margin-bottom: 0; - list-style: none; -} - -.navbar-nav .nav-link { - padding-left: 0; - padding-right: 0; -} - -.navbar-nav .dropdown-menu { - position: static; - float: none; -} - -.navbar-text { - display: inline-block; - padding-top: 0.5rem; - padding-bottom: 0.5rem; -} - -.navbar-collapse { - -ms-flex-preferred-size: 100%; - flex-basis: 100%; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-align: center; - align-items: center; -} - -.navbar-toggler { - padding: 0.25rem 0.75rem; - font-size: 1.125rem; - line-height: 1; - background-color: transparent; - border: 1px solid transparent; - border-radius: 3px; -} - -.navbar-toggler:hover, .navbar-toggler:focus { - text-decoration: none; -} - -.navbar-toggler:not(:disabled):not(.disabled) { - cursor: pointer; -} - -.navbar-toggler-icon { - display: inline-block; - width: 1.5em; - height: 1.5em; - vertical-align: middle; - content: ""; - background: no-repeat center center; - background-size: 100% 100%; -} - -@media (max-width: 575.98px) { - .navbar-expand-sm > .container, - .navbar-expand-sm > .container-fluid { - padding-left: 0; - padding-right: 0; - } -} - -@media (min-width: 576px) { - .navbar-expand-sm { - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -ms-flex-pack: start; - justify-content: flex-start; - } - .navbar-expand-sm .navbar-nav { - -ms-flex-direction: row; - flex-direction: row; - } - .navbar-expand-sm .navbar-nav .dropdown-menu { - position: absolute; - } - .navbar-expand-sm .navbar-nav .nav-link { - padding-left: 0.5rem; - padding-right: 0.5rem; - } - .navbar-expand-sm > .container, - .navbar-expand-sm > .container-fluid { - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - } - .navbar-expand-sm .navbar-collapse { - display: -ms-flexbox !important; - display: flex !important; - -ms-flex-preferred-size: auto; - flex-basis: auto; - } - .navbar-expand-sm .navbar-toggler { - display: none; - } -} - -@media (max-width: 767.98px) { - .navbar-expand-md > .container, - .navbar-expand-md > .container-fluid { - padding-left: 0; - padding-right: 0; - } -} - -@media (min-width: 768px) { - .navbar-expand-md { - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -ms-flex-pack: start; - justify-content: flex-start; - } - .navbar-expand-md .navbar-nav { - -ms-flex-direction: row; - flex-direction: row; - } - .navbar-expand-md .navbar-nav .dropdown-menu { - position: absolute; - } - .navbar-expand-md .navbar-nav .nav-link { - padding-left: 0.5rem; - padding-right: 0.5rem; - } - .navbar-expand-md > .container, - .navbar-expand-md > .container-fluid { - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - } - .navbar-expand-md .navbar-collapse { - display: -ms-flexbox !important; - display: flex !important; - -ms-flex-preferred-size: auto; - flex-basis: auto; - } - .navbar-expand-md .navbar-toggler { - display: none; - } -} - -@media (max-width: 991.98px) { - .navbar-expand-lg > .container, - .navbar-expand-lg > .container-fluid { - padding-left: 0; - padding-right: 0; - } -} - -@media (min-width: 992px) { - .navbar-expand-lg { - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -ms-flex-pack: start; - justify-content: flex-start; - } - .navbar-expand-lg .navbar-nav { - -ms-flex-direction: row; - flex-direction: row; - } - .navbar-expand-lg .navbar-nav .dropdown-menu { - position: absolute; - } - .navbar-expand-lg .navbar-nav .nav-link { - padding-left: 0.5rem; - padding-right: 0.5rem; - } - .navbar-expand-lg > .container, - .navbar-expand-lg > .container-fluid { - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - } - .navbar-expand-lg .navbar-collapse { - display: -ms-flexbox !important; - display: flex !important; - -ms-flex-preferred-size: auto; - flex-basis: auto; - } - .navbar-expand-lg .navbar-toggler { - display: none; - } -} - -@media (max-width: 1279.98px) { - .navbar-expand-xl > .container, - .navbar-expand-xl > .container-fluid { - padding-left: 0; - padding-right: 0; - } -} - -@media (min-width: 1280px) { - .navbar-expand-xl { - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -ms-flex-pack: start; - justify-content: flex-start; - } - .navbar-expand-xl .navbar-nav { - -ms-flex-direction: row; - flex-direction: row; - } - .navbar-expand-xl .navbar-nav .dropdown-menu { - position: absolute; - } - .navbar-expand-xl .navbar-nav .nav-link { - padding-left: 0.5rem; - padding-right: 0.5rem; - } - .navbar-expand-xl > .container, - .navbar-expand-xl > .container-fluid { - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - } - .navbar-expand-xl .navbar-collapse { - display: -ms-flexbox !important; - display: flex !important; - -ms-flex-preferred-size: auto; - flex-basis: auto; - } - .navbar-expand-xl .navbar-toggler { - display: none; - } -} - -.navbar-expand { - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -ms-flex-pack: start; - justify-content: flex-start; -} - -.navbar-expand > .container, -.navbar-expand > .container-fluid { - padding-left: 0; - padding-right: 0; -} - -.navbar-expand .navbar-nav { - -ms-flex-direction: row; - flex-direction: row; -} - -.navbar-expand .navbar-nav .dropdown-menu { - position: absolute; -} - -.navbar-expand .navbar-nav .nav-link { - padding-left: 0.5rem; - padding-right: 0.5rem; -} - -.navbar-expand > .container, -.navbar-expand > .container-fluid { - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; -} - -.navbar-expand .navbar-collapse { - display: -ms-flexbox !important; - display: flex !important; - -ms-flex-preferred-size: auto; - flex-basis: auto; -} - -.navbar-expand .navbar-toggler { - display: none; -} - -.navbar-light .navbar-brand { - color: rgba(0, 0, 0, 0.9); -} - -.navbar-light .navbar-brand:hover, .navbar-light .navbar-brand:focus { - color: rgba(0, 0, 0, 0.9); -} - -.navbar-light .navbar-nav .nav-link { - color: rgba(0, 0, 0, 0.5); -} - -.navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus { - color: rgba(0, 0, 0, 0.7); -} - -.navbar-light .navbar-nav .nav-link.disabled { - color: rgba(0, 0, 0, 0.3); -} - -.navbar-light .navbar-nav .show > .nav-link, -.navbar-light .navbar-nav .active > .nav-link, -.navbar-light .navbar-nav .nav-link.show, -.navbar-light .navbar-nav .nav-link.active { - color: rgba(0, 0, 0, 0.9); -} - -.navbar-light .navbar-toggler { - color: rgba(0, 0, 0, 0.5); - border-color: rgba(0, 0, 0, 0.1); -} - -.navbar-light .navbar-toggler-icon { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); -} - -.navbar-light .navbar-text { - color: rgba(0, 0, 0, 0.5); -} - -.navbar-light .navbar-text a { - color: rgba(0, 0, 0, 0.9); -} - -.navbar-light .navbar-text a:hover, .navbar-light .navbar-text a:focus { - color: rgba(0, 0, 0, 0.9); -} - -.navbar-dark .navbar-brand { - color: #fff; -} - -.navbar-dark .navbar-brand:hover, .navbar-dark .navbar-brand:focus { - color: #fff; -} - -.navbar-dark .navbar-nav .nav-link { - color: rgba(255, 255, 255, 0.5); -} - -.navbar-dark .navbar-nav .nav-link:hover, .navbar-dark .navbar-nav .nav-link:focus { - color: rgba(255, 255, 255, 0.75); -} - -.navbar-dark .navbar-nav .nav-link.disabled { - color: rgba(255, 255, 255, 0.25); -} - -.navbar-dark .navbar-nav .show > .nav-link, -.navbar-dark .navbar-nav .active > .nav-link, -.navbar-dark .navbar-nav .nav-link.show, -.navbar-dark .navbar-nav .nav-link.active { - color: #fff; -} - -.navbar-dark .navbar-toggler { - color: rgba(255, 255, 255, 0.5); - border-color: rgba(255, 255, 255, 0.1); -} - -.navbar-dark .navbar-toggler-icon { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); -} - -.navbar-dark .navbar-text { - color: rgba(255, 255, 255, 0.5); -} - -.navbar-dark .navbar-text a { - color: #fff; -} - -.navbar-dark .navbar-text a:hover, .navbar-dark .navbar-text a:focus { - color: #fff; -} - -.card { - position: relative; - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - min-width: 0; - word-wrap: break-word; - background-color: #fff; - background-clip: border-box; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; -} - -.card > hr { - margin-left: 0; - margin-right: 0; -} - -.card > .list-group:first-child .list-group-item:first-child { - border-top-right-radius: 3px; - border-top-left-radius: 3px; -} - -.card > .list-group:last-child .list-group-item:last-child { - border-bottom-left-radius: 3px; - border-bottom-right-radius: 3px; -} - -.card-body { - -ms-flex: 1 1 auto; - flex: 1 1 auto; - padding: 1.5rem; -} - -.card-title { - margin-bottom: 1.5rem; -} - -.card-subtitle { - margin-top: -0.75rem; - margin-bottom: 0; -} - -.card-text:last-child { - margin-bottom: 0; -} - -.card-link:hover { - text-decoration: none; -} - -.card-link + .card-link { - margin-right: 1.5rem; -} - -.card-header { - padding: 1.5rem 1.5rem; - margin-bottom: 0; - background-color: rgba(0, 0, 0, 0.03); - border-bottom: 1px solid rgba(0, 40, 100, 0.12); -} - -.card-header:first-child { - border-radius: calc(3px - 1px) calc(3px - 1px) 0 0; -} - -.card-header + .list-group .list-group-item:first-child { - border-top: 0; -} - -.card-footer { - padding: 1.5rem 1.5rem; - background-color: rgba(0, 0, 0, 0.03); - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.card-footer:last-child { - border-radius: 0 0 calc(3px - 1px) calc(3px - 1px); -} - -.card-header-tabs { - margin-left: -0.75rem; - margin-bottom: -1.5rem; - margin-right: -0.75rem; - border-bottom: 0; -} - -.card-header-pills { - margin-left: -0.75rem; - margin-right: -0.75rem; -} - -.card-img-overlay { - position: absolute; - top: 0; - left: 0; - bottom: 0; - right: 0; - padding: 1.25rem; -} - -.card-img { - width: 100%; - border-radius: calc(3px - 1px); -} - -.card-img-top { - width: 100%; - border-top-right-radius: calc(3px - 1px); - border-top-left-radius: calc(3px - 1px); -} - -.card-img-bottom { - width: 100%; - border-bottom-left-radius: calc(3px - 1px); - border-bottom-right-radius: calc(3px - 1px); -} - -.card-deck { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; -} - -.card-deck .card { - margin-bottom: 0.75rem; -} - -@media (min-width: 576px) { - .card-deck { - -ms-flex-flow: row wrap; - flex-flow: row wrap; - margin-left: -0.75rem; - margin-right: -0.75rem; - } - .card-deck .card { - display: -ms-flexbox; - display: flex; - -ms-flex: 1 0 0%; - flex: 1 0 0%; - -ms-flex-direction: column; - flex-direction: column; - margin-left: 0.75rem; - margin-bottom: 0; - margin-right: 0.75rem; - } -} - -.card-group { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; -} - -.card-group > .card { - margin-bottom: 0.75rem; -} - -@media (min-width: 576px) { - .card-group { - -ms-flex-flow: row wrap; - flex-flow: row wrap; - } - .card-group > .card { - -ms-flex: 1 0 0%; - flex: 1 0 0%; - margin-bottom: 0; - } - .card-group > .card + .card { - margin-right: 0; - border-right: 0; - } - .card-group > .card:first-child { - border-top-left-radius: 0; - border-bottom-left-radius: 0; - } - .card-group > .card:first-child .card-img-top, - .card-group > .card:first-child .card-header { - border-top-left-radius: 0; - } - .card-group > .card:first-child .card-img-bottom, - .card-group > .card:first-child .card-footer { - border-bottom-left-radius: 0; - } - .card-group > .card:last-child { - border-top-right-radius: 0; - border-bottom-right-radius: 0; - } - .card-group > .card:last-child .card-img-top, - .card-group > .card:last-child .card-header { - border-top-right-radius: 0; - } - .card-group > .card:last-child .card-img-bottom, - .card-group > .card:last-child .card-footer { - border-bottom-right-radius: 0; - } - .card-group > .card:only-child { - border-radius: 3px; - } - .card-group > .card:only-child .card-img-top, - .card-group > .card:only-child .card-header { - border-top-right-radius: 3px; - border-top-left-radius: 3px; - } - .card-group > .card:only-child .card-img-bottom, - .card-group > .card:only-child .card-footer { - border-bottom-left-radius: 3px; - border-bottom-right-radius: 3px; - } - .card-group > .card:not(:first-child):not(:last-child):not(:only-child) { - border-radius: 0; - } - .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-img-top, - .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-img-bottom, - .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-header, - .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-footer { - border-radius: 0; - } -} - -.card-columns .card { - margin-bottom: 1.5rem; -} - -@media (min-width: 576px) { - .card-columns { - -webkit-column-count: 3; - -moz-column-count: 3; - column-count: 3; - -webkit-column-gap: 1.25rem; - -moz-column-gap: 1.25rem; - column-gap: 1.25rem; - orphans: 1; - widows: 1; - } - .card-columns .card { - display: inline-block; - width: 100%; - } -} - -.accordion .card:not(:first-of-type):not(:last-of-type) { - border-bottom: 0; - border-radius: 0; -} - -.accordion .card:not(:first-of-type) .card-header:first-child { - border-radius: 0; -} - -.accordion .card:first-of-type { - border-bottom: 0; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; -} - -.accordion .card:last-of-type { - border-top-right-radius: 0; - border-top-left-radius: 0; -} - -.breadcrumb { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - padding: 0.75rem 1rem; - margin-bottom: 1rem; - list-style: none; - background-color: #e9ecef; - border-radius: 3px; -} - -.breadcrumb-item + .breadcrumb-item { - padding-right: 0.5rem; -} - -.breadcrumb-item + .breadcrumb-item::before { - display: inline-block; - padding-left: 0.5rem; - color: #868e96; - content: "/"; -} - -.breadcrumb-item + .breadcrumb-item:hover::before { - text-decoration: underline; -} - -.breadcrumb-item + .breadcrumb-item:hover::before { - text-decoration: none; -} - -.breadcrumb-item.active { - color: #868e96; -} - -.pagination { - display: -ms-flexbox; - display: flex; - padding-right: 0; - list-style: none; - border-radius: 3px; -} - -.page-link { - position: relative; - display: block; - padding: 0.5rem 0.75rem; - margin-right: -1px; - line-height: 1.25; - color: #495057; - background-color: #fff; - border: 1px solid #dee2e6; -} - -.page-link:hover { - z-index: 2; - color: #295a9f; - text-decoration: none; - background-color: #e9ecef; - border-color: #dee2e6; -} - -.page-link:focus { - z-index: 2; - outline: 0; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.page-link:not(:disabled):not(.disabled) { - cursor: pointer; -} - -.page-item:first-child .page-link { - margin-right: 0; - border-top-right-radius: 3px; - border-bottom-right-radius: 3px; -} - -.page-item:last-child .page-link { - border-top-left-radius: 3px; - border-bottom-left-radius: 3px; -} - -.page-item.active .page-link { - z-index: 1; - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.page-item.disabled .page-link { - color: #ced4da; - pointer-events: none; - cursor: auto; - background-color: #fff; - border-color: #dee2e6; -} - -.pagination-lg .page-link { - padding: 0.75rem 1.5rem; - font-size: 1.125rem; - line-height: 1.5; -} - -.pagination-lg .page-item:first-child .page-link { - border-top-right-radius: 3px; - border-bottom-right-radius: 3px; -} - -.pagination-lg .page-item:last-child .page-link { - border-top-left-radius: 3px; - border-bottom-left-radius: 3px; -} - -.pagination-sm .page-link { - padding: 0.25rem 0.5rem; - font-size: 0.875rem; - line-height: 1.5; -} - -.pagination-sm .page-item:first-child .page-link { - border-top-right-radius: 3px; - border-bottom-right-radius: 3px; -} - -.pagination-sm .page-item:last-child .page-link { - border-top-left-radius: 3px; - border-bottom-left-radius: 3px; -} - -.badge { - display: inline-block; - padding: 0.25em 0.4em; - font-size: 75%; - font-weight: 600; - line-height: 1; - text-align: center; - white-space: nowrap; - vertical-align: baseline; - border-radius: 3px; -} - -.badge:empty { - display: none; -} - -.btn .badge { - position: relative; - top: -1px; -} - -.badge-pill { - padding-left: 0.6em; - padding-right: 0.6em; - border-radius: 10rem; -} - -.badge-primary { - color: #fff; - background-color: #467fcf; -} - -.badge-primary[href]:hover, .badge-primary[href]:focus { - color: #fff; - text-decoration: none; - background-color: #2f66b3; -} - -.badge-secondary { - color: #fff; - background-color: #868e96; -} - -.badge-secondary[href]:hover, .badge-secondary[href]:focus { - color: #fff; - text-decoration: none; - background-color: #6c757d; -} - -.badge-success { - color: #fff; - background-color: #5eba00; -} - -.badge-success[href]:hover, .badge-success[href]:focus { - color: #fff; - text-decoration: none; - background-color: #448700; -} - -.badge-info { - color: #fff; - background-color: #45aaf2; -} - -.badge-info[href]:hover, .badge-info[href]:focus { - color: #fff; - text-decoration: none; - background-color: #1594ef; -} - -.badge-warning { - color: #fff; - background-color: #f1c40f; -} - -.badge-warning[href]:hover, .badge-warning[href]:focus { - color: #fff; - text-decoration: none; - background-color: #c29d0b; -} - -.badge-danger { - color: #fff; - background-color: #cd201f; -} - -.badge-danger[href]:hover, .badge-danger[href]:focus { - color: #fff; - text-decoration: none; - background-color: #a11918; -} - -.badge-light { - color: #495057; - background-color: #f8f9fa; -} - -.badge-light[href]:hover, .badge-light[href]:focus { - color: #495057; - text-decoration: none; - background-color: #dae0e5; -} - -.badge-dark { - color: #fff; - background-color: #343a40; -} - -.badge-dark[href]:hover, .badge-dark[href]:focus { - color: #fff; - text-decoration: none; - background-color: #1d2124; -} - -.jumbotron { - padding: 2rem 1rem; - margin-bottom: 2rem; - background-color: #e9ecef; - border-radius: 3px; -} - -@media (min-width: 576px) { - .jumbotron { - padding: 4rem 2rem; - } -} - -.jumbotron-fluid { - padding-left: 0; - padding-right: 0; - border-radius: 0; -} - -.alert { - position: relative; - padding: 0.75rem 1.25rem; - margin-bottom: 1rem; - border: 1px solid transparent; - border-radius: 3px; -} - -.alert-heading { - color: inherit; -} - -.alert-link { - font-weight: 600; -} - -.alert-dismissible { - padding-left: 3.90625rem; -} - -.alert-dismissible .close { - position: absolute; - top: 0; - left: 0; - padding: 0.75rem 1.25rem; - color: inherit; -} - -.alert-primary { - color: #24426c; - background-color: #dae5f5; - border-color: #cbdbf2; -} - -.alert-primary hr { - border-top-color: #b7cded; -} - -.alert-primary .alert-link { - color: #172b46; -} - -.alert-secondary { - color: #464a4e; - background-color: #e7e8ea; - border-color: #dddfe2; -} - -.alert-secondary hr { - border-top-color: #cfd2d6; -} - -.alert-secondary .alert-link { - color: #2e3133; -} - -.alert-success { - color: #316100; - background-color: #dff1cc; - border-color: #d2ecb8; -} - -.alert-success hr { - border-top-color: #c5e7a4; -} - -.alert-success .alert-link { - color: #172e00; -} - -.alert-info { - color: #24587e; - background-color: #daeefc; - border-color: #cbe7fb; -} - -.alert-info hr { - border-top-color: #b3dcf9; -} - -.alert-info .alert-link { - color: #193c56; -} - -.alert-warning { - color: #7d6608; - background-color: #fcf3cf; - border-color: #fbeebc; -} - -.alert-warning hr { - border-top-color: #fae8a4; -} - -.alert-warning .alert-link { - color: #4d3f05; -} - -.alert-danger { - color: #6b1110; - background-color: #f5d2d2; - border-color: #f1c1c0; -} - -.alert-danger hr { - border-top-color: #ecacab; -} - -.alert-danger .alert-link { - color: #3f0a09; -} - -.alert-light { - color: #818182; - background-color: #fefefe; - border-color: #fdfdfe; -} - -.alert-light hr { - border-top-color: #ececf6; -} - -.alert-light .alert-link { - color: #686868; -} - -.alert-dark { - color: #1b1e21; - background-color: #d6d8d9; - border-color: #c6c8ca; -} - -.alert-dark hr { - border-top-color: #b9bbbe; -} - -.alert-dark .alert-link { - color: #040505; -} - -@-webkit-keyframes progress-bar-stripes { - from { - background-position: 1rem 0; - } - to { - background-position: 100% 0; - } -} - -@keyframes progress-bar-stripes { - from { - background-position: 1rem 0; - } - to { - background-position: 100% 0; - } -} - -.progress { - display: -ms-flexbox; - display: flex; - height: 1rem; - overflow: hidden; - font-size: 0.703125rem; - background-color: #e9ecef; - border-radius: 3px; -} - -.progress-bar { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - -ms-flex-pack: center; - justify-content: center; - color: #fff; - text-align: center; - white-space: nowrap; - background-color: #467fcf; - transition: width 0.6s ease; -} - -@media screen and (prefers-reduced-motion: reduce) { - .progress-bar { - transition: none; - } -} - -.progress-bar-striped { - background-image: linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-size: 1rem 1rem; -} - -.progress-bar-animated { - -webkit-animation: progress-bar-stripes 1s linear infinite; - animation: progress-bar-stripes 1s linear infinite; -} - -.media { - display: -ms-flexbox; - display: flex; - -ms-flex-align: start; - align-items: flex-start; -} - -.media-body { - -ms-flex: 1; - flex: 1; -} - -.list-group { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - padding-right: 0; - margin-bottom: 0; -} - -.list-group-item-action { - width: 100%; - color: #495057; - text-align: inherit; -} - -.list-group-item-action:hover, .list-group-item-action:focus { - color: #495057; - text-decoration: none; - background-color: #f8f9fa; -} - -.list-group-item-action:active { - color: #495057; - background-color: #e9ecef; -} - -.list-group-item { - position: relative; - display: block; - padding: 0.75rem 1.25rem; - margin-bottom: -1px; - background-color: #fff; - border: 1px solid rgba(0, 40, 100, 0.12); -} - -.list-group-item:first-child { - border-top-right-radius: 3px; - border-top-left-radius: 3px; -} - -.list-group-item:last-child { - margin-bottom: 0; - border-bottom-left-radius: 3px; - border-bottom-right-radius: 3px; -} - -.list-group-item:hover, .list-group-item:focus { - z-index: 1; - text-decoration: none; -} - -.list-group-item.disabled, .list-group-item:disabled { - color: #868e96; - background-color: #fff; -} - -.list-group-item.active { - z-index: 2; - color: #467fcf; - background-color: #f8fafd; - border-color: rgba(0, 40, 100, 0.12); -} - -.list-group-flush .list-group-item { - border-left: 0; - border-right: 0; - border-radius: 0; -} - -.list-group-flush:first-child .list-group-item:first-child { - border-top: 0; -} - -.list-group-flush:last-child .list-group-item:last-child { - border-bottom: 0; -} - -.list-group-item-primary { - color: #24426c; - background-color: #cbdbf2; -} - -.list-group-item-primary.list-group-item-action:hover, .list-group-item-primary.list-group-item-action:focus { - color: #24426c; - background-color: #b7cded; -} - -.list-group-item-primary.list-group-item-action.active { - color: #fff; - background-color: #24426c; - border-color: #24426c; -} - -.list-group-item-secondary { - color: #464a4e; - background-color: #dddfe2; -} - -.list-group-item-secondary.list-group-item-action:hover, .list-group-item-secondary.list-group-item-action:focus { - color: #464a4e; - background-color: #cfd2d6; -} - -.list-group-item-secondary.list-group-item-action.active { - color: #fff; - background-color: #464a4e; - border-color: #464a4e; -} - -.list-group-item-success { - color: #316100; - background-color: #d2ecb8; -} - -.list-group-item-success.list-group-item-action:hover, .list-group-item-success.list-group-item-action:focus { - color: #316100; - background-color: #c5e7a4; -} - -.list-group-item-success.list-group-item-action.active { - color: #fff; - background-color: #316100; - border-color: #316100; -} - -.list-group-item-info { - color: #24587e; - background-color: #cbe7fb; -} - -.list-group-item-info.list-group-item-action:hover, .list-group-item-info.list-group-item-action:focus { - color: #24587e; - background-color: #b3dcf9; -} - -.list-group-item-info.list-group-item-action.active { - color: #fff; - background-color: #24587e; - border-color: #24587e; -} - -.list-group-item-warning { - color: #7d6608; - background-color: #fbeebc; -} - -.list-group-item-warning.list-group-item-action:hover, .list-group-item-warning.list-group-item-action:focus { - color: #7d6608; - background-color: #fae8a4; -} - -.list-group-item-warning.list-group-item-action.active { - color: #fff; - background-color: #7d6608; - border-color: #7d6608; -} - -.list-group-item-danger { - color: #6b1110; - background-color: #f1c1c0; -} - -.list-group-item-danger.list-group-item-action:hover, .list-group-item-danger.list-group-item-action:focus { - color: #6b1110; - background-color: #ecacab; -} - -.list-group-item-danger.list-group-item-action.active { - color: #fff; - background-color: #6b1110; - border-color: #6b1110; -} - -.list-group-item-light { - color: #818182; - background-color: #fdfdfe; -} - -.list-group-item-light.list-group-item-action:hover, .list-group-item-light.list-group-item-action:focus { - color: #818182; - background-color: #ececf6; -} - -.list-group-item-light.list-group-item-action.active { - color: #fff; - background-color: #818182; - border-color: #818182; -} - -.list-group-item-dark { - color: #1b1e21; - background-color: #c6c8ca; -} - -.list-group-item-dark.list-group-item-action:hover, .list-group-item-dark.list-group-item-action:focus { - color: #1b1e21; - background-color: #b9bbbe; -} - -.list-group-item-dark.list-group-item-action.active { - color: #fff; - background-color: #1b1e21; - border-color: #1b1e21; -} - -.close { - float: left; - font-size: 1.40625rem; - font-weight: 700; - line-height: 1; - color: #000; - text-shadow: 0 1px 0 #fff; - opacity: .5; -} - -.close:hover, .close:focus { - color: #000; - text-decoration: none; - opacity: .75; -} - -.close:not(:disabled):not(.disabled) { - cursor: pointer; -} - -button.close { - padding: 0; - background-color: transparent; - border: 0; - -webkit-appearance: none; -} - -.modal-open { - overflow: hidden; -} - -.modal { - position: fixed; - top: 0; - left: 0; - bottom: 0; - right: 0; - z-index: 1050; - display: none; - overflow: hidden; - outline: 0; -} - -.modal-open .modal { - overflow-x: hidden; - overflow-y: auto; -} - -.modal-dialog { - position: relative; - width: auto; - margin: 0.5rem; - pointer-events: none; -} - -.modal.fade .modal-dialog { - transition: -webkit-transform 0.3s ease-out; - transition: transform 0.3s ease-out; - transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out; - -webkit-transform: translate(0, -25%); - transform: translate(0, -25%); -} - -@media screen and (prefers-reduced-motion: reduce) { - .modal.fade .modal-dialog { - transition: none; - } -} - -.modal.show .modal-dialog { - -webkit-transform: translate(0, 0); - transform: translate(0, 0); -} - -.modal-dialog-centered { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - min-height: calc(100% - (0.5rem * 2)); -} - -.modal-content { - position: relative; - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - width: 100%; - pointer-events: auto; - background-color: #fff; - background-clip: padding-box; - border: 1px solid rgba(0, 0, 0, 0.2); - border-radius: 3px; - outline: 0; -} - -.modal-backdrop { - position: fixed; - top: 0; - left: 0; - bottom: 0; - right: 0; - z-index: 1040; - background-color: #000; -} - -.modal-backdrop.fade { - opacity: 0; -} - -.modal-backdrop.show { - opacity: 0.5; -} - -.modal-header { - display: -ms-flexbox; - display: flex; - -ms-flex-align: start; - align-items: flex-start; - -ms-flex-pack: justify; - justify-content: space-between; - padding: 1rem; - border-bottom: 1px solid #e9ecef; - border-top-right-radius: 3px; - border-top-left-radius: 3px; -} - -.modal-header .close { - padding: 1rem; - margin: -1rem auto -1rem -1rem; -} - -.modal-title { - margin-bottom: 0; - line-height: 1.5; -} - -.modal-body { - position: relative; - -ms-flex: 1 1 auto; - flex: 1 1 auto; - padding: 1rem; -} - -.modal-footer { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: end; - justify-content: flex-end; - padding: 1rem; - border-top: 1px solid #e9ecef; -} - -.modal-footer > :not(:first-child) { - margin-right: .25rem; -} - -.modal-footer > :not(:last-child) { - margin-left: .25rem; -} - -.modal-scrollbar-measure { - position: absolute; - top: -9999px; - width: 50px; - height: 50px; - overflow: scroll; -} - -@media (min-width: 576px) { - .modal-dialog { - max-width: 500px; - margin: 1.75rem auto; - } - .modal-dialog-centered { - min-height: calc(100% - (1.75rem * 2)); - } - .modal-sm { - max-width: 300px; - } -} - -@media (min-width: 992px) { - .modal-lg { - max-width: 800px; - } -} - -.tooltip { - position: absolute; - z-index: 1070; - display: block; - margin: 0; - font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; - font-style: normal; - font-weight: 400; - line-height: 1.5; - text-align: right; - text-align: start; - text-decoration: none; - text-shadow: none; - text-transform: none; - letter-spacing: normal; - word-break: normal; - word-spacing: normal; - white-space: normal; - line-break: auto; - font-size: 0.875rem; - word-wrap: break-word; - opacity: 0; -} - -.tooltip.show { - opacity: 0.9; -} - -.tooltip .arrow { - position: absolute; - display: block; - width: 0.8rem; - height: 0.4rem; -} - -.tooltip .arrow::before { - position: absolute; - content: ""; - border-color: transparent; - border-style: solid; -} - -.bs-tooltip-top, .bs-tooltip-auto[x-placement^="top"] { - padding: 0.4rem 0; -} - -.bs-tooltip-top .arrow, .bs-tooltip-auto[x-placement^="top"] .arrow { - bottom: 0; -} - -.bs-tooltip-top .arrow::before, .bs-tooltip-auto[x-placement^="top"] .arrow::before { - top: 0; - border-width: 0.4rem 0.4rem 0; - border-top-color: #000; -} - -.bs-tooltip-right, .bs-tooltip-auto[x-placement^="right"] { - padding: 0 0.4rem; -} - -.bs-tooltip-right .arrow, .bs-tooltip-auto[x-placement^="right"] .arrow { - right: 0; - width: 0.4rem; - height: 0.8rem; -} - -.bs-tooltip-right .arrow::before, .bs-tooltip-auto[x-placement^="right"] .arrow::before { - left: 0; - border-width: 0.4rem 0 0.4rem 0.4rem; - border-left-color: #000; -} - -.bs-tooltip-bottom, .bs-tooltip-auto[x-placement^="bottom"] { - padding: 0.4rem 0; -} - -.bs-tooltip-bottom .arrow, .bs-tooltip-auto[x-placement^="bottom"] .arrow { - top: 0; -} - -.bs-tooltip-bottom .arrow::before, .bs-tooltip-auto[x-placement^="bottom"] .arrow::before { - bottom: 0; - border-width: 0 0.4rem 0.4rem; - border-bottom-color: #000; -} - -.bs-tooltip-left, .bs-tooltip-auto[x-placement^="left"] { - padding: 0 0.4rem; -} - -.bs-tooltip-left .arrow, .bs-tooltip-auto[x-placement^="left"] .arrow { - left: 0; - width: 0.4rem; - height: 0.8rem; -} - -.bs-tooltip-left .arrow::before, .bs-tooltip-auto[x-placement^="left"] .arrow::before { - right: 0; - border-width: 0.4rem 0.4rem 0.4rem 0; - border-right-color: #000; -} - -.tooltip-inner { - max-width: 200px; - padding: 0.25rem 0.5rem; - color: #fff; - text-align: center; - background-color: #000; - border-radius: 3px; -} - -.popover { - position: absolute; - top: 0; - right: 0; - z-index: 1060; - display: block; - max-width: 276px; - font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; - font-style: normal; - font-weight: 400; - line-height: 1.5; - text-align: right; - text-align: start; - text-decoration: none; - text-shadow: none; - text-transform: none; - letter-spacing: normal; - word-break: normal; - word-spacing: normal; - white-space: normal; - line-break: auto; - font-size: 0.875rem; - word-wrap: break-word; - background-color: #fff; - background-clip: padding-box; - border: 1px solid #dee3eb; - border-radius: 3px; -} - -.popover .arrow { - position: absolute; - display: block; - width: 0.5rem; - height: 0.5rem; - margin: 0 3px; -} - -.popover .arrow::before, .popover .arrow::after { - position: absolute; - display: block; - content: ""; - border-color: transparent; - border-style: solid; -} - -.bs-popover-top, .bs-popover-auto[x-placement^="top"] { - margin-bottom: 0.5rem; -} - -.bs-popover-top .arrow, .bs-popover-auto[x-placement^="top"] .arrow { - bottom: calc((0.5rem + 1px) * -1); -} - -.bs-popover-top .arrow::before, .bs-popover-auto[x-placement^="top"] .arrow::before, -.bs-popover-top .arrow::after, -.bs-popover-auto[x-placement^="top"] .arrow::after { - border-width: 0.5rem 0.25rem 0; -} - -.bs-popover-top .arrow::before, .bs-popover-auto[x-placement^="top"] .arrow::before { - bottom: 0; - border-top-color: #dee3eb; -} - - -.bs-popover-top .arrow::after, -.bs-popover-auto[x-placement^="top"] .arrow::after { - bottom: 1px; - border-top-color: #fff; -} - -.bs-popover-right, .bs-popover-auto[x-placement^="right"] { - margin-right: 0.5rem; -} - -.bs-popover-right .arrow, .bs-popover-auto[x-placement^="right"] .arrow { - right: calc((0.5rem + 1px) * -1); - width: 0.5rem; - height: 0.5rem; - margin: 3px 0; -} - -.bs-popover-right .arrow::before, .bs-popover-auto[x-placement^="right"] .arrow::before, -.bs-popover-right .arrow::after, -.bs-popover-auto[x-placement^="right"] .arrow::after { - border-width: 0.25rem 0 0.25rem 0.5rem; -} - -.bs-popover-right .arrow::before, .bs-popover-auto[x-placement^="right"] .arrow::before { - right: 0; - border-left-color: #dee3eb; -} - - -.bs-popover-right .arrow::after, -.bs-popover-auto[x-placement^="right"] .arrow::after { - right: 1px; - border-left-color: #fff; -} - -.bs-popover-bottom, .bs-popover-auto[x-placement^="bottom"] { - margin-top: 0.5rem; -} - -.bs-popover-bottom .arrow, .bs-popover-auto[x-placement^="bottom"] .arrow { - top: calc((0.5rem + 1px) * -1); -} - -.bs-popover-bottom .arrow::before, .bs-popover-auto[x-placement^="bottom"] .arrow::before, -.bs-popover-bottom .arrow::after, -.bs-popover-auto[x-placement^="bottom"] .arrow::after { - border-width: 0 0.25rem 0.5rem 0.25rem; -} - -.bs-popover-bottom .arrow::before, .bs-popover-auto[x-placement^="bottom"] .arrow::before { - top: 0; - border-bottom-color: #dee3eb; -} - - -.bs-popover-bottom .arrow::after, -.bs-popover-auto[x-placement^="bottom"] .arrow::after { - top: 1px; - border-bottom-color: #fff; -} - -.bs-popover-bottom .popover-header::before, .bs-popover-auto[x-placement^="bottom"] .popover-header::before { - position: absolute; - top: 0; - right: 50%; - display: block; - width: 0.5rem; - margin-right: -0.25rem; - content: ""; - border-bottom: 1px solid #f7f7f7; -} - -.bs-popover-left, .bs-popover-auto[x-placement^="left"] { - margin-left: 0.5rem; -} - -.bs-popover-left .arrow, .bs-popover-auto[x-placement^="left"] .arrow { - left: calc((0.5rem + 1px) * -1); - width: 0.5rem; - height: 0.5rem; - margin: 3px 0; -} - -.bs-popover-left .arrow::before, .bs-popover-auto[x-placement^="left"] .arrow::before, -.bs-popover-left .arrow::after, -.bs-popover-auto[x-placement^="left"] .arrow::after { - border-width: 0.25rem 0.5rem 0.25rem 0; -} - -.bs-popover-left .arrow::before, .bs-popover-auto[x-placement^="left"] .arrow::before { - left: 0; - border-right-color: #dee3eb; -} - - -.bs-popover-left .arrow::after, -.bs-popover-auto[x-placement^="left"] .arrow::after { - left: 1px; - border-right-color: #fff; -} - -.popover-header { - padding: 0.5rem 0.75rem; - margin-bottom: 0; - font-size: 0.9375rem; - color: inherit; - background-color: #f7f7f7; - border-bottom: 1px solid #ebebeb; - border-top-right-radius: calc(3px - 1px); - border-top-left-radius: calc(3px - 1px); -} - -.popover-header:empty { - display: none; -} - -.popover-body { - padding: 0.75rem 1rem; - color: #6e7687; -} - -.carousel { - position: relative; -} - -.carousel-inner { - position: relative; - width: 100%; - overflow: hidden; -} - -.carousel-item { - position: relative; - display: none; - -ms-flex-align: center; - align-items: center; - width: 100%; - transition: -webkit-transform 0.6s ease; - transition: transform 0.6s ease; - transition: transform 0.6s ease, -webkit-transform 0.6s ease; - -webkit-backface-visibility: hidden; - backface-visibility: hidden; - -webkit-perspective: 1000px; - perspective: 1000px; -} - -@media screen and (prefers-reduced-motion: reduce) { - .carousel-item { - transition: none; - } -} - -.carousel-item.active, -.carousel-item-next, -.carousel-item-prev { - display: block; -} - -.carousel-item-next, -.carousel-item-prev { - position: absolute; - top: 0; -} - -.carousel-item-next.carousel-item-left, -.carousel-item-prev.carousel-item-right { - -webkit-transform: translateX(0); - transform: translateX(0); -} - -@supports ((-webkit-transform-style: preserve-3d) or (transform-style: preserve-3d)) { - .carousel-item-next.carousel-item-left, - .carousel-item-prev.carousel-item-right { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); - } -} - -.carousel-item-next, -.active.carousel-item-right { - -webkit-transform: translateX(-100%); - transform: translateX(-100%); -} - -@supports ((-webkit-transform-style: preserve-3d) or (transform-style: preserve-3d)) { - .carousel-item-next, - .active.carousel-item-right { - -webkit-transform: translate3d(-100%, 0, 0); - transform: translate3d(-100%, 0, 0); - } -} - -.carousel-item-prev, -.active.carousel-item-left { - -webkit-transform: translateX(100%); - transform: translateX(100%); -} - -@supports ((-webkit-transform-style: preserve-3d) or (transform-style: preserve-3d)) { - .carousel-item-prev, - .active.carousel-item-left { - -webkit-transform: translate3d(100%, 0, 0); - transform: translate3d(100%, 0, 0); - } -} - -.carousel-fade .carousel-item { - opacity: 0; - transition-duration: .6s; - transition-property: opacity; -} - -.carousel-fade .carousel-item.active, -.carousel-fade .carousel-item-next.carousel-item-left, -.carousel-fade .carousel-item-prev.carousel-item-right { - opacity: 1; -} - -.carousel-fade .active.carousel-item-left, -.carousel-fade .active.carousel-item-right { - opacity: 0; -} - -.carousel-fade .carousel-item-next, -.carousel-fade .carousel-item-prev, -.carousel-fade .carousel-item.active, -.carousel-fade .active.carousel-item-left, -.carousel-fade .active.carousel-item-prev { - -webkit-transform: translateX(0); - transform: translateX(0); -} - -@supports ((-webkit-transform-style: preserve-3d) or (transform-style: preserve-3d)) { - .carousel-fade .carousel-item-next, - .carousel-fade .carousel-item-prev, - .carousel-fade .carousel-item.active, - .carousel-fade .active.carousel-item-left, - .carousel-fade .active.carousel-item-prev { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); - } -} - -.carousel-control-prev, -.carousel-control-next { - position: absolute; - top: 0; - bottom: 0; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - width: 15%; - color: #fff; - text-align: center; - opacity: 0.5; -} - -.carousel-control-prev:hover, .carousel-control-prev:focus, -.carousel-control-next:hover, -.carousel-control-next:focus { - color: #fff; - text-decoration: none; - outline: 0; - opacity: .9; -} - -.carousel-control-prev { - right: 0; -} - -.carousel-control-next { - left: 0; -} - -.carousel-control-prev-icon, -.carousel-control-next-icon { - display: inline-block; - width: 20px; - height: 20px; - background: transparent no-repeat center center; - background-size: 100% 100%; -} - -.carousel-control-prev-icon { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E"); -} - -.carousel-control-next-icon { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E"); -} - -.carousel-indicators { - position: absolute; - left: 0; - bottom: 10px; - right: 0; - z-index: 15; - display: -ms-flexbox; - display: flex; - -ms-flex-pack: center; - justify-content: center; - padding-right: 0; - margin-left: 15%; - margin-right: 15%; - list-style: none; -} - -.carousel-indicators li { - position: relative; - -ms-flex: 0 1 auto; - flex: 0 1 auto; - width: 30px; - height: 3px; - margin-left: 3px; - margin-right: 3px; - text-indent: -999px; - background-color: rgba(255, 255, 255, 0.5); -} - -.carousel-indicators li::before { - position: absolute; - top: -10px; - right: 0; - display: inline-block; - width: 100%; - height: 10px; - content: ""; -} - -.carousel-indicators li::after { - position: absolute; - bottom: -10px; - right: 0; - display: inline-block; - width: 100%; - height: 10px; - content: ""; -} - -.carousel-indicators .active { - background-color: #fff; -} - -.carousel-caption { - position: absolute; - left: 15%; - bottom: 20px; - right: 15%; - z-index: 10; - padding-top: 20px; - padding-bottom: 20px; - color: #fff; - text-align: center; -} - -.align-baseline { - vertical-align: baseline !important; -} - -.align-top { - vertical-align: top !important; -} - -.align-middle { - vertical-align: middle !important; -} - -.align-bottom { - vertical-align: bottom !important; -} - -.align-text-bottom { - vertical-align: text-bottom !important; -} - -.align-text-top { - vertical-align: text-top !important; -} - -.bg-primary { - background-color: #467fcf !important; -} - -a.bg-primary:hover, a.bg-primary:focus, -button.bg-primary:hover, -button.bg-primary:focus { - background-color: #2f66b3 !important; -} - -.bg-secondary { - background-color: #868e96 !important; -} - -a.bg-secondary:hover, a.bg-secondary:focus, -button.bg-secondary:hover, -button.bg-secondary:focus { - background-color: #6c757d !important; -} - -.bg-success { - background-color: #5eba00 !important; -} - -a.bg-success:hover, a.bg-success:focus, -button.bg-success:hover, -button.bg-success:focus { - background-color: #448700 !important; -} - -.bg-info { - background-color: #45aaf2 !important; -} - -a.bg-info:hover, a.bg-info:focus, -button.bg-info:hover, -button.bg-info:focus { - background-color: #1594ef !important; -} - -.bg-warning { - background-color: #f1c40f !important; -} - -a.bg-warning:hover, a.bg-warning:focus, -button.bg-warning:hover, -button.bg-warning:focus { - background-color: #c29d0b !important; -} - -.bg-danger { - background-color: #cd201f !important; -} - -a.bg-danger:hover, a.bg-danger:focus, -button.bg-danger:hover, -button.bg-danger:focus { - background-color: #a11918 !important; -} - -.bg-light { - background-color: #f8f9fa !important; -} - -a.bg-light:hover, a.bg-light:focus, -button.bg-light:hover, -button.bg-light:focus { - background-color: #dae0e5 !important; -} - -.bg-dark { - background-color: #343a40 !important; -} - -a.bg-dark:hover, a.bg-dark:focus, -button.bg-dark:hover, -button.bg-dark:focus { - background-color: #1d2124 !important; -} - -.bg-white { - background-color: #fff !important; -} - -.bg-transparent { - background-color: transparent !important; -} - -.border { - border: 1px solid rgba(0, 40, 100, 0.12) !important; -} - -.border-top { - border-top: 1px solid rgba(0, 40, 100, 0.12) !important; -} - -.border-right { - border-left: 1px solid rgba(0, 40, 100, 0.12) !important; -} - -.border-bottom { - border-bottom: 1px solid rgba(0, 40, 100, 0.12) !important; -} - -.border-left { - border-right: 1px solid rgba(0, 40, 100, 0.12) !important; -} - -.border-0 { - border: 0 !important; -} - -.border-top-0 { - border-top: 0 !important; -} - -.border-right-0 { - border-left: 0 !important; -} - -.border-bottom-0 { - border-bottom: 0 !important; -} - -.border-left-0 { - border-right: 0 !important; -} - -.border-primary { - border-color: #467fcf !important; -} - -.border-secondary { - border-color: #868e96 !important; -} - -.border-success { - border-color: #5eba00 !important; -} - -.border-info { - border-color: #45aaf2 !important; -} - -.border-warning { - border-color: #f1c40f !important; -} - -.border-danger { - border-color: #cd201f !important; -} - -.border-light { - border-color: #f8f9fa !important; -} - -.border-dark { - border-color: #343a40 !important; -} - -.border-white { - border-color: #fff !important; -} - -.rounded { - border-radius: 3px !important; -} - -.rounded-top { - border-top-right-radius: 3px !important; - border-top-left-radius: 3px !important; -} - -.rounded-right { - border-top-left-radius: 3px !important; - border-bottom-left-radius: 3px !important; -} - -.rounded-bottom { - border-bottom-left-radius: 3px !important; - border-bottom-right-radius: 3px !important; -} - -.rounded-left { - border-top-right-radius: 3px !important; - border-bottom-right-radius: 3px !important; -} - -.rounded-circle { - border-radius: 50% !important; -} - -.rounded-0 { - border-radius: 0 !important; -} - -.clearfix::after { - display: block; - clear: both; - content: ""; -} - -.d-none { - display: none !important; -} - -.d-inline { - display: inline !important; -} - -.d-inline-block { - display: inline-block !important; -} - -.d-block { - display: block !important; -} - -.d-table { - display: table !important; -} - -.d-table-row { - display: table-row !important; -} - -.d-table-cell { - display: table-cell !important; -} - -.d-flex { - display: -ms-flexbox !important; - display: flex !important; -} - -.d-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; -} - -@media (min-width: 576px) { - .d-sm-none { - display: none !important; - } - .d-sm-inline { - display: inline !important; - } - .d-sm-inline-block { - display: inline-block !important; - } - .d-sm-block { - display: block !important; - } - .d-sm-table { - display: table !important; - } - .d-sm-table-row { - display: table-row !important; - } - .d-sm-table-cell { - display: table-cell !important; - } - .d-sm-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-sm-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media (min-width: 768px) { - .d-md-none { - display: none !important; - } - .d-md-inline { - display: inline !important; - } - .d-md-inline-block { - display: inline-block !important; - } - .d-md-block { - display: block !important; - } - .d-md-table { - display: table !important; - } - .d-md-table-row { - display: table-row !important; - } - .d-md-table-cell { - display: table-cell !important; - } - .d-md-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-md-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media (min-width: 992px) { - .d-lg-none { - display: none !important; - } - .d-lg-inline { - display: inline !important; - } - .d-lg-inline-block { - display: inline-block !important; - } - .d-lg-block { - display: block !important; - } - .d-lg-table { - display: table !important; - } - .d-lg-table-row { - display: table-row !important; - } - .d-lg-table-cell { - display: table-cell !important; - } - .d-lg-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-lg-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media (min-width: 1280px) { - .d-xl-none { - display: none !important; - } - .d-xl-inline { - display: inline !important; - } - .d-xl-inline-block { - display: inline-block !important; - } - .d-xl-block { - display: block !important; - } - .d-xl-table { - display: table !important; - } - .d-xl-table-row { - display: table-row !important; - } - .d-xl-table-cell { - display: table-cell !important; - } - .d-xl-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-xl-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media print { - .d-print-none { - display: none !important; - } - .d-print-inline { - display: inline !important; - } - .d-print-inline-block { - display: inline-block !important; - } - .d-print-block { - display: block !important; - } - .d-print-table { - display: table !important; - } - .d-print-table-row { - display: table-row !important; - } - .d-print-table-cell { - display: table-cell !important; - } - .d-print-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-print-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -.embed-responsive { - position: relative; - display: block; - width: 100%; - padding: 0; - overflow: hidden; -} - -.embed-responsive::before { - display: block; - content: ""; -} - -.embed-responsive .embed-responsive-item, -.embed-responsive iframe, -.embed-responsive embed, -.embed-responsive object, -.embed-responsive video { - position: absolute; - top: 0; - bottom: 0; - right: 0; - width: 100%; - height: 100%; - border: 0; -} - -.embed-responsive-21by9::before { - padding-top: 42.85714286%; -} - -.embed-responsive-16by9::before { - padding-top: 56.25%; -} - -.embed-responsive-4by3::before { - padding-top: 75%; -} - -.embed-responsive-1by1::before { - padding-top: 100%; -} - -.flex-row { - -ms-flex-direction: row !important; - flex-direction: row !important; -} - -.flex-column { - -ms-flex-direction: column !important; - flex-direction: column !important; -} - -.flex-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; -} - -.flex-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; -} - -.flex-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; -} - -.flex-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; -} - -.flex-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; -} - -.flex-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; -} - -.flex-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; -} - -.flex-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; -} - -.flex-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; -} - -.flex-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; -} - -.justify-content-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; -} - -.justify-content-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; -} - -.justify-content-center { - -ms-flex-pack: center !important; - justify-content: center !important; -} - -.justify-content-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; -} - -.justify-content-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; -} - -.align-items-start { - -ms-flex-align: start !important; - align-items: flex-start !important; -} - -.align-items-end { - -ms-flex-align: end !important; - align-items: flex-end !important; -} - -.align-items-center { - -ms-flex-align: center !important; - align-items: center !important; -} - -.align-items-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; -} - -.align-items-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; -} - -.align-content-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; -} - -.align-content-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; -} - -.align-content-center { - -ms-flex-line-pack: center !important; - align-content: center !important; -} - -.align-content-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; -} - -.align-content-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; -} - -.align-content-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; -} - -.align-self-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; -} - -.align-self-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; -} - -.align-self-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; -} - -.align-self-center { - -ms-flex-item-align: center !important; - align-self: center !important; -} - -.align-self-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; -} - -.align-self-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; -} - -@media (min-width: 576px) { - .flex-sm-row { - -ms-flex-direction: row !important; - flex-direction: row !important; - } - .flex-sm-column { - -ms-flex-direction: column !important; - flex-direction: column !important; - } - .flex-sm-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; - } - .flex-sm-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; - } - .flex-sm-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; - } - .flex-sm-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; - } - .flex-sm-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; - } - .flex-sm-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; - } - .flex-sm-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; - } - .flex-sm-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; - } - .flex-sm-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; - } - .flex-sm-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; - } - .justify-content-sm-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; - } - .justify-content-sm-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; - } - .justify-content-sm-center { - -ms-flex-pack: center !important; - justify-content: center !important; - } - .justify-content-sm-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; - } - .justify-content-sm-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; - } - .align-items-sm-start { - -ms-flex-align: start !important; - align-items: flex-start !important; - } - .align-items-sm-end { - -ms-flex-align: end !important; - align-items: flex-end !important; - } - .align-items-sm-center { - -ms-flex-align: center !important; - align-items: center !important; - } - .align-items-sm-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; - } - .align-items-sm-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; - } - .align-content-sm-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; - } - .align-content-sm-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; - } - .align-content-sm-center { - -ms-flex-line-pack: center !important; - align-content: center !important; - } - .align-content-sm-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; - } - .align-content-sm-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; - } - .align-content-sm-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; - } - .align-self-sm-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; - } - .align-self-sm-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; - } - .align-self-sm-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; - } - .align-self-sm-center { - -ms-flex-item-align: center !important; - align-self: center !important; - } - .align-self-sm-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; - } - .align-self-sm-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; - } -} - -@media (min-width: 768px) { - .flex-md-row { - -ms-flex-direction: row !important; - flex-direction: row !important; - } - .flex-md-column { - -ms-flex-direction: column !important; - flex-direction: column !important; - } - .flex-md-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; - } - .flex-md-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; - } - .flex-md-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; - } - .flex-md-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; - } - .flex-md-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; - } - .flex-md-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; - } - .flex-md-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; - } - .flex-md-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; - } - .flex-md-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; - } - .flex-md-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; - } - .justify-content-md-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; - } - .justify-content-md-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; - } - .justify-content-md-center { - -ms-flex-pack: center !important; - justify-content: center !important; - } - .justify-content-md-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; - } - .justify-content-md-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; - } - .align-items-md-start { - -ms-flex-align: start !important; - align-items: flex-start !important; - } - .align-items-md-end { - -ms-flex-align: end !important; - align-items: flex-end !important; - } - .align-items-md-center { - -ms-flex-align: center !important; - align-items: center !important; - } - .align-items-md-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; - } - .align-items-md-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; - } - .align-content-md-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; - } - .align-content-md-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; - } - .align-content-md-center { - -ms-flex-line-pack: center !important; - align-content: center !important; - } - .align-content-md-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; - } - .align-content-md-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; - } - .align-content-md-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; - } - .align-self-md-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; - } - .align-self-md-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; - } - .align-self-md-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; - } - .align-self-md-center { - -ms-flex-item-align: center !important; - align-self: center !important; - } - .align-self-md-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; - } - .align-self-md-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; - } -} - -@media (min-width: 992px) { - .flex-lg-row { - -ms-flex-direction: row !important; - flex-direction: row !important; - } - .flex-lg-column { - -ms-flex-direction: column !important; - flex-direction: column !important; - } - .flex-lg-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; - } - .flex-lg-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; - } - .flex-lg-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; - } - .flex-lg-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; - } - .flex-lg-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; - } - .flex-lg-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; - } - .flex-lg-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; - } - .flex-lg-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; - } - .flex-lg-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; - } - .flex-lg-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; - } - .justify-content-lg-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; - } - .justify-content-lg-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; - } - .justify-content-lg-center { - -ms-flex-pack: center !important; - justify-content: center !important; - } - .justify-content-lg-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; - } - .justify-content-lg-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; - } - .align-items-lg-start { - -ms-flex-align: start !important; - align-items: flex-start !important; - } - .align-items-lg-end { - -ms-flex-align: end !important; - align-items: flex-end !important; - } - .align-items-lg-center { - -ms-flex-align: center !important; - align-items: center !important; - } - .align-items-lg-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; - } - .align-items-lg-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; - } - .align-content-lg-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; - } - .align-content-lg-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; - } - .align-content-lg-center { - -ms-flex-line-pack: center !important; - align-content: center !important; - } - .align-content-lg-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; - } - .align-content-lg-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; - } - .align-content-lg-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; - } - .align-self-lg-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; - } - .align-self-lg-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; - } - .align-self-lg-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; - } - .align-self-lg-center { - -ms-flex-item-align: center !important; - align-self: center !important; - } - .align-self-lg-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; - } - .align-self-lg-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; - } -} - -@media (min-width: 1280px) { - .flex-xl-row { - -ms-flex-direction: row !important; - flex-direction: row !important; - } - .flex-xl-column { - -ms-flex-direction: column !important; - flex-direction: column !important; - } - .flex-xl-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; - } - .flex-xl-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; - } - .flex-xl-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; - } - .flex-xl-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; - } - .flex-xl-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; - } - .flex-xl-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; - } - .flex-xl-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; - } - .flex-xl-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; - } - .flex-xl-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; - } - .flex-xl-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; - } - .justify-content-xl-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; - } - .justify-content-xl-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; - } - .justify-content-xl-center { - -ms-flex-pack: center !important; - justify-content: center !important; - } - .justify-content-xl-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; - } - .justify-content-xl-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; - } - .align-items-xl-start { - -ms-flex-align: start !important; - align-items: flex-start !important; - } - .align-items-xl-end { - -ms-flex-align: end !important; - align-items: flex-end !important; - } - .align-items-xl-center { - -ms-flex-align: center !important; - align-items: center !important; - } - .align-items-xl-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; - } - .align-items-xl-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; - } - .align-content-xl-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; - } - .align-content-xl-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; - } - .align-content-xl-center { - -ms-flex-line-pack: center !important; - align-content: center !important; - } - .align-content-xl-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; - } - .align-content-xl-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; - } - .align-content-xl-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; - } - .align-self-xl-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; - } - .align-self-xl-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; - } - .align-self-xl-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; - } - .align-self-xl-center { - -ms-flex-item-align: center !important; - align-self: center !important; - } - .align-self-xl-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; - } - .align-self-xl-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; - } -} - -.float-left { - float: right !important; -} - -.float-right { - float: left !important; -} - -.float-none { - float: none !important; -} - -@media (min-width: 576px) { - .float-sm-left { - float: right !important; - } - .float-sm-right { - float: left !important; - } - .float-sm-none { - float: none !important; - } -} - -@media (min-width: 768px) { - .float-md-left { - float: right !important; - } - .float-md-right { - float: left !important; - } - .float-md-none { - float: none !important; - } -} - -@media (min-width: 992px) { - .float-lg-left { - float: right !important; - } - .float-lg-right { - float: left !important; - } - .float-lg-none { - float: none !important; - } -} - -@media (min-width: 1280px) { - .float-xl-left { - float: right !important; - } - .float-xl-right { - float: left !important; - } - .float-xl-none { - float: none !important; - } -} - -.position-static { - position: static !important; -} - -.position-relative { - position: relative !important; -} - -.position-absolute { - position: absolute !important; -} - -.position-fixed { - position: fixed !important; -} - -.position-sticky { - position: -webkit-sticky !important; - position: sticky !important; -} - -.fixed-top { - position: fixed; - top: 0; - left: 0; - right: 0; - z-index: 1030; -} - -.fixed-bottom { - position: fixed; - left: 0; - bottom: 0; - right: 0; - z-index: 1030; -} - -@supports ((position: -webkit-sticky) or (position: sticky)) { - .sticky-top { - position: -webkit-sticky; - position: sticky; - top: 0; - z-index: 1020; - } -} - -.sr-only { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - overflow: hidden; - clip: rect(0, 0, 0, 0); - white-space: nowrap; - border: 0; -} - -.sr-only-focusable:active, .sr-only-focusable:focus { - position: static; - width: auto; - height: auto; - overflow: visible; - clip: auto; - white-space: normal; -} - -.shadow-sm { - box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; -} - -.shadow { - box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; -} - -.shadow-lg { - box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important; -} - -.shadow-none { - box-shadow: none !important; -} - -.w-25 { - width: 25% !important; -} - -.w-50 { - width: 50% !important; -} - -.w-75 { - width: 75% !important; -} - -.w-100 { - width: 100% !important; -} - -.w-auto { - width: auto !important; -} - -.w-0 { - width: 0 !important; -} - -.w-1 { - width: 0.25rem !important; -} - -.w-2 { - width: 0.5rem !important; -} - -.w-3 { - width: 0.75rem !important; -} - -.w-4 { - width: 1rem !important; -} - -.w-5 { - width: 1.5rem !important; -} - -.w-6 { - width: 2rem !important; -} - -.w-7 { - width: 3rem !important; -} - -.w-8 { - width: 4rem !important; -} - -.w-9 { - width: 6rem !important; -} - -.h-25 { - height: 25% !important; -} - -.h-50 { - height: 50% !important; -} - -.h-75 { - height: 75% !important; -} - -.h-100 { - height: 100% !important; -} - -.h-auto { - height: auto !important; -} - -.h-0 { - height: 0 !important; -} - -.h-1 { - height: 0.25rem !important; -} - -.h-2 { - height: 0.5rem !important; -} - -.h-3 { - height: 0.75rem !important; -} - -.h-4 { - height: 1rem !important; -} - -.h-5 { - height: 1.5rem !important; -} - -.h-6 { - height: 2rem !important; -} - -.h-7 { - height: 3rem !important; -} - -.h-8 { - height: 4rem !important; -} - -.h-9 { - height: 6rem !important; -} - -.mw-100 { - max-width: 100% !important; -} - -.mh-100 { - max-height: 100% !important; -} - -.m-0 { - margin: 0 !important; -} - -.mt-0, -.my-0 { - margin-top: 0 !important; -} - -.mr-0, -.mx-0 { - margin-left: 0 !important; -} - -.mb-0, -.my-0 { - margin-bottom: 0 !important; -} - -.ml-0, -.mx-0 { - margin-right: 0 !important; -} - -.m-1 { - margin: 0.25rem !important; -} - -.mt-1, -.my-1 { - margin-top: 0.25rem !important; -} - -.mr-1, -.mx-1 { - margin-left: 0.25rem !important; -} - -.mb-1, -.my-1 { - margin-bottom: 0.25rem !important; -} - -.ml-1, -.mx-1 { - margin-right: 0.25rem !important; -} - -.m-2 { - margin: 0.5rem !important; -} - -.mt-2, -.my-2 { - margin-top: 0.5rem !important; -} - -.mr-2, -.mx-2 { - margin-left: 0.5rem !important; -} - -.mb-2, -.my-2 { - margin-bottom: 0.5rem !important; -} - -.ml-2, -.mx-2 { - margin-right: 0.5rem !important; -} - -.m-3 { - margin: 0.75rem !important; -} - -.mt-3, -.my-3 { - margin-top: 0.75rem !important; -} - -.mr-3, -.mx-3 { - margin-left: 0.75rem !important; -} - -.mb-3, -.my-3 { - margin-bottom: 0.75rem !important; -} - -.ml-3, -.mx-3 { - margin-right: 0.75rem !important; -} - -.m-4 { - margin: 1rem !important; -} - -.mt-4, -.my-4 { - margin-top: 1rem !important; -} - -.mr-4, -.mx-4 { - margin-left: 1rem !important; -} - -.mb-4, -.my-4 { - margin-bottom: 1rem !important; -} - -.ml-4, -.mx-4 { - margin-right: 1rem !important; -} - -.m-5 { - margin: 1.5rem !important; -} - -.mt-5, -.my-5 { - margin-top: 1.5rem !important; -} - -.mr-5, -.mx-5 { - margin-left: 1.5rem !important; -} - -.mb-5, -.my-5 { - margin-bottom: 1.5rem !important; -} - -.ml-5, -.mx-5 { - margin-right: 1.5rem !important; -} - -.m-6 { - margin: 2rem !important; -} - -.mt-6, -.my-6 { - margin-top: 2rem !important; -} - -.mr-6, -.mx-6 { - margin-left: 2rem !important; -} - -.mb-6, -.my-6 { - margin-bottom: 2rem !important; -} - -.ml-6, -.mx-6 { - margin-right: 2rem !important; -} - -.m-7 { - margin: 3rem !important; -} - -.mt-7, -.my-7 { - margin-top: 3rem !important; -} - -.mr-7, -.mx-7 { - margin-left: 3rem !important; -} - -.mb-7, -.my-7 { - margin-bottom: 3rem !important; -} - -.ml-7, -.mx-7 { - margin-right: 3rem !important; -} - -.m-8 { - margin: 4rem !important; -} - -.mt-8, -.my-8 { - margin-top: 4rem !important; -} - -.mr-8, -.mx-8 { - margin-left: 4rem !important; -} - -.mb-8, -.my-8 { - margin-bottom: 4rem !important; -} - -.ml-8, -.mx-8 { - margin-right: 4rem !important; -} - -.m-9 { - margin: 6rem !important; -} - -.mt-9, -.my-9 { - margin-top: 6rem !important; -} - -.mr-9, -.mx-9 { - margin-left: 6rem !important; -} - -.mb-9, -.my-9 { - margin-bottom: 6rem !important; -} - -.ml-9, -.mx-9 { - margin-right: 6rem !important; -} - -.p-0 { - padding: 0 !important; -} - -.pt-0, -.py-0 { - padding-top: 0 !important; -} - -.pr-0, -.px-0 { - padding-left: 0 !important; -} - -.pb-0, -.py-0 { - padding-bottom: 0 !important; -} - -.pl-0, -.px-0 { - padding-right: 0 !important; -} - -.p-1 { - padding: 0.25rem !important; -} - -.pt-1, -.py-1 { - padding-top: 0.25rem !important; -} - -.pr-1, -.px-1 { - padding-left: 0.25rem !important; -} - -.pb-1, -.py-1 { - padding-bottom: 0.25rem !important; -} - -.pl-1, -.px-1 { - padding-right: 0.25rem !important; -} - -.p-2 { - padding: 0.5rem !important; -} - -.pt-2, -.py-2 { - padding-top: 0.5rem !important; -} - -.pr-2, -.px-2 { - padding-left: 0.5rem !important; -} - -.pb-2, -.py-2 { - padding-bottom: 0.5rem !important; -} - -.pl-2, -.px-2 { - padding-right: 0.5rem !important; -} - -.p-3 { - padding: 0.75rem !important; -} - -.pt-3, -.py-3 { - padding-top: 0.75rem !important; -} - -.pr-3, -.px-3 { - padding-left: 0.75rem !important; -} - -.pb-3, -.py-3 { - padding-bottom: 0.75rem !important; -} - -.pl-3, -.px-3 { - padding-right: 0.75rem !important; -} - -.p-4 { - padding: 1rem !important; -} - -.pt-4, -.py-4 { - padding-top: 1rem !important; -} - -.pr-4, -.px-4 { - padding-left: 1rem !important; -} - -.pb-4, -.py-4 { - padding-bottom: 1rem !important; -} - -.pl-4, -.px-4 { - padding-right: 1rem !important; -} - -.p-5 { - padding: 1.5rem !important; -} - -.pt-5, -.py-5 { - padding-top: 1.5rem !important; -} - -.pr-5, -.px-5 { - padding-left: 1.5rem !important; -} - -.pb-5, -.py-5 { - padding-bottom: 1.5rem !important; -} - -.pl-5, -.px-5 { - padding-right: 1.5rem !important; -} - -.p-6 { - padding: 2rem !important; -} - -.pt-6, -.py-6 { - padding-top: 2rem !important; -} - -.pr-6, -.px-6 { - padding-left: 2rem !important; -} - -.pb-6, -.py-6 { - padding-bottom: 2rem !important; -} - -.pl-6, -.px-6 { - padding-right: 2rem !important; -} - -.p-7 { - padding: 3rem !important; -} - -.pt-7, -.py-7 { - padding-top: 3rem !important; -} - -.pr-7, -.px-7 { - padding-left: 3rem !important; -} - -.pb-7, -.py-7 { - padding-bottom: 3rem !important; -} - -.pl-7, -.px-7 { - padding-right: 3rem !important; -} - -.p-8 { - padding: 4rem !important; -} - -.pt-8, -.py-8 { - padding-top: 4rem !important; -} - -.pr-8, -.px-8 { - padding-left: 4rem !important; -} - -.pb-8, -.py-8 { - padding-bottom: 4rem !important; -} - -.pl-8, -.px-8 { - padding-right: 4rem !important; -} - -.p-9 { - padding: 6rem !important; -} - -.pt-9, -.py-9 { - padding-top: 6rem !important; -} - -.pr-9, -.px-9 { - padding-left: 6rem !important; -} - -.pb-9, -.py-9 { - padding-bottom: 6rem !important; -} - -.pl-9, -.px-9 { - padding-right: 6rem !important; -} - -.m-auto { - margin: auto !important; -} - -.mt-auto, -.my-auto { - margin-top: auto !important; -} - -.mr-auto, -.mx-auto { - margin-left: auto !important; -} - -.mb-auto, -.my-auto { - margin-bottom: auto !important; -} - -.ml-auto, -.mx-auto { - margin-right: auto !important; -} - -@media (min-width: 576px) { - .m-sm-0 { - margin: 0 !important; - } - .mt-sm-0, - .my-sm-0 { - margin-top: 0 !important; - } - .mr-sm-0, - .mx-sm-0 { - margin-left: 0 !important; - } - .mb-sm-0, - .my-sm-0 { - margin-bottom: 0 !important; - } - .ml-sm-0, - .mx-sm-0 { - margin-right: 0 !important; - } - .m-sm-1 { - margin: 0.25rem !important; - } - .mt-sm-1, - .my-sm-1 { - margin-top: 0.25rem !important; - } - .mr-sm-1, - .mx-sm-1 { - margin-left: 0.25rem !important; - } - .mb-sm-1, - .my-sm-1 { - margin-bottom: 0.25rem !important; - } - .ml-sm-1, - .mx-sm-1 { - margin-right: 0.25rem !important; - } - .m-sm-2 { - margin: 0.5rem !important; - } - .mt-sm-2, - .my-sm-2 { - margin-top: 0.5rem !important; - } - .mr-sm-2, - .mx-sm-2 { - margin-left: 0.5rem !important; - } - .mb-sm-2, - .my-sm-2 { - margin-bottom: 0.5rem !important; - } - .ml-sm-2, - .mx-sm-2 { - margin-right: 0.5rem !important; - } - .m-sm-3 { - margin: 0.75rem !important; - } - .mt-sm-3, - .my-sm-3 { - margin-top: 0.75rem !important; - } - .mr-sm-3, - .mx-sm-3 { - margin-left: 0.75rem !important; - } - .mb-sm-3, - .my-sm-3 { - margin-bottom: 0.75rem !important; - } - .ml-sm-3, - .mx-sm-3 { - margin-right: 0.75rem !important; - } - .m-sm-4 { - margin: 1rem !important; - } - .mt-sm-4, - .my-sm-4 { - margin-top: 1rem !important; - } - .mr-sm-4, - .mx-sm-4 { - margin-left: 1rem !important; - } - .mb-sm-4, - .my-sm-4 { - margin-bottom: 1rem !important; - } - .ml-sm-4, - .mx-sm-4 { - margin-right: 1rem !important; - } - .m-sm-5 { - margin: 1.5rem !important; - } - .mt-sm-5, - .my-sm-5 { - margin-top: 1.5rem !important; - } - .mr-sm-5, - .mx-sm-5 { - margin-left: 1.5rem !important; - } - .mb-sm-5, - .my-sm-5 { - margin-bottom: 1.5rem !important; - } - .ml-sm-5, - .mx-sm-5 { - margin-right: 1.5rem !important; - } - .m-sm-6 { - margin: 2rem !important; - } - .mt-sm-6, - .my-sm-6 { - margin-top: 2rem !important; - } - .mr-sm-6, - .mx-sm-6 { - margin-left: 2rem !important; - } - .mb-sm-6, - .my-sm-6 { - margin-bottom: 2rem !important; - } - .ml-sm-6, - .mx-sm-6 { - margin-right: 2rem !important; - } - .m-sm-7 { - margin: 3rem !important; - } - .mt-sm-7, - .my-sm-7 { - margin-top: 3rem !important; - } - .mr-sm-7, - .mx-sm-7 { - margin-left: 3rem !important; - } - .mb-sm-7, - .my-sm-7 { - margin-bottom: 3rem !important; - } - .ml-sm-7, - .mx-sm-7 { - margin-right: 3rem !important; - } - .m-sm-8 { - margin: 4rem !important; - } - .mt-sm-8, - .my-sm-8 { - margin-top: 4rem !important; - } - .mr-sm-8, - .mx-sm-8 { - margin-left: 4rem !important; - } - .mb-sm-8, - .my-sm-8 { - margin-bottom: 4rem !important; - } - .ml-sm-8, - .mx-sm-8 { - margin-right: 4rem !important; - } - .m-sm-9 { - margin: 6rem !important; - } - .mt-sm-9, - .my-sm-9 { - margin-top: 6rem !important; - } - .mr-sm-9, - .mx-sm-9 { - margin-left: 6rem !important; - } - .mb-sm-9, - .my-sm-9 { - margin-bottom: 6rem !important; - } - .ml-sm-9, - .mx-sm-9 { - margin-right: 6rem !important; - } - .p-sm-0 { - padding: 0 !important; - } - .pt-sm-0, - .py-sm-0 { - padding-top: 0 !important; - } - .pr-sm-0, - .px-sm-0 { - padding-left: 0 !important; - } - .pb-sm-0, - .py-sm-0 { - padding-bottom: 0 !important; - } - .pl-sm-0, - .px-sm-0 { - padding-right: 0 !important; - } - .p-sm-1 { - padding: 0.25rem !important; - } - .pt-sm-1, - .py-sm-1 { - padding-top: 0.25rem !important; - } - .pr-sm-1, - .px-sm-1 { - padding-left: 0.25rem !important; - } - .pb-sm-1, - .py-sm-1 { - padding-bottom: 0.25rem !important; - } - .pl-sm-1, - .px-sm-1 { - padding-right: 0.25rem !important; - } - .p-sm-2 { - padding: 0.5rem !important; - } - .pt-sm-2, - .py-sm-2 { - padding-top: 0.5rem !important; - } - .pr-sm-2, - .px-sm-2 { - padding-left: 0.5rem !important; - } - .pb-sm-2, - .py-sm-2 { - padding-bottom: 0.5rem !important; - } - .pl-sm-2, - .px-sm-2 { - padding-right: 0.5rem !important; - } - .p-sm-3 { - padding: 0.75rem !important; - } - .pt-sm-3, - .py-sm-3 { - padding-top: 0.75rem !important; - } - .pr-sm-3, - .px-sm-3 { - padding-left: 0.75rem !important; - } - .pb-sm-3, - .py-sm-3 { - padding-bottom: 0.75rem !important; - } - .pl-sm-3, - .px-sm-3 { - padding-right: 0.75rem !important; - } - .p-sm-4 { - padding: 1rem !important; - } - .pt-sm-4, - .py-sm-4 { - padding-top: 1rem !important; - } - .pr-sm-4, - .px-sm-4 { - padding-left: 1rem !important; - } - .pb-sm-4, - .py-sm-4 { - padding-bottom: 1rem !important; - } - .pl-sm-4, - .px-sm-4 { - padding-right: 1rem !important; - } - .p-sm-5 { - padding: 1.5rem !important; - } - .pt-sm-5, - .py-sm-5 { - padding-top: 1.5rem !important; - } - .pr-sm-5, - .px-sm-5 { - padding-left: 1.5rem !important; - } - .pb-sm-5, - .py-sm-5 { - padding-bottom: 1.5rem !important; - } - .pl-sm-5, - .px-sm-5 { - padding-right: 1.5rem !important; - } - .p-sm-6 { - padding: 2rem !important; - } - .pt-sm-6, - .py-sm-6 { - padding-top: 2rem !important; - } - .pr-sm-6, - .px-sm-6 { - padding-left: 2rem !important; - } - .pb-sm-6, - .py-sm-6 { - padding-bottom: 2rem !important; - } - .pl-sm-6, - .px-sm-6 { - padding-right: 2rem !important; - } - .p-sm-7 { - padding: 3rem !important; - } - .pt-sm-7, - .py-sm-7 { - padding-top: 3rem !important; - } - .pr-sm-7, - .px-sm-7 { - padding-left: 3rem !important; - } - .pb-sm-7, - .py-sm-7 { - padding-bottom: 3rem !important; - } - .pl-sm-7, - .px-sm-7 { - padding-right: 3rem !important; - } - .p-sm-8 { - padding: 4rem !important; - } - .pt-sm-8, - .py-sm-8 { - padding-top: 4rem !important; - } - .pr-sm-8, - .px-sm-8 { - padding-left: 4rem !important; - } - .pb-sm-8, - .py-sm-8 { - padding-bottom: 4rem !important; - } - .pl-sm-8, - .px-sm-8 { - padding-right: 4rem !important; - } - .p-sm-9 { - padding: 6rem !important; - } - .pt-sm-9, - .py-sm-9 { - padding-top: 6rem !important; - } - .pr-sm-9, - .px-sm-9 { - padding-left: 6rem !important; - } - .pb-sm-9, - .py-sm-9 { - padding-bottom: 6rem !important; - } - .pl-sm-9, - .px-sm-9 { - padding-right: 6rem !important; - } - .m-sm-auto { - margin: auto !important; - } - .mt-sm-auto, - .my-sm-auto { - margin-top: auto !important; - } - .mr-sm-auto, - .mx-sm-auto { - margin-left: auto !important; - } - .mb-sm-auto, - .my-sm-auto { - margin-bottom: auto !important; - } - .ml-sm-auto, - .mx-sm-auto { - margin-right: auto !important; - } -} - -@media (min-width: 768px) { - .m-md-0 { - margin: 0 !important; - } - .mt-md-0, - .my-md-0 { - margin-top: 0 !important; - } - .mr-md-0, - .mx-md-0 { - margin-left: 0 !important; - } - .mb-md-0, - .my-md-0 { - margin-bottom: 0 !important; - } - .ml-md-0, - .mx-md-0 { - margin-right: 0 !important; - } - .m-md-1 { - margin: 0.25rem !important; - } - .mt-md-1, - .my-md-1 { - margin-top: 0.25rem !important; - } - .mr-md-1, - .mx-md-1 { - margin-left: 0.25rem !important; - } - .mb-md-1, - .my-md-1 { - margin-bottom: 0.25rem !important; - } - .ml-md-1, - .mx-md-1 { - margin-right: 0.25rem !important; - } - .m-md-2 { - margin: 0.5rem !important; - } - .mt-md-2, - .my-md-2 { - margin-top: 0.5rem !important; - } - .mr-md-2, - .mx-md-2 { - margin-left: 0.5rem !important; - } - .mb-md-2, - .my-md-2 { - margin-bottom: 0.5rem !important; - } - .ml-md-2, - .mx-md-2 { - margin-right: 0.5rem !important; - } - .m-md-3 { - margin: 0.75rem !important; - } - .mt-md-3, - .my-md-3 { - margin-top: 0.75rem !important; - } - .mr-md-3, - .mx-md-3 { - margin-left: 0.75rem !important; - } - .mb-md-3, - .my-md-3 { - margin-bottom: 0.75rem !important; - } - .ml-md-3, - .mx-md-3 { - margin-right: 0.75rem !important; - } - .m-md-4 { - margin: 1rem !important; - } - .mt-md-4, - .my-md-4 { - margin-top: 1rem !important; - } - .mr-md-4, - .mx-md-4 { - margin-left: 1rem !important; - } - .mb-md-4, - .my-md-4 { - margin-bottom: 1rem !important; - } - .ml-md-4, - .mx-md-4 { - margin-right: 1rem !important; - } - .m-md-5 { - margin: 1.5rem !important; - } - .mt-md-5, - .my-md-5 { - margin-top: 1.5rem !important; - } - .mr-md-5, - .mx-md-5 { - margin-left: 1.5rem !important; - } - .mb-md-5, - .my-md-5 { - margin-bottom: 1.5rem !important; - } - .ml-md-5, - .mx-md-5 { - margin-right: 1.5rem !important; - } - .m-md-6 { - margin: 2rem !important; - } - .mt-md-6, - .my-md-6 { - margin-top: 2rem !important; - } - .mr-md-6, - .mx-md-6 { - margin-left: 2rem !important; - } - .mb-md-6, - .my-md-6 { - margin-bottom: 2rem !important; - } - .ml-md-6, - .mx-md-6 { - margin-right: 2rem !important; - } - .m-md-7 { - margin: 3rem !important; - } - .mt-md-7, - .my-md-7 { - margin-top: 3rem !important; - } - .mr-md-7, - .mx-md-7 { - margin-left: 3rem !important; - } - .mb-md-7, - .my-md-7 { - margin-bottom: 3rem !important; - } - .ml-md-7, - .mx-md-7 { - margin-right: 3rem !important; - } - .m-md-8 { - margin: 4rem !important; - } - .mt-md-8, - .my-md-8 { - margin-top: 4rem !important; - } - .mr-md-8, - .mx-md-8 { - margin-left: 4rem !important; - } - .mb-md-8, - .my-md-8 { - margin-bottom: 4rem !important; - } - .ml-md-8, - .mx-md-8 { - margin-right: 4rem !important; - } - .m-md-9 { - margin: 6rem !important; - } - .mt-md-9, - .my-md-9 { - margin-top: 6rem !important; - } - .mr-md-9, - .mx-md-9 { - margin-left: 6rem !important; - } - .mb-md-9, - .my-md-9 { - margin-bottom: 6rem !important; - } - .ml-md-9, - .mx-md-9 { - margin-right: 6rem !important; - } - .p-md-0 { - padding: 0 !important; - } - .pt-md-0, - .py-md-0 { - padding-top: 0 !important; - } - .pr-md-0, - .px-md-0 { - padding-left: 0 !important; - } - .pb-md-0, - .py-md-0 { - padding-bottom: 0 !important; - } - .pl-md-0, - .px-md-0 { - padding-right: 0 !important; - } - .p-md-1 { - padding: 0.25rem !important; - } - .pt-md-1, - .py-md-1 { - padding-top: 0.25rem !important; - } - .pr-md-1, - .px-md-1 { - padding-left: 0.25rem !important; - } - .pb-md-1, - .py-md-1 { - padding-bottom: 0.25rem !important; - } - .pl-md-1, - .px-md-1 { - padding-right: 0.25rem !important; - } - .p-md-2 { - padding: 0.5rem !important; - } - .pt-md-2, - .py-md-2 { - padding-top: 0.5rem !important; - } - .pr-md-2, - .px-md-2 { - padding-left: 0.5rem !important; - } - .pb-md-2, - .py-md-2 { - padding-bottom: 0.5rem !important; - } - .pl-md-2, - .px-md-2 { - padding-right: 0.5rem !important; - } - .p-md-3 { - padding: 0.75rem !important; - } - .pt-md-3, - .py-md-3 { - padding-top: 0.75rem !important; - } - .pr-md-3, - .px-md-3 { - padding-left: 0.75rem !important; - } - .pb-md-3, - .py-md-3 { - padding-bottom: 0.75rem !important; - } - .pl-md-3, - .px-md-3 { - padding-right: 0.75rem !important; - } - .p-md-4 { - padding: 1rem !important; - } - .pt-md-4, - .py-md-4 { - padding-top: 1rem !important; - } - .pr-md-4, - .px-md-4 { - padding-left: 1rem !important; - } - .pb-md-4, - .py-md-4 { - padding-bottom: 1rem !important; - } - .pl-md-4, - .px-md-4 { - padding-right: 1rem !important; - } - .p-md-5 { - padding: 1.5rem !important; - } - .pt-md-5, - .py-md-5 { - padding-top: 1.5rem !important; - } - .pr-md-5, - .px-md-5 { - padding-left: 1.5rem !important; - } - .pb-md-5, - .py-md-5 { - padding-bottom: 1.5rem !important; - } - .pl-md-5, - .px-md-5 { - padding-right: 1.5rem !important; - } - .p-md-6 { - padding: 2rem !important; - } - .pt-md-6, - .py-md-6 { - padding-top: 2rem !important; - } - .pr-md-6, - .px-md-6 { - padding-left: 2rem !important; - } - .pb-md-6, - .py-md-6 { - padding-bottom: 2rem !important; - } - .pl-md-6, - .px-md-6 { - padding-right: 2rem !important; - } - .p-md-7 { - padding: 3rem !important; - } - .pt-md-7, - .py-md-7 { - padding-top: 3rem !important; - } - .pr-md-7, - .px-md-7 { - padding-left: 3rem !important; - } - .pb-md-7, - .py-md-7 { - padding-bottom: 3rem !important; - } - .pl-md-7, - .px-md-7 { - padding-right: 3rem !important; - } - .p-md-8 { - padding: 4rem !important; - } - .pt-md-8, - .py-md-8 { - padding-top: 4rem !important; - } - .pr-md-8, - .px-md-8 { - padding-left: 4rem !important; - } - .pb-md-8, - .py-md-8 { - padding-bottom: 4rem !important; - } - .pl-md-8, - .px-md-8 { - padding-right: 4rem !important; - } - .p-md-9 { - padding: 6rem !important; - } - .pt-md-9, - .py-md-9 { - padding-top: 6rem !important; - } - .pr-md-9, - .px-md-9 { - padding-left: 6rem !important; - } - .pb-md-9, - .py-md-9 { - padding-bottom: 6rem !important; - } - .pl-md-9, - .px-md-9 { - padding-right: 6rem !important; - } - .m-md-auto { - margin: auto !important; - } - .mt-md-auto, - .my-md-auto { - margin-top: auto !important; - } - .mr-md-auto, - .mx-md-auto { - margin-left: auto !important; - } - .mb-md-auto, - .my-md-auto { - margin-bottom: auto !important; - } - .ml-md-auto, - .mx-md-auto { - margin-right: auto !important; - } -} - -@media (min-width: 992px) { - .m-lg-0 { - margin: 0 !important; - } - .mt-lg-0, - .my-lg-0 { - margin-top: 0 !important; - } - .mr-lg-0, - .mx-lg-0 { - margin-left: 0 !important; - } - .mb-lg-0, - .my-lg-0 { - margin-bottom: 0 !important; - } - .ml-lg-0, - .mx-lg-0 { - margin-right: 0 !important; - } - .m-lg-1 { - margin: 0.25rem !important; - } - .mt-lg-1, - .my-lg-1 { - margin-top: 0.25rem !important; - } - .mr-lg-1, - .mx-lg-1 { - margin-left: 0.25rem !important; - } - .mb-lg-1, - .my-lg-1 { - margin-bottom: 0.25rem !important; - } - .ml-lg-1, - .mx-lg-1 { - margin-right: 0.25rem !important; - } - .m-lg-2 { - margin: 0.5rem !important; - } - .mt-lg-2, - .my-lg-2 { - margin-top: 0.5rem !important; - } - .mr-lg-2, - .mx-lg-2 { - margin-left: 0.5rem !important; - } - .mb-lg-2, - .my-lg-2 { - margin-bottom: 0.5rem !important; - } - .ml-lg-2, - .mx-lg-2 { - margin-right: 0.5rem !important; - } - .m-lg-3 { - margin: 0.75rem !important; - } - .mt-lg-3, - .my-lg-3 { - margin-top: 0.75rem !important; - } - .mr-lg-3, - .mx-lg-3 { - margin-left: 0.75rem !important; - } - .mb-lg-3, - .my-lg-3 { - margin-bottom: 0.75rem !important; - } - .ml-lg-3, - .mx-lg-3 { - margin-right: 0.75rem !important; - } - .m-lg-4 { - margin: 1rem !important; - } - .mt-lg-4, - .my-lg-4 { - margin-top: 1rem !important; - } - .mr-lg-4, - .mx-lg-4 { - margin-left: 1rem !important; - } - .mb-lg-4, - .my-lg-4 { - margin-bottom: 1rem !important; - } - .ml-lg-4, - .mx-lg-4 { - margin-right: 1rem !important; - } - .m-lg-5 { - margin: 1.5rem !important; - } - .mt-lg-5, - .my-lg-5 { - margin-top: 1.5rem !important; - } - .mr-lg-5, - .mx-lg-5 { - margin-left: 1.5rem !important; - } - .mb-lg-5, - .my-lg-5 { - margin-bottom: 1.5rem !important; - } - .ml-lg-5, - .mx-lg-5 { - margin-right: 1.5rem !important; - } - .m-lg-6 { - margin: 2rem !important; - } - .mt-lg-6, - .my-lg-6 { - margin-top: 2rem !important; - } - .mr-lg-6, - .mx-lg-6 { - margin-left: 2rem !important; - } - .mb-lg-6, - .my-lg-6 { - margin-bottom: 2rem !important; - } - .ml-lg-6, - .mx-lg-6 { - margin-right: 2rem !important; - } - .m-lg-7 { - margin: 3rem !important; - } - .mt-lg-7, - .my-lg-7 { - margin-top: 3rem !important; - } - .mr-lg-7, - .mx-lg-7 { - margin-left: 3rem !important; - } - .mb-lg-7, - .my-lg-7 { - margin-bottom: 3rem !important; - } - .ml-lg-7, - .mx-lg-7 { - margin-right: 3rem !important; - } - .m-lg-8 { - margin: 4rem !important; - } - .mt-lg-8, - .my-lg-8 { - margin-top: 4rem !important; - } - .mr-lg-8, - .mx-lg-8 { - margin-left: 4rem !important; - } - .mb-lg-8, - .my-lg-8 { - margin-bottom: 4rem !important; - } - .ml-lg-8, - .mx-lg-8 { - margin-right: 4rem !important; - } - .m-lg-9 { - margin: 6rem !important; - } - .mt-lg-9, - .my-lg-9 { - margin-top: 6rem !important; - } - .mr-lg-9, - .mx-lg-9 { - margin-left: 6rem !important; - } - .mb-lg-9, - .my-lg-9 { - margin-bottom: 6rem !important; - } - .ml-lg-9, - .mx-lg-9 { - margin-right: 6rem !important; - } - .p-lg-0 { - padding: 0 !important; - } - .pt-lg-0, - .py-lg-0 { - padding-top: 0 !important; - } - .pr-lg-0, - .px-lg-0 { - padding-left: 0 !important; - } - .pb-lg-0, - .py-lg-0 { - padding-bottom: 0 !important; - } - .pl-lg-0, - .px-lg-0 { - padding-right: 0 !important; - } - .p-lg-1 { - padding: 0.25rem !important; - } - .pt-lg-1, - .py-lg-1 { - padding-top: 0.25rem !important; - } - .pr-lg-1, - .px-lg-1 { - padding-left: 0.25rem !important; - } - .pb-lg-1, - .py-lg-1 { - padding-bottom: 0.25rem !important; - } - .pl-lg-1, - .px-lg-1 { - padding-right: 0.25rem !important; - } - .p-lg-2 { - padding: 0.5rem !important; - } - .pt-lg-2, - .py-lg-2 { - padding-top: 0.5rem !important; - } - .pr-lg-2, - .px-lg-2 { - padding-left: 0.5rem !important; - } - .pb-lg-2, - .py-lg-2 { - padding-bottom: 0.5rem !important; - } - .pl-lg-2, - .px-lg-2 { - padding-right: 0.5rem !important; - } - .p-lg-3 { - padding: 0.75rem !important; - } - .pt-lg-3, - .py-lg-3 { - padding-top: 0.75rem !important; - } - .pr-lg-3, - .px-lg-3 { - padding-left: 0.75rem !important; - } - .pb-lg-3, - .py-lg-3 { - padding-bottom: 0.75rem !important; - } - .pl-lg-3, - .px-lg-3 { - padding-right: 0.75rem !important; - } - .p-lg-4 { - padding: 1rem !important; - } - .pt-lg-4, - .py-lg-4 { - padding-top: 1rem !important; - } - .pr-lg-4, - .px-lg-4 { - padding-left: 1rem !important; - } - .pb-lg-4, - .py-lg-4 { - padding-bottom: 1rem !important; - } - .pl-lg-4, - .px-lg-4 { - padding-right: 1rem !important; - } - .p-lg-5 { - padding: 1.5rem !important; - } - .pt-lg-5, - .py-lg-5 { - padding-top: 1.5rem !important; - } - .pr-lg-5, - .px-lg-5 { - padding-left: 1.5rem !important; - } - .pb-lg-5, - .py-lg-5 { - padding-bottom: 1.5rem !important; - } - .pl-lg-5, - .px-lg-5 { - padding-right: 1.5rem !important; - } - .p-lg-6 { - padding: 2rem !important; - } - .pt-lg-6, - .py-lg-6 { - padding-top: 2rem !important; - } - .pr-lg-6, - .px-lg-6 { - padding-left: 2rem !important; - } - .pb-lg-6, - .py-lg-6 { - padding-bottom: 2rem !important; - } - .pl-lg-6, - .px-lg-6 { - padding-right: 2rem !important; - } - .p-lg-7 { - padding: 3rem !important; - } - .pt-lg-7, - .py-lg-7 { - padding-top: 3rem !important; - } - .pr-lg-7, - .px-lg-7 { - padding-left: 3rem !important; - } - .pb-lg-7, - .py-lg-7 { - padding-bottom: 3rem !important; - } - .pl-lg-7, - .px-lg-7 { - padding-right: 3rem !important; - } - .p-lg-8 { - padding: 4rem !important; - } - .pt-lg-8, - .py-lg-8 { - padding-top: 4rem !important; - } - .pr-lg-8, - .px-lg-8 { - padding-left: 4rem !important; - } - .pb-lg-8, - .py-lg-8 { - padding-bottom: 4rem !important; - } - .pl-lg-8, - .px-lg-8 { - padding-right: 4rem !important; - } - .p-lg-9 { - padding: 6rem !important; - } - .pt-lg-9, - .py-lg-9 { - padding-top: 6rem !important; - } - .pr-lg-9, - .px-lg-9 { - padding-left: 6rem !important; - } - .pb-lg-9, - .py-lg-9 { - padding-bottom: 6rem !important; - } - .pl-lg-9, - .px-lg-9 { - padding-right: 6rem !important; - } - .m-lg-auto { - margin: auto !important; - } - .mt-lg-auto, - .my-lg-auto { - margin-top: auto !important; - } - .mr-lg-auto, - .mx-lg-auto { - margin-left: auto !important; - } - .mb-lg-auto, - .my-lg-auto { - margin-bottom: auto !important; - } - .ml-lg-auto, - .mx-lg-auto { - margin-right: auto !important; - } -} - -@media (min-width: 1280px) { - .m-xl-0 { - margin: 0 !important; - } - .mt-xl-0, - .my-xl-0 { - margin-top: 0 !important; - } - .mr-xl-0, - .mx-xl-0 { - margin-left: 0 !important; - } - .mb-xl-0, - .my-xl-0 { - margin-bottom: 0 !important; - } - .ml-xl-0, - .mx-xl-0 { - margin-right: 0 !important; - } - .m-xl-1 { - margin: 0.25rem !important; - } - .mt-xl-1, - .my-xl-1 { - margin-top: 0.25rem !important; - } - .mr-xl-1, - .mx-xl-1 { - margin-left: 0.25rem !important; - } - .mb-xl-1, - .my-xl-1 { - margin-bottom: 0.25rem !important; - } - .ml-xl-1, - .mx-xl-1 { - margin-right: 0.25rem !important; - } - .m-xl-2 { - margin: 0.5rem !important; - } - .mt-xl-2, - .my-xl-2 { - margin-top: 0.5rem !important; - } - .mr-xl-2, - .mx-xl-2 { - margin-left: 0.5rem !important; - } - .mb-xl-2, - .my-xl-2 { - margin-bottom: 0.5rem !important; - } - .ml-xl-2, - .mx-xl-2 { - margin-right: 0.5rem !important; - } - .m-xl-3 { - margin: 0.75rem !important; - } - .mt-xl-3, - .my-xl-3 { - margin-top: 0.75rem !important; - } - .mr-xl-3, - .mx-xl-3 { - margin-left: 0.75rem !important; - } - .mb-xl-3, - .my-xl-3 { - margin-bottom: 0.75rem !important; - } - .ml-xl-3, - .mx-xl-3 { - margin-right: 0.75rem !important; - } - .m-xl-4 { - margin: 1rem !important; - } - .mt-xl-4, - .my-xl-4 { - margin-top: 1rem !important; - } - .mr-xl-4, - .mx-xl-4 { - margin-left: 1rem !important; - } - .mb-xl-4, - .my-xl-4 { - margin-bottom: 1rem !important; - } - .ml-xl-4, - .mx-xl-4 { - margin-right: 1rem !important; - } - .m-xl-5 { - margin: 1.5rem !important; - } - .mt-xl-5, - .my-xl-5 { - margin-top: 1.5rem !important; - } - .mr-xl-5, - .mx-xl-5 { - margin-left: 1.5rem !important; - } - .mb-xl-5, - .my-xl-5 { - margin-bottom: 1.5rem !important; - } - .ml-xl-5, - .mx-xl-5 { - margin-right: 1.5rem !important; - } - .m-xl-6 { - margin: 2rem !important; - } - .mt-xl-6, - .my-xl-6 { - margin-top: 2rem !important; - } - .mr-xl-6, - .mx-xl-6 { - margin-left: 2rem !important; - } - .mb-xl-6, - .my-xl-6 { - margin-bottom: 2rem !important; - } - .ml-xl-6, - .mx-xl-6 { - margin-right: 2rem !important; - } - .m-xl-7 { - margin: 3rem !important; - } - .mt-xl-7, - .my-xl-7 { - margin-top: 3rem !important; - } - .mr-xl-7, - .mx-xl-7 { - margin-left: 3rem !important; - } - .mb-xl-7, - .my-xl-7 { - margin-bottom: 3rem !important; - } - .ml-xl-7, - .mx-xl-7 { - margin-right: 3rem !important; - } - .m-xl-8 { - margin: 4rem !important; - } - .mt-xl-8, - .my-xl-8 { - margin-top: 4rem !important; - } - .mr-xl-8, - .mx-xl-8 { - margin-left: 4rem !important; - } - .mb-xl-8, - .my-xl-8 { - margin-bottom: 4rem !important; - } - .ml-xl-8, - .mx-xl-8 { - margin-right: 4rem !important; - } - .m-xl-9 { - margin: 6rem !important; - } - .mt-xl-9, - .my-xl-9 { - margin-top: 6rem !important; - } - .mr-xl-9, - .mx-xl-9 { - margin-left: 6rem !important; - } - .mb-xl-9, - .my-xl-9 { - margin-bottom: 6rem !important; - } - .ml-xl-9, - .mx-xl-9 { - margin-right: 6rem !important; - } - .p-xl-0 { - padding: 0 !important; - } - .pt-xl-0, - .py-xl-0 { - padding-top: 0 !important; - } - .pr-xl-0, - .px-xl-0 { - padding-left: 0 !important; - } - .pb-xl-0, - .py-xl-0 { - padding-bottom: 0 !important; - } - .pl-xl-0, - .px-xl-0 { - padding-right: 0 !important; - } - .p-xl-1 { - padding: 0.25rem !important; - } - .pt-xl-1, - .py-xl-1 { - padding-top: 0.25rem !important; - } - .pr-xl-1, - .px-xl-1 { - padding-left: 0.25rem !important; - } - .pb-xl-1, - .py-xl-1 { - padding-bottom: 0.25rem !important; - } - .pl-xl-1, - .px-xl-1 { - padding-right: 0.25rem !important; - } - .p-xl-2 { - padding: 0.5rem !important; - } - .pt-xl-2, - .py-xl-2 { - padding-top: 0.5rem !important; - } - .pr-xl-2, - .px-xl-2 { - padding-left: 0.5rem !important; - } - .pb-xl-2, - .py-xl-2 { - padding-bottom: 0.5rem !important; - } - .pl-xl-2, - .px-xl-2 { - padding-right: 0.5rem !important; - } - .p-xl-3 { - padding: 0.75rem !important; - } - .pt-xl-3, - .py-xl-3 { - padding-top: 0.75rem !important; - } - .pr-xl-3, - .px-xl-3 { - padding-left: 0.75rem !important; - } - .pb-xl-3, - .py-xl-3 { - padding-bottom: 0.75rem !important; - } - .pl-xl-3, - .px-xl-3 { - padding-right: 0.75rem !important; - } - .p-xl-4 { - padding: 1rem !important; - } - .pt-xl-4, - .py-xl-4 { - padding-top: 1rem !important; - } - .pr-xl-4, - .px-xl-4 { - padding-left: 1rem !important; - } - .pb-xl-4, - .py-xl-4 { - padding-bottom: 1rem !important; - } - .pl-xl-4, - .px-xl-4 { - padding-right: 1rem !important; - } - .p-xl-5 { - padding: 1.5rem !important; - } - .pt-xl-5, - .py-xl-5 { - padding-top: 1.5rem !important; - } - .pr-xl-5, - .px-xl-5 { - padding-left: 1.5rem !important; - } - .pb-xl-5, - .py-xl-5 { - padding-bottom: 1.5rem !important; - } - .pl-xl-5, - .px-xl-5 { - padding-right: 1.5rem !important; - } - .p-xl-6 { - padding: 2rem !important; - } - .pt-xl-6, - .py-xl-6 { - padding-top: 2rem !important; - } - .pr-xl-6, - .px-xl-6 { - padding-left: 2rem !important; - } - .pb-xl-6, - .py-xl-6 { - padding-bottom: 2rem !important; - } - .pl-xl-6, - .px-xl-6 { - padding-right: 2rem !important; - } - .p-xl-7 { - padding: 3rem !important; - } - .pt-xl-7, - .py-xl-7 { - padding-top: 3rem !important; - } - .pr-xl-7, - .px-xl-7 { - padding-left: 3rem !important; - } - .pb-xl-7, - .py-xl-7 { - padding-bottom: 3rem !important; - } - .pl-xl-7, - .px-xl-7 { - padding-right: 3rem !important; - } - .p-xl-8 { - padding: 4rem !important; - } - .pt-xl-8, - .py-xl-8 { - padding-top: 4rem !important; - } - .pr-xl-8, - .px-xl-8 { - padding-left: 4rem !important; - } - .pb-xl-8, - .py-xl-8 { - padding-bottom: 4rem !important; - } - .pl-xl-8, - .px-xl-8 { - padding-right: 4rem !important; - } - .p-xl-9 { - padding: 6rem !important; - } - .pt-xl-9, - .py-xl-9 { - padding-top: 6rem !important; - } - .pr-xl-9, - .px-xl-9 { - padding-left: 6rem !important; - } - .pb-xl-9, - .py-xl-9 { - padding-bottom: 6rem !important; - } - .pl-xl-9, - .px-xl-9 { - padding-right: 6rem !important; - } - .m-xl-auto { - margin: auto !important; - } - .mt-xl-auto, - .my-xl-auto { - margin-top: auto !important; - } - .mr-xl-auto, - .mx-xl-auto { - margin-left: auto !important; - } - .mb-xl-auto, - .my-xl-auto { - margin-bottom: auto !important; - } - .ml-xl-auto, - .mx-xl-auto { - margin-right: auto !important; - } -} - -.text-monospace { - font-family: Monaco, Consolas, "Liberation Mono", "Courier New", monospace; -} - -.text-justify { - text-align: justify !important; -} - -.text-nowrap { - white-space: nowrap !important; -} - -.text-truncate { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.text-left { - text-align: right !important; -} - -.text-right { - text-align: left !important; -} - -.text-center { - text-align: center !important; -} - -@media (min-width: 576px) { - .text-sm-left { - text-align: right !important; - } - .text-sm-right { - text-align: left !important; - } - .text-sm-center { - text-align: center !important; - } -} - -@media (min-width: 768px) { - .text-md-left { - text-align: right !important; - } - .text-md-right { - text-align: left !important; - } - .text-md-center { - text-align: center !important; - } -} - -@media (min-width: 992px) { - .text-lg-left { - text-align: right !important; - } - .text-lg-right { - text-align: left !important; - } - .text-lg-center { - text-align: center !important; - } -} - -@media (min-width: 1280px) { - .text-xl-left { - text-align: right !important; - } - .text-xl-right { - text-align: left !important; - } - .text-xl-center { - text-align: center !important; - } -} - -.text-lowercase { - text-transform: lowercase !important; -} - -.text-uppercase { - text-transform: uppercase !important; -} - -.text-capitalize { - text-transform: capitalize !important; -} - -.font-weight-light { - font-weight: 300 !important; -} - -.font-weight-normal { - font-weight: 400 !important; -} - -.font-weight-bold { - font-weight: 700 !important; -} - -.font-italic { - font-style: italic !important; -} - -.text-white { - color: #fff !important; -} - -.text-primary { - color: #467fcf !important; -} - -a.text-primary:hover, a.text-primary:focus { - color: #2f66b3 !important; -} - -.text-secondary { - color: #868e96 !important; -} - -a.text-secondary:hover, a.text-secondary:focus { - color: #6c757d !important; -} - -.text-success { - color: #5eba00 !important; -} - -a.text-success:hover, a.text-success:focus { - color: #448700 !important; -} - -.text-info { - color: #45aaf2 !important; -} - -a.text-info:hover, a.text-info:focus { - color: #1594ef !important; -} - -.text-warning { - color: #f1c40f !important; -} - -a.text-warning:hover, a.text-warning:focus { - color: #c29d0b !important; -} - -.text-danger { - color: #cd201f !important; -} - -a.text-danger:hover, a.text-danger:focus { - color: #a11918 !important; -} - -.text-light { - color: #f8f9fa !important; -} - -a.text-light:hover, a.text-light:focus { - color: #dae0e5 !important; -} - -.text-dark { - color: #343a40 !important; -} - -a.text-dark:hover, a.text-dark:focus { - color: #1d2124 !important; -} - -.text-body { - color: #495057 !important; -} - -.text-muted { - color: #9aa0ac !important; -} - -.text-black-50 { - color: rgba(0, 0, 0, 0.5) !important; -} - -.text-white-50 { - color: rgba(255, 255, 255, 0.5) !important; -} - -.text-hide { - font: 0/0 a; - color: transparent; - text-shadow: none; - background-color: transparent; - border: 0; -} - -.visible { - visibility: visible !important; -} - -.invisible { - visibility: hidden !important; -} - -@media print { - *, - *::before, - *::after { - text-shadow: none !important; - box-shadow: none !important; - } - a:not(.btn) { - text-decoration: underline; - } - abbr[title]::after { - content: " (" attr(title) ")"; - } - pre { - white-space: pre-wrap !important; - } - pre, - blockquote { - border: 1px solid #adb5bd; - page-break-inside: avoid; - } - thead { - display: table-header-group; - } - tr, - img { - page-break-inside: avoid; - } - p, - h2, - h3 { - orphans: 3; - widows: 3; - } - h2, - h3 { - page-break-after: avoid; - } - @page { - size: a3; - } - body { - min-width: 992px !important; - } - .container { - min-width: 992px !important; - } - .navbar { - display: none; - } - .badge { - border: 1px solid #000; - } - .table, .text-wrap table { - border-collapse: collapse !important; - } - - .table td, - .text-wrap table td, .table th, .text-wrap table th { - background-color: #fff !important; - } - .table-bordered th, .text-wrap table th, - .table-bordered td, - .text-wrap table td { - border: 1px solid #dee2e6 !important; - } -} - -html { - font-size: 16px; - height: 100%; - direction: rtl; -} - -body { - direction: rtl; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - -webkit-tap-highlight-color: transparent; - -webkit-text-size-adjust: none; - -ms-touch-action: manipulation; - touch-action: manipulation; - -webkit-font-feature-settings: "liga" 0; - font-feature-settings: "liga" 0; - height: 100%; - overflow-y: scroll; - position: relative; -} - -@media print { - body { - background: none; - } -} - -body *::-webkit-scrollbar { - width: 6px; - height: 6px; - transition: .3s background; -} - -body *::-webkit-scrollbar-thumb { - background: #ced4da; -} - -body *:hover::-webkit-scrollbar-thumb { - background: #adb5bd; -} - -.lead { - line-height: 1.4; -} - -a { - -webkit-text-decoration-skip: ink; - text-decoration-skip: ink; -} - -h1 a, h2 a, h3 a, h4 a, h5 a, h6 a, -.h1 a, .h2 a, .h3 a, .h4 a, .h5 a, .h6 a { - color: inherit; -} - -strong, -b { - font-weight: 600; -} - -p, -ul, -ol, -blockquote { - margin-bottom: 1em; -} - -blockquote { - font-style: italic; - color: #6e7687; - padding-right: 2rem; - border-right: 2px solid rgba(0, 40, 100, 0.12); -} - -blockquote p { - margin-bottom: 1rem; -} - -blockquote cite { - display: block; - text-align: left; -} - -blockquote cite:before { - content: '— '; -} - -code { - background: rgba(0, 0, 0, 0.025); - border: 1px solid rgba(0, 0, 0, 0.05); - border-radius: 3px; - padding: 3px; -} - -pre code { - padding: 0; - border-radius: 0; - border: none; - background: none; -} - -hr { - margin-top: 2rem; - margin-bottom: 2rem; -} - -pre { - color: #343a40; - padding: 1rem; - overflow: auto; - font-size: 85%; - line-height: 1.45; - background-color: #f8fafc; - border-radius: 3px; - -moz-tab-size: 4; - -o-tab-size: 4; - tab-size: 4; - text-shadow: 0 1px white; - -webkit-hyphens: none; - -moz-hyphens: none; - -ms-hyphens: none; - hyphens: none; -} - -img { - max-width: 100%; -} - -.text-wrap { - font-size: 1rem; - line-height: 1.66; -} - -.text-wrap > :first-child { - margin-top: 0; -} - -.text-wrap > :last-child { - margin-bottom: 0; -} - -.text-wrap > h1, .text-wrap > h2, .text-wrap > h3, .text-wrap > h4, .text-wrap > h5, .text-wrap > h6 { - margin-top: 1em; -} - -.section-nav { - background-color: #f8f9fa; - margin: 1rem 0; - padding: .5rem 1rem; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; - list-style: none; -} - -.section-nav:before { - content: 'Table of contents:'; - display: block; - font-weight: 600; -} - -@media print { - .container { - max-width: none; - } -} - -.row-cards > .col, -.row-cards > [class*='col-'] { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; -} - -.row-deck > .col, -.row-deck > [class*='col-'] { - display: -ms-flexbox; - display: flex; - -ms-flex-align: stretch; - align-items: stretch; -} - -.row-deck > .col .card, -.row-deck > [class*='col-'] .card { - -ms-flex: 1 1 auto; - flex: 1 1 auto; -} - -.col-text { - max-width: 48rem; -} - -.col-login { - max-width: 24rem; -} - -.gutters-0 { - margin-left: 0; - margin-right: 0; -} - -.gutters-0 > .col, -.gutters-0 > [class*="col-"] { - padding-left: 0; - padding-right: 0; -} - -.gutters-0 .card { - margin-bottom: 0; -} - -.gutters-xs { - margin-left: -0.25rem; - margin-right: -0.25rem; -} - -.gutters-xs > .col, -.gutters-xs > [class*="col-"] { - padding-left: 0.25rem; - padding-right: 0.25rem; -} - -.gutters-xs .card { - margin-bottom: 0.5rem; -} - -.gutters-sm { - margin-left: -0.5rem; - margin-right: -0.5rem; -} - -.gutters-sm > .col, -.gutters-sm > [class*="col-"] { - padding-left: 0.5rem; - padding-right: 0.5rem; -} - -.gutters-sm .card { - margin-bottom: 1rem; -} - -.gutters-lg { - margin-left: -1rem; - margin-right: -1rem; -} - -.gutters-lg > .col, -.gutters-lg > [class*="col-"] { - padding-left: 1rem; - padding-right: 1rem; -} - -.gutters-lg .card { - margin-bottom: 2rem; -} - -.gutters-xl { - margin-left: -1.5rem; - margin-right: -1.5rem; -} - -.gutters-xl > .col, -.gutters-xl > [class*="col-"] { - padding-left: 1.5rem; - padding-right: 1.5rem; -} - -.gutters-xl .card { - margin-bottom: 3rem; -} - -.page { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - -ms-flex-pack: center; - justify-content: center; - min-height: 100%; -} - -body.fixed-header .page { - padding-top: 4.5rem; -} - -@media (min-width: 1600px) { - body.aside-opened .page { - margin-left: 22rem; - } -} - -.page-main { - -ms-flex: 1 1 auto; - flex: 1 1 auto; -} - -.page-content { - margin: .75rem 0; -} - -@media (min-width: 768px) { - .page-content { - margin: 1.5rem 0; - } -} - -.page-header { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - margin: 1.5rem 0 1.5rem; - -ms-flex-wrap: wrap; - flex-wrap: wrap; -} - -.page-title { - margin: 0; - font-size: 1.5rem; - font-weight: 400; - line-height: 2.5rem; -} - -.page-title-icon { - color: #9aa0ac; - font-size: 1.25rem; -} - -.page-subtitle { - font-size: 0.8125rem; - color: #6e7687; - margin-right: 2rem; -} - -.page-subtitle a { - color: inherit; -} - -.page-options { - margin-right: auto; -} - -.page-breadcrumb { - -ms-flex-preferred-size: 100%; - flex-basis: 100%; -} - -.page-description { - margin: .25rem 0 0; - color: #6e7687; -} - -.page-description a { - color: inherit; -} - -.page-single { - -ms-flex: 1 1 auto; - flex: 1 1 auto; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - padding: 1rem 0; -} - -.content-heading { - font-weight: 400; - margin: 2rem 0 1.5rem; - font-size: 1.25rem; - line-height: 1.25; -} - -.content-heading:first-child { - margin-top: 0; -} - -.aside { - position: fixed; - top: 0; - left: 0; - bottom: 0; - width: 22rem; - background: #ffffff; - border-right: 1px solid rgba(0, 40, 100, 0.12); - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - z-index: 100; - visibility: hidden; - box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.05); -} - -@media (min-width: 1600px) { - body.aside-opened .aside { - visibility: visible; - } -} - -.aside-body { - padding: 1.5rem; - -ms-flex: 1 1 auto; - flex: 1 1 auto; - overflow: auto; -} - -.aside-footer { - padding: 1rem 1.5rem; - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.aside-header { - padding: 1rem 1.5rem; - border-bottom: 1px solid rgba(0, 40, 100, 0.12); -} - -.header { - padding-top: .75rem; - padding-bottom: .75rem; - background: #fff; - border-bottom: 1px solid rgba(0, 40, 100, 0.12); -} - -body.fixed-header .header { - position: fixed; - top: 0; - right: 0; - left: 0; - z-index: 1030; -} - -@media print { - .header { - display: none; - } -} - -.header .dropdown-menu { - margin-top: .75rem; -} - -.nav-unread { - position: absolute; - top: .25rem; - left: .25rem; - background: #cd201f; - width: .5rem; - height: .5rem; - border-radius: 50%; -} - -.header-brand { - color: inherit; - margin-left: 1rem; - font-size: 1.25rem; - white-space: nowrap; - font-weight: 600; - padding: 0; - transition: .3s opacity; - line-height: 2rem; -} - -.header-brand:hover { - opacity: .8; - color: inherit; - text-decoration: none; -} - -.header-brand-img { - height: 2rem; - line-height: 2rem; - vertical-align: bottom; - margin-left: .5rem; - width: auto; -} - -.header-avatar { - width: 2rem; - height: 2rem; - display: inline-block; - vertical-align: bottom; - border-radius: 50%; -} - -.header-btn { - display: inline-block; - width: 2rem; - height: 2rem; - line-height: 2rem; - text-align: center; - font-size: 1rem; -} - -.header-btn.has-new { - position: relative; -} - -.header-btn.has-new:before { - content: ''; - width: 6px; - height: 6px; - background: #cd201f; - position: absolute; - top: 4px; - left: 4px; - border-radius: 50%; -} - -.header-toggler { - width: 2rem; - height: 2rem; - position: relative; - color: #9aa0ac; -} - -.header-toggler:hover { - color: #6e7687; -} - -.header-toggler-icon { - position: absolute; - width: 1rem; - height: 2px; - color: inherit; - background: currentColor; - border-radius: 3px; - top: 50%; - right: 50%; - margin: -2px -.5rem 0 0; - box-shadow: 0 5px currentColor, 0 -5px currentColor; -} - -.footer { - background: #fff; - border-top: 1px solid rgba(0, 40, 100, 0.12); - font-size: 0.875rem; - padding: 1.25rem 0; - color: #9aa0ac; -} - -.footer a:not(.btn) { - color: #6e7687; -} - -@media print { - .footer { - display: none; - } -} - -.bg-blue-lightest { - background-color: #edf2fa !important; -} - -a.bg-blue-lightest:hover, a.bg-blue-lightest:focus, -button.bg-blue-lightest:hover, -button.bg-blue-lightest:focus { - background-color: #c5d5ef !important; -} - -.bg-blue-lighter { - background-color: #c8d9f1 !important; -} - -a.bg-blue-lighter:hover, a.bg-blue-lighter:focus, -button.bg-blue-lighter:hover, -button.bg-blue-lighter:focus { - background-color: #9fbde7 !important; -} - -.bg-blue-light { - background-color: #7ea5dd !important; -} - -a.bg-blue-light:hover, a.bg-blue-light:focus, -button.bg-blue-light:hover, -button.bg-blue-light:focus { - background-color: #5689d2 !important; -} - -.bg-blue-dark { - background-color: #3866a6 !important; -} - -a.bg-blue-dark:hover, a.bg-blue-dark:focus, -button.bg-blue-dark:hover, -button.bg-blue-dark:focus { - background-color: #2b4f80 !important; -} - -.bg-blue-darker { - background-color: #1c3353 !important; -} - -a.bg-blue-darker:hover, a.bg-blue-darker:focus, -button.bg-blue-darker:hover, -button.bg-blue-darker:focus { - background-color: #0f1c2d !important; -} - -.bg-blue-darkest { - background-color: #0e1929 !important; -} - -a.bg-blue-darkest:hover, a.bg-blue-darkest:focus, -button.bg-blue-darkest:hover, -button.bg-blue-darkest:focus { - background-color: #010203 !important; -} - -.bg-indigo-lightest { - background-color: #f0f1fa !important; -} - -a.bg-indigo-lightest:hover, a.bg-indigo-lightest:focus, -button.bg-indigo-lightest:hover, -button.bg-indigo-lightest:focus { - background-color: #cacded !important; -} - -.bg-indigo-lighter { - background-color: #d1d5f0 !important; -} - -a.bg-indigo-lighter:hover, a.bg-indigo-lighter:focus, -button.bg-indigo-lighter:hover, -button.bg-indigo-lighter:focus { - background-color: #abb2e3 !important; -} - -.bg-indigo-light { - background-color: #939edc !important; -} - -a.bg-indigo-light:hover, a.bg-indigo-light:focus, -button.bg-indigo-light:hover, -button.bg-indigo-light:focus { - background-color: #6c7bd0 !important; -} - -.bg-indigo-dark { - background-color: #515da4 !important; -} - -a.bg-indigo-dark:hover, a.bg-indigo-dark:focus, -button.bg-indigo-dark:hover, -button.bg-indigo-dark:focus { - background-color: #404a82 !important; -} - -.bg-indigo-darker { - background-color: #282e52 !important; -} - -a.bg-indigo-darker:hover, a.bg-indigo-darker:focus, -button.bg-indigo-darker:hover, -button.bg-indigo-darker:focus { - background-color: #171b30 !important; -} - -.bg-indigo-darkest { - background-color: #141729 !important; -} - -a.bg-indigo-darkest:hover, a.bg-indigo-darkest:focus, -button.bg-indigo-darkest:hover, -button.bg-indigo-darkest:focus { - background-color: #030407 !important; -} - -.bg-purple-lightest { - background-color: #f6effd !important; -} - -a.bg-purple-lightest:hover, a.bg-purple-lightest:focus, -button.bg-purple-lightest:hover, -button.bg-purple-lightest:focus { - background-color: #ddc2f7 !important; -} - -.bg-purple-lighter { - background-color: #e4cff9 !important; -} - -a.bg-purple-lighter:hover, a.bg-purple-lighter:focus, -button.bg-purple-lighter:hover, -button.bg-purple-lighter:focus { - background-color: #cba2f3 !important; -} - -.bg-purple-light { - background-color: #c08ef0 !important; -} - -a.bg-purple-light:hover, a.bg-purple-light:focus, -button.bg-purple-light:hover, -button.bg-purple-light:focus { - background-color: #a761ea !important; -} - -.bg-purple-dark { - background-color: #844bbb !important; -} - -a.bg-purple-dark:hover, a.bg-purple-dark:focus, -button.bg-purple-dark:hover, -button.bg-purple-dark:focus { - background-color: #6a3a99 !important; -} - -.bg-purple-darker { - background-color: #42265e !important; -} - -a.bg-purple-darker:hover, a.bg-purple-darker:focus, -button.bg-purple-darker:hover, -button.bg-purple-darker:focus { - background-color: #29173a !important; -} - -.bg-purple-darkest { - background-color: #21132f !important; -} - -a.bg-purple-darkest:hover, a.bg-purple-darkest:focus, -button.bg-purple-darkest:hover, -button.bg-purple-darkest:focus { - background-color: #08040b !important; -} - -.bg-pink-lightest { - background-color: #fef0f5 !important; -} - -a.bg-pink-lightest:hover, a.bg-pink-lightest:focus, -button.bg-pink-lightest:hover, -button.bg-pink-lightest:focus { - background-color: #fbc0d5 !important; -} - -.bg-pink-lighter { - background-color: #fcd3e1 !important; -} - -a.bg-pink-lighter:hover, a.bg-pink-lighter:focus, -button.bg-pink-lighter:hover, -button.bg-pink-lighter:focus { - background-color: #f9a3c0 !important; -} - -.bg-pink-light { - background-color: #f999b9 !important; -} - -a.bg-pink-light:hover, a.bg-pink-light:focus, -button.bg-pink-light:hover, -button.bg-pink-light:focus { - background-color: #f66998 !important; -} - -.bg-pink-dark { - background-color: #c5577c !important; -} - -a.bg-pink-dark:hover, a.bg-pink-dark:focus, -button.bg-pink-dark:hover, -button.bg-pink-dark:focus { - background-color: #ad3c62 !important; -} - -.bg-pink-darker { - background-color: #622c3e !important; -} - -a.bg-pink-darker:hover, a.bg-pink-darker:focus, -button.bg-pink-darker:hover, -button.bg-pink-darker:focus { - background-color: #3f1c28 !important; -} - -.bg-pink-darkest { - background-color: #31161f !important; -} - -a.bg-pink-darkest:hover, a.bg-pink-darkest:focus, -button.bg-pink-darkest:hover, -button.bg-pink-darkest:focus { - background-color: #0e0609 !important; -} - -.bg-red-lightest { - background-color: #fae9e9 !important; -} - -a.bg-red-lightest:hover, a.bg-red-lightest:focus, -button.bg-red-lightest:hover, -button.bg-red-lightest:focus { - background-color: #f1bfbf !important; -} - -.bg-red-lighter { - background-color: #f0bcbc !important; -} - -a.bg-red-lighter:hover, a.bg-red-lighter:focus, -button.bg-red-lighter:hover, -button.bg-red-lighter:focus { - background-color: #e79292 !important; -} - -.bg-red-light { - background-color: #dc6362 !important; -} - -a.bg-red-light:hover, a.bg-red-light:focus, -button.bg-red-light:hover, -button.bg-red-light:focus { - background-color: #d33a38 !important; -} - -.bg-red-dark { - background-color: #a41a19 !important; -} - -a.bg-red-dark:hover, a.bg-red-dark:focus, -button.bg-red-dark:hover, -button.bg-red-dark:focus { - background-color: #781312 !important; -} - -.bg-red-darker { - background-color: #520d0c !important; -} - -a.bg-red-darker:hover, a.bg-red-darker:focus, -button.bg-red-darker:hover, -button.bg-red-darker:focus { - background-color: #260605 !important; -} - -.bg-red-darkest { - background-color: #290606 !important; -} - -a.bg-red-darkest:hover, a.bg-red-darkest:focus, -button.bg-red-darkest:hover, -button.bg-red-darkest:focus { - background-color: black !important; -} - -.bg-orange-lightest { - background-color: #fff5ec !important; -} - -a.bg-orange-lightest:hover, a.bg-orange-lightest:focus, -button.bg-orange-lightest:hover, -button.bg-orange-lightest:focus { - background-color: peachpuff !important; -} - -.bg-orange-lighter { - background-color: #fee0c7 !important; -} - -a.bg-orange-lighter:hover, a.bg-orange-lighter:focus, -button.bg-orange-lighter:hover, -button.bg-orange-lighter:focus { - background-color: #fdc495 !important; -} - -.bg-orange-light { - background-color: #feb67c !important; -} - -a.bg-orange-light:hover, a.bg-orange-light:focus, -button.bg-orange-light:hover, -button.bg-orange-light:focus { - background-color: #fe9a49 !important; -} - -.bg-orange-dark { - background-color: #ca7836 !important; -} - -a.bg-orange-dark:hover, a.bg-orange-dark:focus, -button.bg-orange-dark:hover, -button.bg-orange-dark:focus { - background-color: #a2602b !important; -} - -.bg-orange-darker { - background-color: #653c1b !important; -} - -a.bg-orange-darker:hover, a.bg-orange-darker:focus, -button.bg-orange-darker:hover, -button.bg-orange-darker:focus { - background-color: #3d2410 !important; -} - -.bg-orange-darkest { - background-color: #331e0e !important; -} - -a.bg-orange-darkest:hover, a.bg-orange-darkest:focus, -button.bg-orange-darkest:hover, -button.bg-orange-darkest:focus { - background-color: #0b0603 !important; -} - -.bg-yellow-lightest { - background-color: #fef9e7 !important; -} - -a.bg-yellow-lightest:hover, a.bg-yellow-lightest:focus, -button.bg-yellow-lightest:hover, -button.bg-yellow-lightest:focus { - background-color: #fcedb6 !important; -} - -.bg-yellow-lighter { - background-color: #fbedb7 !important; -} - -a.bg-yellow-lighter:hover, a.bg-yellow-lighter:focus, -button.bg-yellow-lighter:hover, -button.bg-yellow-lighter:focus { - background-color: #f8e187 !important; -} - -.bg-yellow-light { - background-color: #f5d657 !important; -} - -a.bg-yellow-light:hover, a.bg-yellow-light:focus, -button.bg-yellow-light:hover, -button.bg-yellow-light:focus { - background-color: #f2ca27 !important; -} - -.bg-yellow-dark { - background-color: #c19d0c !important; -} - -a.bg-yellow-dark:hover, a.bg-yellow-dark:focus, -button.bg-yellow-dark:hover, -button.bg-yellow-dark:focus { - background-color: #917609 !important; -} - -.bg-yellow-darker { - background-color: #604e06 !important; -} - -a.bg-yellow-darker:hover, a.bg-yellow-darker:focus, -button.bg-yellow-darker:hover, -button.bg-yellow-darker:focus { - background-color: #302703 !important; -} - -.bg-yellow-darkest { - background-color: #302703 !important; -} - -a.bg-yellow-darkest:hover, a.bg-yellow-darkest:focus, -button.bg-yellow-darkest:hover, -button.bg-yellow-darkest:focus { - background-color: black !important; -} - -.bg-green-lightest { - background-color: #eff8e6 !important; -} - -a.bg-green-lightest:hover, a.bg-green-lightest:focus, -button.bg-green-lightest:hover, -button.bg-green-lightest:focus { - background-color: #d6edbe !important; -} - -.bg-green-lighter { - background-color: #cfeab3 !important; -} - -a.bg-green-lighter:hover, a.bg-green-lighter:focus, -button.bg-green-lighter:hover, -button.bg-green-lighter:focus { - background-color: #b6df8b !important; -} - -.bg-green-light { - background-color: #8ecf4d !important; -} - -a.bg-green-light:hover, a.bg-green-light:focus, -button.bg-green-light:hover, -button.bg-green-light:focus { - background-color: #75b831 !important; -} - -.bg-green-dark { - background-color: #4b9500 !important; -} - -a.bg-green-dark:hover, a.bg-green-dark:focus, -button.bg-green-dark:hover, -button.bg-green-dark:focus { - background-color: #316200 !important; -} - -.bg-green-darker { - background-color: #264a00 !important; -} - -a.bg-green-darker:hover, a.bg-green-darker:focus, -button.bg-green-darker:hover, -button.bg-green-darker:focus { - background-color: #0c1700 !important; -} - -.bg-green-darkest { - background-color: #132500 !important; -} - -a.bg-green-darkest:hover, a.bg-green-darkest:focus, -button.bg-green-darkest:hover, -button.bg-green-darkest:focus { - background-color: black !important; -} - -.bg-teal-lightest { - background-color: #eafaf8 !important; -} - -a.bg-teal-lightest:hover, a.bg-teal-lightest:focus, -button.bg-teal-lightest:hover, -button.bg-teal-lightest:focus { - background-color: #c1f0ea !important; -} - -.bg-teal-lighter { - background-color: #bfefea !important; -} - -a.bg-teal-lighter:hover, a.bg-teal-lighter:focus, -button.bg-teal-lighter:hover, -button.bg-teal-lighter:focus { - background-color: #96e5dd !important; -} - -.bg-teal-light { - background-color: #6bdbcf !important; -} - -a.bg-teal-light:hover, a.bg-teal-light:focus, -button.bg-teal-light:hover, -button.bg-teal-light:focus { - background-color: #42d1c2 !important; -} - -.bg-teal-dark { - background-color: #22a295 !important; -} - -a.bg-teal-dark:hover, a.bg-teal-dark:focus, -button.bg-teal-dark:hover, -button.bg-teal-dark:focus { - background-color: #19786e !important; -} - -.bg-teal-darker { - background-color: #11514a !important; -} - -a.bg-teal-darker:hover, a.bg-teal-darker:focus, -button.bg-teal-darker:hover, -button.bg-teal-darker:focus { - background-color: #082723 !important; -} - -.bg-teal-darkest { - background-color: #092925 !important; -} - -a.bg-teal-darkest:hover, a.bg-teal-darkest:focus, -button.bg-teal-darkest:hover, -button.bg-teal-darkest:focus { - background-color: black !important; -} - -.bg-cyan-lightest { - background-color: #e8f6f8 !important; -} - -a.bg-cyan-lightest:hover, a.bg-cyan-lightest:focus, -button.bg-cyan-lightest:hover, -button.bg-cyan-lightest:focus { - background-color: #c1e7ec !important; -} - -.bg-cyan-lighter { - background-color: #b9e3ea !important; -} - -a.bg-cyan-lighter:hover, a.bg-cyan-lighter:focus, -button.bg-cyan-lighter:hover, -button.bg-cyan-lighter:focus { - background-color: #92d3de !important; -} - -.bg-cyan-light { - background-color: #5dbecd !important; -} - -a.bg-cyan-light:hover, a.bg-cyan-light:focus, -button.bg-cyan-light:hover, -button.bg-cyan-light:focus { - background-color: #3aabbd !important; -} - -.bg-cyan-dark { - background-color: #128293 !important; -} - -a.bg-cyan-dark:hover, a.bg-cyan-dark:focus, -button.bg-cyan-dark:hover, -button.bg-cyan-dark:focus { - background-color: #0c5a66 !important; -} - -.bg-cyan-darker { - background-color: #09414a !important; -} - -a.bg-cyan-darker:hover, a.bg-cyan-darker:focus, -button.bg-cyan-darker:hover, -button.bg-cyan-darker:focus { - background-color: #03191d !important; -} - -.bg-cyan-darkest { - background-color: #052025 !important; -} - -a.bg-cyan-darkest:hover, a.bg-cyan-darkest:focus, -button.bg-cyan-darkest:hover, -button.bg-cyan-darkest:focus { - background-color: black !important; -} - -.bg-white-lightest { - background-color: white !important; -} - -a.bg-white-lightest:hover, a.bg-white-lightest:focus, -button.bg-white-lightest:hover, -button.bg-white-lightest:focus { - background-color: #e6e5e5 !important; -} - -.bg-white-lighter { - background-color: white !important; -} - -a.bg-white-lighter:hover, a.bg-white-lighter:focus, -button.bg-white-lighter:hover, -button.bg-white-lighter:focus { - background-color: #e6e5e5 !important; -} - -.bg-white-light { - background-color: white !important; -} - -a.bg-white-light:hover, a.bg-white-light:focus, -button.bg-white-light:hover, -button.bg-white-light:focus { - background-color: #e6e5e5 !important; -} - -.bg-white-dark { - background-color: #cccccc !important; -} - -a.bg-white-dark:hover, a.bg-white-dark:focus, -button.bg-white-dark:hover, -button.bg-white-dark:focus { - background-color: #b3b2b2 !important; -} - -.bg-white-darker { - background-color: #666666 !important; -} - -a.bg-white-darker:hover, a.bg-white-darker:focus, -button.bg-white-darker:hover, -button.bg-white-darker:focus { - background-color: #4d4c4c !important; -} - -.bg-white-darkest { - background-color: #333333 !important; -} - -a.bg-white-darkest:hover, a.bg-white-darkest:focus, -button.bg-white-darkest:hover, -button.bg-white-darkest:focus { - background-color: #1a1919 !important; -} - -.bg-gray-lightest { - background-color: #f3f4f5 !important; -} - -a.bg-gray-lightest:hover, a.bg-gray-lightest:focus, -button.bg-gray-lightest:hover, -button.bg-gray-lightest:focus { - background-color: #d7dbde !important; -} - -.bg-gray-lighter { - background-color: #dbdde0 !important; -} - -a.bg-gray-lighter:hover, a.bg-gray-lighter:focus, -button.bg-gray-lighter:hover, -button.bg-gray-lighter:focus { - background-color: #c0c3c8 !important; -} - -.bg-gray-light { - background-color: #aab0b6 !important; -} - -a.bg-gray-light:hover, a.bg-gray-light:focus, -button.bg-gray-light:hover, -button.bg-gray-light:focus { - background-color: #8f979e !important; -} - -.bg-gray-dark { - background-color: #6b7278 !important; -} - -a.bg-gray-dark:hover, a.bg-gray-dark:focus, -button.bg-gray-dark:hover, -button.bg-gray-dark:focus { - background-color: #53585d !important; -} - -.bg-gray-darker { - background-color: #36393c !important; -} - -a.bg-gray-darker:hover, a.bg-gray-darker:focus, -button.bg-gray-darker:hover, -button.bg-gray-darker:focus { - background-color: #1e2021 !important; -} - -.bg-gray-darkest { - background-color: #1b1c1e !important; -} - -a.bg-gray-darkest:hover, a.bg-gray-darkest:focus, -button.bg-gray-darkest:hover, -button.bg-gray-darkest:focus { - background-color: #030303 !important; -} - -.bg-gray-dark-lightest { - background-color: #ebebec !important; -} - -a.bg-gray-dark-lightest:hover, a.bg-gray-dark-lightest:focus, -button.bg-gray-dark-lightest:hover, -button.bg-gray-dark-lightest:focus { - background-color: #d1d1d3 !important; -} - -.bg-gray-dark-lighter { - background-color: #c2c4c6 !important; -} - -a.bg-gray-dark-lighter:hover, a.bg-gray-dark-lighter:focus, -button.bg-gray-dark-lighter:hover, -button.bg-gray-dark-lighter:focus { - background-color: #a8abad !important; -} - -.bg-gray-dark-light { - background-color: #717579 !important; -} - -a.bg-gray-dark-light:hover, a.bg-gray-dark-light:focus, -button.bg-gray-dark-light:hover, -button.bg-gray-dark-light:focus { - background-color: #585c5f !important; -} - -.bg-gray-dark-dark { - background-color: #2a2e33 !important; -} - -a.bg-gray-dark-dark:hover, a.bg-gray-dark-dark:focus, -button.bg-gray-dark-dark:hover, -button.bg-gray-dark-dark:focus { - background-color: #131517 !important; -} - -.bg-gray-dark-darker { - background-color: #15171a !important; -} - -a.bg-gray-dark-darker:hover, a.bg-gray-dark-darker:focus, -button.bg-gray-dark-darker:hover, -button.bg-gray-dark-darker:focus { - background-color: black !important; -} - -.bg-gray-dark-darkest { - background-color: #0a0c0d !important; -} - -a.bg-gray-dark-darkest:hover, a.bg-gray-dark-darkest:focus, -button.bg-gray-dark-darkest:hover, -button.bg-gray-dark-darkest:focus { - background-color: black !important; -} - -.bg-azure-lightest { - background-color: #ecf7fe !important; -} - -a.bg-azure-lightest:hover, a.bg-azure-lightest:focus, -button.bg-azure-lightest:hover, -button.bg-azure-lightest:focus { - background-color: #bce3fb !important; -} - -.bg-azure-lighter { - background-color: #c7e6fb !important; -} - -a.bg-azure-lighter:hover, a.bg-azure-lighter:focus, -button.bg-azure-lighter:hover, -button.bg-azure-lighter:focus { - background-color: #97d1f8 !important; -} - -.bg-azure-light { - background-color: #7dc4f6 !important; -} - -a.bg-azure-light:hover, a.bg-azure-light:focus, -button.bg-azure-light:hover, -button.bg-azure-light:focus { - background-color: #4daef3 !important; -} - -.bg-azure-dark { - background-color: #3788c2 !important; -} - -a.bg-azure-dark:hover, a.bg-azure-dark:focus, -button.bg-azure-dark:hover, -button.bg-azure-dark:focus { - background-color: #2c6c9a !important; -} - -.bg-azure-darker { - background-color: #1c4461 !important; -} - -a.bg-azure-darker:hover, a.bg-azure-darker:focus, -button.bg-azure-darker:hover, -button.bg-azure-darker:focus { - background-color: #112839 !important; -} - -.bg-azure-darkest { - background-color: #0e2230 !important; -} - -a.bg-azure-darkest:hover, a.bg-azure-darkest:focus, -button.bg-azure-darkest:hover, -button.bg-azure-darkest:focus { - background-color: #020609 !important; -} - -.bg-lime-lightest { - background-color: #f2fbeb !important; -} - -a.bg-lime-lightest:hover, a.bg-lime-lightest:focus, -button.bg-lime-lightest:hover, -button.bg-lime-lightest:focus { - background-color: #d6f3c1 !important; -} - -.bg-lime-lighter { - background-color: #d7f2c2 !important; -} - -a.bg-lime-lighter:hover, a.bg-lime-lighter:focus, -button.bg-lime-lighter:hover, -button.bg-lime-lighter:focus { - background-color: #bbe998 !important; -} - -.bg-lime-light { - background-color: #a3e072 !important; -} - -a.bg-lime-light:hover, a.bg-lime-light:focus, -button.bg-lime-light:hover, -button.bg-lime-light:focus { - background-color: #88d748 !important; -} - -.bg-lime-dark { - background-color: #62a82a !important; -} - -a.bg-lime-dark:hover, a.bg-lime-dark:focus, -button.bg-lime-dark:hover, -button.bg-lime-dark:focus { - background-color: #4a7f20 !important; -} - -.bg-lime-darker { - background-color: #315415 !important; -} - -a.bg-lime-darker:hover, a.bg-lime-darker:focus, -button.bg-lime-darker:hover, -button.bg-lime-darker:focus { - background-color: #192b0b !important; -} - -.bg-lime-darkest { - background-color: #192a0b !important; -} - -a.bg-lime-darkest:hover, a.bg-lime-darkest:focus, -button.bg-lime-darkest:hover, -button.bg-lime-darkest:focus { - background-color: #010200 !important; -} - -.display-1 i, -.display-2 i, -.display-3 i, -.display-4 i { - vertical-align: baseline; - font-size: 0.815em; -} - -.text-inherit { - color: inherit !important; -} - -.text-default { - color: #495057 !important; -} - -.text-muted-dark { - color: #6e7687 !important; -} - -.tracking-tight { - letter-spacing: -0.05em !important; -} - -.tracking-normal { - letter-spacing: 0 !important; -} - -.tracking-wide { - letter-spacing: 0.05em !important; -} - -.leading-none { - line-height: 1 !important; -} - -.leading-tight { - line-height: 1.25 !important; -} - -.leading-normal { - line-height: 1.5 !important; -} - -.leading-loose { - line-height: 2 !important; -} - -.bg-blue { - background-color: #467fcf !important; -} - -a.bg-blue:hover, a.bg-blue:focus, -button.bg-blue:hover, -button.bg-blue:focus { - background-color: #2f66b3 !important; -} - -.text-blue { - color: #467fcf !important; -} - -.bg-indigo { - background-color: #6574cd !important; -} - -a.bg-indigo:hover, a.bg-indigo:focus, -button.bg-indigo:hover, -button.bg-indigo:focus { - background-color: #3f51c1 !important; -} - -.text-indigo { - color: #6574cd !important; -} - -.bg-purple { - background-color: #a55eea !important; -} - -a.bg-purple:hover, a.bg-purple:focus, -button.bg-purple:hover, -button.bg-purple:focus { - background-color: #8c31e4 !important; -} - -.text-purple { - color: #a55eea !important; -} - -.bg-pink { - background-color: #f66d9b !important; -} - -a.bg-pink:hover, a.bg-pink:focus, -button.bg-pink:hover, -button.bg-pink:focus { - background-color: #f33d7a !important; -} - -.text-pink { - color: #f66d9b !important; -} - -.bg-red { - background-color: #cd201f !important; -} - -a.bg-red:hover, a.bg-red:focus, -button.bg-red:hover, -button.bg-red:focus { - background-color: #a11918 !important; -} - -.text-red { - color: #cd201f !important; -} - -.bg-orange { - background-color: #fd9644 !important; -} - -a.bg-orange:hover, a.bg-orange:focus, -button.bg-orange:hover, -button.bg-orange:focus { - background-color: #fc7a12 !important; -} - -.text-orange { - color: #fd9644 !important; -} - -.bg-yellow { - background-color: #f1c40f !important; -} - -a.bg-yellow:hover, a.bg-yellow:focus, -button.bg-yellow:hover, -button.bg-yellow:focus { - background-color: #c29d0b !important; -} - -.text-yellow { - color: #f1c40f !important; -} - -.bg-green { - background-color: #5eba00 !important; -} - -a.bg-green:hover, a.bg-green:focus, -button.bg-green:hover, -button.bg-green:focus { - background-color: #448700 !important; -} - -.text-green { - color: #5eba00 !important; -} - -.bg-teal { - background-color: #2bcbba !important; -} - -a.bg-teal:hover, a.bg-teal:focus, -button.bg-teal:hover, -button.bg-teal:focus { - background-color: #22a193 !important; -} - -.text-teal { - color: #2bcbba !important; -} - -.bg-cyan { - background-color: #17a2b8 !important; -} - -a.bg-cyan:hover, a.bg-cyan:focus, -button.bg-cyan:hover, -button.bg-cyan:focus { - background-color: #117a8b !important; -} - -.text-cyan { - color: #17a2b8 !important; -} - -.bg-white { - background-color: #fff !important; -} - -a.bg-white:hover, a.bg-white:focus, -button.bg-white:hover, -button.bg-white:focus { - background-color: #e6e5e5 !important; -} - -.text-white { - color: #fff !important; -} - -.bg-gray { - background-color: #868e96 !important; -} - -a.bg-gray:hover, a.bg-gray:focus, -button.bg-gray:hover, -button.bg-gray:focus { - background-color: #6c757d !important; -} - -.text-gray { - color: #868e96 !important; -} - -.bg-gray-dark { - background-color: #343a40 !important; -} - -a.bg-gray-dark:hover, a.bg-gray-dark:focus, -button.bg-gray-dark:hover, -button.bg-gray-dark:focus { - background-color: #1d2124 !important; -} - -.text-gray-dark { - color: #343a40 !important; -} - -.bg-azure { - background-color: #45aaf2 !important; -} - -a.bg-azure:hover, a.bg-azure:focus, -button.bg-azure:hover, -button.bg-azure:focus { - background-color: #1594ef !important; -} - -.text-azure { - color: #45aaf2 !important; -} - -.bg-lime { - background-color: #7bd235 !important; -} - -a.bg-lime:hover, a.bg-lime:focus, -button.bg-lime:hover, -button.bg-lime:focus { - background-color: #63ad27 !important; -} - -.text-lime { - color: #7bd235 !important; -} - -.icon { - color: #9aa0ac !important; -} - -.icon i { - vertical-align: -1px; -} - -a.icon { - text-decoration: none; - cursor: pointer; -} - -a.icon:hover { - color: #495057 !important; -} - -.o-auto { - overflow: auto !important; -} - -.o-hidden { - overflow: hidden !important; -} - -.shadow { - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; -} - -.shadow-none { - box-shadow: none !important; -} - -.nav-link, -.nav-item { - padding: 0 .75rem; - min-width: 2rem; - transition: .3s color; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - cursor: pointer; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; -} - -.nav-link .badge, -.nav-item .badge { - position: absolute; - top: 0; - left: 0; - padding: .2rem .25rem; - min-width: 1rem; -} - -.nav-tabs { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - color: #9aa0ac; - margin: 0 -.75rem; -} - -.nav-tabs .nav-link { - border: 0; - color: inherit; - border-bottom: 1px solid transparent; - margin-bottom: -1px; - transition: .3s border-color; - font-weight: 400; - padding: 1rem 0; -} - -.nav-tabs .nav-link:hover:not(.disabled) { - border-color: #6e7687; - color: #6e7687; -} - -.nav-tabs .nav-link.active { - border-color: #467fcf; - color: #467fcf; - background: transparent; -} - -.nav-tabs .nav-link.disabled { - opacity: .4; - cursor: default; - pointer-events: none; -} - -.nav-tabs .nav-item { - margin-bottom: 0; - position: relative; -} - -.nav-tabs .nav-item i { - margin-left: .25rem; - line-height: 1; - font-size: 0.875rem; - width: 0.875rem; - vertical-align: baseline; - display: inline-block; -} - -.nav-tabs .nav-item:hover .nav-submenu { - display: block; -} - -.nav-tabs .nav-submenu { - display: none; - position: absolute; - background: #fff; - border: 1px solid rgba(0, 40, 100, 0.12); - border-top: none; - z-index: 10; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); - min-width: 10rem; - border-radius: 0 0 3px 3px; -} - -.nav-tabs .nav-submenu .nav-item { - display: block; - padding: .5rem 1rem; - color: #9aa0ac; - margin: 0 !important; - cursor: pointer; - transition: .3s background; -} - -.nav-tabs .nav-submenu .nav-item.active { - color: #467fcf; -} - -.nav-tabs .nav-submenu .nav-item:hover { - color: #6e7687; - text-decoration: none; - background: rgba(0, 0, 0, 0.024); -} - -.btn { - cursor: pointer; - font-weight: 600; - letter-spacing: .03em; - font-size: 0.8125rem; - min-width: 2.375rem; -} - -.btn i { - font-size: 1rem; - vertical-align: -2px; -} - -.btn-icon { - padding-right: .5rem; - padding-left: .5rem; - text-align: center; -} - -.btn-secondary { - color: #495057; - background-color: #fff; - border-color: rgba(0, 40, 100, 0.12); - box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.05); -} - -.btn-secondary:hover { - color: #495057; - background-color: #f6f6f6; - border-color: rgba(0, 20, 49, 0.12); -} - -.btn-secondary:focus, .btn-secondary.focus { - box-shadow: 0 0 0 2px rgba(0, 40, 100, 0.5); -} - -.btn-secondary.disabled, .btn-secondary:disabled { - color: #495057; - background-color: #fff; - border-color: rgba(0, 40, 100, 0.12); -} - -.btn-secondary:not(:disabled):not(.disabled):active, .btn-secondary:not(:disabled):not(.disabled).active, -.show > .btn-secondary.dropdown-toggle { - color: #495057; - background-color: #e6e5e5; - border-color: rgba(0, 15, 36, 0.12); -} - -.btn-secondary:not(:disabled):not(.disabled):active:focus, .btn-secondary:not(:disabled):not(.disabled).active:focus, -.show > .btn-secondary.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(0, 40, 100, 0.5); -} - -.btn-pill { - border-radius: 10rem; - padding-right: 1.5em; - padding-left: 1.5em; -} - -.btn-square { - border-radius: 0; -} - -.btn-facebook { - color: #fff; - background-color: #3b5998; - border-color: #3b5998; -} - -.btn-facebook:hover { - color: #fff; - background-color: #30497c; - border-color: #2d4373; -} - -.btn-facebook:focus, .btn-facebook.focus { - box-shadow: 0 0 0 2px rgba(59, 89, 152, 0.5); -} - -.btn-facebook.disabled, .btn-facebook:disabled { - color: #fff; - background-color: #3b5998; - border-color: #3b5998; -} - -.btn-facebook:not(:disabled):not(.disabled):active, .btn-facebook:not(:disabled):not(.disabled).active, -.show > .btn-facebook.dropdown-toggle { - color: #fff; - background-color: #2d4373; - border-color: #293e6a; -} - -.btn-facebook:not(:disabled):not(.disabled):active:focus, .btn-facebook:not(:disabled):not(.disabled).active:focus, -.show > .btn-facebook.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(59, 89, 152, 0.5); -} - -.btn-twitter { - color: #fff; - background-color: #1da1f2; - border-color: #1da1f2; -} - -.btn-twitter:hover { - color: #fff; - background-color: #0d8ddc; - border-color: #0c85d0; -} - -.btn-twitter:focus, .btn-twitter.focus { - box-shadow: 0 0 0 2px rgba(29, 161, 242, 0.5); -} - -.btn-twitter.disabled, .btn-twitter:disabled { - color: #fff; - background-color: #1da1f2; - border-color: #1da1f2; -} - -.btn-twitter:not(:disabled):not(.disabled):active, .btn-twitter:not(:disabled):not(.disabled).active, -.show > .btn-twitter.dropdown-toggle { - color: #fff; - background-color: #0c85d0; - border-color: #0b7ec4; -} - -.btn-twitter:not(:disabled):not(.disabled):active:focus, .btn-twitter:not(:disabled):not(.disabled).active:focus, -.show > .btn-twitter.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(29, 161, 242, 0.5); -} - -.btn-google { - color: #fff; - background-color: #dc4e41; - border-color: #dc4e41; -} - -.btn-google:hover { - color: #fff; - background-color: #d03526; - border-color: #c63224; -} - -.btn-google:focus, .btn-google.focus { - box-shadow: 0 0 0 2px rgba(220, 78, 65, 0.5); -} - -.btn-google.disabled, .btn-google:disabled { - color: #fff; - background-color: #dc4e41; - border-color: #dc4e41; -} - -.btn-google:not(:disabled):not(.disabled):active, .btn-google:not(:disabled):not(.disabled).active, -.show > .btn-google.dropdown-toggle { - color: #fff; - background-color: #c63224; - border-color: #bb2f22; -} - -.btn-google:not(:disabled):not(.disabled):active:focus, .btn-google:not(:disabled):not(.disabled).active:focus, -.show > .btn-google.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(220, 78, 65, 0.5); -} - -.btn-youtube { - color: #fff; - background-color: #f00; - border-color: #f00; -} - -.btn-youtube:hover { - color: #fff; - background-color: #d90000; - border-color: #cc0000; -} - -.btn-youtube:focus, .btn-youtube.focus { - box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.5); -} - -.btn-youtube.disabled, .btn-youtube:disabled { - color: #fff; - background-color: #f00; - border-color: #f00; -} - -.btn-youtube:not(:disabled):not(.disabled):active, .btn-youtube:not(:disabled):not(.disabled).active, -.show > .btn-youtube.dropdown-toggle { - color: #fff; - background-color: #cc0000; - border-color: #bf0000; -} - -.btn-youtube:not(:disabled):not(.disabled):active:focus, .btn-youtube:not(:disabled):not(.disabled).active:focus, -.show > .btn-youtube.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.5); -} - -.btn-vimeo { - color: #fff; - background-color: #1ab7ea; - border-color: #1ab7ea; -} - -.btn-vimeo:hover { - color: #fff; - background-color: #139ecb; - border-color: #1295bf; -} - -.btn-vimeo:focus, .btn-vimeo.focus { - box-shadow: 0 0 0 2px rgba(26, 183, 234, 0.5); -} - -.btn-vimeo.disabled, .btn-vimeo:disabled { - color: #fff; - background-color: #1ab7ea; - border-color: #1ab7ea; -} - -.btn-vimeo:not(:disabled):not(.disabled):active, .btn-vimeo:not(:disabled):not(.disabled).active, -.show > .btn-vimeo.dropdown-toggle { - color: #fff; - background-color: #1295bf; - border-color: #108cb4; -} - -.btn-vimeo:not(:disabled):not(.disabled):active:focus, .btn-vimeo:not(:disabled):not(.disabled).active:focus, -.show > .btn-vimeo.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(26, 183, 234, 0.5); -} - -.btn-dribbble { - color: #fff; - background-color: #ea4c89; - border-color: #ea4c89; -} - -.btn-dribbble:hover { - color: #fff; - background-color: #e62a72; - border-color: #e51e6b; -} - -.btn-dribbble:focus, .btn-dribbble.focus { - box-shadow: 0 0 0 2px rgba(234, 76, 137, 0.5); -} - -.btn-dribbble.disabled, .btn-dribbble:disabled { - color: #fff; - background-color: #ea4c89; - border-color: #ea4c89; -} - -.btn-dribbble:not(:disabled):not(.disabled):active, .btn-dribbble:not(:disabled):not(.disabled).active, -.show > .btn-dribbble.dropdown-toggle { - color: #fff; - background-color: #e51e6b; - border-color: #dc1a65; -} - -.btn-dribbble:not(:disabled):not(.disabled):active:focus, .btn-dribbble:not(:disabled):not(.disabled).active:focus, -.show > .btn-dribbble.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(234, 76, 137, 0.5); -} - -.btn-github { - color: #fff; - background-color: #181717; - border-color: #181717; -} - -.btn-github:hover { - color: #fff; - background-color: #040404; - border-color: black; -} - -.btn-github:focus, .btn-github.focus { - box-shadow: 0 0 0 2px rgba(24, 23, 23, 0.5); -} - -.btn-github.disabled, .btn-github:disabled { - color: #fff; - background-color: #181717; - border-color: #181717; -} - -.btn-github:not(:disabled):not(.disabled):active, .btn-github:not(:disabled):not(.disabled).active, -.show > .btn-github.dropdown-toggle { - color: #fff; - background-color: black; - border-color: black; -} - -.btn-github:not(:disabled):not(.disabled):active:focus, .btn-github:not(:disabled):not(.disabled).active:focus, -.show > .btn-github.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(24, 23, 23, 0.5); -} - -.btn-instagram { - color: #fff; - background-color: #e4405f; - border-color: #e4405f; -} - -.btn-instagram:hover { - color: #fff; - background-color: #de1f44; - border-color: #d31e40; -} - -.btn-instagram:focus, .btn-instagram.focus { - box-shadow: 0 0 0 2px rgba(228, 64, 95, 0.5); -} - -.btn-instagram.disabled, .btn-instagram:disabled { - color: #fff; - background-color: #e4405f; - border-color: #e4405f; -} - -.btn-instagram:not(:disabled):not(.disabled):active, .btn-instagram:not(:disabled):not(.disabled).active, -.show > .btn-instagram.dropdown-toggle { - color: #fff; - background-color: #d31e40; - border-color: #c81c3d; -} - -.btn-instagram:not(:disabled):not(.disabled):active:focus, .btn-instagram:not(:disabled):not(.disabled).active:focus, -.show > .btn-instagram.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(228, 64, 95, 0.5); -} - -.btn-pinterest { - color: #fff; - background-color: #bd081c; - border-color: #bd081c; -} - -.btn-pinterest:hover { - color: #fff; - background-color: #980617; - border-color: #8c0615; -} - -.btn-pinterest:focus, .btn-pinterest.focus { - box-shadow: 0 0 0 2px rgba(189, 8, 28, 0.5); -} - -.btn-pinterest.disabled, .btn-pinterest:disabled { - color: #fff; - background-color: #bd081c; - border-color: #bd081c; -} - -.btn-pinterest:not(:disabled):not(.disabled):active, .btn-pinterest:not(:disabled):not(.disabled).active, -.show > .btn-pinterest.dropdown-toggle { - color: #fff; - background-color: #8c0615; - border-color: #800513; -} - -.btn-pinterest:not(:disabled):not(.disabled):active:focus, .btn-pinterest:not(:disabled):not(.disabled).active:focus, -.show > .btn-pinterest.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(189, 8, 28, 0.5); -} - -.btn-vk { - color: #fff; - background-color: #6383a8; - border-color: #6383a8; -} - -.btn-vk:hover { - color: #fff; - background-color: #527093; - border-color: #4d6a8b; -} - -.btn-vk:focus, .btn-vk.focus { - box-shadow: 0 0 0 2px rgba(99, 131, 168, 0.5); -} - -.btn-vk.disabled, .btn-vk:disabled { - color: #fff; - background-color: #6383a8; - border-color: #6383a8; -} - -.btn-vk:not(:disabled):not(.disabled):active, .btn-vk:not(:disabled):not(.disabled).active, -.show > .btn-vk.dropdown-toggle { - color: #fff; - background-color: #4d6a8b; - border-color: #496482; -} - -.btn-vk:not(:disabled):not(.disabled):active:focus, .btn-vk:not(:disabled):not(.disabled).active:focus, -.show > .btn-vk.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(99, 131, 168, 0.5); -} - -.btn-rss { - color: #fff; - background-color: #ffa500; - border-color: #ffa500; -} - -.btn-rss:hover { - color: #fff; - background-color: #d98c00; - border-color: #cc8400; -} - -.btn-rss:focus, .btn-rss.focus { - box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.5); -} - -.btn-rss.disabled, .btn-rss:disabled { - color: #fff; - background-color: #ffa500; - border-color: #ffa500; -} - -.btn-rss:not(:disabled):not(.disabled):active, .btn-rss:not(:disabled):not(.disabled).active, -.show > .btn-rss.dropdown-toggle { - color: #fff; - background-color: #cc8400; - border-color: #bf7c00; -} - -.btn-rss:not(:disabled):not(.disabled):active:focus, .btn-rss:not(:disabled):not(.disabled).active:focus, -.show > .btn-rss.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.5); -} - -.btn-flickr { - color: #fff; - background-color: #0063dc; - border-color: #0063dc; -} - -.btn-flickr:hover { - color: #fff; - background-color: #0052b6; - border-color: #004ca9; -} - -.btn-flickr:focus, .btn-flickr.focus { - box-shadow: 0 0 0 2px rgba(0, 99, 220, 0.5); -} - -.btn-flickr.disabled, .btn-flickr:disabled { - color: #fff; - background-color: #0063dc; - border-color: #0063dc; -} - -.btn-flickr:not(:disabled):not(.disabled):active, .btn-flickr:not(:disabled):not(.disabled).active, -.show > .btn-flickr.dropdown-toggle { - color: #fff; - background-color: #004ca9; - border-color: #00469c; -} - -.btn-flickr:not(:disabled):not(.disabled):active:focus, .btn-flickr:not(:disabled):not(.disabled).active:focus, -.show > .btn-flickr.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(0, 99, 220, 0.5); -} - -.btn-bitbucket { - color: #fff; - background-color: #0052cc; - border-color: #0052cc; -} - -.btn-bitbucket:hover { - color: #fff; - background-color: #0043a6; - border-color: #003e99; -} - -.btn-bitbucket:focus, .btn-bitbucket.focus { - box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.5); -} - -.btn-bitbucket.disabled, .btn-bitbucket:disabled { - color: #fff; - background-color: #0052cc; - border-color: #0052cc; -} - -.btn-bitbucket:not(:disabled):not(.disabled):active, .btn-bitbucket:not(:disabled):not(.disabled).active, -.show > .btn-bitbucket.dropdown-toggle { - color: #fff; - background-color: #003e99; - border-color: #00388c; -} - -.btn-bitbucket:not(:disabled):not(.disabled):active:focus, .btn-bitbucket:not(:disabled):not(.disabled).active:focus, -.show > .btn-bitbucket.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.5); -} - -.btn-blue { - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.btn-blue:hover { - color: #fff; - background-color: #316cbe; - border-color: #2f66b3; -} - -.btn-blue:focus, .btn-blue.focus { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.5); -} - -.btn-blue.disabled, .btn-blue:disabled { - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.btn-blue:not(:disabled):not(.disabled):active, .btn-blue:not(:disabled):not(.disabled).active, -.show > .btn-blue.dropdown-toggle { - color: #fff; - background-color: #2f66b3; - border-color: #2c60a9; -} - -.btn-blue:not(:disabled):not(.disabled):active:focus, .btn-blue:not(:disabled):not(.disabled).active:focus, -.show > .btn-blue.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.5); -} - -.btn-indigo { - color: #fff; - background-color: #6574cd; - border-color: #6574cd; -} - -.btn-indigo:hover { - color: #fff; - background-color: #485ac4; - border-color: #3f51c1; -} - -.btn-indigo:focus, .btn-indigo.focus { - box-shadow: 0 0 0 2px rgba(101, 116, 205, 0.5); -} - -.btn-indigo.disabled, .btn-indigo:disabled { - color: #fff; - background-color: #6574cd; - border-color: #6574cd; -} - -.btn-indigo:not(:disabled):not(.disabled):active, .btn-indigo:not(:disabled):not(.disabled).active, -.show > .btn-indigo.dropdown-toggle { - color: #fff; - background-color: #3f51c1; - border-color: #3b4db7; -} - -.btn-indigo:not(:disabled):not(.disabled):active:focus, .btn-indigo:not(:disabled):not(.disabled).active:focus, -.show > .btn-indigo.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(101, 116, 205, 0.5); -} - -.btn-purple { - color: #fff; - background-color: #a55eea; - border-color: #a55eea; -} - -.btn-purple:hover { - color: #fff; - background-color: #923ce6; - border-color: #8c31e4; -} - -.btn-purple:focus, .btn-purple.focus { - box-shadow: 0 0 0 2px rgba(165, 94, 234, 0.5); -} - -.btn-purple.disabled, .btn-purple:disabled { - color: #fff; - background-color: #a55eea; - border-color: #a55eea; -} - -.btn-purple:not(:disabled):not(.disabled):active, .btn-purple:not(:disabled):not(.disabled).active, -.show > .btn-purple.dropdown-toggle { - color: #fff; - background-color: #8c31e4; - border-color: #8526e3; -} - -.btn-purple:not(:disabled):not(.disabled):active:focus, .btn-purple:not(:disabled):not(.disabled).active:focus, -.show > .btn-purple.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(165, 94, 234, 0.5); -} - -.btn-pink { - color: #fff; - background-color: #f66d9b; - border-color: #f66d9b; -} - -.btn-pink:hover { - color: #fff; - background-color: #f44982; - border-color: #f33d7a; -} - -.btn-pink:focus, .btn-pink.focus { - box-shadow: 0 0 0 2px rgba(246, 109, 155, 0.5); -} - -.btn-pink.disabled, .btn-pink:disabled { - color: #fff; - background-color: #f66d9b; - border-color: #f66d9b; -} - -.btn-pink:not(:disabled):not(.disabled):active, .btn-pink:not(:disabled):not(.disabled).active, -.show > .btn-pink.dropdown-toggle { - color: #fff; - background-color: #f33d7a; - border-color: #f23172; -} - -.btn-pink:not(:disabled):not(.disabled):active:focus, .btn-pink:not(:disabled):not(.disabled).active:focus, -.show > .btn-pink.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(246, 109, 155, 0.5); -} - -.btn-red { - color: #fff; - background-color: #cd201f; - border-color: #cd201f; -} - -.btn-red:hover { - color: #fff; - background-color: #ac1b1a; - border-color: #a11918; -} - -.btn-red:focus, .btn-red.focus { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.5); -} - -.btn-red.disabled, .btn-red:disabled { - color: #fff; - background-color: #cd201f; - border-color: #cd201f; -} - -.btn-red:not(:disabled):not(.disabled):active, .btn-red:not(:disabled):not(.disabled).active, -.show > .btn-red.dropdown-toggle { - color: #fff; - background-color: #a11918; - border-color: #961717; -} - -.btn-red:not(:disabled):not(.disabled):active:focus, .btn-red:not(:disabled):not(.disabled).active:focus, -.show > .btn-red.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.5); -} - -.btn-orange { - color: #fff; - background-color: #fd9644; - border-color: #fd9644; -} - -.btn-orange:hover { - color: #fff; - background-color: #fd811e; - border-color: #fc7a12; -} - -.btn-orange:focus, .btn-orange.focus { - box-shadow: 0 0 0 2px rgba(253, 150, 68, 0.5); -} - -.btn-orange.disabled, .btn-orange:disabled { - color: #fff; - background-color: #fd9644; - border-color: #fd9644; -} - -.btn-orange:not(:disabled):not(.disabled):active, .btn-orange:not(:disabled):not(.disabled).active, -.show > .btn-orange.dropdown-toggle { - color: #fff; - background-color: #fc7a12; - border-color: #fc7305; -} - -.btn-orange:not(:disabled):not(.disabled):active:focus, .btn-orange:not(:disabled):not(.disabled).active:focus, -.show > .btn-orange.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(253, 150, 68, 0.5); -} - -.btn-yellow { - color: #fff; - background-color: #f1c40f; - border-color: #f1c40f; -} - -.btn-yellow:hover { - color: #fff; - background-color: #cea70c; - border-color: #c29d0b; -} - -.btn-yellow:focus, .btn-yellow.focus { - box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.5); -} - -.btn-yellow.disabled, .btn-yellow:disabled { - color: #fff; - background-color: #f1c40f; - border-color: #f1c40f; -} - -.btn-yellow:not(:disabled):not(.disabled):active, .btn-yellow:not(:disabled):not(.disabled).active, -.show > .btn-yellow.dropdown-toggle { - color: #fff; - background-color: #c29d0b; - border-color: #b6940b; -} - -.btn-yellow:not(:disabled):not(.disabled):active:focus, .btn-yellow:not(:disabled):not(.disabled).active:focus, -.show > .btn-yellow.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.5); -} - -.btn-green { - color: #fff; - background-color: #5eba00; - border-color: #5eba00; -} - -.btn-green:hover { - color: #fff; - background-color: #4b9400; - border-color: #448700; -} - -.btn-green:focus, .btn-green.focus { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.5); -} - -.btn-green.disabled, .btn-green:disabled { - color: #fff; - background-color: #5eba00; - border-color: #5eba00; -} - -.btn-green:not(:disabled):not(.disabled):active, .btn-green:not(:disabled):not(.disabled).active, -.show > .btn-green.dropdown-toggle { - color: #fff; - background-color: #448700; - border-color: #3e7a00; -} - -.btn-green:not(:disabled):not(.disabled):active:focus, .btn-green:not(:disabled):not(.disabled).active:focus, -.show > .btn-green.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.5); -} - -.btn-teal { - color: #fff; - background-color: #2bcbba; - border-color: #2bcbba; -} - -.btn-teal:hover { - color: #fff; - background-color: #24ab9d; - border-color: #22a193; -} - -.btn-teal:focus, .btn-teal.focus { - box-shadow: 0 0 0 2px rgba(43, 203, 186, 0.5); -} - -.btn-teal.disabled, .btn-teal:disabled { - color: #fff; - background-color: #2bcbba; - border-color: #2bcbba; -} - -.btn-teal:not(:disabled):not(.disabled):active, .btn-teal:not(:disabled):not(.disabled).active, -.show > .btn-teal.dropdown-toggle { - color: #fff; - background-color: #22a193; - border-color: #20968a; -} - -.btn-teal:not(:disabled):not(.disabled):active:focus, .btn-teal:not(:disabled):not(.disabled).active:focus, -.show > .btn-teal.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(43, 203, 186, 0.5); -} - -.btn-cyan { - color: #fff; - background-color: #17a2b8; - border-color: #17a2b8; -} - -.btn-cyan:hover { - color: #fff; - background-color: #138496; - border-color: #117a8b; -} - -.btn-cyan:focus, .btn-cyan.focus { - box-shadow: 0 0 0 2px rgba(23, 162, 184, 0.5); -} - -.btn-cyan.disabled, .btn-cyan:disabled { - color: #fff; - background-color: #17a2b8; - border-color: #17a2b8; -} - -.btn-cyan:not(:disabled):not(.disabled):active, .btn-cyan:not(:disabled):not(.disabled).active, -.show > .btn-cyan.dropdown-toggle { - color: #fff; - background-color: #117a8b; - border-color: #10707f; -} - -.btn-cyan:not(:disabled):not(.disabled):active:focus, .btn-cyan:not(:disabled):not(.disabled).active:focus, -.show > .btn-cyan.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(23, 162, 184, 0.5); -} - -.btn-white { - color: #495057; - background-color: #fff; - border-color: #fff; -} - -.btn-white:hover { - color: #495057; - background-color: #ececec; - border-color: #e6e5e5; -} - -.btn-white:focus, .btn-white.focus { - box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); -} - -.btn-white.disabled, .btn-white:disabled { - color: #495057; - background-color: #fff; - border-color: #fff; -} - -.btn-white:not(:disabled):not(.disabled):active, .btn-white:not(:disabled):not(.disabled).active, -.show > .btn-white.dropdown-toggle { - color: #495057; - background-color: #e6e5e5; - border-color: #dfdfdf; -} - -.btn-white:not(:disabled):not(.disabled):active:focus, .btn-white:not(:disabled):not(.disabled).active:focus, -.show > .btn-white.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); -} - -.btn-gray { - color: #fff; - background-color: #868e96; - border-color: #868e96; -} - -.btn-gray:hover { - color: #fff; - background-color: #727b84; - border-color: #6c757d; -} - -.btn-gray:focus, .btn-gray.focus { - box-shadow: 0 0 0 2px rgba(134, 142, 150, 0.5); -} - -.btn-gray.disabled, .btn-gray:disabled { - color: #fff; - background-color: #868e96; - border-color: #868e96; -} - -.btn-gray:not(:disabled):not(.disabled):active, .btn-gray:not(:disabled):not(.disabled).active, -.show > .btn-gray.dropdown-toggle { - color: #fff; - background-color: #6c757d; - border-color: #666e76; -} - -.btn-gray:not(:disabled):not(.disabled):active:focus, .btn-gray:not(:disabled):not(.disabled).active:focus, -.show > .btn-gray.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(134, 142, 150, 0.5); -} - -.btn-gray-dark { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} - -.btn-gray-dark:hover { - color: #fff; - background-color: #23272b; - border-color: #1d2124; -} - -.btn-gray-dark:focus, .btn-gray-dark.focus { - box-shadow: 0 0 0 2px rgba(52, 58, 64, 0.5); -} - -.btn-gray-dark.disabled, .btn-gray-dark:disabled { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} - -.btn-gray-dark:not(:disabled):not(.disabled):active, .btn-gray-dark:not(:disabled):not(.disabled).active, -.show > .btn-gray-dark.dropdown-toggle { - color: #fff; - background-color: #1d2124; - border-color: #171a1d; -} - -.btn-gray-dark:not(:disabled):not(.disabled):active:focus, .btn-gray-dark:not(:disabled):not(.disabled).active:focus, -.show > .btn-gray-dark.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(52, 58, 64, 0.5); -} - -.btn-azure { - color: #fff; - background-color: #45aaf2; - border-color: #45aaf2; -} - -.btn-azure:hover { - color: #fff; - background-color: #219af0; - border-color: #1594ef; -} - -.btn-azure:focus, .btn-azure.focus { - box-shadow: 0 0 0 2px rgba(69, 170, 242, 0.5); -} - -.btn-azure.disabled, .btn-azure:disabled { - color: #fff; - background-color: #45aaf2; - border-color: #45aaf2; -} - -.btn-azure:not(:disabled):not(.disabled):active, .btn-azure:not(:disabled):not(.disabled).active, -.show > .btn-azure.dropdown-toggle { - color: #fff; - background-color: #1594ef; - border-color: #108ee7; -} - -.btn-azure:not(:disabled):not(.disabled):active:focus, .btn-azure:not(:disabled):not(.disabled).active:focus, -.show > .btn-azure.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(69, 170, 242, 0.5); -} - -.btn-lime { - color: #fff; - background-color: #7bd235; - border-color: #7bd235; -} - -.btn-lime:hover { - color: #fff; - background-color: #69b829; - border-color: #63ad27; -} - -.btn-lime:focus, .btn-lime.focus { - box-shadow: 0 0 0 2px rgba(123, 210, 53, 0.5); -} - -.btn-lime.disabled, .btn-lime:disabled { - color: #fff; - background-color: #7bd235; - border-color: #7bd235; -} - -.btn-lime:not(:disabled):not(.disabled):active, .btn-lime:not(:disabled):not(.disabled).active, -.show > .btn-lime.dropdown-toggle { - color: #fff; - background-color: #63ad27; - border-color: #5da324; -} - -.btn-lime:not(:disabled):not(.disabled):active:focus, .btn-lime:not(:disabled):not(.disabled).active:focus, -.show > .btn-lime.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(123, 210, 53, 0.5); -} - -.btn-option { - background: transparent; - color: #9aa0ac; -} - -.btn-option:hover { - color: #6e7687; -} - -.btn-option:focus { - box-shadow: none; - color: #6e7687; -} - -.btn-sm, .btn-group-sm > .btn { - font-size: 0.75rem; - min-width: 1.625rem; -} - -.btn-lg, .btn-group-lg > .btn { - font-size: 1rem; - min-width: 2.75rem; - font-weight: 400; -} - -.btn-list { - margin-bottom: -.5rem; - font-size: 0; -} - -.btn-list > .btn, -.btn-list > .dropdown { - margin-bottom: .5rem; -} - -.btn-list > .btn:not(:last-child), -.btn-list > .dropdown:not(:last-child) { - margin-left: .5rem; -} - -.btn-loading { - color: transparent !important; - pointer-events: none; - position: relative; -} - -.btn-loading:after { - content: ''; - -webkit-animation: loader 500ms infinite linear; - animation: loader 500ms infinite linear; - border: 2px solid #fff; - border-radius: 50%; - border-left-color: transparent !important; - border-top-color: transparent !important; - display: block; - height: 1.4em; - width: 1.4em; - position: absolute; - right: calc(50% - (1.4em / 2)); - top: calc(50% - (1.4em / 2)); - -webkit-transform-origin: center; - transform-origin: center; - position: absolute !important; -} - -.btn-loading.btn-sm:after, .btn-group-sm > .btn-loading.btn:after { - height: 1em; - width: 1em; - right: calc(50% - (1em / 2)); - top: calc(50% - (1em / 2)); -} - -.btn-loading.btn-secondary:after { - border-color: #495057; -} - -.alert { - font-size: 0.9375rem; -} - -.alert-icon { - padding-right: 3rem; -} - -.alert-icon > i { - color: inherit !important; - font-size: 1rem; - position: absolute; - top: 1rem; - right: 1rem; -} - -.alert-avatar { - padding-right: 3.75rem; -} - -.alert-avatar .avatar { - position: absolute; - top: .5rem; - right: .75rem; -} - -.close { - font-size: 1rem; - line-height: 1.5; - transition: .3s color; -} - -.close:before { - content: '\ea00'; - font-family: "feather"; -} - -.badge { - color: #fff; -} - -.badge-default { - background: #e9ecef; - color: #868e96; -} - -.table thead th, .text-wrap table thead th { - border-top: 0; - border-bottom-width: 1px; - padding-top: .5rem; - padding-bottom: .5rem; -} - -.table th, .text-wrap table th { - color: #9aa0ac; - text-transform: uppercase; - font-size: 0.875rem; - font-weight: 400; -} - -.table-md th, -.table-md td { - padding: .5rem; -} - -.table-vcenter td, -.table-vcenter th { - vertical-align: middle; -} - -.table-center td, -.table-center th { - text-align: center; -} - -.table-striped tbody tr:nth-of-type(odd) { - background: transparent; -} - -.table-striped tbody tr:nth-of-type(even) { - background-color: rgba(0, 0, 0, 0.02); -} - -.table-calendar { - margin: 0 0 .75rem; -} - -.table-calendar td, -.table-calendar th { - border: 0; - text-align: center; - padding: 0 !important; - width: 14.28571429%; - line-height: 2.5rem; -} - -.table-calendar td { - border-top: 0; -} - -.table-calendar-link { - line-height: 2rem; - min-width: calc(2rem + 2px); - display: inline-block; - border-radius: 3px; - background: #f8f9fa; - color: #495057; - font-weight: 600; - transition: .3s background, .3s color; - position: relative; -} - -.table-calendar-link:before { - content: ''; - width: 4px; - height: 4px; - position: absolute; - right: .25rem; - top: .25rem; - border-radius: 50px; - background: #467fcf; -} - -.table-calendar-link:hover { - color: #fff; - text-decoration: none; - background: #467fcf; - transition: .3s background; -} - -.table-calendar-link:hover:before { - background: #fff; -} - -.table-header { - cursor: pointer; - transition: .3s color; -} - -.table-header:hover { - color: #495057 !important; -} - -.table-header:after { - content: '\f0dc'; - font-family: FontAwesome; - display: inline-block; - margin-right: .5rem; - font-size: .75rem; -} - -.table-header-asc { - color: #495057 !important; -} - -.table-header-asc:after { - content: '\f0de'; -} - -.table-header-desc { - color: #495057 !important; -} - -.table-header-desc:after { - content: '\f0dd'; -} - -.page-breadcrumb { - background: none; - padding: 0; - margin: 1rem 0 0; - font-size: 0.875rem; -} - -@media (min-width: 768px) { - .page-breadcrumb { - margin: -.5rem 0 0; - } -} - -.page-breadcrumb .breadcrumb-item { - color: #9aa0ac; -} - -.page-breadcrumb .breadcrumb-item.active { - color: #6e7687; -} - -.pagination-simple .page-item .page-link { - background: none; - border: none; -} - -.pagination-simple .page-item.active .page-link { - color: #495057; - font-weight: 700; -} - -.pagination-pager .page-prev { - margin-left: auto; -} - -.pagination-pager .page-next { - margin-right: auto; -} - -.page-total-text { - margin-left: 1rem; - -ms-flex-item-align: center; - align-self: center; - color: #6e7687; -} - -.card { - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); - position: relative; - margin-bottom: 1.5rem; - width: 100%; -} - -.card .card { - box-shadow: none; -} - -@media print { - .card { - box-shadow: none; - border: none; - } -} - -.card-body { - -ms-flex: 1 1 auto; - flex: 1 1 auto; - margin: 0; - padding: 1.5rem 1.5rem; - position: relative; -} - -.card-body + .card-body { - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.card-body > :last-child { - margin-bottom: 0; -} - -@media print { - .card-body { - padding: 0; - } -} - -.card-body-scrollable { - overflow: auto; -} - -.card-footer, -.card-bottom { - padding: 1rem 1.5rem; - background: none; -} - -.card-footer { - border-top: 1px solid rgba(0, 40, 100, 0.12); - color: #6e7687; -} - -.card-header { - background: none; - padding: 0.5rem 1.5rem; - display: -ms-flexbox; - display: flex; - min-height: 3.5rem; - -ms-flex-align: center; - align-items: center; -} - -.card-header .card-title { - margin-bottom: 0; -} - -.card-header.border-0 + .card-body { - padding-top: 0; -} - -@media print { - .card-header { - display: none; - } -} - -.card-img-top { - border-top-right-radius: 3px; - border-top-left-radius: 3px; -} - -.card-img-overlay { - background-color: rgba(0, 0, 0, 0.4); - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; -} - -.card-title { - font-size: 1.125rem; - line-height: 1.2; - font-weight: 400; - margin-bottom: 1.5rem; -} - -.card-title a { - color: inherit; -} - -.card-title:only-child { - margin-bottom: 0; -} - -.card-title small, -.card-subtitle { - color: #9aa0ac; - font-size: 0.875rem; - display: block; - margin: -.75rem 0 1rem; - line-height: 1.1; - font-weight: 400; -} - -.card-table { - margin-bottom: 0; -} - -.card-table tr:first-child td, -.card-table tr:first-child th { - border-top: 0; -} - -.card-table tr td:first-child, -.card-table tr th:first-child { - padding-right: 1.5rem; -} - -.card-table tr td:last-child, -.card-table tr th:last-child { - padding-left: 1.5rem; -} - -.card-body + .card-table { - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.card-profile .card-header { - height: 9rem; - background-size: cover; -} - -.card-profile-img { - max-width: 6rem; - margin-top: -5rem; - margin-bottom: 1rem; - border: 3px solid #fff; - border-radius: 100%; - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); -} - -.card-link + .card-link { - margin-right: 1rem; -} - -.card-body + .card-list-group { - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.card-list-group .list-group-item { - border-left: 0; - border-right: 0; - border-radius: 0; - padding-right: 1.5rem; - padding-left: 1.5rem; -} - -.card-list-group .list-group-item:last-child { - border-bottom: 0; -} - -.card-list-group .list-group-item:first-child { - border-top: 0; -} - -.card-header-tabs { - margin: -1.25rem 0; - border-bottom: 0; - line-height: 2rem; -} - -.card-header-tabs .nav-item { - margin-bottom: 1px; -} - -.card-header-pills { - margin: -.75rem 0; -} - -.card-aside { - -ms-flex-direction: row; - flex-direction: row; -} - -.card-aside-column { - min-width: 5rem; - width: 30%; - -ms-flex: 0 0 30%; - flex: 0 0 30%; - border-top-right-radius: 3px; - border-bottom-right-radius: 3px; - background: no-repeat center/cover; -} - -.card-value { - font-size: 2.5rem; - line-height: 3.4rem; - height: 3.4rem; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - font-weight: 400; -} - -.card-value i { - vertical-align: middle; -} - -.card-chart-bg { - height: 4rem; - margin-top: -1rem; - position: relative; - z-index: 1; - overflow: hidden; -} - -.card-options { - margin-right: auto; - display: -ms-flexbox; - display: flex; - -ms-flex-order: 100; - order: 100; - margin-left: -.5rem; - color: #9aa0ac; - -ms-flex-item-align: center; - align-self: center; -} - -.card-options a:not(.btn) { - margin-right: .5rem; - color: #9aa0ac; - display: inline-block; - min-width: 1rem; -} - -.card-options a:not(.btn):hover { - text-decoration: none; - color: #6e7687; -} - -.card-options a:not(.btn) i { - font-size: 1rem; - vertical-align: middle; -} - -.card-options .dropdown-toggle:after { - display: none; -} - -/* -Card options - */ -.card-collapsed > :not(.card-header):not(.card-status) { - display: none; -} - -.card-collapsed .card-options-collapse i:before { - content: '\e92d'; -} - -.card-fullscreen .card-options-fullscreen i:before { - content: '\e992'; -} - -.card-fullscreen .card-options-remove { - display: none; -} - -/* -Card maps - */ -.card-map { - height: 15rem; - background: #e9ecef; -} - -.card-map-placeholder { - background: no-repeat center; -} - -/** -Card tabs - */ -.card-tabs { - display: -ms-flexbox; - display: flex; -} - -.card-tabs-bottom .card-tabs-item { - border: 0; - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.card-tabs-bottom .card-tabs-item.active { - border-top-color: #fff; -} - -.card-tabs-item { - -ms-flex: 1 1 auto; - flex: 1 1 auto; - display: block; - padding: 1rem 1.5rem; - border-bottom: 1px solid rgba(0, 40, 100, 0.12); - color: inherit; - overflow: hidden; -} - -a.card-tabs-item { - background: #fafbfc; -} - -a.card-tabs-item:hover { - text-decoration: none; - color: inherit; -} - -a.card-tabs-item:focus { - z-index: 1; -} - -a.card-tabs-item.active { - background: #fff; - border-bottom-color: #fff; -} - -.card-tabs-item + .card-tabs-item { - border-right: 1px solid rgba(0, 40, 100, 0.12); -} - -/** -Card status - */ -.card-status { - position: absolute; - top: -1px; - right: -1px; - left: -1px; - height: 3px; - border-radius: 3px 3px 0 0; - background: rgba(0, 40, 100, 0.12); -} - -.card-status-left { - left: auto; - bottom: 0; - height: auto; - width: 3px; - border-radius: 0 3px 3px 0; -} - -/** -Card icon - */ -.card-icon { - width: 3rem; - font-size: 2.5rem; - line-height: 3rem; - text-align: center; -} - -/** -Card fullscreen - */ -.card-fullscreen { - position: fixed; - top: 0; - right: 0; - left: 0; - bottom: 0; - z-index: 1; - margin: 0; -} - -/** -Card alert - */ -.card-alert { - border-radius: 0; - margin: -1px -1px 0; -} - -.card-category { - font-size: 0.875rem; - text-transform: uppercase; - text-align: center; - font-weight: 600; - letter-spacing: .05em; - margin: 0 0 .5rem; -} - -.popover { - -webkit-filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1)); - filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1)); -} - -.popover.bs-popover-top, .popover.bs-popover-auto[x-placement^="top"] { - margin-bottom: 0.625rem; -} - -.popover .arrow { - margin-right: calc(.25rem + 2px); -} - -.dropdown { - display: inline-block; -} - -.dropdown-menu { - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); - min-width: 12rem; -} - -.dropdown-item { - color: #6e7687; -} - -.dropdown-menu-arrow:before { - position: absolute; - top: -6px; - right: 12px; - display: inline-block; - border-left: 5px solid transparent; - border-bottom: 5px solid rgba(0, 40, 100, 0.12); - border-right: 5px solid transparent; - border-bottom-color: rgba(0, 0, 0, 0.2); - content: ''; -} - -.dropdown-menu-arrow:after { - position: absolute; - top: -5px; - right: 12px; - display: inline-block; - border-left: 5px solid transparent; - border-bottom: 5px solid #fff; - border-right: 5px solid transparent; - content: ''; -} - -.dropdown-menu-arrow.dropdown-menu-right:before, .dropdown-menu-arrow.dropdown-menu-right:after { - right: auto; - left: 12px; -} - -.dropdown-toggle { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - cursor: pointer; -} - -.dropdown-toggle:after { - vertical-align: 0.155em; -} - -.dropdown-toggle:empty:after { - margin-right: 0; -} - -.dropdown-icon { - color: #9aa0ac; - margin-left: .5rem; - margin-right: -.5rem; - width: 1em; - display: inline-block; - text-align: center; - vertical-align: -1px; -} - -.list-inline-dots .list-inline-item + .list-inline-item:before { - content: '· '; - margin-right: -2px; - margin-left: 3px; -} - -.list-separated-item { - padding: 1rem 0; -} - -.list-separated-item:first-child { - padding-top: 0; -} - -.list-separated-item:last-child { - padding-bottom: 0; -} - -.list-separated-item + .list-separated-item { - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.list-group-item.active .icon { - color: inherit !important; -} - -.list-group-transparent .list-group-item { - background: none; - border: 0; - padding: .5rem 1rem; - border-radius: 3px; -} - -.list-group-transparent .list-group-item.active { - background: rgba(70, 127, 207, 0.06); - font-weight: 600; -} - -.avatar { - width: 2rem; - height: 2rem; - line-height: 2rem; - border-radius: 50%; - display: inline-block; - background: #ced4da no-repeat center/cover; - position: relative; - text-align: center; - color: #868e96; - font-weight: 600; - vertical-align: bottom; - font-size: .875rem; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.avatar i { - font-size: 125%; - vertical-align: sub; -} - -.avatar-status { - position: absolute; - left: -2px; - bottom: -2px; - width: .75rem; - height: .75rem; - border: 2px solid #fff; - background: #868e96; - border-radius: 50%; -} - -.avatar-sm { - width: 1.5rem; - height: 1.5rem; - line-height: 1.5rem; - font-size: .75rem; -} - -.avatar-md { - width: 2.5rem; - height: 2.5rem; - line-height: 2.5rem; - font-size: 1rem; -} - -.avatar-lg { - width: 3rem; - height: 3rem; - line-height: 3rem; - font-size: 1.25rem; -} - -.avatar-xl { - width: 4rem; - height: 4rem; - line-height: 4rem; - font-size: 1.75rem; -} - -.avatar-xxl { - width: 5rem; - height: 5rem; - line-height: 5rem; - font-size: 2rem; -} - -.avatar-placeholder { - background: #ced4da url('data:image/svg+xml;charset=utf8,') no-repeat center/80%; -} - -.avatar-list { - margin: 0 0 -.5rem; - padding: 0; - font-size: 0; -} - -.avatar-list .avatar { - margin-bottom: .5rem; -} - -.avatar-list .avatar:not(:last-child) { - margin-left: .5rem; -} - -.avatar-list-stacked .avatar { - margin-left: -.8em !important; -} - -.avatar-list-stacked .avatar { - box-shadow: 0 0 0 2px #fff; -} - -.avatar-blue { - background-color: #c8d9f1; - color: #467fcf; -} - -.avatar-indigo { - background-color: #d1d5f0; - color: #6574cd; -} - -.avatar-purple { - background-color: #e4cff9; - color: #a55eea; -} - -.avatar-pink { - background-color: #fcd3e1; - color: #f66d9b; -} - -.avatar-red { - background-color: #f0bcbc; - color: #cd201f; -} - -.avatar-orange { - background-color: #fee0c7; - color: #fd9644; -} - -.avatar-yellow { - background-color: #fbedb7; - color: #f1c40f; -} - -.avatar-green { - background-color: #cfeab3; - color: #5eba00; -} - -.avatar-teal { - background-color: #bfefea; - color: #2bcbba; -} - -.avatar-cyan { - background-color: #b9e3ea; - color: #17a2b8; -} - -.avatar-white { - background-color: white; - color: #fff; -} - -.avatar-gray { - background-color: #dbdde0; - color: #868e96; -} - -.avatar-gray-dark { - background-color: #c2c4c6; - color: #343a40; -} - -.avatar-azure { - background-color: #c7e6fb; - color: #45aaf2; -} - -.avatar-lime { - background-color: #d7f2c2; - color: #7bd235; -} - -.product-price { - font-size: 1rem; -} - -.product-price strong { - font-size: 1.5rem; -} - -@-webkit-keyframes indeterminate { - 0% { - right: -35%; - left: 100%; - } - 100%, 60% { - right: 100%; - left: -90%; - } -} - -@keyframes indeterminate { - 0% { - right: -35%; - left: 100%; - } - 100%, 60% { - right: 100%; - left: -90%; - } -} - -@-webkit-keyframes indeterminate-short { - 0% { - right: -200%; - left: 100%; - } - 100%, 60% { - right: 107%; - left: -8%; - } -} - -@keyframes indeterminate-short { - 0% { - right: -200%; - left: 100%; - } - 100%, 60% { - right: 107%; - left: -8%; - } -} - -.progress { - position: relative; -} - -.progress-xs, -.progress-xs .progress-bar { - height: .25rem; -} - -.progress-sm, -.progress-sm .progress-bar { - height: .5rem; -} - -.progress-bar-indeterminate:after, .progress-bar-indeterminate:before { - content: ''; - position: absolute; - background-color: inherit; - right: 0; - will-change: left, right; - top: 0; - bottom: 0; -} - -.progress-bar-indeterminate:before { - -webkit-animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; -} - -.progress-bar-indeterminate:after { - -webkit-animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite; - animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite; - -webkit-animation-delay: 1.15s; - animation-delay: 1.15s; -} - -@-webkit-keyframes loader { - from { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - to { - -webkit-transform: rotate(-360deg); - transform: rotate(-360deg); - } -} - -@keyframes loader { - from { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - to { - -webkit-transform: rotate(-360deg); - transform: rotate(-360deg); - } -} - -/** -Dimmer -*/ -.dimmer { - position: relative; -} - -.dimmer .loader { - display: none; - margin: 0 auto; - position: absolute; - top: 50%; - right: 0; - left: 0; - -webkit-transform: translateY(-50%); - transform: translateY(-50%); -} - -.dimmer.active .loader { - display: block; -} - -.dimmer.active .dimmer-content { - opacity: .04; - pointer-events: none; -} - -/** -Loader -*/ -.loader { - display: block; - position: relative; - height: 2.5rem; - width: 2.5rem; - color: #467fcf; -} - -.loader:before, .loader:after { - width: 2.5rem; - height: 2.5rem; - margin: -1.25rem -1.25rem 0 0; - position: absolute; - content: ''; - top: 50%; - right: 50%; -} - -.loader:before { - border-radius: 50%; - border: 3px solid currentColor; - opacity: .15; -} - -.loader:after { - -webkit-animation: loader .6s linear; - animation: loader .6s linear; - -webkit-animation-iteration-count: infinite; - animation-iteration-count: infinite; - border-radius: 50%; - border: 3px solid; - border-color: transparent; - border-top-color: currentColor; - box-shadow: 0 0 0 1px transparent; -} - -.icons-list { - list-style: none; - margin: 0 0 -1px -1px; - padding: 0; - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; -} - -.icons-list > li { - -ms-flex: 1 0 4rem; - flex: 1 0 4rem; -} - -.icons-list-wrap { - overflow: hidden; -} - -.icons-list-item { - text-align: center; - height: 4rem; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - border-left: 1px solid rgba(0, 40, 100, 0.12); - border-bottom: 1px solid rgba(0, 40, 100, 0.12); -} - -.icons-list-item i { - font-size: 1.25rem; -} - -.img-gallery { - margin-left: -.25rem; - margin-right: -.25rem; - margin-bottom: -.5rem; -} - -.img-gallery > .col, -.img-gallery > [class*="col-"] { - padding-right: .25rem; - padding-left: .25rem; - padding-bottom: .5rem; -} - -.link-overlay { - position: relative; -} - -.link-overlay:hover .link-overlay-bg { - opacity: 1; -} - -.link-overlay-bg { - position: absolute; - top: 0; - right: 0; - left: 0; - bottom: 0; - background: rgba(70, 127, 207, 0.8); - display: -ms-flexbox; - display: flex; - color: #fff; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - font-size: 1.25rem; - opacity: 0; - transition: .3s opacity; -} - -.media-icon { - width: 2rem; - height: 2rem; - line-height: 2rem; - text-align: center; - border-radius: 100%; -} - -.media-list { - margin: 0; - padding: 0; - list-style: none; -} - -textarea[cols] { - height: auto; -} - -.form-group { - display: block; -} - -.form-label { - display: block; - margin-bottom: .375rem; - font-weight: 600; - font-size: 0.875rem; -} - -.form-label-small { - float: left; - font-weight: 400; - font-size: 87.5%; -} - -.form-footer { - margin-top: 2rem; -} - -.custom-control { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.custom-controls-stacked .custom-control { - margin-bottom: .25rem; -} - -.custom-control-label { - vertical-align: middle; -} - -.custom-control-label:before { - border: 1px solid rgba(0, 40, 100, 0.12); - background-color: #fff; - background-size: .5rem; -} - -.custom-control-description { - line-height: 1.5rem; -} - -.input-group-prepend, -.input-group-append, -.input-group-btn { - font-size: 0.9375rem; -} - -.input-group-prepend > .btn, -.input-group-append > .btn, -.input-group-btn > .btn { - height: 100%; - border-color: rgba(0, 40, 100, 0.12); -} - -.input-group-prepend > .input-group-text { - border-left: 0; -} - -.input-group-append > .input-group-text { - border-right: 0; -} - -/** -Icon input - */ -.input-icon { - position: relative; -} - -.input-icon .form-control:not(:last-child) { - padding-left: 2.5rem; -} - -.input-icon .form-control:not(:first-child) { - padding-right: 2.5rem; -} - -.input-icon-addon { - position: absolute; - top: 0; - bottom: 0; - right: 0; - color: #9aa0ac; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - min-width: 2.5rem; - pointer-events: none; -} - -.input-icon-addon:last-child { - right: auto; - left: 0; -} - -.form-fieldset { - background: #f8f9fa; - border: 1px solid #e9ecef; - padding: 1rem; - border-radius: 3px; - margin-bottom: 1rem; -} - -.form-required { - color: #cd201f; -} - -.form-required:before { - content: ' '; -} - -.state-valid { - padding-left: 2rem; - background: url("data:image/svg+xml;charset=utf8,") no-repeat center right 0.5rem/1rem; -} - -.state-invalid { - padding-left: 2rem; - background: url("data:image/svg+xml;charset=utf8,") no-repeat center right 0.5rem/1rem; -} - -.form-help { - display: inline-block; - width: 1rem; - height: 1rem; - text-align: center; - line-height: 1rem; - color: #9aa0ac; - background: #f8f9fa; - border-radius: 50%; - font-size: 0.75rem; - transition: .3s background-color, .3s color; - text-decoration: none; - cursor: pointer; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.form-help:hover, .form-help[aria-describedby] { - background: #467fcf; - color: #fff; -} - -.sparkline { - display: inline-block; - height: 2rem; -} - -.jqstooltip { - box-sizing: content-box; - font-family: inherit !important; - background: #333 !important; - border: none !important; - border-radius: 3px; - font-size: 11px !important; - font-weight: 700 !important; - line-height: 1 !important; - padding: 6px !important; -} - -.jqstooltip .jqsfield { - font: inherit !important; -} - -.social-links li a { - background: #f8f8f8; - border-radius: 50%; - color: #9aa0ac; - display: inline-block; - height: 1.75rem; - width: 1.75rem; - line-height: 1.75rem; - text-align: center; -} - -.map, -.chart { - position: relative; - padding-top: 56.25%; -} - -.map-square, -.chart-square { - padding-top: 100%; -} - -.map-content, -.chart-content { - position: absolute; - top: 0; - right: 0; - left: 0; - bottom: 0; -} - -.map-header { - margin-top: -1.5rem; - margin-bottom: 1.5rem; - height: 15rem; - position: relative; - margin-bottom: -1.5rem; -} - -.map-header:before { - content: ''; - position: absolute; - bottom: 0; - right: 0; - left: 0; - height: 10rem; - background: linear-gradient(to bottom, rgba(245, 247, 251, 0) 5%, #f5f7fb 95%); - pointer-events: none; -} - -.map-header-layer { - height: 100%; -} - -.map-static { - height: 120px; - width: 100%; - max-width: 640px; - background-position: center center; - background-size: 640px 120px; -} - -@-webkit-keyframes status-pulse { - 0%, 100% { - opacity: 1; - } - 50% { - opacity: .32; - } -} - -@keyframes status-pulse { - 0%, 100% { - opacity: 1; - } - 50% { - opacity: .32; - } -} - -.status-icon { - content: ''; - width: 0.5rem; - height: 0.5rem; - display: inline-block; - background: currentColor; - border-radius: 50%; - -webkit-transform: translateY(-1px); - transform: translateY(-1px); - margin-left: .375rem; - vertical-align: middle; -} - -.status-animated { - -webkit-animation: 1s status-pulse infinite ease; - animation: 1s status-pulse infinite ease; -} - -.chart-circle { - display: block; - height: 8rem; - width: 8rem; - position: relative; -} - -.chart-circle canvas { - margin: 0 auto; - display: block; - max-width: 100%; - max-height: 100%; -} - -.chart-circle-xs { - height: 2.5rem; - width: 2.5rem; - font-size: .8rem; -} - -.chart-circle-sm { - height: 4rem; - width: 4rem; - font-size: .8rem; -} - -.chart-circle-lg { - height: 10rem; - width: 10rem; - font-size: .8rem; -} - -.chart-circle-value { - position: absolute; - top: 0; - right: 0; - left: 0; - margin-right: auto; - margin-left: auto; - bottom: 0; - display: -ms-flexbox; - display: flex; - -ms-flex-pack: center; - justify-content: center; - -ms-flex-align: center; - align-items: center; - -ms-flex-direction: column; - flex-direction: column; - line-height: 1; -} - -.chart-circle-value small { - display: block; - color: #9aa0ac; - font-size: 0.9375rem; -} - -.chips { - margin: 0 0 -.5rem; -} - -.chips .chip { - margin: 0 0 .5rem .5rem; -} - -.chip { - display: inline-block; - height: 2rem; - line-height: 2rem; - font-size: 0.875rem; - font-weight: 500; - color: #6e7687; - padding: 0 .75rem; - border-radius: 1rem; - background-color: #f8f9fa; - transition: .3s background; -} - -.chip .avatar { - float: right; - margin: 0 -.75rem 0 .5rem; - height: 2rem; - width: 2rem; - border-radius: 50%; -} - -a.chip:hover { - color: inherit; - text-decoration: none; - background-color: #e9ecef; -} - -.stamp { - color: #fff; - background: #868e96; - display: inline-block; - min-width: 2rem; - height: 2rem; - padding: 0 .25rem; - line-height: 2rem; - text-align: center; - border-radius: 3px; - font-weight: 600; -} - -.stamp-md { - min-width: 2.5rem; - height: 2.5rem; - line-height: 2.5rem; -} - -.chat { - outline: 0; - margin: 0; - padding: 0; - list-style-type: none; - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - -ms-flex-pack: end; - justify-content: flex-end; - min-height: 100%; -} - -.chat-line { - padding: 0; - text-align: left; - position: relative; - display: -ms-flexbox; - display: flex; - -ms-flex-direction: row-reverse; - flex-direction: row-reverse; -} - -.chat-line + .chat-line { - padding-top: 1rem; -} - -.chat-message { - position: relative; - display: inline-block; - background-color: #467fcf; - color: #fff; - font-size: 0.875rem; - padding: .375rem .5rem; - border-radius: 3px; - white-space: normal; - text-align: right; - margin: 0 2.5rem 0 .5rem; - line-height: 1.4; -} - -.chat-message > :last-child { - margin-bottom: 0 !important; -} - -.chat-message:after { - content: ""; - position: absolute; - left: -5px; - top: 7px; - border-bottom: 6px solid transparent; - border-right: 6px solid #467fcf; - border-top: 6px solid transparent; -} - -.chat-message img { - max-width: 100%; -} - -.chat-message p { - margin-bottom: 1em; -} - -.chat-line-friend { - -ms-flex-direction: row; - flex-direction: row; -} - -.chat-line-friend + .chat-line-friend { - margin-top: -.5rem; -} - -.chat-line-friend + .chat-line-friend .chat-author { - visibility: hidden; -} - -.chat-line-friend + .chat-line-friend .chat-message:after { - display: none; -} - -.chat-line-friend .chat-message { - background-color: #f3f3f3; - color: #495057; - margin-right: .5rem; - margin-left: 2.5rem; -} - -.chat-line-friend .chat-message:after { - left: auto; - right: -5px; - border-right-width: 0; - border-left: 5px solid #f3f3f3; -} - -.example { - padding: 1.5rem; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px 3px 0 0; - font-size: 0.9375rem; -} - -.example-bg { - background: #f5f7fb; -} - -.example + .highlight { - border-top: none; - margin-top: 0; - border-radius: 0 0 3px 3px; -} - -.highlight { - margin: 1rem 0 2rem; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; - font-size: 0.9375rem; - max-height: 40rem; - overflow: auto; - background: #fcfcfc; -} - -.highlight pre { - margin-bottom: 0; - background-color: transparent; -} - -.example-column { - margin: 0 auto; -} - -.example-column > .card:last-of-type { - margin-bottom: 0; -} - -.example-column-1 { - max-width: 20rem; -} - -.example-column-2 { - max-width: 40rem; -} - -.tag { - font-size: 0.75rem; - color: #6e7687; - background-color: #e9ecef; - border-radius: 3px; - padding: 0 .5rem; - line-height: 2em; - display: -ms-inline-flexbox; - display: inline-flex; - cursor: default; - font-weight: 400; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -a.tag { - text-decoration: none; - cursor: pointer; - transition: .3s color, .3s background; -} - -a.tag:hover { - background-color: rgba(110, 118, 135, 0.2); - color: inherit; -} - -.tag-addon { - display: inline-block; - padding: 0 .5rem; - color: inherit; - text-decoration: none; - background: rgba(0, 0, 0, 0.06); - margin: 0 .5rem 0 -.5rem; - text-align: center; - min-width: 1.5rem; -} - -.tag-addon:last-child { - border-top-left-radius: 3px; - border-bottom-left-radius: 3px; -} - -.tag-addon i { - vertical-align: middle; - margin: 0 -.25rem; -} - -a.tag-addon { - text-decoration: none; - cursor: pointer; - transition: .3s color, .3s background; -} - -a.tag-addon:hover { - background: rgba(0, 0, 0, 0.16); - color: inherit; -} - -.tag-avatar { - width: 1.5rem; - height: 1.5rem; - border-radius: 0 3px 3px 0; - margin: 0 -.5rem 0 .5rem; -} - -.tag-blue { - background-color: #467fcf; - color: #fff; -} - -.tag-indigo { - background-color: #6574cd; - color: #fff; -} - -.tag-purple { - background-color: #a55eea; - color: #fff; -} - -.tag-pink { - background-color: #f66d9b; - color: #fff; -} - -.tag-red { - background-color: #cd201f; - color: #fff; -} - -.tag-orange { - background-color: #fd9644; - color: #fff; -} - -.tag-yellow { - background-color: #f1c40f; - color: #fff; -} - -.tag-green { - background-color: #5eba00; - color: #fff; -} - -.tag-teal { - background-color: #2bcbba; - color: #fff; -} - -.tag-cyan { - background-color: #17a2b8; - color: #fff; -} - -.tag-white { - background-color: #fff; - color: #fff; -} - -.tag-gray { - background-color: #868e96; - color: #fff; -} - -.tag-gray-dark { - background-color: #343a40; - color: #fff; -} - -.tag-azure { - background-color: #45aaf2; - color: #fff; -} - -.tag-lime { - background-color: #7bd235; - color: #fff; -} - -.tag-primary { - background-color: #467fcf; - color: #fff; -} - -.tag-secondary { - background-color: #868e96; - color: #fff; -} - -.tag-success { - background-color: #5eba00; - color: #fff; -} - -.tag-info { - background-color: #45aaf2; - color: #fff; -} - -.tag-warning { - background-color: #f1c40f; - color: #fff; -} - -.tag-danger { - background-color: #cd201f; - color: #fff; -} - -.tag-light { - background-color: #f8f9fa; - color: #fff; -} - -.tag-dark { - background-color: #343a40; - color: #fff; -} - -.tag-rounded { - border-radius: 50px; -} - -.tag-rounded .tag-avatar { - border-radius: 50px; -} - -.tags { - margin-bottom: -.5rem; - font-size: 0; -} - -.tags > .tag { - margin-bottom: .5rem; -} - -.tags > .tag:not(:last-child) { - margin-left: .5rem; -} - -.highlight .hll { - background-color: #ffc; -} - -.highlight .c { - color: #999; -} - -.highlight .k { - color: #069; -} - -.highlight .o { - color: #555; -} - -.highlight .cm { - color: #999; -} - -.highlight .cp { - color: #099; -} - -.highlight .c1 { - color: #999; -} - -.highlight .cs { - color: #999; -} - -.highlight .gd { - background-color: #fcc; - border: 1px solid #c00; -} - -.highlight .ge { - font-style: italic; -} - -.highlight .gr { - color: #f00; -} - -.highlight .gh { - color: #030; -} - -.highlight .gi { - background-color: #cfc; - border: 1px solid #0c0; -} - -.highlight .go { - color: #aaa; -} - -.highlight .gp { - color: #009; -} - -.highlight .gu { - color: #030; -} - -.highlight .gt { - color: #9c6; -} - -.highlight .kc { - color: #069; -} - -.highlight .kd { - color: #069; -} - -.highlight .kn { - color: #069; -} - -.highlight .kp { - color: #069; -} - -.highlight .kr { - color: #069; -} - -.highlight .kt { - color: #078; -} - -.highlight .m { - color: #f60; -} - -.highlight .s { - color: #d44950; -} - -.highlight .na { - color: #4f9fcf; -} - -.highlight .nb { - color: #366; -} - -.highlight .nc { - color: #0a8; -} - -.highlight .no { - color: #360; -} - -.highlight .nd { - color: #99f; -} - -.highlight .ni { - color: #999; -} - -.highlight .ne { - color: #c00; -} - -.highlight .nf { - color: #c0f; -} - -.highlight .nl { - color: #99f; -} - -.highlight .nn { - color: #0cf; -} - -.highlight .nt { - color: #2f6f9f; -} - -.highlight .nv { - color: #033; -} - -.highlight .ow { - color: #000; -} - -.highlight .w { - color: #bbb; -} - -.highlight .mf { - color: #f60; -} - -.highlight .mh { - color: #f60; -} - -.highlight .mi { - color: #f60; -} - -.highlight .mo { - color: #f60; -} - -.highlight .sb { - color: #c30; -} - -.highlight .sc { - color: #c30; -} - -.highlight .sd { - font-style: italic; - color: #c30; -} - -.highlight .s2 { - color: #c30; -} - -.highlight .se { - color: #c30; -} - -.highlight .sh { - color: #c30; -} - -.highlight .si { - color: #a00; -} - -.highlight .sx { - color: #c30; -} - -.highlight .sr { - color: #3aa; -} - -.highlight .s1 { - color: #c30; -} - -.highlight .ss { - color: #fc3; -} - -.highlight .bp { - color: #366; -} - -.highlight .vc { - color: #033; -} - -.highlight .vg { - color: #033; -} - -.highlight .vi { - color: #033; -} - -.highlight .il { - color: #f60; -} - -.highlight .css .o, -.highlight .css .o + .nt, -.highlight .css .nt + .nt { - color: #999; -} - -.highlight .language-bash::before, -.highlight .language-sh::before { - color: #009; - content: "$ "; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.highlight .language-powershell::before { - color: #009; - content: "PM> "; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.carousel-item-background { - content: ''; - background: rgba(0, 0, 0, 0.5); - position: absolute; - top: 0; - right: 0; - left: 0; - bottom: 0; -} - -.custom-range { - -ms-flex-align: center; - align-items: center; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - background: none; - cursor: pointer; - display: -ms-flexbox; - display: flex; - height: 100%; - min-height: 2.375rem; - overflow: hidden; - padding: 0; - border: 0; -} - -.custom-range:focus { - box-shadow: none; - outline: none; -} - -.custom-range:focus::-webkit-slider-thumb { - border-color: #467fcf; - background-color: #467fcf; -} - -.custom-range:focus::-moz-range-thumb { - border-color: #467fcf; - background-color: #467fcf; -} - -.custom-range:focus::-ms-thumb { - border-color: #467fcf; - background-color: #467fcf; -} - -.custom-range::-moz-focus-outer { - border: 0; -} - -.custom-range::-webkit-slider-runnable-track { - background: #467fcf; - content: ''; - height: 2px; - pointer-events: none; -} - -.custom-range::-webkit-slider-thumb { - width: 14px; - height: 14px; - -webkit-appearance: none; - appearance: none; - background: #fff; - border-radius: 50px; - box-shadow: -1px 0 0 -6px rgba(0, 50, 126, 0.12), -6px 0 0 -6px rgba(0, 50, 126, 0.12), -7px 0 0 -6px rgba(0, 50, 126, 0.12), -8px 0 0 -6px rgba(0, 50, 126, 0.12), -9px 0 0 -6px rgba(0, 50, 126, 0.12), -10px 0 0 -6px rgba(0, 50, 126, 0.12), -11px 0 0 -6px rgba(0, 50, 126, 0.12), -12px 0 0 -6px rgba(0, 50, 126, 0.12), -13px 0 0 -6px rgba(0, 50, 126, 0.12), -14px 0 0 -6px rgba(0, 50, 126, 0.12), -15px 0 0 -6px rgba(0, 50, 126, 0.12), -16px 0 0 -6px rgba(0, 50, 126, 0.12), -17px 0 0 -6px rgba(0, 50, 126, 0.12), -18px 0 0 -6px rgba(0, 50, 126, 0.12), -19px 0 0 -6px rgba(0, 50, 126, 0.12), -20px 0 0 -6px rgba(0, 50, 126, 0.12), -21px 0 0 -6px rgba(0, 50, 126, 0.12), -22px 0 0 -6px rgba(0, 50, 126, 0.12), -23px 0 0 -6px rgba(0, 50, 126, 0.12), -24px 0 0 -6px rgba(0, 50, 126, 0.12), -25px 0 0 -6px rgba(0, 50, 126, 0.12), -26px 0 0 -6px rgba(0, 50, 126, 0.12), -27px 0 0 -6px rgba(0, 50, 126, 0.12), -28px 0 0 -6px rgba(0, 50, 126, 0.12), -29px 0 0 -6px rgba(0, 50, 126, 0.12), -30px 0 0 -6px rgba(0, 50, 126, 0.12), -31px 0 0 -6px rgba(0, 50, 126, 0.12), -32px 0 0 -6px rgba(0, 50, 126, 0.12), -33px 0 0 -6px rgba(0, 50, 126, 0.12), -34px 0 0 -6px rgba(0, 50, 126, 0.12), -35px 0 0 -6px rgba(0, 50, 126, 0.12), -36px 0 0 -6px rgba(0, 50, 126, 0.12), -37px 0 0 -6px rgba(0, 50, 126, 0.12), -38px 0 0 -6px rgba(0, 50, 126, 0.12), -39px 0 0 -6px rgba(0, 50, 126, 0.12), -40px 0 0 -6px rgba(0, 50, 126, 0.12), -41px 0 0 -6px rgba(0, 50, 126, 0.12), -42px 0 0 -6px rgba(0, 50, 126, 0.12), -43px 0 0 -6px rgba(0, 50, 126, 0.12), -44px 0 0 -6px rgba(0, 50, 126, 0.12), -45px 0 0 -6px rgba(0, 50, 126, 0.12), -46px 0 0 -6px rgba(0, 50, 126, 0.12), -47px 0 0 -6px rgba(0, 50, 126, 0.12), -48px 0 0 -6px rgba(0, 50, 126, 0.12), -49px 0 0 -6px rgba(0, 50, 126, 0.12), -50px 0 0 -6px rgba(0, 50, 126, 0.12), -51px 0 0 -6px rgba(0, 50, 126, 0.12), -52px 0 0 -6px rgba(0, 50, 126, 0.12), -53px 0 0 -6px rgba(0, 50, 126, 0.12), -54px 0 0 -6px rgba(0, 50, 126, 0.12), -55px 0 0 -6px rgba(0, 50, 126, 0.12), -56px 0 0 -6px rgba(0, 50, 126, 0.12), -57px 0 0 -6px rgba(0, 50, 126, 0.12), -58px 0 0 -6px rgba(0, 50, 126, 0.12), -59px 0 0 -6px rgba(0, 50, 126, 0.12), -60px 0 0 -6px rgba(0, 50, 126, 0.12), -61px 0 0 -6px rgba(0, 50, 126, 0.12), -62px 0 0 -6px rgba(0, 50, 126, 0.12), -63px 0 0 -6px rgba(0, 50, 126, 0.12), -64px 0 0 -6px rgba(0, 50, 126, 0.12), -65px 0 0 -6px rgba(0, 50, 126, 0.12), -66px 0 0 -6px rgba(0, 50, 126, 0.12), -67px 0 0 -6px rgba(0, 50, 126, 0.12), -68px 0 0 -6px rgba(0, 50, 126, 0.12), -69px 0 0 -6px rgba(0, 50, 126, 0.12), -70px 0 0 -6px rgba(0, 50, 126, 0.12), -71px 0 0 -6px rgba(0, 50, 126, 0.12), -72px 0 0 -6px rgba(0, 50, 126, 0.12), -73px 0 0 -6px rgba(0, 50, 126, 0.12), -74px 0 0 -6px rgba(0, 50, 126, 0.12), -75px 0 0 -6px rgba(0, 50, 126, 0.12), -76px 0 0 -6px rgba(0, 50, 126, 0.12), -77px 0 0 -6px rgba(0, 50, 126, 0.12), -78px 0 0 -6px rgba(0, 50, 126, 0.12), -79px 0 0 -6px rgba(0, 50, 126, 0.12), -80px 0 0 -6px rgba(0, 50, 126, 0.12), -81px 0 0 -6px rgba(0, 50, 126, 0.12), -82px 0 0 -6px rgba(0, 50, 126, 0.12), -83px 0 0 -6px rgba(0, 50, 126, 0.12), -84px 0 0 -6px rgba(0, 50, 126, 0.12), -85px 0 0 -6px rgba(0, 50, 126, 0.12), -86px 0 0 -6px rgba(0, 50, 126, 0.12), -87px 0 0 -6px rgba(0, 50, 126, 0.12), -88px 0 0 -6px rgba(0, 50, 126, 0.12), -89px 0 0 -6px rgba(0, 50, 126, 0.12), -90px 0 0 -6px rgba(0, 50, 126, 0.12), -91px 0 0 -6px rgba(0, 50, 126, 0.12), -92px 0 0 -6px rgba(0, 50, 126, 0.12), -93px 0 0 -6px rgba(0, 50, 126, 0.12), -94px 0 0 -6px rgba(0, 50, 126, 0.12), -95px 0 0 -6px rgba(0, 50, 126, 0.12), -96px 0 0 -6px rgba(0, 50, 126, 0.12), -97px 0 0 -6px rgba(0, 50, 126, 0.12), -98px 0 0 -6px rgba(0, 50, 126, 0.12), -99px 0 0 -6px rgba(0, 50, 126, 0.12), -100px 0 0 -6px rgba(0, 50, 126, 0.12), -101px 0 0 -6px rgba(0, 50, 126, 0.12), -102px 0 0 -6px rgba(0, 50, 126, 0.12), -103px 0 0 -6px rgba(0, 50, 126, 0.12), -104px 0 0 -6px rgba(0, 50, 126, 0.12), -105px 0 0 -6px rgba(0, 50, 126, 0.12), -106px 0 0 -6px rgba(0, 50, 126, 0.12), -107px 0 0 -6px rgba(0, 50, 126, 0.12), -108px 0 0 -6px rgba(0, 50, 126, 0.12), -109px 0 0 -6px rgba(0, 50, 126, 0.12), -110px 0 0 -6px rgba(0, 50, 126, 0.12), -111px 0 0 -6px rgba(0, 50, 126, 0.12), -112px 0 0 -6px rgba(0, 50, 126, 0.12), -113px 0 0 -6px rgba(0, 50, 126, 0.12), -114px 0 0 -6px rgba(0, 50, 126, 0.12), -115px 0 0 -6px rgba(0, 50, 126, 0.12), -116px 0 0 -6px rgba(0, 50, 126, 0.12), -117px 0 0 -6px rgba(0, 50, 126, 0.12), -118px 0 0 -6px rgba(0, 50, 126, 0.12), -119px 0 0 -6px rgba(0, 50, 126, 0.12), -120px 0 0 -6px rgba(0, 50, 126, 0.12), -121px 0 0 -6px rgba(0, 50, 126, 0.12), -122px 0 0 -6px rgba(0, 50, 126, 0.12), -123px 0 0 -6px rgba(0, 50, 126, 0.12), -124px 0 0 -6px rgba(0, 50, 126, 0.12), -125px 0 0 -6px rgba(0, 50, 126, 0.12), -126px 0 0 -6px rgba(0, 50, 126, 0.12), -127px 0 0 -6px rgba(0, 50, 126, 0.12), -128px 0 0 -6px rgba(0, 50, 126, 0.12), -129px 0 0 -6px rgba(0, 50, 126, 0.12), -130px 0 0 -6px rgba(0, 50, 126, 0.12), -131px 0 0 -6px rgba(0, 50, 126, 0.12), -132px 0 0 -6px rgba(0, 50, 126, 0.12), -133px 0 0 -6px rgba(0, 50, 126, 0.12), -134px 0 0 -6px rgba(0, 50, 126, 0.12), -135px 0 0 -6px rgba(0, 50, 126, 0.12), -136px 0 0 -6px rgba(0, 50, 126, 0.12), -137px 0 0 -6px rgba(0, 50, 126, 0.12), -138px 0 0 -6px rgba(0, 50, 126, 0.12), -139px 0 0 -6px rgba(0, 50, 126, 0.12), -140px 0 0 -6px rgba(0, 50, 126, 0.12), -141px 0 0 -6px rgba(0, 50, 126, 0.12), -142px 0 0 -6px rgba(0, 50, 126, 0.12), -143px 0 0 -6px rgba(0, 50, 126, 0.12), -144px 0 0 -6px rgba(0, 50, 126, 0.12), -145px 0 0 -6px rgba(0, 50, 126, 0.12), -146px 0 0 -6px rgba(0, 50, 126, 0.12), -147px 0 0 -6px rgba(0, 50, 126, 0.12), -148px 0 0 -6px rgba(0, 50, 126, 0.12), -149px 0 0 -6px rgba(0, 50, 126, 0.12), -150px 0 0 -6px rgba(0, 50, 126, 0.12), -151px 0 0 -6px rgba(0, 50, 126, 0.12), -152px 0 0 -6px rgba(0, 50, 126, 0.12), -153px 0 0 -6px rgba(0, 50, 126, 0.12), -154px 0 0 -6px rgba(0, 50, 126, 0.12), -155px 0 0 -6px rgba(0, 50, 126, 0.12), -156px 0 0 -6px rgba(0, 50, 126, 0.12), -157px 0 0 -6px rgba(0, 50, 126, 0.12), -158px 0 0 -6px rgba(0, 50, 126, 0.12), -159px 0 0 -6px rgba(0, 50, 126, 0.12), -160px 0 0 -6px rgba(0, 50, 126, 0.12), -161px 0 0 -6px rgba(0, 50, 126, 0.12), -162px 0 0 -6px rgba(0, 50, 126, 0.12), -163px 0 0 -6px rgba(0, 50, 126, 0.12), -164px 0 0 -6px rgba(0, 50, 126, 0.12), -165px 0 0 -6px rgba(0, 50, 126, 0.12), -166px 0 0 -6px rgba(0, 50, 126, 0.12), -167px 0 0 -6px rgba(0, 50, 126, 0.12), -168px 0 0 -6px rgba(0, 50, 126, 0.12), -169px 0 0 -6px rgba(0, 50, 126, 0.12), -170px 0 0 -6px rgba(0, 50, 126, 0.12), -171px 0 0 -6px rgba(0, 50, 126, 0.12), -172px 0 0 -6px rgba(0, 50, 126, 0.12), -173px 0 0 -6px rgba(0, 50, 126, 0.12), -174px 0 0 -6px rgba(0, 50, 126, 0.12), -175px 0 0 -6px rgba(0, 50, 126, 0.12), -176px 0 0 -6px rgba(0, 50, 126, 0.12), -177px 0 0 -6px rgba(0, 50, 126, 0.12), -178px 0 0 -6px rgba(0, 50, 126, 0.12), -179px 0 0 -6px rgba(0, 50, 126, 0.12), -180px 0 0 -6px rgba(0, 50, 126, 0.12), -181px 0 0 -6px rgba(0, 50, 126, 0.12), -182px 0 0 -6px rgba(0, 50, 126, 0.12), -183px 0 0 -6px rgba(0, 50, 126, 0.12), -184px 0 0 -6px rgba(0, 50, 126, 0.12), -185px 0 0 -6px rgba(0, 50, 126, 0.12), -186px 0 0 -6px rgba(0, 50, 126, 0.12), -187px 0 0 -6px rgba(0, 50, 126, 0.12), -188px 0 0 -6px rgba(0, 50, 126, 0.12), -189px 0 0 -6px rgba(0, 50, 126, 0.12), -190px 0 0 -6px rgba(0, 50, 126, 0.12), -191px 0 0 -6px rgba(0, 50, 126, 0.12), -192px 0 0 -6px rgba(0, 50, 126, 0.12), -193px 0 0 -6px rgba(0, 50, 126, 0.12), -194px 0 0 -6px rgba(0, 50, 126, 0.12), -195px 0 0 -6px rgba(0, 50, 126, 0.12), -196px 0 0 -6px rgba(0, 50, 126, 0.12), -197px 0 0 -6px rgba(0, 50, 126, 0.12), -198px 0 0 -6px rgba(0, 50, 126, 0.12), -199px 0 0 -6px rgba(0, 50, 126, 0.12), -200px 0 0 -6px rgba(0, 50, 126, 0.12), -201px 0 0 -6px rgba(0, 50, 126, 0.12), -202px 0 0 -6px rgba(0, 50, 126, 0.12), -203px 0 0 -6px rgba(0, 50, 126, 0.12), -204px 0 0 -6px rgba(0, 50, 126, 0.12), -205px 0 0 -6px rgba(0, 50, 126, 0.12), -206px 0 0 -6px rgba(0, 50, 126, 0.12), -207px 0 0 -6px rgba(0, 50, 126, 0.12), -208px 0 0 -6px rgba(0, 50, 126, 0.12), -209px 0 0 -6px rgba(0, 50, 126, 0.12), -210px 0 0 -6px rgba(0, 50, 126, 0.12), -211px 0 0 -6px rgba(0, 50, 126, 0.12), -212px 0 0 -6px rgba(0, 50, 126, 0.12), -213px 0 0 -6px rgba(0, 50, 126, 0.12), -214px 0 0 -6px rgba(0, 50, 126, 0.12), -215px 0 0 -6px rgba(0, 50, 126, 0.12), -216px 0 0 -6px rgba(0, 50, 126, 0.12), -217px 0 0 -6px rgba(0, 50, 126, 0.12), -218px 0 0 -6px rgba(0, 50, 126, 0.12), -219px 0 0 -6px rgba(0, 50, 126, 0.12), -220px 0 0 -6px rgba(0, 50, 126, 0.12), -221px 0 0 -6px rgba(0, 50, 126, 0.12), -222px 0 0 -6px rgba(0, 50, 126, 0.12), -223px 0 0 -6px rgba(0, 50, 126, 0.12), -224px 0 0 -6px rgba(0, 50, 126, 0.12), -225px 0 0 -6px rgba(0, 50, 126, 0.12), -226px 0 0 -6px rgba(0, 50, 126, 0.12), -227px 0 0 -6px rgba(0, 50, 126, 0.12), -228px 0 0 -6px rgba(0, 50, 126, 0.12), -229px 0 0 -6px rgba(0, 50, 126, 0.12), -230px 0 0 -6px rgba(0, 50, 126, 0.12), -231px 0 0 -6px rgba(0, 50, 126, 0.12), -232px 0 0 -6px rgba(0, 50, 126, 0.12), -233px 0 0 -6px rgba(0, 50, 126, 0.12), -234px 0 0 -6px rgba(0, 50, 126, 0.12), -235px 0 0 -6px rgba(0, 50, 126, 0.12), -236px 0 0 -6px rgba(0, 50, 126, 0.12), -237px 0 0 -6px rgba(0, 50, 126, 0.12), -238px 0 0 -6px rgba(0, 50, 126, 0.12), -239px 0 0 -6px rgba(0, 50, 126, 0.12), -240px 0 0 -6px rgba(0, 50, 126, 0.12); - margin-top: -6px; - border: 1px solid rgba(0, 30, 75, 0.12); - transition: .3s border-color, .3s background-color; -} - -.custom-range::-moz-range-track { - width: 240px; - height: 2px; - background: rgba(0, 50, 126, 0.12); -} - -.custom-range::-moz-range-thumb { - width: 14px; - height: 14px; - background: #fff; - border-radius: 50px; - border: 1px solid rgba(0, 30, 75, 0.12); - position: relative; - transition: .3s border-color, .3s background-color; -} - -.custom-range::-moz-range-progress { - height: 2px; - background: #467fcf; - border: 0; - margin-top: 0; -} - -.custom-range::-ms-track { - background: transparent; - border: 0; - border-color: transparent; - border-radius: 0; - border-width: 0; - color: transparent; - height: 2px; - margin-top: 10px; - width: 240px; -} - -.custom-range::-ms-thumb { - width: 240px; - height: 2px; - background: #fff; - border-radius: 50px; - border: 1px solid rgba(0, 30, 75, 0.12); - transition: .3s border-color, .3s background-color; -} - -.custom-range::-ms-fill-lower { - background: #467fcf; - border-radius: 0; -} - -.custom-range::-ms-fill-upper { - background: rgba(0, 50, 126, 0.12); - border-radius: 0; -} - -.custom-range::-ms-tooltip { - display: none; -} - -.selectgroup { - display: -ms-inline-flexbox; - display: inline-flex; -} - -.selectgroup-item { - -ms-flex-positive: 1; - flex-grow: 1; - position: relative; -} - -.selectgroup-item + .selectgroup-item { - margin-right: -1px; -} - -.selectgroup-item:not(:first-child) .selectgroup-button { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} - -.selectgroup-item:not(:last-child) .selectgroup-button { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} - -.selectgroup-input { - opacity: 0; - position: absolute; - z-index: -1; - top: 0; - right: 0; -} - -.selectgroup-button { - display: block; - border: 1px solid rgba(0, 40, 100, 0.12); - text-align: center; - padding: 0.375rem 1rem; - position: relative; - cursor: pointer; - border-radius: 3px; - color: #9aa0ac; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - font-size: 0.9375rem; - line-height: 1.5rem; - min-width: 2.375rem; -} - -.selectgroup-button-icon { - padding-right: .5rem; - padding-left: .5rem; - font-size: 1rem; -} - -.selectgroup-input:checked + .selectgroup-button { - border-color: #467fcf; - z-index: 1; - color: #467fcf; - background: #edf2fa; -} - -.selectgroup-input:focus + .selectgroup-button { - border-color: #467fcf; - z-index: 2; - color: #467fcf; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.selectgroup-pills { - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -ms-flex-align: start; - align-items: flex-start; -} - -.selectgroup-pills .selectgroup-item { - margin-left: .5rem; - -ms-flex-positive: 0; - flex-grow: 0; -} - -.selectgroup-pills .selectgroup-button { - border-radius: 50px !important; -} - -.custom-switch { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - cursor: default; - display: -ms-inline-flexbox; - display: inline-flex; - -ms-flex-align: center; - align-items: center; - margin: 0; -} - -.custom-switch-input { - position: absolute; - z-index: -1; - opacity: 0; -} - -.custom-switches-stacked { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; -} - -.custom-switches-stacked .custom-switch { - margin-bottom: .5rem; -} - -.custom-switch-indicator { - display: inline-block; - height: 1.25rem; - width: 2.25rem; - background: #e9ecef; - border-radius: 50px; - position: relative; - vertical-align: bottom; - border: 1px solid rgba(0, 40, 100, 0.12); - transition: .3s border-color, .3s background-color; -} - -.custom-switch-indicator:before { - content: ''; - position: absolute; - height: calc(1.25rem - 4px); - width: calc(1.25rem - 4px); - top: 1px; - right: 1px; - background: #fff; - border-radius: 50%; - transition: .3s right; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); -} - -.custom-switch-input:checked ~ .custom-switch-indicator { - background: #467fcf; -} - -.custom-switch-input:checked ~ .custom-switch-indicator:before { - right: calc(1rem + 1px); -} - -.custom-switch-input:focus ~ .custom-switch-indicator { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); - border-color: #467fcf; -} - -.custom-switch-description { - margin-right: .5rem; - color: #6e7687; - transition: .3s color; -} - -.custom-switch-input:checked ~ .custom-switch-description { - color: #495057; -} - -.imagecheck { - margin: 0; - position: relative; - cursor: pointer; -} - -.imagecheck-input { - position: absolute; - z-index: -1; - opacity: 0; -} - -.imagecheck-figure { - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; - margin: 0; - position: relative; -} - -.imagecheck-input:focus ~ .imagecheck-figure { - border-color: #467fcf; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.imagecheck-input:checked ~ .imagecheck-figure { - border-color: rgba(0, 40, 100, 0.24); -} - -.imagecheck-figure:before { - content: ''; - position: absolute; - top: .25rem; - right: .25rem; - display: block; - width: 1rem; - height: 1rem; - pointer-events: none; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - background: #467fcf url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E") no-repeat center center/50% 50%; - color: #fff; - z-index: 1; - border-radius: 3px; - opacity: 0; - transition: .3s opacity; -} - -.imagecheck-input:checked ~ .imagecheck-figure:before { - opacity: 1; -} - -.imagecheck-image { - max-width: 100%; - opacity: .64; - transition: .3s opacity; -} - -.imagecheck-image:first-child { - border-top-right-radius: 2px; - border-top-left-radius: 2px; -} - -.imagecheck-image:last-child { - border-bottom-right-radius: 2px; - border-bottom-left-radius: 2px; -} - -.imagecheck:hover .imagecheck-image, -.imagecheck-input:focus ~ .imagecheck-figure .imagecheck-image, -.imagecheck-input:checked ~ .imagecheck-figure .imagecheck-image { - opacity: 1; -} - -.imagecheck-caption { - text-align: center; - padding: .25rem .25rem; - color: #9aa0ac; - font-size: 0.875rem; - transition: .3s color; -} - -.imagecheck:hover .imagecheck-caption, -.imagecheck-input:focus ~ .imagecheck-figure .imagecheck-caption, -.imagecheck-input:checked ~ .imagecheck-figure .imagecheck-caption { - color: #495057; -} - -.colorinput { - margin: 0; - position: relative; - cursor: pointer; -} - -.colorinput-input { - position: absolute; - z-index: -1; - opacity: 0; -} - -.colorinput-color { - display: inline-block; - width: 1.75rem; - height: 1.75rem; - border-radius: 3px; - border: 1px solid rgba(0, 40, 100, 0.12); - color: #fff; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); -} - -.colorinput-color:before { - content: ''; - opacity: 0; - position: absolute; - top: .25rem; - right: .25rem; - height: 1.25rem; - width: 1.25rem; - transition: .3s opacity; - background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E") no-repeat center center/50% 50%; -} - -.colorinput-input:checked ~ .colorinput-color:before { - opacity: 1; -} - -.colorinput-input:focus ~ .colorinput-color { - border-color: #467fcf; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.timeline { - position: relative; - margin: 0 0 2rem; - padding: 0; - list-style: none; -} - -.timeline:before { - background-color: #e9ecef; - position: absolute; - display: block; - content: ''; - width: 1px; - height: 100%; - top: 0; - bottom: 0; - right: 4px; -} - -.timeline-item { - position: relative; - display: -ms-flexbox; - display: flex; - padding-right: 2rem; - margin: .5rem 0; -} - -.timeline-item:first-child:before, .timeline-item:last-child:before { - content: ''; - position: absolute; - background: #fff; - width: 1px; - right: .25rem; -} - -.timeline-item:first-child { - margin-top: 0; -} - -.timeline-item:first-child:before { - top: 0; - height: .5rem; -} - -.timeline-item:last-child { - margin-bottom: 0; -} - -.timeline-item:last-child:before { - top: .5rem; - bottom: 0; -} - -.timeline-badge { - position: absolute; - display: block; - width: 0.4375rem; - height: 0.4375rem; - right: 1px; - top: .5rem; - border-radius: 100%; - border: 1px solid #fff; - background: #adb5bd; -} - -.timeline-time { - white-space: nowrap; - margin-right: auto; - color: #9aa0ac; - font-size: 87.5%; -} - -.browser { - width: 1.25rem; - height: 1.25rem; - display: inline-block; - background: no-repeat center/100% 100%; - vertical-align: bottom; - font-style: normal; -} - -.browser-android-browser { - background-image: url("../images/browsers/android-browser.svg"); -} - -.browser-aol-explorer { - background-image: url("../images/browsers/aol-explorer.svg"); -} - -.browser-blackberry { - background-image: url("../images/browsers/blackberry.svg"); -} - -.browser-camino { - background-image: url("../images/browsers/camino.svg"); -} - -.browser-chrome { - background-image: url("../images/browsers/chrome.svg"); -} - -.browser-chromium { - background-image: url("../images/browsers/chromium.svg"); -} - -.browser-dolphin { - background-image: url("../images/browsers/dolphin.svg"); -} - -.browser-edge { - background-image: url("../images/browsers/edge.svg"); -} - -.browser-firefox { - background-image: url("../images/browsers/firefox.svg"); -} - -.browser-ie { - background-image: url("../images/browsers/ie.svg"); -} - -.browser-maxthon { - background-image: url("../images/browsers/maxthon.svg"); -} - -.browser-mozilla { - background-image: url("../images/browsers/mozilla.svg"); -} - -.browser-netscape { - background-image: url("../images/browsers/netscape.svg"); -} - -.browser-opera { - background-image: url("../images/browsers/opera.svg"); -} - -.browser-safari { - background-image: url("../images/browsers/safari.svg"); -} - -.browser-sleipnir { - background-image: url("../images/browsers/sleipnir.svg"); -} - -.browser-uc-browser { - background-image: url("../images/browsers/uc-browser.svg"); -} - -.browser-vivaldi { - background-image: url("../images/browsers/vivaldi.svg"); -} - -.flag { - width: 1.6rem; - height: 1.2rem; - display: inline-block; - background: no-repeat center/100% 100%; - vertical-align: bottom; - font-style: normal; - box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.1); - border-radius: 2px; -} - -.flag-ad { - background-image: url("../images/flags/ad.svg"); -} - -.flag-ae { - background-image: url("../images/flags/ae.svg"); -} - -.flag-af { - background-image: url("../images/flags/af.svg"); -} - -.flag-ag { - background-image: url("../images/flags/ag.svg"); -} - -.flag-ai { - background-image: url("../images/flags/ai.svg"); -} - -.flag-al { - background-image: url("../images/flags/al.svg"); -} - -.flag-am { - background-image: url("../images/flags/am.svg"); -} - -.flag-ao { - background-image: url("../images/flags/ao.svg"); -} - -.flag-aq { - background-image: url("../images/flags/aq.svg"); -} - -.flag-ar { - background-image: url("../images/flags/ar.svg"); -} - -.flag-as { - background-image: url("../images/flags/as.svg"); -} - -.flag-at { - background-image: url("../images/flags/at.svg"); -} - -.flag-au { - background-image: url("../images/flags/au.svg"); -} - -.flag-aw { - background-image: url("../images/flags/aw.svg"); -} - -.flag-ax { - background-image: url("../images/flags/ax.svg"); -} - -.flag-az { - background-image: url("../images/flags/az.svg"); -} - -.flag-ba { - background-image: url("../images/flags/ba.svg"); -} - -.flag-bb { - background-image: url("../images/flags/bb.svg"); -} - -.flag-bd { - background-image: url("../images/flags/bd.svg"); -} - -.flag-be { - background-image: url("../images/flags/be.svg"); -} - -.flag-bf { - background-image: url("../images/flags/bf.svg"); -} - -.flag-bg { - background-image: url("../images/flags/bg.svg"); -} - -.flag-bh { - background-image: url("../images/flags/bh.svg"); -} - -.flag-bi { - background-image: url("../images/flags/bi.svg"); -} - -.flag-bj { - background-image: url("../images/flags/bj.svg"); -} - -.flag-bl { - background-image: url("../images/flags/bl.svg"); -} - -.flag-bm { - background-image: url("../images/flags/bm.svg"); -} - -.flag-bn { - background-image: url("../images/flags/bn.svg"); -} - -.flag-bo { - background-image: url("../images/flags/bo.svg"); -} - -.flag-bq { - background-image: url("../images/flags/bq.svg"); -} - -.flag-br { - background-image: url("../images/flags/br.svg"); -} - -.flag-bs { - background-image: url("../images/flags/bs.svg"); -} - -.flag-bt { - background-image: url("../images/flags/bt.svg"); -} - -.flag-bv { - background-image: url("../images/flags/bv.svg"); -} - -.flag-bw { - background-image: url("../images/flags/bw.svg"); -} - -.flag-by { - background-image: url("../images/flags/by.svg"); -} - -.flag-bz { - background-image: url("../images/flags/bz.svg"); -} - -.flag-ca { - background-image: url("../images/flags/ca.svg"); -} - -.flag-cc { - background-image: url("../images/flags/cc.svg"); -} - -.flag-cd { - background-image: url("../images/flags/cd.svg"); -} - -.flag-cf { - background-image: url("../images/flags/cf.svg"); -} - -.flag-cg { - background-image: url("../images/flags/cg.svg"); -} - -.flag-ch { - background-image: url("../images/flags/ch.svg"); -} - -.flag-ci { - background-image: url("../images/flags/ci.svg"); -} - -.flag-ck { - background-image: url("../images/flags/ck.svg"); -} - -.flag-cl { - background-image: url("../images/flags/cl.svg"); -} - -.flag-cm { - background-image: url("../images/flags/cm.svg"); -} - -.flag-cn { - background-image: url("../images/flags/cn.svg"); -} - -.flag-co { - background-image: url("../images/flags/co.svg"); -} - -.flag-cr { - background-image: url("../images/flags/cr.svg"); -} - -.flag-cu { - background-image: url("../images/flags/cu.svg"); -} - -.flag-cv { - background-image: url("../images/flags/cv.svg"); -} - -.flag-cw { - background-image: url("../images/flags/cw.svg"); -} - -.flag-cx { - background-image: url("../images/flags/cx.svg"); -} - -.flag-cy { - background-image: url("../images/flags/cy.svg"); -} - -.flag-cz { - background-image: url("../images/flags/cz.svg"); -} - -.flag-de { - background-image: url("../images/flags/de.svg"); -} - -.flag-dj { - background-image: url("../images/flags/dj.svg"); -} - -.flag-dk { - background-image: url("../images/flags/dk.svg"); -} - -.flag-dm { - background-image: url("../images/flags/dm.svg"); -} - -.flag-do { - background-image: url("../images/flags/do.svg"); -} - -.flag-dz { - background-image: url("../images/flags/dz.svg"); -} - -.flag-ec { - background-image: url("../images/flags/ec.svg"); -} - -.flag-ee { - background-image: url("../images/flags/ee.svg"); -} - -.flag-eg { - background-image: url("../images/flags/eg.svg"); -} - -.flag-eh { - background-image: url("../images/flags/eh.svg"); -} - -.flag-er { - background-image: url("../images/flags/er.svg"); -} - -.flag-es { - background-image: url("../images/flags/es.svg"); -} - -.flag-et { - background-image: url("../images/flags/et.svg"); -} - -.flag-eu { - background-image: url("../images/flags/eu.svg"); -} - -.flag-fi { - background-image: url("../images/flags/fi.svg"); -} - -.flag-fj { - background-image: url("../images/flags/fj.svg"); -} - -.flag-fk { - background-image: url("../images/flags/fk.svg"); -} - -.flag-fm { - background-image: url("../images/flags/fm.svg"); -} - -.flag-fo { - background-image: url("../images/flags/fo.svg"); -} - -.flag-fr { - background-image: url("../images/flags/fr.svg"); -} - -.flag-ga { - background-image: url("../images/flags/ga.svg"); -} - -.flag-gb-eng { - background-image: url("../images/flags/gb-eng.svg"); -} - -.flag-gb-nir { - background-image: url("../images/flags/gb-nir.svg"); -} - -.flag-gb-sct { - background-image: url("../images/flags/gb-sct.svg"); -} - -.flag-gb-wls { - background-image: url("../images/flags/gb-wls.svg"); -} - -.flag-gb { - background-image: url("../images/flags/gb.svg"); -} - -.flag-gd { - background-image: url("../images/flags/gd.svg"); -} - -.flag-ge { - background-image: url("../images/flags/ge.svg"); -} - -.flag-gf { - background-image: url("../images/flags/gf.svg"); -} - -.flag-gg { - background-image: url("../images/flags/gg.svg"); -} - -.flag-gh { - background-image: url("../images/flags/gh.svg"); -} - -.flag-gi { - background-image: url("../images/flags/gi.svg"); -} - -.flag-gl { - background-image: url("../images/flags/gl.svg"); -} - -.flag-gm { - background-image: url("../images/flags/gm.svg"); -} - -.flag-gn { - background-image: url("../images/flags/gn.svg"); -} - -.flag-gp { - background-image: url("../images/flags/gp.svg"); -} - -.flag-gq { - background-image: url("../images/flags/gq.svg"); -} - -.flag-gr { - background-image: url("../images/flags/gr.svg"); -} - -.flag-gs { - background-image: url("../images/flags/gs.svg"); -} - -.flag-gt { - background-image: url("../images/flags/gt.svg"); -} - -.flag-gu { - background-image: url("../images/flags/gu.svg"); -} - -.flag-gw { - background-image: url("../images/flags/gw.svg"); -} - -.flag-gy { - background-image: url("../images/flags/gy.svg"); -} - -.flag-hk { - background-image: url("../images/flags/hk.svg"); -} - -.flag-hm { - background-image: url("../images/flags/hm.svg"); -} - -.flag-hn { - background-image: url("../images/flags/hn.svg"); -} - -.flag-hr { - background-image: url("../images/flags/hr.svg"); -} - -.flag-ht { - background-image: url("../images/flags/ht.svg"); -} - -.flag-hu { - background-image: url("../images/flags/hu.svg"); -} - -.flag-id { - background-image: url("../images/flags/id.svg"); -} - -.flag-ie { - background-image: url("../images/flags/ie.svg"); -} - -.flag-il { - background-image: url("../images/flags/il.svg"); -} - -.flag-im { - background-image: url("../images/flags/im.svg"); -} - -.flag-in { - background-image: url("../images/flags/in.svg"); -} - -.flag-io { - background-image: url("../images/flags/io.svg"); -} - -.flag-iq { - background-image: url("../images/flags/iq.svg"); -} - -.flag-ir { - background-image: url("../images/flags/ir.svg"); -} - -.flag-is { - background-image: url("../images/flags/is.svg"); -} - -.flag-it { - background-image: url("../images/flags/it.svg"); -} - -.flag-je { - background-image: url("../images/flags/je.svg"); -} - -.flag-jm { - background-image: url("../images/flags/jm.svg"); -} - -.flag-jo { - background-image: url("../images/flags/jo.svg"); -} - -.flag-jp { - background-image: url("../images/flags/jp.svg"); -} - -.flag-ke { - background-image: url("../images/flags/ke.svg"); -} - -.flag-kg { - background-image: url("../images/flags/kg.svg"); -} - -.flag-kh { - background-image: url("../images/flags/kh.svg"); -} - -.flag-ki { - background-image: url("../images/flags/ki.svg"); -} - -.flag-km { - background-image: url("../images/flags/km.svg"); -} - -.flag-kn { - background-image: url("../images/flags/kn.svg"); -} - -.flag-kp { - background-image: url("../images/flags/kp.svg"); -} - -.flag-kr { - background-image: url("../images/flags/kr.svg"); -} - -.flag-kw { - background-image: url("../images/flags/kw.svg"); -} - -.flag-ky { - background-image: url("../images/flags/ky.svg"); -} - -.flag-kz { - background-image: url("../images/flags/kz.svg"); -} - -.flag-la { - background-image: url("../images/flags/la.svg"); -} - -.flag-lb { - background-image: url("../images/flags/lb.svg"); -} - -.flag-lc { - background-image: url("../images/flags/lc.svg"); -} - -.flag-li { - background-image: url("../images/flags/li.svg"); -} - -.flag-lk { - background-image: url("../images/flags/lk.svg"); -} - -.flag-lr { - background-image: url("../images/flags/lr.svg"); -} - -.flag-ls { - background-image: url("../images/flags/ls.svg"); -} - -.flag-lt { - background-image: url("../images/flags/lt.svg"); -} - -.flag-lu { - background-image: url("../images/flags/lu.svg"); -} - -.flag-lv { - background-image: url("../images/flags/lv.svg"); -} - -.flag-ly { - background-image: url("../images/flags/ly.svg"); -} - -.flag-ma { - background-image: url("../images/flags/ma.svg"); -} - -.flag-mc { - background-image: url("../images/flags/mc.svg"); -} - -.flag-md { - background-image: url("../images/flags/md.svg"); -} - -.flag-me { - background-image: url("../images/flags/me.svg"); -} - -.flag-mf { - background-image: url("../images/flags/mf.svg"); -} - -.flag-mg { - background-image: url("../images/flags/mg.svg"); -} - -.flag-mh { - background-image: url("../images/flags/mh.svg"); -} - -.flag-mk { - background-image: url("../images/flags/mk.svg"); -} - -.flag-ml { - background-image: url("../images/flags/ml.svg"); -} - -.flag-mm { - background-image: url("../images/flags/mm.svg"); -} - -.flag-mn { - background-image: url("../images/flags/mn.svg"); -} - -.flag-mo { - background-image: url("../images/flags/mo.svg"); -} - -.flag-mp { - background-image: url("../images/flags/mp.svg"); -} - -.flag-mq { - background-image: url("../images/flags/mq.svg"); -} - -.flag-mr { - background-image: url("../images/flags/mr.svg"); -} - -.flag-ms { - background-image: url("../images/flags/ms.svg"); -} - -.flag-mt { - background-image: url("../images/flags/mt.svg"); -} - -.flag-mu { - background-image: url("../images/flags/mu.svg"); -} - -.flag-mv { - background-image: url("../images/flags/mv.svg"); -} - -.flag-mw { - background-image: url("../images/flags/mw.svg"); -} - -.flag-mx { - background-image: url("../images/flags/mx.svg"); -} - -.flag-my { - background-image: url("../images/flags/my.svg"); -} - -.flag-mz { - background-image: url("../images/flags/mz.svg"); -} - -.flag-na { - background-image: url("../images/flags/na.svg"); -} - -.flag-nc { - background-image: url("../images/flags/nc.svg"); -} - -.flag-ne { - background-image: url("../images/flags/ne.svg"); -} - -.flag-nf { - background-image: url("../images/flags/nf.svg"); -} - -.flag-ng { - background-image: url("../images/flags/ng.svg"); -} - -.flag-ni { - background-image: url("../images/flags/ni.svg"); -} - -.flag-nl { - background-image: url("../images/flags/nl.svg"); -} - -.flag-no { - background-image: url("../images/flags/no.svg"); -} - -.flag-np { - background-image: url("../images/flags/np.svg"); -} - -.flag-nr { - background-image: url("../images/flags/nr.svg"); -} - -.flag-nu { - background-image: url("../images/flags/nu.svg"); -} - -.flag-nz { - background-image: url("../images/flags/nz.svg"); -} - -.flag-om { - background-image: url("../images/flags/om.svg"); -} - -.flag-pa { - background-image: url("../images/flags/pa.svg"); -} - -.flag-pe { - background-image: url("../images/flags/pe.svg"); -} - -.flag-pf { - background-image: url("../images/flags/pf.svg"); -} - -.flag-pg { - background-image: url("../images/flags/pg.svg"); -} - -.flag-ph { - background-image: url("../images/flags/ph.svg"); -} - -.flag-pk { - background-image: url("../images/flags/pk.svg"); -} - -.flag-pl { - background-image: url("../images/flags/pl.svg"); -} - -.flag-pm { - background-image: url("../images/flags/pm.svg"); -} - -.flag-pn { - background-image: url("../images/flags/pn.svg"); -} - -.flag-pr { - background-image: url("../images/flags/pr.svg"); -} - -.flag-ps { - background-image: url("../images/flags/ps.svg"); -} - -.flag-pt { - background-image: url("../images/flags/pt.svg"); -} - -.flag-pw { - background-image: url("../images/flags/pw.svg"); -} - -.flag-py { - background-image: url("../images/flags/py.svg"); -} - -.flag-qa { - background-image: url("../images/flags/qa.svg"); -} - -.flag-re { - background-image: url("../images/flags/re.svg"); -} - -.flag-ro { - background-image: url("../images/flags/ro.svg"); -} - -.flag-rs { - background-image: url("../images/flags/rs.svg"); -} - -.flag-ru { - background-image: url("../images/flags/ru.svg"); -} - -.flag-rw { - background-image: url("../images/flags/rw.svg"); -} - -.flag-sa { - background-image: url("../images/flags/sa.svg"); -} - -.flag-sb { - background-image: url("../images/flags/sb.svg"); -} - -.flag-sc { - background-image: url("../images/flags/sc.svg"); -} - -.flag-sd { - background-image: url("../images/flags/sd.svg"); -} - -.flag-se { - background-image: url("../images/flags/se.svg"); -} - -.flag-sg { - background-image: url("../images/flags/sg.svg"); -} - -.flag-sh { - background-image: url("../images/flags/sh.svg"); -} - -.flag-si { - background-image: url("../images/flags/si.svg"); -} - -.flag-sj { - background-image: url("../images/flags/sj.svg"); -} - -.flag-sk { - background-image: url("../images/flags/sk.svg"); -} - -.flag-sl { - background-image: url("../images/flags/sl.svg"); -} - -.flag-sm { - background-image: url("../images/flags/sm.svg"); -} - -.flag-sn { - background-image: url("../images/flags/sn.svg"); -} - -.flag-so { - background-image: url("../images/flags/so.svg"); -} - -.flag-sr { - background-image: url("../images/flags/sr.svg"); -} - -.flag-ss { - background-image: url("../images/flags/ss.svg"); -} - -.flag-st { - background-image: url("../images/flags/st.svg"); -} - -.flag-sv { - background-image: url("../images/flags/sv.svg"); -} - -.flag-sx { - background-image: url("../images/flags/sx.svg"); -} - -.flag-sy { - background-image: url("../images/flags/sy.svg"); -} - -.flag-sz { - background-image: url("../images/flags/sz.svg"); -} - -.flag-tc { - background-image: url("../images/flags/tc.svg"); -} - -.flag-td { - background-image: url("../images/flags/td.svg"); -} - -.flag-tf { - background-image: url("../images/flags/tf.svg"); -} - -.flag-tg { - background-image: url("../images/flags/tg.svg"); -} - -.flag-th { - background-image: url("../images/flags/th.svg"); -} - -.flag-tj { - background-image: url("../images/flags/tj.svg"); -} - -.flag-tk { - background-image: url("../images/flags/tk.svg"); -} - -.flag-tl { - background-image: url("../images/flags/tl.svg"); -} - -.flag-tm { - background-image: url("../images/flags/tm.svg"); -} - -.flag-tn { - background-image: url("../images/flags/tn.svg"); -} - -.flag-to { - background-image: url("../images/flags/to.svg"); -} - -.flag-tr { - background-image: url("../images/flags/tr.svg"); -} - -.flag-tt { - background-image: url("../images/flags/tt.svg"); -} - -.flag-tv { - background-image: url("../images/flags/tv.svg"); -} - -.flag-tw { - background-image: url("../images/flags/tw.svg"); -} - -.flag-tz { - background-image: url("../images/flags/tz.svg"); -} - -.flag-ua { - background-image: url("../images/flags/ua.svg"); -} - -.flag-ug { - background-image: url("../images/flags/ug.svg"); -} - -.flag-um { - background-image: url("../images/flags/um.svg"); -} - -.flag-un { - background-image: url("../images/flags/un.svg"); -} - -.flag-us { - background-image: url("../images/flags/us.svg"); -} - -.flag-uy { - background-image: url("../images/flags/uy.svg"); -} - -.flag-uz { - background-image: url("../images/flags/uz.svg"); -} - -.flag-va { - background-image: url("../images/flags/va.svg"); -} - -.flag-vc { - background-image: url("../images/flags/vc.svg"); -} - -.flag-ve { - background-image: url("../images/flags/ve.svg"); -} - -.flag-vg { - background-image: url("../images/flags/vg.svg"); -} - -.flag-vi { - background-image: url("../images/flags/vi.svg"); -} - -.flag-vn { - background-image: url("../images/flags/vn.svg"); -} - -.flag-vu { - background-image: url("../images/flags/vu.svg"); -} - -.flag-wf { - background-image: url("../images/flags/wf.svg"); -} - -.flag-ws { - background-image: url("../images/flags/ws.svg"); -} - -.flag-ye { - background-image: url("../images/flags/ye.svg"); -} - -.flag-yt { - background-image: url("../images/flags/yt.svg"); -} - -.flag-za { - background-image: url("../images/flags/za.svg"); -} - -.flag-zm { - background-image: url("../images/flags/zm.svg"); -} - -.flag-zw { - background-image: url("../images/flags/zw.svg"); -} - -.payment { - width: 2.5rem; - height: 1.5rem; - display: inline-block; - background: no-repeat center/100% 100%; - vertical-align: bottom; - font-style: normal; - box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.1); - border-radius: 2px; -} - -.payment-2checkout-dark { - background-image: url("../images/payments/2checkout-dark.svg"); -} - -.payment-2checkout { - background-image: url("../images/payments/2checkout.svg"); -} - -.payment-alipay-dark { - background-image: url("../images/payments/alipay-dark.svg"); -} - -.payment-alipay { - background-image: url("../images/payments/alipay.svg"); -} - -.payment-amazon-dark { - background-image: url("../images/payments/amazon-dark.svg"); -} - -.payment-amazon { - background-image: url("../images/payments/amazon.svg"); -} - -.payment-americanexpress-dark { - background-image: url("../images/payments/americanexpress-dark.svg"); -} - -.payment-americanexpress { - background-image: url("../images/payments/americanexpress.svg"); -} - -.payment-applepay-dark { - background-image: url("../images/payments/applepay-dark.svg"); -} - -.payment-applepay { - background-image: url("../images/payments/applepay.svg"); -} - -.payment-bancontact-dark { - background-image: url("../images/payments/bancontact-dark.svg"); -} - -.payment-bancontact { - background-image: url("../images/payments/bancontact.svg"); -} - -.payment-bitcoin-dark { - background-image: url("../images/payments/bitcoin-dark.svg"); -} - -.payment-bitcoin { - background-image: url("../images/payments/bitcoin.svg"); -} - -.payment-bitpay-dark { - background-image: url("../images/payments/bitpay-dark.svg"); -} - -.payment-bitpay { - background-image: url("../images/payments/bitpay.svg"); -} - -.payment-cirrus-dark { - background-image: url("../images/payments/cirrus-dark.svg"); -} - -.payment-cirrus { - background-image: url("../images/payments/cirrus.svg"); -} - -.payment-clickandbuy-dark { - background-image: url("../images/payments/clickandbuy-dark.svg"); -} - -.payment-clickandbuy { - background-image: url("../images/payments/clickandbuy.svg"); -} - -.payment-coinkite-dark { - background-image: url("../images/payments/coinkite-dark.svg"); -} - -.payment-coinkite { - background-image: url("../images/payments/coinkite.svg"); -} - -.payment-dinersclub-dark { - background-image: url("../images/payments/dinersclub-dark.svg"); -} - -.payment-dinersclub { - background-image: url("../images/payments/dinersclub.svg"); -} - -.payment-directdebit-dark { - background-image: url("../images/payments/directdebit-dark.svg"); -} - -.payment-directdebit { - background-image: url("../images/payments/directdebit.svg"); -} - -.payment-discover-dark { - background-image: url("../images/payments/discover-dark.svg"); -} - -.payment-discover { - background-image: url("../images/payments/discover.svg"); -} - -.payment-dwolla-dark { - background-image: url("../images/payments/dwolla-dark.svg"); -} - -.payment-dwolla { - background-image: url("../images/payments/dwolla.svg"); -} - -.payment-ebay-dark { - background-image: url("../images/payments/ebay-dark.svg"); -} - -.payment-ebay { - background-image: url("../images/payments/ebay.svg"); -} - -.payment-eway-dark { - background-image: url("../images/payments/eway-dark.svg"); -} - -.payment-eway { - background-image: url("../images/payments/eway.svg"); -} - -.payment-giropay-dark { - background-image: url("../images/payments/giropay-dark.svg"); -} - -.payment-giropay { - background-image: url("../images/payments/giropay.svg"); -} - -.payment-googlewallet-dark { - background-image: url("../images/payments/googlewallet-dark.svg"); -} - -.payment-googlewallet { - background-image: url("../images/payments/googlewallet.svg"); -} - -.payment-ingenico-dark { - background-image: url("../images/payments/ingenico-dark.svg"); -} - -.payment-ingenico { - background-image: url("../images/payments/ingenico.svg"); -} - -.payment-jcb-dark { - background-image: url("../images/payments/jcb-dark.svg"); -} - -.payment-jcb { - background-image: url("../images/payments/jcb.svg"); -} - -.payment-klarna-dark { - background-image: url("../images/payments/klarna-dark.svg"); -} - -.payment-klarna { - background-image: url("../images/payments/klarna.svg"); -} - -.payment-laser-dark { - background-image: url("../images/payments/laser-dark.svg"); -} - -.payment-laser { - background-image: url("../images/payments/laser.svg"); -} - -.payment-maestro-dark { - background-image: url("../images/payments/maestro-dark.svg"); -} - -.payment-maestro { - background-image: url("../images/payments/maestro.svg"); -} - -.payment-mastercard-dark { - background-image: url("../images/payments/mastercard-dark.svg"); -} - -.payment-mastercard { - background-image: url("../images/payments/mastercard.svg"); -} - -.payment-monero-dark { - background-image: url("../images/payments/monero-dark.svg"); -} - -.payment-monero { - background-image: url("../images/payments/monero.svg"); -} - -.payment-neteller-dark { - background-image: url("../images/payments/neteller-dark.svg"); -} - -.payment-neteller { - background-image: url("../images/payments/neteller.svg"); -} - -.payment-ogone-dark { - background-image: url("../images/payments/ogone-dark.svg"); -} - -.payment-ogone { - background-image: url("../images/payments/ogone.svg"); -} - -.payment-okpay-dark { - background-image: url("../images/payments/okpay-dark.svg"); -} - -.payment-okpay { - background-image: url("../images/payments/okpay.svg"); -} - -.payment-paybox-dark { - background-image: url("../images/payments/paybox-dark.svg"); -} - -.payment-paybox { - background-image: url("../images/payments/paybox.svg"); -} - -.payment-paymill-dark { - background-image: url("../images/payments/paymill-dark.svg"); -} - -.payment-paymill { - background-image: url("../images/payments/paymill.svg"); -} - -.payment-payone-dark { - background-image: url("../images/payments/payone-dark.svg"); -} - -.payment-payone { - background-image: url("../images/payments/payone.svg"); -} - -.payment-payoneer-dark { - background-image: url("../images/payments/payoneer-dark.svg"); -} - -.payment-payoneer { - background-image: url("../images/payments/payoneer.svg"); -} - -.payment-paypal-dark { - background-image: url("../images/payments/paypal-dark.svg"); -} - -.payment-paypal { - background-image: url("../images/payments/paypal.svg"); -} - -.payment-paysafecard-dark { - background-image: url("../images/payments/paysafecard-dark.svg"); -} - -.payment-paysafecard { - background-image: url("../images/payments/paysafecard.svg"); -} - -.payment-payu-dark { - background-image: url("../images/payments/payu-dark.svg"); -} - -.payment-payu { - background-image: url("../images/payments/payu.svg"); -} - -.payment-payza-dark { - background-image: url("../images/payments/payza-dark.svg"); -} - -.payment-payza { - background-image: url("../images/payments/payza.svg"); -} - -.payment-ripple-dark { - background-image: url("../images/payments/ripple-dark.svg"); -} - -.payment-ripple { - background-image: url("../images/payments/ripple.svg"); -} - -.payment-sage-dark { - background-image: url("../images/payments/sage-dark.svg"); -} - -.payment-sage { - background-image: url("../images/payments/sage.svg"); -} - -.payment-sepa-dark { - background-image: url("../images/payments/sepa-dark.svg"); -} - -.payment-sepa { - background-image: url("../images/payments/sepa.svg"); -} - -.payment-shopify-dark { - background-image: url("../images/payments/shopify-dark.svg"); -} - -.payment-shopify { - background-image: url("../images/payments/shopify.svg"); -} - -.payment-skrill-dark { - background-image: url("../images/payments/skrill-dark.svg"); -} - -.payment-skrill { - background-image: url("../images/payments/skrill.svg"); -} - -.payment-solo-dark { - background-image: url("../images/payments/solo-dark.svg"); -} - -.payment-solo { - background-image: url("../images/payments/solo.svg"); -} - -.payment-square-dark { - background-image: url("../images/payments/square-dark.svg"); -} - -.payment-square { - background-image: url("../images/payments/square.svg"); -} - -.payment-stripe-dark { - background-image: url("../images/payments/stripe-dark.svg"); -} - -.payment-stripe { - background-image: url("../images/payments/stripe.svg"); -} - -.payment-switch-dark { - background-image: url("../images/payments/switch-dark.svg"); -} - -.payment-switch { - background-image: url("../images/payments/switch.svg"); -} - -.payment-ukash-dark { - background-image: url("../images/payments/ukash-dark.svg"); -} - -.payment-ukash { - background-image: url("../images/payments/ukash.svg"); -} - -.payment-unionpay-dark { - background-image: url("../images/payments/unionpay-dark.svg"); -} - -.payment-unionpay { - background-image: url("../images/payments/unionpay.svg"); -} - -.payment-verifone-dark { - background-image: url("../images/payments/verifone-dark.svg"); -} - -.payment-verifone { - background-image: url("../images/payments/verifone.svg"); -} - -.payment-verisign-dark { - background-image: url("../images/payments/verisign-dark.svg"); -} - -.payment-verisign { - background-image: url("../images/payments/verisign.svg"); -} - -.payment-visa-dark { - background-image: url("../images/payments/visa-dark.svg"); -} - -.payment-visa { - background-image: url("../images/payments/visa.svg"); -} - -.payment-webmoney-dark { - background-image: url("../images/payments/webmoney-dark.svg"); -} - -.payment-webmoney { - background-image: url("../images/payments/webmoney.svg"); -} - -.payment-westernunion-dark { - background-image: url("../images/payments/westernunion-dark.svg"); -} - -.payment-westernunion { - background-image: url("../images/payments/westernunion.svg"); -} - -.payment-worldpay-dark { - background-image: url("../images/payments/worldpay-dark.svg"); -} - -.payment-worldpay { - background-image: url("../images/payments/worldpay.svg"); -} - -svg { - -ms-touch-action: none; - touch-action: none; -} - -.jvectormap-container { - width: 100%; - height: 100%; - position: relative; - overflow: hidden; - -ms-touch-action: none; - touch-action: none; -} - -.jvectormap-tip { - position: absolute; - display: none; - border-radius: 3px; - background: #212529; - color: white; - padding: 6px; - font-size: 11px; - line-height: 1; - font-weight: 700; -} - -.jvectormap-tip small { - font-size: inherit; - font-weight: 400; -} - -.jvectormap-zoomin, .jvectormap-zoomout, .jvectormap-goback { - position: absolute; - right: 10px; - border-radius: 3px; - background: #292929; - padding: 3px; - color: white; - cursor: pointer; - line-height: 10px; - text-align: center; - box-sizing: content-box; -} - -.jvectormap-zoomin, .jvectormap-zoomout { - width: 10px; - height: 10px; -} - -.jvectormap-zoomin { - top: 10px; -} - -.jvectormap-zoomout { - top: 30px; -} - -.jvectormap-goback { - bottom: 10px; - z-index: 1000; - padding: 6px; -} - -.jvectormap-spinner { - position: absolute; - right: 0; - top: 0; - left: 0; - bottom: 0; - background: center no-repeat url(data:image/gif;base64,R0lGODlhIAAgAPMAAP///wAAAMbGxoSEhLa2tpqamjY2NlZWVtjY2OTk5Ly8vB4eHgQEBAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAIAAgAAAE5xDISWlhperN52JLhSSdRgwVo1ICQZRUsiwHpTJT4iowNS8vyW2icCF6k8HMMBkCEDskxTBDAZwuAkkqIfxIQyhBQBFvAQSDITM5VDW6XNE4KagNh6Bgwe60smQUB3d4Rz1ZBApnFASDd0hihh12BkE9kjAJVlycXIg7CQIFA6SlnJ87paqbSKiKoqusnbMdmDC2tXQlkUhziYtyWTxIfy6BE8WJt5YJvpJivxNaGmLHT0VnOgSYf0dZXS7APdpB309RnHOG5gDqXGLDaC457D1zZ/V/nmOM82XiHRLYKhKP1oZmADdEAAAh+QQJCgAAACwAAAAAIAAgAAAE6hDISWlZpOrNp1lGNRSdRpDUolIGw5RUYhhHukqFu8DsrEyqnWThGvAmhVlteBvojpTDDBUEIFwMFBRAmBkSgOrBFZogCASwBDEY/CZSg7GSE0gSCjQBMVG023xWBhklAnoEdhQEfyNqMIcKjhRsjEdnezB+A4k8gTwJhFuiW4dokXiloUepBAp5qaKpp6+Ho7aWW54wl7obvEe0kRuoplCGepwSx2jJvqHEmGt6whJpGpfJCHmOoNHKaHx61WiSR92E4lbFoq+B6QDtuetcaBPnW6+O7wDHpIiK9SaVK5GgV543tzjgGcghAgAh+QQJCgAAACwAAAAAIAAgAAAE7hDISSkxpOrN5zFHNWRdhSiVoVLHspRUMoyUakyEe8PTPCATW9A14E0UvuAKMNAZKYUZCiBMuBakSQKG8G2FzUWox2AUtAQFcBKlVQoLgQReZhQlCIJesQXI5B0CBnUMOxMCenoCfTCEWBsJColTMANldx15BGs8B5wlCZ9Po6OJkwmRpnqkqnuSrayqfKmqpLajoiW5HJq7FL1Gr2mMMcKUMIiJgIemy7xZtJsTmsM4xHiKv5KMCXqfyUCJEonXPN2rAOIAmsfB3uPoAK++G+w48edZPK+M6hLJpQg484enXIdQFSS1u6UhksENEQAAIfkECQoAAAAsAAAAACAAIAAABOcQyEmpGKLqzWcZRVUQnZYg1aBSh2GUVEIQ2aQOE+G+cD4ntpWkZQj1JIiZIogDFFyHI0UxQwFugMSOFIPJftfVAEoZLBbcLEFhlQiqGp1Vd140AUklUN3eCA51C1EWMzMCezCBBmkxVIVHBWd3HHl9JQOIJSdSnJ0TDKChCwUJjoWMPaGqDKannasMo6WnM562R5YluZRwur0wpgqZE7NKUm+FNRPIhjBJxKZteWuIBMN4zRMIVIhffcgojwCF117i4nlLnY5ztRLsnOk+aV+oJY7V7m76PdkS4trKcdg0Zc0tTcKkRAAAIfkECQoAAAAsAAAAACAAIAAABO4QyEkpKqjqzScpRaVkXZWQEximw1BSCUEIlDohrft6cpKCk5xid5MNJTaAIkekKGQkWyKHkvhKsR7ARmitkAYDYRIbUQRQjWBwJRzChi9CRlBcY1UN4g0/VNB0AlcvcAYHRyZPdEQFYV8ccwR5HWxEJ02YmRMLnJ1xCYp0Y5idpQuhopmmC2KgojKasUQDk5BNAwwMOh2RtRq5uQuPZKGIJQIGwAwGf6I0JXMpC8C7kXWDBINFMxS4DKMAWVWAGYsAdNqW5uaRxkSKJOZKaU3tPOBZ4DuK2LATgJhkPJMgTwKCdFjyPHEnKxFCDhEAACH5BAkKAAAALAAAAAAgACAAAATzEMhJaVKp6s2nIkolIJ2WkBShpkVRWqqQrhLSEu9MZJKK9y1ZrqYK9WiClmvoUaF8gIQSNeF1Er4MNFn4SRSDARWroAIETg1iVwuHjYB1kYc1mwruwXKC9gmsJXliGxc+XiUCby9ydh1sOSdMkpMTBpaXBzsfhoc5l58Gm5yToAaZhaOUqjkDgCWNHAULCwOLaTmzswadEqggQwgHuQsHIoZCHQMMQgQGubVEcxOPFAcMDAYUA85eWARmfSRQCdcMe0zeP1AAygwLlJtPNAAL19DARdPzBOWSm1brJBi45soRAWQAAkrQIykShQ9wVhHCwCQCACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq+E71SRQeyqUToLA7VxF0JDyIQh/MVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiRMDjI0Fd30/iI2UA5GSS5UDj2l6NoqgOgN4gksEBgYFf0FDqKgHnyZ9OX8HrgYHdHpcHQULXAS2qKpENRg7eAMLC7kTBaixUYFkKAzWAAnLC7FLVxLWDBLKCwaKTULgEwbLA4hJtOkSBNqITT3xEgfLpBtzE/jiuL04RGEBgwWhShRgQExHBAAh+QQJCgAAACwAAAAAIAAgAAAE7xDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfZiCqGk5dTESJeaOAlClzsJsqwiJwiqnFrb2nS9kmIcgEsjQydLiIlHehhpejaIjzh9eomSjZR+ipslWIRLAgMDOR2DOqKogTB9pCUJBagDBXR6XB0EBkIIsaRsGGMMAxoDBgYHTKJiUYEGDAzHC9EACcUGkIgFzgwZ0QsSBcXHiQvOwgDdEwfFs0sDzt4S6BK4xYjkDOzn0unFeBzOBijIm1Dgmg5YFQwsCMjp1oJ8LyIAACH5BAkKAAAALAAAAAAgACAAAATwEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq+E71SRQeyqUToLA7VxF0JDyIQh/MVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GGl6NoiPOH16iZKNlH6KmyWFOggHhEEvAwwMA0N9GBsEC6amhnVcEwavDAazGwIDaH1ipaYLBUTCGgQDA8NdHz0FpqgTBwsLqAbWAAnIA4FWKdMLGdYGEgraigbT0OITBcg5QwPT4xLrROZL6AuQAPUS7bxLpoWidY0JtxLHKhwwMJBTHgPKdEQAACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq+E71SRQeyqUToLA7VxF0JDyIQh/MVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GAULDJCRiXo1CpGXDJOUjY+Yip9DhToJA4RBLwMLCwVDfRgbBAaqqoZ1XBMHswsHtxtFaH1iqaoGNgAIxRpbFAgfPQSqpbgGBqUD1wBXeCYp1AYZ19JJOYgH1KwA4UBvQwXUBxPqVD9L3sbp2BNk2xvvFPJd+MFCN6HAAIKgNggY0KtEBAAh+QQJCgAAACwAAAAAIAAgAAAE6BDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfYIDMaAFdTESJeaEDAIMxYFqrOUaNW4E4ObYcCXaiBVEgULe0NJaxxtYksjh2NLkZISgDgJhHthkpU4mW6blRiYmZOlh4JWkDqILwUGBnE6TYEbCgevr0N1gH4At7gHiRpFaLNrrq8HNgAJA70AWxQIH1+vsYMDAzZQPC9VCNkDWUhGkuE5PxJNwiUK4UfLzOlD4WvzAHaoG9nxPi5d+jYUqfAhhykOFwJWiAAAIfkECQoAAAAsAAAAACAAIAAABPAQyElpUqnqzaciSoVkXVUMFaFSwlpOCcMYlErAavhOMnNLNo8KsZsMZItJEIDIFSkLGQoQTNhIsFehRww2CQLKF0tYGKYSg+ygsZIuNqJksKgbfgIGepNo2cIUB3V1B3IvNiBYNQaDSTtfhhx0CwVPI0UJe0+bm4g5VgcGoqOcnjmjqDSdnhgEoamcsZuXO1aWQy8KAwOAuTYYGwi7w5h+Kr0SJ8MFihpNbx+4Erq7BYBuzsdiH1jCAzoSfl0rVirNbRXlBBlLX+BP0XJLAPGzTkAuAOqb0WT5AH7OcdCm5B8TgRwSRKIHQtaLCwg1RAAAOwAAAAAAAAAAAA==); -} - -.jvectormap-legend-title { - font-weight: bold; - font-size: 14px; - text-align: center; -} - -.jvectormap-legend-cnt { - position: absolute; -} - -.jvectormap-legend-cnt-h { - bottom: 0; - left: 0; -} - -.jvectormap-legend-cnt-v { - top: 0; - left: 0; -} - -.jvectormap-legend { - background: black; - color: white; - border-radius: 3px; -} - -.jvectormap-legend-cnt-h .jvectormap-legend { - float: right; - margin: 0 0 10px 10px; - padding: 3px 3px 1px 3px; -} - -.jvectormap-legend-cnt-h .jvectormap-legend .jvectormap-legend-tick { - float: right; -} - -.jvectormap-legend-cnt-v .jvectormap-legend { - margin: 10px 0 0 10px; - padding: 3px; -} - -.jvectormap-legend-cnt-h .jvectormap-legend-tick { - width: 40px; -} - -.jvectormap-legend-cnt-h .jvectormap-legend-tick-sample { - height: 15px; -} - -.jvectormap-legend-cnt-v .jvectormap-legend-tick-sample { - height: 20px; - width: 20px; - display: inline-block; - vertical-align: middle; -} - -.jvectormap-legend-tick-text { - font-size: 12px; -} - -.jvectormap-legend-cnt-h .jvectormap-legend-tick-text { - text-align: center; -} - -.jvectormap-legend-cnt-v .jvectormap-legend-tick-text { - display: inline-block; - vertical-align: middle; - line-height: 20px; - padding-right: 3px; -} - -/** - * selectize.css (v0.12.4) - * Copyright (c) 2013–2015 Brian Reavis & contributors - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF - * ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - * - * @author Brian Reavis - */ -.selectize-control.plugin-drag_drop.multi > .selectize-input > div.ui-sortable-placeholder { - visibility: visible !important; - background: #f2f2f2 !important; - background: rgba(0, 0, 0, 0.06) !important; - border: 0 none !important; - box-shadow: inset 0 0 12px 4px #fff; -} - -.selectize-control.plugin-drag_drop .ui-sortable-placeholder::after { - content: '!'; - visibility: hidden; -} - -.selectize-control.plugin-drag_drop .ui-sortable-helper { - box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); -} - -.selectize-dropdown-header { - position: relative; - padding: 5px 8px; - border-bottom: 1px solid #d0d0d0; - background: #f8f8f8; - border-radius: 3px 3px 0 0; -} - -.selectize-dropdown-header-close { - position: absolute; - left: 8px; - top: 50%; - color: #495057; - opacity: 0.4; - margin-top: -12px; - line-height: 20px; - font-size: 20px !important; -} - -.selectize-dropdown-header-close:hover { - color: #000; -} - -.selectize-dropdown.plugin-optgroup_columns .optgroup { - border-left: 1px solid #f2f2f2; - border-top: 0 none; - float: right; - box-sizing: border-box; -} - -.selectize-dropdown.plugin-optgroup_columns .optgroup:last-child { - border-left: 0 none; -} - -.selectize-dropdown.plugin-optgroup_columns .optgroup:before { - display: none; -} - -.selectize-dropdown.plugin-optgroup_columns .optgroup-header { - border-top: 0 none; -} - -.selectize-control.plugin-remove_button [data-value] { - position: relative; - padding-left: 24px !important; -} - -.selectize-control.plugin-remove_button [data-value] .remove { - z-index: 1; - /* fixes ie bug (see #392) */ - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 17px; - text-align: center; - font-weight: bold; - font-size: 12px; - color: inherit; - text-decoration: none; - vertical-align: middle; - display: inline-block; - padding: 2px 0 0 0; - border-right: 1px solid #d0d0d0; - border-radius: 2px 0 0 2px; - box-sizing: border-box; -} - -.selectize-control.plugin-remove_button [data-value] .remove:hover { - background: rgba(0, 0, 0, 0.05); -} - -.selectize-control.plugin-remove_button [data-value].active .remove { - border-right-color: #cacaca; -} - -.selectize-control.plugin-remove_button .disabled [data-value] .remove:hover { - background: none; -} - -.selectize-control.plugin-remove_button .disabled [data-value] .remove { - border-right-color: #fff; -} - -.selectize-control.plugin-remove_button .remove-single { - position: absolute; - left: 28px; - top: 6px; - font-size: 23px; -} - -.selectize-control { - position: relative; - padding: 0; - border: 0; -} - -.selectize-dropdown, -.selectize-input, -.selectize-input input { - color: #495057; - font-family: inherit; - font-size: 15px; - line-height: 18px; - -webkit-font-smoothing: inherit; -} - -.selectize-input, -.selectize-control.single .selectize-input.input-active { - background: #fff; - cursor: text; - display: inline-block; -} - -.selectize-input { - border: 1px solid rgba(0, 40, 100, 0.12); - padding: 0.5625rem 0.75rem; - display: inline-block; - display: block; - width: 100%; - overflow: hidden; - position: relative; - z-index: 1; - box-sizing: border-box; - border-radius: 3px; - transition: .3s border-color, .3s box-shadow; -} - -.selectize-control.multi .selectize-input.has-items { - padding: 7px 7px 4px 0.75rem; -} - -.selectize-input.full { - background-color: #fff; -} - -.selectize-input.disabled, -.selectize-input.disabled * { - cursor: default !important; -} - -.selectize-input.focus { - border-color: #467fcf; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.selectize-input.dropdown-active { - border-radius: 3px 3px 0 0; -} - -.selectize-input > * { - vertical-align: baseline; - display: -moz-inline-stack; - display: inline-block; - zoom: 1; - *display: inline; -} - -.selectize-control.multi .selectize-input > div { - cursor: pointer; - margin: 0 0 3px 3px; - padding: 2px 6px; - background: #e9ecef; - color: #495057; - font-size: 13px; - border: 0 solid rgba(0, 40, 100, 0.12); - border-radius: 3px; - font-weight: 400; -} - -.selectize-control.multi .selectize-input > div.active { - background: #e8e8e8; - color: #303030; - border: 0 solid #cacaca; -} - -.selectize-control.multi .selectize-input.disabled > div, -.selectize-control.multi .selectize-input.disabled > div.active { - color: #7d7d7d; - background: #fff; - border: 0 solid #fff; -} - -.selectize-input > input { - display: inline-block !important; - padding: 0 !important; - min-height: 0 !important; - max-height: none !important; - max-width: 100% !important; - margin: 0 0 0 2px !important; - text-indent: 0 !important; - border: 0 none !important; - background: none !important; - line-height: inherit !important; - box-shadow: none !important; -} - -.selectize-input > input::-ms-clear { - display: none; -} - -.selectize-input > input:focus { - outline: none !important; -} - -.selectize-input::after { - content: ' '; - display: block; - clear: right; -} - -.selectize-input.dropdown-active::before { - content: ' '; - display: block; - position: absolute; - background: #f0f0f0; - height: 1px; - bottom: 0; - right: 0; - left: 0; -} - -.selectize-dropdown { - position: absolute; - z-index: 10; - border: 1px solid rgba(0, 40, 100, 0.12); - background: #fff; - margin: -1px 0 0 0; - border-top: 0 none; - box-sizing: border-box; - border-radius: 0 0 3px 3px; - height: auto; - padding: 0; -} - -.selectize-dropdown [data-selectable] { - cursor: pointer; - overflow: hidden; -} - -.selectize-dropdown [data-selectable] .highlight { - background: rgba(125, 168, 208, 0.2); - border-radius: 1px; -} - -.selectize-dropdown [data-selectable], -.selectize-dropdown .optgroup-header { - padding: 6px .75rem; -} - -.selectize-dropdown .optgroup:first-child .optgroup-header { - border-top: 0 none; -} - -.selectize-dropdown .optgroup-header { - color: #495057; - background: #fff; - cursor: default; -} - -.selectize-dropdown .active { - background-color: #F1F4F8; - color: #467fcf; -} - -.selectize-dropdown .active.create { - color: #495057; -} - -.selectize-dropdown .create { - color: rgba(48, 48, 48, 0.5); -} - -.selectize-dropdown-content { - overflow-y: auto; - overflow-x: hidden; - max-height: 200px; - -webkit-overflow-scrolling: touch; -} - -.selectize-control.single .selectize-input, -.selectize-control.single .selectize-input input { - cursor: pointer; -} - -.selectize-control.single .selectize-input.input-active, -.selectize-control.single .selectize-input.input-active input { - cursor: text; -} - -.selectize-control.single .selectize-input:after { - content: ''; - display: block; - position: absolute; - top: 13px; - left: 12px; - width: 8px; - height: 10px; - background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 5'%3E%3Cpath fill='#999' d='M0 0L10 0L5 5L0 0'/%3E%3C/svg%3E") no-repeat center; - background-size: 8px 10px; - transition: .3s transform; -} - -.selectize-control.single .selectize-input.dropdown-active:after { - -webkit-transform: rotate(-180deg); - transform: rotate(-180deg); -} - -.selectize-control .selectize-input.disabled { - opacity: 0.5; - background-color: #fafafa; -} - -.selectize-dropdown .image, -.selectize-input .image { - width: 1.25rem; - height: 1.25rem; - background-size: contain; - margin: -1px -4px -1px .5rem; - line-height: 1.25rem; - float: right; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; -} - -.selectize-dropdown .image img, -.selectize-input .image img { - max-width: 100%; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); - border-radius: 2px; -} - -.selectize-input .image { - width: 1.5rem; - height: 1.5rem; - margin: -3px -5px -3px .75rem; -} - -@font-face { - font-family: "feather"; - src: url("../fonts/feather/feather-webfont.eot?t=1501841394106"); - /* IE9*/ - src: url("../fonts/feather/feather-webfont.eot?t=1501841394106#iefix") format("embedded-opentype"), url("../fonts/feather/feather-webfont.woff?t=1501841394106") format("woff"), url("../fonts/feather/feather-webfont.ttf?t=1501841394106") format("truetype"), url("../fonts/feather/feather-webfont.svg?t=1501841394106#feather") format("svg"); - /* iOS 4.1- */ -} - -.fe { - font-family: 'feather' !important; - speak: none; - font-style: normal; - font-weight: normal; - font-variant: normal; - text-transform: none; - line-height: 1; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.fe-activity:before { - content: "\e900"; -} - -.fe-airplay:before { - content: "\e901"; -} - -.fe-alert-circle:before { - content: "\e902"; -} - -.fe-alert-octagon:before { - content: "\e903"; -} - -.fe-alert-triangle:before { - content: "\e904"; -} - -.fe-align-center:before { - content: "\e905"; -} - -.fe-align-justify:before { - content: "\e906"; -} - -.fe-align-left:before { - content: "\e907"; -} - -.fe-align-right:before { - content: "\e908"; -} - -.fe-anchor:before { - content: "\e909"; -} - -.fe-aperture:before { - content: "\e90a"; -} - -.fe-arrow-down:before { - content: "\e90b"; -} - -.fe-arrow-down-circle:before { - content: "\e90c"; -} - -.fe-arrow-down-left:before { - content: "\e90d"; -} - -.fe-arrow-down-right:before { - content: "\e90e"; -} - -.fe-arrow-left:before { - content: "\e90f"; -} - -.fe-arrow-left-circle:before { - content: "\e910"; -} - -.fe-arrow-right:before { - content: "\e911"; -} - -.fe-arrow-right-circle:before { - content: "\e912"; -} - -.fe-arrow-up:before { - content: "\e913"; -} - -.fe-arrow-up-circle:before { - content: "\e914"; -} - -.fe-arrow-up-left:before { - content: "\e915"; -} - -.fe-arrow-up-right:before { - content: "\e916"; -} - -.fe-at-sign:before { - content: "\e917"; -} - -.fe-award:before { - content: "\e918"; -} - -.fe-bar-chart:before { - content: "\e919"; -} - -.fe-bar-chart-2:before { - content: "\e91a"; -} - -.fe-battery:before { - content: "\e91b"; -} - -.fe-battery-charging:before { - content: "\e91c"; -} - -.fe-bell:before { - content: "\e91d"; -} - -.fe-bell-off:before { - content: "\e91e"; -} - -.fe-bluetooth:before { - content: "\e91f"; -} - -.fe-bold:before { - content: "\e920"; -} - -.fe-book:before { - content: "\e921"; -} - -.fe-book-open:before { - content: "\e922"; -} - -.fe-bookmark:before { - content: "\e923"; -} - -.fe-box:before { - content: "\e924"; -} - -.fe-briefcase:before { - content: "\e925"; -} - -.fe-calendar:before { - content: "\e926"; -} - -.fe-camera:before { - content: "\e927"; -} - -.fe-camera-off:before { - content: "\e928"; -} - -.fe-cast:before { - content: "\e929"; -} - -.fe-check:before { - content: "\e92a"; -} - -.fe-check-circle:before { - content: "\e92b"; -} - -.fe-check-square:before { - content: "\e92c"; -} - -.fe-chevron-down:before { - content: "\e92d"; -} - -.fe-chevron-left:before { - content: "\e92e"; -} - -.fe-chevron-right:before { - content: "\e92f"; -} - -.fe-chevron-up:before { - content: "\e930"; -} - -.fe-chevrons-down:before { - content: "\e931"; -} - -.fe-chevrons-left:before { - content: "\e932"; -} - -.fe-chevrons-right:before { - content: "\e933"; -} - -.fe-chevrons-up:before { - content: "\e934"; -} - -.fe-chrome:before { - content: "\e935"; -} - -.fe-circle:before { - content: "\e936"; -} - -.fe-clipboard:before { - content: "\e937"; -} - -.fe-clock:before { - content: "\e938"; -} - -.fe-cloud:before { - content: "\e939"; -} - -.fe-cloud-drizzle:before { - content: "\e93a"; -} - -.fe-cloud-lightning:before { - content: "\e93b"; -} - -.fe-cloud-off:before { - content: "\e93c"; -} - -.fe-cloud-rain:before { - content: "\e93d"; -} - -.fe-cloud-snow:before { - content: "\e93e"; -} - -.fe-code:before { - content: "\e93f"; -} - -.fe-codepen:before { - content: "\e940"; -} - -.fe-command:before { - content: "\e941"; -} - -.fe-compass:before { - content: "\e942"; -} - -.fe-copy:before { - content: "\e943"; -} - -.fe-corner-down-left:before { - content: "\e944"; -} - -.fe-corner-down-right:before { - content: "\e945"; -} - -.fe-corner-left-down:before { - content: "\e946"; -} - -.fe-corner-left-up:before { - content: "\e947"; -} - -.fe-corner-right-down:before { - content: "\e948"; -} - -.fe-corner-right-up:before { - content: "\e949"; -} - -.fe-corner-up-left:before { - content: "\e94a"; -} - -.fe-corner-up-right:before { - content: "\e94b"; -} - -.fe-cpu:before { - content: "\e94c"; -} - -.fe-credit-card:before { - content: "\e94d"; -} - -.fe-crop:before { - content: "\e94e"; -} - -.fe-crosshair:before { - content: "\e94f"; -} - -.fe-database:before { - content: "\e950"; -} - -.fe-delete:before { - content: "\e951"; -} - -.fe-disc:before { - content: "\e952"; -} - -.fe-dollar-sign:before { - content: "\e953"; -} - -.fe-download:before { - content: "\e954"; -} - -.fe-download-cloud:before { - content: "\e955"; -} - -.fe-droplet:before { - content: "\e956"; -} - -.fe-edit:before { - content: "\e957"; -} - -.fe-edit-2:before { - content: "\e958"; -} - -.fe-edit-3:before { - content: "\e959"; -} - -.fe-external-link:before { - content: "\e95a"; -} - -.fe-eye:before { - content: "\e95b"; -} - -.fe-eye-off:before { - content: "\e95c"; -} - -.fe-facebook:before { - content: "\e95d"; -} - -.fe-fast-forward:before { - content: "\e95e"; -} - -.fe-feather:before { - content: "\e95f"; -} - -.fe-file:before { - content: "\e960"; -} - -.fe-file-minus:before { - content: "\e961"; -} - -.fe-file-plus:before { - content: "\e962"; -} - -.fe-file-text:before { - content: "\e963"; -} - -.fe-film:before { - content: "\e964"; -} - -.fe-filter:before { - content: "\e965"; -} - -.fe-flag:before { - content: "\e966"; -} - -.fe-folder:before { - content: "\e967"; -} - -.fe-folder-minus:before { - content: "\e968"; -} - -.fe-folder-plus:before { - content: "\e969"; -} - -.fe-git-branch:before { - content: "\e96a"; -} - -.fe-git-commit:before { - content: "\e96b"; -} - -.fe-git-merge:before { - content: "\e96c"; -} - -.fe-git-pull-request:before { - content: "\e96d"; -} - -.fe-github:before { - content: "\e96e"; -} - -.fe-gitlab:before { - content: "\e96f"; -} - -.fe-globe:before { - content: "\e970"; -} - -.fe-grid:before { - content: "\e971"; -} - -.fe-hard-drive:before { - content: "\e972"; -} - -.fe-hash:before { - content: "\e973"; -} - -.fe-headphones:before { - content: "\e974"; -} - -.fe-heart:before { - content: "\e975"; -} - -.fe-help-circle:before { - content: "\e976"; -} - -.fe-home:before { - content: "\e977"; -} - -.fe-image:before { - content: "\e978"; -} - -.fe-inbox:before { - content: "\e979"; -} - -.fe-info:before { - content: "\e97a"; -} - -.fe-instagram:before { - content: "\e97b"; -} - -.fe-italic:before { - content: "\e97c"; -} - -.fe-layers:before { - content: "\e97d"; -} - -.fe-layout:before { - content: "\e97e"; -} - -.fe-life-buoy:before { - content: "\e97f"; -} - -.fe-link:before { - content: "\e980"; -} - -.fe-link-2:before { - content: "\e981"; -} - -.fe-linkedin:before { - content: "\e982"; -} - -.fe-list:before { - content: "\e983"; -} - -.fe-loader:before { - content: "\e984"; -} - -.fe-lock:before { - content: "\e985"; -} - -.fe-log-in:before { - content: "\e986"; -} - -.fe-log-out:before { - content: "\e987"; -} - -.fe-mail:before { - content: "\e988"; -} - -.fe-map:before { - content: "\e989"; -} - -.fe-map-pin:before { - content: "\e98a"; -} - -.fe-maximize:before { - content: "\e98b"; -} - -.fe-maximize-2:before { - content: "\e98c"; -} - -.fe-menu:before { - content: "\e98d"; -} - -.fe-message-circle:before { - content: "\e98e"; -} - -.fe-message-square:before { - content: "\e98f"; -} - -.fe-mic:before { - content: "\e990"; -} - -.fe-mic-off:before { - content: "\e991"; -} - -.fe-minimize:before { - content: "\e992"; -} - -.fe-minimize-2:before { - content: "\e993"; -} - -.fe-minus:before { - content: "\e994"; -} - -.fe-minus-circle:before { - content: "\e995"; -} - -.fe-minus-square:before { - content: "\e996"; -} - -.fe-monitor:before { - content: "\e997"; -} - -.fe-moon:before { - content: "\e998"; -} - -.fe-more-horizontal:before { - content: "\e999"; -} - -.fe-more-vertical:before { - content: "\e99a"; -} - -.fe-move:before { - content: "\e99b"; -} - -.fe-music:before { - content: "\e99c"; -} - -.fe-navigation:before { - content: "\e99d"; -} - -.fe-navigation-2:before { - content: "\e99e"; -} - -.fe-octagon:before { - content: "\e99f"; -} - -.fe-package:before { - content: "\e9a0"; -} - -.fe-paperclip:before { - content: "\e9a1"; -} - -.fe-pause:before { - content: "\e9a2"; -} - -.fe-pause-circle:before { - content: "\e9a3"; -} - -.fe-percent:before { - content: "\e9a4"; -} - -.fe-phone:before { - content: "\e9a5"; -} - -.fe-phone-call:before { - content: "\e9a6"; -} - -.fe-phone-forwarded:before { - content: "\e9a7"; -} - -.fe-phone-incoming:before { - content: "\e9a8"; -} - -.fe-phone-missed:before { - content: "\e9a9"; -} - -.fe-phone-off:before { - content: "\e9aa"; -} - -.fe-phone-outgoing:before { - content: "\e9ab"; -} - -.fe-pie-chart:before { - content: "\e9ac"; -} - -.fe-play:before { - content: "\e9ad"; -} - -.fe-play-circle:before { - content: "\e9ae"; -} - -.fe-plus:before { - content: "\e9af"; -} - -.fe-plus-circle:before { - content: "\e9b0"; -} - -.fe-plus-square:before { - content: "\e9b1"; -} - -.fe-pocket:before { - content: "\e9b2"; -} - -.fe-power:before { - content: "\e9b3"; -} - -.fe-printer:before { - content: "\e9b4"; -} - -.fe-radio:before { - content: "\e9b5"; -} - -.fe-refresh-ccw:before { - content: "\e9b6"; -} - -.fe-refresh-cw:before { - content: "\e9b7"; -} - -.fe-repeat:before { - content: "\e9b8"; -} - -.fe-rewind:before { - content: "\e9b9"; -} - -.fe-rotate-ccw:before { - content: "\e9ba"; -} - -.fe-rotate-cw:before { - content: "\e9bb"; -} - -.fe-rss:before { - content: "\e9bc"; -} - -.fe-save:before { - content: "\e9bd"; -} - -.fe-scissors:before { - content: "\e9be"; -} - -.fe-search:before { - content: "\e9bf"; -} - -.fe-send:before { - content: "\e9c0"; -} - -.fe-server:before { - content: "\e9c1"; -} - -.fe-settings:before { - content: "\e9c2"; -} - -.fe-share:before { - content: "\e9c3"; -} - -.fe-share-2:before { - content: "\e9c4"; -} - -.fe-shield:before { - content: "\e9c5"; -} - -.fe-shield-off:before { - content: "\e9c6"; -} - -.fe-shopping-bag:before { - content: "\e9c7"; -} - -.fe-shopping-cart:before { - content: "\e9c8"; -} - -.fe-shuffle:before { - content: "\e9c9"; -} - -.fe-sidebar:before { - content: "\e9ca"; -} - -.fe-skip-back:before { - content: "\e9cb"; -} - -.fe-skip-forward:before { - content: "\e9cc"; -} - -.fe-slack:before { - content: "\e9cd"; -} - -.fe-slash:before { - content: "\e9ce"; -} - -.fe-sliders:before { - content: "\e9cf"; -} - -.fe-smartphone:before { - content: "\e9d0"; -} - -.fe-speaker:before { - content: "\e9d1"; -} - -.fe-square:before { - content: "\e9d2"; -} - -.fe-star:before { - content: "\e9d3"; -} - -.fe-stop-circle:before { - content: "\e9d4"; -} - -.fe-sun:before { - content: "\e9d5"; -} - -.fe-sunrise:before { - content: "\e9d6"; -} - -.fe-sunset:before { - content: "\e9d7"; -} - -.fe-tablet:before { - content: "\e9d8"; -} - -.fe-tag:before { - content: "\e9d9"; -} - -.fe-target:before { - content: "\e9da"; -} - -.fe-terminal:before { - content: "\e9db"; -} - -.fe-thermometer:before { - content: "\e9dc"; -} - -.fe-thumbs-down:before { - content: "\e9dd"; -} - -.fe-thumbs-up:before { - content: "\e9de"; -} - -.fe-toggle-left:before { - content: "\e9df"; -} - -.fe-toggle-right:before { - content: "\e9e0"; -} - -.fe-trash:before { - content: "\e9e1"; -} - -.fe-trash-2:before { - content: "\e9e2"; -} - -.fe-trending-down:before { - content: "\e9e3"; -} - -.fe-trending-up:before { - content: "\e9e4"; -} - -.fe-triangle:before { - content: "\e9e5"; -} - -.fe-truck:before { - content: "\e9e6"; -} - -.fe-tv:before { - content: "\e9e7"; -} - -.fe-twitter:before { - content: "\e9e8"; -} - -.fe-type:before { - content: "\e9e9"; -} - -.fe-umbrella:before { - content: "\e9ea"; -} - -.fe-underline:before { - content: "\e9eb"; -} - -.fe-unlock:before { - content: "\e9ec"; -} - -.fe-upload:before { - content: "\e9ed"; -} - -.fe-upload-cloud:before { - content: "\e9ee"; -} - -.fe-user:before { - content: "\e9ef"; -} - -.fe-user-check:before { - content: "\e9f0"; -} - -.fe-user-minus:before { - content: "\e9f1"; -} - -.fe-user-plus:before { - content: "\e9f2"; -} - -.fe-user-x:before { - content: "\e9f3"; -} - -.fe-users:before { - content: "\e9f4"; -} - -.fe-video:before { - content: "\e9f5"; -} - -.fe-video-off:before { - content: "\e9f6"; -} - -.fe-voicemail:before { - content: "\e9f7"; -} - -.fe-volume:before { - content: "\e9f8"; -} - -.fe-volume-1:before { - content: "\e9f9"; -} - -.fe-volume-2:before { - content: "\e9fa"; -} - -.fe-volume-x:before { - content: "\e9fb"; -} - -.fe-watch:before { - content: "\e9fc"; -} - -.fe-wifi:before { - content: "\e9fd"; -} - -.fe-wifi-off:before { - content: "\e9fe"; -} - -.fe-wind:before { - content: "\e9ff"; -} - -.fe-x:before { - content: "\ea00"; -} - -.fe-x-circle:before { - content: "\ea01"; -} - -.fe-x-square:before { - content: "\ea02"; -} - -.fe-zap:before { - content: "\ea03"; -} - -.fe-zap-off:before { - content: "\ea04"; -} - -.fe-zoom-in:before { - content: "\ea05"; -} - -.fe-zoom-out:before { - content: "\ea06"; -} diff --git a/dist/assets/css/tabler.css b/dist/assets/css/tabler.css deleted file mode 100644 index 101047581..000000000 --- a/dist/assets/css/tabler.css +++ /dev/null @@ -1,18610 +0,0 @@ -@charset "UTF-8"; -/** -Dashboard UI - */ -/*! - * Bootstrap v4.1.0 (https://getbootstrap.com/) - * Copyright 2011-2018 The Bootstrap Authors - * Copyright 2011-2018 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - */ -:root { - --blue: #467fcf; - --indigo: #6574cd; - --purple: #a55eea; - --pink: #f66d9b; - --red: #cd201f; - --orange: #fd9644; - --yellow: #f1c40f; - --green: #5eba00; - --teal: #2bcbba; - --cyan: #17a2b8; - --white: #fff; - --gray: #868e96; - --gray-dark: #343a40; - --azure: #45aaf2; - --lime: #7bd235; - --primary: #467fcf; - --secondary: #868e96; - --success: #5eba00; - --info: #45aaf2; - --warning: #f1c40f; - --danger: #cd201f; - --light: #f8f9fa; - --dark: #343a40; - --breakpoint-xs: 0; - --breakpoint-sm: 576px; - --breakpoint-md: 768px; - --breakpoint-lg: 992px; - --breakpoint-xl: 1280px; - --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - --font-family-monospace: Monaco, Consolas, "Liberation Mono", "Courier New", monospace; -} - -*, -*::before, -*::after { - box-sizing: border-box; -} - -html { - font-family: sans-serif; - line-height: 1.15; - -webkit-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; - -ms-overflow-style: scrollbar; - -webkit-tap-highlight-color: transparent; -} - -@-ms-viewport { - width: device-width; -} - -article, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section { - display: block; -} - -body { - margin: 0; - font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; - font-size: 0.9375rem; - font-weight: 400; - line-height: 1.5; - color: #495057; - text-align: left; - background-color: #f5f7fb; -} - -[tabindex="-1"]:focus { - outline: 0 !important; -} - -hr { - box-sizing: content-box; - height: 0; - overflow: visible; -} - -h1, h2, h3, h4, h5, h6 { - margin-top: 0; - margin-bottom: 0.66em; -} - -p { - margin-top: 0; - margin-bottom: 1rem; -} - -abbr[title], -abbr[data-original-title] { - text-decoration: underline; - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; - cursor: help; - border-bottom: 0; -} - -address { - margin-bottom: 1rem; - font-style: normal; - line-height: inherit; -} - -ol, -ul, -dl { - margin-top: 0; - margin-bottom: 1rem; -} - -ol ol, -ul ul, -ol ul, -ul ol { - margin-bottom: 0; -} - -dt { - font-weight: 700; -} - -dd { - margin-bottom: .5rem; - margin-left: 0; -} - -blockquote { - margin: 0 0 1rem; -} - -dfn { - font-style: italic; -} - -b, -strong { - font-weight: bolder; -} - -small { - font-size: 80%; -} - -sub, -sup { - position: relative; - font-size: 75%; - line-height: 0; - vertical-align: baseline; -} - -sub { - bottom: -.25em; -} - -sup { - top: -.5em; -} - -a { - color: #467fcf; - text-decoration: none; - background-color: transparent; - -webkit-text-decoration-skip: objects; -} - -a:hover { - color: #295a9f; - text-decoration: underline; -} - -a:not([href]):not([tabindex]) { - color: inherit; - text-decoration: none; -} - -a:not([href]):not([tabindex]):hover, a:not([href]):not([tabindex]):focus { - color: inherit; - text-decoration: none; -} - -a:not([href]):not([tabindex]):focus { - outline: 0; -} - -pre, -code, -kbd, -samp { - font-family: monospace, monospace; - font-size: 1em; -} - -pre { - margin-top: 0; - margin-bottom: 1rem; - overflow: auto; - -ms-overflow-style: scrollbar; -} - -figure { - margin: 0 0 1rem; -} - -img { - vertical-align: middle; - border-style: none; -} - -svg:not(:root) { - overflow: hidden; -} - -table { - border-collapse: collapse; -} - -caption { - padding-top: 0.75rem; - padding-bottom: 0.75rem; - color: #9aa0ac; - text-align: left; - caption-side: bottom; -} - -th { - text-align: inherit; -} - -label { - display: inline-block; - margin-bottom: 0.5rem; -} - -button { - border-radius: 0; -} - -button:focus { - outline: 1px dotted; - outline: 5px auto -webkit-focus-ring-color; -} - -input, -button, -select, -optgroup, -textarea { - margin: 0; - font-family: inherit; - font-size: inherit; - line-height: inherit; -} - -button, -input { - overflow: visible; -} - -button, -select { - text-transform: none; -} - -button, -html [type="button"], -[type="reset"], -[type="submit"] { - -webkit-appearance: button; -} - -button::-moz-focus-inner, -[type="button"]::-moz-focus-inner, -[type="reset"]::-moz-focus-inner, -[type="submit"]::-moz-focus-inner { - padding: 0; - border-style: none; -} - -input[type="radio"], -input[type="checkbox"] { - box-sizing: border-box; - padding: 0; -} - -input[type="date"], -input[type="time"], -input[type="datetime-local"], -input[type="month"] { - -webkit-appearance: listbox; -} - -textarea { - overflow: auto; - resize: vertical; -} - -fieldset { - min-width: 0; - padding: 0; - margin: 0; - border: 0; -} - -legend { - display: block; - width: 100%; - max-width: 100%; - padding: 0; - margin-bottom: .5rem; - font-size: 1.5rem; - line-height: inherit; - color: inherit; - white-space: normal; -} - -progress { - vertical-align: baseline; -} - -[type="number"]::-webkit-inner-spin-button, -[type="number"]::-webkit-outer-spin-button { - height: auto; -} - -[type="search"] { - outline-offset: -2px; - -webkit-appearance: none; -} - -[type="search"]::-webkit-search-cancel-button, -[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -::-webkit-file-upload-button { - font: inherit; - -webkit-appearance: button; -} - -output { - display: inline-block; -} - -summary { - display: list-item; - cursor: pointer; -} - -template { - display: none; -} - -[hidden] { - display: none !important; -} - -h1, h2, h3, h4, h5, h6, -.h1, .h2, .h3, .h4, .h5, .h6 { - margin-bottom: 0.66em; - font-family: inherit; - font-weight: 600; - line-height: 1.1; - color: inherit; -} - -h1, .h1 { - font-size: 2rem; -} - -h2, .h2 { - font-size: 1.75rem; -} - -h3, .h3 { - font-size: 1.5rem; -} - -h4, .h4 { - font-size: 1.125rem; -} - -h5, .h5 { - font-size: 1rem; -} - -h6, .h6 { - font-size: 0.875rem; -} - -.lead { - font-size: 1.171875rem; - font-weight: 300; -} - -.display-1 { - font-size: 4.5rem; - font-weight: 300; - line-height: 1.1; -} - -.display-2 { - font-size: 4rem; - font-weight: 300; - line-height: 1.1; -} - -.display-3 { - font-size: 3.5rem; - font-weight: 300; - line-height: 1.1; -} - -.display-4 { - font-size: 3rem; - font-weight: 300; - line-height: 1.1; -} - -hr { - margin-top: 1rem; - margin-bottom: 1rem; - border: 0; - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -small, -.small { - font-size: 87.5%; - font-weight: 400; -} - -mark, -.mark { - padding: 0.2em; - background-color: #fcf8e3; -} - -.list-unstyled { - padding-left: 0; - list-style: none; -} - -.list-inline { - padding-left: 0; - list-style: none; -} - -.list-inline-item { - display: inline-block; -} - -.list-inline-item:not(:last-child) { - margin-right: 0.5rem; -} - -.initialism { - font-size: 90%; - text-transform: uppercase; -} - -.blockquote { - margin-bottom: 1rem; - font-size: 1.171875rem; -} - -.blockquote-footer { - display: block; - font-size: 80%; - color: #868e96; -} - -.blockquote-footer::before { - content: "\2014 \00A0"; -} - -.img-fluid { - max-width: 100%; - height: auto; -} - -.img-thumbnail { - padding: 0.25rem; - background-color: #fff; - border: 1px solid #dee2e6; - border-radius: 3px; - max-width: 100%; - height: auto; -} - -.figure { - display: inline-block; -} - -.figure-img { - margin-bottom: 0.5rem; - line-height: 1; -} - -.figure-caption { - font-size: 90%; - color: #868e96; -} - -code, -kbd, -pre, -samp { - font-family: Monaco, Consolas, "Liberation Mono", "Courier New", monospace; -} - -code { - font-size: 85%; - color: inherit; - word-break: break-word; -} - -a > code { - color: inherit; -} - -kbd { - padding: 0.2rem 0.4rem; - font-size: 85%; - color: #fff; - background-color: #343a40; - border-radius: 3px; -} - -kbd kbd { - padding: 0; - font-size: 100%; - font-weight: 700; -} - -pre { - display: block; - font-size: 85%; - color: #212529; -} - -pre code { - font-size: inherit; - color: inherit; - word-break: normal; -} - -.pre-scrollable { - max-height: 340px; - overflow-y: scroll; -} - -.container { - width: 100%; - padding-right: 0.75rem; - padding-left: 0.75rem; - margin-right: auto; - margin-left: auto; -} - -@media (min-width: 576px) { - .container { - max-width: 540px; - } -} - -@media (min-width: 768px) { - .container { - max-width: 720px; - } -} - -@media (min-width: 992px) { - .container { - max-width: 960px; - } -} - -@media (min-width: 1280px) { - .container { - max-width: 1200px; - } -} - -.container-fluid { - width: 100%; - padding-right: 0.75rem; - padding-left: 0.75rem; - margin-right: auto; - margin-left: auto; -} - -.row { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-right: -0.75rem; - margin-left: -0.75rem; -} - -.no-gutters { - margin-right: 0; - margin-left: 0; -} - -.no-gutters > .col, -.no-gutters > [class*="col-"] { - padding-right: 0; - padding-left: 0; -} - -.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, -.col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, -.col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, -.col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, -.col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl, -.col-xl-auto { - position: relative; - width: 100%; - min-height: 1px; - padding-right: 0.75rem; - padding-left: 0.75rem; -} - -.col { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; -} - -.col-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; -} - -.col-1 { - -ms-flex: 0 0 8.33333333%; - flex: 0 0 8.33333333%; - max-width: 8.33333333%; -} - -.col-2 { - -ms-flex: 0 0 16.66666667%; - flex: 0 0 16.66666667%; - max-width: 16.66666667%; -} - -.col-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; -} - -.col-4 { - -ms-flex: 0 0 33.33333333%; - flex: 0 0 33.33333333%; - max-width: 33.33333333%; -} - -.col-5 { - -ms-flex: 0 0 41.66666667%; - flex: 0 0 41.66666667%; - max-width: 41.66666667%; -} - -.col-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; -} - -.col-7 { - -ms-flex: 0 0 58.33333333%; - flex: 0 0 58.33333333%; - max-width: 58.33333333%; -} - -.col-8 { - -ms-flex: 0 0 66.66666667%; - flex: 0 0 66.66666667%; - max-width: 66.66666667%; -} - -.col-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; -} - -.col-10 { - -ms-flex: 0 0 83.33333333%; - flex: 0 0 83.33333333%; - max-width: 83.33333333%; -} - -.col-11 { - -ms-flex: 0 0 91.66666667%; - flex: 0 0 91.66666667%; - max-width: 91.66666667%; -} - -.col-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; -} - -.order-first { - -ms-flex-order: -1; - order: -1; -} - -.order-last { - -ms-flex-order: 13; - order: 13; -} - -.order-0 { - -ms-flex-order: 0; - order: 0; -} - -.order-1 { - -ms-flex-order: 1; - order: 1; -} - -.order-2 { - -ms-flex-order: 2; - order: 2; -} - -.order-3 { - -ms-flex-order: 3; - order: 3; -} - -.order-4 { - -ms-flex-order: 4; - order: 4; -} - -.order-5 { - -ms-flex-order: 5; - order: 5; -} - -.order-6 { - -ms-flex-order: 6; - order: 6; -} - -.order-7 { - -ms-flex-order: 7; - order: 7; -} - -.order-8 { - -ms-flex-order: 8; - order: 8; -} - -.order-9 { - -ms-flex-order: 9; - order: 9; -} - -.order-10 { - -ms-flex-order: 10; - order: 10; -} - -.order-11 { - -ms-flex-order: 11; - order: 11; -} - -.order-12 { - -ms-flex-order: 12; - order: 12; -} - -.offset-1 { - margin-left: 8.33333333%; -} - -.offset-2 { - margin-left: 16.66666667%; -} - -.offset-3 { - margin-left: 25%; -} - -.offset-4 { - margin-left: 33.33333333%; -} - -.offset-5 { - margin-left: 41.66666667%; -} - -.offset-6 { - margin-left: 50%; -} - -.offset-7 { - margin-left: 58.33333333%; -} - -.offset-8 { - margin-left: 66.66666667%; -} - -.offset-9 { - margin-left: 75%; -} - -.offset-10 { - margin-left: 83.33333333%; -} - -.offset-11 { - margin-left: 91.66666667%; -} - -@media (min-width: 576px) { - .col-sm { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; - } - .col-sm-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; - } - .col-sm-1 { - -ms-flex: 0 0 8.33333333%; - flex: 0 0 8.33333333%; - max-width: 8.33333333%; - } - .col-sm-2 { - -ms-flex: 0 0 16.66666667%; - flex: 0 0 16.66666667%; - max-width: 16.66666667%; - } - .col-sm-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-sm-4 { - -ms-flex: 0 0 33.33333333%; - flex: 0 0 33.33333333%; - max-width: 33.33333333%; - } - .col-sm-5 { - -ms-flex: 0 0 41.66666667%; - flex: 0 0 41.66666667%; - max-width: 41.66666667%; - } - .col-sm-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .col-sm-7 { - -ms-flex: 0 0 58.33333333%; - flex: 0 0 58.33333333%; - max-width: 58.33333333%; - } - .col-sm-8 { - -ms-flex: 0 0 66.66666667%; - flex: 0 0 66.66666667%; - max-width: 66.66666667%; - } - .col-sm-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } - .col-sm-10 { - -ms-flex: 0 0 83.33333333%; - flex: 0 0 83.33333333%; - max-width: 83.33333333%; - } - .col-sm-11 { - -ms-flex: 0 0 91.66666667%; - flex: 0 0 91.66666667%; - max-width: 91.66666667%; - } - .col-sm-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .order-sm-first { - -ms-flex-order: -1; - order: -1; - } - .order-sm-last { - -ms-flex-order: 13; - order: 13; - } - .order-sm-0 { - -ms-flex-order: 0; - order: 0; - } - .order-sm-1 { - -ms-flex-order: 1; - order: 1; - } - .order-sm-2 { - -ms-flex-order: 2; - order: 2; - } - .order-sm-3 { - -ms-flex-order: 3; - order: 3; - } - .order-sm-4 { - -ms-flex-order: 4; - order: 4; - } - .order-sm-5 { - -ms-flex-order: 5; - order: 5; - } - .order-sm-6 { - -ms-flex-order: 6; - order: 6; - } - .order-sm-7 { - -ms-flex-order: 7; - order: 7; - } - .order-sm-8 { - -ms-flex-order: 8; - order: 8; - } - .order-sm-9 { - -ms-flex-order: 9; - order: 9; - } - .order-sm-10 { - -ms-flex-order: 10; - order: 10; - } - .order-sm-11 { - -ms-flex-order: 11; - order: 11; - } - .order-sm-12 { - -ms-flex-order: 12; - order: 12; - } - .offset-sm-0 { - margin-left: 0; - } - .offset-sm-1 { - margin-left: 8.33333333%; - } - .offset-sm-2 { - margin-left: 16.66666667%; - } - .offset-sm-3 { - margin-left: 25%; - } - .offset-sm-4 { - margin-left: 33.33333333%; - } - .offset-sm-5 { - margin-left: 41.66666667%; - } - .offset-sm-6 { - margin-left: 50%; - } - .offset-sm-7 { - margin-left: 58.33333333%; - } - .offset-sm-8 { - margin-left: 66.66666667%; - } - .offset-sm-9 { - margin-left: 75%; - } - .offset-sm-10 { - margin-left: 83.33333333%; - } - .offset-sm-11 { - margin-left: 91.66666667%; - } -} - -@media (min-width: 768px) { - .col-md { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; - } - .col-md-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; - } - .col-md-1 { - -ms-flex: 0 0 8.33333333%; - flex: 0 0 8.33333333%; - max-width: 8.33333333%; - } - .col-md-2 { - -ms-flex: 0 0 16.66666667%; - flex: 0 0 16.66666667%; - max-width: 16.66666667%; - } - .col-md-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-md-4 { - -ms-flex: 0 0 33.33333333%; - flex: 0 0 33.33333333%; - max-width: 33.33333333%; - } - .col-md-5 { - -ms-flex: 0 0 41.66666667%; - flex: 0 0 41.66666667%; - max-width: 41.66666667%; - } - .col-md-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .col-md-7 { - -ms-flex: 0 0 58.33333333%; - flex: 0 0 58.33333333%; - max-width: 58.33333333%; - } - .col-md-8 { - -ms-flex: 0 0 66.66666667%; - flex: 0 0 66.66666667%; - max-width: 66.66666667%; - } - .col-md-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } - .col-md-10 { - -ms-flex: 0 0 83.33333333%; - flex: 0 0 83.33333333%; - max-width: 83.33333333%; - } - .col-md-11 { - -ms-flex: 0 0 91.66666667%; - flex: 0 0 91.66666667%; - max-width: 91.66666667%; - } - .col-md-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .order-md-first { - -ms-flex-order: -1; - order: -1; - } - .order-md-last { - -ms-flex-order: 13; - order: 13; - } - .order-md-0 { - -ms-flex-order: 0; - order: 0; - } - .order-md-1 { - -ms-flex-order: 1; - order: 1; - } - .order-md-2 { - -ms-flex-order: 2; - order: 2; - } - .order-md-3 { - -ms-flex-order: 3; - order: 3; - } - .order-md-4 { - -ms-flex-order: 4; - order: 4; - } - .order-md-5 { - -ms-flex-order: 5; - order: 5; - } - .order-md-6 { - -ms-flex-order: 6; - order: 6; - } - .order-md-7 { - -ms-flex-order: 7; - order: 7; - } - .order-md-8 { - -ms-flex-order: 8; - order: 8; - } - .order-md-9 { - -ms-flex-order: 9; - order: 9; - } - .order-md-10 { - -ms-flex-order: 10; - order: 10; - } - .order-md-11 { - -ms-flex-order: 11; - order: 11; - } - .order-md-12 { - -ms-flex-order: 12; - order: 12; - } - .offset-md-0 { - margin-left: 0; - } - .offset-md-1 { - margin-left: 8.33333333%; - } - .offset-md-2 { - margin-left: 16.66666667%; - } - .offset-md-3 { - margin-left: 25%; - } - .offset-md-4 { - margin-left: 33.33333333%; - } - .offset-md-5 { - margin-left: 41.66666667%; - } - .offset-md-6 { - margin-left: 50%; - } - .offset-md-7 { - margin-left: 58.33333333%; - } - .offset-md-8 { - margin-left: 66.66666667%; - } - .offset-md-9 { - margin-left: 75%; - } - .offset-md-10 { - margin-left: 83.33333333%; - } - .offset-md-11 { - margin-left: 91.66666667%; - } -} - -@media (min-width: 992px) { - .col-lg { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; - } - .col-lg-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; - } - .col-lg-1 { - -ms-flex: 0 0 8.33333333%; - flex: 0 0 8.33333333%; - max-width: 8.33333333%; - } - .col-lg-2 { - -ms-flex: 0 0 16.66666667%; - flex: 0 0 16.66666667%; - max-width: 16.66666667%; - } - .col-lg-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-lg-4 { - -ms-flex: 0 0 33.33333333%; - flex: 0 0 33.33333333%; - max-width: 33.33333333%; - } - .col-lg-5 { - -ms-flex: 0 0 41.66666667%; - flex: 0 0 41.66666667%; - max-width: 41.66666667%; - } - .col-lg-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .col-lg-7 { - -ms-flex: 0 0 58.33333333%; - flex: 0 0 58.33333333%; - max-width: 58.33333333%; - } - .col-lg-8 { - -ms-flex: 0 0 66.66666667%; - flex: 0 0 66.66666667%; - max-width: 66.66666667%; - } - .col-lg-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } - .col-lg-10 { - -ms-flex: 0 0 83.33333333%; - flex: 0 0 83.33333333%; - max-width: 83.33333333%; - } - .col-lg-11 { - -ms-flex: 0 0 91.66666667%; - flex: 0 0 91.66666667%; - max-width: 91.66666667%; - } - .col-lg-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .order-lg-first { - -ms-flex-order: -1; - order: -1; - } - .order-lg-last { - -ms-flex-order: 13; - order: 13; - } - .order-lg-0 { - -ms-flex-order: 0; - order: 0; - } - .order-lg-1 { - -ms-flex-order: 1; - order: 1; - } - .order-lg-2 { - -ms-flex-order: 2; - order: 2; - } - .order-lg-3 { - -ms-flex-order: 3; - order: 3; - } - .order-lg-4 { - -ms-flex-order: 4; - order: 4; - } - .order-lg-5 { - -ms-flex-order: 5; - order: 5; - } - .order-lg-6 { - -ms-flex-order: 6; - order: 6; - } - .order-lg-7 { - -ms-flex-order: 7; - order: 7; - } - .order-lg-8 { - -ms-flex-order: 8; - order: 8; - } - .order-lg-9 { - -ms-flex-order: 9; - order: 9; - } - .order-lg-10 { - -ms-flex-order: 10; - order: 10; - } - .order-lg-11 { - -ms-flex-order: 11; - order: 11; - } - .order-lg-12 { - -ms-flex-order: 12; - order: 12; - } - .offset-lg-0 { - margin-left: 0; - } - .offset-lg-1 { - margin-left: 8.33333333%; - } - .offset-lg-2 { - margin-left: 16.66666667%; - } - .offset-lg-3 { - margin-left: 25%; - } - .offset-lg-4 { - margin-left: 33.33333333%; - } - .offset-lg-5 { - margin-left: 41.66666667%; - } - .offset-lg-6 { - margin-left: 50%; - } - .offset-lg-7 { - margin-left: 58.33333333%; - } - .offset-lg-8 { - margin-left: 66.66666667%; - } - .offset-lg-9 { - margin-left: 75%; - } - .offset-lg-10 { - margin-left: 83.33333333%; - } - .offset-lg-11 { - margin-left: 91.66666667%; - } -} - -@media (min-width: 1280px) { - .col-xl { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; - } - .col-xl-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; - } - .col-xl-1 { - -ms-flex: 0 0 8.33333333%; - flex: 0 0 8.33333333%; - max-width: 8.33333333%; - } - .col-xl-2 { - -ms-flex: 0 0 16.66666667%; - flex: 0 0 16.66666667%; - max-width: 16.66666667%; - } - .col-xl-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-xl-4 { - -ms-flex: 0 0 33.33333333%; - flex: 0 0 33.33333333%; - max-width: 33.33333333%; - } - .col-xl-5 { - -ms-flex: 0 0 41.66666667%; - flex: 0 0 41.66666667%; - max-width: 41.66666667%; - } - .col-xl-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .col-xl-7 { - -ms-flex: 0 0 58.33333333%; - flex: 0 0 58.33333333%; - max-width: 58.33333333%; - } - .col-xl-8 { - -ms-flex: 0 0 66.66666667%; - flex: 0 0 66.66666667%; - max-width: 66.66666667%; - } - .col-xl-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } - .col-xl-10 { - -ms-flex: 0 0 83.33333333%; - flex: 0 0 83.33333333%; - max-width: 83.33333333%; - } - .col-xl-11 { - -ms-flex: 0 0 91.66666667%; - flex: 0 0 91.66666667%; - max-width: 91.66666667%; - } - .col-xl-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .order-xl-first { - -ms-flex-order: -1; - order: -1; - } - .order-xl-last { - -ms-flex-order: 13; - order: 13; - } - .order-xl-0 { - -ms-flex-order: 0; - order: 0; - } - .order-xl-1 { - -ms-flex-order: 1; - order: 1; - } - .order-xl-2 { - -ms-flex-order: 2; - order: 2; - } - .order-xl-3 { - -ms-flex-order: 3; - order: 3; - } - .order-xl-4 { - -ms-flex-order: 4; - order: 4; - } - .order-xl-5 { - -ms-flex-order: 5; - order: 5; - } - .order-xl-6 { - -ms-flex-order: 6; - order: 6; - } - .order-xl-7 { - -ms-flex-order: 7; - order: 7; - } - .order-xl-8 { - -ms-flex-order: 8; - order: 8; - } - .order-xl-9 { - -ms-flex-order: 9; - order: 9; - } - .order-xl-10 { - -ms-flex-order: 10; - order: 10; - } - .order-xl-11 { - -ms-flex-order: 11; - order: 11; - } - .order-xl-12 { - -ms-flex-order: 12; - order: 12; - } - .offset-xl-0 { - margin-left: 0; - } - .offset-xl-1 { - margin-left: 8.33333333%; - } - .offset-xl-2 { - margin-left: 16.66666667%; - } - .offset-xl-3 { - margin-left: 25%; - } - .offset-xl-4 { - margin-left: 33.33333333%; - } - .offset-xl-5 { - margin-left: 41.66666667%; - } - .offset-xl-6 { - margin-left: 50%; - } - .offset-xl-7 { - margin-left: 58.33333333%; - } - .offset-xl-8 { - margin-left: 66.66666667%; - } - .offset-xl-9 { - margin-left: 75%; - } - .offset-xl-10 { - margin-left: 83.33333333%; - } - .offset-xl-11 { - margin-left: 91.66666667%; - } -} - -.table, .text-wrap table { - width: 100%; - max-width: 100%; - margin-bottom: 1rem; - background-color: transparent; -} - -.table th, .text-wrap table th, -.table td, -.text-wrap table td { - padding: 0.75rem; - vertical-align: top; - border-top: 1px solid #dee2e6; -} - -.table thead th, .text-wrap table thead th { - vertical-align: bottom; - border-bottom: 2px solid #dee2e6; -} - -.table tbody + tbody, .text-wrap table tbody + tbody { - border-top: 2px solid #dee2e6; -} - -.table .table, .text-wrap table .table, .table .text-wrap table, .text-wrap .table table, .text-wrap table table { - background-color: #f5f7fb; -} - -.table-sm th, -.table-sm td { - padding: 0.3rem; -} - -.table-bordered, .text-wrap table { - border: 1px solid #dee2e6; -} - -.table-bordered th, .text-wrap table th, -.table-bordered td, -.text-wrap table td { - border: 1px solid #dee2e6; -} - -.table-bordered thead th, .text-wrap table thead th, -.table-bordered thead td, -.text-wrap table thead td { - border-bottom-width: 2px; -} - -.table-borderless th, -.table-borderless td, -.table-borderless thead th, -.table-borderless tbody + tbody { - border: 0; -} - -.table-striped tbody tr:nth-of-type(odd) { - background-color: rgba(0, 0, 0, 0.02); -} - -.table-hover tbody tr:hover { - background-color: rgba(0, 0, 0, 0.04); -} - -.table-primary, -.table-primary > th, -.table-primary > td { - background-color: #cbdbf2; -} - -.table-hover .table-primary:hover { - background-color: #b7cded; -} - -.table-hover .table-primary:hover > td, -.table-hover .table-primary:hover > th { - background-color: #b7cded; -} - -.table-secondary, -.table-secondary > th, -.table-secondary > td { - background-color: #dddfe2; -} - -.table-hover .table-secondary:hover { - background-color: #cfd2d6; -} - -.table-hover .table-secondary:hover > td, -.table-hover .table-secondary:hover > th { - background-color: #cfd2d6; -} - -.table-success, -.table-success > th, -.table-success > td { - background-color: #d2ecb8; -} - -.table-hover .table-success:hover { - background-color: #c5e7a4; -} - -.table-hover .table-success:hover > td, -.table-hover .table-success:hover > th { - background-color: #c5e7a4; -} - -.table-info, -.table-info > th, -.table-info > td { - background-color: #cbe7fb; -} - -.table-hover .table-info:hover { - background-color: #b3dcf9; -} - -.table-hover .table-info:hover > td, -.table-hover .table-info:hover > th { - background-color: #b3dcf9; -} - -.table-warning, -.table-warning > th, -.table-warning > td { - background-color: #fbeebc; -} - -.table-hover .table-warning:hover { - background-color: #fae8a4; -} - -.table-hover .table-warning:hover > td, -.table-hover .table-warning:hover > th { - background-color: #fae8a4; -} - -.table-danger, -.table-danger > th, -.table-danger > td { - background-color: #f1c1c0; -} - -.table-hover .table-danger:hover { - background-color: #ecacab; -} - -.table-hover .table-danger:hover > td, -.table-hover .table-danger:hover > th { - background-color: #ecacab; -} - -.table-light, -.table-light > th, -.table-light > td { - background-color: #fdfdfe; -} - -.table-hover .table-light:hover { - background-color: #ececf6; -} - -.table-hover .table-light:hover > td, -.table-hover .table-light:hover > th { - background-color: #ececf6; -} - -.table-dark, -.table-dark > th, -.table-dark > td { - background-color: #c6c8ca; -} - -.table-hover .table-dark:hover { - background-color: #b9bbbe; -} - -.table-hover .table-dark:hover > td, -.table-hover .table-dark:hover > th { - background-color: #b9bbbe; -} - -.table-active, -.table-active > th, -.table-active > td { - background-color: rgba(0, 0, 0, 0.04); -} - -.table-hover .table-active:hover { - background-color: rgba(0, 0, 0, 0.04); -} - -.table-hover .table-active:hover > td, -.table-hover .table-active:hover > th { - background-color: rgba(0, 0, 0, 0.04); -} - -.table .thead-dark th, .text-wrap table .thead-dark th { - color: #f5f7fb; - background-color: #212529; - border-color: #32383e; -} - -.table .thead-light th, .text-wrap table .thead-light th { - color: #495057; - background-color: #e9ecef; - border-color: #dee2e6; -} - -.table-dark { - color: #f5f7fb; - background-color: #212529; -} - -.table-dark th, -.table-dark td, -.table-dark thead th { - border-color: #32383e; -} - -.table-dark.table-bordered, .text-wrap table.table-dark { - border: 0; -} - -.table-dark.table-striped tbody tr:nth-of-type(odd) { - background-color: rgba(255, 255, 255, 0.05); -} - -.table-dark.table-hover tbody tr:hover { - background-color: rgba(255, 255, 255, 0.075); -} - -@media (max-width: 575.98px) { - .table-responsive-sm { - display: block; - width: 100%; - overflow-x: auto; - -webkit-overflow-scrolling: touch; - -ms-overflow-style: -ms-autohiding-scrollbar; - } - .table-responsive-sm > .table-bordered, .text-wrap .table-responsive-sm > table { - border: 0; - } -} - -@media (max-width: 767.98px) { - .table-responsive-md { - display: block; - width: 100%; - overflow-x: auto; - -webkit-overflow-scrolling: touch; - -ms-overflow-style: -ms-autohiding-scrollbar; - } - .table-responsive-md > .table-bordered, .text-wrap .table-responsive-md > table { - border: 0; - } -} - -@media (max-width: 991.98px) { - .table-responsive-lg { - display: block; - width: 100%; - overflow-x: auto; - -webkit-overflow-scrolling: touch; - -ms-overflow-style: -ms-autohiding-scrollbar; - } - .table-responsive-lg > .table-bordered, .text-wrap .table-responsive-lg > table { - border: 0; - } -} - -@media (max-width: 1279.98px) { - .table-responsive-xl { - display: block; - width: 100%; - overflow-x: auto; - -webkit-overflow-scrolling: touch; - -ms-overflow-style: -ms-autohiding-scrollbar; - } - .table-responsive-xl > .table-bordered, .text-wrap .table-responsive-xl > table { - border: 0; - } -} - -.table-responsive { - display: block; - width: 100%; - overflow-x: auto; - -webkit-overflow-scrolling: touch; - -ms-overflow-style: -ms-autohiding-scrollbar; -} - -.table-responsive > .table-bordered, .text-wrap .table-responsive > table { - border: 0; -} - -.form-control { - display: block; - width: 100%; - padding: 0.375rem 0.75rem; - font-size: 0.9375rem; - line-height: 1.6; - color: #495057; - background-color: #fff; - background-clip: padding-box; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; - transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; -} - -@media screen and (prefers-reduced-motion: reduce) { - .form-control { - transition: none; - } -} - -.form-control::-ms-expand { - background-color: transparent; - border: 0; -} - -.form-control:focus { - color: #495057; - background-color: #fff; - border-color: #1991eb; - outline: 0; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.form-control::-webkit-input-placeholder { - color: #adb5bd; - opacity: 1; -} - -.form-control::-moz-placeholder { - color: #adb5bd; - opacity: 1; -} - -.form-control:-ms-input-placeholder { - color: #adb5bd; - opacity: 1; -} - -.form-control::-ms-input-placeholder { - color: #adb5bd; - opacity: 1; -} - -.form-control::placeholder { - color: #adb5bd; - opacity: 1; -} - -.form-control:disabled, .form-control[readonly] { - background-color: #f8f9fa; - opacity: 1; -} - -select.form-control:not([size]):not([multiple]) { - height: 2.375rem; -} - -select.form-control:focus::-ms-value { - color: #495057; - background-color: #fff; -} - -.form-control-file, -.form-control-range { - display: block; - width: 100%; -} - -.col-form-label { - padding-top: calc(0.375rem + 1px); - padding-bottom: calc(0.375rem + 1px); - margin-bottom: 0; - font-size: inherit; - line-height: 1.6; -} - -.col-form-label-lg { - padding-top: calc(0.5rem + 1px); - padding-bottom: calc(0.5rem + 1px); - font-size: 1.125rem; - line-height: 1.44444444; -} - -.col-form-label-sm { - padding-top: calc(0.25rem + 1px); - padding-bottom: calc(0.25rem + 1px); - font-size: 0.875rem; - line-height: 1.14285714; -} - -.form-control-plaintext { - display: block; - width: 100%; - padding-top: 0.375rem; - padding-bottom: 0.375rem; - margin-bottom: 0; - line-height: 1.6; - color: #495057; - background-color: transparent; - border: solid transparent; - border-width: 1px 0; -} - -.form-control-plaintext.form-control-sm, .input-group-sm > .form-control-plaintext.form-control, -.input-group-sm > .input-group-prepend > .form-control-plaintext.input-group-text, -.input-group-sm > .input-group-append > .form-control-plaintext.input-group-text, -.input-group-sm > .input-group-prepend > .form-control-plaintext.btn, -.input-group-sm > .input-group-append > .form-control-plaintext.btn, .form-control-plaintext.form-control-lg, .input-group-lg > .form-control-plaintext.form-control, -.input-group-lg > .input-group-prepend > .form-control-plaintext.input-group-text, -.input-group-lg > .input-group-append > .form-control-plaintext.input-group-text, -.input-group-lg > .input-group-prepend > .form-control-plaintext.btn, -.input-group-lg > .input-group-append > .form-control-plaintext.btn { - padding-right: 0; - padding-left: 0; -} - -.form-control-sm, .input-group-sm > .form-control, -.input-group-sm > .input-group-prepend > .input-group-text, -.input-group-sm > .input-group-append > .input-group-text, -.input-group-sm > .input-group-prepend > .btn, -.input-group-sm > .input-group-append > .btn { - padding: 0.25rem 0.5rem; - font-size: 0.875rem; - line-height: 1.14285714; - border-radius: 3px; -} - -select.form-control-sm:not([size]):not([multiple]), .input-group-sm > select.form-control:not([size]):not([multiple]), -.input-group-sm > .input-group-prepend > select.input-group-text:not([size]):not([multiple]), -.input-group-sm > .input-group-append > select.input-group-text:not([size]):not([multiple]), -.input-group-sm > .input-group-prepend > select.btn:not([size]):not([multiple]), -.input-group-sm > .input-group-append > select.btn:not([size]):not([multiple]) { - height: calc(1.8125rem + 2px); -} - -.form-control-lg, .input-group-lg > .form-control, -.input-group-lg > .input-group-prepend > .input-group-text, -.input-group-lg > .input-group-append > .input-group-text, -.input-group-lg > .input-group-prepend > .btn, -.input-group-lg > .input-group-append > .btn { - padding: 0.5rem 1rem; - font-size: 1.125rem; - line-height: 1.44444444; - border-radius: 3px; -} - -select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.form-control:not([size]):not([multiple]), -.input-group-lg > .input-group-prepend > select.input-group-text:not([size]):not([multiple]), -.input-group-lg > .input-group-append > select.input-group-text:not([size]):not([multiple]), -.input-group-lg > .input-group-prepend > select.btn:not([size]):not([multiple]), -.input-group-lg > .input-group-append > select.btn:not([size]):not([multiple]) { - height: calc(2.6875rem + 2px); -} - -.form-group { - margin-bottom: 1rem; -} - -.form-text { - display: block; - margin-top: 0.25rem; -} - -.form-row { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-right: -5px; - margin-left: -5px; -} - -.form-row > .col, -.form-row > [class*="col-"] { - padding-right: 5px; - padding-left: 5px; -} - -.form-check { - position: relative; - display: block; - padding-left: 1.25rem; -} - -.form-check-input { - position: absolute; - margin-top: 0.3rem; - margin-left: -1.25rem; -} - -.form-check-input:disabled ~ .form-check-label { - color: #9aa0ac; -} - -.form-check-label { - margin-bottom: 0; -} - -.form-check-inline { - display: -ms-inline-flexbox; - display: inline-flex; - -ms-flex-align: center; - align-items: center; - padding-left: 0; - margin-right: 0.75rem; -} - -.form-check-inline .form-check-input { - position: static; - margin-top: 0; - margin-right: 0.3125rem; - margin-left: 0; -} - -.valid-feedback { - display: none; - width: 100%; - margin-top: 0.25rem; - font-size: 87.5%; - color: #5eba00; -} - -.valid-tooltip { - position: absolute; - top: 100%; - z-index: 5; - display: none; - max-width: 100%; - padding: .5rem; - margin-top: .1rem; - font-size: .875rem; - line-height: 1; - color: #fff; - background-color: rgba(94, 186, 0, 0.8); - border-radius: .2rem; -} - -.was-validated .form-control:valid, .form-control.is-valid, .was-validated -.custom-select:valid, -.custom-select.is-valid { - border-color: #5eba00; -} - -.was-validated .form-control:valid:focus, .form-control.is-valid:focus, .was-validated -.custom-select:valid:focus, -.custom-select.is-valid:focus { - border-color: #5eba00; - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.25); -} - -.was-validated .form-control:valid ~ .valid-feedback, -.was-validated .form-control:valid ~ .valid-tooltip, .form-control.is-valid ~ .valid-feedback, -.form-control.is-valid ~ .valid-tooltip, .was-validated -.custom-select:valid ~ .valid-feedback, -.was-validated -.custom-select:valid ~ .valid-tooltip, -.custom-select.is-valid ~ .valid-feedback, -.custom-select.is-valid ~ .valid-tooltip { - display: block; -} - -.was-validated .form-check-input:valid ~ .form-check-label, .form-check-input.is-valid ~ .form-check-label { - color: #5eba00; -} - -.was-validated .form-check-input:valid ~ .valid-feedback, -.was-validated .form-check-input:valid ~ .valid-tooltip, .form-check-input.is-valid ~ .valid-feedback, -.form-check-input.is-valid ~ .valid-tooltip { - display: block; -} - -.was-validated .custom-control-input:valid ~ .custom-control-label, .custom-control-input.is-valid ~ .custom-control-label { - color: #5eba00; -} - -.was-validated .custom-control-input:valid ~ .custom-control-label::before, .custom-control-input.is-valid ~ .custom-control-label::before { - background-color: #9eff3b; -} - -.was-validated .custom-control-input:valid ~ .valid-feedback, -.was-validated .custom-control-input:valid ~ .valid-tooltip, .custom-control-input.is-valid ~ .valid-feedback, -.custom-control-input.is-valid ~ .valid-tooltip { - display: block; -} - -.was-validated .custom-control-input:valid:checked ~ .custom-control-label::before, .custom-control-input.is-valid:checked ~ .custom-control-label::before { - background-color: #78ed00; -} - -.was-validated .custom-control-input:valid:focus ~ .custom-control-label::before, .custom-control-input.is-valid:focus ~ .custom-control-label::before { - box-shadow: 0 0 0 1px #f5f7fb, 0 0 0 2px rgba(94, 186, 0, 0.25); -} - -.was-validated .custom-file-input:valid ~ .custom-file-label, .custom-file-input.is-valid ~ .custom-file-label { - border-color: #5eba00; -} - -.was-validated .custom-file-input:valid ~ .custom-file-label::before, .custom-file-input.is-valid ~ .custom-file-label::before { - border-color: inherit; -} - -.was-validated .custom-file-input:valid ~ .valid-feedback, -.was-validated .custom-file-input:valid ~ .valid-tooltip, .custom-file-input.is-valid ~ .valid-feedback, -.custom-file-input.is-valid ~ .valid-tooltip { - display: block; -} - -.was-validated .custom-file-input:valid:focus ~ .custom-file-label, .custom-file-input.is-valid:focus ~ .custom-file-label { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.25); -} - -.invalid-feedback { - display: none; - width: 100%; - margin-top: 0.25rem; - font-size: 87.5%; - color: #cd201f; -} - -.invalid-tooltip { - position: absolute; - top: 100%; - z-index: 5; - display: none; - max-width: 100%; - padding: .5rem; - margin-top: .1rem; - font-size: .875rem; - line-height: 1; - color: #fff; - background-color: rgba(205, 32, 31, 0.8); - border-radius: .2rem; -} - -.was-validated .form-control:invalid, .form-control.is-invalid, .was-validated -.custom-select:invalid, -.custom-select.is-invalid { - border-color: #cd201f; -} - -.was-validated .form-control:invalid:focus, .form-control.is-invalid:focus, .was-validated -.custom-select:invalid:focus, -.custom-select.is-invalid:focus { - border-color: #cd201f; - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.25); -} - -.was-validated .form-control:invalid ~ .invalid-feedback, -.was-validated .form-control:invalid ~ .invalid-tooltip, .form-control.is-invalid ~ .invalid-feedback, -.form-control.is-invalid ~ .invalid-tooltip, .was-validated -.custom-select:invalid ~ .invalid-feedback, -.was-validated -.custom-select:invalid ~ .invalid-tooltip, -.custom-select.is-invalid ~ .invalid-feedback, -.custom-select.is-invalid ~ .invalid-tooltip { - display: block; -} - -.was-validated .form-check-input:invalid ~ .form-check-label, .form-check-input.is-invalid ~ .form-check-label { - color: #cd201f; -} - -.was-validated .form-check-input:invalid ~ .invalid-feedback, -.was-validated .form-check-input:invalid ~ .invalid-tooltip, .form-check-input.is-invalid ~ .invalid-feedback, -.form-check-input.is-invalid ~ .invalid-tooltip { - display: block; -} - -.was-validated .custom-control-input:invalid ~ .custom-control-label, .custom-control-input.is-invalid ~ .custom-control-label { - color: #cd201f; -} - -.was-validated .custom-control-input:invalid ~ .custom-control-label::before, .custom-control-input.is-invalid ~ .custom-control-label::before { - background-color: #ec8080; -} - -.was-validated .custom-control-input:invalid ~ .invalid-feedback, -.was-validated .custom-control-input:invalid ~ .invalid-tooltip, .custom-control-input.is-invalid ~ .invalid-feedback, -.custom-control-input.is-invalid ~ .invalid-tooltip { - display: block; -} - -.was-validated .custom-control-input:invalid:checked ~ .custom-control-label::before, .custom-control-input.is-invalid:checked ~ .custom-control-label::before { - background-color: #e23e3d; -} - -.was-validated .custom-control-input:invalid:focus ~ .custom-control-label::before, .custom-control-input.is-invalid:focus ~ .custom-control-label::before { - box-shadow: 0 0 0 1px #f5f7fb, 0 0 0 2px rgba(205, 32, 31, 0.25); -} - -.was-validated .custom-file-input:invalid ~ .custom-file-label, .custom-file-input.is-invalid ~ .custom-file-label { - border-color: #cd201f; -} - -.was-validated .custom-file-input:invalid ~ .custom-file-label::before, .custom-file-input.is-invalid ~ .custom-file-label::before { - border-color: inherit; -} - -.was-validated .custom-file-input:invalid ~ .invalid-feedback, -.was-validated .custom-file-input:invalid ~ .invalid-tooltip, .custom-file-input.is-invalid ~ .invalid-feedback, -.custom-file-input.is-invalid ~ .invalid-tooltip { - display: block; -} - -.was-validated .custom-file-input:invalid:focus ~ .custom-file-label, .custom-file-input.is-invalid:focus ~ .custom-file-label { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.25); -} - -.form-inline { - display: -ms-flexbox; - display: flex; - -ms-flex-flow: row wrap; - flex-flow: row wrap; - -ms-flex-align: center; - align-items: center; -} - -.form-inline .form-check { - width: 100%; -} - -@media (min-width: 576px) { - .form-inline label { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - margin-bottom: 0; - } - .form-inline .form-group { - display: -ms-flexbox; - display: flex; - -ms-flex: 0 0 auto; - flex: 0 0 auto; - -ms-flex-flow: row wrap; - flex-flow: row wrap; - -ms-flex-align: center; - align-items: center; - margin-bottom: 0; - } - .form-inline .form-control { - display: inline-block; - width: auto; - vertical-align: middle; - } - .form-inline .form-control-plaintext { - display: inline-block; - } - .form-inline .input-group, - .form-inline .custom-select { - width: auto; - } - .form-inline .form-check { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - width: auto; - padding-left: 0; - } - .form-inline .form-check-input { - position: relative; - margin-top: 0; - margin-right: 0.25rem; - margin-left: 0; - } - .form-inline .custom-control { - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - } - .form-inline .custom-control-label { - margin-bottom: 0; - } -} - -.btn { - display: inline-block; - font-weight: 400; - text-align: center; - white-space: nowrap; - vertical-align: middle; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - border: 1px solid transparent; - padding: 0.375rem 0.75rem; - font-size: 0.9375rem; - line-height: 1.84615385; - border-radius: 3px; - transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; -} - -@media screen and (prefers-reduced-motion: reduce) { - .btn { - transition: none; - } -} - -.btn:hover, .btn:focus { - text-decoration: none; -} - -.btn:focus, .btn.focus { - outline: 0; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.btn.disabled, .btn:disabled { - opacity: 0.65; -} - -.btn:not(:disabled):not(.disabled) { - cursor: pointer; -} - -.btn:not(:disabled):not(.disabled):active, .btn:not(:disabled):not(.disabled).active { - background-image: none; -} - -a.btn.disabled, -fieldset:disabled a.btn { - pointer-events: none; -} - -.btn-primary { - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.btn-primary:hover { - color: #fff; - background-color: #316cbe; - border-color: #2f66b3; -} - -.btn-primary:focus, .btn-primary.focus { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.5); -} - -.btn-primary.disabled, .btn-primary:disabled { - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active, -.show > .btn-primary.dropdown-toggle { - color: #fff; - background-color: #2f66b3; - border-color: #2c60a9; -} - -.btn-primary:not(:disabled):not(.disabled):active:focus, .btn-primary:not(:disabled):not(.disabled).active:focus, -.show > .btn-primary.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.5); -} - -.btn-secondary { - color: #fff; - background-color: #868e96; - border-color: #868e96; -} - -.btn-secondary:hover { - color: #fff; - background-color: #727b84; - border-color: #6c757d; -} - -.btn-secondary:focus, .btn-secondary.focus { - box-shadow: 0 0 0 2px rgba(134, 142, 150, 0.5); -} - -.btn-secondary.disabled, .btn-secondary:disabled { - color: #fff; - background-color: #868e96; - border-color: #868e96; -} - -.btn-secondary:not(:disabled):not(.disabled):active, .btn-secondary:not(:disabled):not(.disabled).active, -.show > .btn-secondary.dropdown-toggle { - color: #fff; - background-color: #6c757d; - border-color: #666e76; -} - -.btn-secondary:not(:disabled):not(.disabled):active:focus, .btn-secondary:not(:disabled):not(.disabled).active:focus, -.show > .btn-secondary.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(134, 142, 150, 0.5); -} - -.btn-success { - color: #fff; - background-color: #5eba00; - border-color: #5eba00; -} - -.btn-success:hover { - color: #fff; - background-color: #4b9400; - border-color: #448700; -} - -.btn-success:focus, .btn-success.focus { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.5); -} - -.btn-success.disabled, .btn-success:disabled { - color: #fff; - background-color: #5eba00; - border-color: #5eba00; -} - -.btn-success:not(:disabled):not(.disabled):active, .btn-success:not(:disabled):not(.disabled).active, -.show > .btn-success.dropdown-toggle { - color: #fff; - background-color: #448700; - border-color: #3e7a00; -} - -.btn-success:not(:disabled):not(.disabled):active:focus, .btn-success:not(:disabled):not(.disabled).active:focus, -.show > .btn-success.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.5); -} - -.btn-info { - color: #fff; - background-color: #45aaf2; - border-color: #45aaf2; -} - -.btn-info:hover { - color: #fff; - background-color: #219af0; - border-color: #1594ef; -} - -.btn-info:focus, .btn-info.focus { - box-shadow: 0 0 0 2px rgba(69, 170, 242, 0.5); -} - -.btn-info.disabled, .btn-info:disabled { - color: #fff; - background-color: #45aaf2; - border-color: #45aaf2; -} - -.btn-info:not(:disabled):not(.disabled):active, .btn-info:not(:disabled):not(.disabled).active, -.show > .btn-info.dropdown-toggle { - color: #fff; - background-color: #1594ef; - border-color: #108ee7; -} - -.btn-info:not(:disabled):not(.disabled):active:focus, .btn-info:not(:disabled):not(.disabled).active:focus, -.show > .btn-info.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(69, 170, 242, 0.5); -} - -.btn-warning { - color: #fff; - background-color: #f1c40f; - border-color: #f1c40f; -} - -.btn-warning:hover { - color: #fff; - background-color: #cea70c; - border-color: #c29d0b; -} - -.btn-warning:focus, .btn-warning.focus { - box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.5); -} - -.btn-warning.disabled, .btn-warning:disabled { - color: #fff; - background-color: #f1c40f; - border-color: #f1c40f; -} - -.btn-warning:not(:disabled):not(.disabled):active, .btn-warning:not(:disabled):not(.disabled).active, -.show > .btn-warning.dropdown-toggle { - color: #fff; - background-color: #c29d0b; - border-color: #b6940b; -} - -.btn-warning:not(:disabled):not(.disabled):active:focus, .btn-warning:not(:disabled):not(.disabled).active:focus, -.show > .btn-warning.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.5); -} - -.btn-danger { - color: #fff; - background-color: #cd201f; - border-color: #cd201f; -} - -.btn-danger:hover { - color: #fff; - background-color: #ac1b1a; - border-color: #a11918; -} - -.btn-danger:focus, .btn-danger.focus { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.5); -} - -.btn-danger.disabled, .btn-danger:disabled { - color: #fff; - background-color: #cd201f; - border-color: #cd201f; -} - -.btn-danger:not(:disabled):not(.disabled):active, .btn-danger:not(:disabled):not(.disabled).active, -.show > .btn-danger.dropdown-toggle { - color: #fff; - background-color: #a11918; - border-color: #961717; -} - -.btn-danger:not(:disabled):not(.disabled):active:focus, .btn-danger:not(:disabled):not(.disabled).active:focus, -.show > .btn-danger.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.5); -} - -.btn-light { - color: #495057; - background-color: #f8f9fa; - border-color: #f8f9fa; -} - -.btn-light:hover { - color: #495057; - background-color: #e2e6ea; - border-color: #dae0e5; -} - -.btn-light:focus, .btn-light.focus { - box-shadow: 0 0 0 2px rgba(248, 249, 250, 0.5); -} - -.btn-light.disabled, .btn-light:disabled { - color: #495057; - background-color: #f8f9fa; - border-color: #f8f9fa; -} - -.btn-light:not(:disabled):not(.disabled):active, .btn-light:not(:disabled):not(.disabled).active, -.show > .btn-light.dropdown-toggle { - color: #495057; - background-color: #dae0e5; - border-color: #d3d9df; -} - -.btn-light:not(:disabled):not(.disabled):active:focus, .btn-light:not(:disabled):not(.disabled).active:focus, -.show > .btn-light.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(248, 249, 250, 0.5); -} - -.btn-dark { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} - -.btn-dark:hover { - color: #fff; - background-color: #23272b; - border-color: #1d2124; -} - -.btn-dark:focus, .btn-dark.focus { - box-shadow: 0 0 0 2px rgba(52, 58, 64, 0.5); -} - -.btn-dark.disabled, .btn-dark:disabled { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} - -.btn-dark:not(:disabled):not(.disabled):active, .btn-dark:not(:disabled):not(.disabled).active, -.show > .btn-dark.dropdown-toggle { - color: #fff; - background-color: #1d2124; - border-color: #171a1d; -} - -.btn-dark:not(:disabled):not(.disabled):active:focus, .btn-dark:not(:disabled):not(.disabled).active:focus, -.show > .btn-dark.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(52, 58, 64, 0.5); -} - -.btn-outline-primary { - color: #467fcf; - background-color: transparent; - background-image: none; - border-color: #467fcf; -} - -.btn-outline-primary:hover { - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.btn-outline-primary:focus, .btn-outline-primary.focus { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.5); -} - -.btn-outline-primary.disabled, .btn-outline-primary:disabled { - color: #467fcf; - background-color: transparent; -} - -.btn-outline-primary:not(:disabled):not(.disabled):active, .btn-outline-primary:not(:disabled):not(.disabled).active, -.show > .btn-outline-primary.dropdown-toggle { - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.btn-outline-primary:not(:disabled):not(.disabled):active:focus, .btn-outline-primary:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-primary.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.5); -} - -.btn-outline-secondary { - color: #868e96; - background-color: transparent; - background-image: none; - border-color: #868e96; -} - -.btn-outline-secondary:hover { - color: #fff; - background-color: #868e96; - border-color: #868e96; -} - -.btn-outline-secondary:focus, .btn-outline-secondary.focus { - box-shadow: 0 0 0 2px rgba(134, 142, 150, 0.5); -} - -.btn-outline-secondary.disabled, .btn-outline-secondary:disabled { - color: #868e96; - background-color: transparent; -} - -.btn-outline-secondary:not(:disabled):not(.disabled):active, .btn-outline-secondary:not(:disabled):not(.disabled).active, -.show > .btn-outline-secondary.dropdown-toggle { - color: #fff; - background-color: #868e96; - border-color: #868e96; -} - -.btn-outline-secondary:not(:disabled):not(.disabled):active:focus, .btn-outline-secondary:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-secondary.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(134, 142, 150, 0.5); -} - -.btn-outline-success { - color: #5eba00; - background-color: transparent; - background-image: none; - border-color: #5eba00; -} - -.btn-outline-success:hover { - color: #fff; - background-color: #5eba00; - border-color: #5eba00; -} - -.btn-outline-success:focus, .btn-outline-success.focus { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.5); -} - -.btn-outline-success.disabled, .btn-outline-success:disabled { - color: #5eba00; - background-color: transparent; -} - -.btn-outline-success:not(:disabled):not(.disabled):active, .btn-outline-success:not(:disabled):not(.disabled).active, -.show > .btn-outline-success.dropdown-toggle { - color: #fff; - background-color: #5eba00; - border-color: #5eba00; -} - -.btn-outline-success:not(:disabled):not(.disabled):active:focus, .btn-outline-success:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-success.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.5); -} - -.btn-outline-info { - color: #45aaf2; - background-color: transparent; - background-image: none; - border-color: #45aaf2; -} - -.btn-outline-info:hover { - color: #fff; - background-color: #45aaf2; - border-color: #45aaf2; -} - -.btn-outline-info:focus, .btn-outline-info.focus { - box-shadow: 0 0 0 2px rgba(69, 170, 242, 0.5); -} - -.btn-outline-info.disabled, .btn-outline-info:disabled { - color: #45aaf2; - background-color: transparent; -} - -.btn-outline-info:not(:disabled):not(.disabled):active, .btn-outline-info:not(:disabled):not(.disabled).active, -.show > .btn-outline-info.dropdown-toggle { - color: #fff; - background-color: #45aaf2; - border-color: #45aaf2; -} - -.btn-outline-info:not(:disabled):not(.disabled):active:focus, .btn-outline-info:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-info.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(69, 170, 242, 0.5); -} - -.btn-outline-warning { - color: #f1c40f; - background-color: transparent; - background-image: none; - border-color: #f1c40f; -} - -.btn-outline-warning:hover { - color: #fff; - background-color: #f1c40f; - border-color: #f1c40f; -} - -.btn-outline-warning:focus, .btn-outline-warning.focus { - box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.5); -} - -.btn-outline-warning.disabled, .btn-outline-warning:disabled { - color: #f1c40f; - background-color: transparent; -} - -.btn-outline-warning:not(:disabled):not(.disabled):active, .btn-outline-warning:not(:disabled):not(.disabled).active, -.show > .btn-outline-warning.dropdown-toggle { - color: #fff; - background-color: #f1c40f; - border-color: #f1c40f; -} - -.btn-outline-warning:not(:disabled):not(.disabled):active:focus, .btn-outline-warning:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-warning.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.5); -} - -.btn-outline-danger { - color: #cd201f; - background-color: transparent; - background-image: none; - border-color: #cd201f; -} - -.btn-outline-danger:hover { - color: #fff; - background-color: #cd201f; - border-color: #cd201f; -} - -.btn-outline-danger:focus, .btn-outline-danger.focus { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.5); -} - -.btn-outline-danger.disabled, .btn-outline-danger:disabled { - color: #cd201f; - background-color: transparent; -} - -.btn-outline-danger:not(:disabled):not(.disabled):active, .btn-outline-danger:not(:disabled):not(.disabled).active, -.show > .btn-outline-danger.dropdown-toggle { - color: #fff; - background-color: #cd201f; - border-color: #cd201f; -} - -.btn-outline-danger:not(:disabled):not(.disabled):active:focus, .btn-outline-danger:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-danger.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.5); -} - -.btn-outline-light { - color: #f8f9fa; - background-color: transparent; - background-image: none; - border-color: #f8f9fa; -} - -.btn-outline-light:hover { - color: #495057; - background-color: #f8f9fa; - border-color: #f8f9fa; -} - -.btn-outline-light:focus, .btn-outline-light.focus { - box-shadow: 0 0 0 2px rgba(248, 249, 250, 0.5); -} - -.btn-outline-light.disabled, .btn-outline-light:disabled { - color: #f8f9fa; - background-color: transparent; -} - -.btn-outline-light:not(:disabled):not(.disabled):active, .btn-outline-light:not(:disabled):not(.disabled).active, -.show > .btn-outline-light.dropdown-toggle { - color: #495057; - background-color: #f8f9fa; - border-color: #f8f9fa; -} - -.btn-outline-light:not(:disabled):not(.disabled):active:focus, .btn-outline-light:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-light.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(248, 249, 250, 0.5); -} - -.btn-outline-dark { - color: #343a40; - background-color: transparent; - background-image: none; - border-color: #343a40; -} - -.btn-outline-dark:hover { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} - -.btn-outline-dark:focus, .btn-outline-dark.focus { - box-shadow: 0 0 0 2px rgba(52, 58, 64, 0.5); -} - -.btn-outline-dark.disabled, .btn-outline-dark:disabled { - color: #343a40; - background-color: transparent; -} - -.btn-outline-dark:not(:disabled):not(.disabled):active, .btn-outline-dark:not(:disabled):not(.disabled).active, -.show > .btn-outline-dark.dropdown-toggle { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} - -.btn-outline-dark:not(:disabled):not(.disabled):active:focus, .btn-outline-dark:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-dark.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(52, 58, 64, 0.5); -} - -.btn-link { - font-weight: 400; - color: #467fcf; - background-color: transparent; -} - -.btn-link:hover { - color: #295a9f; - text-decoration: underline; - background-color: transparent; - border-color: transparent; -} - -.btn-link:focus, .btn-link.focus { - text-decoration: underline; - border-color: transparent; - box-shadow: none; -} - -.btn-link:disabled, .btn-link.disabled { - color: #868e96; - pointer-events: none; -} - -.btn-lg, .btn-group-lg > .btn { - padding: 0.5rem 1rem; - font-size: 1.125rem; - line-height: 1.625; - border-radius: 3px; -} - -.btn-sm, .btn-group-sm > .btn { - padding: 0.25rem 0.5rem; - font-size: 0.875rem; - line-height: 1.33333333; - border-radius: 3px; -} - -.btn-block { - display: block; - width: 100%; -} - -.btn-block + .btn-block { - margin-top: 0.5rem; -} - -input[type="submit"].btn-block, -input[type="reset"].btn-block, -input[type="button"].btn-block { - width: 100%; -} - -.fade { - transition: opacity 0.15s linear; -} - -@media screen and (prefers-reduced-motion: reduce) { - .fade { - transition: none; - } -} - -.fade:not(.show) { - opacity: 0; -} - -.collapse:not(.show) { - display: none; -} - -.collapsing { - position: relative; - height: 0; - overflow: hidden; - transition: height 0.35s ease; -} - -@media screen and (prefers-reduced-motion: reduce) { - .collapsing { - transition: none; - } -} - -.dropup, -.dropright, -.dropdown, -.dropleft { - position: relative; -} - -.dropdown-toggle::after { - display: inline-block; - width: 0; - height: 0; - margin-left: 0.255em; - vertical-align: 0.255em; - content: ""; - border-top: 0.3em solid; - border-right: 0.3em solid transparent; - border-bottom: 0; - border-left: 0.3em solid transparent; -} - -.dropdown-toggle:empty::after { - margin-left: 0; -} - -.dropdown-menu { - position: absolute; - top: 100%; - left: 0; - z-index: 1000; - display: none; - float: left; - min-width: 10rem; - padding: 0.5rem 0; - margin: 0.125rem 0 0; - font-size: 0.9375rem; - color: #495057; - text-align: left; - list-style: none; - background-color: #fff; - background-clip: padding-box; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; -} - -.dropdown-menu-right { - right: 0; - left: auto; -} - -.dropup .dropdown-menu { - top: auto; - bottom: 100%; - margin-top: 0; - margin-bottom: 0.125rem; -} - -.dropup .dropdown-toggle::after { - display: inline-block; - width: 0; - height: 0; - margin-left: 0.255em; - vertical-align: 0.255em; - content: ""; - border-top: 0; - border-right: 0.3em solid transparent; - border-bottom: 0.3em solid; - border-left: 0.3em solid transparent; -} - -.dropup .dropdown-toggle:empty::after { - margin-left: 0; -} - -.dropright .dropdown-menu { - top: 0; - right: auto; - left: 100%; - margin-top: 0; - margin-left: 0.125rem; -} - -.dropright .dropdown-toggle::after { - display: inline-block; - width: 0; - height: 0; - margin-left: 0.255em; - vertical-align: 0.255em; - content: ""; - border-top: 0.3em solid transparent; - border-right: 0; - border-bottom: 0.3em solid transparent; - border-left: 0.3em solid; -} - -.dropright .dropdown-toggle:empty::after { - margin-left: 0; -} - -.dropright .dropdown-toggle::after { - vertical-align: 0; -} - -.dropleft .dropdown-menu { - top: 0; - right: 100%; - left: auto; - margin-top: 0; - margin-right: 0.125rem; -} - -.dropleft .dropdown-toggle::after { - display: inline-block; - width: 0; - height: 0; - margin-left: 0.255em; - vertical-align: 0.255em; - content: ""; -} - -.dropleft .dropdown-toggle::after { - display: none; -} - -.dropleft .dropdown-toggle::before { - display: inline-block; - width: 0; - height: 0; - margin-right: 0.255em; - vertical-align: 0.255em; - content: ""; - border-top: 0.3em solid transparent; - border-right: 0.3em solid; - border-bottom: 0.3em solid transparent; -} - -.dropleft .dropdown-toggle:empty::after { - margin-left: 0; -} - -.dropleft .dropdown-toggle::before { - vertical-align: 0; -} - -.dropdown-menu[x-placement^="top"], .dropdown-menu[x-placement^="right"], .dropdown-menu[x-placement^="bottom"], .dropdown-menu[x-placement^="left"] { - right: auto; - bottom: auto; -} - -.dropdown-divider { - height: 0; - margin: 0.5rem 0; - overflow: hidden; - border-top: 1px solid #e9ecef; -} - -.dropdown-item { - display: block; - width: 100%; - padding: 0.25rem 1.5rem; - clear: both; - font-weight: 400; - color: #212529; - text-align: inherit; - white-space: nowrap; - background-color: transparent; - border: 0; -} - -.dropdown-item:hover, .dropdown-item:focus { - color: #16181b; - text-decoration: none; - background-color: #f8f9fa; -} - -.dropdown-item.active, .dropdown-item:active { - color: #fff; - text-decoration: none; - background-color: #467fcf; -} - -.dropdown-item.disabled, .dropdown-item:disabled { - color: #868e96; - background-color: transparent; -} - -.dropdown-menu.show { - display: block; -} - -.dropdown-header { - display: block; - padding: 0.5rem 1.5rem; - margin-bottom: 0; - font-size: 0.875rem; - color: #868e96; - white-space: nowrap; -} - -.dropdown-item-text { - display: block; - padding: 0.25rem 1.5rem; - color: #212529; -} - -.btn-group, -.btn-group-vertical { - position: relative; - display: -ms-inline-flexbox; - display: inline-flex; - vertical-align: middle; -} - -.btn-group > .btn, -.btn-group-vertical > .btn { - position: relative; - -ms-flex: 0 1 auto; - flex: 0 1 auto; -} - -.btn-group > .btn:hover, -.btn-group-vertical > .btn:hover { - z-index: 1; -} - -.btn-group > .btn:focus, .btn-group > .btn:active, .btn-group > .btn.active, -.btn-group-vertical > .btn:focus, -.btn-group-vertical > .btn:active, -.btn-group-vertical > .btn.active { - z-index: 1; -} - -.btn-group .btn + .btn, -.btn-group .btn + .btn-group, -.btn-group .btn-group + .btn, -.btn-group .btn-group + .btn-group, -.btn-group-vertical .btn + .btn, -.btn-group-vertical .btn + .btn-group, -.btn-group-vertical .btn-group + .btn, -.btn-group-vertical .btn-group + .btn-group { - margin-left: -1px; -} - -.btn-toolbar { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -ms-flex-pack: start; - justify-content: flex-start; -} - -.btn-toolbar .input-group { - width: auto; -} - -.btn-group > .btn:first-child { - margin-left: 0; -} - -.btn-group > .btn:not(:last-child):not(.dropdown-toggle), -.btn-group > .btn-group:not(:last-child) > .btn { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} - -.btn-group > .btn:not(:first-child), -.btn-group > .btn-group:not(:first-child) > .btn { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} - -.dropdown-toggle-split { - padding-right: 0.5625rem; - padding-left: 0.5625rem; -} - -.dropdown-toggle-split::after, -.dropup .dropdown-toggle-split::after, -.dropright .dropdown-toggle-split::after { - margin-left: 0; -} - -.dropleft .dropdown-toggle-split::before { - margin-right: 0; -} - -.btn-sm + .dropdown-toggle-split, .btn-group-sm > .btn + .dropdown-toggle-split { - padding-right: 0.375rem; - padding-left: 0.375rem; -} - -.btn-lg + .dropdown-toggle-split, .btn-group-lg > .btn + .dropdown-toggle-split { - padding-right: 0.75rem; - padding-left: 0.75rem; -} - -.btn-group-vertical { - -ms-flex-direction: column; - flex-direction: column; - -ms-flex-align: start; - align-items: flex-start; - -ms-flex-pack: center; - justify-content: center; -} - -.btn-group-vertical .btn, -.btn-group-vertical .btn-group { - width: 100%; -} - -.btn-group-vertical > .btn + .btn, -.btn-group-vertical > .btn + .btn-group, -.btn-group-vertical > .btn-group + .btn, -.btn-group-vertical > .btn-group + .btn-group { - margin-top: -1px; - margin-left: 0; -} - -.btn-group-vertical > .btn:not(:last-child):not(.dropdown-toggle), -.btn-group-vertical > .btn-group:not(:last-child) > .btn { - border-bottom-right-radius: 0; - border-bottom-left-radius: 0; -} - -.btn-group-vertical > .btn:not(:first-child), -.btn-group-vertical > .btn-group:not(:first-child) > .btn { - border-top-left-radius: 0; - border-top-right-radius: 0; -} - -.btn-group-toggle > .btn, -.btn-group-toggle > .btn-group > .btn { - margin-bottom: 0; -} - -.btn-group-toggle > .btn input[type="radio"], -.btn-group-toggle > .btn input[type="checkbox"], -.btn-group-toggle > .btn-group > .btn input[type="radio"], -.btn-group-toggle > .btn-group > .btn input[type="checkbox"] { - position: absolute; - clip: rect(0, 0, 0, 0); - pointer-events: none; -} - -.input-group { - position: relative; - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -ms-flex-align: stretch; - align-items: stretch; - width: 100%; -} - -.input-group > .form-control, -.input-group > .custom-select, -.input-group > .custom-file { - position: relative; - -ms-flex: 1 1 auto; - flex: 1 1 auto; - width: 1%; - margin-bottom: 0; -} - -.input-group > .form-control:focus, -.input-group > .custom-select:focus, -.input-group > .custom-file:focus { - z-index: 3; -} - -.input-group > .form-control + .form-control, -.input-group > .form-control + .custom-select, -.input-group > .form-control + .custom-file, -.input-group > .custom-select + .form-control, -.input-group > .custom-select + .custom-select, -.input-group > .custom-select + .custom-file, -.input-group > .custom-file + .form-control, -.input-group > .custom-file + .custom-select, -.input-group > .custom-file + .custom-file { - margin-left: -1px; -} - -.input-group > .form-control:not(:last-child), -.input-group > .custom-select:not(:last-child) { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} - -.input-group > .form-control:not(:first-child), -.input-group > .custom-select:not(:first-child) { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} - -.input-group > .custom-file { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; -} - -.input-group > .custom-file:not(:last-child) .custom-file-label, -.input-group > .custom-file:not(:last-child) .custom-file-label::after { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} - -.input-group > .custom-file:not(:first-child) .custom-file-label, -.input-group > .custom-file:not(:first-child) .custom-file-label::after { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} - -.input-group-prepend, -.input-group-append { - display: -ms-flexbox; - display: flex; -} - -.input-group-prepend .btn, -.input-group-append .btn { - position: relative; - z-index: 2; -} - -.input-group-prepend .btn + .btn, -.input-group-prepend .btn + .input-group-text, -.input-group-prepend .input-group-text + .input-group-text, -.input-group-prepend .input-group-text + .btn, -.input-group-append .btn + .btn, -.input-group-append .btn + .input-group-text, -.input-group-append .input-group-text + .input-group-text, -.input-group-append .input-group-text + .btn { - margin-left: -1px; -} - -.input-group-prepend { - margin-right: -1px; -} - -.input-group-append { - margin-left: -1px; -} - -.input-group-text { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - padding: 0.375rem 0.75rem; - margin-bottom: 0; - font-size: 0.9375rem; - font-weight: 400; - line-height: 1.6; - color: #495057; - text-align: center; - white-space: nowrap; - background-color: #fbfbfc; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; -} - -.input-group-text input[type="radio"], -.input-group-text input[type="checkbox"] { - margin-top: 0; -} - -.input-group > .input-group-prepend > .btn, -.input-group > .input-group-prepend > .input-group-text, -.input-group > .input-group-append:not(:last-child) > .btn, -.input-group > .input-group-append:not(:last-child) > .input-group-text, -.input-group > .input-group-append:last-child > .btn:not(:last-child):not(.dropdown-toggle), -.input-group > .input-group-append:last-child > .input-group-text:not(:last-child) { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} - -.input-group > .input-group-append > .btn, -.input-group > .input-group-append > .input-group-text, -.input-group > .input-group-prepend:not(:first-child) > .btn, -.input-group > .input-group-prepend:not(:first-child) > .input-group-text, -.input-group > .input-group-prepend:first-child > .btn:not(:first-child), -.input-group > .input-group-prepend:first-child > .input-group-text:not(:first-child) { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} - -.custom-control { - position: relative; - display: block; - min-height: 1.5rem; - padding-left: 1.5rem; -} - -.custom-control-inline { - display: -ms-inline-flexbox; - display: inline-flex; - margin-right: 1rem; -} - -.custom-control-input { - position: absolute; - z-index: -1; - opacity: 0; -} - -.custom-control-input:checked ~ .custom-control-label::before { - color: #fff; - background-color: #467fcf; -} - -.custom-control-input:focus ~ .custom-control-label::before { - box-shadow: 0 0 0 1px #f5f7fb, 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.custom-control-input:active ~ .custom-control-label::before { - color: #fff; - background-color: #d4e1f4; -} - -.custom-control-input:disabled ~ .custom-control-label { - color: #868e96; -} - -.custom-control-input:disabled ~ .custom-control-label::before { - background-color: #e9ecef; -} - -.custom-control-label { - margin-bottom: 0; -} - -.custom-control-label::before { - position: absolute; - top: 0.25rem; - left: 0; - display: block; - width: 1rem; - height: 1rem; - pointer-events: none; - content: ""; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - background-color: #dee2e6; -} - -.custom-control-label::after { - position: absolute; - top: 0.25rem; - left: 0; - display: block; - width: 1rem; - height: 1rem; - content: ""; - background-repeat: no-repeat; - background-position: center center; - background-size: 50% 50%; -} - -.custom-checkbox .custom-control-label::before { - border-radius: 3px; -} - -.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before { - background-color: #467fcf; -} - -.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E"); -} - -.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before { - background-color: #467fcf; -} - -.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::after { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3E%3Cpath stroke='%23fff' d='M0 2h4'/%3E%3C/svg%3E"); -} - -.custom-checkbox .custom-control-input:disabled:checked ~ .custom-control-label::before { - background-color: rgba(70, 127, 207, 0.5); -} - -.custom-checkbox .custom-control-input:disabled:indeterminate ~ .custom-control-label::before { - background-color: rgba(70, 127, 207, 0.5); -} - -.custom-radio .custom-control-label::before { - border-radius: 50%; -} - -.custom-radio .custom-control-input:checked ~ .custom-control-label::before { - background-color: #467fcf; -} - -.custom-radio .custom-control-input:checked ~ .custom-control-label::after { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E"); -} - -.custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before { - background-color: rgba(70, 127, 207, 0.5); -} - -.custom-select { - display: inline-block; - width: 100%; - height: 2.375rem; - padding: 0.5rem 1.75rem 0.5rem 0.75rem; - line-height: 1.5; - color: #495057; - vertical-align: middle; - background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 5'%3E%3Cpath fill='#999' d='M0 0L10 0L5 5L0 0'/%3E%3C/svg%3E") no-repeat right 0.75rem center; - background-size: 8px 10px; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; -} - -.custom-select:focus { - border-color: #1991eb; - outline: 0; - box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075), 0 0 5px rgba(25, 145, 235, 0.5); -} - -.custom-select:focus::-ms-value { - color: #495057; - background-color: #fff; -} - -.custom-select[multiple], .custom-select[size]:not([size="1"]) { - height: auto; - padding-right: 0.75rem; - background-image: none; -} - -.custom-select:disabled { - color: #868e96; - background-color: #e9ecef; -} - -.custom-select::-ms-expand { - opacity: 0; -} - -.custom-select-sm { - height: calc(1.8125rem + 2px); - padding-top: 0.5rem; - padding-bottom: 0.5rem; - font-size: 75%; -} - -.custom-select-lg { - height: calc(2.6875rem + 2px); - padding-top: 0.5rem; - padding-bottom: 0.5rem; - font-size: 125%; -} - -.custom-file { - position: relative; - display: inline-block; - width: 100%; - height: 2.375rem; - margin-bottom: 0; -} - -.custom-file-input { - position: relative; - z-index: 2; - width: 100%; - height: 2.375rem; - margin: 0; - opacity: 0; -} - -.custom-file-input:focus ~ .custom-file-label { - border-color: #1991eb; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.custom-file-input:focus ~ .custom-file-label::after { - border-color: #1991eb; -} - -.custom-file-input:lang(en) ~ .custom-file-label::after { - content: "Browse"; -} - -.custom-file-label { - position: absolute; - top: 0; - right: 0; - left: 0; - z-index: 1; - height: 2.375rem; - padding: 0.375rem 0.75rem; - line-height: 1.5; - color: #495057; - background-color: #fff; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; -} - -.custom-file-label::after { - position: absolute; - top: 0; - right: 0; - bottom: 0; - z-index: 3; - display: block; - height: calc(2.375rem - 1px * 2); - padding: 0.375rem 0.75rem; - line-height: 1.5; - color: #495057; - content: "Browse"; - background-color: #fbfbfc; - border-left: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 0 3px 3px 0; -} - -.custom-range { - width: 100%; - padding-left: 0; - background-color: transparent; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; -} - -.custom-range:focus { - outline: none; -} - -.custom-range::-moz-focus-outer { - border: 0; -} - -.custom-range::-webkit-slider-thumb { - width: 1rem; - height: 1rem; - margin-top: -0.25rem; - background-color: #467fcf; - border: 0; - border-radius: 1rem; - -webkit-appearance: none; - appearance: none; -} - -.custom-range::-webkit-slider-thumb:focus { - outline: none; - box-shadow: 0 0 0 1px #f5f7fb, 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.custom-range::-webkit-slider-thumb:active { - background-color: #d4e1f4; -} - -.custom-range::-webkit-slider-runnable-track { - width: 100%; - height: 0.5rem; - color: transparent; - cursor: pointer; - background-color: #dee2e6; - border-color: transparent; - border-radius: 1rem; -} - -.custom-range::-moz-range-thumb { - width: 1rem; - height: 1rem; - background-color: #467fcf; - border: 0; - border-radius: 1rem; - -moz-appearance: none; - appearance: none; -} - -.custom-range::-moz-range-thumb:focus { - outline: none; - box-shadow: 0 0 0 1px #f5f7fb, 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.custom-range::-moz-range-thumb:active { - background-color: #d4e1f4; -} - -.custom-range::-moz-range-track { - width: 100%; - height: 0.5rem; - color: transparent; - cursor: pointer; - background-color: #dee2e6; - border-color: transparent; - border-radius: 1rem; -} - -.custom-range::-ms-thumb { - width: 1rem; - height: 1rem; - background-color: #467fcf; - border: 0; - border-radius: 1rem; - appearance: none; -} - -.custom-range::-ms-thumb:focus { - outline: none; - box-shadow: 0 0 0 1px #f5f7fb, 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.custom-range::-ms-thumb:active { - background-color: #d4e1f4; -} - -.custom-range::-ms-track { - width: 100%; - height: 0.5rem; - color: transparent; - cursor: pointer; - background-color: transparent; - border-color: transparent; - border-width: 0.5rem; -} - -.custom-range::-ms-fill-lower { - background-color: #dee2e6; - border-radius: 1rem; -} - -.custom-range::-ms-fill-upper { - margin-right: 15px; - background-color: #dee2e6; - border-radius: 1rem; -} - -.nav { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - padding-left: 0; - margin-bottom: 0; - list-style: none; -} - -.nav-link { - display: block; - padding: 0.5rem 1rem; -} - -.nav-link:hover, .nav-link:focus { - text-decoration: none; -} - -.nav-link.disabled { - color: #868e96; -} - -.nav-tabs { - border-bottom: 1px solid #dee2e6; -} - -.nav-tabs .nav-item { - margin-bottom: -1px; -} - -.nav-tabs .nav-link { - border: 1px solid transparent; - border-top-left-radius: 3px; - border-top-right-radius: 3px; -} - -.nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus { - border-color: #e9ecef #e9ecef #dee2e6; -} - -.nav-tabs .nav-link.disabled { - color: #868e96; - background-color: transparent; - border-color: transparent; -} - -.nav-tabs .nav-link.active, -.nav-tabs .nav-item.show .nav-link { - color: #495057; - background-color: transparent; - border-color: #dee2e6 #dee2e6 transparent; -} - -.nav-tabs .dropdown-menu { - margin-top: -1px; - border-top-left-radius: 0; - border-top-right-radius: 0; -} - -.nav-pills .nav-link { - border-radius: 3px; -} - -.nav-pills .nav-link.active, -.nav-pills .show > .nav-link { - color: #fff; - background-color: #467fcf; -} - -.nav-fill .nav-item { - -ms-flex: 1 1 auto; - flex: 1 1 auto; - text-align: center; -} - -.nav-justified .nav-item { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - text-align: center; -} - -.tab-content > .tab-pane { - display: none; -} - -.tab-content > .active { - display: block; -} - -.navbar { - position: relative; - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: justify; - justify-content: space-between; - padding: 0.5rem 1rem; -} - -.navbar > .container, -.navbar > .container-fluid { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: justify; - justify-content: space-between; -} - -.navbar-brand { - display: inline-block; - padding-top: 0.359375rem; - padding-bottom: 0.359375rem; - margin-right: 1rem; - font-size: 1.125rem; - line-height: inherit; - white-space: nowrap; -} - -.navbar-brand:hover, .navbar-brand:focus { - text-decoration: none; -} - -.navbar-nav { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - padding-left: 0; - margin-bottom: 0; - list-style: none; -} - -.navbar-nav .nav-link { - padding-right: 0; - padding-left: 0; -} - -.navbar-nav .dropdown-menu { - position: static; - float: none; -} - -.navbar-text { - display: inline-block; - padding-top: 0.5rem; - padding-bottom: 0.5rem; -} - -.navbar-collapse { - -ms-flex-preferred-size: 100%; - flex-basis: 100%; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-align: center; - align-items: center; -} - -.navbar-toggler { - padding: 0.25rem 0.75rem; - font-size: 1.125rem; - line-height: 1; - background-color: transparent; - border: 1px solid transparent; - border-radius: 3px; -} - -.navbar-toggler:hover, .navbar-toggler:focus { - text-decoration: none; -} - -.navbar-toggler:not(:disabled):not(.disabled) { - cursor: pointer; -} - -.navbar-toggler-icon { - display: inline-block; - width: 1.5em; - height: 1.5em; - vertical-align: middle; - content: ""; - background: no-repeat center center; - background-size: 100% 100%; -} - -@media (max-width: 575.98px) { - .navbar-expand-sm > .container, - .navbar-expand-sm > .container-fluid { - padding-right: 0; - padding-left: 0; - } -} - -@media (min-width: 576px) { - .navbar-expand-sm { - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -ms-flex-pack: start; - justify-content: flex-start; - } - .navbar-expand-sm .navbar-nav { - -ms-flex-direction: row; - flex-direction: row; - } - .navbar-expand-sm .navbar-nav .dropdown-menu { - position: absolute; - } - .navbar-expand-sm .navbar-nav .nav-link { - padding-right: 0.5rem; - padding-left: 0.5rem; - } - .navbar-expand-sm > .container, - .navbar-expand-sm > .container-fluid { - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - } - .navbar-expand-sm .navbar-collapse { - display: -ms-flexbox !important; - display: flex !important; - -ms-flex-preferred-size: auto; - flex-basis: auto; - } - .navbar-expand-sm .navbar-toggler { - display: none; - } -} - -@media (max-width: 767.98px) { - .navbar-expand-md > .container, - .navbar-expand-md > .container-fluid { - padding-right: 0; - padding-left: 0; - } -} - -@media (min-width: 768px) { - .navbar-expand-md { - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -ms-flex-pack: start; - justify-content: flex-start; - } - .navbar-expand-md .navbar-nav { - -ms-flex-direction: row; - flex-direction: row; - } - .navbar-expand-md .navbar-nav .dropdown-menu { - position: absolute; - } - .navbar-expand-md .navbar-nav .nav-link { - padding-right: 0.5rem; - padding-left: 0.5rem; - } - .navbar-expand-md > .container, - .navbar-expand-md > .container-fluid { - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - } - .navbar-expand-md .navbar-collapse { - display: -ms-flexbox !important; - display: flex !important; - -ms-flex-preferred-size: auto; - flex-basis: auto; - } - .navbar-expand-md .navbar-toggler { - display: none; - } -} - -@media (max-width: 991.98px) { - .navbar-expand-lg > .container, - .navbar-expand-lg > .container-fluid { - padding-right: 0; - padding-left: 0; - } -} - -@media (min-width: 992px) { - .navbar-expand-lg { - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -ms-flex-pack: start; - justify-content: flex-start; - } - .navbar-expand-lg .navbar-nav { - -ms-flex-direction: row; - flex-direction: row; - } - .navbar-expand-lg .navbar-nav .dropdown-menu { - position: absolute; - } - .navbar-expand-lg .navbar-nav .nav-link { - padding-right: 0.5rem; - padding-left: 0.5rem; - } - .navbar-expand-lg > .container, - .navbar-expand-lg > .container-fluid { - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - } - .navbar-expand-lg .navbar-collapse { - display: -ms-flexbox !important; - display: flex !important; - -ms-flex-preferred-size: auto; - flex-basis: auto; - } - .navbar-expand-lg .navbar-toggler { - display: none; - } -} - -@media (max-width: 1279.98px) { - .navbar-expand-xl > .container, - .navbar-expand-xl > .container-fluid { - padding-right: 0; - padding-left: 0; - } -} - -@media (min-width: 1280px) { - .navbar-expand-xl { - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -ms-flex-pack: start; - justify-content: flex-start; - } - .navbar-expand-xl .navbar-nav { - -ms-flex-direction: row; - flex-direction: row; - } - .navbar-expand-xl .navbar-nav .dropdown-menu { - position: absolute; - } - .navbar-expand-xl .navbar-nav .nav-link { - padding-right: 0.5rem; - padding-left: 0.5rem; - } - .navbar-expand-xl > .container, - .navbar-expand-xl > .container-fluid { - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - } - .navbar-expand-xl .navbar-collapse { - display: -ms-flexbox !important; - display: flex !important; - -ms-flex-preferred-size: auto; - flex-basis: auto; - } - .navbar-expand-xl .navbar-toggler { - display: none; - } -} - -.navbar-expand { - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -ms-flex-pack: start; - justify-content: flex-start; -} - -.navbar-expand > .container, -.navbar-expand > .container-fluid { - padding-right: 0; - padding-left: 0; -} - -.navbar-expand .navbar-nav { - -ms-flex-direction: row; - flex-direction: row; -} - -.navbar-expand .navbar-nav .dropdown-menu { - position: absolute; -} - -.navbar-expand .navbar-nav .nav-link { - padding-right: 0.5rem; - padding-left: 0.5rem; -} - -.navbar-expand > .container, -.navbar-expand > .container-fluid { - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; -} - -.navbar-expand .navbar-collapse { - display: -ms-flexbox !important; - display: flex !important; - -ms-flex-preferred-size: auto; - flex-basis: auto; -} - -.navbar-expand .navbar-toggler { - display: none; -} - -.navbar-light .navbar-brand { - color: rgba(0, 0, 0, 0.9); -} - -.navbar-light .navbar-brand:hover, .navbar-light .navbar-brand:focus { - color: rgba(0, 0, 0, 0.9); -} - -.navbar-light .navbar-nav .nav-link { - color: rgba(0, 0, 0, 0.5); -} - -.navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus { - color: rgba(0, 0, 0, 0.7); -} - -.navbar-light .navbar-nav .nav-link.disabled { - color: rgba(0, 0, 0, 0.3); -} - -.navbar-light .navbar-nav .show > .nav-link, -.navbar-light .navbar-nav .active > .nav-link, -.navbar-light .navbar-nav .nav-link.show, -.navbar-light .navbar-nav .nav-link.active { - color: rgba(0, 0, 0, 0.9); -} - -.navbar-light .navbar-toggler { - color: rgba(0, 0, 0, 0.5); - border-color: rgba(0, 0, 0, 0.1); -} - -.navbar-light .navbar-toggler-icon { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); -} - -.navbar-light .navbar-text { - color: rgba(0, 0, 0, 0.5); -} - -.navbar-light .navbar-text a { - color: rgba(0, 0, 0, 0.9); -} - -.navbar-light .navbar-text a:hover, .navbar-light .navbar-text a:focus { - color: rgba(0, 0, 0, 0.9); -} - -.navbar-dark .navbar-brand { - color: #fff; -} - -.navbar-dark .navbar-brand:hover, .navbar-dark .navbar-brand:focus { - color: #fff; -} - -.navbar-dark .navbar-nav .nav-link { - color: rgba(255, 255, 255, 0.5); -} - -.navbar-dark .navbar-nav .nav-link:hover, .navbar-dark .navbar-nav .nav-link:focus { - color: rgba(255, 255, 255, 0.75); -} - -.navbar-dark .navbar-nav .nav-link.disabled { - color: rgba(255, 255, 255, 0.25); -} - -.navbar-dark .navbar-nav .show > .nav-link, -.navbar-dark .navbar-nav .active > .nav-link, -.navbar-dark .navbar-nav .nav-link.show, -.navbar-dark .navbar-nav .nav-link.active { - color: #fff; -} - -.navbar-dark .navbar-toggler { - color: rgba(255, 255, 255, 0.5); - border-color: rgba(255, 255, 255, 0.1); -} - -.navbar-dark .navbar-toggler-icon { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); -} - -.navbar-dark .navbar-text { - color: rgba(255, 255, 255, 0.5); -} - -.navbar-dark .navbar-text a { - color: #fff; -} - -.navbar-dark .navbar-text a:hover, .navbar-dark .navbar-text a:focus { - color: #fff; -} - -.card { - position: relative; - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - min-width: 0; - word-wrap: break-word; - background-color: #fff; - background-clip: border-box; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; -} - -.card > hr { - margin-right: 0; - margin-left: 0; -} - -.card > .list-group:first-child .list-group-item:first-child { - border-top-left-radius: 3px; - border-top-right-radius: 3px; -} - -.card > .list-group:last-child .list-group-item:last-child { - border-bottom-right-radius: 3px; - border-bottom-left-radius: 3px; -} - -.card-body { - -ms-flex: 1 1 auto; - flex: 1 1 auto; - padding: 1.5rem; -} - -.card-title { - margin-bottom: 1.5rem; -} - -.card-subtitle { - margin-top: -0.75rem; - margin-bottom: 0; -} - -.card-text:last-child { - margin-bottom: 0; -} - -.card-link:hover { - text-decoration: none; -} - -.card-link + .card-link { - margin-left: 1.5rem; -} - -.card-header { - padding: 1.5rem 1.5rem; - margin-bottom: 0; - background-color: rgba(0, 0, 0, 0.03); - border-bottom: 1px solid rgba(0, 40, 100, 0.12); -} - -.card-header:first-child { - border-radius: calc(3px - 1px) calc(3px - 1px) 0 0; -} - -.card-header + .list-group .list-group-item:first-child { - border-top: 0; -} - -.card-footer { - padding: 1.5rem 1.5rem; - background-color: rgba(0, 0, 0, 0.03); - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.card-footer:last-child { - border-radius: 0 0 calc(3px - 1px) calc(3px - 1px); -} - -.card-header-tabs { - margin-right: -0.75rem; - margin-bottom: -1.5rem; - margin-left: -0.75rem; - border-bottom: 0; -} - -.card-header-pills { - margin-right: -0.75rem; - margin-left: -0.75rem; -} - -.card-img-overlay { - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - padding: 1.25rem; -} - -.card-img { - width: 100%; - border-radius: calc(3px - 1px); -} - -.card-img-top { - width: 100%; - border-top-left-radius: calc(3px - 1px); - border-top-right-radius: calc(3px - 1px); -} - -.card-img-bottom { - width: 100%; - border-bottom-right-radius: calc(3px - 1px); - border-bottom-left-radius: calc(3px - 1px); -} - -.card-deck { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; -} - -.card-deck .card { - margin-bottom: 0.75rem; -} - -@media (min-width: 576px) { - .card-deck { - -ms-flex-flow: row wrap; - flex-flow: row wrap; - margin-right: -0.75rem; - margin-left: -0.75rem; - } - .card-deck .card { - display: -ms-flexbox; - display: flex; - -ms-flex: 1 0 0%; - flex: 1 0 0%; - -ms-flex-direction: column; - flex-direction: column; - margin-right: 0.75rem; - margin-bottom: 0; - margin-left: 0.75rem; - } -} - -.card-group { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; -} - -.card-group > .card { - margin-bottom: 0.75rem; -} - -@media (min-width: 576px) { - .card-group { - -ms-flex-flow: row wrap; - flex-flow: row wrap; - } - .card-group > .card { - -ms-flex: 1 0 0%; - flex: 1 0 0%; - margin-bottom: 0; - } - .card-group > .card + .card { - margin-left: 0; - border-left: 0; - } - .card-group > .card:first-child { - border-top-right-radius: 0; - border-bottom-right-radius: 0; - } - .card-group > .card:first-child .card-img-top, - .card-group > .card:first-child .card-header { - border-top-right-radius: 0; - } - .card-group > .card:first-child .card-img-bottom, - .card-group > .card:first-child .card-footer { - border-bottom-right-radius: 0; - } - .card-group > .card:last-child { - border-top-left-radius: 0; - border-bottom-left-radius: 0; - } - .card-group > .card:last-child .card-img-top, - .card-group > .card:last-child .card-header { - border-top-left-radius: 0; - } - .card-group > .card:last-child .card-img-bottom, - .card-group > .card:last-child .card-footer { - border-bottom-left-radius: 0; - } - .card-group > .card:only-child { - border-radius: 3px; - } - .card-group > .card:only-child .card-img-top, - .card-group > .card:only-child .card-header { - border-top-left-radius: 3px; - border-top-right-radius: 3px; - } - .card-group > .card:only-child .card-img-bottom, - .card-group > .card:only-child .card-footer { - border-bottom-right-radius: 3px; - border-bottom-left-radius: 3px; - } - .card-group > .card:not(:first-child):not(:last-child):not(:only-child) { - border-radius: 0; - } - .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-img-top, - .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-img-bottom, - .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-header, - .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-footer { - border-radius: 0; - } -} - -.card-columns .card { - margin-bottom: 1.5rem; -} - -@media (min-width: 576px) { - .card-columns { - -webkit-column-count: 3; - -moz-column-count: 3; - column-count: 3; - -webkit-column-gap: 1.25rem; - -moz-column-gap: 1.25rem; - column-gap: 1.25rem; - orphans: 1; - widows: 1; - } - .card-columns .card { - display: inline-block; - width: 100%; - } -} - -.accordion .card:not(:first-of-type):not(:last-of-type) { - border-bottom: 0; - border-radius: 0; -} - -.accordion .card:not(:first-of-type) .card-header:first-child { - border-radius: 0; -} - -.accordion .card:first-of-type { - border-bottom: 0; - border-bottom-right-radius: 0; - border-bottom-left-radius: 0; -} - -.accordion .card:last-of-type { - border-top-left-radius: 0; - border-top-right-radius: 0; -} - -.breadcrumb { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - padding: 0.75rem 1rem; - margin-bottom: 1rem; - list-style: none; - background-color: #e9ecef; - border-radius: 3px; -} - -.breadcrumb-item + .breadcrumb-item { - padding-left: 0.5rem; -} - -.breadcrumb-item + .breadcrumb-item::before { - display: inline-block; - padding-right: 0.5rem; - color: #868e96; - content: "/"; -} - -.breadcrumb-item + .breadcrumb-item:hover::before { - text-decoration: underline; -} - -.breadcrumb-item + .breadcrumb-item:hover::before { - text-decoration: none; -} - -.breadcrumb-item.active { - color: #868e96; -} - -.pagination { - display: -ms-flexbox; - display: flex; - padding-left: 0; - list-style: none; - border-radius: 3px; -} - -.page-link { - position: relative; - display: block; - padding: 0.5rem 0.75rem; - margin-left: -1px; - line-height: 1.25; - color: #495057; - background-color: #fff; - border: 1px solid #dee2e6; -} - -.page-link:hover { - z-index: 2; - color: #295a9f; - text-decoration: none; - background-color: #e9ecef; - border-color: #dee2e6; -} - -.page-link:focus { - z-index: 2; - outline: 0; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.page-link:not(:disabled):not(.disabled) { - cursor: pointer; -} - -.page-item:first-child .page-link { - margin-left: 0; - border-top-left-radius: 3px; - border-bottom-left-radius: 3px; -} - -.page-item:last-child .page-link { - border-top-right-radius: 3px; - border-bottom-right-radius: 3px; -} - -.page-item.active .page-link { - z-index: 1; - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.page-item.disabled .page-link { - color: #ced4da; - pointer-events: none; - cursor: auto; - background-color: #fff; - border-color: #dee2e6; -} - -.pagination-lg .page-link { - padding: 0.75rem 1.5rem; - font-size: 1.125rem; - line-height: 1.5; -} - -.pagination-lg .page-item:first-child .page-link { - border-top-left-radius: 3px; - border-bottom-left-radius: 3px; -} - -.pagination-lg .page-item:last-child .page-link { - border-top-right-radius: 3px; - border-bottom-right-radius: 3px; -} - -.pagination-sm .page-link { - padding: 0.25rem 0.5rem; - font-size: 0.875rem; - line-height: 1.5; -} - -.pagination-sm .page-item:first-child .page-link { - border-top-left-radius: 3px; - border-bottom-left-radius: 3px; -} - -.pagination-sm .page-item:last-child .page-link { - border-top-right-radius: 3px; - border-bottom-right-radius: 3px; -} - -.badge { - display: inline-block; - padding: 0.25em 0.4em; - font-size: 75%; - font-weight: 600; - line-height: 1; - text-align: center; - white-space: nowrap; - vertical-align: baseline; - border-radius: 3px; -} - -.badge:empty { - display: none; -} - -.btn .badge { - position: relative; - top: -1px; -} - -.badge-pill { - padding-right: 0.6em; - padding-left: 0.6em; - border-radius: 10rem; -} - -.badge-primary { - color: #fff; - background-color: #467fcf; -} - -.badge-primary[href]:hover, .badge-primary[href]:focus { - color: #fff; - text-decoration: none; - background-color: #2f66b3; -} - -.badge-secondary { - color: #fff; - background-color: #868e96; -} - -.badge-secondary[href]:hover, .badge-secondary[href]:focus { - color: #fff; - text-decoration: none; - background-color: #6c757d; -} - -.badge-success { - color: #fff; - background-color: #5eba00; -} - -.badge-success[href]:hover, .badge-success[href]:focus { - color: #fff; - text-decoration: none; - background-color: #448700; -} - -.badge-info { - color: #fff; - background-color: #45aaf2; -} - -.badge-info[href]:hover, .badge-info[href]:focus { - color: #fff; - text-decoration: none; - background-color: #1594ef; -} - -.badge-warning { - color: #fff; - background-color: #f1c40f; -} - -.badge-warning[href]:hover, .badge-warning[href]:focus { - color: #fff; - text-decoration: none; - background-color: #c29d0b; -} - -.badge-danger { - color: #fff; - background-color: #cd201f; -} - -.badge-danger[href]:hover, .badge-danger[href]:focus { - color: #fff; - text-decoration: none; - background-color: #a11918; -} - -.badge-light { - color: #495057; - background-color: #f8f9fa; -} - -.badge-light[href]:hover, .badge-light[href]:focus { - color: #495057; - text-decoration: none; - background-color: #dae0e5; -} - -.badge-dark { - color: #fff; - background-color: #343a40; -} - -.badge-dark[href]:hover, .badge-dark[href]:focus { - color: #fff; - text-decoration: none; - background-color: #1d2124; -} - -.jumbotron { - padding: 2rem 1rem; - margin-bottom: 2rem; - background-color: #e9ecef; - border-radius: 3px; -} - -@media (min-width: 576px) { - .jumbotron { - padding: 4rem 2rem; - } -} - -.jumbotron-fluid { - padding-right: 0; - padding-left: 0; - border-radius: 0; -} - -.alert { - position: relative; - padding: 0.75rem 1.25rem; - margin-bottom: 1rem; - border: 1px solid transparent; - border-radius: 3px; -} - -.alert-heading { - color: inherit; -} - -.alert-link { - font-weight: 600; -} - -.alert-dismissible { - padding-right: 3.90625rem; -} - -.alert-dismissible .close { - position: absolute; - top: 0; - right: 0; - padding: 0.75rem 1.25rem; - color: inherit; -} - -.alert-primary { - color: #24426c; - background-color: #dae5f5; - border-color: #cbdbf2; -} - -.alert-primary hr { - border-top-color: #b7cded; -} - -.alert-primary .alert-link { - color: #172b46; -} - -.alert-secondary { - color: #464a4e; - background-color: #e7e8ea; - border-color: #dddfe2; -} - -.alert-secondary hr { - border-top-color: #cfd2d6; -} - -.alert-secondary .alert-link { - color: #2e3133; -} - -.alert-success { - color: #316100; - background-color: #dff1cc; - border-color: #d2ecb8; -} - -.alert-success hr { - border-top-color: #c5e7a4; -} - -.alert-success .alert-link { - color: #172e00; -} - -.alert-info { - color: #24587e; - background-color: #daeefc; - border-color: #cbe7fb; -} - -.alert-info hr { - border-top-color: #b3dcf9; -} - -.alert-info .alert-link { - color: #193c56; -} - -.alert-warning { - color: #7d6608; - background-color: #fcf3cf; - border-color: #fbeebc; -} - -.alert-warning hr { - border-top-color: #fae8a4; -} - -.alert-warning .alert-link { - color: #4d3f05; -} - -.alert-danger { - color: #6b1110; - background-color: #f5d2d2; - border-color: #f1c1c0; -} - -.alert-danger hr { - border-top-color: #ecacab; -} - -.alert-danger .alert-link { - color: #3f0a09; -} - -.alert-light { - color: #818182; - background-color: #fefefe; - border-color: #fdfdfe; -} - -.alert-light hr { - border-top-color: #ececf6; -} - -.alert-light .alert-link { - color: #686868; -} - -.alert-dark { - color: #1b1e21; - background-color: #d6d8d9; - border-color: #c6c8ca; -} - -.alert-dark hr { - border-top-color: #b9bbbe; -} - -.alert-dark .alert-link { - color: #040505; -} - -@-webkit-keyframes progress-bar-stripes { - from { - background-position: 1rem 0; - } - to { - background-position: 0 0; - } -} - -@keyframes progress-bar-stripes { - from { - background-position: 1rem 0; - } - to { - background-position: 0 0; - } -} - -.progress { - display: -ms-flexbox; - display: flex; - height: 1rem; - overflow: hidden; - font-size: 0.703125rem; - background-color: #e9ecef; - border-radius: 3px; -} - -.progress-bar { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - -ms-flex-pack: center; - justify-content: center; - color: #fff; - text-align: center; - white-space: nowrap; - background-color: #467fcf; - transition: width 0.6s ease; -} - -@media screen and (prefers-reduced-motion: reduce) { - .progress-bar { - transition: none; - } -} - -.progress-bar-striped { - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-size: 1rem 1rem; -} - -.progress-bar-animated { - -webkit-animation: progress-bar-stripes 1s linear infinite; - animation: progress-bar-stripes 1s linear infinite; -} - -.media { - display: -ms-flexbox; - display: flex; - -ms-flex-align: start; - align-items: flex-start; -} - -.media-body { - -ms-flex: 1; - flex: 1; -} - -.list-group { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - padding-left: 0; - margin-bottom: 0; -} - -.list-group-item-action { - width: 100%; - color: #495057; - text-align: inherit; -} - -.list-group-item-action:hover, .list-group-item-action:focus { - color: #495057; - text-decoration: none; - background-color: #f8f9fa; -} - -.list-group-item-action:active { - color: #495057; - background-color: #e9ecef; -} - -.list-group-item { - position: relative; - display: block; - padding: 0.75rem 1.25rem; - margin-bottom: -1px; - background-color: #fff; - border: 1px solid rgba(0, 40, 100, 0.12); -} - -.list-group-item:first-child { - border-top-left-radius: 3px; - border-top-right-radius: 3px; -} - -.list-group-item:last-child { - margin-bottom: 0; - border-bottom-right-radius: 3px; - border-bottom-left-radius: 3px; -} - -.list-group-item:hover, .list-group-item:focus { - z-index: 1; - text-decoration: none; -} - -.list-group-item.disabled, .list-group-item:disabled { - color: #868e96; - background-color: #fff; -} - -.list-group-item.active { - z-index: 2; - color: #467fcf; - background-color: #f8fafd; - border-color: rgba(0, 40, 100, 0.12); -} - -.list-group-flush .list-group-item { - border-right: 0; - border-left: 0; - border-radius: 0; -} - -.list-group-flush:first-child .list-group-item:first-child { - border-top: 0; -} - -.list-group-flush:last-child .list-group-item:last-child { - border-bottom: 0; -} - -.list-group-item-primary { - color: #24426c; - background-color: #cbdbf2; -} - -.list-group-item-primary.list-group-item-action:hover, .list-group-item-primary.list-group-item-action:focus { - color: #24426c; - background-color: #b7cded; -} - -.list-group-item-primary.list-group-item-action.active { - color: #fff; - background-color: #24426c; - border-color: #24426c; -} - -.list-group-item-secondary { - color: #464a4e; - background-color: #dddfe2; -} - -.list-group-item-secondary.list-group-item-action:hover, .list-group-item-secondary.list-group-item-action:focus { - color: #464a4e; - background-color: #cfd2d6; -} - -.list-group-item-secondary.list-group-item-action.active { - color: #fff; - background-color: #464a4e; - border-color: #464a4e; -} - -.list-group-item-success { - color: #316100; - background-color: #d2ecb8; -} - -.list-group-item-success.list-group-item-action:hover, .list-group-item-success.list-group-item-action:focus { - color: #316100; - background-color: #c5e7a4; -} - -.list-group-item-success.list-group-item-action.active { - color: #fff; - background-color: #316100; - border-color: #316100; -} - -.list-group-item-info { - color: #24587e; - background-color: #cbe7fb; -} - -.list-group-item-info.list-group-item-action:hover, .list-group-item-info.list-group-item-action:focus { - color: #24587e; - background-color: #b3dcf9; -} - -.list-group-item-info.list-group-item-action.active { - color: #fff; - background-color: #24587e; - border-color: #24587e; -} - -.list-group-item-warning { - color: #7d6608; - background-color: #fbeebc; -} - -.list-group-item-warning.list-group-item-action:hover, .list-group-item-warning.list-group-item-action:focus { - color: #7d6608; - background-color: #fae8a4; -} - -.list-group-item-warning.list-group-item-action.active { - color: #fff; - background-color: #7d6608; - border-color: #7d6608; -} - -.list-group-item-danger { - color: #6b1110; - background-color: #f1c1c0; -} - -.list-group-item-danger.list-group-item-action:hover, .list-group-item-danger.list-group-item-action:focus { - color: #6b1110; - background-color: #ecacab; -} - -.list-group-item-danger.list-group-item-action.active { - color: #fff; - background-color: #6b1110; - border-color: #6b1110; -} - -.list-group-item-light { - color: #818182; - background-color: #fdfdfe; -} - -.list-group-item-light.list-group-item-action:hover, .list-group-item-light.list-group-item-action:focus { - color: #818182; - background-color: #ececf6; -} - -.list-group-item-light.list-group-item-action.active { - color: #fff; - background-color: #818182; - border-color: #818182; -} - -.list-group-item-dark { - color: #1b1e21; - background-color: #c6c8ca; -} - -.list-group-item-dark.list-group-item-action:hover, .list-group-item-dark.list-group-item-action:focus { - color: #1b1e21; - background-color: #b9bbbe; -} - -.list-group-item-dark.list-group-item-action.active { - color: #fff; - background-color: #1b1e21; - border-color: #1b1e21; -} - -.close { - float: right; - font-size: 1.40625rem; - font-weight: 700; - line-height: 1; - color: #000; - text-shadow: 0 1px 0 #fff; - opacity: .5; -} - -.close:hover, .close:focus { - color: #000; - text-decoration: none; - opacity: .75; -} - -.close:not(:disabled):not(.disabled) { - cursor: pointer; -} - -button.close { - padding: 0; - background-color: transparent; - border: 0; - -webkit-appearance: none; -} - -.modal-open { - overflow: hidden; -} - -.modal { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 1050; - display: none; - overflow: hidden; - outline: 0; -} - -.modal-open .modal { - overflow-x: hidden; - overflow-y: auto; -} - -.modal-dialog { - position: relative; - width: auto; - margin: 0.5rem; - pointer-events: none; -} - -.modal.fade .modal-dialog { - transition: -webkit-transform 0.3s ease-out; - transition: transform 0.3s ease-out; - transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out; - -webkit-transform: translate(0, -25%); - transform: translate(0, -25%); -} - -@media screen and (prefers-reduced-motion: reduce) { - .modal.fade .modal-dialog { - transition: none; - } -} - -.modal.show .modal-dialog { - -webkit-transform: translate(0, 0); - transform: translate(0, 0); -} - -.modal-dialog-centered { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - min-height: calc(100% - (0.5rem * 2)); -} - -.modal-content { - position: relative; - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - width: 100%; - pointer-events: auto; - background-color: #fff; - background-clip: padding-box; - border: 1px solid rgba(0, 0, 0, 0.2); - border-radius: 3px; - outline: 0; -} - -.modal-backdrop { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 1040; - background-color: #000; -} - -.modal-backdrop.fade { - opacity: 0; -} - -.modal-backdrop.show { - opacity: 0.5; -} - -.modal-header { - display: -ms-flexbox; - display: flex; - -ms-flex-align: start; - align-items: flex-start; - -ms-flex-pack: justify; - justify-content: space-between; - padding: 1rem; - border-bottom: 1px solid #e9ecef; - border-top-left-radius: 3px; - border-top-right-radius: 3px; -} - -.modal-header .close { - padding: 1rem; - margin: -1rem -1rem -1rem auto; -} - -.modal-title { - margin-bottom: 0; - line-height: 1.5; -} - -.modal-body { - position: relative; - -ms-flex: 1 1 auto; - flex: 1 1 auto; - padding: 1rem; -} - -.modal-footer { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: end; - justify-content: flex-end; - padding: 1rem; - border-top: 1px solid #e9ecef; -} - -.modal-footer > :not(:first-child) { - margin-left: .25rem; -} - -.modal-footer > :not(:last-child) { - margin-right: .25rem; -} - -.modal-scrollbar-measure { - position: absolute; - top: -9999px; - width: 50px; - height: 50px; - overflow: scroll; -} - -@media (min-width: 576px) { - .modal-dialog { - max-width: 500px; - margin: 1.75rem auto; - } - .modal-dialog-centered { - min-height: calc(100% - (1.75rem * 2)); - } - .modal-sm { - max-width: 300px; - } -} - -@media (min-width: 992px) { - .modal-lg { - max-width: 800px; - } -} - -.tooltip { - position: absolute; - z-index: 1070; - display: block; - margin: 0; - font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; - font-style: normal; - font-weight: 400; - line-height: 1.5; - text-align: left; - text-align: start; - text-decoration: none; - text-shadow: none; - text-transform: none; - letter-spacing: normal; - word-break: normal; - word-spacing: normal; - white-space: normal; - line-break: auto; - font-size: 0.875rem; - word-wrap: break-word; - opacity: 0; -} - -.tooltip.show { - opacity: 0.9; -} - -.tooltip .arrow { - position: absolute; - display: block; - width: 0.8rem; - height: 0.4rem; -} - -.tooltip .arrow::before { - position: absolute; - content: ""; - border-color: transparent; - border-style: solid; -} - -.bs-tooltip-top, .bs-tooltip-auto[x-placement^="top"] { - padding: 0.4rem 0; -} - -.bs-tooltip-top .arrow, .bs-tooltip-auto[x-placement^="top"] .arrow { - bottom: 0; -} - -.bs-tooltip-top .arrow::before, .bs-tooltip-auto[x-placement^="top"] .arrow::before { - top: 0; - border-width: 0.4rem 0.4rem 0; - border-top-color: #000; -} - -.bs-tooltip-right, .bs-tooltip-auto[x-placement^="right"] { - padding: 0 0.4rem; -} - -.bs-tooltip-right .arrow, .bs-tooltip-auto[x-placement^="right"] .arrow { - left: 0; - width: 0.4rem; - height: 0.8rem; -} - -.bs-tooltip-right .arrow::before, .bs-tooltip-auto[x-placement^="right"] .arrow::before { - right: 0; - border-width: 0.4rem 0.4rem 0.4rem 0; - border-right-color: #000; -} - -.bs-tooltip-bottom, .bs-tooltip-auto[x-placement^="bottom"] { - padding: 0.4rem 0; -} - -.bs-tooltip-bottom .arrow, .bs-tooltip-auto[x-placement^="bottom"] .arrow { - top: 0; -} - -.bs-tooltip-bottom .arrow::before, .bs-tooltip-auto[x-placement^="bottom"] .arrow::before { - bottom: 0; - border-width: 0 0.4rem 0.4rem; - border-bottom-color: #000; -} - -.bs-tooltip-left, .bs-tooltip-auto[x-placement^="left"] { - padding: 0 0.4rem; -} - -.bs-tooltip-left .arrow, .bs-tooltip-auto[x-placement^="left"] .arrow { - right: 0; - width: 0.4rem; - height: 0.8rem; -} - -.bs-tooltip-left .arrow::before, .bs-tooltip-auto[x-placement^="left"] .arrow::before { - left: 0; - border-width: 0.4rem 0 0.4rem 0.4rem; - border-left-color: #000; -} - -.tooltip-inner { - max-width: 200px; - padding: 0.25rem 0.5rem; - color: #fff; - text-align: center; - background-color: #000; - border-radius: 3px; -} - -.popover { - position: absolute; - top: 0; - left: 0; - z-index: 1060; - display: block; - max-width: 276px; - font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; - font-style: normal; - font-weight: 400; - line-height: 1.5; - text-align: left; - text-align: start; - text-decoration: none; - text-shadow: none; - text-transform: none; - letter-spacing: normal; - word-break: normal; - word-spacing: normal; - white-space: normal; - line-break: auto; - font-size: 0.875rem; - word-wrap: break-word; - background-color: #fff; - background-clip: padding-box; - border: 1px solid #dee3eb; - border-radius: 3px; -} - -.popover .arrow { - position: absolute; - display: block; - width: 0.5rem; - height: 0.5rem; - margin: 0 3px; -} - -.popover .arrow::before, .popover .arrow::after { - position: absolute; - display: block; - content: ""; - border-color: transparent; - border-style: solid; -} - -.bs-popover-top, .bs-popover-auto[x-placement^="top"] { - margin-bottom: 0.5rem; -} - -.bs-popover-top .arrow, .bs-popover-auto[x-placement^="top"] .arrow { - bottom: calc((0.5rem + 1px) * -1); -} - -.bs-popover-top .arrow::before, .bs-popover-auto[x-placement^="top"] .arrow::before, -.bs-popover-top .arrow::after, -.bs-popover-auto[x-placement^="top"] .arrow::after { - border-width: 0.5rem 0.25rem 0; -} - -.bs-popover-top .arrow::before, .bs-popover-auto[x-placement^="top"] .arrow::before { - bottom: 0; - border-top-color: #dee3eb; -} - - -.bs-popover-top .arrow::after, -.bs-popover-auto[x-placement^="top"] .arrow::after { - bottom: 1px; - border-top-color: #fff; -} - -.bs-popover-right, .bs-popover-auto[x-placement^="right"] { - margin-left: 0.5rem; -} - -.bs-popover-right .arrow, .bs-popover-auto[x-placement^="right"] .arrow { - left: calc((0.5rem + 1px) * -1); - width: 0.5rem; - height: 0.5rem; - margin: 3px 0; -} - -.bs-popover-right .arrow::before, .bs-popover-auto[x-placement^="right"] .arrow::before, -.bs-popover-right .arrow::after, -.bs-popover-auto[x-placement^="right"] .arrow::after { - border-width: 0.25rem 0.5rem 0.25rem 0; -} - -.bs-popover-right .arrow::before, .bs-popover-auto[x-placement^="right"] .arrow::before { - left: 0; - border-right-color: #dee3eb; -} - - -.bs-popover-right .arrow::after, -.bs-popover-auto[x-placement^="right"] .arrow::after { - left: 1px; - border-right-color: #fff; -} - -.bs-popover-bottom, .bs-popover-auto[x-placement^="bottom"] { - margin-top: 0.5rem; -} - -.bs-popover-bottom .arrow, .bs-popover-auto[x-placement^="bottom"] .arrow { - top: calc((0.5rem + 1px) * -1); -} - -.bs-popover-bottom .arrow::before, .bs-popover-auto[x-placement^="bottom"] .arrow::before, -.bs-popover-bottom .arrow::after, -.bs-popover-auto[x-placement^="bottom"] .arrow::after { - border-width: 0 0.25rem 0.5rem 0.25rem; -} - -.bs-popover-bottom .arrow::before, .bs-popover-auto[x-placement^="bottom"] .arrow::before { - top: 0; - border-bottom-color: #dee3eb; -} - - -.bs-popover-bottom .arrow::after, -.bs-popover-auto[x-placement^="bottom"] .arrow::after { - top: 1px; - border-bottom-color: #fff; -} - -.bs-popover-bottom .popover-header::before, .bs-popover-auto[x-placement^="bottom"] .popover-header::before { - position: absolute; - top: 0; - left: 50%; - display: block; - width: 0.5rem; - margin-left: -0.25rem; - content: ""; - border-bottom: 1px solid #f7f7f7; -} - -.bs-popover-left, .bs-popover-auto[x-placement^="left"] { - margin-right: 0.5rem; -} - -.bs-popover-left .arrow, .bs-popover-auto[x-placement^="left"] .arrow { - right: calc((0.5rem + 1px) * -1); - width: 0.5rem; - height: 0.5rem; - margin: 3px 0; -} - -.bs-popover-left .arrow::before, .bs-popover-auto[x-placement^="left"] .arrow::before, -.bs-popover-left .arrow::after, -.bs-popover-auto[x-placement^="left"] .arrow::after { - border-width: 0.25rem 0 0.25rem 0.5rem; -} - -.bs-popover-left .arrow::before, .bs-popover-auto[x-placement^="left"] .arrow::before { - right: 0; - border-left-color: #dee3eb; -} - - -.bs-popover-left .arrow::after, -.bs-popover-auto[x-placement^="left"] .arrow::after { - right: 1px; - border-left-color: #fff; -} - -.popover-header { - padding: 0.5rem 0.75rem; - margin-bottom: 0; - font-size: 0.9375rem; - color: inherit; - background-color: #f7f7f7; - border-bottom: 1px solid #ebebeb; - border-top-left-radius: calc(3px - 1px); - border-top-right-radius: calc(3px - 1px); -} - -.popover-header:empty { - display: none; -} - -.popover-body { - padding: 0.75rem 1rem; - color: #6e7687; -} - -.carousel { - position: relative; -} - -.carousel-inner { - position: relative; - width: 100%; - overflow: hidden; -} - -.carousel-item { - position: relative; - display: none; - -ms-flex-align: center; - align-items: center; - width: 100%; - transition: -webkit-transform 0.6s ease; - transition: transform 0.6s ease; - transition: transform 0.6s ease, -webkit-transform 0.6s ease; - -webkit-backface-visibility: hidden; - backface-visibility: hidden; - -webkit-perspective: 1000px; - perspective: 1000px; -} - -@media screen and (prefers-reduced-motion: reduce) { - .carousel-item { - transition: none; - } -} - -.carousel-item.active, -.carousel-item-next, -.carousel-item-prev { - display: block; -} - -.carousel-item-next, -.carousel-item-prev { - position: absolute; - top: 0; -} - -.carousel-item-next.carousel-item-left, -.carousel-item-prev.carousel-item-right { - -webkit-transform: translateX(0); - transform: translateX(0); -} - -@supports ((-webkit-transform-style: preserve-3d) or (transform-style: preserve-3d)) { - .carousel-item-next.carousel-item-left, - .carousel-item-prev.carousel-item-right { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); - } -} - -.carousel-item-next, -.active.carousel-item-right { - -webkit-transform: translateX(100%); - transform: translateX(100%); -} - -@supports ((-webkit-transform-style: preserve-3d) or (transform-style: preserve-3d)) { - .carousel-item-next, - .active.carousel-item-right { - -webkit-transform: translate3d(100%, 0, 0); - transform: translate3d(100%, 0, 0); - } -} - -.carousel-item-prev, -.active.carousel-item-left { - -webkit-transform: translateX(-100%); - transform: translateX(-100%); -} - -@supports ((-webkit-transform-style: preserve-3d) or (transform-style: preserve-3d)) { - .carousel-item-prev, - .active.carousel-item-left { - -webkit-transform: translate3d(-100%, 0, 0); - transform: translate3d(-100%, 0, 0); - } -} - -.carousel-fade .carousel-item { - opacity: 0; - transition-duration: .6s; - transition-property: opacity; -} - -.carousel-fade .carousel-item.active, -.carousel-fade .carousel-item-next.carousel-item-left, -.carousel-fade .carousel-item-prev.carousel-item-right { - opacity: 1; -} - -.carousel-fade .active.carousel-item-left, -.carousel-fade .active.carousel-item-right { - opacity: 0; -} - -.carousel-fade .carousel-item-next, -.carousel-fade .carousel-item-prev, -.carousel-fade .carousel-item.active, -.carousel-fade .active.carousel-item-left, -.carousel-fade .active.carousel-item-prev { - -webkit-transform: translateX(0); - transform: translateX(0); -} - -@supports ((-webkit-transform-style: preserve-3d) or (transform-style: preserve-3d)) { - .carousel-fade .carousel-item-next, - .carousel-fade .carousel-item-prev, - .carousel-fade .carousel-item.active, - .carousel-fade .active.carousel-item-left, - .carousel-fade .active.carousel-item-prev { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); - } -} - -.carousel-control-prev, -.carousel-control-next { - position: absolute; - top: 0; - bottom: 0; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - width: 15%; - color: #fff; - text-align: center; - opacity: 0.5; -} - -.carousel-control-prev:hover, .carousel-control-prev:focus, -.carousel-control-next:hover, -.carousel-control-next:focus { - color: #fff; - text-decoration: none; - outline: 0; - opacity: .9; -} - -.carousel-control-prev { - left: 0; -} - -.carousel-control-next { - right: 0; -} - -.carousel-control-prev-icon, -.carousel-control-next-icon { - display: inline-block; - width: 20px; - height: 20px; - background: transparent no-repeat center center; - background-size: 100% 100%; -} - -.carousel-control-prev-icon { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E"); -} - -.carousel-control-next-icon { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E"); -} - -.carousel-indicators { - position: absolute; - right: 0; - bottom: 10px; - left: 0; - z-index: 15; - display: -ms-flexbox; - display: flex; - -ms-flex-pack: center; - justify-content: center; - padding-left: 0; - margin-right: 15%; - margin-left: 15%; - list-style: none; -} - -.carousel-indicators li { - position: relative; - -ms-flex: 0 1 auto; - flex: 0 1 auto; - width: 30px; - height: 3px; - margin-right: 3px; - margin-left: 3px; - text-indent: -999px; - background-color: rgba(255, 255, 255, 0.5); -} - -.carousel-indicators li::before { - position: absolute; - top: -10px; - left: 0; - display: inline-block; - width: 100%; - height: 10px; - content: ""; -} - -.carousel-indicators li::after { - position: absolute; - bottom: -10px; - left: 0; - display: inline-block; - width: 100%; - height: 10px; - content: ""; -} - -.carousel-indicators .active { - background-color: #fff; -} - -.carousel-caption { - position: absolute; - right: 15%; - bottom: 20px; - left: 15%; - z-index: 10; - padding-top: 20px; - padding-bottom: 20px; - color: #fff; - text-align: center; -} - -.align-baseline { - vertical-align: baseline !important; -} - -.align-top { - vertical-align: top !important; -} - -.align-middle { - vertical-align: middle !important; -} - -.align-bottom { - vertical-align: bottom !important; -} - -.align-text-bottom { - vertical-align: text-bottom !important; -} - -.align-text-top { - vertical-align: text-top !important; -} - -.bg-primary { - background-color: #467fcf !important; -} - -a.bg-primary:hover, a.bg-primary:focus, -button.bg-primary:hover, -button.bg-primary:focus { - background-color: #2f66b3 !important; -} - -.bg-secondary { - background-color: #868e96 !important; -} - -a.bg-secondary:hover, a.bg-secondary:focus, -button.bg-secondary:hover, -button.bg-secondary:focus { - background-color: #6c757d !important; -} - -.bg-success { - background-color: #5eba00 !important; -} - -a.bg-success:hover, a.bg-success:focus, -button.bg-success:hover, -button.bg-success:focus { - background-color: #448700 !important; -} - -.bg-info { - background-color: #45aaf2 !important; -} - -a.bg-info:hover, a.bg-info:focus, -button.bg-info:hover, -button.bg-info:focus { - background-color: #1594ef !important; -} - -.bg-warning { - background-color: #f1c40f !important; -} - -a.bg-warning:hover, a.bg-warning:focus, -button.bg-warning:hover, -button.bg-warning:focus { - background-color: #c29d0b !important; -} - -.bg-danger { - background-color: #cd201f !important; -} - -a.bg-danger:hover, a.bg-danger:focus, -button.bg-danger:hover, -button.bg-danger:focus { - background-color: #a11918 !important; -} - -.bg-light { - background-color: #f8f9fa !important; -} - -a.bg-light:hover, a.bg-light:focus, -button.bg-light:hover, -button.bg-light:focus { - background-color: #dae0e5 !important; -} - -.bg-dark { - background-color: #343a40 !important; -} - -a.bg-dark:hover, a.bg-dark:focus, -button.bg-dark:hover, -button.bg-dark:focus { - background-color: #1d2124 !important; -} - -.bg-white { - background-color: #fff !important; -} - -.bg-transparent { - background-color: transparent !important; -} - -.border { - border: 1px solid rgba(0, 40, 100, 0.12) !important; -} - -.border-top { - border-top: 1px solid rgba(0, 40, 100, 0.12) !important; -} - -.border-right { - border-right: 1px solid rgba(0, 40, 100, 0.12) !important; -} - -.border-bottom { - border-bottom: 1px solid rgba(0, 40, 100, 0.12) !important; -} - -.border-left { - border-left: 1px solid rgba(0, 40, 100, 0.12) !important; -} - -.border-0 { - border: 0 !important; -} - -.border-top-0 { - border-top: 0 !important; -} - -.border-right-0 { - border-right: 0 !important; -} - -.border-bottom-0 { - border-bottom: 0 !important; -} - -.border-left-0 { - border-left: 0 !important; -} - -.border-primary { - border-color: #467fcf !important; -} - -.border-secondary { - border-color: #868e96 !important; -} - -.border-success { - border-color: #5eba00 !important; -} - -.border-info { - border-color: #45aaf2 !important; -} - -.border-warning { - border-color: #f1c40f !important; -} - -.border-danger { - border-color: #cd201f !important; -} - -.border-light { - border-color: #f8f9fa !important; -} - -.border-dark { - border-color: #343a40 !important; -} - -.border-white { - border-color: #fff !important; -} - -.rounded { - border-radius: 3px !important; -} - -.rounded-top { - border-top-left-radius: 3px !important; - border-top-right-radius: 3px !important; -} - -.rounded-right { - border-top-right-radius: 3px !important; - border-bottom-right-radius: 3px !important; -} - -.rounded-bottom { - border-bottom-right-radius: 3px !important; - border-bottom-left-radius: 3px !important; -} - -.rounded-left { - border-top-left-radius: 3px !important; - border-bottom-left-radius: 3px !important; -} - -.rounded-circle { - border-radius: 50% !important; -} - -.rounded-0 { - border-radius: 0 !important; -} - -.clearfix::after { - display: block; - clear: both; - content: ""; -} - -.d-none { - display: none !important; -} - -.d-inline { - display: inline !important; -} - -.d-inline-block { - display: inline-block !important; -} - -.d-block { - display: block !important; -} - -.d-table { - display: table !important; -} - -.d-table-row { - display: table-row !important; -} - -.d-table-cell { - display: table-cell !important; -} - -.d-flex { - display: -ms-flexbox !important; - display: flex !important; -} - -.d-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; -} - -@media (min-width: 576px) { - .d-sm-none { - display: none !important; - } - .d-sm-inline { - display: inline !important; - } - .d-sm-inline-block { - display: inline-block !important; - } - .d-sm-block { - display: block !important; - } - .d-sm-table { - display: table !important; - } - .d-sm-table-row { - display: table-row !important; - } - .d-sm-table-cell { - display: table-cell !important; - } - .d-sm-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-sm-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media (min-width: 768px) { - .d-md-none { - display: none !important; - } - .d-md-inline { - display: inline !important; - } - .d-md-inline-block { - display: inline-block !important; - } - .d-md-block { - display: block !important; - } - .d-md-table { - display: table !important; - } - .d-md-table-row { - display: table-row !important; - } - .d-md-table-cell { - display: table-cell !important; - } - .d-md-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-md-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media (min-width: 992px) { - .d-lg-none { - display: none !important; - } - .d-lg-inline { - display: inline !important; - } - .d-lg-inline-block { - display: inline-block !important; - } - .d-lg-block { - display: block !important; - } - .d-lg-table { - display: table !important; - } - .d-lg-table-row { - display: table-row !important; - } - .d-lg-table-cell { - display: table-cell !important; - } - .d-lg-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-lg-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media (min-width: 1280px) { - .d-xl-none { - display: none !important; - } - .d-xl-inline { - display: inline !important; - } - .d-xl-inline-block { - display: inline-block !important; - } - .d-xl-block { - display: block !important; - } - .d-xl-table { - display: table !important; - } - .d-xl-table-row { - display: table-row !important; - } - .d-xl-table-cell { - display: table-cell !important; - } - .d-xl-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-xl-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media print { - .d-print-none { - display: none !important; - } - .d-print-inline { - display: inline !important; - } - .d-print-inline-block { - display: inline-block !important; - } - .d-print-block { - display: block !important; - } - .d-print-table { - display: table !important; - } - .d-print-table-row { - display: table-row !important; - } - .d-print-table-cell { - display: table-cell !important; - } - .d-print-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-print-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -.embed-responsive { - position: relative; - display: block; - width: 100%; - padding: 0; - overflow: hidden; -} - -.embed-responsive::before { - display: block; - content: ""; -} - -.embed-responsive .embed-responsive-item, -.embed-responsive iframe, -.embed-responsive embed, -.embed-responsive object, -.embed-responsive video { - position: absolute; - top: 0; - bottom: 0; - left: 0; - width: 100%; - height: 100%; - border: 0; -} - -.embed-responsive-21by9::before { - padding-top: 42.85714286%; -} - -.embed-responsive-16by9::before { - padding-top: 56.25%; -} - -.embed-responsive-4by3::before { - padding-top: 75%; -} - -.embed-responsive-1by1::before { - padding-top: 100%; -} - -.flex-row { - -ms-flex-direction: row !important; - flex-direction: row !important; -} - -.flex-column { - -ms-flex-direction: column !important; - flex-direction: column !important; -} - -.flex-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; -} - -.flex-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; -} - -.flex-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; -} - -.flex-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; -} - -.flex-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; -} - -.flex-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; -} - -.flex-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; -} - -.flex-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; -} - -.flex-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; -} - -.flex-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; -} - -.justify-content-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; -} - -.justify-content-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; -} - -.justify-content-center { - -ms-flex-pack: center !important; - justify-content: center !important; -} - -.justify-content-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; -} - -.justify-content-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; -} - -.align-items-start { - -ms-flex-align: start !important; - align-items: flex-start !important; -} - -.align-items-end { - -ms-flex-align: end !important; - align-items: flex-end !important; -} - -.align-items-center { - -ms-flex-align: center !important; - align-items: center !important; -} - -.align-items-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; -} - -.align-items-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; -} - -.align-content-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; -} - -.align-content-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; -} - -.align-content-center { - -ms-flex-line-pack: center !important; - align-content: center !important; -} - -.align-content-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; -} - -.align-content-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; -} - -.align-content-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; -} - -.align-self-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; -} - -.align-self-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; -} - -.align-self-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; -} - -.align-self-center { - -ms-flex-item-align: center !important; - align-self: center !important; -} - -.align-self-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; -} - -.align-self-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; -} - -@media (min-width: 576px) { - .flex-sm-row { - -ms-flex-direction: row !important; - flex-direction: row !important; - } - .flex-sm-column { - -ms-flex-direction: column !important; - flex-direction: column !important; - } - .flex-sm-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; - } - .flex-sm-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; - } - .flex-sm-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; - } - .flex-sm-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; - } - .flex-sm-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; - } - .flex-sm-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; - } - .flex-sm-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; - } - .flex-sm-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; - } - .flex-sm-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; - } - .flex-sm-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; - } - .justify-content-sm-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; - } - .justify-content-sm-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; - } - .justify-content-sm-center { - -ms-flex-pack: center !important; - justify-content: center !important; - } - .justify-content-sm-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; - } - .justify-content-sm-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; - } - .align-items-sm-start { - -ms-flex-align: start !important; - align-items: flex-start !important; - } - .align-items-sm-end { - -ms-flex-align: end !important; - align-items: flex-end !important; - } - .align-items-sm-center { - -ms-flex-align: center !important; - align-items: center !important; - } - .align-items-sm-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; - } - .align-items-sm-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; - } - .align-content-sm-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; - } - .align-content-sm-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; - } - .align-content-sm-center { - -ms-flex-line-pack: center !important; - align-content: center !important; - } - .align-content-sm-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; - } - .align-content-sm-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; - } - .align-content-sm-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; - } - .align-self-sm-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; - } - .align-self-sm-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; - } - .align-self-sm-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; - } - .align-self-sm-center { - -ms-flex-item-align: center !important; - align-self: center !important; - } - .align-self-sm-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; - } - .align-self-sm-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; - } -} - -@media (min-width: 768px) { - .flex-md-row { - -ms-flex-direction: row !important; - flex-direction: row !important; - } - .flex-md-column { - -ms-flex-direction: column !important; - flex-direction: column !important; - } - .flex-md-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; - } - .flex-md-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; - } - .flex-md-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; - } - .flex-md-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; - } - .flex-md-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; - } - .flex-md-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; - } - .flex-md-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; - } - .flex-md-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; - } - .flex-md-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; - } - .flex-md-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; - } - .justify-content-md-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; - } - .justify-content-md-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; - } - .justify-content-md-center { - -ms-flex-pack: center !important; - justify-content: center !important; - } - .justify-content-md-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; - } - .justify-content-md-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; - } - .align-items-md-start { - -ms-flex-align: start !important; - align-items: flex-start !important; - } - .align-items-md-end { - -ms-flex-align: end !important; - align-items: flex-end !important; - } - .align-items-md-center { - -ms-flex-align: center !important; - align-items: center !important; - } - .align-items-md-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; - } - .align-items-md-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; - } - .align-content-md-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; - } - .align-content-md-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; - } - .align-content-md-center { - -ms-flex-line-pack: center !important; - align-content: center !important; - } - .align-content-md-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; - } - .align-content-md-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; - } - .align-content-md-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; - } - .align-self-md-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; - } - .align-self-md-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; - } - .align-self-md-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; - } - .align-self-md-center { - -ms-flex-item-align: center !important; - align-self: center !important; - } - .align-self-md-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; - } - .align-self-md-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; - } -} - -@media (min-width: 992px) { - .flex-lg-row { - -ms-flex-direction: row !important; - flex-direction: row !important; - } - .flex-lg-column { - -ms-flex-direction: column !important; - flex-direction: column !important; - } - .flex-lg-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; - } - .flex-lg-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; - } - .flex-lg-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; - } - .flex-lg-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; - } - .flex-lg-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; - } - .flex-lg-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; - } - .flex-lg-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; - } - .flex-lg-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; - } - .flex-lg-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; - } - .flex-lg-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; - } - .justify-content-lg-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; - } - .justify-content-lg-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; - } - .justify-content-lg-center { - -ms-flex-pack: center !important; - justify-content: center !important; - } - .justify-content-lg-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; - } - .justify-content-lg-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; - } - .align-items-lg-start { - -ms-flex-align: start !important; - align-items: flex-start !important; - } - .align-items-lg-end { - -ms-flex-align: end !important; - align-items: flex-end !important; - } - .align-items-lg-center { - -ms-flex-align: center !important; - align-items: center !important; - } - .align-items-lg-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; - } - .align-items-lg-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; - } - .align-content-lg-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; - } - .align-content-lg-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; - } - .align-content-lg-center { - -ms-flex-line-pack: center !important; - align-content: center !important; - } - .align-content-lg-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; - } - .align-content-lg-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; - } - .align-content-lg-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; - } - .align-self-lg-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; - } - .align-self-lg-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; - } - .align-self-lg-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; - } - .align-self-lg-center { - -ms-flex-item-align: center !important; - align-self: center !important; - } - .align-self-lg-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; - } - .align-self-lg-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; - } -} - -@media (min-width: 1280px) { - .flex-xl-row { - -ms-flex-direction: row !important; - flex-direction: row !important; - } - .flex-xl-column { - -ms-flex-direction: column !important; - flex-direction: column !important; - } - .flex-xl-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; - } - .flex-xl-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; - } - .flex-xl-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; - } - .flex-xl-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; - } - .flex-xl-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; - } - .flex-xl-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; - } - .flex-xl-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; - } - .flex-xl-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; - } - .flex-xl-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; - } - .flex-xl-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; - } - .justify-content-xl-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; - } - .justify-content-xl-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; - } - .justify-content-xl-center { - -ms-flex-pack: center !important; - justify-content: center !important; - } - .justify-content-xl-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; - } - .justify-content-xl-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; - } - .align-items-xl-start { - -ms-flex-align: start !important; - align-items: flex-start !important; - } - .align-items-xl-end { - -ms-flex-align: end !important; - align-items: flex-end !important; - } - .align-items-xl-center { - -ms-flex-align: center !important; - align-items: center !important; - } - .align-items-xl-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; - } - .align-items-xl-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; - } - .align-content-xl-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; - } - .align-content-xl-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; - } - .align-content-xl-center { - -ms-flex-line-pack: center !important; - align-content: center !important; - } - .align-content-xl-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; - } - .align-content-xl-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; - } - .align-content-xl-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; - } - .align-self-xl-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; - } - .align-self-xl-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; - } - .align-self-xl-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; - } - .align-self-xl-center { - -ms-flex-item-align: center !important; - align-self: center !important; - } - .align-self-xl-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; - } - .align-self-xl-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; - } -} - -.float-left { - float: left !important; -} - -.float-right { - float: right !important; -} - -.float-none { - float: none !important; -} - -@media (min-width: 576px) { - .float-sm-left { - float: left !important; - } - .float-sm-right { - float: right !important; - } - .float-sm-none { - float: none !important; - } -} - -@media (min-width: 768px) { - .float-md-left { - float: left !important; - } - .float-md-right { - float: right !important; - } - .float-md-none { - float: none !important; - } -} - -@media (min-width: 992px) { - .float-lg-left { - float: left !important; - } - .float-lg-right { - float: right !important; - } - .float-lg-none { - float: none !important; - } -} - -@media (min-width: 1280px) { - .float-xl-left { - float: left !important; - } - .float-xl-right { - float: right !important; - } - .float-xl-none { - float: none !important; - } -} - -.position-static { - position: static !important; -} - -.position-relative { - position: relative !important; -} - -.position-absolute { - position: absolute !important; -} - -.position-fixed { - position: fixed !important; -} - -.position-sticky { - position: -webkit-sticky !important; - position: sticky !important; -} - -.fixed-top { - position: fixed; - top: 0; - right: 0; - left: 0; - z-index: 1030; -} - -.fixed-bottom { - position: fixed; - right: 0; - bottom: 0; - left: 0; - z-index: 1030; -} - -@supports ((position: -webkit-sticky) or (position: sticky)) { - .sticky-top { - position: -webkit-sticky; - position: sticky; - top: 0; - z-index: 1020; - } -} - -.sr-only { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - overflow: hidden; - clip: rect(0, 0, 0, 0); - white-space: nowrap; - border: 0; -} - -.sr-only-focusable:active, .sr-only-focusable:focus { - position: static; - width: auto; - height: auto; - overflow: visible; - clip: auto; - white-space: normal; -} - -.shadow-sm { - box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; -} - -.shadow { - box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; -} - -.shadow-lg { - box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important; -} - -.shadow-none { - box-shadow: none !important; -} - -.w-25 { - width: 25% !important; -} - -.w-50 { - width: 50% !important; -} - -.w-75 { - width: 75% !important; -} - -.w-100 { - width: 100% !important; -} - -.w-auto { - width: auto !important; -} - -.w-0 { - width: 0 !important; -} - -.w-1 { - width: 0.25rem !important; -} - -.w-2 { - width: 0.5rem !important; -} - -.w-3 { - width: 0.75rem !important; -} - -.w-4 { - width: 1rem !important; -} - -.w-5 { - width: 1.5rem !important; -} - -.w-6 { - width: 2rem !important; -} - -.w-7 { - width: 3rem !important; -} - -.w-8 { - width: 4rem !important; -} - -.w-9 { - width: 6rem !important; -} - -.h-25 { - height: 25% !important; -} - -.h-50 { - height: 50% !important; -} - -.h-75 { - height: 75% !important; -} - -.h-100 { - height: 100% !important; -} - -.h-auto { - height: auto !important; -} - -.h-0 { - height: 0 !important; -} - -.h-1 { - height: 0.25rem !important; -} - -.h-2 { - height: 0.5rem !important; -} - -.h-3 { - height: 0.75rem !important; -} - -.h-4 { - height: 1rem !important; -} - -.h-5 { - height: 1.5rem !important; -} - -.h-6 { - height: 2rem !important; -} - -.h-7 { - height: 3rem !important; -} - -.h-8 { - height: 4rem !important; -} - -.h-9 { - height: 6rem !important; -} - -.mw-100 { - max-width: 100% !important; -} - -.mh-100 { - max-height: 100% !important; -} - -.m-0 { - margin: 0 !important; -} - -.mt-0, -.my-0 { - margin-top: 0 !important; -} - -.mr-0, -.mx-0 { - margin-right: 0 !important; -} - -.mb-0, -.my-0 { - margin-bottom: 0 !important; -} - -.ml-0, -.mx-0 { - margin-left: 0 !important; -} - -.m-1 { - margin: 0.25rem !important; -} - -.mt-1, -.my-1 { - margin-top: 0.25rem !important; -} - -.mr-1, -.mx-1 { - margin-right: 0.25rem !important; -} - -.mb-1, -.my-1 { - margin-bottom: 0.25rem !important; -} - -.ml-1, -.mx-1 { - margin-left: 0.25rem !important; -} - -.m-2 { - margin: 0.5rem !important; -} - -.mt-2, -.my-2 { - margin-top: 0.5rem !important; -} - -.mr-2, -.mx-2 { - margin-right: 0.5rem !important; -} - -.mb-2, -.my-2 { - margin-bottom: 0.5rem !important; -} - -.ml-2, -.mx-2 { - margin-left: 0.5rem !important; -} - -.m-3 { - margin: 0.75rem !important; -} - -.mt-3, -.my-3 { - margin-top: 0.75rem !important; -} - -.mr-3, -.mx-3 { - margin-right: 0.75rem !important; -} - -.mb-3, -.my-3 { - margin-bottom: 0.75rem !important; -} - -.ml-3, -.mx-3 { - margin-left: 0.75rem !important; -} - -.m-4 { - margin: 1rem !important; -} - -.mt-4, -.my-4 { - margin-top: 1rem !important; -} - -.mr-4, -.mx-4 { - margin-right: 1rem !important; -} - -.mb-4, -.my-4 { - margin-bottom: 1rem !important; -} - -.ml-4, -.mx-4 { - margin-left: 1rem !important; -} - -.m-5 { - margin: 1.5rem !important; -} - -.mt-5, -.my-5 { - margin-top: 1.5rem !important; -} - -.mr-5, -.mx-5 { - margin-right: 1.5rem !important; -} - -.mb-5, -.my-5 { - margin-bottom: 1.5rem !important; -} - -.ml-5, -.mx-5 { - margin-left: 1.5rem !important; -} - -.m-6 { - margin: 2rem !important; -} - -.mt-6, -.my-6 { - margin-top: 2rem !important; -} - -.mr-6, -.mx-6 { - margin-right: 2rem !important; -} - -.mb-6, -.my-6 { - margin-bottom: 2rem !important; -} - -.ml-6, -.mx-6 { - margin-left: 2rem !important; -} - -.m-7 { - margin: 3rem !important; -} - -.mt-7, -.my-7 { - margin-top: 3rem !important; -} - -.mr-7, -.mx-7 { - margin-right: 3rem !important; -} - -.mb-7, -.my-7 { - margin-bottom: 3rem !important; -} - -.ml-7, -.mx-7 { - margin-left: 3rem !important; -} - -.m-8 { - margin: 4rem !important; -} - -.mt-8, -.my-8 { - margin-top: 4rem !important; -} - -.mr-8, -.mx-8 { - margin-right: 4rem !important; -} - -.mb-8, -.my-8 { - margin-bottom: 4rem !important; -} - -.ml-8, -.mx-8 { - margin-left: 4rem !important; -} - -.m-9 { - margin: 6rem !important; -} - -.mt-9, -.my-9 { - margin-top: 6rem !important; -} - -.mr-9, -.mx-9 { - margin-right: 6rem !important; -} - -.mb-9, -.my-9 { - margin-bottom: 6rem !important; -} - -.ml-9, -.mx-9 { - margin-left: 6rem !important; -} - -.p-0 { - padding: 0 !important; -} - -.pt-0, -.py-0 { - padding-top: 0 !important; -} - -.pr-0, -.px-0 { - padding-right: 0 !important; -} - -.pb-0, -.py-0 { - padding-bottom: 0 !important; -} - -.pl-0, -.px-0 { - padding-left: 0 !important; -} - -.p-1 { - padding: 0.25rem !important; -} - -.pt-1, -.py-1 { - padding-top: 0.25rem !important; -} - -.pr-1, -.px-1 { - padding-right: 0.25rem !important; -} - -.pb-1, -.py-1 { - padding-bottom: 0.25rem !important; -} - -.pl-1, -.px-1 { - padding-left: 0.25rem !important; -} - -.p-2 { - padding: 0.5rem !important; -} - -.pt-2, -.py-2 { - padding-top: 0.5rem !important; -} - -.pr-2, -.px-2 { - padding-right: 0.5rem !important; -} - -.pb-2, -.py-2 { - padding-bottom: 0.5rem !important; -} - -.pl-2, -.px-2 { - padding-left: 0.5rem !important; -} - -.p-3 { - padding: 0.75rem !important; -} - -.pt-3, -.py-3 { - padding-top: 0.75rem !important; -} - -.pr-3, -.px-3 { - padding-right: 0.75rem !important; -} - -.pb-3, -.py-3 { - padding-bottom: 0.75rem !important; -} - -.pl-3, -.px-3 { - padding-left: 0.75rem !important; -} - -.p-4 { - padding: 1rem !important; -} - -.pt-4, -.py-4 { - padding-top: 1rem !important; -} - -.pr-4, -.px-4 { - padding-right: 1rem !important; -} - -.pb-4, -.py-4 { - padding-bottom: 1rem !important; -} - -.pl-4, -.px-4 { - padding-left: 1rem !important; -} - -.p-5 { - padding: 1.5rem !important; -} - -.pt-5, -.py-5 { - padding-top: 1.5rem !important; -} - -.pr-5, -.px-5 { - padding-right: 1.5rem !important; -} - -.pb-5, -.py-5 { - padding-bottom: 1.5rem !important; -} - -.pl-5, -.px-5 { - padding-left: 1.5rem !important; -} - -.p-6 { - padding: 2rem !important; -} - -.pt-6, -.py-6 { - padding-top: 2rem !important; -} - -.pr-6, -.px-6 { - padding-right: 2rem !important; -} - -.pb-6, -.py-6 { - padding-bottom: 2rem !important; -} - -.pl-6, -.px-6 { - padding-left: 2rem !important; -} - -.p-7 { - padding: 3rem !important; -} - -.pt-7, -.py-7 { - padding-top: 3rem !important; -} - -.pr-7, -.px-7 { - padding-right: 3rem !important; -} - -.pb-7, -.py-7 { - padding-bottom: 3rem !important; -} - -.pl-7, -.px-7 { - padding-left: 3rem !important; -} - -.p-8 { - padding: 4rem !important; -} - -.pt-8, -.py-8 { - padding-top: 4rem !important; -} - -.pr-8, -.px-8 { - padding-right: 4rem !important; -} - -.pb-8, -.py-8 { - padding-bottom: 4rem !important; -} - -.pl-8, -.px-8 { - padding-left: 4rem !important; -} - -.p-9 { - padding: 6rem !important; -} - -.pt-9, -.py-9 { - padding-top: 6rem !important; -} - -.pr-9, -.px-9 { - padding-right: 6rem !important; -} - -.pb-9, -.py-9 { - padding-bottom: 6rem !important; -} - -.pl-9, -.px-9 { - padding-left: 6rem !important; -} - -.m-auto { - margin: auto !important; -} - -.mt-auto, -.my-auto { - margin-top: auto !important; -} - -.mr-auto, -.mx-auto { - margin-right: auto !important; -} - -.mb-auto, -.my-auto { - margin-bottom: auto !important; -} - -.ml-auto, -.mx-auto { - margin-left: auto !important; -} - -@media (min-width: 576px) { - .m-sm-0 { - margin: 0 !important; - } - .mt-sm-0, - .my-sm-0 { - margin-top: 0 !important; - } - .mr-sm-0, - .mx-sm-0 { - margin-right: 0 !important; - } - .mb-sm-0, - .my-sm-0 { - margin-bottom: 0 !important; - } - .ml-sm-0, - .mx-sm-0 { - margin-left: 0 !important; - } - .m-sm-1 { - margin: 0.25rem !important; - } - .mt-sm-1, - .my-sm-1 { - margin-top: 0.25rem !important; - } - .mr-sm-1, - .mx-sm-1 { - margin-right: 0.25rem !important; - } - .mb-sm-1, - .my-sm-1 { - margin-bottom: 0.25rem !important; - } - .ml-sm-1, - .mx-sm-1 { - margin-left: 0.25rem !important; - } - .m-sm-2 { - margin: 0.5rem !important; - } - .mt-sm-2, - .my-sm-2 { - margin-top: 0.5rem !important; - } - .mr-sm-2, - .mx-sm-2 { - margin-right: 0.5rem !important; - } - .mb-sm-2, - .my-sm-2 { - margin-bottom: 0.5rem !important; - } - .ml-sm-2, - .mx-sm-2 { - margin-left: 0.5rem !important; - } - .m-sm-3 { - margin: 0.75rem !important; - } - .mt-sm-3, - .my-sm-3 { - margin-top: 0.75rem !important; - } - .mr-sm-3, - .mx-sm-3 { - margin-right: 0.75rem !important; - } - .mb-sm-3, - .my-sm-3 { - margin-bottom: 0.75rem !important; - } - .ml-sm-3, - .mx-sm-3 { - margin-left: 0.75rem !important; - } - .m-sm-4 { - margin: 1rem !important; - } - .mt-sm-4, - .my-sm-4 { - margin-top: 1rem !important; - } - .mr-sm-4, - .mx-sm-4 { - margin-right: 1rem !important; - } - .mb-sm-4, - .my-sm-4 { - margin-bottom: 1rem !important; - } - .ml-sm-4, - .mx-sm-4 { - margin-left: 1rem !important; - } - .m-sm-5 { - margin: 1.5rem !important; - } - .mt-sm-5, - .my-sm-5 { - margin-top: 1.5rem !important; - } - .mr-sm-5, - .mx-sm-5 { - margin-right: 1.5rem !important; - } - .mb-sm-5, - .my-sm-5 { - margin-bottom: 1.5rem !important; - } - .ml-sm-5, - .mx-sm-5 { - margin-left: 1.5rem !important; - } - .m-sm-6 { - margin: 2rem !important; - } - .mt-sm-6, - .my-sm-6 { - margin-top: 2rem !important; - } - .mr-sm-6, - .mx-sm-6 { - margin-right: 2rem !important; - } - .mb-sm-6, - .my-sm-6 { - margin-bottom: 2rem !important; - } - .ml-sm-6, - .mx-sm-6 { - margin-left: 2rem !important; - } - .m-sm-7 { - margin: 3rem !important; - } - .mt-sm-7, - .my-sm-7 { - margin-top: 3rem !important; - } - .mr-sm-7, - .mx-sm-7 { - margin-right: 3rem !important; - } - .mb-sm-7, - .my-sm-7 { - margin-bottom: 3rem !important; - } - .ml-sm-7, - .mx-sm-7 { - margin-left: 3rem !important; - } - .m-sm-8 { - margin: 4rem !important; - } - .mt-sm-8, - .my-sm-8 { - margin-top: 4rem !important; - } - .mr-sm-8, - .mx-sm-8 { - margin-right: 4rem !important; - } - .mb-sm-8, - .my-sm-8 { - margin-bottom: 4rem !important; - } - .ml-sm-8, - .mx-sm-8 { - margin-left: 4rem !important; - } - .m-sm-9 { - margin: 6rem !important; - } - .mt-sm-9, - .my-sm-9 { - margin-top: 6rem !important; - } - .mr-sm-9, - .mx-sm-9 { - margin-right: 6rem !important; - } - .mb-sm-9, - .my-sm-9 { - margin-bottom: 6rem !important; - } - .ml-sm-9, - .mx-sm-9 { - margin-left: 6rem !important; - } - .p-sm-0 { - padding: 0 !important; - } - .pt-sm-0, - .py-sm-0 { - padding-top: 0 !important; - } - .pr-sm-0, - .px-sm-0 { - padding-right: 0 !important; - } - .pb-sm-0, - .py-sm-0 { - padding-bottom: 0 !important; - } - .pl-sm-0, - .px-sm-0 { - padding-left: 0 !important; - } - .p-sm-1 { - padding: 0.25rem !important; - } - .pt-sm-1, - .py-sm-1 { - padding-top: 0.25rem !important; - } - .pr-sm-1, - .px-sm-1 { - padding-right: 0.25rem !important; - } - .pb-sm-1, - .py-sm-1 { - padding-bottom: 0.25rem !important; - } - .pl-sm-1, - .px-sm-1 { - padding-left: 0.25rem !important; - } - .p-sm-2 { - padding: 0.5rem !important; - } - .pt-sm-2, - .py-sm-2 { - padding-top: 0.5rem !important; - } - .pr-sm-2, - .px-sm-2 { - padding-right: 0.5rem !important; - } - .pb-sm-2, - .py-sm-2 { - padding-bottom: 0.5rem !important; - } - .pl-sm-2, - .px-sm-2 { - padding-left: 0.5rem !important; - } - .p-sm-3 { - padding: 0.75rem !important; - } - .pt-sm-3, - .py-sm-3 { - padding-top: 0.75rem !important; - } - .pr-sm-3, - .px-sm-3 { - padding-right: 0.75rem !important; - } - .pb-sm-3, - .py-sm-3 { - padding-bottom: 0.75rem !important; - } - .pl-sm-3, - .px-sm-3 { - padding-left: 0.75rem !important; - } - .p-sm-4 { - padding: 1rem !important; - } - .pt-sm-4, - .py-sm-4 { - padding-top: 1rem !important; - } - .pr-sm-4, - .px-sm-4 { - padding-right: 1rem !important; - } - .pb-sm-4, - .py-sm-4 { - padding-bottom: 1rem !important; - } - .pl-sm-4, - .px-sm-4 { - padding-left: 1rem !important; - } - .p-sm-5 { - padding: 1.5rem !important; - } - .pt-sm-5, - .py-sm-5 { - padding-top: 1.5rem !important; - } - .pr-sm-5, - .px-sm-5 { - padding-right: 1.5rem !important; - } - .pb-sm-5, - .py-sm-5 { - padding-bottom: 1.5rem !important; - } - .pl-sm-5, - .px-sm-5 { - padding-left: 1.5rem !important; - } - .p-sm-6 { - padding: 2rem !important; - } - .pt-sm-6, - .py-sm-6 { - padding-top: 2rem !important; - } - .pr-sm-6, - .px-sm-6 { - padding-right: 2rem !important; - } - .pb-sm-6, - .py-sm-6 { - padding-bottom: 2rem !important; - } - .pl-sm-6, - .px-sm-6 { - padding-left: 2rem !important; - } - .p-sm-7 { - padding: 3rem !important; - } - .pt-sm-7, - .py-sm-7 { - padding-top: 3rem !important; - } - .pr-sm-7, - .px-sm-7 { - padding-right: 3rem !important; - } - .pb-sm-7, - .py-sm-7 { - padding-bottom: 3rem !important; - } - .pl-sm-7, - .px-sm-7 { - padding-left: 3rem !important; - } - .p-sm-8 { - padding: 4rem !important; - } - .pt-sm-8, - .py-sm-8 { - padding-top: 4rem !important; - } - .pr-sm-8, - .px-sm-8 { - padding-right: 4rem !important; - } - .pb-sm-8, - .py-sm-8 { - padding-bottom: 4rem !important; - } - .pl-sm-8, - .px-sm-8 { - padding-left: 4rem !important; - } - .p-sm-9 { - padding: 6rem !important; - } - .pt-sm-9, - .py-sm-9 { - padding-top: 6rem !important; - } - .pr-sm-9, - .px-sm-9 { - padding-right: 6rem !important; - } - .pb-sm-9, - .py-sm-9 { - padding-bottom: 6rem !important; - } - .pl-sm-9, - .px-sm-9 { - padding-left: 6rem !important; - } - .m-sm-auto { - margin: auto !important; - } - .mt-sm-auto, - .my-sm-auto { - margin-top: auto !important; - } - .mr-sm-auto, - .mx-sm-auto { - margin-right: auto !important; - } - .mb-sm-auto, - .my-sm-auto { - margin-bottom: auto !important; - } - .ml-sm-auto, - .mx-sm-auto { - margin-left: auto !important; - } -} - -@media (min-width: 768px) { - .m-md-0 { - margin: 0 !important; - } - .mt-md-0, - .my-md-0 { - margin-top: 0 !important; - } - .mr-md-0, - .mx-md-0 { - margin-right: 0 !important; - } - .mb-md-0, - .my-md-0 { - margin-bottom: 0 !important; - } - .ml-md-0, - .mx-md-0 { - margin-left: 0 !important; - } - .m-md-1 { - margin: 0.25rem !important; - } - .mt-md-1, - .my-md-1 { - margin-top: 0.25rem !important; - } - .mr-md-1, - .mx-md-1 { - margin-right: 0.25rem !important; - } - .mb-md-1, - .my-md-1 { - margin-bottom: 0.25rem !important; - } - .ml-md-1, - .mx-md-1 { - margin-left: 0.25rem !important; - } - .m-md-2 { - margin: 0.5rem !important; - } - .mt-md-2, - .my-md-2 { - margin-top: 0.5rem !important; - } - .mr-md-2, - .mx-md-2 { - margin-right: 0.5rem !important; - } - .mb-md-2, - .my-md-2 { - margin-bottom: 0.5rem !important; - } - .ml-md-2, - .mx-md-2 { - margin-left: 0.5rem !important; - } - .m-md-3 { - margin: 0.75rem !important; - } - .mt-md-3, - .my-md-3 { - margin-top: 0.75rem !important; - } - .mr-md-3, - .mx-md-3 { - margin-right: 0.75rem !important; - } - .mb-md-3, - .my-md-3 { - margin-bottom: 0.75rem !important; - } - .ml-md-3, - .mx-md-3 { - margin-left: 0.75rem !important; - } - .m-md-4 { - margin: 1rem !important; - } - .mt-md-4, - .my-md-4 { - margin-top: 1rem !important; - } - .mr-md-4, - .mx-md-4 { - margin-right: 1rem !important; - } - .mb-md-4, - .my-md-4 { - margin-bottom: 1rem !important; - } - .ml-md-4, - .mx-md-4 { - margin-left: 1rem !important; - } - .m-md-5 { - margin: 1.5rem !important; - } - .mt-md-5, - .my-md-5 { - margin-top: 1.5rem !important; - } - .mr-md-5, - .mx-md-5 { - margin-right: 1.5rem !important; - } - .mb-md-5, - .my-md-5 { - margin-bottom: 1.5rem !important; - } - .ml-md-5, - .mx-md-5 { - margin-left: 1.5rem !important; - } - .m-md-6 { - margin: 2rem !important; - } - .mt-md-6, - .my-md-6 { - margin-top: 2rem !important; - } - .mr-md-6, - .mx-md-6 { - margin-right: 2rem !important; - } - .mb-md-6, - .my-md-6 { - margin-bottom: 2rem !important; - } - .ml-md-6, - .mx-md-6 { - margin-left: 2rem !important; - } - .m-md-7 { - margin: 3rem !important; - } - .mt-md-7, - .my-md-7 { - margin-top: 3rem !important; - } - .mr-md-7, - .mx-md-7 { - margin-right: 3rem !important; - } - .mb-md-7, - .my-md-7 { - margin-bottom: 3rem !important; - } - .ml-md-7, - .mx-md-7 { - margin-left: 3rem !important; - } - .m-md-8 { - margin: 4rem !important; - } - .mt-md-8, - .my-md-8 { - margin-top: 4rem !important; - } - .mr-md-8, - .mx-md-8 { - margin-right: 4rem !important; - } - .mb-md-8, - .my-md-8 { - margin-bottom: 4rem !important; - } - .ml-md-8, - .mx-md-8 { - margin-left: 4rem !important; - } - .m-md-9 { - margin: 6rem !important; - } - .mt-md-9, - .my-md-9 { - margin-top: 6rem !important; - } - .mr-md-9, - .mx-md-9 { - margin-right: 6rem !important; - } - .mb-md-9, - .my-md-9 { - margin-bottom: 6rem !important; - } - .ml-md-9, - .mx-md-9 { - margin-left: 6rem !important; - } - .p-md-0 { - padding: 0 !important; - } - .pt-md-0, - .py-md-0 { - padding-top: 0 !important; - } - .pr-md-0, - .px-md-0 { - padding-right: 0 !important; - } - .pb-md-0, - .py-md-0 { - padding-bottom: 0 !important; - } - .pl-md-0, - .px-md-0 { - padding-left: 0 !important; - } - .p-md-1 { - padding: 0.25rem !important; - } - .pt-md-1, - .py-md-1 { - padding-top: 0.25rem !important; - } - .pr-md-1, - .px-md-1 { - padding-right: 0.25rem !important; - } - .pb-md-1, - .py-md-1 { - padding-bottom: 0.25rem !important; - } - .pl-md-1, - .px-md-1 { - padding-left: 0.25rem !important; - } - .p-md-2 { - padding: 0.5rem !important; - } - .pt-md-2, - .py-md-2 { - padding-top: 0.5rem !important; - } - .pr-md-2, - .px-md-2 { - padding-right: 0.5rem !important; - } - .pb-md-2, - .py-md-2 { - padding-bottom: 0.5rem !important; - } - .pl-md-2, - .px-md-2 { - padding-left: 0.5rem !important; - } - .p-md-3 { - padding: 0.75rem !important; - } - .pt-md-3, - .py-md-3 { - padding-top: 0.75rem !important; - } - .pr-md-3, - .px-md-3 { - padding-right: 0.75rem !important; - } - .pb-md-3, - .py-md-3 { - padding-bottom: 0.75rem !important; - } - .pl-md-3, - .px-md-3 { - padding-left: 0.75rem !important; - } - .p-md-4 { - padding: 1rem !important; - } - .pt-md-4, - .py-md-4 { - padding-top: 1rem !important; - } - .pr-md-4, - .px-md-4 { - padding-right: 1rem !important; - } - .pb-md-4, - .py-md-4 { - padding-bottom: 1rem !important; - } - .pl-md-4, - .px-md-4 { - padding-left: 1rem !important; - } - .p-md-5 { - padding: 1.5rem !important; - } - .pt-md-5, - .py-md-5 { - padding-top: 1.5rem !important; - } - .pr-md-5, - .px-md-5 { - padding-right: 1.5rem !important; - } - .pb-md-5, - .py-md-5 { - padding-bottom: 1.5rem !important; - } - .pl-md-5, - .px-md-5 { - padding-left: 1.5rem !important; - } - .p-md-6 { - padding: 2rem !important; - } - .pt-md-6, - .py-md-6 { - padding-top: 2rem !important; - } - .pr-md-6, - .px-md-6 { - padding-right: 2rem !important; - } - .pb-md-6, - .py-md-6 { - padding-bottom: 2rem !important; - } - .pl-md-6, - .px-md-6 { - padding-left: 2rem !important; - } - .p-md-7 { - padding: 3rem !important; - } - .pt-md-7, - .py-md-7 { - padding-top: 3rem !important; - } - .pr-md-7, - .px-md-7 { - padding-right: 3rem !important; - } - .pb-md-7, - .py-md-7 { - padding-bottom: 3rem !important; - } - .pl-md-7, - .px-md-7 { - padding-left: 3rem !important; - } - .p-md-8 { - padding: 4rem !important; - } - .pt-md-8, - .py-md-8 { - padding-top: 4rem !important; - } - .pr-md-8, - .px-md-8 { - padding-right: 4rem !important; - } - .pb-md-8, - .py-md-8 { - padding-bottom: 4rem !important; - } - .pl-md-8, - .px-md-8 { - padding-left: 4rem !important; - } - .p-md-9 { - padding: 6rem !important; - } - .pt-md-9, - .py-md-9 { - padding-top: 6rem !important; - } - .pr-md-9, - .px-md-9 { - padding-right: 6rem !important; - } - .pb-md-9, - .py-md-9 { - padding-bottom: 6rem !important; - } - .pl-md-9, - .px-md-9 { - padding-left: 6rem !important; - } - .m-md-auto { - margin: auto !important; - } - .mt-md-auto, - .my-md-auto { - margin-top: auto !important; - } - .mr-md-auto, - .mx-md-auto { - margin-right: auto !important; - } - .mb-md-auto, - .my-md-auto { - margin-bottom: auto !important; - } - .ml-md-auto, - .mx-md-auto { - margin-left: auto !important; - } -} - -@media (min-width: 992px) { - .m-lg-0 { - margin: 0 !important; - } - .mt-lg-0, - .my-lg-0 { - margin-top: 0 !important; - } - .mr-lg-0, - .mx-lg-0 { - margin-right: 0 !important; - } - .mb-lg-0, - .my-lg-0 { - margin-bottom: 0 !important; - } - .ml-lg-0, - .mx-lg-0 { - margin-left: 0 !important; - } - .m-lg-1 { - margin: 0.25rem !important; - } - .mt-lg-1, - .my-lg-1 { - margin-top: 0.25rem !important; - } - .mr-lg-1, - .mx-lg-1 { - margin-right: 0.25rem !important; - } - .mb-lg-1, - .my-lg-1 { - margin-bottom: 0.25rem !important; - } - .ml-lg-1, - .mx-lg-1 { - margin-left: 0.25rem !important; - } - .m-lg-2 { - margin: 0.5rem !important; - } - .mt-lg-2, - .my-lg-2 { - margin-top: 0.5rem !important; - } - .mr-lg-2, - .mx-lg-2 { - margin-right: 0.5rem !important; - } - .mb-lg-2, - .my-lg-2 { - margin-bottom: 0.5rem !important; - } - .ml-lg-2, - .mx-lg-2 { - margin-left: 0.5rem !important; - } - .m-lg-3 { - margin: 0.75rem !important; - } - .mt-lg-3, - .my-lg-3 { - margin-top: 0.75rem !important; - } - .mr-lg-3, - .mx-lg-3 { - margin-right: 0.75rem !important; - } - .mb-lg-3, - .my-lg-3 { - margin-bottom: 0.75rem !important; - } - .ml-lg-3, - .mx-lg-3 { - margin-left: 0.75rem !important; - } - .m-lg-4 { - margin: 1rem !important; - } - .mt-lg-4, - .my-lg-4 { - margin-top: 1rem !important; - } - .mr-lg-4, - .mx-lg-4 { - margin-right: 1rem !important; - } - .mb-lg-4, - .my-lg-4 { - margin-bottom: 1rem !important; - } - .ml-lg-4, - .mx-lg-4 { - margin-left: 1rem !important; - } - .m-lg-5 { - margin: 1.5rem !important; - } - .mt-lg-5, - .my-lg-5 { - margin-top: 1.5rem !important; - } - .mr-lg-5, - .mx-lg-5 { - margin-right: 1.5rem !important; - } - .mb-lg-5, - .my-lg-5 { - margin-bottom: 1.5rem !important; - } - .ml-lg-5, - .mx-lg-5 { - margin-left: 1.5rem !important; - } - .m-lg-6 { - margin: 2rem !important; - } - .mt-lg-6, - .my-lg-6 { - margin-top: 2rem !important; - } - .mr-lg-6, - .mx-lg-6 { - margin-right: 2rem !important; - } - .mb-lg-6, - .my-lg-6 { - margin-bottom: 2rem !important; - } - .ml-lg-6, - .mx-lg-6 { - margin-left: 2rem !important; - } - .m-lg-7 { - margin: 3rem !important; - } - .mt-lg-7, - .my-lg-7 { - margin-top: 3rem !important; - } - .mr-lg-7, - .mx-lg-7 { - margin-right: 3rem !important; - } - .mb-lg-7, - .my-lg-7 { - margin-bottom: 3rem !important; - } - .ml-lg-7, - .mx-lg-7 { - margin-left: 3rem !important; - } - .m-lg-8 { - margin: 4rem !important; - } - .mt-lg-8, - .my-lg-8 { - margin-top: 4rem !important; - } - .mr-lg-8, - .mx-lg-8 { - margin-right: 4rem !important; - } - .mb-lg-8, - .my-lg-8 { - margin-bottom: 4rem !important; - } - .ml-lg-8, - .mx-lg-8 { - margin-left: 4rem !important; - } - .m-lg-9 { - margin: 6rem !important; - } - .mt-lg-9, - .my-lg-9 { - margin-top: 6rem !important; - } - .mr-lg-9, - .mx-lg-9 { - margin-right: 6rem !important; - } - .mb-lg-9, - .my-lg-9 { - margin-bottom: 6rem !important; - } - .ml-lg-9, - .mx-lg-9 { - margin-left: 6rem !important; - } - .p-lg-0 { - padding: 0 !important; - } - .pt-lg-0, - .py-lg-0 { - padding-top: 0 !important; - } - .pr-lg-0, - .px-lg-0 { - padding-right: 0 !important; - } - .pb-lg-0, - .py-lg-0 { - padding-bottom: 0 !important; - } - .pl-lg-0, - .px-lg-0 { - padding-left: 0 !important; - } - .p-lg-1 { - padding: 0.25rem !important; - } - .pt-lg-1, - .py-lg-1 { - padding-top: 0.25rem !important; - } - .pr-lg-1, - .px-lg-1 { - padding-right: 0.25rem !important; - } - .pb-lg-1, - .py-lg-1 { - padding-bottom: 0.25rem !important; - } - .pl-lg-1, - .px-lg-1 { - padding-left: 0.25rem !important; - } - .p-lg-2 { - padding: 0.5rem !important; - } - .pt-lg-2, - .py-lg-2 { - padding-top: 0.5rem !important; - } - .pr-lg-2, - .px-lg-2 { - padding-right: 0.5rem !important; - } - .pb-lg-2, - .py-lg-2 { - padding-bottom: 0.5rem !important; - } - .pl-lg-2, - .px-lg-2 { - padding-left: 0.5rem !important; - } - .p-lg-3 { - padding: 0.75rem !important; - } - .pt-lg-3, - .py-lg-3 { - padding-top: 0.75rem !important; - } - .pr-lg-3, - .px-lg-3 { - padding-right: 0.75rem !important; - } - .pb-lg-3, - .py-lg-3 { - padding-bottom: 0.75rem !important; - } - .pl-lg-3, - .px-lg-3 { - padding-left: 0.75rem !important; - } - .p-lg-4 { - padding: 1rem !important; - } - .pt-lg-4, - .py-lg-4 { - padding-top: 1rem !important; - } - .pr-lg-4, - .px-lg-4 { - padding-right: 1rem !important; - } - .pb-lg-4, - .py-lg-4 { - padding-bottom: 1rem !important; - } - .pl-lg-4, - .px-lg-4 { - padding-left: 1rem !important; - } - .p-lg-5 { - padding: 1.5rem !important; - } - .pt-lg-5, - .py-lg-5 { - padding-top: 1.5rem !important; - } - .pr-lg-5, - .px-lg-5 { - padding-right: 1.5rem !important; - } - .pb-lg-5, - .py-lg-5 { - padding-bottom: 1.5rem !important; - } - .pl-lg-5, - .px-lg-5 { - padding-left: 1.5rem !important; - } - .p-lg-6 { - padding: 2rem !important; - } - .pt-lg-6, - .py-lg-6 { - padding-top: 2rem !important; - } - .pr-lg-6, - .px-lg-6 { - padding-right: 2rem !important; - } - .pb-lg-6, - .py-lg-6 { - padding-bottom: 2rem !important; - } - .pl-lg-6, - .px-lg-6 { - padding-left: 2rem !important; - } - .p-lg-7 { - padding: 3rem !important; - } - .pt-lg-7, - .py-lg-7 { - padding-top: 3rem !important; - } - .pr-lg-7, - .px-lg-7 { - padding-right: 3rem !important; - } - .pb-lg-7, - .py-lg-7 { - padding-bottom: 3rem !important; - } - .pl-lg-7, - .px-lg-7 { - padding-left: 3rem !important; - } - .p-lg-8 { - padding: 4rem !important; - } - .pt-lg-8, - .py-lg-8 { - padding-top: 4rem !important; - } - .pr-lg-8, - .px-lg-8 { - padding-right: 4rem !important; - } - .pb-lg-8, - .py-lg-8 { - padding-bottom: 4rem !important; - } - .pl-lg-8, - .px-lg-8 { - padding-left: 4rem !important; - } - .p-lg-9 { - padding: 6rem !important; - } - .pt-lg-9, - .py-lg-9 { - padding-top: 6rem !important; - } - .pr-lg-9, - .px-lg-9 { - padding-right: 6rem !important; - } - .pb-lg-9, - .py-lg-9 { - padding-bottom: 6rem !important; - } - .pl-lg-9, - .px-lg-9 { - padding-left: 6rem !important; - } - .m-lg-auto { - margin: auto !important; - } - .mt-lg-auto, - .my-lg-auto { - margin-top: auto !important; - } - .mr-lg-auto, - .mx-lg-auto { - margin-right: auto !important; - } - .mb-lg-auto, - .my-lg-auto { - margin-bottom: auto !important; - } - .ml-lg-auto, - .mx-lg-auto { - margin-left: auto !important; - } -} - -@media (min-width: 1280px) { - .m-xl-0 { - margin: 0 !important; - } - .mt-xl-0, - .my-xl-0 { - margin-top: 0 !important; - } - .mr-xl-0, - .mx-xl-0 { - margin-right: 0 !important; - } - .mb-xl-0, - .my-xl-0 { - margin-bottom: 0 !important; - } - .ml-xl-0, - .mx-xl-0 { - margin-left: 0 !important; - } - .m-xl-1 { - margin: 0.25rem !important; - } - .mt-xl-1, - .my-xl-1 { - margin-top: 0.25rem !important; - } - .mr-xl-1, - .mx-xl-1 { - margin-right: 0.25rem !important; - } - .mb-xl-1, - .my-xl-1 { - margin-bottom: 0.25rem !important; - } - .ml-xl-1, - .mx-xl-1 { - margin-left: 0.25rem !important; - } - .m-xl-2 { - margin: 0.5rem !important; - } - .mt-xl-2, - .my-xl-2 { - margin-top: 0.5rem !important; - } - .mr-xl-2, - .mx-xl-2 { - margin-right: 0.5rem !important; - } - .mb-xl-2, - .my-xl-2 { - margin-bottom: 0.5rem !important; - } - .ml-xl-2, - .mx-xl-2 { - margin-left: 0.5rem !important; - } - .m-xl-3 { - margin: 0.75rem !important; - } - .mt-xl-3, - .my-xl-3 { - margin-top: 0.75rem !important; - } - .mr-xl-3, - .mx-xl-3 { - margin-right: 0.75rem !important; - } - .mb-xl-3, - .my-xl-3 { - margin-bottom: 0.75rem !important; - } - .ml-xl-3, - .mx-xl-3 { - margin-left: 0.75rem !important; - } - .m-xl-4 { - margin: 1rem !important; - } - .mt-xl-4, - .my-xl-4 { - margin-top: 1rem !important; - } - .mr-xl-4, - .mx-xl-4 { - margin-right: 1rem !important; - } - .mb-xl-4, - .my-xl-4 { - margin-bottom: 1rem !important; - } - .ml-xl-4, - .mx-xl-4 { - margin-left: 1rem !important; - } - .m-xl-5 { - margin: 1.5rem !important; - } - .mt-xl-5, - .my-xl-5 { - margin-top: 1.5rem !important; - } - .mr-xl-5, - .mx-xl-5 { - margin-right: 1.5rem !important; - } - .mb-xl-5, - .my-xl-5 { - margin-bottom: 1.5rem !important; - } - .ml-xl-5, - .mx-xl-5 { - margin-left: 1.5rem !important; - } - .m-xl-6 { - margin: 2rem !important; - } - .mt-xl-6, - .my-xl-6 { - margin-top: 2rem !important; - } - .mr-xl-6, - .mx-xl-6 { - margin-right: 2rem !important; - } - .mb-xl-6, - .my-xl-6 { - margin-bottom: 2rem !important; - } - .ml-xl-6, - .mx-xl-6 { - margin-left: 2rem !important; - } - .m-xl-7 { - margin: 3rem !important; - } - .mt-xl-7, - .my-xl-7 { - margin-top: 3rem !important; - } - .mr-xl-7, - .mx-xl-7 { - margin-right: 3rem !important; - } - .mb-xl-7, - .my-xl-7 { - margin-bottom: 3rem !important; - } - .ml-xl-7, - .mx-xl-7 { - margin-left: 3rem !important; - } - .m-xl-8 { - margin: 4rem !important; - } - .mt-xl-8, - .my-xl-8 { - margin-top: 4rem !important; - } - .mr-xl-8, - .mx-xl-8 { - margin-right: 4rem !important; - } - .mb-xl-8, - .my-xl-8 { - margin-bottom: 4rem !important; - } - .ml-xl-8, - .mx-xl-8 { - margin-left: 4rem !important; - } - .m-xl-9 { - margin: 6rem !important; - } - .mt-xl-9, - .my-xl-9 { - margin-top: 6rem !important; - } - .mr-xl-9, - .mx-xl-9 { - margin-right: 6rem !important; - } - .mb-xl-9, - .my-xl-9 { - margin-bottom: 6rem !important; - } - .ml-xl-9, - .mx-xl-9 { - margin-left: 6rem !important; - } - .p-xl-0 { - padding: 0 !important; - } - .pt-xl-0, - .py-xl-0 { - padding-top: 0 !important; - } - .pr-xl-0, - .px-xl-0 { - padding-right: 0 !important; - } - .pb-xl-0, - .py-xl-0 { - padding-bottom: 0 !important; - } - .pl-xl-0, - .px-xl-0 { - padding-left: 0 !important; - } - .p-xl-1 { - padding: 0.25rem !important; - } - .pt-xl-1, - .py-xl-1 { - padding-top: 0.25rem !important; - } - .pr-xl-1, - .px-xl-1 { - padding-right: 0.25rem !important; - } - .pb-xl-1, - .py-xl-1 { - padding-bottom: 0.25rem !important; - } - .pl-xl-1, - .px-xl-1 { - padding-left: 0.25rem !important; - } - .p-xl-2 { - padding: 0.5rem !important; - } - .pt-xl-2, - .py-xl-2 { - padding-top: 0.5rem !important; - } - .pr-xl-2, - .px-xl-2 { - padding-right: 0.5rem !important; - } - .pb-xl-2, - .py-xl-2 { - padding-bottom: 0.5rem !important; - } - .pl-xl-2, - .px-xl-2 { - padding-left: 0.5rem !important; - } - .p-xl-3 { - padding: 0.75rem !important; - } - .pt-xl-3, - .py-xl-3 { - padding-top: 0.75rem !important; - } - .pr-xl-3, - .px-xl-3 { - padding-right: 0.75rem !important; - } - .pb-xl-3, - .py-xl-3 { - padding-bottom: 0.75rem !important; - } - .pl-xl-3, - .px-xl-3 { - padding-left: 0.75rem !important; - } - .p-xl-4 { - padding: 1rem !important; - } - .pt-xl-4, - .py-xl-4 { - padding-top: 1rem !important; - } - .pr-xl-4, - .px-xl-4 { - padding-right: 1rem !important; - } - .pb-xl-4, - .py-xl-4 { - padding-bottom: 1rem !important; - } - .pl-xl-4, - .px-xl-4 { - padding-left: 1rem !important; - } - .p-xl-5 { - padding: 1.5rem !important; - } - .pt-xl-5, - .py-xl-5 { - padding-top: 1.5rem !important; - } - .pr-xl-5, - .px-xl-5 { - padding-right: 1.5rem !important; - } - .pb-xl-5, - .py-xl-5 { - padding-bottom: 1.5rem !important; - } - .pl-xl-5, - .px-xl-5 { - padding-left: 1.5rem !important; - } - .p-xl-6 { - padding: 2rem !important; - } - .pt-xl-6, - .py-xl-6 { - padding-top: 2rem !important; - } - .pr-xl-6, - .px-xl-6 { - padding-right: 2rem !important; - } - .pb-xl-6, - .py-xl-6 { - padding-bottom: 2rem !important; - } - .pl-xl-6, - .px-xl-6 { - padding-left: 2rem !important; - } - .p-xl-7 { - padding: 3rem !important; - } - .pt-xl-7, - .py-xl-7 { - padding-top: 3rem !important; - } - .pr-xl-7, - .px-xl-7 { - padding-right: 3rem !important; - } - .pb-xl-7, - .py-xl-7 { - padding-bottom: 3rem !important; - } - .pl-xl-7, - .px-xl-7 { - padding-left: 3rem !important; - } - .p-xl-8 { - padding: 4rem !important; - } - .pt-xl-8, - .py-xl-8 { - padding-top: 4rem !important; - } - .pr-xl-8, - .px-xl-8 { - padding-right: 4rem !important; - } - .pb-xl-8, - .py-xl-8 { - padding-bottom: 4rem !important; - } - .pl-xl-8, - .px-xl-8 { - padding-left: 4rem !important; - } - .p-xl-9 { - padding: 6rem !important; - } - .pt-xl-9, - .py-xl-9 { - padding-top: 6rem !important; - } - .pr-xl-9, - .px-xl-9 { - padding-right: 6rem !important; - } - .pb-xl-9, - .py-xl-9 { - padding-bottom: 6rem !important; - } - .pl-xl-9, - .px-xl-9 { - padding-left: 6rem !important; - } - .m-xl-auto { - margin: auto !important; - } - .mt-xl-auto, - .my-xl-auto { - margin-top: auto !important; - } - .mr-xl-auto, - .mx-xl-auto { - margin-right: auto !important; - } - .mb-xl-auto, - .my-xl-auto { - margin-bottom: auto !important; - } - .ml-xl-auto, - .mx-xl-auto { - margin-left: auto !important; - } -} - -.text-monospace { - font-family: Monaco, Consolas, "Liberation Mono", "Courier New", monospace; -} - -.text-justify { - text-align: justify !important; -} - -.text-nowrap { - white-space: nowrap !important; -} - -.text-truncate { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.text-left { - text-align: left !important; -} - -.text-right { - text-align: right !important; -} - -.text-center { - text-align: center !important; -} - -@media (min-width: 576px) { - .text-sm-left { - text-align: left !important; - } - .text-sm-right { - text-align: right !important; - } - .text-sm-center { - text-align: center !important; - } -} - -@media (min-width: 768px) { - .text-md-left { - text-align: left !important; - } - .text-md-right { - text-align: right !important; - } - .text-md-center { - text-align: center !important; - } -} - -@media (min-width: 992px) { - .text-lg-left { - text-align: left !important; - } - .text-lg-right { - text-align: right !important; - } - .text-lg-center { - text-align: center !important; - } -} - -@media (min-width: 1280px) { - .text-xl-left { - text-align: left !important; - } - .text-xl-right { - text-align: right !important; - } - .text-xl-center { - text-align: center !important; - } -} - -.text-lowercase { - text-transform: lowercase !important; -} - -.text-uppercase { - text-transform: uppercase !important; -} - -.text-capitalize { - text-transform: capitalize !important; -} - -.font-weight-light { - font-weight: 300 !important; -} - -.font-weight-normal { - font-weight: 400 !important; -} - -.font-weight-bold { - font-weight: 700 !important; -} - -.font-italic { - font-style: italic !important; -} - -.text-white { - color: #fff !important; -} - -.text-primary { - color: #467fcf !important; -} - -a.text-primary:hover, a.text-primary:focus { - color: #2f66b3 !important; -} - -.text-secondary { - color: #868e96 !important; -} - -a.text-secondary:hover, a.text-secondary:focus { - color: #6c757d !important; -} - -.text-success { - color: #5eba00 !important; -} - -a.text-success:hover, a.text-success:focus { - color: #448700 !important; -} - -.text-info { - color: #45aaf2 !important; -} - -a.text-info:hover, a.text-info:focus { - color: #1594ef !important; -} - -.text-warning { - color: #f1c40f !important; -} - -a.text-warning:hover, a.text-warning:focus { - color: #c29d0b !important; -} - -.text-danger { - color: #cd201f !important; -} - -a.text-danger:hover, a.text-danger:focus { - color: #a11918 !important; -} - -.text-light { - color: #f8f9fa !important; -} - -a.text-light:hover, a.text-light:focus { - color: #dae0e5 !important; -} - -.text-dark { - color: #343a40 !important; -} - -a.text-dark:hover, a.text-dark:focus { - color: #1d2124 !important; -} - -.text-body { - color: #495057 !important; -} - -.text-muted { - color: #9aa0ac !important; -} - -.text-black-50 { - color: rgba(0, 0, 0, 0.5) !important; -} - -.text-white-50 { - color: rgba(255, 255, 255, 0.5) !important; -} - -.text-hide { - font: 0/0 a; - color: transparent; - text-shadow: none; - background-color: transparent; - border: 0; -} - -.visible { - visibility: visible !important; -} - -.invisible { - visibility: hidden !important; -} - -@media print { - *, - *::before, - *::after { - text-shadow: none !important; - box-shadow: none !important; - } - a:not(.btn) { - text-decoration: underline; - } - abbr[title]::after { - content: " (" attr(title) ")"; - } - pre { - white-space: pre-wrap !important; - } - pre, - blockquote { - border: 1px solid #adb5bd; - page-break-inside: avoid; - } - thead { - display: table-header-group; - } - tr, - img { - page-break-inside: avoid; - } - p, - h2, - h3 { - orphans: 3; - widows: 3; - } - h2, - h3 { - page-break-after: avoid; - } - @page { - size: a3; - } - body { - min-width: 992px !important; - } - .container { - min-width: 992px !important; - } - .navbar { - display: none; - } - .badge { - border: 1px solid #000; - } - .table, .text-wrap table { - border-collapse: collapse !important; - } - - .table td, - .text-wrap table td, .table th, .text-wrap table th { - background-color: #fff !important; - } - .table-bordered th, .text-wrap table th, - .table-bordered td, - .text-wrap table td { - border: 1px solid #dee2e6 !important; - } -} - -html { - font-size: 16px; - height: 100%; - direction: ltr; -} - -body { - direction: ltr; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - -webkit-tap-highlight-color: transparent; - -webkit-text-size-adjust: none; - -ms-touch-action: manipulation; - touch-action: manipulation; - -webkit-font-feature-settings: "liga" 0; - font-feature-settings: "liga" 0; - height: 100%; - overflow-y: scroll; - position: relative; -} - -@media print { - body { - background: none; - } -} - -body *::-webkit-scrollbar { - width: 6px; - height: 6px; - transition: .3s background; -} - -body *::-webkit-scrollbar-thumb { - background: #ced4da; -} - -body *:hover::-webkit-scrollbar-thumb { - background: #adb5bd; -} - -.lead { - line-height: 1.4; -} - -a { - -webkit-text-decoration-skip: ink; - text-decoration-skip: ink; -} - -h1 a, h2 a, h3 a, h4 a, h5 a, h6 a, -.h1 a, .h2 a, .h3 a, .h4 a, .h5 a, .h6 a { - color: inherit; -} - -strong, -b { - font-weight: 600; -} - -p, -ul, -ol, -blockquote { - margin-bottom: 1em; -} - -blockquote { - font-style: italic; - color: #6e7687; - padding-left: 2rem; - border-left: 2px solid rgba(0, 40, 100, 0.12); -} - -blockquote p { - margin-bottom: 1rem; -} - -blockquote cite { - display: block; - text-align: right; -} - -blockquote cite:before { - content: '— '; -} - -code { - background: rgba(0, 0, 0, 0.025); - border: 1px solid rgba(0, 0, 0, 0.05); - border-radius: 3px; - padding: 3px; -} - -pre code { - padding: 0; - border-radius: 0; - border: none; - background: none; -} - -hr { - margin-top: 2rem; - margin-bottom: 2rem; -} - -pre { - color: #343a40; - padding: 1rem; - overflow: auto; - font-size: 85%; - line-height: 1.45; - background-color: #f8fafc; - border-radius: 3px; - -moz-tab-size: 4; - -o-tab-size: 4; - tab-size: 4; - text-shadow: 0 1px white; - -webkit-hyphens: none; - -moz-hyphens: none; - -ms-hyphens: none; - hyphens: none; -} - -img { - max-width: 100%; -} - -.text-wrap { - font-size: 1rem; - line-height: 1.66; -} - -.text-wrap > :first-child { - margin-top: 0; -} - -.text-wrap > :last-child { - margin-bottom: 0; -} - -.text-wrap > h1, .text-wrap > h2, .text-wrap > h3, .text-wrap > h4, .text-wrap > h5, .text-wrap > h6 { - margin-top: 1em; -} - -.section-nav { - background-color: #f8f9fa; - margin: 1rem 0; - padding: .5rem 1rem; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; - list-style: none; -} - -.section-nav:before { - content: 'Table of contents:'; - display: block; - font-weight: 600; -} - -@media print { - .container { - max-width: none; - } -} - -.row-cards > .col, -.row-cards > [class*='col-'] { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; -} - -.row-deck > .col, -.row-deck > [class*='col-'] { - display: -ms-flexbox; - display: flex; - -ms-flex-align: stretch; - align-items: stretch; -} - -.row-deck > .col .card, -.row-deck > [class*='col-'] .card { - -ms-flex: 1 1 auto; - flex: 1 1 auto; -} - -.col-text { - max-width: 48rem; -} - -.col-login { - max-width: 24rem; -} - -.gutters-0 { - margin-right: 0; - margin-left: 0; -} - -.gutters-0 > .col, -.gutters-0 > [class*="col-"] { - padding-right: 0; - padding-left: 0; -} - -.gutters-0 .card { - margin-bottom: 0; -} - -.gutters-xs { - margin-right: -0.25rem; - margin-left: -0.25rem; -} - -.gutters-xs > .col, -.gutters-xs > [class*="col-"] { - padding-right: 0.25rem; - padding-left: 0.25rem; -} - -.gutters-xs .card { - margin-bottom: 0.5rem; -} - -.gutters-sm { - margin-right: -0.5rem; - margin-left: -0.5rem; -} - -.gutters-sm > .col, -.gutters-sm > [class*="col-"] { - padding-right: 0.5rem; - padding-left: 0.5rem; -} - -.gutters-sm .card { - margin-bottom: 1rem; -} - -.gutters-lg { - margin-right: -1rem; - margin-left: -1rem; -} - -.gutters-lg > .col, -.gutters-lg > [class*="col-"] { - padding-right: 1rem; - padding-left: 1rem; -} - -.gutters-lg .card { - margin-bottom: 2rem; -} - -.gutters-xl { - margin-right: -1.5rem; - margin-left: -1.5rem; -} - -.gutters-xl > .col, -.gutters-xl > [class*="col-"] { - padding-right: 1.5rem; - padding-left: 1.5rem; -} - -.gutters-xl .card { - margin-bottom: 3rem; -} - -.page { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - -ms-flex-pack: center; - justify-content: center; - min-height: 100%; -} - -body.fixed-header .page { - padding-top: 4.5rem; -} - -@media (min-width: 1600px) { - body.aside-opened .page { - margin-right: 22rem; - } -} - -.page-main { - -ms-flex: 1 1 auto; - flex: 1 1 auto; -} - -.page-content { - margin: .75rem 0; -} - -@media (min-width: 768px) { - .page-content { - margin: 1.5rem 0; - } -} - -.page-header { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - margin: 1.5rem 0 1.5rem; - -ms-flex-wrap: wrap; - flex-wrap: wrap; -} - -.page-title { - margin: 0; - font-size: 1.5rem; - font-weight: 400; - line-height: 2.5rem; -} - -.page-title-icon { - color: #9aa0ac; - font-size: 1.25rem; -} - -.page-subtitle { - font-size: 0.8125rem; - color: #6e7687; - margin-left: 2rem; -} - -.page-subtitle a { - color: inherit; -} - -.page-options { - margin-left: auto; -} - -.page-breadcrumb { - -ms-flex-preferred-size: 100%; - flex-basis: 100%; -} - -.page-description { - margin: .25rem 0 0; - color: #6e7687; -} - -.page-description a { - color: inherit; -} - -.page-single { - -ms-flex: 1 1 auto; - flex: 1 1 auto; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - padding: 1rem 0; -} - -.content-heading { - font-weight: 400; - margin: 2rem 0 1.5rem; - font-size: 1.25rem; - line-height: 1.25; -} - -.content-heading:first-child { - margin-top: 0; -} - -.aside { - position: fixed; - top: 0; - right: 0; - bottom: 0; - width: 22rem; - background: #ffffff; - border-left: 1px solid rgba(0, 40, 100, 0.12); - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - z-index: 100; - visibility: hidden; - box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.05); -} - -@media (min-width: 1600px) { - body.aside-opened .aside { - visibility: visible; - } -} - -.aside-body { - padding: 1.5rem; - -ms-flex: 1 1 auto; - flex: 1 1 auto; - overflow: auto; -} - -.aside-footer { - padding: 1rem 1.5rem; - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.aside-header { - padding: 1rem 1.5rem; - border-bottom: 1px solid rgba(0, 40, 100, 0.12); -} - -.header { - padding-top: .75rem; - padding-bottom: .75rem; - background: #fff; - border-bottom: 1px solid rgba(0, 40, 100, 0.12); -} - -body.fixed-header .header { - position: fixed; - top: 0; - left: 0; - right: 0; - z-index: 1030; -} - -@media print { - .header { - display: none; - } -} - -.header .dropdown-menu { - margin-top: .75rem; -} - -.nav-unread { - position: absolute; - top: .25rem; - right: .25rem; - background: #cd201f; - width: .5rem; - height: .5rem; - border-radius: 50%; -} - -.header-brand { - color: inherit; - margin-right: 1rem; - font-size: 1.25rem; - white-space: nowrap; - font-weight: 600; - padding: 0; - transition: .3s opacity; - line-height: 2rem; -} - -.header-brand:hover { - opacity: .8; - color: inherit; - text-decoration: none; -} - -.header-brand-img { - height: 2rem; - line-height: 2rem; - vertical-align: bottom; - margin-right: .5rem; - width: auto; -} - -.header-avatar { - width: 2rem; - height: 2rem; - display: inline-block; - vertical-align: bottom; - border-radius: 50%; -} - -.header-btn { - display: inline-block; - width: 2rem; - height: 2rem; - line-height: 2rem; - text-align: center; - font-size: 1rem; -} - -.header-btn.has-new { - position: relative; -} - -.header-btn.has-new:before { - content: ''; - width: 6px; - height: 6px; - background: #cd201f; - position: absolute; - top: 4px; - right: 4px; - border-radius: 50%; -} - -.header-toggler { - width: 2rem; - height: 2rem; - position: relative; - color: #9aa0ac; -} - -.header-toggler:hover { - color: #6e7687; -} - -.header-toggler-icon { - position: absolute; - width: 1rem; - height: 2px; - color: inherit; - background: currentColor; - border-radius: 3px; - top: 50%; - left: 50%; - margin: -2px 0 0 -.5rem; - box-shadow: 0 5px currentColor, 0 -5px currentColor; -} - -.footer { - background: #fff; - border-top: 1px solid rgba(0, 40, 100, 0.12); - font-size: 0.875rem; - padding: 1.25rem 0; - color: #9aa0ac; -} - -.footer a:not(.btn) { - color: #6e7687; -} - -@media print { - .footer { - display: none; - } -} - -.bg-blue-lightest { - background-color: #edf2fa !important; -} - -a.bg-blue-lightest:hover, a.bg-blue-lightest:focus, -button.bg-blue-lightest:hover, -button.bg-blue-lightest:focus { - background-color: #c5d5ef !important; -} - -.bg-blue-lighter { - background-color: #c8d9f1 !important; -} - -a.bg-blue-lighter:hover, a.bg-blue-lighter:focus, -button.bg-blue-lighter:hover, -button.bg-blue-lighter:focus { - background-color: #9fbde7 !important; -} - -.bg-blue-light { - background-color: #7ea5dd !important; -} - -a.bg-blue-light:hover, a.bg-blue-light:focus, -button.bg-blue-light:hover, -button.bg-blue-light:focus { - background-color: #5689d2 !important; -} - -.bg-blue-dark { - background-color: #3866a6 !important; -} - -a.bg-blue-dark:hover, a.bg-blue-dark:focus, -button.bg-blue-dark:hover, -button.bg-blue-dark:focus { - background-color: #2b4f80 !important; -} - -.bg-blue-darker { - background-color: #1c3353 !important; -} - -a.bg-blue-darker:hover, a.bg-blue-darker:focus, -button.bg-blue-darker:hover, -button.bg-blue-darker:focus { - background-color: #0f1c2d !important; -} - -.bg-blue-darkest { - background-color: #0e1929 !important; -} - -a.bg-blue-darkest:hover, a.bg-blue-darkest:focus, -button.bg-blue-darkest:hover, -button.bg-blue-darkest:focus { - background-color: #010203 !important; -} - -.bg-indigo-lightest { - background-color: #f0f1fa !important; -} - -a.bg-indigo-lightest:hover, a.bg-indigo-lightest:focus, -button.bg-indigo-lightest:hover, -button.bg-indigo-lightest:focus { - background-color: #cacded !important; -} - -.bg-indigo-lighter { - background-color: #d1d5f0 !important; -} - -a.bg-indigo-lighter:hover, a.bg-indigo-lighter:focus, -button.bg-indigo-lighter:hover, -button.bg-indigo-lighter:focus { - background-color: #abb2e3 !important; -} - -.bg-indigo-light { - background-color: #939edc !important; -} - -a.bg-indigo-light:hover, a.bg-indigo-light:focus, -button.bg-indigo-light:hover, -button.bg-indigo-light:focus { - background-color: #6c7bd0 !important; -} - -.bg-indigo-dark { - background-color: #515da4 !important; -} - -a.bg-indigo-dark:hover, a.bg-indigo-dark:focus, -button.bg-indigo-dark:hover, -button.bg-indigo-dark:focus { - background-color: #404a82 !important; -} - -.bg-indigo-darker { - background-color: #282e52 !important; -} - -a.bg-indigo-darker:hover, a.bg-indigo-darker:focus, -button.bg-indigo-darker:hover, -button.bg-indigo-darker:focus { - background-color: #171b30 !important; -} - -.bg-indigo-darkest { - background-color: #141729 !important; -} - -a.bg-indigo-darkest:hover, a.bg-indigo-darkest:focus, -button.bg-indigo-darkest:hover, -button.bg-indigo-darkest:focus { - background-color: #030407 !important; -} - -.bg-purple-lightest { - background-color: #f6effd !important; -} - -a.bg-purple-lightest:hover, a.bg-purple-lightest:focus, -button.bg-purple-lightest:hover, -button.bg-purple-lightest:focus { - background-color: #ddc2f7 !important; -} - -.bg-purple-lighter { - background-color: #e4cff9 !important; -} - -a.bg-purple-lighter:hover, a.bg-purple-lighter:focus, -button.bg-purple-lighter:hover, -button.bg-purple-lighter:focus { - background-color: #cba2f3 !important; -} - -.bg-purple-light { - background-color: #c08ef0 !important; -} - -a.bg-purple-light:hover, a.bg-purple-light:focus, -button.bg-purple-light:hover, -button.bg-purple-light:focus { - background-color: #a761ea !important; -} - -.bg-purple-dark { - background-color: #844bbb !important; -} - -a.bg-purple-dark:hover, a.bg-purple-dark:focus, -button.bg-purple-dark:hover, -button.bg-purple-dark:focus { - background-color: #6a3a99 !important; -} - -.bg-purple-darker { - background-color: #42265e !important; -} - -a.bg-purple-darker:hover, a.bg-purple-darker:focus, -button.bg-purple-darker:hover, -button.bg-purple-darker:focus { - background-color: #29173a !important; -} - -.bg-purple-darkest { - background-color: #21132f !important; -} - -a.bg-purple-darkest:hover, a.bg-purple-darkest:focus, -button.bg-purple-darkest:hover, -button.bg-purple-darkest:focus { - background-color: #08040b !important; -} - -.bg-pink-lightest { - background-color: #fef0f5 !important; -} - -a.bg-pink-lightest:hover, a.bg-pink-lightest:focus, -button.bg-pink-lightest:hover, -button.bg-pink-lightest:focus { - background-color: #fbc0d5 !important; -} - -.bg-pink-lighter { - background-color: #fcd3e1 !important; -} - -a.bg-pink-lighter:hover, a.bg-pink-lighter:focus, -button.bg-pink-lighter:hover, -button.bg-pink-lighter:focus { - background-color: #f9a3c0 !important; -} - -.bg-pink-light { - background-color: #f999b9 !important; -} - -a.bg-pink-light:hover, a.bg-pink-light:focus, -button.bg-pink-light:hover, -button.bg-pink-light:focus { - background-color: #f66998 !important; -} - -.bg-pink-dark { - background-color: #c5577c !important; -} - -a.bg-pink-dark:hover, a.bg-pink-dark:focus, -button.bg-pink-dark:hover, -button.bg-pink-dark:focus { - background-color: #ad3c62 !important; -} - -.bg-pink-darker { - background-color: #622c3e !important; -} - -a.bg-pink-darker:hover, a.bg-pink-darker:focus, -button.bg-pink-darker:hover, -button.bg-pink-darker:focus { - background-color: #3f1c28 !important; -} - -.bg-pink-darkest { - background-color: #31161f !important; -} - -a.bg-pink-darkest:hover, a.bg-pink-darkest:focus, -button.bg-pink-darkest:hover, -button.bg-pink-darkest:focus { - background-color: #0e0609 !important; -} - -.bg-red-lightest { - background-color: #fae9e9 !important; -} - -a.bg-red-lightest:hover, a.bg-red-lightest:focus, -button.bg-red-lightest:hover, -button.bg-red-lightest:focus { - background-color: #f1bfbf !important; -} - -.bg-red-lighter { - background-color: #f0bcbc !important; -} - -a.bg-red-lighter:hover, a.bg-red-lighter:focus, -button.bg-red-lighter:hover, -button.bg-red-lighter:focus { - background-color: #e79292 !important; -} - -.bg-red-light { - background-color: #dc6362 !important; -} - -a.bg-red-light:hover, a.bg-red-light:focus, -button.bg-red-light:hover, -button.bg-red-light:focus { - background-color: #d33a38 !important; -} - -.bg-red-dark { - background-color: #a41a19 !important; -} - -a.bg-red-dark:hover, a.bg-red-dark:focus, -button.bg-red-dark:hover, -button.bg-red-dark:focus { - background-color: #781312 !important; -} - -.bg-red-darker { - background-color: #520d0c !important; -} - -a.bg-red-darker:hover, a.bg-red-darker:focus, -button.bg-red-darker:hover, -button.bg-red-darker:focus { - background-color: #260605 !important; -} - -.bg-red-darkest { - background-color: #290606 !important; -} - -a.bg-red-darkest:hover, a.bg-red-darkest:focus, -button.bg-red-darkest:hover, -button.bg-red-darkest:focus { - background-color: black !important; -} - -.bg-orange-lightest { - background-color: #fff5ec !important; -} - -a.bg-orange-lightest:hover, a.bg-orange-lightest:focus, -button.bg-orange-lightest:hover, -button.bg-orange-lightest:focus { - background-color: peachpuff !important; -} - -.bg-orange-lighter { - background-color: #fee0c7 !important; -} - -a.bg-orange-lighter:hover, a.bg-orange-lighter:focus, -button.bg-orange-lighter:hover, -button.bg-orange-lighter:focus { - background-color: #fdc495 !important; -} - -.bg-orange-light { - background-color: #feb67c !important; -} - -a.bg-orange-light:hover, a.bg-orange-light:focus, -button.bg-orange-light:hover, -button.bg-orange-light:focus { - background-color: #fe9a49 !important; -} - -.bg-orange-dark { - background-color: #ca7836 !important; -} - -a.bg-orange-dark:hover, a.bg-orange-dark:focus, -button.bg-orange-dark:hover, -button.bg-orange-dark:focus { - background-color: #a2602b !important; -} - -.bg-orange-darker { - background-color: #653c1b !important; -} - -a.bg-orange-darker:hover, a.bg-orange-darker:focus, -button.bg-orange-darker:hover, -button.bg-orange-darker:focus { - background-color: #3d2410 !important; -} - -.bg-orange-darkest { - background-color: #331e0e !important; -} - -a.bg-orange-darkest:hover, a.bg-orange-darkest:focus, -button.bg-orange-darkest:hover, -button.bg-orange-darkest:focus { - background-color: #0b0603 !important; -} - -.bg-yellow-lightest { - background-color: #fef9e7 !important; -} - -a.bg-yellow-lightest:hover, a.bg-yellow-lightest:focus, -button.bg-yellow-lightest:hover, -button.bg-yellow-lightest:focus { - background-color: #fcedb6 !important; -} - -.bg-yellow-lighter { - background-color: #fbedb7 !important; -} - -a.bg-yellow-lighter:hover, a.bg-yellow-lighter:focus, -button.bg-yellow-lighter:hover, -button.bg-yellow-lighter:focus { - background-color: #f8e187 !important; -} - -.bg-yellow-light { - background-color: #f5d657 !important; -} - -a.bg-yellow-light:hover, a.bg-yellow-light:focus, -button.bg-yellow-light:hover, -button.bg-yellow-light:focus { - background-color: #f2ca27 !important; -} - -.bg-yellow-dark { - background-color: #c19d0c !important; -} - -a.bg-yellow-dark:hover, a.bg-yellow-dark:focus, -button.bg-yellow-dark:hover, -button.bg-yellow-dark:focus { - background-color: #917609 !important; -} - -.bg-yellow-darker { - background-color: #604e06 !important; -} - -a.bg-yellow-darker:hover, a.bg-yellow-darker:focus, -button.bg-yellow-darker:hover, -button.bg-yellow-darker:focus { - background-color: #302703 !important; -} - -.bg-yellow-darkest { - background-color: #302703 !important; -} - -a.bg-yellow-darkest:hover, a.bg-yellow-darkest:focus, -button.bg-yellow-darkest:hover, -button.bg-yellow-darkest:focus { - background-color: black !important; -} - -.bg-green-lightest { - background-color: #eff8e6 !important; -} - -a.bg-green-lightest:hover, a.bg-green-lightest:focus, -button.bg-green-lightest:hover, -button.bg-green-lightest:focus { - background-color: #d6edbe !important; -} - -.bg-green-lighter { - background-color: #cfeab3 !important; -} - -a.bg-green-lighter:hover, a.bg-green-lighter:focus, -button.bg-green-lighter:hover, -button.bg-green-lighter:focus { - background-color: #b6df8b !important; -} - -.bg-green-light { - background-color: #8ecf4d !important; -} - -a.bg-green-light:hover, a.bg-green-light:focus, -button.bg-green-light:hover, -button.bg-green-light:focus { - background-color: #75b831 !important; -} - -.bg-green-dark { - background-color: #4b9500 !important; -} - -a.bg-green-dark:hover, a.bg-green-dark:focus, -button.bg-green-dark:hover, -button.bg-green-dark:focus { - background-color: #316200 !important; -} - -.bg-green-darker { - background-color: #264a00 !important; -} - -a.bg-green-darker:hover, a.bg-green-darker:focus, -button.bg-green-darker:hover, -button.bg-green-darker:focus { - background-color: #0c1700 !important; -} - -.bg-green-darkest { - background-color: #132500 !important; -} - -a.bg-green-darkest:hover, a.bg-green-darkest:focus, -button.bg-green-darkest:hover, -button.bg-green-darkest:focus { - background-color: black !important; -} - -.bg-teal-lightest { - background-color: #eafaf8 !important; -} - -a.bg-teal-lightest:hover, a.bg-teal-lightest:focus, -button.bg-teal-lightest:hover, -button.bg-teal-lightest:focus { - background-color: #c1f0ea !important; -} - -.bg-teal-lighter { - background-color: #bfefea !important; -} - -a.bg-teal-lighter:hover, a.bg-teal-lighter:focus, -button.bg-teal-lighter:hover, -button.bg-teal-lighter:focus { - background-color: #96e5dd !important; -} - -.bg-teal-light { - background-color: #6bdbcf !important; -} - -a.bg-teal-light:hover, a.bg-teal-light:focus, -button.bg-teal-light:hover, -button.bg-teal-light:focus { - background-color: #42d1c2 !important; -} - -.bg-teal-dark { - background-color: #22a295 !important; -} - -a.bg-teal-dark:hover, a.bg-teal-dark:focus, -button.bg-teal-dark:hover, -button.bg-teal-dark:focus { - background-color: #19786e !important; -} - -.bg-teal-darker { - background-color: #11514a !important; -} - -a.bg-teal-darker:hover, a.bg-teal-darker:focus, -button.bg-teal-darker:hover, -button.bg-teal-darker:focus { - background-color: #082723 !important; -} - -.bg-teal-darkest { - background-color: #092925 !important; -} - -a.bg-teal-darkest:hover, a.bg-teal-darkest:focus, -button.bg-teal-darkest:hover, -button.bg-teal-darkest:focus { - background-color: black !important; -} - -.bg-cyan-lightest { - background-color: #e8f6f8 !important; -} - -a.bg-cyan-lightest:hover, a.bg-cyan-lightest:focus, -button.bg-cyan-lightest:hover, -button.bg-cyan-lightest:focus { - background-color: #c1e7ec !important; -} - -.bg-cyan-lighter { - background-color: #b9e3ea !important; -} - -a.bg-cyan-lighter:hover, a.bg-cyan-lighter:focus, -button.bg-cyan-lighter:hover, -button.bg-cyan-lighter:focus { - background-color: #92d3de !important; -} - -.bg-cyan-light { - background-color: #5dbecd !important; -} - -a.bg-cyan-light:hover, a.bg-cyan-light:focus, -button.bg-cyan-light:hover, -button.bg-cyan-light:focus { - background-color: #3aabbd !important; -} - -.bg-cyan-dark { - background-color: #128293 !important; -} - -a.bg-cyan-dark:hover, a.bg-cyan-dark:focus, -button.bg-cyan-dark:hover, -button.bg-cyan-dark:focus { - background-color: #0c5a66 !important; -} - -.bg-cyan-darker { - background-color: #09414a !important; -} - -a.bg-cyan-darker:hover, a.bg-cyan-darker:focus, -button.bg-cyan-darker:hover, -button.bg-cyan-darker:focus { - background-color: #03191d !important; -} - -.bg-cyan-darkest { - background-color: #052025 !important; -} - -a.bg-cyan-darkest:hover, a.bg-cyan-darkest:focus, -button.bg-cyan-darkest:hover, -button.bg-cyan-darkest:focus { - background-color: black !important; -} - -.bg-white-lightest { - background-color: white !important; -} - -a.bg-white-lightest:hover, a.bg-white-lightest:focus, -button.bg-white-lightest:hover, -button.bg-white-lightest:focus { - background-color: #e6e5e5 !important; -} - -.bg-white-lighter { - background-color: white !important; -} - -a.bg-white-lighter:hover, a.bg-white-lighter:focus, -button.bg-white-lighter:hover, -button.bg-white-lighter:focus { - background-color: #e6e5e5 !important; -} - -.bg-white-light { - background-color: white !important; -} - -a.bg-white-light:hover, a.bg-white-light:focus, -button.bg-white-light:hover, -button.bg-white-light:focus { - background-color: #e6e5e5 !important; -} - -.bg-white-dark { - background-color: #cccccc !important; -} - -a.bg-white-dark:hover, a.bg-white-dark:focus, -button.bg-white-dark:hover, -button.bg-white-dark:focus { - background-color: #b3b2b2 !important; -} - -.bg-white-darker { - background-color: #666666 !important; -} - -a.bg-white-darker:hover, a.bg-white-darker:focus, -button.bg-white-darker:hover, -button.bg-white-darker:focus { - background-color: #4d4c4c !important; -} - -.bg-white-darkest { - background-color: #333333 !important; -} - -a.bg-white-darkest:hover, a.bg-white-darkest:focus, -button.bg-white-darkest:hover, -button.bg-white-darkest:focus { - background-color: #1a1919 !important; -} - -.bg-gray-lightest { - background-color: #f3f4f5 !important; -} - -a.bg-gray-lightest:hover, a.bg-gray-lightest:focus, -button.bg-gray-lightest:hover, -button.bg-gray-lightest:focus { - background-color: #d7dbde !important; -} - -.bg-gray-lighter { - background-color: #dbdde0 !important; -} - -a.bg-gray-lighter:hover, a.bg-gray-lighter:focus, -button.bg-gray-lighter:hover, -button.bg-gray-lighter:focus { - background-color: #c0c3c8 !important; -} - -.bg-gray-light { - background-color: #aab0b6 !important; -} - -a.bg-gray-light:hover, a.bg-gray-light:focus, -button.bg-gray-light:hover, -button.bg-gray-light:focus { - background-color: #8f979e !important; -} - -.bg-gray-dark { - background-color: #6b7278 !important; -} - -a.bg-gray-dark:hover, a.bg-gray-dark:focus, -button.bg-gray-dark:hover, -button.bg-gray-dark:focus { - background-color: #53585d !important; -} - -.bg-gray-darker { - background-color: #36393c !important; -} - -a.bg-gray-darker:hover, a.bg-gray-darker:focus, -button.bg-gray-darker:hover, -button.bg-gray-darker:focus { - background-color: #1e2021 !important; -} - -.bg-gray-darkest { - background-color: #1b1c1e !important; -} - -a.bg-gray-darkest:hover, a.bg-gray-darkest:focus, -button.bg-gray-darkest:hover, -button.bg-gray-darkest:focus { - background-color: #030303 !important; -} - -.bg-gray-dark-lightest { - background-color: #ebebec !important; -} - -a.bg-gray-dark-lightest:hover, a.bg-gray-dark-lightest:focus, -button.bg-gray-dark-lightest:hover, -button.bg-gray-dark-lightest:focus { - background-color: #d1d1d3 !important; -} - -.bg-gray-dark-lighter { - background-color: #c2c4c6 !important; -} - -a.bg-gray-dark-lighter:hover, a.bg-gray-dark-lighter:focus, -button.bg-gray-dark-lighter:hover, -button.bg-gray-dark-lighter:focus { - background-color: #a8abad !important; -} - -.bg-gray-dark-light { - background-color: #717579 !important; -} - -a.bg-gray-dark-light:hover, a.bg-gray-dark-light:focus, -button.bg-gray-dark-light:hover, -button.bg-gray-dark-light:focus { - background-color: #585c5f !important; -} - -.bg-gray-dark-dark { - background-color: #2a2e33 !important; -} - -a.bg-gray-dark-dark:hover, a.bg-gray-dark-dark:focus, -button.bg-gray-dark-dark:hover, -button.bg-gray-dark-dark:focus { - background-color: #131517 !important; -} - -.bg-gray-dark-darker { - background-color: #15171a !important; -} - -a.bg-gray-dark-darker:hover, a.bg-gray-dark-darker:focus, -button.bg-gray-dark-darker:hover, -button.bg-gray-dark-darker:focus { - background-color: black !important; -} - -.bg-gray-dark-darkest { - background-color: #0a0c0d !important; -} - -a.bg-gray-dark-darkest:hover, a.bg-gray-dark-darkest:focus, -button.bg-gray-dark-darkest:hover, -button.bg-gray-dark-darkest:focus { - background-color: black !important; -} - -.bg-azure-lightest { - background-color: #ecf7fe !important; -} - -a.bg-azure-lightest:hover, a.bg-azure-lightest:focus, -button.bg-azure-lightest:hover, -button.bg-azure-lightest:focus { - background-color: #bce3fb !important; -} - -.bg-azure-lighter { - background-color: #c7e6fb !important; -} - -a.bg-azure-lighter:hover, a.bg-azure-lighter:focus, -button.bg-azure-lighter:hover, -button.bg-azure-lighter:focus { - background-color: #97d1f8 !important; -} - -.bg-azure-light { - background-color: #7dc4f6 !important; -} - -a.bg-azure-light:hover, a.bg-azure-light:focus, -button.bg-azure-light:hover, -button.bg-azure-light:focus { - background-color: #4daef3 !important; -} - -.bg-azure-dark { - background-color: #3788c2 !important; -} - -a.bg-azure-dark:hover, a.bg-azure-dark:focus, -button.bg-azure-dark:hover, -button.bg-azure-dark:focus { - background-color: #2c6c9a !important; -} - -.bg-azure-darker { - background-color: #1c4461 !important; -} - -a.bg-azure-darker:hover, a.bg-azure-darker:focus, -button.bg-azure-darker:hover, -button.bg-azure-darker:focus { - background-color: #112839 !important; -} - -.bg-azure-darkest { - background-color: #0e2230 !important; -} - -a.bg-azure-darkest:hover, a.bg-azure-darkest:focus, -button.bg-azure-darkest:hover, -button.bg-azure-darkest:focus { - background-color: #020609 !important; -} - -.bg-lime-lightest { - background-color: #f2fbeb !important; -} - -a.bg-lime-lightest:hover, a.bg-lime-lightest:focus, -button.bg-lime-lightest:hover, -button.bg-lime-lightest:focus { - background-color: #d6f3c1 !important; -} - -.bg-lime-lighter { - background-color: #d7f2c2 !important; -} - -a.bg-lime-lighter:hover, a.bg-lime-lighter:focus, -button.bg-lime-lighter:hover, -button.bg-lime-lighter:focus { - background-color: #bbe998 !important; -} - -.bg-lime-light { - background-color: #a3e072 !important; -} - -a.bg-lime-light:hover, a.bg-lime-light:focus, -button.bg-lime-light:hover, -button.bg-lime-light:focus { - background-color: #88d748 !important; -} - -.bg-lime-dark { - background-color: #62a82a !important; -} - -a.bg-lime-dark:hover, a.bg-lime-dark:focus, -button.bg-lime-dark:hover, -button.bg-lime-dark:focus { - background-color: #4a7f20 !important; -} - -.bg-lime-darker { - background-color: #315415 !important; -} - -a.bg-lime-darker:hover, a.bg-lime-darker:focus, -button.bg-lime-darker:hover, -button.bg-lime-darker:focus { - background-color: #192b0b !important; -} - -.bg-lime-darkest { - background-color: #192a0b !important; -} - -a.bg-lime-darkest:hover, a.bg-lime-darkest:focus, -button.bg-lime-darkest:hover, -button.bg-lime-darkest:focus { - background-color: #010200 !important; -} - -.display-1 i, -.display-2 i, -.display-3 i, -.display-4 i { - vertical-align: baseline; - font-size: 0.815em; -} - -.text-inherit { - color: inherit !important; -} - -.text-default { - color: #495057 !important; -} - -.text-muted-dark { - color: #6e7687 !important; -} - -.tracking-tight { - letter-spacing: -0.05em !important; -} - -.tracking-normal { - letter-spacing: 0 !important; -} - -.tracking-wide { - letter-spacing: 0.05em !important; -} - -.leading-none { - line-height: 1 !important; -} - -.leading-tight { - line-height: 1.25 !important; -} - -.leading-normal { - line-height: 1.5 !important; -} - -.leading-loose { - line-height: 2 !important; -} - -.bg-blue { - background-color: #467fcf !important; -} - -a.bg-blue:hover, a.bg-blue:focus, -button.bg-blue:hover, -button.bg-blue:focus { - background-color: #2f66b3 !important; -} - -.text-blue { - color: #467fcf !important; -} - -.bg-indigo { - background-color: #6574cd !important; -} - -a.bg-indigo:hover, a.bg-indigo:focus, -button.bg-indigo:hover, -button.bg-indigo:focus { - background-color: #3f51c1 !important; -} - -.text-indigo { - color: #6574cd !important; -} - -.bg-purple { - background-color: #a55eea !important; -} - -a.bg-purple:hover, a.bg-purple:focus, -button.bg-purple:hover, -button.bg-purple:focus { - background-color: #8c31e4 !important; -} - -.text-purple { - color: #a55eea !important; -} - -.bg-pink { - background-color: #f66d9b !important; -} - -a.bg-pink:hover, a.bg-pink:focus, -button.bg-pink:hover, -button.bg-pink:focus { - background-color: #f33d7a !important; -} - -.text-pink { - color: #f66d9b !important; -} - -.bg-red { - background-color: #cd201f !important; -} - -a.bg-red:hover, a.bg-red:focus, -button.bg-red:hover, -button.bg-red:focus { - background-color: #a11918 !important; -} - -.text-red { - color: #cd201f !important; -} - -.bg-orange { - background-color: #fd9644 !important; -} - -a.bg-orange:hover, a.bg-orange:focus, -button.bg-orange:hover, -button.bg-orange:focus { - background-color: #fc7a12 !important; -} - -.text-orange { - color: #fd9644 !important; -} - -.bg-yellow { - background-color: #f1c40f !important; -} - -a.bg-yellow:hover, a.bg-yellow:focus, -button.bg-yellow:hover, -button.bg-yellow:focus { - background-color: #c29d0b !important; -} - -.text-yellow { - color: #f1c40f !important; -} - -.bg-green { - background-color: #5eba00 !important; -} - -a.bg-green:hover, a.bg-green:focus, -button.bg-green:hover, -button.bg-green:focus { - background-color: #448700 !important; -} - -.text-green { - color: #5eba00 !important; -} - -.bg-teal { - background-color: #2bcbba !important; -} - -a.bg-teal:hover, a.bg-teal:focus, -button.bg-teal:hover, -button.bg-teal:focus { - background-color: #22a193 !important; -} - -.text-teal { - color: #2bcbba !important; -} - -.bg-cyan { - background-color: #17a2b8 !important; -} - -a.bg-cyan:hover, a.bg-cyan:focus, -button.bg-cyan:hover, -button.bg-cyan:focus { - background-color: #117a8b !important; -} - -.text-cyan { - color: #17a2b8 !important; -} - -.bg-white { - background-color: #fff !important; -} - -a.bg-white:hover, a.bg-white:focus, -button.bg-white:hover, -button.bg-white:focus { - background-color: #e6e5e5 !important; -} - -.text-white { - color: #fff !important; -} - -.bg-gray { - background-color: #868e96 !important; -} - -a.bg-gray:hover, a.bg-gray:focus, -button.bg-gray:hover, -button.bg-gray:focus { - background-color: #6c757d !important; -} - -.text-gray { - color: #868e96 !important; -} - -.bg-gray-dark { - background-color: #343a40 !important; -} - -a.bg-gray-dark:hover, a.bg-gray-dark:focus, -button.bg-gray-dark:hover, -button.bg-gray-dark:focus { - background-color: #1d2124 !important; -} - -.text-gray-dark { - color: #343a40 !important; -} - -.bg-azure { - background-color: #45aaf2 !important; -} - -a.bg-azure:hover, a.bg-azure:focus, -button.bg-azure:hover, -button.bg-azure:focus { - background-color: #1594ef !important; -} - -.text-azure { - color: #45aaf2 !important; -} - -.bg-lime { - background-color: #7bd235 !important; -} - -a.bg-lime:hover, a.bg-lime:focus, -button.bg-lime:hover, -button.bg-lime:focus { - background-color: #63ad27 !important; -} - -.text-lime { - color: #7bd235 !important; -} - -.icon { - color: #9aa0ac !important; -} - -.icon i { - vertical-align: -1px; -} - -a.icon { - text-decoration: none; - cursor: pointer; -} - -a.icon:hover { - color: #495057 !important; -} - -.o-auto { - overflow: auto !important; -} - -.o-hidden { - overflow: hidden !important; -} - -.shadow { - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; -} - -.shadow-none { - box-shadow: none !important; -} - -.nav-link, -.nav-item { - padding: 0 .75rem; - min-width: 2rem; - transition: .3s color; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - cursor: pointer; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; -} - -.nav-link .badge, -.nav-item .badge { - position: absolute; - top: 0; - right: 0; - padding: .2rem .25rem; - min-width: 1rem; -} - -.nav-tabs { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - color: #9aa0ac; - margin: 0 -.75rem; -} - -.nav-tabs .nav-link { - border: 0; - color: inherit; - border-bottom: 1px solid transparent; - margin-bottom: -1px; - transition: .3s border-color; - font-weight: 400; - padding: 1rem 0; -} - -.nav-tabs .nav-link:hover:not(.disabled) { - border-color: #6e7687; - color: #6e7687; -} - -.nav-tabs .nav-link.active { - border-color: #467fcf; - color: #467fcf; - background: transparent; -} - -.nav-tabs .nav-link.disabled { - opacity: .4; - cursor: default; - pointer-events: none; -} - -.nav-tabs .nav-item { - margin-bottom: 0; - position: relative; -} - -.nav-tabs .nav-item i { - margin-right: .25rem; - line-height: 1; - font-size: 0.875rem; - width: 0.875rem; - vertical-align: baseline; - display: inline-block; -} - -.nav-tabs .nav-item:hover .nav-submenu { - display: block; -} - -.nav-tabs .nav-submenu { - display: none; - position: absolute; - background: #fff; - border: 1px solid rgba(0, 40, 100, 0.12); - border-top: none; - z-index: 10; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); - min-width: 10rem; - border-radius: 0 0 3px 3px; -} - -.nav-tabs .nav-submenu .nav-item { - display: block; - padding: .5rem 1rem; - color: #9aa0ac; - margin: 0 !important; - cursor: pointer; - transition: .3s background; -} - -.nav-tabs .nav-submenu .nav-item.active { - color: #467fcf; -} - -.nav-tabs .nav-submenu .nav-item:hover { - color: #6e7687; - text-decoration: none; - background: rgba(0, 0, 0, 0.024); -} - -.btn { - cursor: pointer; - font-weight: 600; - letter-spacing: .03em; - font-size: 0.8125rem; - min-width: 2.375rem; -} - -.btn i { - font-size: 1rem; - vertical-align: -2px; -} - -.btn-icon { - padding-left: .5rem; - padding-right: .5rem; - text-align: center; -} - -.btn-secondary { - color: #495057; - background-color: #fff; - border-color: rgba(0, 40, 100, 0.12); - box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.05); -} - -.btn-secondary:hover { - color: #495057; - background-color: #f6f6f6; - border-color: rgba(0, 20, 49, 0.12); -} - -.btn-secondary:focus, .btn-secondary.focus { - box-shadow: 0 0 0 2px rgba(0, 40, 100, 0.5); -} - -.btn-secondary.disabled, .btn-secondary:disabled { - color: #495057; - background-color: #fff; - border-color: rgba(0, 40, 100, 0.12); -} - -.btn-secondary:not(:disabled):not(.disabled):active, .btn-secondary:not(:disabled):not(.disabled).active, -.show > .btn-secondary.dropdown-toggle { - color: #495057; - background-color: #e6e5e5; - border-color: rgba(0, 15, 36, 0.12); -} - -.btn-secondary:not(:disabled):not(.disabled):active:focus, .btn-secondary:not(:disabled):not(.disabled).active:focus, -.show > .btn-secondary.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(0, 40, 100, 0.5); -} - -.btn-pill { - border-radius: 10rem; - padding-left: 1.5em; - padding-right: 1.5em; -} - -.btn-square { - border-radius: 0; -} - -.btn-facebook { - color: #fff; - background-color: #3b5998; - border-color: #3b5998; -} - -.btn-facebook:hover { - color: #fff; - background-color: #30497c; - border-color: #2d4373; -} - -.btn-facebook:focus, .btn-facebook.focus { - box-shadow: 0 0 0 2px rgba(59, 89, 152, 0.5); -} - -.btn-facebook.disabled, .btn-facebook:disabled { - color: #fff; - background-color: #3b5998; - border-color: #3b5998; -} - -.btn-facebook:not(:disabled):not(.disabled):active, .btn-facebook:not(:disabled):not(.disabled).active, -.show > .btn-facebook.dropdown-toggle { - color: #fff; - background-color: #2d4373; - border-color: #293e6a; -} - -.btn-facebook:not(:disabled):not(.disabled):active:focus, .btn-facebook:not(:disabled):not(.disabled).active:focus, -.show > .btn-facebook.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(59, 89, 152, 0.5); -} - -.btn-twitter { - color: #fff; - background-color: #1da1f2; - border-color: #1da1f2; -} - -.btn-twitter:hover { - color: #fff; - background-color: #0d8ddc; - border-color: #0c85d0; -} - -.btn-twitter:focus, .btn-twitter.focus { - box-shadow: 0 0 0 2px rgba(29, 161, 242, 0.5); -} - -.btn-twitter.disabled, .btn-twitter:disabled { - color: #fff; - background-color: #1da1f2; - border-color: #1da1f2; -} - -.btn-twitter:not(:disabled):not(.disabled):active, .btn-twitter:not(:disabled):not(.disabled).active, -.show > .btn-twitter.dropdown-toggle { - color: #fff; - background-color: #0c85d0; - border-color: #0b7ec4; -} - -.btn-twitter:not(:disabled):not(.disabled):active:focus, .btn-twitter:not(:disabled):not(.disabled).active:focus, -.show > .btn-twitter.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(29, 161, 242, 0.5); -} - -.btn-google { - color: #fff; - background-color: #dc4e41; - border-color: #dc4e41; -} - -.btn-google:hover { - color: #fff; - background-color: #d03526; - border-color: #c63224; -} - -.btn-google:focus, .btn-google.focus { - box-shadow: 0 0 0 2px rgba(220, 78, 65, 0.5); -} - -.btn-google.disabled, .btn-google:disabled { - color: #fff; - background-color: #dc4e41; - border-color: #dc4e41; -} - -.btn-google:not(:disabled):not(.disabled):active, .btn-google:not(:disabled):not(.disabled).active, -.show > .btn-google.dropdown-toggle { - color: #fff; - background-color: #c63224; - border-color: #bb2f22; -} - -.btn-google:not(:disabled):not(.disabled):active:focus, .btn-google:not(:disabled):not(.disabled).active:focus, -.show > .btn-google.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(220, 78, 65, 0.5); -} - -.btn-youtube { - color: #fff; - background-color: #f00; - border-color: #f00; -} - -.btn-youtube:hover { - color: #fff; - background-color: #d90000; - border-color: #cc0000; -} - -.btn-youtube:focus, .btn-youtube.focus { - box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.5); -} - -.btn-youtube.disabled, .btn-youtube:disabled { - color: #fff; - background-color: #f00; - border-color: #f00; -} - -.btn-youtube:not(:disabled):not(.disabled):active, .btn-youtube:not(:disabled):not(.disabled).active, -.show > .btn-youtube.dropdown-toggle { - color: #fff; - background-color: #cc0000; - border-color: #bf0000; -} - -.btn-youtube:not(:disabled):not(.disabled):active:focus, .btn-youtube:not(:disabled):not(.disabled).active:focus, -.show > .btn-youtube.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.5); -} - -.btn-vimeo { - color: #fff; - background-color: #1ab7ea; - border-color: #1ab7ea; -} - -.btn-vimeo:hover { - color: #fff; - background-color: #139ecb; - border-color: #1295bf; -} - -.btn-vimeo:focus, .btn-vimeo.focus { - box-shadow: 0 0 0 2px rgba(26, 183, 234, 0.5); -} - -.btn-vimeo.disabled, .btn-vimeo:disabled { - color: #fff; - background-color: #1ab7ea; - border-color: #1ab7ea; -} - -.btn-vimeo:not(:disabled):not(.disabled):active, .btn-vimeo:not(:disabled):not(.disabled).active, -.show > .btn-vimeo.dropdown-toggle { - color: #fff; - background-color: #1295bf; - border-color: #108cb4; -} - -.btn-vimeo:not(:disabled):not(.disabled):active:focus, .btn-vimeo:not(:disabled):not(.disabled).active:focus, -.show > .btn-vimeo.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(26, 183, 234, 0.5); -} - -.btn-dribbble { - color: #fff; - background-color: #ea4c89; - border-color: #ea4c89; -} - -.btn-dribbble:hover { - color: #fff; - background-color: #e62a72; - border-color: #e51e6b; -} - -.btn-dribbble:focus, .btn-dribbble.focus { - box-shadow: 0 0 0 2px rgba(234, 76, 137, 0.5); -} - -.btn-dribbble.disabled, .btn-dribbble:disabled { - color: #fff; - background-color: #ea4c89; - border-color: #ea4c89; -} - -.btn-dribbble:not(:disabled):not(.disabled):active, .btn-dribbble:not(:disabled):not(.disabled).active, -.show > .btn-dribbble.dropdown-toggle { - color: #fff; - background-color: #e51e6b; - border-color: #dc1a65; -} - -.btn-dribbble:not(:disabled):not(.disabled):active:focus, .btn-dribbble:not(:disabled):not(.disabled).active:focus, -.show > .btn-dribbble.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(234, 76, 137, 0.5); -} - -.btn-github { - color: #fff; - background-color: #181717; - border-color: #181717; -} - -.btn-github:hover { - color: #fff; - background-color: #040404; - border-color: black; -} - -.btn-github:focus, .btn-github.focus { - box-shadow: 0 0 0 2px rgba(24, 23, 23, 0.5); -} - -.btn-github.disabled, .btn-github:disabled { - color: #fff; - background-color: #181717; - border-color: #181717; -} - -.btn-github:not(:disabled):not(.disabled):active, .btn-github:not(:disabled):not(.disabled).active, -.show > .btn-github.dropdown-toggle { - color: #fff; - background-color: black; - border-color: black; -} - -.btn-github:not(:disabled):not(.disabled):active:focus, .btn-github:not(:disabled):not(.disabled).active:focus, -.show > .btn-github.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(24, 23, 23, 0.5); -} - -.btn-instagram { - color: #fff; - background-color: #e4405f; - border-color: #e4405f; -} - -.btn-instagram:hover { - color: #fff; - background-color: #de1f44; - border-color: #d31e40; -} - -.btn-instagram:focus, .btn-instagram.focus { - box-shadow: 0 0 0 2px rgba(228, 64, 95, 0.5); -} - -.btn-instagram.disabled, .btn-instagram:disabled { - color: #fff; - background-color: #e4405f; - border-color: #e4405f; -} - -.btn-instagram:not(:disabled):not(.disabled):active, .btn-instagram:not(:disabled):not(.disabled).active, -.show > .btn-instagram.dropdown-toggle { - color: #fff; - background-color: #d31e40; - border-color: #c81c3d; -} - -.btn-instagram:not(:disabled):not(.disabled):active:focus, .btn-instagram:not(:disabled):not(.disabled).active:focus, -.show > .btn-instagram.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(228, 64, 95, 0.5); -} - -.btn-pinterest { - color: #fff; - background-color: #bd081c; - border-color: #bd081c; -} - -.btn-pinterest:hover { - color: #fff; - background-color: #980617; - border-color: #8c0615; -} - -.btn-pinterest:focus, .btn-pinterest.focus { - box-shadow: 0 0 0 2px rgba(189, 8, 28, 0.5); -} - -.btn-pinterest.disabled, .btn-pinterest:disabled { - color: #fff; - background-color: #bd081c; - border-color: #bd081c; -} - -.btn-pinterest:not(:disabled):not(.disabled):active, .btn-pinterest:not(:disabled):not(.disabled).active, -.show > .btn-pinterest.dropdown-toggle { - color: #fff; - background-color: #8c0615; - border-color: #800513; -} - -.btn-pinterest:not(:disabled):not(.disabled):active:focus, .btn-pinterest:not(:disabled):not(.disabled).active:focus, -.show > .btn-pinterest.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(189, 8, 28, 0.5); -} - -.btn-vk { - color: #fff; - background-color: #6383a8; - border-color: #6383a8; -} - -.btn-vk:hover { - color: #fff; - background-color: #527093; - border-color: #4d6a8b; -} - -.btn-vk:focus, .btn-vk.focus { - box-shadow: 0 0 0 2px rgba(99, 131, 168, 0.5); -} - -.btn-vk.disabled, .btn-vk:disabled { - color: #fff; - background-color: #6383a8; - border-color: #6383a8; -} - -.btn-vk:not(:disabled):not(.disabled):active, .btn-vk:not(:disabled):not(.disabled).active, -.show > .btn-vk.dropdown-toggle { - color: #fff; - background-color: #4d6a8b; - border-color: #496482; -} - -.btn-vk:not(:disabled):not(.disabled):active:focus, .btn-vk:not(:disabled):not(.disabled).active:focus, -.show > .btn-vk.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(99, 131, 168, 0.5); -} - -.btn-rss { - color: #fff; - background-color: #ffa500; - border-color: #ffa500; -} - -.btn-rss:hover { - color: #fff; - background-color: #d98c00; - border-color: #cc8400; -} - -.btn-rss:focus, .btn-rss.focus { - box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.5); -} - -.btn-rss.disabled, .btn-rss:disabled { - color: #fff; - background-color: #ffa500; - border-color: #ffa500; -} - -.btn-rss:not(:disabled):not(.disabled):active, .btn-rss:not(:disabled):not(.disabled).active, -.show > .btn-rss.dropdown-toggle { - color: #fff; - background-color: #cc8400; - border-color: #bf7c00; -} - -.btn-rss:not(:disabled):not(.disabled):active:focus, .btn-rss:not(:disabled):not(.disabled).active:focus, -.show > .btn-rss.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.5); -} - -.btn-flickr { - color: #fff; - background-color: #0063dc; - border-color: #0063dc; -} - -.btn-flickr:hover { - color: #fff; - background-color: #0052b6; - border-color: #004ca9; -} - -.btn-flickr:focus, .btn-flickr.focus { - box-shadow: 0 0 0 2px rgba(0, 99, 220, 0.5); -} - -.btn-flickr.disabled, .btn-flickr:disabled { - color: #fff; - background-color: #0063dc; - border-color: #0063dc; -} - -.btn-flickr:not(:disabled):not(.disabled):active, .btn-flickr:not(:disabled):not(.disabled).active, -.show > .btn-flickr.dropdown-toggle { - color: #fff; - background-color: #004ca9; - border-color: #00469c; -} - -.btn-flickr:not(:disabled):not(.disabled):active:focus, .btn-flickr:not(:disabled):not(.disabled).active:focus, -.show > .btn-flickr.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(0, 99, 220, 0.5); -} - -.btn-bitbucket { - color: #fff; - background-color: #0052cc; - border-color: #0052cc; -} - -.btn-bitbucket:hover { - color: #fff; - background-color: #0043a6; - border-color: #003e99; -} - -.btn-bitbucket:focus, .btn-bitbucket.focus { - box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.5); -} - -.btn-bitbucket.disabled, .btn-bitbucket:disabled { - color: #fff; - background-color: #0052cc; - border-color: #0052cc; -} - -.btn-bitbucket:not(:disabled):not(.disabled):active, .btn-bitbucket:not(:disabled):not(.disabled).active, -.show > .btn-bitbucket.dropdown-toggle { - color: #fff; - background-color: #003e99; - border-color: #00388c; -} - -.btn-bitbucket:not(:disabled):not(.disabled):active:focus, .btn-bitbucket:not(:disabled):not(.disabled).active:focus, -.show > .btn-bitbucket.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.5); -} - -.btn-blue { - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.btn-blue:hover { - color: #fff; - background-color: #316cbe; - border-color: #2f66b3; -} - -.btn-blue:focus, .btn-blue.focus { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.5); -} - -.btn-blue.disabled, .btn-blue:disabled { - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.btn-blue:not(:disabled):not(.disabled):active, .btn-blue:not(:disabled):not(.disabled).active, -.show > .btn-blue.dropdown-toggle { - color: #fff; - background-color: #2f66b3; - border-color: #2c60a9; -} - -.btn-blue:not(:disabled):not(.disabled):active:focus, .btn-blue:not(:disabled):not(.disabled).active:focus, -.show > .btn-blue.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.5); -} - -.btn-indigo { - color: #fff; - background-color: #6574cd; - border-color: #6574cd; -} - -.btn-indigo:hover { - color: #fff; - background-color: #485ac4; - border-color: #3f51c1; -} - -.btn-indigo:focus, .btn-indigo.focus { - box-shadow: 0 0 0 2px rgba(101, 116, 205, 0.5); -} - -.btn-indigo.disabled, .btn-indigo:disabled { - color: #fff; - background-color: #6574cd; - border-color: #6574cd; -} - -.btn-indigo:not(:disabled):not(.disabled):active, .btn-indigo:not(:disabled):not(.disabled).active, -.show > .btn-indigo.dropdown-toggle { - color: #fff; - background-color: #3f51c1; - border-color: #3b4db7; -} - -.btn-indigo:not(:disabled):not(.disabled):active:focus, .btn-indigo:not(:disabled):not(.disabled).active:focus, -.show > .btn-indigo.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(101, 116, 205, 0.5); -} - -.btn-purple { - color: #fff; - background-color: #a55eea; - border-color: #a55eea; -} - -.btn-purple:hover { - color: #fff; - background-color: #923ce6; - border-color: #8c31e4; -} - -.btn-purple:focus, .btn-purple.focus { - box-shadow: 0 0 0 2px rgba(165, 94, 234, 0.5); -} - -.btn-purple.disabled, .btn-purple:disabled { - color: #fff; - background-color: #a55eea; - border-color: #a55eea; -} - -.btn-purple:not(:disabled):not(.disabled):active, .btn-purple:not(:disabled):not(.disabled).active, -.show > .btn-purple.dropdown-toggle { - color: #fff; - background-color: #8c31e4; - border-color: #8526e3; -} - -.btn-purple:not(:disabled):not(.disabled):active:focus, .btn-purple:not(:disabled):not(.disabled).active:focus, -.show > .btn-purple.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(165, 94, 234, 0.5); -} - -.btn-pink { - color: #fff; - background-color: #f66d9b; - border-color: #f66d9b; -} - -.btn-pink:hover { - color: #fff; - background-color: #f44982; - border-color: #f33d7a; -} - -.btn-pink:focus, .btn-pink.focus { - box-shadow: 0 0 0 2px rgba(246, 109, 155, 0.5); -} - -.btn-pink.disabled, .btn-pink:disabled { - color: #fff; - background-color: #f66d9b; - border-color: #f66d9b; -} - -.btn-pink:not(:disabled):not(.disabled):active, .btn-pink:not(:disabled):not(.disabled).active, -.show > .btn-pink.dropdown-toggle { - color: #fff; - background-color: #f33d7a; - border-color: #f23172; -} - -.btn-pink:not(:disabled):not(.disabled):active:focus, .btn-pink:not(:disabled):not(.disabled).active:focus, -.show > .btn-pink.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(246, 109, 155, 0.5); -} - -.btn-red { - color: #fff; - background-color: #cd201f; - border-color: #cd201f; -} - -.btn-red:hover { - color: #fff; - background-color: #ac1b1a; - border-color: #a11918; -} - -.btn-red:focus, .btn-red.focus { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.5); -} - -.btn-red.disabled, .btn-red:disabled { - color: #fff; - background-color: #cd201f; - border-color: #cd201f; -} - -.btn-red:not(:disabled):not(.disabled):active, .btn-red:not(:disabled):not(.disabled).active, -.show > .btn-red.dropdown-toggle { - color: #fff; - background-color: #a11918; - border-color: #961717; -} - -.btn-red:not(:disabled):not(.disabled):active:focus, .btn-red:not(:disabled):not(.disabled).active:focus, -.show > .btn-red.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.5); -} - -.btn-orange { - color: #fff; - background-color: #fd9644; - border-color: #fd9644; -} - -.btn-orange:hover { - color: #fff; - background-color: #fd811e; - border-color: #fc7a12; -} - -.btn-orange:focus, .btn-orange.focus { - box-shadow: 0 0 0 2px rgba(253, 150, 68, 0.5); -} - -.btn-orange.disabled, .btn-orange:disabled { - color: #fff; - background-color: #fd9644; - border-color: #fd9644; -} - -.btn-orange:not(:disabled):not(.disabled):active, .btn-orange:not(:disabled):not(.disabled).active, -.show > .btn-orange.dropdown-toggle { - color: #fff; - background-color: #fc7a12; - border-color: #fc7305; -} - -.btn-orange:not(:disabled):not(.disabled):active:focus, .btn-orange:not(:disabled):not(.disabled).active:focus, -.show > .btn-orange.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(253, 150, 68, 0.5); -} - -.btn-yellow { - color: #fff; - background-color: #f1c40f; - border-color: #f1c40f; -} - -.btn-yellow:hover { - color: #fff; - background-color: #cea70c; - border-color: #c29d0b; -} - -.btn-yellow:focus, .btn-yellow.focus { - box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.5); -} - -.btn-yellow.disabled, .btn-yellow:disabled { - color: #fff; - background-color: #f1c40f; - border-color: #f1c40f; -} - -.btn-yellow:not(:disabled):not(.disabled):active, .btn-yellow:not(:disabled):not(.disabled).active, -.show > .btn-yellow.dropdown-toggle { - color: #fff; - background-color: #c29d0b; - border-color: #b6940b; -} - -.btn-yellow:not(:disabled):not(.disabled):active:focus, .btn-yellow:not(:disabled):not(.disabled).active:focus, -.show > .btn-yellow.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.5); -} - -.btn-green { - color: #fff; - background-color: #5eba00; - border-color: #5eba00; -} - -.btn-green:hover { - color: #fff; - background-color: #4b9400; - border-color: #448700; -} - -.btn-green:focus, .btn-green.focus { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.5); -} - -.btn-green.disabled, .btn-green:disabled { - color: #fff; - background-color: #5eba00; - border-color: #5eba00; -} - -.btn-green:not(:disabled):not(.disabled):active, .btn-green:not(:disabled):not(.disabled).active, -.show > .btn-green.dropdown-toggle { - color: #fff; - background-color: #448700; - border-color: #3e7a00; -} - -.btn-green:not(:disabled):not(.disabled):active:focus, .btn-green:not(:disabled):not(.disabled).active:focus, -.show > .btn-green.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.5); -} - -.btn-teal { - color: #fff; - background-color: #2bcbba; - border-color: #2bcbba; -} - -.btn-teal:hover { - color: #fff; - background-color: #24ab9d; - border-color: #22a193; -} - -.btn-teal:focus, .btn-teal.focus { - box-shadow: 0 0 0 2px rgba(43, 203, 186, 0.5); -} - -.btn-teal.disabled, .btn-teal:disabled { - color: #fff; - background-color: #2bcbba; - border-color: #2bcbba; -} - -.btn-teal:not(:disabled):not(.disabled):active, .btn-teal:not(:disabled):not(.disabled).active, -.show > .btn-teal.dropdown-toggle { - color: #fff; - background-color: #22a193; - border-color: #20968a; -} - -.btn-teal:not(:disabled):not(.disabled):active:focus, .btn-teal:not(:disabled):not(.disabled).active:focus, -.show > .btn-teal.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(43, 203, 186, 0.5); -} - -.btn-cyan { - color: #fff; - background-color: #17a2b8; - border-color: #17a2b8; -} - -.btn-cyan:hover { - color: #fff; - background-color: #138496; - border-color: #117a8b; -} - -.btn-cyan:focus, .btn-cyan.focus { - box-shadow: 0 0 0 2px rgba(23, 162, 184, 0.5); -} - -.btn-cyan.disabled, .btn-cyan:disabled { - color: #fff; - background-color: #17a2b8; - border-color: #17a2b8; -} - -.btn-cyan:not(:disabled):not(.disabled):active, .btn-cyan:not(:disabled):not(.disabled).active, -.show > .btn-cyan.dropdown-toggle { - color: #fff; - background-color: #117a8b; - border-color: #10707f; -} - -.btn-cyan:not(:disabled):not(.disabled):active:focus, .btn-cyan:not(:disabled):not(.disabled).active:focus, -.show > .btn-cyan.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(23, 162, 184, 0.5); -} - -.btn-white { - color: #495057; - background-color: #fff; - border-color: #fff; -} - -.btn-white:hover { - color: #495057; - background-color: #ececec; - border-color: #e6e5e5; -} - -.btn-white:focus, .btn-white.focus { - box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); -} - -.btn-white.disabled, .btn-white:disabled { - color: #495057; - background-color: #fff; - border-color: #fff; -} - -.btn-white:not(:disabled):not(.disabled):active, .btn-white:not(:disabled):not(.disabled).active, -.show > .btn-white.dropdown-toggle { - color: #495057; - background-color: #e6e5e5; - border-color: #dfdfdf; -} - -.btn-white:not(:disabled):not(.disabled):active:focus, .btn-white:not(:disabled):not(.disabled).active:focus, -.show > .btn-white.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); -} - -.btn-gray { - color: #fff; - background-color: #868e96; - border-color: #868e96; -} - -.btn-gray:hover { - color: #fff; - background-color: #727b84; - border-color: #6c757d; -} - -.btn-gray:focus, .btn-gray.focus { - box-shadow: 0 0 0 2px rgba(134, 142, 150, 0.5); -} - -.btn-gray.disabled, .btn-gray:disabled { - color: #fff; - background-color: #868e96; - border-color: #868e96; -} - -.btn-gray:not(:disabled):not(.disabled):active, .btn-gray:not(:disabled):not(.disabled).active, -.show > .btn-gray.dropdown-toggle { - color: #fff; - background-color: #6c757d; - border-color: #666e76; -} - -.btn-gray:not(:disabled):not(.disabled):active:focus, .btn-gray:not(:disabled):not(.disabled).active:focus, -.show > .btn-gray.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(134, 142, 150, 0.5); -} - -.btn-gray-dark { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} - -.btn-gray-dark:hover { - color: #fff; - background-color: #23272b; - border-color: #1d2124; -} - -.btn-gray-dark:focus, .btn-gray-dark.focus { - box-shadow: 0 0 0 2px rgba(52, 58, 64, 0.5); -} - -.btn-gray-dark.disabled, .btn-gray-dark:disabled { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} - -.btn-gray-dark:not(:disabled):not(.disabled):active, .btn-gray-dark:not(:disabled):not(.disabled).active, -.show > .btn-gray-dark.dropdown-toggle { - color: #fff; - background-color: #1d2124; - border-color: #171a1d; -} - -.btn-gray-dark:not(:disabled):not(.disabled):active:focus, .btn-gray-dark:not(:disabled):not(.disabled).active:focus, -.show > .btn-gray-dark.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(52, 58, 64, 0.5); -} - -.btn-azure { - color: #fff; - background-color: #45aaf2; - border-color: #45aaf2; -} - -.btn-azure:hover { - color: #fff; - background-color: #219af0; - border-color: #1594ef; -} - -.btn-azure:focus, .btn-azure.focus { - box-shadow: 0 0 0 2px rgba(69, 170, 242, 0.5); -} - -.btn-azure.disabled, .btn-azure:disabled { - color: #fff; - background-color: #45aaf2; - border-color: #45aaf2; -} - -.btn-azure:not(:disabled):not(.disabled):active, .btn-azure:not(:disabled):not(.disabled).active, -.show > .btn-azure.dropdown-toggle { - color: #fff; - background-color: #1594ef; - border-color: #108ee7; -} - -.btn-azure:not(:disabled):not(.disabled):active:focus, .btn-azure:not(:disabled):not(.disabled).active:focus, -.show > .btn-azure.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(69, 170, 242, 0.5); -} - -.btn-lime { - color: #fff; - background-color: #7bd235; - border-color: #7bd235; -} - -.btn-lime:hover { - color: #fff; - background-color: #69b829; - border-color: #63ad27; -} - -.btn-lime:focus, .btn-lime.focus { - box-shadow: 0 0 0 2px rgba(123, 210, 53, 0.5); -} - -.btn-lime.disabled, .btn-lime:disabled { - color: #fff; - background-color: #7bd235; - border-color: #7bd235; -} - -.btn-lime:not(:disabled):not(.disabled):active, .btn-lime:not(:disabled):not(.disabled).active, -.show > .btn-lime.dropdown-toggle { - color: #fff; - background-color: #63ad27; - border-color: #5da324; -} - -.btn-lime:not(:disabled):not(.disabled):active:focus, .btn-lime:not(:disabled):not(.disabled).active:focus, -.show > .btn-lime.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(123, 210, 53, 0.5); -} - -.btn-option { - background: transparent; - color: #9aa0ac; -} - -.btn-option:hover { - color: #6e7687; -} - -.btn-option:focus { - box-shadow: none; - color: #6e7687; -} - -.btn-sm, .btn-group-sm > .btn { - font-size: 0.75rem; - min-width: 1.625rem; -} - -.btn-lg, .btn-group-lg > .btn { - font-size: 1rem; - min-width: 2.75rem; - font-weight: 400; -} - -.btn-list { - margin-bottom: -.5rem; - font-size: 0; -} - -.btn-list > .btn, -.btn-list > .dropdown { - margin-bottom: .5rem; -} - -.btn-list > .btn:not(:last-child), -.btn-list > .dropdown:not(:last-child) { - margin-right: .5rem; -} - -.btn-loading { - color: transparent !important; - pointer-events: none; - position: relative; -} - -.btn-loading:after { - content: ''; - -webkit-animation: loader 500ms infinite linear; - animation: loader 500ms infinite linear; - border: 2px solid #fff; - border-radius: 50%; - border-right-color: transparent !important; - border-top-color: transparent !important; - display: block; - height: 1.4em; - width: 1.4em; - position: absolute; - left: calc(50% - (1.4em / 2)); - top: calc(50% - (1.4em / 2)); - -webkit-transform-origin: center; - transform-origin: center; - position: absolute !important; -} - -.btn-loading.btn-sm:after, .btn-group-sm > .btn-loading.btn:after { - height: 1em; - width: 1em; - left: calc(50% - (1em / 2)); - top: calc(50% - (1em / 2)); -} - -.btn-loading.btn-secondary:after { - border-color: #495057; -} - -.alert { - font-size: 0.9375rem; -} - -.alert-icon { - padding-left: 3rem; -} - -.alert-icon > i { - color: inherit !important; - font-size: 1rem; - position: absolute; - top: 1rem; - left: 1rem; -} - -.alert-avatar { - padding-left: 3.75rem; -} - -.alert-avatar .avatar { - position: absolute; - top: .5rem; - left: .75rem; -} - -.close { - font-size: 1rem; - line-height: 1.5; - transition: .3s color; -} - -.close:before { - content: '\ea00'; - font-family: "feather"; -} - -.badge { - color: #fff; -} - -.badge-default { - background: #e9ecef; - color: #868e96; -} - -.table thead th, .text-wrap table thead th { - border-top: 0; - border-bottom-width: 1px; - padding-top: .5rem; - padding-bottom: .5rem; -} - -.table th, .text-wrap table th { - color: #9aa0ac; - text-transform: uppercase; - font-size: 0.875rem; - font-weight: 400; -} - -.table-md th, -.table-md td { - padding: .5rem; -} - -.table-vcenter td, -.table-vcenter th { - vertical-align: middle; -} - -.table-center td, -.table-center th { - text-align: center; -} - -.table-striped tbody tr:nth-of-type(odd) { - background: transparent; -} - -.table-striped tbody tr:nth-of-type(even) { - background-color: rgba(0, 0, 0, 0.02); -} - -.table-calendar { - margin: 0 0 .75rem; -} - -.table-calendar td, -.table-calendar th { - border: 0; - text-align: center; - padding: 0 !important; - width: 14.28571429%; - line-height: 2.5rem; -} - -.table-calendar td { - border-top: 0; -} - -.table-calendar-link { - line-height: 2rem; - min-width: calc(2rem + 2px); - display: inline-block; - border-radius: 3px; - background: #f8f9fa; - color: #495057; - font-weight: 600; - transition: .3s background, .3s color; - position: relative; -} - -.table-calendar-link:before { - content: ''; - width: 4px; - height: 4px; - position: absolute; - left: .25rem; - top: .25rem; - border-radius: 50px; - background: #467fcf; -} - -.table-calendar-link:hover { - color: #fff; - text-decoration: none; - background: #467fcf; - transition: .3s background; -} - -.table-calendar-link:hover:before { - background: #fff; -} - -.table-header { - cursor: pointer; - transition: .3s color; -} - -.table-header:hover { - color: #495057 !important; -} - -.table-header:after { - content: '\f0dc'; - font-family: FontAwesome; - display: inline-block; - margin-left: .5rem; - font-size: .75rem; -} - -.table-header-asc { - color: #495057 !important; -} - -.table-header-asc:after { - content: '\f0de'; -} - -.table-header-desc { - color: #495057 !important; -} - -.table-header-desc:after { - content: '\f0dd'; -} - -.page-breadcrumb { - background: none; - padding: 0; - margin: 1rem 0 0; - font-size: 0.875rem; -} - -@media (min-width: 768px) { - .page-breadcrumb { - margin: -.5rem 0 0; - } -} - -.page-breadcrumb .breadcrumb-item { - color: #9aa0ac; -} - -.page-breadcrumb .breadcrumb-item.active { - color: #6e7687; -} - -.pagination-simple .page-item .page-link { - background: none; - border: none; -} - -.pagination-simple .page-item.active .page-link { - color: #495057; - font-weight: 700; -} - -.pagination-pager .page-prev { - margin-right: auto; -} - -.pagination-pager .page-next { - margin-left: auto; -} - -.page-total-text { - margin-right: 1rem; - -ms-flex-item-align: center; - align-self: center; - color: #6e7687; -} - -.card { - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); - position: relative; - margin-bottom: 1.5rem; - width: 100%; -} - -.card .card { - box-shadow: none; -} - -@media print { - .card { - box-shadow: none; - border: none; - } -} - -.card-body { - -ms-flex: 1 1 auto; - flex: 1 1 auto; - margin: 0; - padding: 1.5rem 1.5rem; - position: relative; -} - -.card-body + .card-body { - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.card-body > :last-child { - margin-bottom: 0; -} - -@media print { - .card-body { - padding: 0; - } -} - -.card-body-scrollable { - overflow: auto; -} - -.card-footer, -.card-bottom { - padding: 1rem 1.5rem; - background: none; -} - -.card-footer { - border-top: 1px solid rgba(0, 40, 100, 0.12); - color: #6e7687; -} - -.card-header { - background: none; - padding: 0.5rem 1.5rem; - display: -ms-flexbox; - display: flex; - min-height: 3.5rem; - -ms-flex-align: center; - align-items: center; -} - -.card-header .card-title { - margin-bottom: 0; -} - -.card-header.border-0 + .card-body { - padding-top: 0; -} - -@media print { - .card-header { - display: none; - } -} - -.card-img-top { - border-top-left-radius: 3px; - border-top-right-radius: 3px; -} - -.card-img-overlay { - background-color: rgba(0, 0, 0, 0.4); - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; -} - -.card-title { - font-size: 1.125rem; - line-height: 1.2; - font-weight: 400; - margin-bottom: 1.5rem; -} - -.card-title a { - color: inherit; -} - -.card-title:only-child { - margin-bottom: 0; -} - -.card-title small, -.card-subtitle { - color: #9aa0ac; - font-size: 0.875rem; - display: block; - margin: -.75rem 0 1rem; - line-height: 1.1; - font-weight: 400; -} - -.card-table { - margin-bottom: 0; -} - -.card-table tr:first-child td, -.card-table tr:first-child th { - border-top: 0; -} - -.card-table tr td:first-child, -.card-table tr th:first-child { - padding-left: 1.5rem; -} - -.card-table tr td:last-child, -.card-table tr th:last-child { - padding-right: 1.5rem; -} - -.card-body + .card-table { - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.card-profile .card-header { - height: 9rem; - background-size: cover; -} - -.card-profile-img { - max-width: 6rem; - margin-top: -5rem; - margin-bottom: 1rem; - border: 3px solid #fff; - border-radius: 100%; - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); -} - -.card-link + .card-link { - margin-left: 1rem; -} - -.card-body + .card-list-group { - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.card-list-group .list-group-item { - border-right: 0; - border-left: 0; - border-radius: 0; - padding-left: 1.5rem; - padding-right: 1.5rem; -} - -.card-list-group .list-group-item:last-child { - border-bottom: 0; -} - -.card-list-group .list-group-item:first-child { - border-top: 0; -} - -.card-header-tabs { - margin: -1.25rem 0; - border-bottom: 0; - line-height: 2rem; -} - -.card-header-tabs .nav-item { - margin-bottom: 1px; -} - -.card-header-pills { - margin: -.75rem 0; -} - -.card-aside { - -ms-flex-direction: row; - flex-direction: row; -} - -.card-aside-column { - min-width: 5rem; - width: 30%; - -ms-flex: 0 0 30%; - flex: 0 0 30%; - border-top-left-radius: 3px; - border-bottom-left-radius: 3px; - background: no-repeat center/cover; -} - -.card-value { - font-size: 2.5rem; - line-height: 3.4rem; - height: 3.4rem; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - font-weight: 400; -} - -.card-value i { - vertical-align: middle; -} - -.card-chart-bg { - height: 4rem; - margin-top: -1rem; - position: relative; - z-index: 1; - overflow: hidden; -} - -.card-options { - margin-left: auto; - display: -ms-flexbox; - display: flex; - -ms-flex-order: 100; - order: 100; - margin-right: -.5rem; - color: #9aa0ac; - -ms-flex-item-align: center; - align-self: center; -} - -.card-options a:not(.btn) { - margin-left: .5rem; - color: #9aa0ac; - display: inline-block; - min-width: 1rem; -} - -.card-options a:not(.btn):hover { - text-decoration: none; - color: #6e7687; -} - -.card-options a:not(.btn) i { - font-size: 1rem; - vertical-align: middle; -} - -.card-options .dropdown-toggle:after { - display: none; -} - -/* -Card options - */ -.card-collapsed > :not(.card-header):not(.card-status) { - display: none; -} - -.card-collapsed .card-options-collapse i:before { - content: '\e92d'; -} - -.card-fullscreen .card-options-fullscreen i:before { - content: '\e992'; -} - -.card-fullscreen .card-options-remove { - display: none; -} - -/* -Card maps - */ -.card-map { - height: 15rem; - background: #e9ecef; -} - -.card-map-placeholder { - background: no-repeat center; -} - -/** -Card tabs - */ -.card-tabs { - display: -ms-flexbox; - display: flex; -} - -.card-tabs-bottom .card-tabs-item { - border: 0; - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.card-tabs-bottom .card-tabs-item.active { - border-top-color: #fff; -} - -.card-tabs-item { - -ms-flex: 1 1 auto; - flex: 1 1 auto; - display: block; - padding: 1rem 1.5rem; - border-bottom: 1px solid rgba(0, 40, 100, 0.12); - color: inherit; - overflow: hidden; -} - -a.card-tabs-item { - background: #fafbfc; -} - -a.card-tabs-item:hover { - text-decoration: none; - color: inherit; -} - -a.card-tabs-item:focus { - z-index: 1; -} - -a.card-tabs-item.active { - background: #fff; - border-bottom-color: #fff; -} - -.card-tabs-item + .card-tabs-item { - border-left: 1px solid rgba(0, 40, 100, 0.12); -} - -/** -Card status - */ -.card-status { - position: absolute; - top: -1px; - left: -1px; - right: -1px; - height: 3px; - border-radius: 3px 3px 0 0; - background: rgba(0, 40, 100, 0.12); -} - -.card-status-left { - right: auto; - bottom: 0; - height: auto; - width: 3px; - border-radius: 3px 0 0 3px; -} - -/** -Card icon - */ -.card-icon { - width: 3rem; - font-size: 2.5rem; - line-height: 3rem; - text-align: center; -} - -/** -Card fullscreen - */ -.card-fullscreen { - position: fixed; - top: 0; - left: 0; - right: 0; - bottom: 0; - z-index: 1; - margin: 0; -} - -/** -Card alert - */ -.card-alert { - border-radius: 0; - margin: -1px -1px 0; -} - -.card-category { - font-size: 0.875rem; - text-transform: uppercase; - text-align: center; - font-weight: 600; - letter-spacing: .05em; - margin: 0 0 .5rem; -} - -.popover { - -webkit-filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1)); - filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1)); -} - -.popover.bs-popover-top, .popover.bs-popover-auto[x-placement^="top"] { - margin-bottom: 0.625rem; -} - -.popover .arrow { - margin-left: calc(.25rem + 2px); -} - -.dropdown { - display: inline-block; -} - -.dropdown-menu { - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); - min-width: 12rem; -} - -.dropdown-item { - color: #6e7687; -} - -.dropdown-menu-arrow:before { - position: absolute; - top: -6px; - left: 12px; - display: inline-block; - border-right: 5px solid transparent; - border-bottom: 5px solid rgba(0, 40, 100, 0.12); - border-left: 5px solid transparent; - border-bottom-color: rgba(0, 0, 0, 0.2); - content: ''; -} - -.dropdown-menu-arrow:after { - position: absolute; - top: -5px; - left: 12px; - display: inline-block; - border-right: 5px solid transparent; - border-bottom: 5px solid #fff; - border-left: 5px solid transparent; - content: ''; -} - -.dropdown-menu-arrow.dropdown-menu-right:before, .dropdown-menu-arrow.dropdown-menu-right:after { - left: auto; - right: 12px; -} - -.dropdown-toggle { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - cursor: pointer; -} - -.dropdown-toggle:after { - vertical-align: 0.155em; -} - -.dropdown-toggle:empty:after { - margin-left: 0; -} - -.dropdown-icon { - color: #9aa0ac; - margin-right: .5rem; - margin-left: -.5rem; - width: 1em; - display: inline-block; - text-align: center; - vertical-align: -1px; -} - -.list-inline-dots .list-inline-item + .list-inline-item:before { - content: '· '; - margin-left: -2px; - margin-right: 3px; -} - -.list-separated-item { - padding: 1rem 0; -} - -.list-separated-item:first-child { - padding-top: 0; -} - -.list-separated-item:last-child { - padding-bottom: 0; -} - -.list-separated-item + .list-separated-item { - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.list-group-item.active .icon { - color: inherit !important; -} - -.list-group-transparent .list-group-item { - background: none; - border: 0; - padding: .5rem 1rem; - border-radius: 3px; -} - -.list-group-transparent .list-group-item.active { - background: rgba(70, 127, 207, 0.06); - font-weight: 600; -} - -.avatar { - width: 2rem; - height: 2rem; - line-height: 2rem; - border-radius: 50%; - display: inline-block; - background: #ced4da no-repeat center/cover; - position: relative; - text-align: center; - color: #868e96; - font-weight: 600; - vertical-align: bottom; - font-size: .875rem; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.avatar i { - font-size: 125%; - vertical-align: sub; -} - -.avatar-status { - position: absolute; - right: -2px; - bottom: -2px; - width: .75rem; - height: .75rem; - border: 2px solid #fff; - background: #868e96; - border-radius: 50%; -} - -.avatar-sm { - width: 1.5rem; - height: 1.5rem; - line-height: 1.5rem; - font-size: .75rem; -} - -.avatar-md { - width: 2.5rem; - height: 2.5rem; - line-height: 2.5rem; - font-size: 1rem; -} - -.avatar-lg { - width: 3rem; - height: 3rem; - line-height: 3rem; - font-size: 1.25rem; -} - -.avatar-xl { - width: 4rem; - height: 4rem; - line-height: 4rem; - font-size: 1.75rem; -} - -.avatar-xxl { - width: 5rem; - height: 5rem; - line-height: 5rem; - font-size: 2rem; -} - -.avatar-placeholder { - background: #ced4da url('data:image/svg+xml;charset=utf8,') no-repeat center/80%; -} - -.avatar-list { - margin: 0 0 -.5rem; - padding: 0; - font-size: 0; -} - -.avatar-list .avatar { - margin-bottom: .5rem; -} - -.avatar-list .avatar:not(:last-child) { - margin-right: .5rem; -} - -.avatar-list-stacked .avatar { - margin-right: -.8em !important; -} - -.avatar-list-stacked .avatar { - box-shadow: 0 0 0 2px #fff; -} - -.avatar-blue { - background-color: #c8d9f1; - color: #467fcf; -} - -.avatar-indigo { - background-color: #d1d5f0; - color: #6574cd; -} - -.avatar-purple { - background-color: #e4cff9; - color: #a55eea; -} - -.avatar-pink { - background-color: #fcd3e1; - color: #f66d9b; -} - -.avatar-red { - background-color: #f0bcbc; - color: #cd201f; -} - -.avatar-orange { - background-color: #fee0c7; - color: #fd9644; -} - -.avatar-yellow { - background-color: #fbedb7; - color: #f1c40f; -} - -.avatar-green { - background-color: #cfeab3; - color: #5eba00; -} - -.avatar-teal { - background-color: #bfefea; - color: #2bcbba; -} - -.avatar-cyan { - background-color: #b9e3ea; - color: #17a2b8; -} - -.avatar-white { - background-color: white; - color: #fff; -} - -.avatar-gray { - background-color: #dbdde0; - color: #868e96; -} - -.avatar-gray-dark { - background-color: #c2c4c6; - color: #343a40; -} - -.avatar-azure { - background-color: #c7e6fb; - color: #45aaf2; -} - -.avatar-lime { - background-color: #d7f2c2; - color: #7bd235; -} - -.product-price { - font-size: 1rem; -} - -.product-price strong { - font-size: 1.5rem; -} - -@-webkit-keyframes indeterminate { - 0% { - left: -35%; - right: 100%; - } - 100%, 60% { - left: 100%; - right: -90%; - } -} - -@keyframes indeterminate { - 0% { - left: -35%; - right: 100%; - } - 100%, 60% { - left: 100%; - right: -90%; - } -} - -@-webkit-keyframes indeterminate-short { - 0% { - left: -200%; - right: 100%; - } - 100%, 60% { - left: 107%; - right: -8%; - } -} - -@keyframes indeterminate-short { - 0% { - left: -200%; - right: 100%; - } - 100%, 60% { - left: 107%; - right: -8%; - } -} - -.progress { - position: relative; -} - -.progress-xs, -.progress-xs .progress-bar { - height: .25rem; -} - -.progress-sm, -.progress-sm .progress-bar { - height: .5rem; -} - -.progress-bar-indeterminate:after, .progress-bar-indeterminate:before { - content: ''; - position: absolute; - background-color: inherit; - left: 0; - will-change: left, right; - top: 0; - bottom: 0; -} - -.progress-bar-indeterminate:before { - -webkit-animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; -} - -.progress-bar-indeterminate:after { - -webkit-animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite; - animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite; - -webkit-animation-delay: 1.15s; - animation-delay: 1.15s; -} - -@-webkit-keyframes loader { - from { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - to { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -@keyframes loader { - from { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - to { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -/** -Dimmer -*/ -.dimmer { - position: relative; -} - -.dimmer .loader { - display: none; - margin: 0 auto; - position: absolute; - top: 50%; - left: 0; - right: 0; - -webkit-transform: translateY(-50%); - transform: translateY(-50%); -} - -.dimmer.active .loader { - display: block; -} - -.dimmer.active .dimmer-content { - opacity: .04; - pointer-events: none; -} - -/** -Loader -*/ -.loader { - display: block; - position: relative; - height: 2.5rem; - width: 2.5rem; - color: #467fcf; -} - -.loader:before, .loader:after { - width: 2.5rem; - height: 2.5rem; - margin: -1.25rem 0 0 -1.25rem; - position: absolute; - content: ''; - top: 50%; - left: 50%; -} - -.loader:before { - border-radius: 50%; - border: 3px solid currentColor; - opacity: .15; -} - -.loader:after { - -webkit-animation: loader .6s linear; - animation: loader .6s linear; - -webkit-animation-iteration-count: infinite; - animation-iteration-count: infinite; - border-radius: 50%; - border: 3px solid; - border-color: transparent; - border-top-color: currentColor; - box-shadow: 0 0 0 1px transparent; -} - -.icons-list { - list-style: none; - margin: 0 -1px -1px 0; - padding: 0; - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; -} - -.icons-list > li { - -ms-flex: 1 0 4rem; - flex: 1 0 4rem; -} - -.icons-list-wrap { - overflow: hidden; -} - -.icons-list-item { - text-align: center; - height: 4rem; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - border-right: 1px solid rgba(0, 40, 100, 0.12); - border-bottom: 1px solid rgba(0, 40, 100, 0.12); -} - -.icons-list-item i { - font-size: 1.25rem; -} - -.img-gallery { - margin-right: -.25rem; - margin-left: -.25rem; - margin-bottom: -.5rem; -} - -.img-gallery > .col, -.img-gallery > [class*="col-"] { - padding-left: .25rem; - padding-right: .25rem; - padding-bottom: .5rem; -} - -.link-overlay { - position: relative; -} - -.link-overlay:hover .link-overlay-bg { - opacity: 1; -} - -.link-overlay-bg { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - background: rgba(70, 127, 207, 0.8); - display: -ms-flexbox; - display: flex; - color: #fff; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - font-size: 1.25rem; - opacity: 0; - transition: .3s opacity; -} - -.media-icon { - width: 2rem; - height: 2rem; - line-height: 2rem; - text-align: center; - border-radius: 100%; -} - -.media-list { - margin: 0; - padding: 0; - list-style: none; -} - -textarea[cols] { - height: auto; -} - -.form-group { - display: block; -} - -.form-label { - display: block; - margin-bottom: .375rem; - font-weight: 600; - font-size: 0.875rem; -} - -.form-label-small { - float: right; - font-weight: 400; - font-size: 87.5%; -} - -.form-footer { - margin-top: 2rem; -} - -.custom-control { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.custom-controls-stacked .custom-control { - margin-bottom: .25rem; -} - -.custom-control-label { - vertical-align: middle; -} - -.custom-control-label:before { - border: 1px solid rgba(0, 40, 100, 0.12); - background-color: #fff; - background-size: .5rem; -} - -.custom-control-description { - line-height: 1.5rem; -} - -.input-group-prepend, -.input-group-append, -.input-group-btn { - font-size: 0.9375rem; -} - -.input-group-prepend > .btn, -.input-group-append > .btn, -.input-group-btn > .btn { - height: 100%; - border-color: rgba(0, 40, 100, 0.12); -} - -.input-group-prepend > .input-group-text { - border-right: 0; -} - -.input-group-append > .input-group-text { - border-left: 0; -} - -/** -Icon input - */ -.input-icon { - position: relative; -} - -.input-icon .form-control:not(:last-child) { - padding-right: 2.5rem; -} - -.input-icon .form-control:not(:first-child) { - padding-left: 2.5rem; -} - -.input-icon-addon { - position: absolute; - top: 0; - bottom: 0; - left: 0; - color: #9aa0ac; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - min-width: 2.5rem; - pointer-events: none; -} - -.input-icon-addon:last-child { - left: auto; - right: 0; -} - -.form-fieldset { - background: #f8f9fa; - border: 1px solid #e9ecef; - padding: 1rem; - border-radius: 3px; - margin-bottom: 1rem; -} - -.form-required { - color: #cd201f; -} - -.form-required:before { - content: ' '; -} - -.state-valid { - padding-right: 2rem; - background: url("data:image/svg+xml;charset=utf8,") no-repeat center right 0.5rem/1rem; -} - -.state-invalid { - padding-right: 2rem; - background: url("data:image/svg+xml;charset=utf8,") no-repeat center right 0.5rem/1rem; -} - -.form-help { - display: inline-block; - width: 1rem; - height: 1rem; - text-align: center; - line-height: 1rem; - color: #9aa0ac; - background: #f8f9fa; - border-radius: 50%; - font-size: 0.75rem; - transition: .3s background-color, .3s color; - text-decoration: none; - cursor: pointer; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.form-help:hover, .form-help[aria-describedby] { - background: #467fcf; - color: #fff; -} - -.sparkline { - display: inline-block; - height: 2rem; -} - -.jqstooltip { - box-sizing: content-box; - font-family: inherit !important; - background: #333 !important; - border: none !important; - border-radius: 3px; - font-size: 11px !important; - font-weight: 700 !important; - line-height: 1 !important; - padding: 6px !important; -} - -.jqstooltip .jqsfield { - font: inherit !important; -} - -.social-links li a { - background: #f8f8f8; - border-radius: 50%; - color: #9aa0ac; - display: inline-block; - height: 1.75rem; - width: 1.75rem; - line-height: 1.75rem; - text-align: center; -} - -.map, -.chart { - position: relative; - padding-top: 56.25%; -} - -.map-square, -.chart-square { - padding-top: 100%; -} - -.map-content, -.chart-content { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; -} - -.map-header { - margin-top: -1.5rem; - margin-bottom: 1.5rem; - height: 15rem; - position: relative; - margin-bottom: -1.5rem; -} - -.map-header:before { - content: ''; - position: absolute; - bottom: 0; - left: 0; - right: 0; - height: 10rem; - background: linear-gradient(to bottom, rgba(245, 247, 251, 0) 5%, #f5f7fb 95%); - pointer-events: none; -} - -.map-header-layer { - height: 100%; -} - -.map-static { - height: 120px; - width: 100%; - max-width: 640px; - background-position: center center; - background-size: 640px 120px; -} - -@-webkit-keyframes status-pulse { - 0%, 100% { - opacity: 1; - } - 50% { - opacity: .32; - } -} - -@keyframes status-pulse { - 0%, 100% { - opacity: 1; - } - 50% { - opacity: .32; - } -} - -.status-icon { - content: ''; - width: 0.5rem; - height: 0.5rem; - display: inline-block; - background: currentColor; - border-radius: 50%; - -webkit-transform: translateY(-1px); - transform: translateY(-1px); - margin-right: .375rem; - vertical-align: middle; -} - -.status-animated { - -webkit-animation: 1s status-pulse infinite ease; - animation: 1s status-pulse infinite ease; -} - -.chart-circle { - display: block; - height: 8rem; - width: 8rem; - position: relative; -} - -.chart-circle canvas { - margin: 0 auto; - display: block; - max-width: 100%; - max-height: 100%; -} - -.chart-circle-xs { - height: 2.5rem; - width: 2.5rem; - font-size: .8rem; -} - -.chart-circle-sm { - height: 4rem; - width: 4rem; - font-size: .8rem; -} - -.chart-circle-lg { - height: 10rem; - width: 10rem; - font-size: .8rem; -} - -.chart-circle-value { - position: absolute; - top: 0; - left: 0; - right: 0; - margin-left: auto; - margin-right: auto; - bottom: 0; - display: -ms-flexbox; - display: flex; - -ms-flex-pack: center; - justify-content: center; - -ms-flex-align: center; - align-items: center; - -ms-flex-direction: column; - flex-direction: column; - line-height: 1; -} - -.chart-circle-value small { - display: block; - color: #9aa0ac; - font-size: 0.9375rem; -} - -.chips { - margin: 0 0 -.5rem; -} - -.chips .chip { - margin: 0 .5rem .5rem 0; -} - -.chip { - display: inline-block; - height: 2rem; - line-height: 2rem; - font-size: 0.875rem; - font-weight: 500; - color: #6e7687; - padding: 0 .75rem; - border-radius: 1rem; - background-color: #f8f9fa; - transition: .3s background; -} - -.chip .avatar { - float: left; - margin: 0 .5rem 0 -.75rem; - height: 2rem; - width: 2rem; - border-radius: 50%; -} - -a.chip:hover { - color: inherit; - text-decoration: none; - background-color: #e9ecef; -} - -.stamp { - color: #fff; - background: #868e96; - display: inline-block; - min-width: 2rem; - height: 2rem; - padding: 0 .25rem; - line-height: 2rem; - text-align: center; - border-radius: 3px; - font-weight: 600; -} - -.stamp-md { - min-width: 2.5rem; - height: 2.5rem; - line-height: 2.5rem; -} - -.chat { - outline: 0; - margin: 0; - padding: 0; - list-style-type: none; - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - -ms-flex-pack: end; - justify-content: flex-end; - min-height: 100%; -} - -.chat-line { - padding: 0; - text-align: right; - position: relative; - display: -ms-flexbox; - display: flex; - -ms-flex-direction: row-reverse; - flex-direction: row-reverse; -} - -.chat-line + .chat-line { - padding-top: 1rem; -} - -.chat-message { - position: relative; - display: inline-block; - background-color: #467fcf; - color: #fff; - font-size: 0.875rem; - padding: .375rem .5rem; - border-radius: 3px; - white-space: normal; - text-align: left; - margin: 0 .5rem 0 2.5rem; - line-height: 1.4; -} - -.chat-message > :last-child { - margin-bottom: 0 !important; -} - -.chat-message:after { - content: ""; - position: absolute; - right: -5px; - top: 7px; - border-bottom: 6px solid transparent; - border-left: 6px solid #467fcf; - border-top: 6px solid transparent; -} - -.chat-message img { - max-width: 100%; -} - -.chat-message p { - margin-bottom: 1em; -} - -.chat-line-friend { - -ms-flex-direction: row; - flex-direction: row; -} - -.chat-line-friend + .chat-line-friend { - margin-top: -.5rem; -} - -.chat-line-friend + .chat-line-friend .chat-author { - visibility: hidden; -} - -.chat-line-friend + .chat-line-friend .chat-message:after { - display: none; -} - -.chat-line-friend .chat-message { - background-color: #f3f3f3; - color: #495057; - margin-left: .5rem; - margin-right: 2.5rem; -} - -.chat-line-friend .chat-message:after { - right: auto; - left: -5px; - border-left-width: 0; - border-right: 5px solid #f3f3f3; -} - -.example { - padding: 1.5rem; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px 3px 0 0; - font-size: 0.9375rem; -} - -.example-bg { - background: #f5f7fb; -} - -.example + .highlight { - border-top: none; - margin-top: 0; - border-radius: 0 0 3px 3px; -} - -.highlight { - margin: 1rem 0 2rem; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; - font-size: 0.9375rem; - max-height: 40rem; - overflow: auto; - background: #fcfcfc; -} - -.highlight pre { - margin-bottom: 0; - background-color: transparent; -} - -.example-column { - margin: 0 auto; -} - -.example-column > .card:last-of-type { - margin-bottom: 0; -} - -.example-column-1 { - max-width: 20rem; -} - -.example-column-2 { - max-width: 40rem; -} - -.tag { - font-size: 0.75rem; - color: #6e7687; - background-color: #e9ecef; - border-radius: 3px; - padding: 0 .5rem; - line-height: 2em; - display: -ms-inline-flexbox; - display: inline-flex; - cursor: default; - font-weight: 400; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -a.tag { - text-decoration: none; - cursor: pointer; - transition: .3s color, .3s background; -} - -a.tag:hover { - background-color: rgba(110, 118, 135, 0.2); - color: inherit; -} - -.tag-addon { - display: inline-block; - padding: 0 .5rem; - color: inherit; - text-decoration: none; - background: rgba(0, 0, 0, 0.06); - margin: 0 -.5rem 0 .5rem; - text-align: center; - min-width: 1.5rem; -} - -.tag-addon:last-child { - border-top-right-radius: 3px; - border-bottom-right-radius: 3px; -} - -.tag-addon i { - vertical-align: middle; - margin: 0 -.25rem; -} - -a.tag-addon { - text-decoration: none; - cursor: pointer; - transition: .3s color, .3s background; -} - -a.tag-addon:hover { - background: rgba(0, 0, 0, 0.16); - color: inherit; -} - -.tag-avatar { - width: 1.5rem; - height: 1.5rem; - border-radius: 3px 0 0 3px; - margin: 0 .5rem 0 -.5rem; -} - -.tag-blue { - background-color: #467fcf; - color: #fff; -} - -.tag-indigo { - background-color: #6574cd; - color: #fff; -} - -.tag-purple { - background-color: #a55eea; - color: #fff; -} - -.tag-pink { - background-color: #f66d9b; - color: #fff; -} - -.tag-red { - background-color: #cd201f; - color: #fff; -} - -.tag-orange { - background-color: #fd9644; - color: #fff; -} - -.tag-yellow { - background-color: #f1c40f; - color: #fff; -} - -.tag-green { - background-color: #5eba00; - color: #fff; -} - -.tag-teal { - background-color: #2bcbba; - color: #fff; -} - -.tag-cyan { - background-color: #17a2b8; - color: #fff; -} - -.tag-white { - background-color: #fff; - color: #fff; -} - -.tag-gray { - background-color: #868e96; - color: #fff; -} - -.tag-gray-dark { - background-color: #343a40; - color: #fff; -} - -.tag-azure { - background-color: #45aaf2; - color: #fff; -} - -.tag-lime { - background-color: #7bd235; - color: #fff; -} - -.tag-primary { - background-color: #467fcf; - color: #fff; -} - -.tag-secondary { - background-color: #868e96; - color: #fff; -} - -.tag-success { - background-color: #5eba00; - color: #fff; -} - -.tag-info { - background-color: #45aaf2; - color: #fff; -} - -.tag-warning { - background-color: #f1c40f; - color: #fff; -} - -.tag-danger { - background-color: #cd201f; - color: #fff; -} - -.tag-light { - background-color: #f8f9fa; - color: #fff; -} - -.tag-dark { - background-color: #343a40; - color: #fff; -} - -.tag-rounded { - border-radius: 50px; -} - -.tag-rounded .tag-avatar { - border-radius: 50px; -} - -.tags { - margin-bottom: -.5rem; - font-size: 0; -} - -.tags > .tag { - margin-bottom: .5rem; -} - -.tags > .tag:not(:last-child) { - margin-right: .5rem; -} - -.highlight .hll { - background-color: #ffc; -} - -.highlight .c { - color: #999; -} - -.highlight .k { - color: #069; -} - -.highlight .o { - color: #555; -} - -.highlight .cm { - color: #999; -} - -.highlight .cp { - color: #099; -} - -.highlight .c1 { - color: #999; -} - -.highlight .cs { - color: #999; -} - -.highlight .gd { - background-color: #fcc; - border: 1px solid #c00; -} - -.highlight .ge { - font-style: italic; -} - -.highlight .gr { - color: #f00; -} - -.highlight .gh { - color: #030; -} - -.highlight .gi { - background-color: #cfc; - border: 1px solid #0c0; -} - -.highlight .go { - color: #aaa; -} - -.highlight .gp { - color: #009; -} - -.highlight .gu { - color: #030; -} - -.highlight .gt { - color: #9c6; -} - -.highlight .kc { - color: #069; -} - -.highlight .kd { - color: #069; -} - -.highlight .kn { - color: #069; -} - -.highlight .kp { - color: #069; -} - -.highlight .kr { - color: #069; -} - -.highlight .kt { - color: #078; -} - -.highlight .m { - color: #f60; -} - -.highlight .s { - color: #d44950; -} - -.highlight .na { - color: #4f9fcf; -} - -.highlight .nb { - color: #366; -} - -.highlight .nc { - color: #0a8; -} - -.highlight .no { - color: #360; -} - -.highlight .nd { - color: #99f; -} - -.highlight .ni { - color: #999; -} - -.highlight .ne { - color: #c00; -} - -.highlight .nf { - color: #c0f; -} - -.highlight .nl { - color: #99f; -} - -.highlight .nn { - color: #0cf; -} - -.highlight .nt { - color: #2f6f9f; -} - -.highlight .nv { - color: #033; -} - -.highlight .ow { - color: #000; -} - -.highlight .w { - color: #bbb; -} - -.highlight .mf { - color: #f60; -} - -.highlight .mh { - color: #f60; -} - -.highlight .mi { - color: #f60; -} - -.highlight .mo { - color: #f60; -} - -.highlight .sb { - color: #c30; -} - -.highlight .sc { - color: #c30; -} - -.highlight .sd { - font-style: italic; - color: #c30; -} - -.highlight .s2 { - color: #c30; -} - -.highlight .se { - color: #c30; -} - -.highlight .sh { - color: #c30; -} - -.highlight .si { - color: #a00; -} - -.highlight .sx { - color: #c30; -} - -.highlight .sr { - color: #3aa; -} - -.highlight .s1 { - color: #c30; -} - -.highlight .ss { - color: #fc3; -} - -.highlight .bp { - color: #366; -} - -.highlight .vc { - color: #033; -} - -.highlight .vg { - color: #033; -} - -.highlight .vi { - color: #033; -} - -.highlight .il { - color: #f60; -} - -.highlight .css .o, -.highlight .css .o + .nt, -.highlight .css .nt + .nt { - color: #999; -} - -.highlight .language-bash::before, -.highlight .language-sh::before { - color: #009; - content: "$ "; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.highlight .language-powershell::before { - color: #009; - content: "PM> "; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.carousel-item-background { - content: ''; - background: rgba(0, 0, 0, 0.5); - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; -} - -.custom-range { - -ms-flex-align: center; - align-items: center; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - background: none; - cursor: pointer; - display: -ms-flexbox; - display: flex; - height: 100%; - min-height: 2.375rem; - overflow: hidden; - padding: 0; - border: 0; -} - -.custom-range:focus { - box-shadow: none; - outline: none; -} - -.custom-range:focus::-webkit-slider-thumb { - border-color: #467fcf; - background-color: #467fcf; -} - -.custom-range:focus::-moz-range-thumb { - border-color: #467fcf; - background-color: #467fcf; -} - -.custom-range:focus::-ms-thumb { - border-color: #467fcf; - background-color: #467fcf; -} - -.custom-range::-moz-focus-outer { - border: 0; -} - -.custom-range::-webkit-slider-runnable-track { - background: #467fcf; - content: ''; - height: 2px; - pointer-events: none; -} - -.custom-range::-webkit-slider-thumb { - width: 14px; - height: 14px; - -webkit-appearance: none; - appearance: none; - background: #fff; - border-radius: 50px; - box-shadow: 1px 0 0 -6px rgba(0, 50, 126, 0.12), 6px 0 0 -6px rgba(0, 50, 126, 0.12), 7px 0 0 -6px rgba(0, 50, 126, 0.12), 8px 0 0 -6px rgba(0, 50, 126, 0.12), 9px 0 0 -6px rgba(0, 50, 126, 0.12), 10px 0 0 -6px rgba(0, 50, 126, 0.12), 11px 0 0 -6px rgba(0, 50, 126, 0.12), 12px 0 0 -6px rgba(0, 50, 126, 0.12), 13px 0 0 -6px rgba(0, 50, 126, 0.12), 14px 0 0 -6px rgba(0, 50, 126, 0.12), 15px 0 0 -6px rgba(0, 50, 126, 0.12), 16px 0 0 -6px rgba(0, 50, 126, 0.12), 17px 0 0 -6px rgba(0, 50, 126, 0.12), 18px 0 0 -6px rgba(0, 50, 126, 0.12), 19px 0 0 -6px rgba(0, 50, 126, 0.12), 20px 0 0 -6px rgba(0, 50, 126, 0.12), 21px 0 0 -6px rgba(0, 50, 126, 0.12), 22px 0 0 -6px rgba(0, 50, 126, 0.12), 23px 0 0 -6px rgba(0, 50, 126, 0.12), 24px 0 0 -6px rgba(0, 50, 126, 0.12), 25px 0 0 -6px rgba(0, 50, 126, 0.12), 26px 0 0 -6px rgba(0, 50, 126, 0.12), 27px 0 0 -6px rgba(0, 50, 126, 0.12), 28px 0 0 -6px rgba(0, 50, 126, 0.12), 29px 0 0 -6px rgba(0, 50, 126, 0.12), 30px 0 0 -6px rgba(0, 50, 126, 0.12), 31px 0 0 -6px rgba(0, 50, 126, 0.12), 32px 0 0 -6px rgba(0, 50, 126, 0.12), 33px 0 0 -6px rgba(0, 50, 126, 0.12), 34px 0 0 -6px rgba(0, 50, 126, 0.12), 35px 0 0 -6px rgba(0, 50, 126, 0.12), 36px 0 0 -6px rgba(0, 50, 126, 0.12), 37px 0 0 -6px rgba(0, 50, 126, 0.12), 38px 0 0 -6px rgba(0, 50, 126, 0.12), 39px 0 0 -6px rgba(0, 50, 126, 0.12), 40px 0 0 -6px rgba(0, 50, 126, 0.12), 41px 0 0 -6px rgba(0, 50, 126, 0.12), 42px 0 0 -6px rgba(0, 50, 126, 0.12), 43px 0 0 -6px rgba(0, 50, 126, 0.12), 44px 0 0 -6px rgba(0, 50, 126, 0.12), 45px 0 0 -6px rgba(0, 50, 126, 0.12), 46px 0 0 -6px rgba(0, 50, 126, 0.12), 47px 0 0 -6px rgba(0, 50, 126, 0.12), 48px 0 0 -6px rgba(0, 50, 126, 0.12), 49px 0 0 -6px rgba(0, 50, 126, 0.12), 50px 0 0 -6px rgba(0, 50, 126, 0.12), 51px 0 0 -6px rgba(0, 50, 126, 0.12), 52px 0 0 -6px rgba(0, 50, 126, 0.12), 53px 0 0 -6px rgba(0, 50, 126, 0.12), 54px 0 0 -6px rgba(0, 50, 126, 0.12), 55px 0 0 -6px rgba(0, 50, 126, 0.12), 56px 0 0 -6px rgba(0, 50, 126, 0.12), 57px 0 0 -6px rgba(0, 50, 126, 0.12), 58px 0 0 -6px rgba(0, 50, 126, 0.12), 59px 0 0 -6px rgba(0, 50, 126, 0.12), 60px 0 0 -6px rgba(0, 50, 126, 0.12), 61px 0 0 -6px rgba(0, 50, 126, 0.12), 62px 0 0 -6px rgba(0, 50, 126, 0.12), 63px 0 0 -6px rgba(0, 50, 126, 0.12), 64px 0 0 -6px rgba(0, 50, 126, 0.12), 65px 0 0 -6px rgba(0, 50, 126, 0.12), 66px 0 0 -6px rgba(0, 50, 126, 0.12), 67px 0 0 -6px rgba(0, 50, 126, 0.12), 68px 0 0 -6px rgba(0, 50, 126, 0.12), 69px 0 0 -6px rgba(0, 50, 126, 0.12), 70px 0 0 -6px rgba(0, 50, 126, 0.12), 71px 0 0 -6px rgba(0, 50, 126, 0.12), 72px 0 0 -6px rgba(0, 50, 126, 0.12), 73px 0 0 -6px rgba(0, 50, 126, 0.12), 74px 0 0 -6px rgba(0, 50, 126, 0.12), 75px 0 0 -6px rgba(0, 50, 126, 0.12), 76px 0 0 -6px rgba(0, 50, 126, 0.12), 77px 0 0 -6px rgba(0, 50, 126, 0.12), 78px 0 0 -6px rgba(0, 50, 126, 0.12), 79px 0 0 -6px rgba(0, 50, 126, 0.12), 80px 0 0 -6px rgba(0, 50, 126, 0.12), 81px 0 0 -6px rgba(0, 50, 126, 0.12), 82px 0 0 -6px rgba(0, 50, 126, 0.12), 83px 0 0 -6px rgba(0, 50, 126, 0.12), 84px 0 0 -6px rgba(0, 50, 126, 0.12), 85px 0 0 -6px rgba(0, 50, 126, 0.12), 86px 0 0 -6px rgba(0, 50, 126, 0.12), 87px 0 0 -6px rgba(0, 50, 126, 0.12), 88px 0 0 -6px rgba(0, 50, 126, 0.12), 89px 0 0 -6px rgba(0, 50, 126, 0.12), 90px 0 0 -6px rgba(0, 50, 126, 0.12), 91px 0 0 -6px rgba(0, 50, 126, 0.12), 92px 0 0 -6px rgba(0, 50, 126, 0.12), 93px 0 0 -6px rgba(0, 50, 126, 0.12), 94px 0 0 -6px rgba(0, 50, 126, 0.12), 95px 0 0 -6px rgba(0, 50, 126, 0.12), 96px 0 0 -6px rgba(0, 50, 126, 0.12), 97px 0 0 -6px rgba(0, 50, 126, 0.12), 98px 0 0 -6px rgba(0, 50, 126, 0.12), 99px 0 0 -6px rgba(0, 50, 126, 0.12), 100px 0 0 -6px rgba(0, 50, 126, 0.12), 101px 0 0 -6px rgba(0, 50, 126, 0.12), 102px 0 0 -6px rgba(0, 50, 126, 0.12), 103px 0 0 -6px rgba(0, 50, 126, 0.12), 104px 0 0 -6px rgba(0, 50, 126, 0.12), 105px 0 0 -6px rgba(0, 50, 126, 0.12), 106px 0 0 -6px rgba(0, 50, 126, 0.12), 107px 0 0 -6px rgba(0, 50, 126, 0.12), 108px 0 0 -6px rgba(0, 50, 126, 0.12), 109px 0 0 -6px rgba(0, 50, 126, 0.12), 110px 0 0 -6px rgba(0, 50, 126, 0.12), 111px 0 0 -6px rgba(0, 50, 126, 0.12), 112px 0 0 -6px rgba(0, 50, 126, 0.12), 113px 0 0 -6px rgba(0, 50, 126, 0.12), 114px 0 0 -6px rgba(0, 50, 126, 0.12), 115px 0 0 -6px rgba(0, 50, 126, 0.12), 116px 0 0 -6px rgba(0, 50, 126, 0.12), 117px 0 0 -6px rgba(0, 50, 126, 0.12), 118px 0 0 -6px rgba(0, 50, 126, 0.12), 119px 0 0 -6px rgba(0, 50, 126, 0.12), 120px 0 0 -6px rgba(0, 50, 126, 0.12), 121px 0 0 -6px rgba(0, 50, 126, 0.12), 122px 0 0 -6px rgba(0, 50, 126, 0.12), 123px 0 0 -6px rgba(0, 50, 126, 0.12), 124px 0 0 -6px rgba(0, 50, 126, 0.12), 125px 0 0 -6px rgba(0, 50, 126, 0.12), 126px 0 0 -6px rgba(0, 50, 126, 0.12), 127px 0 0 -6px rgba(0, 50, 126, 0.12), 128px 0 0 -6px rgba(0, 50, 126, 0.12), 129px 0 0 -6px rgba(0, 50, 126, 0.12), 130px 0 0 -6px rgba(0, 50, 126, 0.12), 131px 0 0 -6px rgba(0, 50, 126, 0.12), 132px 0 0 -6px rgba(0, 50, 126, 0.12), 133px 0 0 -6px rgba(0, 50, 126, 0.12), 134px 0 0 -6px rgba(0, 50, 126, 0.12), 135px 0 0 -6px rgba(0, 50, 126, 0.12), 136px 0 0 -6px rgba(0, 50, 126, 0.12), 137px 0 0 -6px rgba(0, 50, 126, 0.12), 138px 0 0 -6px rgba(0, 50, 126, 0.12), 139px 0 0 -6px rgba(0, 50, 126, 0.12), 140px 0 0 -6px rgba(0, 50, 126, 0.12), 141px 0 0 -6px rgba(0, 50, 126, 0.12), 142px 0 0 -6px rgba(0, 50, 126, 0.12), 143px 0 0 -6px rgba(0, 50, 126, 0.12), 144px 0 0 -6px rgba(0, 50, 126, 0.12), 145px 0 0 -6px rgba(0, 50, 126, 0.12), 146px 0 0 -6px rgba(0, 50, 126, 0.12), 147px 0 0 -6px rgba(0, 50, 126, 0.12), 148px 0 0 -6px rgba(0, 50, 126, 0.12), 149px 0 0 -6px rgba(0, 50, 126, 0.12), 150px 0 0 -6px rgba(0, 50, 126, 0.12), 151px 0 0 -6px rgba(0, 50, 126, 0.12), 152px 0 0 -6px rgba(0, 50, 126, 0.12), 153px 0 0 -6px rgba(0, 50, 126, 0.12), 154px 0 0 -6px rgba(0, 50, 126, 0.12), 155px 0 0 -6px rgba(0, 50, 126, 0.12), 156px 0 0 -6px rgba(0, 50, 126, 0.12), 157px 0 0 -6px rgba(0, 50, 126, 0.12), 158px 0 0 -6px rgba(0, 50, 126, 0.12), 159px 0 0 -6px rgba(0, 50, 126, 0.12), 160px 0 0 -6px rgba(0, 50, 126, 0.12), 161px 0 0 -6px rgba(0, 50, 126, 0.12), 162px 0 0 -6px rgba(0, 50, 126, 0.12), 163px 0 0 -6px rgba(0, 50, 126, 0.12), 164px 0 0 -6px rgba(0, 50, 126, 0.12), 165px 0 0 -6px rgba(0, 50, 126, 0.12), 166px 0 0 -6px rgba(0, 50, 126, 0.12), 167px 0 0 -6px rgba(0, 50, 126, 0.12), 168px 0 0 -6px rgba(0, 50, 126, 0.12), 169px 0 0 -6px rgba(0, 50, 126, 0.12), 170px 0 0 -6px rgba(0, 50, 126, 0.12), 171px 0 0 -6px rgba(0, 50, 126, 0.12), 172px 0 0 -6px rgba(0, 50, 126, 0.12), 173px 0 0 -6px rgba(0, 50, 126, 0.12), 174px 0 0 -6px rgba(0, 50, 126, 0.12), 175px 0 0 -6px rgba(0, 50, 126, 0.12), 176px 0 0 -6px rgba(0, 50, 126, 0.12), 177px 0 0 -6px rgba(0, 50, 126, 0.12), 178px 0 0 -6px rgba(0, 50, 126, 0.12), 179px 0 0 -6px rgba(0, 50, 126, 0.12), 180px 0 0 -6px rgba(0, 50, 126, 0.12), 181px 0 0 -6px rgba(0, 50, 126, 0.12), 182px 0 0 -6px rgba(0, 50, 126, 0.12), 183px 0 0 -6px rgba(0, 50, 126, 0.12), 184px 0 0 -6px rgba(0, 50, 126, 0.12), 185px 0 0 -6px rgba(0, 50, 126, 0.12), 186px 0 0 -6px rgba(0, 50, 126, 0.12), 187px 0 0 -6px rgba(0, 50, 126, 0.12), 188px 0 0 -6px rgba(0, 50, 126, 0.12), 189px 0 0 -6px rgba(0, 50, 126, 0.12), 190px 0 0 -6px rgba(0, 50, 126, 0.12), 191px 0 0 -6px rgba(0, 50, 126, 0.12), 192px 0 0 -6px rgba(0, 50, 126, 0.12), 193px 0 0 -6px rgba(0, 50, 126, 0.12), 194px 0 0 -6px rgba(0, 50, 126, 0.12), 195px 0 0 -6px rgba(0, 50, 126, 0.12), 196px 0 0 -6px rgba(0, 50, 126, 0.12), 197px 0 0 -6px rgba(0, 50, 126, 0.12), 198px 0 0 -6px rgba(0, 50, 126, 0.12), 199px 0 0 -6px rgba(0, 50, 126, 0.12), 200px 0 0 -6px rgba(0, 50, 126, 0.12), 201px 0 0 -6px rgba(0, 50, 126, 0.12), 202px 0 0 -6px rgba(0, 50, 126, 0.12), 203px 0 0 -6px rgba(0, 50, 126, 0.12), 204px 0 0 -6px rgba(0, 50, 126, 0.12), 205px 0 0 -6px rgba(0, 50, 126, 0.12), 206px 0 0 -6px rgba(0, 50, 126, 0.12), 207px 0 0 -6px rgba(0, 50, 126, 0.12), 208px 0 0 -6px rgba(0, 50, 126, 0.12), 209px 0 0 -6px rgba(0, 50, 126, 0.12), 210px 0 0 -6px rgba(0, 50, 126, 0.12), 211px 0 0 -6px rgba(0, 50, 126, 0.12), 212px 0 0 -6px rgba(0, 50, 126, 0.12), 213px 0 0 -6px rgba(0, 50, 126, 0.12), 214px 0 0 -6px rgba(0, 50, 126, 0.12), 215px 0 0 -6px rgba(0, 50, 126, 0.12), 216px 0 0 -6px rgba(0, 50, 126, 0.12), 217px 0 0 -6px rgba(0, 50, 126, 0.12), 218px 0 0 -6px rgba(0, 50, 126, 0.12), 219px 0 0 -6px rgba(0, 50, 126, 0.12), 220px 0 0 -6px rgba(0, 50, 126, 0.12), 221px 0 0 -6px rgba(0, 50, 126, 0.12), 222px 0 0 -6px rgba(0, 50, 126, 0.12), 223px 0 0 -6px rgba(0, 50, 126, 0.12), 224px 0 0 -6px rgba(0, 50, 126, 0.12), 225px 0 0 -6px rgba(0, 50, 126, 0.12), 226px 0 0 -6px rgba(0, 50, 126, 0.12), 227px 0 0 -6px rgba(0, 50, 126, 0.12), 228px 0 0 -6px rgba(0, 50, 126, 0.12), 229px 0 0 -6px rgba(0, 50, 126, 0.12), 230px 0 0 -6px rgba(0, 50, 126, 0.12), 231px 0 0 -6px rgba(0, 50, 126, 0.12), 232px 0 0 -6px rgba(0, 50, 126, 0.12), 233px 0 0 -6px rgba(0, 50, 126, 0.12), 234px 0 0 -6px rgba(0, 50, 126, 0.12), 235px 0 0 -6px rgba(0, 50, 126, 0.12), 236px 0 0 -6px rgba(0, 50, 126, 0.12), 237px 0 0 -6px rgba(0, 50, 126, 0.12), 238px 0 0 -6px rgba(0, 50, 126, 0.12), 239px 0 0 -6px rgba(0, 50, 126, 0.12), 240px 0 0 -6px rgba(0, 50, 126, 0.12); - margin-top: -6px; - border: 1px solid rgba(0, 30, 75, 0.12); - transition: .3s border-color, .3s background-color; -} - -.custom-range::-moz-range-track { - width: 240px; - height: 2px; - background: rgba(0, 50, 126, 0.12); -} - -.custom-range::-moz-range-thumb { - width: 14px; - height: 14px; - background: #fff; - border-radius: 50px; - border: 1px solid rgba(0, 30, 75, 0.12); - position: relative; - transition: .3s border-color, .3s background-color; -} - -.custom-range::-moz-range-progress { - height: 2px; - background: #467fcf; - border: 0; - margin-top: 0; -} - -.custom-range::-ms-track { - background: transparent; - border: 0; - border-color: transparent; - border-radius: 0; - border-width: 0; - color: transparent; - height: 2px; - margin-top: 10px; - width: 240px; -} - -.custom-range::-ms-thumb { - width: 240px; - height: 2px; - background: #fff; - border-radius: 50px; - border: 1px solid rgba(0, 30, 75, 0.12); - transition: .3s border-color, .3s background-color; -} - -.custom-range::-ms-fill-lower { - background: #467fcf; - border-radius: 0; -} - -.custom-range::-ms-fill-upper { - background: rgba(0, 50, 126, 0.12); - border-radius: 0; -} - -.custom-range::-ms-tooltip { - display: none; -} - -.selectgroup { - display: -ms-inline-flexbox; - display: inline-flex; -} - -.selectgroup-item { - -ms-flex-positive: 1; - flex-grow: 1; - position: relative; -} - -.selectgroup-item + .selectgroup-item { - margin-left: -1px; -} - -.selectgroup-item:not(:first-child) .selectgroup-button { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} - -.selectgroup-item:not(:last-child) .selectgroup-button { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} - -.selectgroup-input { - opacity: 0; - position: absolute; - z-index: -1; - top: 0; - left: 0; -} - -.selectgroup-button { - display: block; - border: 1px solid rgba(0, 40, 100, 0.12); - text-align: center; - padding: 0.375rem 1rem; - position: relative; - cursor: pointer; - border-radius: 3px; - color: #9aa0ac; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - font-size: 0.9375rem; - line-height: 1.5rem; - min-width: 2.375rem; -} - -.selectgroup-button-icon { - padding-left: .5rem; - padding-right: .5rem; - font-size: 1rem; -} - -.selectgroup-input:checked + .selectgroup-button { - border-color: #467fcf; - z-index: 1; - color: #467fcf; - background: #edf2fa; -} - -.selectgroup-input:focus + .selectgroup-button { - border-color: #467fcf; - z-index: 2; - color: #467fcf; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.selectgroup-pills { - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -ms-flex-align: start; - align-items: flex-start; -} - -.selectgroup-pills .selectgroup-item { - margin-right: .5rem; - -ms-flex-positive: 0; - flex-grow: 0; -} - -.selectgroup-pills .selectgroup-button { - border-radius: 50px !important; -} - -.custom-switch { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - cursor: default; - display: -ms-inline-flexbox; - display: inline-flex; - -ms-flex-align: center; - align-items: center; - margin: 0; -} - -.custom-switch-input { - position: absolute; - z-index: -1; - opacity: 0; -} - -.custom-switches-stacked { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; -} - -.custom-switches-stacked .custom-switch { - margin-bottom: .5rem; -} - -.custom-switch-indicator { - display: inline-block; - height: 1.25rem; - width: 2.25rem; - background: #e9ecef; - border-radius: 50px; - position: relative; - vertical-align: bottom; - border: 1px solid rgba(0, 40, 100, 0.12); - transition: .3s border-color, .3s background-color; -} - -.custom-switch-indicator:before { - content: ''; - position: absolute; - height: calc(1.25rem - 4px); - width: calc(1.25rem - 4px); - top: 1px; - left: 1px; - background: #fff; - border-radius: 50%; - transition: .3s left; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); -} - -.custom-switch-input:checked ~ .custom-switch-indicator { - background: #467fcf; -} - -.custom-switch-input:checked ~ .custom-switch-indicator:before { - left: calc(1rem + 1px); -} - -.custom-switch-input:focus ~ .custom-switch-indicator { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); - border-color: #467fcf; -} - -.custom-switch-description { - margin-left: .5rem; - color: #6e7687; - transition: .3s color; -} - -.custom-switch-input:checked ~ .custom-switch-description { - color: #495057; -} - -.imagecheck { - margin: 0; - position: relative; - cursor: pointer; -} - -.imagecheck-input { - position: absolute; - z-index: -1; - opacity: 0; -} - -.imagecheck-figure { - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; - margin: 0; - position: relative; -} - -.imagecheck-input:focus ~ .imagecheck-figure { - border-color: #467fcf; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.imagecheck-input:checked ~ .imagecheck-figure { - border-color: rgba(0, 40, 100, 0.24); -} - -.imagecheck-figure:before { - content: ''; - position: absolute; - top: .25rem; - left: .25rem; - display: block; - width: 1rem; - height: 1rem; - pointer-events: none; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - background: #467fcf url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E") no-repeat center center/50% 50%; - color: #fff; - z-index: 1; - border-radius: 3px; - opacity: 0; - transition: .3s opacity; -} - -.imagecheck-input:checked ~ .imagecheck-figure:before { - opacity: 1; -} - -.imagecheck-image { - max-width: 100%; - opacity: .64; - transition: .3s opacity; -} - -.imagecheck-image:first-child { - border-top-left-radius: 2px; - border-top-right-radius: 2px; -} - -.imagecheck-image:last-child { - border-bottom-left-radius: 2px; - border-bottom-right-radius: 2px; -} - -.imagecheck:hover .imagecheck-image, -.imagecheck-input:focus ~ .imagecheck-figure .imagecheck-image, -.imagecheck-input:checked ~ .imagecheck-figure .imagecheck-image { - opacity: 1; -} - -.imagecheck-caption { - text-align: center; - padding: .25rem .25rem; - color: #9aa0ac; - font-size: 0.875rem; - transition: .3s color; -} - -.imagecheck:hover .imagecheck-caption, -.imagecheck-input:focus ~ .imagecheck-figure .imagecheck-caption, -.imagecheck-input:checked ~ .imagecheck-figure .imagecheck-caption { - color: #495057; -} - -.colorinput { - margin: 0; - position: relative; - cursor: pointer; -} - -.colorinput-input { - position: absolute; - z-index: -1; - opacity: 0; -} - -.colorinput-color { - display: inline-block; - width: 1.75rem; - height: 1.75rem; - border-radius: 3px; - border: 1px solid rgba(0, 40, 100, 0.12); - color: #fff; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); -} - -.colorinput-color:before { - content: ''; - opacity: 0; - position: absolute; - top: .25rem; - left: .25rem; - height: 1.25rem; - width: 1.25rem; - transition: .3s opacity; - background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E") no-repeat center center/50% 50%; -} - -.colorinput-input:checked ~ .colorinput-color:before { - opacity: 1; -} - -.colorinput-input:focus ~ .colorinput-color { - border-color: #467fcf; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.timeline { - position: relative; - margin: 0 0 2rem; - padding: 0; - list-style: none; -} - -.timeline:before { - background-color: #e9ecef; - position: absolute; - display: block; - content: ''; - width: 1px; - height: 100%; - top: 0; - bottom: 0; - left: 4px; -} - -.timeline-item { - position: relative; - display: -ms-flexbox; - display: flex; - padding-left: 2rem; - margin: .5rem 0; -} - -.timeline-item:first-child:before, .timeline-item:last-child:before { - content: ''; - position: absolute; - background: #fff; - width: 1px; - left: .25rem; -} - -.timeline-item:first-child { - margin-top: 0; -} - -.timeline-item:first-child:before { - top: 0; - height: .5rem; -} - -.timeline-item:last-child { - margin-bottom: 0; -} - -.timeline-item:last-child:before { - top: .5rem; - bottom: 0; -} - -.timeline-badge { - position: absolute; - display: block; - width: 0.4375rem; - height: 0.4375rem; - left: 1px; - top: .5rem; - border-radius: 100%; - border: 1px solid #fff; - background: #adb5bd; -} - -.timeline-time { - white-space: nowrap; - margin-left: auto; - color: #9aa0ac; - font-size: 87.5%; -} - -.browser { - width: 1.25rem; - height: 1.25rem; - display: inline-block; - background: no-repeat center/100% 100%; - vertical-align: bottom; - font-style: normal; -} - -.browser-android-browser { - background-image: url("../images/browsers/android-browser.svg"); -} - -.browser-aol-explorer { - background-image: url("../images/browsers/aol-explorer.svg"); -} - -.browser-blackberry { - background-image: url("../images/browsers/blackberry.svg"); -} - -.browser-camino { - background-image: url("../images/browsers/camino.svg"); -} - -.browser-chrome { - background-image: url("../images/browsers/chrome.svg"); -} - -.browser-chromium { - background-image: url("../images/browsers/chromium.svg"); -} - -.browser-dolphin { - background-image: url("../images/browsers/dolphin.svg"); -} - -.browser-edge { - background-image: url("../images/browsers/edge.svg"); -} - -.browser-firefox { - background-image: url("../images/browsers/firefox.svg"); -} - -.browser-ie { - background-image: url("../images/browsers/ie.svg"); -} - -.browser-maxthon { - background-image: url("../images/browsers/maxthon.svg"); -} - -.browser-mozilla { - background-image: url("../images/browsers/mozilla.svg"); -} - -.browser-netscape { - background-image: url("../images/browsers/netscape.svg"); -} - -.browser-opera { - background-image: url("../images/browsers/opera.svg"); -} - -.browser-safari { - background-image: url("../images/browsers/safari.svg"); -} - -.browser-sleipnir { - background-image: url("../images/browsers/sleipnir.svg"); -} - -.browser-uc-browser { - background-image: url("../images/browsers/uc-browser.svg"); -} - -.browser-vivaldi { - background-image: url("../images/browsers/vivaldi.svg"); -} - -.flag { - width: 1.6rem; - height: 1.2rem; - display: inline-block; - background: no-repeat center/100% 100%; - vertical-align: bottom; - font-style: normal; - box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.1); - border-radius: 2px; -} - -.flag-ad { - background-image: url("../images/flags/ad.svg"); -} - -.flag-ae { - background-image: url("../images/flags/ae.svg"); -} - -.flag-af { - background-image: url("../images/flags/af.svg"); -} - -.flag-ag { - background-image: url("../images/flags/ag.svg"); -} - -.flag-ai { - background-image: url("../images/flags/ai.svg"); -} - -.flag-al { - background-image: url("../images/flags/al.svg"); -} - -.flag-am { - background-image: url("../images/flags/am.svg"); -} - -.flag-ao { - background-image: url("../images/flags/ao.svg"); -} - -.flag-aq { - background-image: url("../images/flags/aq.svg"); -} - -.flag-ar { - background-image: url("../images/flags/ar.svg"); -} - -.flag-as { - background-image: url("../images/flags/as.svg"); -} - -.flag-at { - background-image: url("../images/flags/at.svg"); -} - -.flag-au { - background-image: url("../images/flags/au.svg"); -} - -.flag-aw { - background-image: url("../images/flags/aw.svg"); -} - -.flag-ax { - background-image: url("../images/flags/ax.svg"); -} - -.flag-az { - background-image: url("../images/flags/az.svg"); -} - -.flag-ba { - background-image: url("../images/flags/ba.svg"); -} - -.flag-bb { - background-image: url("../images/flags/bb.svg"); -} - -.flag-bd { - background-image: url("../images/flags/bd.svg"); -} - -.flag-be { - background-image: url("../images/flags/be.svg"); -} - -.flag-bf { - background-image: url("../images/flags/bf.svg"); -} - -.flag-bg { - background-image: url("../images/flags/bg.svg"); -} - -.flag-bh { - background-image: url("../images/flags/bh.svg"); -} - -.flag-bi { - background-image: url("../images/flags/bi.svg"); -} - -.flag-bj { - background-image: url("../images/flags/bj.svg"); -} - -.flag-bl { - background-image: url("../images/flags/bl.svg"); -} - -.flag-bm { - background-image: url("../images/flags/bm.svg"); -} - -.flag-bn { - background-image: url("../images/flags/bn.svg"); -} - -.flag-bo { - background-image: url("../images/flags/bo.svg"); -} - -.flag-bq { - background-image: url("../images/flags/bq.svg"); -} - -.flag-br { - background-image: url("../images/flags/br.svg"); -} - -.flag-bs { - background-image: url("../images/flags/bs.svg"); -} - -.flag-bt { - background-image: url("../images/flags/bt.svg"); -} - -.flag-bv { - background-image: url("../images/flags/bv.svg"); -} - -.flag-bw { - background-image: url("../images/flags/bw.svg"); -} - -.flag-by { - background-image: url("../images/flags/by.svg"); -} - -.flag-bz { - background-image: url("../images/flags/bz.svg"); -} - -.flag-ca { - background-image: url("../images/flags/ca.svg"); -} - -.flag-cc { - background-image: url("../images/flags/cc.svg"); -} - -.flag-cd { - background-image: url("../images/flags/cd.svg"); -} - -.flag-cf { - background-image: url("../images/flags/cf.svg"); -} - -.flag-cg { - background-image: url("../images/flags/cg.svg"); -} - -.flag-ch { - background-image: url("../images/flags/ch.svg"); -} - -.flag-ci { - background-image: url("../images/flags/ci.svg"); -} - -.flag-ck { - background-image: url("../images/flags/ck.svg"); -} - -.flag-cl { - background-image: url("../images/flags/cl.svg"); -} - -.flag-cm { - background-image: url("../images/flags/cm.svg"); -} - -.flag-cn { - background-image: url("../images/flags/cn.svg"); -} - -.flag-co { - background-image: url("../images/flags/co.svg"); -} - -.flag-cr { - background-image: url("../images/flags/cr.svg"); -} - -.flag-cu { - background-image: url("../images/flags/cu.svg"); -} - -.flag-cv { - background-image: url("../images/flags/cv.svg"); -} - -.flag-cw { - background-image: url("../images/flags/cw.svg"); -} - -.flag-cx { - background-image: url("../images/flags/cx.svg"); -} - -.flag-cy { - background-image: url("../images/flags/cy.svg"); -} - -.flag-cz { - background-image: url("../images/flags/cz.svg"); -} - -.flag-de { - background-image: url("../images/flags/de.svg"); -} - -.flag-dj { - background-image: url("../images/flags/dj.svg"); -} - -.flag-dk { - background-image: url("../images/flags/dk.svg"); -} - -.flag-dm { - background-image: url("../images/flags/dm.svg"); -} - -.flag-do { - background-image: url("../images/flags/do.svg"); -} - -.flag-dz { - background-image: url("../images/flags/dz.svg"); -} - -.flag-ec { - background-image: url("../images/flags/ec.svg"); -} - -.flag-ee { - background-image: url("../images/flags/ee.svg"); -} - -.flag-eg { - background-image: url("../images/flags/eg.svg"); -} - -.flag-eh { - background-image: url("../images/flags/eh.svg"); -} - -.flag-er { - background-image: url("../images/flags/er.svg"); -} - -.flag-es { - background-image: url("../images/flags/es.svg"); -} - -.flag-et { - background-image: url("../images/flags/et.svg"); -} - -.flag-eu { - background-image: url("../images/flags/eu.svg"); -} - -.flag-fi { - background-image: url("../images/flags/fi.svg"); -} - -.flag-fj { - background-image: url("../images/flags/fj.svg"); -} - -.flag-fk { - background-image: url("../images/flags/fk.svg"); -} - -.flag-fm { - background-image: url("../images/flags/fm.svg"); -} - -.flag-fo { - background-image: url("../images/flags/fo.svg"); -} - -.flag-fr { - background-image: url("../images/flags/fr.svg"); -} - -.flag-ga { - background-image: url("../images/flags/ga.svg"); -} - -.flag-gb-eng { - background-image: url("../images/flags/gb-eng.svg"); -} - -.flag-gb-nir { - background-image: url("../images/flags/gb-nir.svg"); -} - -.flag-gb-sct { - background-image: url("../images/flags/gb-sct.svg"); -} - -.flag-gb-wls { - background-image: url("../images/flags/gb-wls.svg"); -} - -.flag-gb { - background-image: url("../images/flags/gb.svg"); -} - -.flag-gd { - background-image: url("../images/flags/gd.svg"); -} - -.flag-ge { - background-image: url("../images/flags/ge.svg"); -} - -.flag-gf { - background-image: url("../images/flags/gf.svg"); -} - -.flag-gg { - background-image: url("../images/flags/gg.svg"); -} - -.flag-gh { - background-image: url("../images/flags/gh.svg"); -} - -.flag-gi { - background-image: url("../images/flags/gi.svg"); -} - -.flag-gl { - background-image: url("../images/flags/gl.svg"); -} - -.flag-gm { - background-image: url("../images/flags/gm.svg"); -} - -.flag-gn { - background-image: url("../images/flags/gn.svg"); -} - -.flag-gp { - background-image: url("../images/flags/gp.svg"); -} - -.flag-gq { - background-image: url("../images/flags/gq.svg"); -} - -.flag-gr { - background-image: url("../images/flags/gr.svg"); -} - -.flag-gs { - background-image: url("../images/flags/gs.svg"); -} - -.flag-gt { - background-image: url("../images/flags/gt.svg"); -} - -.flag-gu { - background-image: url("../images/flags/gu.svg"); -} - -.flag-gw { - background-image: url("../images/flags/gw.svg"); -} - -.flag-gy { - background-image: url("../images/flags/gy.svg"); -} - -.flag-hk { - background-image: url("../images/flags/hk.svg"); -} - -.flag-hm { - background-image: url("../images/flags/hm.svg"); -} - -.flag-hn { - background-image: url("../images/flags/hn.svg"); -} - -.flag-hr { - background-image: url("../images/flags/hr.svg"); -} - -.flag-ht { - background-image: url("../images/flags/ht.svg"); -} - -.flag-hu { - background-image: url("../images/flags/hu.svg"); -} - -.flag-id { - background-image: url("../images/flags/id.svg"); -} - -.flag-ie { - background-image: url("../images/flags/ie.svg"); -} - -.flag-il { - background-image: url("../images/flags/il.svg"); -} - -.flag-im { - background-image: url("../images/flags/im.svg"); -} - -.flag-in { - background-image: url("../images/flags/in.svg"); -} - -.flag-io { - background-image: url("../images/flags/io.svg"); -} - -.flag-iq { - background-image: url("../images/flags/iq.svg"); -} - -.flag-ir { - background-image: url("../images/flags/ir.svg"); -} - -.flag-is { - background-image: url("../images/flags/is.svg"); -} - -.flag-it { - background-image: url("../images/flags/it.svg"); -} - -.flag-je { - background-image: url("../images/flags/je.svg"); -} - -.flag-jm { - background-image: url("../images/flags/jm.svg"); -} - -.flag-jo { - background-image: url("../images/flags/jo.svg"); -} - -.flag-jp { - background-image: url("../images/flags/jp.svg"); -} - -.flag-ke { - background-image: url("../images/flags/ke.svg"); -} - -.flag-kg { - background-image: url("../images/flags/kg.svg"); -} - -.flag-kh { - background-image: url("../images/flags/kh.svg"); -} - -.flag-ki { - background-image: url("../images/flags/ki.svg"); -} - -.flag-km { - background-image: url("../images/flags/km.svg"); -} - -.flag-kn { - background-image: url("../images/flags/kn.svg"); -} - -.flag-kp { - background-image: url("../images/flags/kp.svg"); -} - -.flag-kr { - background-image: url("../images/flags/kr.svg"); -} - -.flag-kw { - background-image: url("../images/flags/kw.svg"); -} - -.flag-ky { - background-image: url("../images/flags/ky.svg"); -} - -.flag-kz { - background-image: url("../images/flags/kz.svg"); -} - -.flag-la { - background-image: url("../images/flags/la.svg"); -} - -.flag-lb { - background-image: url("../images/flags/lb.svg"); -} - -.flag-lc { - background-image: url("../images/flags/lc.svg"); -} - -.flag-li { - background-image: url("../images/flags/li.svg"); -} - -.flag-lk { - background-image: url("../images/flags/lk.svg"); -} - -.flag-lr { - background-image: url("../images/flags/lr.svg"); -} - -.flag-ls { - background-image: url("../images/flags/ls.svg"); -} - -.flag-lt { - background-image: url("../images/flags/lt.svg"); -} - -.flag-lu { - background-image: url("../images/flags/lu.svg"); -} - -.flag-lv { - background-image: url("../images/flags/lv.svg"); -} - -.flag-ly { - background-image: url("../images/flags/ly.svg"); -} - -.flag-ma { - background-image: url("../images/flags/ma.svg"); -} - -.flag-mc { - background-image: url("../images/flags/mc.svg"); -} - -.flag-md { - background-image: url("../images/flags/md.svg"); -} - -.flag-me { - background-image: url("../images/flags/me.svg"); -} - -.flag-mf { - background-image: url("../images/flags/mf.svg"); -} - -.flag-mg { - background-image: url("../images/flags/mg.svg"); -} - -.flag-mh { - background-image: url("../images/flags/mh.svg"); -} - -.flag-mk { - background-image: url("../images/flags/mk.svg"); -} - -.flag-ml { - background-image: url("../images/flags/ml.svg"); -} - -.flag-mm { - background-image: url("../images/flags/mm.svg"); -} - -.flag-mn { - background-image: url("../images/flags/mn.svg"); -} - -.flag-mo { - background-image: url("../images/flags/mo.svg"); -} - -.flag-mp { - background-image: url("../images/flags/mp.svg"); -} - -.flag-mq { - background-image: url("../images/flags/mq.svg"); -} - -.flag-mr { - background-image: url("../images/flags/mr.svg"); -} - -.flag-ms { - background-image: url("../images/flags/ms.svg"); -} - -.flag-mt { - background-image: url("../images/flags/mt.svg"); -} - -.flag-mu { - background-image: url("../images/flags/mu.svg"); -} - -.flag-mv { - background-image: url("../images/flags/mv.svg"); -} - -.flag-mw { - background-image: url("../images/flags/mw.svg"); -} - -.flag-mx { - background-image: url("../images/flags/mx.svg"); -} - -.flag-my { - background-image: url("../images/flags/my.svg"); -} - -.flag-mz { - background-image: url("../images/flags/mz.svg"); -} - -.flag-na { - background-image: url("../images/flags/na.svg"); -} - -.flag-nc { - background-image: url("../images/flags/nc.svg"); -} - -.flag-ne { - background-image: url("../images/flags/ne.svg"); -} - -.flag-nf { - background-image: url("../images/flags/nf.svg"); -} - -.flag-ng { - background-image: url("../images/flags/ng.svg"); -} - -.flag-ni { - background-image: url("../images/flags/ni.svg"); -} - -.flag-nl { - background-image: url("../images/flags/nl.svg"); -} - -.flag-no { - background-image: url("../images/flags/no.svg"); -} - -.flag-np { - background-image: url("../images/flags/np.svg"); -} - -.flag-nr { - background-image: url("../images/flags/nr.svg"); -} - -.flag-nu { - background-image: url("../images/flags/nu.svg"); -} - -.flag-nz { - background-image: url("../images/flags/nz.svg"); -} - -.flag-om { - background-image: url("../images/flags/om.svg"); -} - -.flag-pa { - background-image: url("../images/flags/pa.svg"); -} - -.flag-pe { - background-image: url("../images/flags/pe.svg"); -} - -.flag-pf { - background-image: url("../images/flags/pf.svg"); -} - -.flag-pg { - background-image: url("../images/flags/pg.svg"); -} - -.flag-ph { - background-image: url("../images/flags/ph.svg"); -} - -.flag-pk { - background-image: url("../images/flags/pk.svg"); -} - -.flag-pl { - background-image: url("../images/flags/pl.svg"); -} - -.flag-pm { - background-image: url("../images/flags/pm.svg"); -} - -.flag-pn { - background-image: url("../images/flags/pn.svg"); -} - -.flag-pr { - background-image: url("../images/flags/pr.svg"); -} - -.flag-ps { - background-image: url("../images/flags/ps.svg"); -} - -.flag-pt { - background-image: url("../images/flags/pt.svg"); -} - -.flag-pw { - background-image: url("../images/flags/pw.svg"); -} - -.flag-py { - background-image: url("../images/flags/py.svg"); -} - -.flag-qa { - background-image: url("../images/flags/qa.svg"); -} - -.flag-re { - background-image: url("../images/flags/re.svg"); -} - -.flag-ro { - background-image: url("../images/flags/ro.svg"); -} - -.flag-rs { - background-image: url("../images/flags/rs.svg"); -} - -.flag-ru { - background-image: url("../images/flags/ru.svg"); -} - -.flag-rw { - background-image: url("../images/flags/rw.svg"); -} - -.flag-sa { - background-image: url("../images/flags/sa.svg"); -} - -.flag-sb { - background-image: url("../images/flags/sb.svg"); -} - -.flag-sc { - background-image: url("../images/flags/sc.svg"); -} - -.flag-sd { - background-image: url("../images/flags/sd.svg"); -} - -.flag-se { - background-image: url("../images/flags/se.svg"); -} - -.flag-sg { - background-image: url("../images/flags/sg.svg"); -} - -.flag-sh { - background-image: url("../images/flags/sh.svg"); -} - -.flag-si { - background-image: url("../images/flags/si.svg"); -} - -.flag-sj { - background-image: url("../images/flags/sj.svg"); -} - -.flag-sk { - background-image: url("../images/flags/sk.svg"); -} - -.flag-sl { - background-image: url("../images/flags/sl.svg"); -} - -.flag-sm { - background-image: url("../images/flags/sm.svg"); -} - -.flag-sn { - background-image: url("../images/flags/sn.svg"); -} - -.flag-so { - background-image: url("../images/flags/so.svg"); -} - -.flag-sr { - background-image: url("../images/flags/sr.svg"); -} - -.flag-ss { - background-image: url("../images/flags/ss.svg"); -} - -.flag-st { - background-image: url("../images/flags/st.svg"); -} - -.flag-sv { - background-image: url("../images/flags/sv.svg"); -} - -.flag-sx { - background-image: url("../images/flags/sx.svg"); -} - -.flag-sy { - background-image: url("../images/flags/sy.svg"); -} - -.flag-sz { - background-image: url("../images/flags/sz.svg"); -} - -.flag-tc { - background-image: url("../images/flags/tc.svg"); -} - -.flag-td { - background-image: url("../images/flags/td.svg"); -} - -.flag-tf { - background-image: url("../images/flags/tf.svg"); -} - -.flag-tg { - background-image: url("../images/flags/tg.svg"); -} - -.flag-th { - background-image: url("../images/flags/th.svg"); -} - -.flag-tj { - background-image: url("../images/flags/tj.svg"); -} - -.flag-tk { - background-image: url("../images/flags/tk.svg"); -} - -.flag-tl { - background-image: url("../images/flags/tl.svg"); -} - -.flag-tm { - background-image: url("../images/flags/tm.svg"); -} - -.flag-tn { - background-image: url("../images/flags/tn.svg"); -} - -.flag-to { - background-image: url("../images/flags/to.svg"); -} - -.flag-tr { - background-image: url("../images/flags/tr.svg"); -} - -.flag-tt { - background-image: url("../images/flags/tt.svg"); -} - -.flag-tv { - background-image: url("../images/flags/tv.svg"); -} - -.flag-tw { - background-image: url("../images/flags/tw.svg"); -} - -.flag-tz { - background-image: url("../images/flags/tz.svg"); -} - -.flag-ua { - background-image: url("../images/flags/ua.svg"); -} - -.flag-ug { - background-image: url("../images/flags/ug.svg"); -} - -.flag-um { - background-image: url("../images/flags/um.svg"); -} - -.flag-un { - background-image: url("../images/flags/un.svg"); -} - -.flag-us { - background-image: url("../images/flags/us.svg"); -} - -.flag-uy { - background-image: url("../images/flags/uy.svg"); -} - -.flag-uz { - background-image: url("../images/flags/uz.svg"); -} - -.flag-va { - background-image: url("../images/flags/va.svg"); -} - -.flag-vc { - background-image: url("../images/flags/vc.svg"); -} - -.flag-ve { - background-image: url("../images/flags/ve.svg"); -} - -.flag-vg { - background-image: url("../images/flags/vg.svg"); -} - -.flag-vi { - background-image: url("../images/flags/vi.svg"); -} - -.flag-vn { - background-image: url("../images/flags/vn.svg"); -} - -.flag-vu { - background-image: url("../images/flags/vu.svg"); -} - -.flag-wf { - background-image: url("../images/flags/wf.svg"); -} - -.flag-ws { - background-image: url("../images/flags/ws.svg"); -} - -.flag-ye { - background-image: url("../images/flags/ye.svg"); -} - -.flag-yt { - background-image: url("../images/flags/yt.svg"); -} - -.flag-za { - background-image: url("../images/flags/za.svg"); -} - -.flag-zm { - background-image: url("../images/flags/zm.svg"); -} - -.flag-zw { - background-image: url("../images/flags/zw.svg"); -} - -.payment { - width: 2.5rem; - height: 1.5rem; - display: inline-block; - background: no-repeat center/100% 100%; - vertical-align: bottom; - font-style: normal; - box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.1); - border-radius: 2px; -} - -.payment-2checkout-dark { - background-image: url("../images/payments/2checkout-dark.svg"); -} - -.payment-2checkout { - background-image: url("../images/payments/2checkout.svg"); -} - -.payment-alipay-dark { - background-image: url("../images/payments/alipay-dark.svg"); -} - -.payment-alipay { - background-image: url("../images/payments/alipay.svg"); -} - -.payment-amazon-dark { - background-image: url("../images/payments/amazon-dark.svg"); -} - -.payment-amazon { - background-image: url("../images/payments/amazon.svg"); -} - -.payment-americanexpress-dark { - background-image: url("../images/payments/americanexpress-dark.svg"); -} - -.payment-americanexpress { - background-image: url("../images/payments/americanexpress.svg"); -} - -.payment-applepay-dark { - background-image: url("../images/payments/applepay-dark.svg"); -} - -.payment-applepay { - background-image: url("../images/payments/applepay.svg"); -} - -.payment-bancontact-dark { - background-image: url("../images/payments/bancontact-dark.svg"); -} - -.payment-bancontact { - background-image: url("../images/payments/bancontact.svg"); -} - -.payment-bitcoin-dark { - background-image: url("../images/payments/bitcoin-dark.svg"); -} - -.payment-bitcoin { - background-image: url("../images/payments/bitcoin.svg"); -} - -.payment-bitpay-dark { - background-image: url("../images/payments/bitpay-dark.svg"); -} - -.payment-bitpay { - background-image: url("../images/payments/bitpay.svg"); -} - -.payment-cirrus-dark { - background-image: url("../images/payments/cirrus-dark.svg"); -} - -.payment-cirrus { - background-image: url("../images/payments/cirrus.svg"); -} - -.payment-clickandbuy-dark { - background-image: url("../images/payments/clickandbuy-dark.svg"); -} - -.payment-clickandbuy { - background-image: url("../images/payments/clickandbuy.svg"); -} - -.payment-coinkite-dark { - background-image: url("../images/payments/coinkite-dark.svg"); -} - -.payment-coinkite { - background-image: url("../images/payments/coinkite.svg"); -} - -.payment-dinersclub-dark { - background-image: url("../images/payments/dinersclub-dark.svg"); -} - -.payment-dinersclub { - background-image: url("../images/payments/dinersclub.svg"); -} - -.payment-directdebit-dark { - background-image: url("../images/payments/directdebit-dark.svg"); -} - -.payment-directdebit { - background-image: url("../images/payments/directdebit.svg"); -} - -.payment-discover-dark { - background-image: url("../images/payments/discover-dark.svg"); -} - -.payment-discover { - background-image: url("../images/payments/discover.svg"); -} - -.payment-dwolla-dark { - background-image: url("../images/payments/dwolla-dark.svg"); -} - -.payment-dwolla { - background-image: url("../images/payments/dwolla.svg"); -} - -.payment-ebay-dark { - background-image: url("../images/payments/ebay-dark.svg"); -} - -.payment-ebay { - background-image: url("../images/payments/ebay.svg"); -} - -.payment-eway-dark { - background-image: url("../images/payments/eway-dark.svg"); -} - -.payment-eway { - background-image: url("../images/payments/eway.svg"); -} - -.payment-giropay-dark { - background-image: url("../images/payments/giropay-dark.svg"); -} - -.payment-giropay { - background-image: url("../images/payments/giropay.svg"); -} - -.payment-googlewallet-dark { - background-image: url("../images/payments/googlewallet-dark.svg"); -} - -.payment-googlewallet { - background-image: url("../images/payments/googlewallet.svg"); -} - -.payment-ingenico-dark { - background-image: url("../images/payments/ingenico-dark.svg"); -} - -.payment-ingenico { - background-image: url("../images/payments/ingenico.svg"); -} - -.payment-jcb-dark { - background-image: url("../images/payments/jcb-dark.svg"); -} - -.payment-jcb { - background-image: url("../images/payments/jcb.svg"); -} - -.payment-klarna-dark { - background-image: url("../images/payments/klarna-dark.svg"); -} - -.payment-klarna { - background-image: url("../images/payments/klarna.svg"); -} - -.payment-laser-dark { - background-image: url("../images/payments/laser-dark.svg"); -} - -.payment-laser { - background-image: url("../images/payments/laser.svg"); -} - -.payment-maestro-dark { - background-image: url("../images/payments/maestro-dark.svg"); -} - -.payment-maestro { - background-image: url("../images/payments/maestro.svg"); -} - -.payment-mastercard-dark { - background-image: url("../images/payments/mastercard-dark.svg"); -} - -.payment-mastercard { - background-image: url("../images/payments/mastercard.svg"); -} - -.payment-monero-dark { - background-image: url("../images/payments/monero-dark.svg"); -} - -.payment-monero { - background-image: url("../images/payments/monero.svg"); -} - -.payment-neteller-dark { - background-image: url("../images/payments/neteller-dark.svg"); -} - -.payment-neteller { - background-image: url("../images/payments/neteller.svg"); -} - -.payment-ogone-dark { - background-image: url("../images/payments/ogone-dark.svg"); -} - -.payment-ogone { - background-image: url("../images/payments/ogone.svg"); -} - -.payment-okpay-dark { - background-image: url("../images/payments/okpay-dark.svg"); -} - -.payment-okpay { - background-image: url("../images/payments/okpay.svg"); -} - -.payment-paybox-dark { - background-image: url("../images/payments/paybox-dark.svg"); -} - -.payment-paybox { - background-image: url("../images/payments/paybox.svg"); -} - -.payment-paymill-dark { - background-image: url("../images/payments/paymill-dark.svg"); -} - -.payment-paymill { - background-image: url("../images/payments/paymill.svg"); -} - -.payment-payone-dark { - background-image: url("../images/payments/payone-dark.svg"); -} - -.payment-payone { - background-image: url("../images/payments/payone.svg"); -} - -.payment-payoneer-dark { - background-image: url("../images/payments/payoneer-dark.svg"); -} - -.payment-payoneer { - background-image: url("../images/payments/payoneer.svg"); -} - -.payment-paypal-dark { - background-image: url("../images/payments/paypal-dark.svg"); -} - -.payment-paypal { - background-image: url("../images/payments/paypal.svg"); -} - -.payment-paysafecard-dark { - background-image: url("../images/payments/paysafecard-dark.svg"); -} - -.payment-paysafecard { - background-image: url("../images/payments/paysafecard.svg"); -} - -.payment-payu-dark { - background-image: url("../images/payments/payu-dark.svg"); -} - -.payment-payu { - background-image: url("../images/payments/payu.svg"); -} - -.payment-payza-dark { - background-image: url("../images/payments/payza-dark.svg"); -} - -.payment-payza { - background-image: url("../images/payments/payza.svg"); -} - -.payment-ripple-dark { - background-image: url("../images/payments/ripple-dark.svg"); -} - -.payment-ripple { - background-image: url("../images/payments/ripple.svg"); -} - -.payment-sage-dark { - background-image: url("../images/payments/sage-dark.svg"); -} - -.payment-sage { - background-image: url("../images/payments/sage.svg"); -} - -.payment-sepa-dark { - background-image: url("../images/payments/sepa-dark.svg"); -} - -.payment-sepa { - background-image: url("../images/payments/sepa.svg"); -} - -.payment-shopify-dark { - background-image: url("../images/payments/shopify-dark.svg"); -} - -.payment-shopify { - background-image: url("../images/payments/shopify.svg"); -} - -.payment-skrill-dark { - background-image: url("../images/payments/skrill-dark.svg"); -} - -.payment-skrill { - background-image: url("../images/payments/skrill.svg"); -} - -.payment-solo-dark { - background-image: url("../images/payments/solo-dark.svg"); -} - -.payment-solo { - background-image: url("../images/payments/solo.svg"); -} - -.payment-square-dark { - background-image: url("../images/payments/square-dark.svg"); -} - -.payment-square { - background-image: url("../images/payments/square.svg"); -} - -.payment-stripe-dark { - background-image: url("../images/payments/stripe-dark.svg"); -} - -.payment-stripe { - background-image: url("../images/payments/stripe.svg"); -} - -.payment-switch-dark { - background-image: url("../images/payments/switch-dark.svg"); -} - -.payment-switch { - background-image: url("../images/payments/switch.svg"); -} - -.payment-ukash-dark { - background-image: url("../images/payments/ukash-dark.svg"); -} - -.payment-ukash { - background-image: url("../images/payments/ukash.svg"); -} - -.payment-unionpay-dark { - background-image: url("../images/payments/unionpay-dark.svg"); -} - -.payment-unionpay { - background-image: url("../images/payments/unionpay.svg"); -} - -.payment-verifone-dark { - background-image: url("../images/payments/verifone-dark.svg"); -} - -.payment-verifone { - background-image: url("../images/payments/verifone.svg"); -} - -.payment-verisign-dark { - background-image: url("../images/payments/verisign-dark.svg"); -} - -.payment-verisign { - background-image: url("../images/payments/verisign.svg"); -} - -.payment-visa-dark { - background-image: url("../images/payments/visa-dark.svg"); -} - -.payment-visa { - background-image: url("../images/payments/visa.svg"); -} - -.payment-webmoney-dark { - background-image: url("../images/payments/webmoney-dark.svg"); -} - -.payment-webmoney { - background-image: url("../images/payments/webmoney.svg"); -} - -.payment-westernunion-dark { - background-image: url("../images/payments/westernunion-dark.svg"); -} - -.payment-westernunion { - background-image: url("../images/payments/westernunion.svg"); -} - -.payment-worldpay-dark { - background-image: url("../images/payments/worldpay-dark.svg"); -} - -.payment-worldpay { - background-image: url("../images/payments/worldpay.svg"); -} - -svg { - -ms-touch-action: none; - touch-action: none; -} - -.jvectormap-container { - width: 100%; - height: 100%; - position: relative; - overflow: hidden; - -ms-touch-action: none; - touch-action: none; -} - -.jvectormap-tip { - position: absolute; - display: none; - border-radius: 3px; - background: #212529; - color: white; - padding: 6px; - font-size: 11px; - line-height: 1; - font-weight: 700; -} - -.jvectormap-tip small { - font-size: inherit; - font-weight: 400; -} - -.jvectormap-zoomin, .jvectormap-zoomout, .jvectormap-goback { - position: absolute; - left: 10px; - border-radius: 3px; - background: #292929; - padding: 3px; - color: white; - cursor: pointer; - line-height: 10px; - text-align: center; - box-sizing: content-box; -} - -.jvectormap-zoomin, .jvectormap-zoomout { - width: 10px; - height: 10px; -} - -.jvectormap-zoomin { - top: 10px; -} - -.jvectormap-zoomout { - top: 30px; -} - -.jvectormap-goback { - bottom: 10px; - z-index: 1000; - padding: 6px; -} - -.jvectormap-spinner { - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - background: center no-repeat url(data:image/gif;base64,R0lGODlhIAAgAPMAAP///wAAAMbGxoSEhLa2tpqamjY2NlZWVtjY2OTk5Ly8vB4eHgQEBAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAIAAgAAAE5xDISWlhperN52JLhSSdRgwVo1ICQZRUsiwHpTJT4iowNS8vyW2icCF6k8HMMBkCEDskxTBDAZwuAkkqIfxIQyhBQBFvAQSDITM5VDW6XNE4KagNh6Bgwe60smQUB3d4Rz1ZBApnFASDd0hihh12BkE9kjAJVlycXIg7CQIFA6SlnJ87paqbSKiKoqusnbMdmDC2tXQlkUhziYtyWTxIfy6BE8WJt5YJvpJivxNaGmLHT0VnOgSYf0dZXS7APdpB309RnHOG5gDqXGLDaC457D1zZ/V/nmOM82XiHRLYKhKP1oZmADdEAAAh+QQJCgAAACwAAAAAIAAgAAAE6hDISWlZpOrNp1lGNRSdRpDUolIGw5RUYhhHukqFu8DsrEyqnWThGvAmhVlteBvojpTDDBUEIFwMFBRAmBkSgOrBFZogCASwBDEY/CZSg7GSE0gSCjQBMVG023xWBhklAnoEdhQEfyNqMIcKjhRsjEdnezB+A4k8gTwJhFuiW4dokXiloUepBAp5qaKpp6+Ho7aWW54wl7obvEe0kRuoplCGepwSx2jJvqHEmGt6whJpGpfJCHmOoNHKaHx61WiSR92E4lbFoq+B6QDtuetcaBPnW6+O7wDHpIiK9SaVK5GgV543tzjgGcghAgAh+QQJCgAAACwAAAAAIAAgAAAE7hDISSkxpOrN5zFHNWRdhSiVoVLHspRUMoyUakyEe8PTPCATW9A14E0UvuAKMNAZKYUZCiBMuBakSQKG8G2FzUWox2AUtAQFcBKlVQoLgQReZhQlCIJesQXI5B0CBnUMOxMCenoCfTCEWBsJColTMANldx15BGs8B5wlCZ9Po6OJkwmRpnqkqnuSrayqfKmqpLajoiW5HJq7FL1Gr2mMMcKUMIiJgIemy7xZtJsTmsM4xHiKv5KMCXqfyUCJEonXPN2rAOIAmsfB3uPoAK++G+w48edZPK+M6hLJpQg484enXIdQFSS1u6UhksENEQAAIfkECQoAAAAsAAAAACAAIAAABOcQyEmpGKLqzWcZRVUQnZYg1aBSh2GUVEIQ2aQOE+G+cD4ntpWkZQj1JIiZIogDFFyHI0UxQwFugMSOFIPJftfVAEoZLBbcLEFhlQiqGp1Vd140AUklUN3eCA51C1EWMzMCezCBBmkxVIVHBWd3HHl9JQOIJSdSnJ0TDKChCwUJjoWMPaGqDKannasMo6WnM562R5YluZRwur0wpgqZE7NKUm+FNRPIhjBJxKZteWuIBMN4zRMIVIhffcgojwCF117i4nlLnY5ztRLsnOk+aV+oJY7V7m76PdkS4trKcdg0Zc0tTcKkRAAAIfkECQoAAAAsAAAAACAAIAAABO4QyEkpKqjqzScpRaVkXZWQEximw1BSCUEIlDohrft6cpKCk5xid5MNJTaAIkekKGQkWyKHkvhKsR7ARmitkAYDYRIbUQRQjWBwJRzChi9CRlBcY1UN4g0/VNB0AlcvcAYHRyZPdEQFYV8ccwR5HWxEJ02YmRMLnJ1xCYp0Y5idpQuhopmmC2KgojKasUQDk5BNAwwMOh2RtRq5uQuPZKGIJQIGwAwGf6I0JXMpC8C7kXWDBINFMxS4DKMAWVWAGYsAdNqW5uaRxkSKJOZKaU3tPOBZ4DuK2LATgJhkPJMgTwKCdFjyPHEnKxFCDhEAACH5BAkKAAAALAAAAAAgACAAAATzEMhJaVKp6s2nIkolIJ2WkBShpkVRWqqQrhLSEu9MZJKK9y1ZrqYK9WiClmvoUaF8gIQSNeF1Er4MNFn4SRSDARWroAIETg1iVwuHjYB1kYc1mwruwXKC9gmsJXliGxc+XiUCby9ydh1sOSdMkpMTBpaXBzsfhoc5l58Gm5yToAaZhaOUqjkDgCWNHAULCwOLaTmzswadEqggQwgHuQsHIoZCHQMMQgQGubVEcxOPFAcMDAYUA85eWARmfSRQCdcMe0zeP1AAygwLlJtPNAAL19DARdPzBOWSm1brJBi45soRAWQAAkrQIykShQ9wVhHCwCQCACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq+E71SRQeyqUToLA7VxF0JDyIQh/MVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiRMDjI0Fd30/iI2UA5GSS5UDj2l6NoqgOgN4gksEBgYFf0FDqKgHnyZ9OX8HrgYHdHpcHQULXAS2qKpENRg7eAMLC7kTBaixUYFkKAzWAAnLC7FLVxLWDBLKCwaKTULgEwbLA4hJtOkSBNqITT3xEgfLpBtzE/jiuL04RGEBgwWhShRgQExHBAAh+QQJCgAAACwAAAAAIAAgAAAE7xDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfZiCqGk5dTESJeaOAlClzsJsqwiJwiqnFrb2nS9kmIcgEsjQydLiIlHehhpejaIjzh9eomSjZR+ipslWIRLAgMDOR2DOqKogTB9pCUJBagDBXR6XB0EBkIIsaRsGGMMAxoDBgYHTKJiUYEGDAzHC9EACcUGkIgFzgwZ0QsSBcXHiQvOwgDdEwfFs0sDzt4S6BK4xYjkDOzn0unFeBzOBijIm1Dgmg5YFQwsCMjp1oJ8LyIAACH5BAkKAAAALAAAAAAgACAAAATwEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq+E71SRQeyqUToLA7VxF0JDyIQh/MVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GGl6NoiPOH16iZKNlH6KmyWFOggHhEEvAwwMA0N9GBsEC6amhnVcEwavDAazGwIDaH1ipaYLBUTCGgQDA8NdHz0FpqgTBwsLqAbWAAnIA4FWKdMLGdYGEgraigbT0OITBcg5QwPT4xLrROZL6AuQAPUS7bxLpoWidY0JtxLHKhwwMJBTHgPKdEQAACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq+E71SRQeyqUToLA7VxF0JDyIQh/MVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GAULDJCRiXo1CpGXDJOUjY+Yip9DhToJA4RBLwMLCwVDfRgbBAaqqoZ1XBMHswsHtxtFaH1iqaoGNgAIxRpbFAgfPQSqpbgGBqUD1wBXeCYp1AYZ19JJOYgH1KwA4UBvQwXUBxPqVD9L3sbp2BNk2xvvFPJd+MFCN6HAAIKgNggY0KtEBAAh+QQJCgAAACwAAAAAIAAgAAAE6BDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfYIDMaAFdTESJeaEDAIMxYFqrOUaNW4E4ObYcCXaiBVEgULe0NJaxxtYksjh2NLkZISgDgJhHthkpU4mW6blRiYmZOlh4JWkDqILwUGBnE6TYEbCgevr0N1gH4At7gHiRpFaLNrrq8HNgAJA70AWxQIH1+vsYMDAzZQPC9VCNkDWUhGkuE5PxJNwiUK4UfLzOlD4WvzAHaoG9nxPi5d+jYUqfAhhykOFwJWiAAAIfkECQoAAAAsAAAAACAAIAAABPAQyElpUqnqzaciSoVkXVUMFaFSwlpOCcMYlErAavhOMnNLNo8KsZsMZItJEIDIFSkLGQoQTNhIsFehRww2CQLKF0tYGKYSg+ygsZIuNqJksKgbfgIGepNo2cIUB3V1B3IvNiBYNQaDSTtfhhx0CwVPI0UJe0+bm4g5VgcGoqOcnjmjqDSdnhgEoamcsZuXO1aWQy8KAwOAuTYYGwi7w5h+Kr0SJ8MFihpNbx+4Erq7BYBuzsdiH1jCAzoSfl0rVirNbRXlBBlLX+BP0XJLAPGzTkAuAOqb0WT5AH7OcdCm5B8TgRwSRKIHQtaLCwg1RAAAOwAAAAAAAAAAAA==); -} - -.jvectormap-legend-title { - font-weight: bold; - font-size: 14px; - text-align: center; -} - -.jvectormap-legend-cnt { - position: absolute; -} - -.jvectormap-legend-cnt-h { - bottom: 0; - right: 0; -} - -.jvectormap-legend-cnt-v { - top: 0; - right: 0; -} - -.jvectormap-legend { - background: black; - color: white; - border-radius: 3px; -} - -.jvectormap-legend-cnt-h .jvectormap-legend { - float: left; - margin: 0 10px 10px 0; - padding: 3px 3px 1px 3px; -} - -.jvectormap-legend-cnt-h .jvectormap-legend .jvectormap-legend-tick { - float: left; -} - -.jvectormap-legend-cnt-v .jvectormap-legend { - margin: 10px 10px 0 0; - padding: 3px; -} - -.jvectormap-legend-cnt-h .jvectormap-legend-tick { - width: 40px; -} - -.jvectormap-legend-cnt-h .jvectormap-legend-tick-sample { - height: 15px; -} - -.jvectormap-legend-cnt-v .jvectormap-legend-tick-sample { - height: 20px; - width: 20px; - display: inline-block; - vertical-align: middle; -} - -.jvectormap-legend-tick-text { - font-size: 12px; -} - -.jvectormap-legend-cnt-h .jvectormap-legend-tick-text { - text-align: center; -} - -.jvectormap-legend-cnt-v .jvectormap-legend-tick-text { - display: inline-block; - vertical-align: middle; - line-height: 20px; - padding-left: 3px; -} - -/** - * selectize.css (v0.12.4) - * Copyright (c) 2013–2015 Brian Reavis & contributors - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF - * ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - * - * @author Brian Reavis - */ -.selectize-control.plugin-drag_drop.multi > .selectize-input > div.ui-sortable-placeholder { - visibility: visible !important; - background: #f2f2f2 !important; - background: rgba(0, 0, 0, 0.06) !important; - border: 0 none !important; - box-shadow: inset 0 0 12px 4px #fff; -} - -.selectize-control.plugin-drag_drop .ui-sortable-placeholder::after { - content: '!'; - visibility: hidden; -} - -.selectize-control.plugin-drag_drop .ui-sortable-helper { - box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); -} - -.selectize-dropdown-header { - position: relative; - padding: 5px 8px; - border-bottom: 1px solid #d0d0d0; - background: #f8f8f8; - border-radius: 3px 3px 0 0; -} - -.selectize-dropdown-header-close { - position: absolute; - right: 8px; - top: 50%; - color: #495057; - opacity: 0.4; - margin-top: -12px; - line-height: 20px; - font-size: 20px !important; -} - -.selectize-dropdown-header-close:hover { - color: #000; -} - -.selectize-dropdown.plugin-optgroup_columns .optgroup { - border-right: 1px solid #f2f2f2; - border-top: 0 none; - float: left; - box-sizing: border-box; -} - -.selectize-dropdown.plugin-optgroup_columns .optgroup:last-child { - border-right: 0 none; -} - -.selectize-dropdown.plugin-optgroup_columns .optgroup:before { - display: none; -} - -.selectize-dropdown.plugin-optgroup_columns .optgroup-header { - border-top: 0 none; -} - -.selectize-control.plugin-remove_button [data-value] { - position: relative; - padding-right: 24px !important; -} - -.selectize-control.plugin-remove_button [data-value] .remove { - z-index: 1; - /* fixes ie bug (see #392) */ - position: absolute; - top: 0; - right: 0; - bottom: 0; - width: 17px; - text-align: center; - font-weight: bold; - font-size: 12px; - color: inherit; - text-decoration: none; - vertical-align: middle; - display: inline-block; - padding: 2px 0 0 0; - border-left: 1px solid #d0d0d0; - border-radius: 0 2px 2px 0; - box-sizing: border-box; -} - -.selectize-control.plugin-remove_button [data-value] .remove:hover { - background: rgba(0, 0, 0, 0.05); -} - -.selectize-control.plugin-remove_button [data-value].active .remove { - border-left-color: #cacaca; -} - -.selectize-control.plugin-remove_button .disabled [data-value] .remove:hover { - background: none; -} - -.selectize-control.plugin-remove_button .disabled [data-value] .remove { - border-left-color: #fff; -} - -.selectize-control.plugin-remove_button .remove-single { - position: absolute; - right: 28px; - top: 6px; - font-size: 23px; -} - -.selectize-control { - position: relative; - padding: 0; - border: 0; -} - -.selectize-dropdown, -.selectize-input, -.selectize-input input { - color: #495057; - font-family: inherit; - font-size: 15px; - line-height: 18px; - -webkit-font-smoothing: inherit; -} - -.selectize-input, -.selectize-control.single .selectize-input.input-active { - background: #fff; - cursor: text; - display: inline-block; -} - -.selectize-input { - border: 1px solid rgba(0, 40, 100, 0.12); - padding: 0.5625rem 0.75rem; - display: inline-block; - display: block; - width: 100%; - overflow: hidden; - position: relative; - z-index: 1; - box-sizing: border-box; - border-radius: 3px; - transition: .3s border-color, .3s box-shadow; -} - -.selectize-control.multi .selectize-input.has-items { - padding: 7px 0.75rem 4px 7px; -} - -.selectize-input.full { - background-color: #fff; -} - -.selectize-input.disabled, -.selectize-input.disabled * { - cursor: default !important; -} - -.selectize-input.focus { - border-color: #467fcf; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.selectize-input.dropdown-active { - border-radius: 3px 3px 0 0; -} - -.selectize-input > * { - vertical-align: baseline; - display: -moz-inline-stack; - display: inline-block; - zoom: 1; - *display: inline; -} - -.selectize-control.multi .selectize-input > div { - cursor: pointer; - margin: 0 3px 3px 0; - padding: 2px 6px; - background: #e9ecef; - color: #495057; - font-size: 13px; - border: 0 solid rgba(0, 40, 100, 0.12); - border-radius: 3px; - font-weight: 400; -} - -.selectize-control.multi .selectize-input > div.active { - background: #e8e8e8; - color: #303030; - border: 0 solid #cacaca; -} - -.selectize-control.multi .selectize-input.disabled > div, -.selectize-control.multi .selectize-input.disabled > div.active { - color: #7d7d7d; - background: #fff; - border: 0 solid #fff; -} - -.selectize-input > input { - display: inline-block !important; - padding: 0 !important; - min-height: 0 !important; - max-height: none !important; - max-width: 100% !important; - margin: 0 2px 0 0 !important; - text-indent: 0 !important; - border: 0 none !important; - background: none !important; - line-height: inherit !important; - box-shadow: none !important; -} - -.selectize-input > input::-ms-clear { - display: none; -} - -.selectize-input > input:focus { - outline: none !important; -} - -.selectize-input::after { - content: ' '; - display: block; - clear: left; -} - -.selectize-input.dropdown-active::before { - content: ' '; - display: block; - position: absolute; - background: #f0f0f0; - height: 1px; - bottom: 0; - left: 0; - right: 0; -} - -.selectize-dropdown { - position: absolute; - z-index: 10; - border: 1px solid rgba(0, 40, 100, 0.12); - background: #fff; - margin: -1px 0 0 0; - border-top: 0 none; - box-sizing: border-box; - border-radius: 0 0 3px 3px; - height: auto; - padding: 0; -} - -.selectize-dropdown [data-selectable] { - cursor: pointer; - overflow: hidden; -} - -.selectize-dropdown [data-selectable] .highlight { - background: rgba(125, 168, 208, 0.2); - border-radius: 1px; -} - -.selectize-dropdown [data-selectable], -.selectize-dropdown .optgroup-header { - padding: 6px .75rem; -} - -.selectize-dropdown .optgroup:first-child .optgroup-header { - border-top: 0 none; -} - -.selectize-dropdown .optgroup-header { - color: #495057; - background: #fff; - cursor: default; -} - -.selectize-dropdown .active { - background-color: #F1F4F8; - color: #467fcf; -} - -.selectize-dropdown .active.create { - color: #495057; -} - -.selectize-dropdown .create { - color: rgba(48, 48, 48, 0.5); -} - -.selectize-dropdown-content { - overflow-y: auto; - overflow-x: hidden; - max-height: 200px; - -webkit-overflow-scrolling: touch; -} - -.selectize-control.single .selectize-input, -.selectize-control.single .selectize-input input { - cursor: pointer; -} - -.selectize-control.single .selectize-input.input-active, -.selectize-control.single .selectize-input.input-active input { - cursor: text; -} - -.selectize-control.single .selectize-input:after { - content: ''; - display: block; - position: absolute; - top: 13px; - right: 12px; - width: 8px; - height: 10px; - background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 5'%3E%3Cpath fill='#999' d='M0 0L10 0L5 5L0 0'/%3E%3C/svg%3E") no-repeat center; - background-size: 8px 10px; - transition: .3s transform; -} - -.selectize-control.single .selectize-input.dropdown-active:after { - -webkit-transform: rotate(180deg); - transform: rotate(180deg); -} - -.selectize-control .selectize-input.disabled { - opacity: 0.5; - background-color: #fafafa; -} - -.selectize-dropdown .image, -.selectize-input .image { - width: 1.25rem; - height: 1.25rem; - background-size: contain; - margin: -1px .5rem -1px -4px; - line-height: 1.25rem; - float: left; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; -} - -.selectize-dropdown .image img, -.selectize-input .image img { - max-width: 100%; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); - border-radius: 2px; -} - -.selectize-input .image { - width: 1.5rem; - height: 1.5rem; - margin: -3px .75rem -3px -5px; -} - -@font-face { - font-family: "feather"; - src: url("../fonts/feather/feather-webfont.eot?t=1501841394106"); - /* IE9*/ - src: url("../fonts/feather/feather-webfont.eot?t=1501841394106#iefix") format("embedded-opentype"), url("../fonts/feather/feather-webfont.woff?t=1501841394106") format("woff"), url("../fonts/feather/feather-webfont.ttf?t=1501841394106") format("truetype"), url("../fonts/feather/feather-webfont.svg?t=1501841394106#feather") format("svg"); - /* iOS 4.1- */ -} - -.fe { - font-family: 'feather' !important; - speak: none; - font-style: normal; - font-weight: normal; - font-variant: normal; - text-transform: none; - line-height: 1; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.fe-activity:before { - content: "\e900"; -} - -.fe-airplay:before { - content: "\e901"; -} - -.fe-alert-circle:before { - content: "\e902"; -} - -.fe-alert-octagon:before { - content: "\e903"; -} - -.fe-alert-triangle:before { - content: "\e904"; -} - -.fe-align-center:before { - content: "\e905"; -} - -.fe-align-justify:before { - content: "\e906"; -} - -.fe-align-left:before { - content: "\e907"; -} - -.fe-align-right:before { - content: "\e908"; -} - -.fe-anchor:before { - content: "\e909"; -} - -.fe-aperture:before { - content: "\e90a"; -} - -.fe-arrow-down:before { - content: "\e90b"; -} - -.fe-arrow-down-circle:before { - content: "\e90c"; -} - -.fe-arrow-down-left:before { - content: "\e90d"; -} - -.fe-arrow-down-right:before { - content: "\e90e"; -} - -.fe-arrow-left:before { - content: "\e90f"; -} - -.fe-arrow-left-circle:before { - content: "\e910"; -} - -.fe-arrow-right:before { - content: "\e911"; -} - -.fe-arrow-right-circle:before { - content: "\e912"; -} - -.fe-arrow-up:before { - content: "\e913"; -} - -.fe-arrow-up-circle:before { - content: "\e914"; -} - -.fe-arrow-up-left:before { - content: "\e915"; -} - -.fe-arrow-up-right:before { - content: "\e916"; -} - -.fe-at-sign:before { - content: "\e917"; -} - -.fe-award:before { - content: "\e918"; -} - -.fe-bar-chart:before { - content: "\e919"; -} - -.fe-bar-chart-2:before { - content: "\e91a"; -} - -.fe-battery:before { - content: "\e91b"; -} - -.fe-battery-charging:before { - content: "\e91c"; -} - -.fe-bell:before { - content: "\e91d"; -} - -.fe-bell-off:before { - content: "\e91e"; -} - -.fe-bluetooth:before { - content: "\e91f"; -} - -.fe-bold:before { - content: "\e920"; -} - -.fe-book:before { - content: "\e921"; -} - -.fe-book-open:before { - content: "\e922"; -} - -.fe-bookmark:before { - content: "\e923"; -} - -.fe-box:before { - content: "\e924"; -} - -.fe-briefcase:before { - content: "\e925"; -} - -.fe-calendar:before { - content: "\e926"; -} - -.fe-camera:before { - content: "\e927"; -} - -.fe-camera-off:before { - content: "\e928"; -} - -.fe-cast:before { - content: "\e929"; -} - -.fe-check:before { - content: "\e92a"; -} - -.fe-check-circle:before { - content: "\e92b"; -} - -.fe-check-square:before { - content: "\e92c"; -} - -.fe-chevron-down:before { - content: "\e92d"; -} - -.fe-chevron-left:before { - content: "\e92e"; -} - -.fe-chevron-right:before { - content: "\e92f"; -} - -.fe-chevron-up:before { - content: "\e930"; -} - -.fe-chevrons-down:before { - content: "\e931"; -} - -.fe-chevrons-left:before { - content: "\e932"; -} - -.fe-chevrons-right:before { - content: "\e933"; -} - -.fe-chevrons-up:before { - content: "\e934"; -} - -.fe-chrome:before { - content: "\e935"; -} - -.fe-circle:before { - content: "\e936"; -} - -.fe-clipboard:before { - content: "\e937"; -} - -.fe-clock:before { - content: "\e938"; -} - -.fe-cloud:before { - content: "\e939"; -} - -.fe-cloud-drizzle:before { - content: "\e93a"; -} - -.fe-cloud-lightning:before { - content: "\e93b"; -} - -.fe-cloud-off:before { - content: "\e93c"; -} - -.fe-cloud-rain:before { - content: "\e93d"; -} - -.fe-cloud-snow:before { - content: "\e93e"; -} - -.fe-code:before { - content: "\e93f"; -} - -.fe-codepen:before { - content: "\e940"; -} - -.fe-command:before { - content: "\e941"; -} - -.fe-compass:before { - content: "\e942"; -} - -.fe-copy:before { - content: "\e943"; -} - -.fe-corner-down-left:before { - content: "\e944"; -} - -.fe-corner-down-right:before { - content: "\e945"; -} - -.fe-corner-left-down:before { - content: "\e946"; -} - -.fe-corner-left-up:before { - content: "\e947"; -} - -.fe-corner-right-down:before { - content: "\e948"; -} - -.fe-corner-right-up:before { - content: "\e949"; -} - -.fe-corner-up-left:before { - content: "\e94a"; -} - -.fe-corner-up-right:before { - content: "\e94b"; -} - -.fe-cpu:before { - content: "\e94c"; -} - -.fe-credit-card:before { - content: "\e94d"; -} - -.fe-crop:before { - content: "\e94e"; -} - -.fe-crosshair:before { - content: "\e94f"; -} - -.fe-database:before { - content: "\e950"; -} - -.fe-delete:before { - content: "\e951"; -} - -.fe-disc:before { - content: "\e952"; -} - -.fe-dollar-sign:before { - content: "\e953"; -} - -.fe-download:before { - content: "\e954"; -} - -.fe-download-cloud:before { - content: "\e955"; -} - -.fe-droplet:before { - content: "\e956"; -} - -.fe-edit:before { - content: "\e957"; -} - -.fe-edit-2:before { - content: "\e958"; -} - -.fe-edit-3:before { - content: "\e959"; -} - -.fe-external-link:before { - content: "\e95a"; -} - -.fe-eye:before { - content: "\e95b"; -} - -.fe-eye-off:before { - content: "\e95c"; -} - -.fe-facebook:before { - content: "\e95d"; -} - -.fe-fast-forward:before { - content: "\e95e"; -} - -.fe-feather:before { - content: "\e95f"; -} - -.fe-file:before { - content: "\e960"; -} - -.fe-file-minus:before { - content: "\e961"; -} - -.fe-file-plus:before { - content: "\e962"; -} - -.fe-file-text:before { - content: "\e963"; -} - -.fe-film:before { - content: "\e964"; -} - -.fe-filter:before { - content: "\e965"; -} - -.fe-flag:before { - content: "\e966"; -} - -.fe-folder:before { - content: "\e967"; -} - -.fe-folder-minus:before { - content: "\e968"; -} - -.fe-folder-plus:before { - content: "\e969"; -} - -.fe-git-branch:before { - content: "\e96a"; -} - -.fe-git-commit:before { - content: "\e96b"; -} - -.fe-git-merge:before { - content: "\e96c"; -} - -.fe-git-pull-request:before { - content: "\e96d"; -} - -.fe-github:before { - content: "\e96e"; -} - -.fe-gitlab:before { - content: "\e96f"; -} - -.fe-globe:before { - content: "\e970"; -} - -.fe-grid:before { - content: "\e971"; -} - -.fe-hard-drive:before { - content: "\e972"; -} - -.fe-hash:before { - content: "\e973"; -} - -.fe-headphones:before { - content: "\e974"; -} - -.fe-heart:before { - content: "\e975"; -} - -.fe-help-circle:before { - content: "\e976"; -} - -.fe-home:before { - content: "\e977"; -} - -.fe-image:before { - content: "\e978"; -} - -.fe-inbox:before { - content: "\e979"; -} - -.fe-info:before { - content: "\e97a"; -} - -.fe-instagram:before { - content: "\e97b"; -} - -.fe-italic:before { - content: "\e97c"; -} - -.fe-layers:before { - content: "\e97d"; -} - -.fe-layout:before { - content: "\e97e"; -} - -.fe-life-buoy:before { - content: "\e97f"; -} - -.fe-link:before { - content: "\e980"; -} - -.fe-link-2:before { - content: "\e981"; -} - -.fe-linkedin:before { - content: "\e982"; -} - -.fe-list:before { - content: "\e983"; -} - -.fe-loader:before { - content: "\e984"; -} - -.fe-lock:before { - content: "\e985"; -} - -.fe-log-in:before { - content: "\e986"; -} - -.fe-log-out:before { - content: "\e987"; -} - -.fe-mail:before { - content: "\e988"; -} - -.fe-map:before { - content: "\e989"; -} - -.fe-map-pin:before { - content: "\e98a"; -} - -.fe-maximize:before { - content: "\e98b"; -} - -.fe-maximize-2:before { - content: "\e98c"; -} - -.fe-menu:before { - content: "\e98d"; -} - -.fe-message-circle:before { - content: "\e98e"; -} - -.fe-message-square:before { - content: "\e98f"; -} - -.fe-mic:before { - content: "\e990"; -} - -.fe-mic-off:before { - content: "\e991"; -} - -.fe-minimize:before { - content: "\e992"; -} - -.fe-minimize-2:before { - content: "\e993"; -} - -.fe-minus:before { - content: "\e994"; -} - -.fe-minus-circle:before { - content: "\e995"; -} - -.fe-minus-square:before { - content: "\e996"; -} - -.fe-monitor:before { - content: "\e997"; -} - -.fe-moon:before { - content: "\e998"; -} - -.fe-more-horizontal:before { - content: "\e999"; -} - -.fe-more-vertical:before { - content: "\e99a"; -} - -.fe-move:before { - content: "\e99b"; -} - -.fe-music:before { - content: "\e99c"; -} - -.fe-navigation:before { - content: "\e99d"; -} - -.fe-navigation-2:before { - content: "\e99e"; -} - -.fe-octagon:before { - content: "\e99f"; -} - -.fe-package:before { - content: "\e9a0"; -} - -.fe-paperclip:before { - content: "\e9a1"; -} - -.fe-pause:before { - content: "\e9a2"; -} - -.fe-pause-circle:before { - content: "\e9a3"; -} - -.fe-percent:before { - content: "\e9a4"; -} - -.fe-phone:before { - content: "\e9a5"; -} - -.fe-phone-call:before { - content: "\e9a6"; -} - -.fe-phone-forwarded:before { - content: "\e9a7"; -} - -.fe-phone-incoming:before { - content: "\e9a8"; -} - -.fe-phone-missed:before { - content: "\e9a9"; -} - -.fe-phone-off:before { - content: "\e9aa"; -} - -.fe-phone-outgoing:before { - content: "\e9ab"; -} - -.fe-pie-chart:before { - content: "\e9ac"; -} - -.fe-play:before { - content: "\e9ad"; -} - -.fe-play-circle:before { - content: "\e9ae"; -} - -.fe-plus:before { - content: "\e9af"; -} - -.fe-plus-circle:before { - content: "\e9b0"; -} - -.fe-plus-square:before { - content: "\e9b1"; -} - -.fe-pocket:before { - content: "\e9b2"; -} - -.fe-power:before { - content: "\e9b3"; -} - -.fe-printer:before { - content: "\e9b4"; -} - -.fe-radio:before { - content: "\e9b5"; -} - -.fe-refresh-ccw:before { - content: "\e9b6"; -} - -.fe-refresh-cw:before { - content: "\e9b7"; -} - -.fe-repeat:before { - content: "\e9b8"; -} - -.fe-rewind:before { - content: "\e9b9"; -} - -.fe-rotate-ccw:before { - content: "\e9ba"; -} - -.fe-rotate-cw:before { - content: "\e9bb"; -} - -.fe-rss:before { - content: "\e9bc"; -} - -.fe-save:before { - content: "\e9bd"; -} - -.fe-scissors:before { - content: "\e9be"; -} - -.fe-search:before { - content: "\e9bf"; -} - -.fe-send:before { - content: "\e9c0"; -} - -.fe-server:before { - content: "\e9c1"; -} - -.fe-settings:before { - content: "\e9c2"; -} - -.fe-share:before { - content: "\e9c3"; -} - -.fe-share-2:before { - content: "\e9c4"; -} - -.fe-shield:before { - content: "\e9c5"; -} - -.fe-shield-off:before { - content: "\e9c6"; -} - -.fe-shopping-bag:before { - content: "\e9c7"; -} - -.fe-shopping-cart:before { - content: "\e9c8"; -} - -.fe-shuffle:before { - content: "\e9c9"; -} - -.fe-sidebar:before { - content: "\e9ca"; -} - -.fe-skip-back:before { - content: "\e9cb"; -} - -.fe-skip-forward:before { - content: "\e9cc"; -} - -.fe-slack:before { - content: "\e9cd"; -} - -.fe-slash:before { - content: "\e9ce"; -} - -.fe-sliders:before { - content: "\e9cf"; -} - -.fe-smartphone:before { - content: "\e9d0"; -} - -.fe-speaker:before { - content: "\e9d1"; -} - -.fe-square:before { - content: "\e9d2"; -} - -.fe-star:before { - content: "\e9d3"; -} - -.fe-stop-circle:before { - content: "\e9d4"; -} - -.fe-sun:before { - content: "\e9d5"; -} - -.fe-sunrise:before { - content: "\e9d6"; -} - -.fe-sunset:before { - content: "\e9d7"; -} - -.fe-tablet:before { - content: "\e9d8"; -} - -.fe-tag:before { - content: "\e9d9"; -} - -.fe-target:before { - content: "\e9da"; -} - -.fe-terminal:before { - content: "\e9db"; -} - -.fe-thermometer:before { - content: "\e9dc"; -} - -.fe-thumbs-down:before { - content: "\e9dd"; -} - -.fe-thumbs-up:before { - content: "\e9de"; -} - -.fe-toggle-left:before { - content: "\e9df"; -} - -.fe-toggle-right:before { - content: "\e9e0"; -} - -.fe-trash:before { - content: "\e9e1"; -} - -.fe-trash-2:before { - content: "\e9e2"; -} - -.fe-trending-down:before { - content: "\e9e3"; -} - -.fe-trending-up:before { - content: "\e9e4"; -} - -.fe-triangle:before { - content: "\e9e5"; -} - -.fe-truck:before { - content: "\e9e6"; -} - -.fe-tv:before { - content: "\e9e7"; -} - -.fe-twitter:before { - content: "\e9e8"; -} - -.fe-type:before { - content: "\e9e9"; -} - -.fe-umbrella:before { - content: "\e9ea"; -} - -.fe-underline:before { - content: "\e9eb"; -} - -.fe-unlock:before { - content: "\e9ec"; -} - -.fe-upload:before { - content: "\e9ed"; -} - -.fe-upload-cloud:before { - content: "\e9ee"; -} - -.fe-user:before { - content: "\e9ef"; -} - -.fe-user-check:before { - content: "\e9f0"; -} - -.fe-user-minus:before { - content: "\e9f1"; -} - -.fe-user-plus:before { - content: "\e9f2"; -} - -.fe-user-x:before { - content: "\e9f3"; -} - -.fe-users:before { - content: "\e9f4"; -} - -.fe-video:before { - content: "\e9f5"; -} - -.fe-video-off:before { - content: "\e9f6"; -} - -.fe-voicemail:before { - content: "\e9f7"; -} - -.fe-volume:before { - content: "\e9f8"; -} - -.fe-volume-1:before { - content: "\e9f9"; -} - -.fe-volume-2:before { - content: "\e9fa"; -} - -.fe-volume-x:before { - content: "\e9fb"; -} - -.fe-watch:before { - content: "\e9fc"; -} - -.fe-wifi:before { - content: "\e9fd"; -} - -.fe-wifi-off:before { - content: "\e9fe"; -} - -.fe-wind:before { - content: "\e9ff"; -} - -.fe-x:before { - content: "\ea00"; -} - -.fe-x-circle:before { - content: "\ea01"; -} - -.fe-x-square:before { - content: "\ea02"; -} - -.fe-zap:before { - content: "\ea03"; -} - -.fe-zap-off:before { - content: "\ea04"; -} - -.fe-zoom-in:before { - content: "\ea05"; -} - -.fe-zoom-out:before { - content: "\ea06"; -} diff --git a/dist/assets/css/tabler.rtl.css b/dist/assets/css/tabler.rtl.css deleted file mode 100644 index 825506ec9..000000000 --- a/dist/assets/css/tabler.rtl.css +++ /dev/null @@ -1,18610 +0,0 @@ -@charset "UTF-8"; -/** -Dashboard UI - */ -/*! - * Bootstrap v4.1.0 (https://getbootstrap.com/) - * Copyright 2011-2018 The Bootstrap Authors - * Copyright 2011-2018 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - */ -:root { - --blue: #467fcf; - --indigo: #6574cd; - --purple: #a55eea; - --pink: #f66d9b; - --red: #cd201f; - --orange: #fd9644; - --yellow: #f1c40f; - --green: #5eba00; - --teal: #2bcbba; - --cyan: #17a2b8; - --white: #fff; - --gray: #868e96; - --gray-dark: #343a40; - --azure: #45aaf2; - --lime: #7bd235; - --primary: #467fcf; - --secondary: #868e96; - --success: #5eba00; - --info: #45aaf2; - --warning: #f1c40f; - --danger: #cd201f; - --light: #f8f9fa; - --dark: #343a40; - --breakpoint-xs: 0; - --breakpoint-sm: 576px; - --breakpoint-md: 768px; - --breakpoint-lg: 992px; - --breakpoint-xl: 1280px; - --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; - --font-family-monospace: Monaco, Consolas, "Liberation Mono", "Courier New", monospace; -} - -*, -*::before, -*::after { - box-sizing: border-box; -} - -html { - font-family: sans-serif; - line-height: 1.15; - -webkit-text-size-adjust: 100%; - -ms-text-size-adjust: 100%; - -ms-overflow-style: scrollbar; - -webkit-tap-highlight-color: transparent; -} - -@-ms-viewport { - width: device-width; -} - -article, aside, dialog, figcaption, figure, footer, header, hgroup, main, nav, section { - display: block; -} - -body { - margin: 0; - font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; - font-size: 0.9375rem; - font-weight: 400; - line-height: 1.5; - color: #495057; - text-align: right; - background-color: #f5f7fb; -} - -[tabindex="-1"]:focus { - outline: 0 !important; -} - -hr { - box-sizing: content-box; - height: 0; - overflow: visible; -} - -h1, h2, h3, h4, h5, h6 { - margin-top: 0; - margin-bottom: 0.66em; -} - -p { - margin-top: 0; - margin-bottom: 1rem; -} - -abbr[title], -abbr[data-original-title] { - text-decoration: underline; - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; - cursor: help; - border-bottom: 0; -} - -address { - margin-bottom: 1rem; - font-style: normal; - line-height: inherit; -} - -ol, -ul, -dl { - margin-top: 0; - margin-bottom: 1rem; -} - -ol ol, -ul ul, -ol ul, -ul ol { - margin-bottom: 0; -} - -dt { - font-weight: 700; -} - -dd { - margin-bottom: .5rem; - margin-right: 0; -} - -blockquote { - margin: 0 0 1rem; -} - -dfn { - font-style: italic; -} - -b, -strong { - font-weight: bolder; -} - -small { - font-size: 80%; -} - -sub, -sup { - position: relative; - font-size: 75%; - line-height: 0; - vertical-align: baseline; -} - -sub { - bottom: -.25em; -} - -sup { - top: -.5em; -} - -a { - color: #467fcf; - text-decoration: none; - background-color: transparent; - -webkit-text-decoration-skip: objects; -} - -a:hover { - color: #295a9f; - text-decoration: underline; -} - -a:not([href]):not([tabindex]) { - color: inherit; - text-decoration: none; -} - -a:not([href]):not([tabindex]):hover, a:not([href]):not([tabindex]):focus { - color: inherit; - text-decoration: none; -} - -a:not([href]):not([tabindex]):focus { - outline: 0; -} - -pre, -code, -kbd, -samp { - font-family: monospace, monospace; - font-size: 1em; -} - -pre { - margin-top: 0; - margin-bottom: 1rem; - overflow: auto; - -ms-overflow-style: scrollbar; -} - -figure { - margin: 0 0 1rem; -} - -img { - vertical-align: middle; - border-style: none; -} - -svg:not(:root) { - overflow: hidden; -} - -table { - border-collapse: collapse; -} - -caption { - padding-top: 0.75rem; - padding-bottom: 0.75rem; - color: #9aa0ac; - text-align: right; - caption-side: bottom; -} - -th { - text-align: inherit; -} - -label { - display: inline-block; - margin-bottom: 0.5rem; -} - -button { - border-radius: 0; -} - -button:focus { - outline: 1px dotted; - outline: 5px auto -webkit-focus-ring-color; -} - -input, -button, -select, -optgroup, -textarea { - margin: 0; - font-family: inherit; - font-size: inherit; - line-height: inherit; -} - -button, -input { - overflow: visible; -} - -button, -select { - text-transform: none; -} - -button, -html [type="button"], -[type="reset"], -[type="submit"] { - -webkit-appearance: button; -} - -button::-moz-focus-inner, -[type="button"]::-moz-focus-inner, -[type="reset"]::-moz-focus-inner, -[type="submit"]::-moz-focus-inner { - padding: 0; - border-style: none; -} - -input[type="radio"], -input[type="checkbox"] { - box-sizing: border-box; - padding: 0; -} - -input[type="date"], -input[type="time"], -input[type="datetime-local"], -input[type="month"] { - -webkit-appearance: listbox; -} - -textarea { - overflow: auto; - resize: vertical; -} - -fieldset { - min-width: 0; - padding: 0; - margin: 0; - border: 0; -} - -legend { - display: block; - width: 100%; - max-width: 100%; - padding: 0; - margin-bottom: .5rem; - font-size: 1.5rem; - line-height: inherit; - color: inherit; - white-space: normal; -} - -progress { - vertical-align: baseline; -} - -[type="number"]::-webkit-inner-spin-button, -[type="number"]::-webkit-outer-spin-button { - height: auto; -} - -[type="search"] { - outline-offset: -2px; - -webkit-appearance: none; -} - -[type="search"]::-webkit-search-cancel-button, -[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; -} - -::-webkit-file-upload-button { - font: inherit; - -webkit-appearance: button; -} - -output { - display: inline-block; -} - -summary { - display: list-item; - cursor: pointer; -} - -template { - display: none; -} - -[hidden] { - display: none !important; -} - -h1, h2, h3, h4, h5, h6, -.h1, .h2, .h3, .h4, .h5, .h6 { - margin-bottom: 0.66em; - font-family: inherit; - font-weight: 600; - line-height: 1.1; - color: inherit; -} - -h1, .h1 { - font-size: 2rem; -} - -h2, .h2 { - font-size: 1.75rem; -} - -h3, .h3 { - font-size: 1.5rem; -} - -h4, .h4 { - font-size: 1.125rem; -} - -h5, .h5 { - font-size: 1rem; -} - -h6, .h6 { - font-size: 0.875rem; -} - -.lead { - font-size: 1.171875rem; - font-weight: 300; -} - -.display-1 { - font-size: 4.5rem; - font-weight: 300; - line-height: 1.1; -} - -.display-2 { - font-size: 4rem; - font-weight: 300; - line-height: 1.1; -} - -.display-3 { - font-size: 3.5rem; - font-weight: 300; - line-height: 1.1; -} - -.display-4 { - font-size: 3rem; - font-weight: 300; - line-height: 1.1; -} - -hr { - margin-top: 1rem; - margin-bottom: 1rem; - border: 0; - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -small, -.small { - font-size: 87.5%; - font-weight: 400; -} - -mark, -.mark { - padding: 0.2em; - background-color: #fcf8e3; -} - -.list-unstyled { - padding-right: 0; - list-style: none; -} - -.list-inline { - padding-right: 0; - list-style: none; -} - -.list-inline-item { - display: inline-block; -} - -.list-inline-item:not(:last-child) { - margin-left: 0.5rem; -} - -.initialism { - font-size: 90%; - text-transform: uppercase; -} - -.blockquote { - margin-bottom: 1rem; - font-size: 1.171875rem; -} - -.blockquote-footer { - display: block; - font-size: 80%; - color: #868e96; -} - -.blockquote-footer::before { - content: "\2014 \00A0"; -} - -.img-fluid { - max-width: 100%; - height: auto; -} - -.img-thumbnail { - padding: 0.25rem; - background-color: #fff; - border: 1px solid #dee2e6; - border-radius: 3px; - max-width: 100%; - height: auto; -} - -.figure { - display: inline-block; -} - -.figure-img { - margin-bottom: 0.5rem; - line-height: 1; -} - -.figure-caption { - font-size: 90%; - color: #868e96; -} - -code, -kbd, -pre, -samp { - font-family: Monaco, Consolas, "Liberation Mono", "Courier New", monospace; -} - -code { - font-size: 85%; - color: inherit; - word-break: break-word; -} - -a > code { - color: inherit; -} - -kbd { - padding: 0.2rem 0.4rem; - font-size: 85%; - color: #fff; - background-color: #343a40; - border-radius: 3px; -} - -kbd kbd { - padding: 0; - font-size: 100%; - font-weight: 700; -} - -pre { - display: block; - font-size: 85%; - color: #212529; -} - -pre code { - font-size: inherit; - color: inherit; - word-break: normal; -} - -.pre-scrollable { - max-height: 340px; - overflow-y: scroll; -} - -.container { - width: 100%; - padding-left: 0.75rem; - padding-right: 0.75rem; - margin-left: auto; - margin-right: auto; -} - -@media (min-width: 576px) { - .container { - max-width: 540px; - } -} - -@media (min-width: 768px) { - .container { - max-width: 720px; - } -} - -@media (min-width: 992px) { - .container { - max-width: 960px; - } -} - -@media (min-width: 1280px) { - .container { - max-width: 1200px; - } -} - -.container-fluid { - width: 100%; - padding-left: 0.75rem; - padding-right: 0.75rem; - margin-left: auto; - margin-right: auto; -} - -.row { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-left: -0.75rem; - margin-right: -0.75rem; -} - -.no-gutters { - margin-left: 0; - margin-right: 0; -} - -.no-gutters > .col, -.no-gutters > [class*="col-"] { - padding-left: 0; - padding-right: 0; -} - -.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, -.col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, -.col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, -.col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, -.col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl, -.col-xl-auto { - position: relative; - width: 100%; - min-height: 1px; - padding-left: 0.75rem; - padding-right: 0.75rem; -} - -.col { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; -} - -.col-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; -} - -.col-1 { - -ms-flex: 0 0 8.33333333%; - flex: 0 0 8.33333333%; - max-width: 8.33333333%; -} - -.col-2 { - -ms-flex: 0 0 16.66666667%; - flex: 0 0 16.66666667%; - max-width: 16.66666667%; -} - -.col-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; -} - -.col-4 { - -ms-flex: 0 0 33.33333333%; - flex: 0 0 33.33333333%; - max-width: 33.33333333%; -} - -.col-5 { - -ms-flex: 0 0 41.66666667%; - flex: 0 0 41.66666667%; - max-width: 41.66666667%; -} - -.col-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; -} - -.col-7 { - -ms-flex: 0 0 58.33333333%; - flex: 0 0 58.33333333%; - max-width: 58.33333333%; -} - -.col-8 { - -ms-flex: 0 0 66.66666667%; - flex: 0 0 66.66666667%; - max-width: 66.66666667%; -} - -.col-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; -} - -.col-10 { - -ms-flex: 0 0 83.33333333%; - flex: 0 0 83.33333333%; - max-width: 83.33333333%; -} - -.col-11 { - -ms-flex: 0 0 91.66666667%; - flex: 0 0 91.66666667%; - max-width: 91.66666667%; -} - -.col-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; -} - -.order-first { - -ms-flex-order: -1; - order: -1; -} - -.order-last { - -ms-flex-order: 13; - order: 13; -} - -.order-0 { - -ms-flex-order: 0; - order: 0; -} - -.order-1 { - -ms-flex-order: 1; - order: 1; -} - -.order-2 { - -ms-flex-order: 2; - order: 2; -} - -.order-3 { - -ms-flex-order: 3; - order: 3; -} - -.order-4 { - -ms-flex-order: 4; - order: 4; -} - -.order-5 { - -ms-flex-order: 5; - order: 5; -} - -.order-6 { - -ms-flex-order: 6; - order: 6; -} - -.order-7 { - -ms-flex-order: 7; - order: 7; -} - -.order-8 { - -ms-flex-order: 8; - order: 8; -} - -.order-9 { - -ms-flex-order: 9; - order: 9; -} - -.order-10 { - -ms-flex-order: 10; - order: 10; -} - -.order-11 { - -ms-flex-order: 11; - order: 11; -} - -.order-12 { - -ms-flex-order: 12; - order: 12; -} - -.offset-1 { - margin-right: 8.33333333%; -} - -.offset-2 { - margin-right: 16.66666667%; -} - -.offset-3 { - margin-right: 25%; -} - -.offset-4 { - margin-right: 33.33333333%; -} - -.offset-5 { - margin-right: 41.66666667%; -} - -.offset-6 { - margin-right: 50%; -} - -.offset-7 { - margin-right: 58.33333333%; -} - -.offset-8 { - margin-right: 66.66666667%; -} - -.offset-9 { - margin-right: 75%; -} - -.offset-10 { - margin-right: 83.33333333%; -} - -.offset-11 { - margin-right: 91.66666667%; -} - -@media (min-width: 576px) { - .col-sm { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; - } - .col-sm-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; - } - .col-sm-1 { - -ms-flex: 0 0 8.33333333%; - flex: 0 0 8.33333333%; - max-width: 8.33333333%; - } - .col-sm-2 { - -ms-flex: 0 0 16.66666667%; - flex: 0 0 16.66666667%; - max-width: 16.66666667%; - } - .col-sm-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-sm-4 { - -ms-flex: 0 0 33.33333333%; - flex: 0 0 33.33333333%; - max-width: 33.33333333%; - } - .col-sm-5 { - -ms-flex: 0 0 41.66666667%; - flex: 0 0 41.66666667%; - max-width: 41.66666667%; - } - .col-sm-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .col-sm-7 { - -ms-flex: 0 0 58.33333333%; - flex: 0 0 58.33333333%; - max-width: 58.33333333%; - } - .col-sm-8 { - -ms-flex: 0 0 66.66666667%; - flex: 0 0 66.66666667%; - max-width: 66.66666667%; - } - .col-sm-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } - .col-sm-10 { - -ms-flex: 0 0 83.33333333%; - flex: 0 0 83.33333333%; - max-width: 83.33333333%; - } - .col-sm-11 { - -ms-flex: 0 0 91.66666667%; - flex: 0 0 91.66666667%; - max-width: 91.66666667%; - } - .col-sm-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .order-sm-first { - -ms-flex-order: -1; - order: -1; - } - .order-sm-last { - -ms-flex-order: 13; - order: 13; - } - .order-sm-0 { - -ms-flex-order: 0; - order: 0; - } - .order-sm-1 { - -ms-flex-order: 1; - order: 1; - } - .order-sm-2 { - -ms-flex-order: 2; - order: 2; - } - .order-sm-3 { - -ms-flex-order: 3; - order: 3; - } - .order-sm-4 { - -ms-flex-order: 4; - order: 4; - } - .order-sm-5 { - -ms-flex-order: 5; - order: 5; - } - .order-sm-6 { - -ms-flex-order: 6; - order: 6; - } - .order-sm-7 { - -ms-flex-order: 7; - order: 7; - } - .order-sm-8 { - -ms-flex-order: 8; - order: 8; - } - .order-sm-9 { - -ms-flex-order: 9; - order: 9; - } - .order-sm-10 { - -ms-flex-order: 10; - order: 10; - } - .order-sm-11 { - -ms-flex-order: 11; - order: 11; - } - .order-sm-12 { - -ms-flex-order: 12; - order: 12; - } - .offset-sm-0 { - margin-right: 0; - } - .offset-sm-1 { - margin-right: 8.33333333%; - } - .offset-sm-2 { - margin-right: 16.66666667%; - } - .offset-sm-3 { - margin-right: 25%; - } - .offset-sm-4 { - margin-right: 33.33333333%; - } - .offset-sm-5 { - margin-right: 41.66666667%; - } - .offset-sm-6 { - margin-right: 50%; - } - .offset-sm-7 { - margin-right: 58.33333333%; - } - .offset-sm-8 { - margin-right: 66.66666667%; - } - .offset-sm-9 { - margin-right: 75%; - } - .offset-sm-10 { - margin-right: 83.33333333%; - } - .offset-sm-11 { - margin-right: 91.66666667%; - } -} - -@media (min-width: 768px) { - .col-md { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; - } - .col-md-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; - } - .col-md-1 { - -ms-flex: 0 0 8.33333333%; - flex: 0 0 8.33333333%; - max-width: 8.33333333%; - } - .col-md-2 { - -ms-flex: 0 0 16.66666667%; - flex: 0 0 16.66666667%; - max-width: 16.66666667%; - } - .col-md-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-md-4 { - -ms-flex: 0 0 33.33333333%; - flex: 0 0 33.33333333%; - max-width: 33.33333333%; - } - .col-md-5 { - -ms-flex: 0 0 41.66666667%; - flex: 0 0 41.66666667%; - max-width: 41.66666667%; - } - .col-md-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .col-md-7 { - -ms-flex: 0 0 58.33333333%; - flex: 0 0 58.33333333%; - max-width: 58.33333333%; - } - .col-md-8 { - -ms-flex: 0 0 66.66666667%; - flex: 0 0 66.66666667%; - max-width: 66.66666667%; - } - .col-md-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } - .col-md-10 { - -ms-flex: 0 0 83.33333333%; - flex: 0 0 83.33333333%; - max-width: 83.33333333%; - } - .col-md-11 { - -ms-flex: 0 0 91.66666667%; - flex: 0 0 91.66666667%; - max-width: 91.66666667%; - } - .col-md-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .order-md-first { - -ms-flex-order: -1; - order: -1; - } - .order-md-last { - -ms-flex-order: 13; - order: 13; - } - .order-md-0 { - -ms-flex-order: 0; - order: 0; - } - .order-md-1 { - -ms-flex-order: 1; - order: 1; - } - .order-md-2 { - -ms-flex-order: 2; - order: 2; - } - .order-md-3 { - -ms-flex-order: 3; - order: 3; - } - .order-md-4 { - -ms-flex-order: 4; - order: 4; - } - .order-md-5 { - -ms-flex-order: 5; - order: 5; - } - .order-md-6 { - -ms-flex-order: 6; - order: 6; - } - .order-md-7 { - -ms-flex-order: 7; - order: 7; - } - .order-md-8 { - -ms-flex-order: 8; - order: 8; - } - .order-md-9 { - -ms-flex-order: 9; - order: 9; - } - .order-md-10 { - -ms-flex-order: 10; - order: 10; - } - .order-md-11 { - -ms-flex-order: 11; - order: 11; - } - .order-md-12 { - -ms-flex-order: 12; - order: 12; - } - .offset-md-0 { - margin-right: 0; - } - .offset-md-1 { - margin-right: 8.33333333%; - } - .offset-md-2 { - margin-right: 16.66666667%; - } - .offset-md-3 { - margin-right: 25%; - } - .offset-md-4 { - margin-right: 33.33333333%; - } - .offset-md-5 { - margin-right: 41.66666667%; - } - .offset-md-6 { - margin-right: 50%; - } - .offset-md-7 { - margin-right: 58.33333333%; - } - .offset-md-8 { - margin-right: 66.66666667%; - } - .offset-md-9 { - margin-right: 75%; - } - .offset-md-10 { - margin-right: 83.33333333%; - } - .offset-md-11 { - margin-right: 91.66666667%; - } -} - -@media (min-width: 992px) { - .col-lg { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; - } - .col-lg-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; - } - .col-lg-1 { - -ms-flex: 0 0 8.33333333%; - flex: 0 0 8.33333333%; - max-width: 8.33333333%; - } - .col-lg-2 { - -ms-flex: 0 0 16.66666667%; - flex: 0 0 16.66666667%; - max-width: 16.66666667%; - } - .col-lg-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-lg-4 { - -ms-flex: 0 0 33.33333333%; - flex: 0 0 33.33333333%; - max-width: 33.33333333%; - } - .col-lg-5 { - -ms-flex: 0 0 41.66666667%; - flex: 0 0 41.66666667%; - max-width: 41.66666667%; - } - .col-lg-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .col-lg-7 { - -ms-flex: 0 0 58.33333333%; - flex: 0 0 58.33333333%; - max-width: 58.33333333%; - } - .col-lg-8 { - -ms-flex: 0 0 66.66666667%; - flex: 0 0 66.66666667%; - max-width: 66.66666667%; - } - .col-lg-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } - .col-lg-10 { - -ms-flex: 0 0 83.33333333%; - flex: 0 0 83.33333333%; - max-width: 83.33333333%; - } - .col-lg-11 { - -ms-flex: 0 0 91.66666667%; - flex: 0 0 91.66666667%; - max-width: 91.66666667%; - } - .col-lg-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .order-lg-first { - -ms-flex-order: -1; - order: -1; - } - .order-lg-last { - -ms-flex-order: 13; - order: 13; - } - .order-lg-0 { - -ms-flex-order: 0; - order: 0; - } - .order-lg-1 { - -ms-flex-order: 1; - order: 1; - } - .order-lg-2 { - -ms-flex-order: 2; - order: 2; - } - .order-lg-3 { - -ms-flex-order: 3; - order: 3; - } - .order-lg-4 { - -ms-flex-order: 4; - order: 4; - } - .order-lg-5 { - -ms-flex-order: 5; - order: 5; - } - .order-lg-6 { - -ms-flex-order: 6; - order: 6; - } - .order-lg-7 { - -ms-flex-order: 7; - order: 7; - } - .order-lg-8 { - -ms-flex-order: 8; - order: 8; - } - .order-lg-9 { - -ms-flex-order: 9; - order: 9; - } - .order-lg-10 { - -ms-flex-order: 10; - order: 10; - } - .order-lg-11 { - -ms-flex-order: 11; - order: 11; - } - .order-lg-12 { - -ms-flex-order: 12; - order: 12; - } - .offset-lg-0 { - margin-right: 0; - } - .offset-lg-1 { - margin-right: 8.33333333%; - } - .offset-lg-2 { - margin-right: 16.66666667%; - } - .offset-lg-3 { - margin-right: 25%; - } - .offset-lg-4 { - margin-right: 33.33333333%; - } - .offset-lg-5 { - margin-right: 41.66666667%; - } - .offset-lg-6 { - margin-right: 50%; - } - .offset-lg-7 { - margin-right: 58.33333333%; - } - .offset-lg-8 { - margin-right: 66.66666667%; - } - .offset-lg-9 { - margin-right: 75%; - } - .offset-lg-10 { - margin-right: 83.33333333%; - } - .offset-lg-11 { - margin-right: 91.66666667%; - } -} - -@media (min-width: 1280px) { - .col-xl { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - max-width: 100%; - } - .col-xl-auto { - -ms-flex: 0 0 auto; - flex: 0 0 auto; - width: auto; - max-width: none; - } - .col-xl-1 { - -ms-flex: 0 0 8.33333333%; - flex: 0 0 8.33333333%; - max-width: 8.33333333%; - } - .col-xl-2 { - -ms-flex: 0 0 16.66666667%; - flex: 0 0 16.66666667%; - max-width: 16.66666667%; - } - .col-xl-3 { - -ms-flex: 0 0 25%; - flex: 0 0 25%; - max-width: 25%; - } - .col-xl-4 { - -ms-flex: 0 0 33.33333333%; - flex: 0 0 33.33333333%; - max-width: 33.33333333%; - } - .col-xl-5 { - -ms-flex: 0 0 41.66666667%; - flex: 0 0 41.66666667%; - max-width: 41.66666667%; - } - .col-xl-6 { - -ms-flex: 0 0 50%; - flex: 0 0 50%; - max-width: 50%; - } - .col-xl-7 { - -ms-flex: 0 0 58.33333333%; - flex: 0 0 58.33333333%; - max-width: 58.33333333%; - } - .col-xl-8 { - -ms-flex: 0 0 66.66666667%; - flex: 0 0 66.66666667%; - max-width: 66.66666667%; - } - .col-xl-9 { - -ms-flex: 0 0 75%; - flex: 0 0 75%; - max-width: 75%; - } - .col-xl-10 { - -ms-flex: 0 0 83.33333333%; - flex: 0 0 83.33333333%; - max-width: 83.33333333%; - } - .col-xl-11 { - -ms-flex: 0 0 91.66666667%; - flex: 0 0 91.66666667%; - max-width: 91.66666667%; - } - .col-xl-12 { - -ms-flex: 0 0 100%; - flex: 0 0 100%; - max-width: 100%; - } - .order-xl-first { - -ms-flex-order: -1; - order: -1; - } - .order-xl-last { - -ms-flex-order: 13; - order: 13; - } - .order-xl-0 { - -ms-flex-order: 0; - order: 0; - } - .order-xl-1 { - -ms-flex-order: 1; - order: 1; - } - .order-xl-2 { - -ms-flex-order: 2; - order: 2; - } - .order-xl-3 { - -ms-flex-order: 3; - order: 3; - } - .order-xl-4 { - -ms-flex-order: 4; - order: 4; - } - .order-xl-5 { - -ms-flex-order: 5; - order: 5; - } - .order-xl-6 { - -ms-flex-order: 6; - order: 6; - } - .order-xl-7 { - -ms-flex-order: 7; - order: 7; - } - .order-xl-8 { - -ms-flex-order: 8; - order: 8; - } - .order-xl-9 { - -ms-flex-order: 9; - order: 9; - } - .order-xl-10 { - -ms-flex-order: 10; - order: 10; - } - .order-xl-11 { - -ms-flex-order: 11; - order: 11; - } - .order-xl-12 { - -ms-flex-order: 12; - order: 12; - } - .offset-xl-0 { - margin-right: 0; - } - .offset-xl-1 { - margin-right: 8.33333333%; - } - .offset-xl-2 { - margin-right: 16.66666667%; - } - .offset-xl-3 { - margin-right: 25%; - } - .offset-xl-4 { - margin-right: 33.33333333%; - } - .offset-xl-5 { - margin-right: 41.66666667%; - } - .offset-xl-6 { - margin-right: 50%; - } - .offset-xl-7 { - margin-right: 58.33333333%; - } - .offset-xl-8 { - margin-right: 66.66666667%; - } - .offset-xl-9 { - margin-right: 75%; - } - .offset-xl-10 { - margin-right: 83.33333333%; - } - .offset-xl-11 { - margin-right: 91.66666667%; - } -} - -.table, .text-wrap table { - width: 100%; - max-width: 100%; - margin-bottom: 1rem; - background-color: transparent; -} - -.table th, .text-wrap table th, -.table td, -.text-wrap table td { - padding: 0.75rem; - vertical-align: top; - border-top: 1px solid #dee2e6; -} - -.table thead th, .text-wrap table thead th { - vertical-align: bottom; - border-bottom: 2px solid #dee2e6; -} - -.table tbody + tbody, .text-wrap table tbody + tbody { - border-top: 2px solid #dee2e6; -} - -.table .table, .text-wrap table .table, .table .text-wrap table, .text-wrap .table table, .text-wrap table table { - background-color: #f5f7fb; -} - -.table-sm th, -.table-sm td { - padding: 0.3rem; -} - -.table-bordered, .text-wrap table { - border: 1px solid #dee2e6; -} - -.table-bordered th, .text-wrap table th, -.table-bordered td, -.text-wrap table td { - border: 1px solid #dee2e6; -} - -.table-bordered thead th, .text-wrap table thead th, -.table-bordered thead td, -.text-wrap table thead td { - border-bottom-width: 2px; -} - -.table-borderless th, -.table-borderless td, -.table-borderless thead th, -.table-borderless tbody + tbody { - border: 0; -} - -.table-striped tbody tr:nth-of-type(odd) { - background-color: rgba(0, 0, 0, 0.02); -} - -.table-hover tbody tr:hover { - background-color: rgba(0, 0, 0, 0.04); -} - -.table-primary, -.table-primary > th, -.table-primary > td { - background-color: #cbdbf2; -} - -.table-hover .table-primary:hover { - background-color: #b7cded; -} - -.table-hover .table-primary:hover > td, -.table-hover .table-primary:hover > th { - background-color: #b7cded; -} - -.table-secondary, -.table-secondary > th, -.table-secondary > td { - background-color: #dddfe2; -} - -.table-hover .table-secondary:hover { - background-color: #cfd2d6; -} - -.table-hover .table-secondary:hover > td, -.table-hover .table-secondary:hover > th { - background-color: #cfd2d6; -} - -.table-success, -.table-success > th, -.table-success > td { - background-color: #d2ecb8; -} - -.table-hover .table-success:hover { - background-color: #c5e7a4; -} - -.table-hover .table-success:hover > td, -.table-hover .table-success:hover > th { - background-color: #c5e7a4; -} - -.table-info, -.table-info > th, -.table-info > td { - background-color: #cbe7fb; -} - -.table-hover .table-info:hover { - background-color: #b3dcf9; -} - -.table-hover .table-info:hover > td, -.table-hover .table-info:hover > th { - background-color: #b3dcf9; -} - -.table-warning, -.table-warning > th, -.table-warning > td { - background-color: #fbeebc; -} - -.table-hover .table-warning:hover { - background-color: #fae8a4; -} - -.table-hover .table-warning:hover > td, -.table-hover .table-warning:hover > th { - background-color: #fae8a4; -} - -.table-danger, -.table-danger > th, -.table-danger > td { - background-color: #f1c1c0; -} - -.table-hover .table-danger:hover { - background-color: #ecacab; -} - -.table-hover .table-danger:hover > td, -.table-hover .table-danger:hover > th { - background-color: #ecacab; -} - -.table-light, -.table-light > th, -.table-light > td { - background-color: #fdfdfe; -} - -.table-hover .table-light:hover { - background-color: #ececf6; -} - -.table-hover .table-light:hover > td, -.table-hover .table-light:hover > th { - background-color: #ececf6; -} - -.table-dark, -.table-dark > th, -.table-dark > td { - background-color: #c6c8ca; -} - -.table-hover .table-dark:hover { - background-color: #b9bbbe; -} - -.table-hover .table-dark:hover > td, -.table-hover .table-dark:hover > th { - background-color: #b9bbbe; -} - -.table-active, -.table-active > th, -.table-active > td { - background-color: rgba(0, 0, 0, 0.04); -} - -.table-hover .table-active:hover { - background-color: rgba(0, 0, 0, 0.04); -} - -.table-hover .table-active:hover > td, -.table-hover .table-active:hover > th { - background-color: rgba(0, 0, 0, 0.04); -} - -.table .thead-dark th, .text-wrap table .thead-dark th { - color: #f5f7fb; - background-color: #212529; - border-color: #32383e; -} - -.table .thead-light th, .text-wrap table .thead-light th { - color: #495057; - background-color: #e9ecef; - border-color: #dee2e6; -} - -.table-dark { - color: #f5f7fb; - background-color: #212529; -} - -.table-dark th, -.table-dark td, -.table-dark thead th { - border-color: #32383e; -} - -.table-dark.table-bordered, .text-wrap table.table-dark { - border: 0; -} - -.table-dark.table-striped tbody tr:nth-of-type(odd) { - background-color: rgba(255, 255, 255, 0.05); -} - -.table-dark.table-hover tbody tr:hover { - background-color: rgba(255, 255, 255, 0.075); -} - -@media (max-width: 575.98px) { - .table-responsive-sm { - display: block; - width: 100%; - overflow-x: auto; - -webkit-overflow-scrolling: touch; - -ms-overflow-style: -ms-autohiding-scrollbar; - } - .table-responsive-sm > .table-bordered, .text-wrap .table-responsive-sm > table { - border: 0; - } -} - -@media (max-width: 767.98px) { - .table-responsive-md { - display: block; - width: 100%; - overflow-x: auto; - -webkit-overflow-scrolling: touch; - -ms-overflow-style: -ms-autohiding-scrollbar; - } - .table-responsive-md > .table-bordered, .text-wrap .table-responsive-md > table { - border: 0; - } -} - -@media (max-width: 991.98px) { - .table-responsive-lg { - display: block; - width: 100%; - overflow-x: auto; - -webkit-overflow-scrolling: touch; - -ms-overflow-style: -ms-autohiding-scrollbar; - } - .table-responsive-lg > .table-bordered, .text-wrap .table-responsive-lg > table { - border: 0; - } -} - -@media (max-width: 1279.98px) { - .table-responsive-xl { - display: block; - width: 100%; - overflow-x: auto; - -webkit-overflow-scrolling: touch; - -ms-overflow-style: -ms-autohiding-scrollbar; - } - .table-responsive-xl > .table-bordered, .text-wrap .table-responsive-xl > table { - border: 0; - } -} - -.table-responsive { - display: block; - width: 100%; - overflow-x: auto; - -webkit-overflow-scrolling: touch; - -ms-overflow-style: -ms-autohiding-scrollbar; -} - -.table-responsive > .table-bordered, .text-wrap .table-responsive > table { - border: 0; -} - -.form-control { - display: block; - width: 100%; - padding: 0.375rem 0.75rem; - font-size: 0.9375rem; - line-height: 1.6; - color: #495057; - background-color: #fff; - background-clip: padding-box; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; - transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; -} - -@media screen and (prefers-reduced-motion: reduce) { - .form-control { - transition: none; - } -} - -.form-control::-ms-expand { - background-color: transparent; - border: 0; -} - -.form-control:focus { - color: #495057; - background-color: #fff; - border-color: #1991eb; - outline: 0; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.form-control::-webkit-input-placeholder { - color: #adb5bd; - opacity: 1; -} - -.form-control::-moz-placeholder { - color: #adb5bd; - opacity: 1; -} - -.form-control:-ms-input-placeholder { - color: #adb5bd; - opacity: 1; -} - -.form-control::-ms-input-placeholder { - color: #adb5bd; - opacity: 1; -} - -.form-control::placeholder { - color: #adb5bd; - opacity: 1; -} - -.form-control:disabled, .form-control[readonly] { - background-color: #f8f9fa; - opacity: 1; -} - -select.form-control:not([size]):not([multiple]) { - height: 2.375rem; -} - -select.form-control:focus::-ms-value { - color: #495057; - background-color: #fff; -} - -.form-control-file, -.form-control-range { - display: block; - width: 100%; -} - -.col-form-label { - padding-top: calc(0.375rem + 1px); - padding-bottom: calc(0.375rem + 1px); - margin-bottom: 0; - font-size: inherit; - line-height: 1.6; -} - -.col-form-label-lg { - padding-top: calc(0.5rem + 1px); - padding-bottom: calc(0.5rem + 1px); - font-size: 1.125rem; - line-height: 1.44444444; -} - -.col-form-label-sm { - padding-top: calc(0.25rem + 1px); - padding-bottom: calc(0.25rem + 1px); - font-size: 0.875rem; - line-height: 1.14285714; -} - -.form-control-plaintext { - display: block; - width: 100%; - padding-top: 0.375rem; - padding-bottom: 0.375rem; - margin-bottom: 0; - line-height: 1.6; - color: #495057; - background-color: transparent; - border: solid transparent; - border-width: 1px 0; -} - -.form-control-plaintext.form-control-sm, .input-group-sm > .form-control-plaintext.form-control, -.input-group-sm > .input-group-prepend > .form-control-plaintext.input-group-text, -.input-group-sm > .input-group-append > .form-control-plaintext.input-group-text, -.input-group-sm > .input-group-prepend > .form-control-plaintext.btn, -.input-group-sm > .input-group-append > .form-control-plaintext.btn, .form-control-plaintext.form-control-lg, .input-group-lg > .form-control-plaintext.form-control, -.input-group-lg > .input-group-prepend > .form-control-plaintext.input-group-text, -.input-group-lg > .input-group-append > .form-control-plaintext.input-group-text, -.input-group-lg > .input-group-prepend > .form-control-plaintext.btn, -.input-group-lg > .input-group-append > .form-control-plaintext.btn { - padding-left: 0; - padding-right: 0; -} - -.form-control-sm, .input-group-sm > .form-control, -.input-group-sm > .input-group-prepend > .input-group-text, -.input-group-sm > .input-group-append > .input-group-text, -.input-group-sm > .input-group-prepend > .btn, -.input-group-sm > .input-group-append > .btn { - padding: 0.25rem 0.5rem; - font-size: 0.875rem; - line-height: 1.14285714; - border-radius: 3px; -} - -select.form-control-sm:not([size]):not([multiple]), .input-group-sm > select.form-control:not([size]):not([multiple]), -.input-group-sm > .input-group-prepend > select.input-group-text:not([size]):not([multiple]), -.input-group-sm > .input-group-append > select.input-group-text:not([size]):not([multiple]), -.input-group-sm > .input-group-prepend > select.btn:not([size]):not([multiple]), -.input-group-sm > .input-group-append > select.btn:not([size]):not([multiple]) { - height: calc(1.8125rem + 2px); -} - -.form-control-lg, .input-group-lg > .form-control, -.input-group-lg > .input-group-prepend > .input-group-text, -.input-group-lg > .input-group-append > .input-group-text, -.input-group-lg > .input-group-prepend > .btn, -.input-group-lg > .input-group-append > .btn { - padding: 0.5rem 1rem; - font-size: 1.125rem; - line-height: 1.44444444; - border-radius: 3px; -} - -select.form-control-lg:not([size]):not([multiple]), .input-group-lg > select.form-control:not([size]):not([multiple]), -.input-group-lg > .input-group-prepend > select.input-group-text:not([size]):not([multiple]), -.input-group-lg > .input-group-append > select.input-group-text:not([size]):not([multiple]), -.input-group-lg > .input-group-prepend > select.btn:not([size]):not([multiple]), -.input-group-lg > .input-group-append > select.btn:not([size]):not([multiple]) { - height: calc(2.6875rem + 2px); -} - -.form-group { - margin-bottom: 1rem; -} - -.form-text { - display: block; - margin-top: 0.25rem; -} - -.form-row { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-left: -5px; - margin-right: -5px; -} - -.form-row > .col, -.form-row > [class*="col-"] { - padding-left: 5px; - padding-right: 5px; -} - -.form-check { - position: relative; - display: block; - padding-right: 1.25rem; -} - -.form-check-input { - position: absolute; - margin-top: 0.3rem; - margin-right: -1.25rem; -} - -.form-check-input:disabled ~ .form-check-label { - color: #9aa0ac; -} - -.form-check-label { - margin-bottom: 0; -} - -.form-check-inline { - display: -ms-inline-flexbox; - display: inline-flex; - -ms-flex-align: center; - align-items: center; - padding-right: 0; - margin-left: 0.75rem; -} - -.form-check-inline .form-check-input { - position: static; - margin-top: 0; - margin-left: 0.3125rem; - margin-right: 0; -} - -.valid-feedback { - display: none; - width: 100%; - margin-top: 0.25rem; - font-size: 87.5%; - color: #5eba00; -} - -.valid-tooltip { - position: absolute; - top: 100%; - z-index: 5; - display: none; - max-width: 100%; - padding: .5rem; - margin-top: .1rem; - font-size: .875rem; - line-height: 1; - color: #fff; - background-color: rgba(94, 186, 0, 0.8); - border-radius: .2rem; -} - -.was-validated .form-control:valid, .form-control.is-valid, .was-validated -.custom-select:valid, -.custom-select.is-valid { - border-color: #5eba00; -} - -.was-validated .form-control:valid:focus, .form-control.is-valid:focus, .was-validated -.custom-select:valid:focus, -.custom-select.is-valid:focus { - border-color: #5eba00; - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.25); -} - -.was-validated .form-control:valid ~ .valid-feedback, -.was-validated .form-control:valid ~ .valid-tooltip, .form-control.is-valid ~ .valid-feedback, -.form-control.is-valid ~ .valid-tooltip, .was-validated -.custom-select:valid ~ .valid-feedback, -.was-validated -.custom-select:valid ~ .valid-tooltip, -.custom-select.is-valid ~ .valid-feedback, -.custom-select.is-valid ~ .valid-tooltip { - display: block; -} - -.was-validated .form-check-input:valid ~ .form-check-label, .form-check-input.is-valid ~ .form-check-label { - color: #5eba00; -} - -.was-validated .form-check-input:valid ~ .valid-feedback, -.was-validated .form-check-input:valid ~ .valid-tooltip, .form-check-input.is-valid ~ .valid-feedback, -.form-check-input.is-valid ~ .valid-tooltip { - display: block; -} - -.was-validated .custom-control-input:valid ~ .custom-control-label, .custom-control-input.is-valid ~ .custom-control-label { - color: #5eba00; -} - -.was-validated .custom-control-input:valid ~ .custom-control-label::before, .custom-control-input.is-valid ~ .custom-control-label::before { - background-color: #9eff3b; -} - -.was-validated .custom-control-input:valid ~ .valid-feedback, -.was-validated .custom-control-input:valid ~ .valid-tooltip, .custom-control-input.is-valid ~ .valid-feedback, -.custom-control-input.is-valid ~ .valid-tooltip { - display: block; -} - -.was-validated .custom-control-input:valid:checked ~ .custom-control-label::before, .custom-control-input.is-valid:checked ~ .custom-control-label::before { - background-color: #78ed00; -} - -.was-validated .custom-control-input:valid:focus ~ .custom-control-label::before, .custom-control-input.is-valid:focus ~ .custom-control-label::before { - box-shadow: 0 0 0 1px #f5f7fb, 0 0 0 2px rgba(94, 186, 0, 0.25); -} - -.was-validated .custom-file-input:valid ~ .custom-file-label, .custom-file-input.is-valid ~ .custom-file-label { - border-color: #5eba00; -} - -.was-validated .custom-file-input:valid ~ .custom-file-label::before, .custom-file-input.is-valid ~ .custom-file-label::before { - border-color: inherit; -} - -.was-validated .custom-file-input:valid ~ .valid-feedback, -.was-validated .custom-file-input:valid ~ .valid-tooltip, .custom-file-input.is-valid ~ .valid-feedback, -.custom-file-input.is-valid ~ .valid-tooltip { - display: block; -} - -.was-validated .custom-file-input:valid:focus ~ .custom-file-label, .custom-file-input.is-valid:focus ~ .custom-file-label { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.25); -} - -.invalid-feedback { - display: none; - width: 100%; - margin-top: 0.25rem; - font-size: 87.5%; - color: #cd201f; -} - -.invalid-tooltip { - position: absolute; - top: 100%; - z-index: 5; - display: none; - max-width: 100%; - padding: .5rem; - margin-top: .1rem; - font-size: .875rem; - line-height: 1; - color: #fff; - background-color: rgba(205, 32, 31, 0.8); - border-radius: .2rem; -} - -.was-validated .form-control:invalid, .form-control.is-invalid, .was-validated -.custom-select:invalid, -.custom-select.is-invalid { - border-color: #cd201f; -} - -.was-validated .form-control:invalid:focus, .form-control.is-invalid:focus, .was-validated -.custom-select:invalid:focus, -.custom-select.is-invalid:focus { - border-color: #cd201f; - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.25); -} - -.was-validated .form-control:invalid ~ .invalid-feedback, -.was-validated .form-control:invalid ~ .invalid-tooltip, .form-control.is-invalid ~ .invalid-feedback, -.form-control.is-invalid ~ .invalid-tooltip, .was-validated -.custom-select:invalid ~ .invalid-feedback, -.was-validated -.custom-select:invalid ~ .invalid-tooltip, -.custom-select.is-invalid ~ .invalid-feedback, -.custom-select.is-invalid ~ .invalid-tooltip { - display: block; -} - -.was-validated .form-check-input:invalid ~ .form-check-label, .form-check-input.is-invalid ~ .form-check-label { - color: #cd201f; -} - -.was-validated .form-check-input:invalid ~ .invalid-feedback, -.was-validated .form-check-input:invalid ~ .invalid-tooltip, .form-check-input.is-invalid ~ .invalid-feedback, -.form-check-input.is-invalid ~ .invalid-tooltip { - display: block; -} - -.was-validated .custom-control-input:invalid ~ .custom-control-label, .custom-control-input.is-invalid ~ .custom-control-label { - color: #cd201f; -} - -.was-validated .custom-control-input:invalid ~ .custom-control-label::before, .custom-control-input.is-invalid ~ .custom-control-label::before { - background-color: #ec8080; -} - -.was-validated .custom-control-input:invalid ~ .invalid-feedback, -.was-validated .custom-control-input:invalid ~ .invalid-tooltip, .custom-control-input.is-invalid ~ .invalid-feedback, -.custom-control-input.is-invalid ~ .invalid-tooltip { - display: block; -} - -.was-validated .custom-control-input:invalid:checked ~ .custom-control-label::before, .custom-control-input.is-invalid:checked ~ .custom-control-label::before { - background-color: #e23e3d; -} - -.was-validated .custom-control-input:invalid:focus ~ .custom-control-label::before, .custom-control-input.is-invalid:focus ~ .custom-control-label::before { - box-shadow: 0 0 0 1px #f5f7fb, 0 0 0 2px rgba(205, 32, 31, 0.25); -} - -.was-validated .custom-file-input:invalid ~ .custom-file-label, .custom-file-input.is-invalid ~ .custom-file-label { - border-color: #cd201f; -} - -.was-validated .custom-file-input:invalid ~ .custom-file-label::before, .custom-file-input.is-invalid ~ .custom-file-label::before { - border-color: inherit; -} - -.was-validated .custom-file-input:invalid ~ .invalid-feedback, -.was-validated .custom-file-input:invalid ~ .invalid-tooltip, .custom-file-input.is-invalid ~ .invalid-feedback, -.custom-file-input.is-invalid ~ .invalid-tooltip { - display: block; -} - -.was-validated .custom-file-input:invalid:focus ~ .custom-file-label, .custom-file-input.is-invalid:focus ~ .custom-file-label { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.25); -} - -.form-inline { - display: -ms-flexbox; - display: flex; - -ms-flex-flow: row wrap; - flex-flow: row wrap; - -ms-flex-align: center; - align-items: center; -} - -.form-inline .form-check { - width: 100%; -} - -@media (min-width: 576px) { - .form-inline label { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - margin-bottom: 0; - } - .form-inline .form-group { - display: -ms-flexbox; - display: flex; - -ms-flex: 0 0 auto; - flex: 0 0 auto; - -ms-flex-flow: row wrap; - flex-flow: row wrap; - -ms-flex-align: center; - align-items: center; - margin-bottom: 0; - } - .form-inline .form-control { - display: inline-block; - width: auto; - vertical-align: middle; - } - .form-inline .form-control-plaintext { - display: inline-block; - } - .form-inline .input-group, - .form-inline .custom-select { - width: auto; - } - .form-inline .form-check { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - width: auto; - padding-right: 0; - } - .form-inline .form-check-input { - position: relative; - margin-top: 0; - margin-left: 0.25rem; - margin-right: 0; - } - .form-inline .custom-control { - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - } - .form-inline .custom-control-label { - margin-bottom: 0; - } -} - -.btn { - display: inline-block; - font-weight: 400; - text-align: center; - white-space: nowrap; - vertical-align: middle; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - border: 1px solid transparent; - padding: 0.375rem 0.75rem; - font-size: 0.9375rem; - line-height: 1.84615385; - border-radius: 3px; - transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; -} - -@media screen and (prefers-reduced-motion: reduce) { - .btn { - transition: none; - } -} - -.btn:hover, .btn:focus { - text-decoration: none; -} - -.btn:focus, .btn.focus { - outline: 0; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.btn.disabled, .btn:disabled { - opacity: 0.65; -} - -.btn:not(:disabled):not(.disabled) { - cursor: pointer; -} - -.btn:not(:disabled):not(.disabled):active, .btn:not(:disabled):not(.disabled).active { - background-image: none; -} - -a.btn.disabled, -fieldset:disabled a.btn { - pointer-events: none; -} - -.btn-primary { - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.btn-primary:hover { - color: #fff; - background-color: #316cbe; - border-color: #2f66b3; -} - -.btn-primary:focus, .btn-primary.focus { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.5); -} - -.btn-primary.disabled, .btn-primary:disabled { - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active, -.show > .btn-primary.dropdown-toggle { - color: #fff; - background-color: #2f66b3; - border-color: #2c60a9; -} - -.btn-primary:not(:disabled):not(.disabled):active:focus, .btn-primary:not(:disabled):not(.disabled).active:focus, -.show > .btn-primary.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.5); -} - -.btn-secondary { - color: #fff; - background-color: #868e96; - border-color: #868e96; -} - -.btn-secondary:hover { - color: #fff; - background-color: #727b84; - border-color: #6c757d; -} - -.btn-secondary:focus, .btn-secondary.focus { - box-shadow: 0 0 0 2px rgba(134, 142, 150, 0.5); -} - -.btn-secondary.disabled, .btn-secondary:disabled { - color: #fff; - background-color: #868e96; - border-color: #868e96; -} - -.btn-secondary:not(:disabled):not(.disabled):active, .btn-secondary:not(:disabled):not(.disabled).active, -.show > .btn-secondary.dropdown-toggle { - color: #fff; - background-color: #6c757d; - border-color: #666e76; -} - -.btn-secondary:not(:disabled):not(.disabled):active:focus, .btn-secondary:not(:disabled):not(.disabled).active:focus, -.show > .btn-secondary.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(134, 142, 150, 0.5); -} - -.btn-success { - color: #fff; - background-color: #5eba00; - border-color: #5eba00; -} - -.btn-success:hover { - color: #fff; - background-color: #4b9400; - border-color: #448700; -} - -.btn-success:focus, .btn-success.focus { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.5); -} - -.btn-success.disabled, .btn-success:disabled { - color: #fff; - background-color: #5eba00; - border-color: #5eba00; -} - -.btn-success:not(:disabled):not(.disabled):active, .btn-success:not(:disabled):not(.disabled).active, -.show > .btn-success.dropdown-toggle { - color: #fff; - background-color: #448700; - border-color: #3e7a00; -} - -.btn-success:not(:disabled):not(.disabled):active:focus, .btn-success:not(:disabled):not(.disabled).active:focus, -.show > .btn-success.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.5); -} - -.btn-info { - color: #fff; - background-color: #45aaf2; - border-color: #45aaf2; -} - -.btn-info:hover { - color: #fff; - background-color: #219af0; - border-color: #1594ef; -} - -.btn-info:focus, .btn-info.focus { - box-shadow: 0 0 0 2px rgba(69, 170, 242, 0.5); -} - -.btn-info.disabled, .btn-info:disabled { - color: #fff; - background-color: #45aaf2; - border-color: #45aaf2; -} - -.btn-info:not(:disabled):not(.disabled):active, .btn-info:not(:disabled):not(.disabled).active, -.show > .btn-info.dropdown-toggle { - color: #fff; - background-color: #1594ef; - border-color: #108ee7; -} - -.btn-info:not(:disabled):not(.disabled):active:focus, .btn-info:not(:disabled):not(.disabled).active:focus, -.show > .btn-info.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(69, 170, 242, 0.5); -} - -.btn-warning { - color: #fff; - background-color: #f1c40f; - border-color: #f1c40f; -} - -.btn-warning:hover { - color: #fff; - background-color: #cea70c; - border-color: #c29d0b; -} - -.btn-warning:focus, .btn-warning.focus { - box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.5); -} - -.btn-warning.disabled, .btn-warning:disabled { - color: #fff; - background-color: #f1c40f; - border-color: #f1c40f; -} - -.btn-warning:not(:disabled):not(.disabled):active, .btn-warning:not(:disabled):not(.disabled).active, -.show > .btn-warning.dropdown-toggle { - color: #fff; - background-color: #c29d0b; - border-color: #b6940b; -} - -.btn-warning:not(:disabled):not(.disabled):active:focus, .btn-warning:not(:disabled):not(.disabled).active:focus, -.show > .btn-warning.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.5); -} - -.btn-danger { - color: #fff; - background-color: #cd201f; - border-color: #cd201f; -} - -.btn-danger:hover { - color: #fff; - background-color: #ac1b1a; - border-color: #a11918; -} - -.btn-danger:focus, .btn-danger.focus { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.5); -} - -.btn-danger.disabled, .btn-danger:disabled { - color: #fff; - background-color: #cd201f; - border-color: #cd201f; -} - -.btn-danger:not(:disabled):not(.disabled):active, .btn-danger:not(:disabled):not(.disabled).active, -.show > .btn-danger.dropdown-toggle { - color: #fff; - background-color: #a11918; - border-color: #961717; -} - -.btn-danger:not(:disabled):not(.disabled):active:focus, .btn-danger:not(:disabled):not(.disabled).active:focus, -.show > .btn-danger.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.5); -} - -.btn-light { - color: #495057; - background-color: #f8f9fa; - border-color: #f8f9fa; -} - -.btn-light:hover { - color: #495057; - background-color: #e2e6ea; - border-color: #dae0e5; -} - -.btn-light:focus, .btn-light.focus { - box-shadow: 0 0 0 2px rgba(248, 249, 250, 0.5); -} - -.btn-light.disabled, .btn-light:disabled { - color: #495057; - background-color: #f8f9fa; - border-color: #f8f9fa; -} - -.btn-light:not(:disabled):not(.disabled):active, .btn-light:not(:disabled):not(.disabled).active, -.show > .btn-light.dropdown-toggle { - color: #495057; - background-color: #dae0e5; - border-color: #d3d9df; -} - -.btn-light:not(:disabled):not(.disabled):active:focus, .btn-light:not(:disabled):not(.disabled).active:focus, -.show > .btn-light.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(248, 249, 250, 0.5); -} - -.btn-dark { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} - -.btn-dark:hover { - color: #fff; - background-color: #23272b; - border-color: #1d2124; -} - -.btn-dark:focus, .btn-dark.focus { - box-shadow: 0 0 0 2px rgba(52, 58, 64, 0.5); -} - -.btn-dark.disabled, .btn-dark:disabled { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} - -.btn-dark:not(:disabled):not(.disabled):active, .btn-dark:not(:disabled):not(.disabled).active, -.show > .btn-dark.dropdown-toggle { - color: #fff; - background-color: #1d2124; - border-color: #171a1d; -} - -.btn-dark:not(:disabled):not(.disabled):active:focus, .btn-dark:not(:disabled):not(.disabled).active:focus, -.show > .btn-dark.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(52, 58, 64, 0.5); -} - -.btn-outline-primary { - color: #467fcf; - background-color: transparent; - background-image: none; - border-color: #467fcf; -} - -.btn-outline-primary:hover { - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.btn-outline-primary:focus, .btn-outline-primary.focus { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.5); -} - -.btn-outline-primary.disabled, .btn-outline-primary:disabled { - color: #467fcf; - background-color: transparent; -} - -.btn-outline-primary:not(:disabled):not(.disabled):active, .btn-outline-primary:not(:disabled):not(.disabled).active, -.show > .btn-outline-primary.dropdown-toggle { - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.btn-outline-primary:not(:disabled):not(.disabled):active:focus, .btn-outline-primary:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-primary.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.5); -} - -.btn-outline-secondary { - color: #868e96; - background-color: transparent; - background-image: none; - border-color: #868e96; -} - -.btn-outline-secondary:hover { - color: #fff; - background-color: #868e96; - border-color: #868e96; -} - -.btn-outline-secondary:focus, .btn-outline-secondary.focus { - box-shadow: 0 0 0 2px rgba(134, 142, 150, 0.5); -} - -.btn-outline-secondary.disabled, .btn-outline-secondary:disabled { - color: #868e96; - background-color: transparent; -} - -.btn-outline-secondary:not(:disabled):not(.disabled):active, .btn-outline-secondary:not(:disabled):not(.disabled).active, -.show > .btn-outline-secondary.dropdown-toggle { - color: #fff; - background-color: #868e96; - border-color: #868e96; -} - -.btn-outline-secondary:not(:disabled):not(.disabled):active:focus, .btn-outline-secondary:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-secondary.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(134, 142, 150, 0.5); -} - -.btn-outline-success { - color: #5eba00; - background-color: transparent; - background-image: none; - border-color: #5eba00; -} - -.btn-outline-success:hover { - color: #fff; - background-color: #5eba00; - border-color: #5eba00; -} - -.btn-outline-success:focus, .btn-outline-success.focus { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.5); -} - -.btn-outline-success.disabled, .btn-outline-success:disabled { - color: #5eba00; - background-color: transparent; -} - -.btn-outline-success:not(:disabled):not(.disabled):active, .btn-outline-success:not(:disabled):not(.disabled).active, -.show > .btn-outline-success.dropdown-toggle { - color: #fff; - background-color: #5eba00; - border-color: #5eba00; -} - -.btn-outline-success:not(:disabled):not(.disabled):active:focus, .btn-outline-success:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-success.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.5); -} - -.btn-outline-info { - color: #45aaf2; - background-color: transparent; - background-image: none; - border-color: #45aaf2; -} - -.btn-outline-info:hover { - color: #fff; - background-color: #45aaf2; - border-color: #45aaf2; -} - -.btn-outline-info:focus, .btn-outline-info.focus { - box-shadow: 0 0 0 2px rgba(69, 170, 242, 0.5); -} - -.btn-outline-info.disabled, .btn-outline-info:disabled { - color: #45aaf2; - background-color: transparent; -} - -.btn-outline-info:not(:disabled):not(.disabled):active, .btn-outline-info:not(:disabled):not(.disabled).active, -.show > .btn-outline-info.dropdown-toggle { - color: #fff; - background-color: #45aaf2; - border-color: #45aaf2; -} - -.btn-outline-info:not(:disabled):not(.disabled):active:focus, .btn-outline-info:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-info.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(69, 170, 242, 0.5); -} - -.btn-outline-warning { - color: #f1c40f; - background-color: transparent; - background-image: none; - border-color: #f1c40f; -} - -.btn-outline-warning:hover { - color: #fff; - background-color: #f1c40f; - border-color: #f1c40f; -} - -.btn-outline-warning:focus, .btn-outline-warning.focus { - box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.5); -} - -.btn-outline-warning.disabled, .btn-outline-warning:disabled { - color: #f1c40f; - background-color: transparent; -} - -.btn-outline-warning:not(:disabled):not(.disabled):active, .btn-outline-warning:not(:disabled):not(.disabled).active, -.show > .btn-outline-warning.dropdown-toggle { - color: #fff; - background-color: #f1c40f; - border-color: #f1c40f; -} - -.btn-outline-warning:not(:disabled):not(.disabled):active:focus, .btn-outline-warning:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-warning.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.5); -} - -.btn-outline-danger { - color: #cd201f; - background-color: transparent; - background-image: none; - border-color: #cd201f; -} - -.btn-outline-danger:hover { - color: #fff; - background-color: #cd201f; - border-color: #cd201f; -} - -.btn-outline-danger:focus, .btn-outline-danger.focus { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.5); -} - -.btn-outline-danger.disabled, .btn-outline-danger:disabled { - color: #cd201f; - background-color: transparent; -} - -.btn-outline-danger:not(:disabled):not(.disabled):active, .btn-outline-danger:not(:disabled):not(.disabled).active, -.show > .btn-outline-danger.dropdown-toggle { - color: #fff; - background-color: #cd201f; - border-color: #cd201f; -} - -.btn-outline-danger:not(:disabled):not(.disabled):active:focus, .btn-outline-danger:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-danger.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.5); -} - -.btn-outline-light { - color: #f8f9fa; - background-color: transparent; - background-image: none; - border-color: #f8f9fa; -} - -.btn-outline-light:hover { - color: #495057; - background-color: #f8f9fa; - border-color: #f8f9fa; -} - -.btn-outline-light:focus, .btn-outline-light.focus { - box-shadow: 0 0 0 2px rgba(248, 249, 250, 0.5); -} - -.btn-outline-light.disabled, .btn-outline-light:disabled { - color: #f8f9fa; - background-color: transparent; -} - -.btn-outline-light:not(:disabled):not(.disabled):active, .btn-outline-light:not(:disabled):not(.disabled).active, -.show > .btn-outline-light.dropdown-toggle { - color: #495057; - background-color: #f8f9fa; - border-color: #f8f9fa; -} - -.btn-outline-light:not(:disabled):not(.disabled):active:focus, .btn-outline-light:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-light.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(248, 249, 250, 0.5); -} - -.btn-outline-dark { - color: #343a40; - background-color: transparent; - background-image: none; - border-color: #343a40; -} - -.btn-outline-dark:hover { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} - -.btn-outline-dark:focus, .btn-outline-dark.focus { - box-shadow: 0 0 0 2px rgba(52, 58, 64, 0.5); -} - -.btn-outline-dark.disabled, .btn-outline-dark:disabled { - color: #343a40; - background-color: transparent; -} - -.btn-outline-dark:not(:disabled):not(.disabled):active, .btn-outline-dark:not(:disabled):not(.disabled).active, -.show > .btn-outline-dark.dropdown-toggle { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} - -.btn-outline-dark:not(:disabled):not(.disabled):active:focus, .btn-outline-dark:not(:disabled):not(.disabled).active:focus, -.show > .btn-outline-dark.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(52, 58, 64, 0.5); -} - -.btn-link { - font-weight: 400; - color: #467fcf; - background-color: transparent; -} - -.btn-link:hover { - color: #295a9f; - text-decoration: underline; - background-color: transparent; - border-color: transparent; -} - -.btn-link:focus, .btn-link.focus { - text-decoration: underline; - border-color: transparent; - box-shadow: none; -} - -.btn-link:disabled, .btn-link.disabled { - color: #868e96; - pointer-events: none; -} - -.btn-lg, .btn-group-lg > .btn { - padding: 0.5rem 1rem; - font-size: 1.125rem; - line-height: 1.625; - border-radius: 3px; -} - -.btn-sm, .btn-group-sm > .btn { - padding: 0.25rem 0.5rem; - font-size: 0.875rem; - line-height: 1.33333333; - border-radius: 3px; -} - -.btn-block { - display: block; - width: 100%; -} - -.btn-block + .btn-block { - margin-top: 0.5rem; -} - -input[type="submit"].btn-block, -input[type="reset"].btn-block, -input[type="button"].btn-block { - width: 100%; -} - -.fade { - transition: opacity 0.15s linear; -} - -@media screen and (prefers-reduced-motion: reduce) { - .fade { - transition: none; - } -} - -.fade:not(.show) { - opacity: 0; -} - -.collapse:not(.show) { - display: none; -} - -.collapsing { - position: relative; - height: 0; - overflow: hidden; - transition: height 0.35s ease; -} - -@media screen and (prefers-reduced-motion: reduce) { - .collapsing { - transition: none; - } -} - -.dropup, -.dropright, -.dropdown, -.dropleft { - position: relative; -} - -.dropdown-toggle::after { - display: inline-block; - width: 0; - height: 0; - margin-right: 0.255em; - vertical-align: 0.255em; - content: ""; - border-top: 0.3em solid; - border-left: 0.3em solid transparent; - border-bottom: 0; - border-right: 0.3em solid transparent; -} - -.dropdown-toggle:empty::after { - margin-right: 0; -} - -.dropdown-menu { - position: absolute; - top: 100%; - right: 0; - z-index: 1000; - display: none; - float: right; - min-width: 10rem; - padding: 0.5rem 0; - margin: 0.125rem 0 0; - font-size: 0.9375rem; - color: #495057; - text-align: right; - list-style: none; - background-color: #fff; - background-clip: padding-box; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; -} - -.dropdown-menu-right { - left: 0; - right: auto; -} - -.dropup .dropdown-menu { - top: auto; - bottom: 100%; - margin-top: 0; - margin-bottom: 0.125rem; -} - -.dropup .dropdown-toggle::after { - display: inline-block; - width: 0; - height: 0; - margin-right: 0.255em; - vertical-align: 0.255em; - content: ""; - border-top: 0; - border-left: 0.3em solid transparent; - border-bottom: 0.3em solid; - border-right: 0.3em solid transparent; -} - -.dropup .dropdown-toggle:empty::after { - margin-right: 0; -} - -.dropright .dropdown-menu { - top: 0; - left: auto; - right: 100%; - margin-top: 0; - margin-right: 0.125rem; -} - -.dropright .dropdown-toggle::after { - display: inline-block; - width: 0; - height: 0; - margin-right: 0.255em; - vertical-align: 0.255em; - content: ""; - border-top: 0.3em solid transparent; - border-left: 0; - border-bottom: 0.3em solid transparent; - border-right: 0.3em solid; -} - -.dropright .dropdown-toggle:empty::after { - margin-right: 0; -} - -.dropright .dropdown-toggle::after { - vertical-align: 0; -} - -.dropleft .dropdown-menu { - top: 0; - left: 100%; - right: auto; - margin-top: 0; - margin-left: 0.125rem; -} - -.dropleft .dropdown-toggle::after { - display: inline-block; - width: 0; - height: 0; - margin-right: 0.255em; - vertical-align: 0.255em; - content: ""; -} - -.dropleft .dropdown-toggle::after { - display: none; -} - -.dropleft .dropdown-toggle::before { - display: inline-block; - width: 0; - height: 0; - margin-left: 0.255em; - vertical-align: 0.255em; - content: ""; - border-top: 0.3em solid transparent; - border-left: 0.3em solid; - border-bottom: 0.3em solid transparent; -} - -.dropleft .dropdown-toggle:empty::after { - margin-right: 0; -} - -.dropleft .dropdown-toggle::before { - vertical-align: 0; -} - -.dropdown-menu[x-placement^="top"], .dropdown-menu[x-placement^="right"], .dropdown-menu[x-placement^="bottom"], .dropdown-menu[x-placement^="left"] { - left: auto; - bottom: auto; -} - -.dropdown-divider { - height: 0; - margin: 0.5rem 0; - overflow: hidden; - border-top: 1px solid #e9ecef; -} - -.dropdown-item { - display: block; - width: 100%; - padding: 0.25rem 1.5rem; - clear: both; - font-weight: 400; - color: #212529; - text-align: inherit; - white-space: nowrap; - background-color: transparent; - border: 0; -} - -.dropdown-item:hover, .dropdown-item:focus { - color: #16181b; - text-decoration: none; - background-color: #f8f9fa; -} - -.dropdown-item.active, .dropdown-item:active { - color: #fff; - text-decoration: none; - background-color: #467fcf; -} - -.dropdown-item.disabled, .dropdown-item:disabled { - color: #868e96; - background-color: transparent; -} - -.dropdown-menu.show { - display: block; -} - -.dropdown-header { - display: block; - padding: 0.5rem 1.5rem; - margin-bottom: 0; - font-size: 0.875rem; - color: #868e96; - white-space: nowrap; -} - -.dropdown-item-text { - display: block; - padding: 0.25rem 1.5rem; - color: #212529; -} - -.btn-group, -.btn-group-vertical { - position: relative; - display: -ms-inline-flexbox; - display: inline-flex; - vertical-align: middle; -} - -.btn-group > .btn, -.btn-group-vertical > .btn { - position: relative; - -ms-flex: 0 1 auto; - flex: 0 1 auto; -} - -.btn-group > .btn:hover, -.btn-group-vertical > .btn:hover { - z-index: 1; -} - -.btn-group > .btn:focus, .btn-group > .btn:active, .btn-group > .btn.active, -.btn-group-vertical > .btn:focus, -.btn-group-vertical > .btn:active, -.btn-group-vertical > .btn.active { - z-index: 1; -} - -.btn-group .btn + .btn, -.btn-group .btn + .btn-group, -.btn-group .btn-group + .btn, -.btn-group .btn-group + .btn-group, -.btn-group-vertical .btn + .btn, -.btn-group-vertical .btn + .btn-group, -.btn-group-vertical .btn-group + .btn, -.btn-group-vertical .btn-group + .btn-group { - margin-right: -1px; -} - -.btn-toolbar { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -ms-flex-pack: start; - justify-content: flex-start; -} - -.btn-toolbar .input-group { - width: auto; -} - -.btn-group > .btn:first-child { - margin-right: 0; -} - -.btn-group > .btn:not(:last-child):not(.dropdown-toggle), -.btn-group > .btn-group:not(:last-child) > .btn { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} - -.btn-group > .btn:not(:first-child), -.btn-group > .btn-group:not(:first-child) > .btn { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} - -.dropdown-toggle-split { - padding-left: 0.5625rem; - padding-right: 0.5625rem; -} - -.dropdown-toggle-split::after, -.dropup .dropdown-toggle-split::after, -.dropright .dropdown-toggle-split::after { - margin-right: 0; -} - -.dropleft .dropdown-toggle-split::before { - margin-left: 0; -} - -.btn-sm + .dropdown-toggle-split, .btn-group-sm > .btn + .dropdown-toggle-split { - padding-left: 0.375rem; - padding-right: 0.375rem; -} - -.btn-lg + .dropdown-toggle-split, .btn-group-lg > .btn + .dropdown-toggle-split { - padding-left: 0.75rem; - padding-right: 0.75rem; -} - -.btn-group-vertical { - -ms-flex-direction: column; - flex-direction: column; - -ms-flex-align: start; - align-items: flex-start; - -ms-flex-pack: center; - justify-content: center; -} - -.btn-group-vertical .btn, -.btn-group-vertical .btn-group { - width: 100%; -} - -.btn-group-vertical > .btn + .btn, -.btn-group-vertical > .btn + .btn-group, -.btn-group-vertical > .btn-group + .btn, -.btn-group-vertical > .btn-group + .btn-group { - margin-top: -1px; - margin-right: 0; -} - -.btn-group-vertical > .btn:not(:last-child):not(.dropdown-toggle), -.btn-group-vertical > .btn-group:not(:last-child) > .btn { - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; -} - -.btn-group-vertical > .btn:not(:first-child), -.btn-group-vertical > .btn-group:not(:first-child) > .btn { - border-top-right-radius: 0; - border-top-left-radius: 0; -} - -.btn-group-toggle > .btn, -.btn-group-toggle > .btn-group > .btn { - margin-bottom: 0; -} - -.btn-group-toggle > .btn input[type="radio"], -.btn-group-toggle > .btn input[type="checkbox"], -.btn-group-toggle > .btn-group > .btn input[type="radio"], -.btn-group-toggle > .btn-group > .btn input[type="checkbox"] { - position: absolute; - clip: rect(0, 0, 0, 0); - pointer-events: none; -} - -.input-group { - position: relative; - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -ms-flex-align: stretch; - align-items: stretch; - width: 100%; -} - -.input-group > .form-control, -.input-group > .custom-select, -.input-group > .custom-file { - position: relative; - -ms-flex: 1 1 auto; - flex: 1 1 auto; - width: 1%; - margin-bottom: 0; -} - -.input-group > .form-control:focus, -.input-group > .custom-select:focus, -.input-group > .custom-file:focus { - z-index: 3; -} - -.input-group > .form-control + .form-control, -.input-group > .form-control + .custom-select, -.input-group > .form-control + .custom-file, -.input-group > .custom-select + .form-control, -.input-group > .custom-select + .custom-select, -.input-group > .custom-select + .custom-file, -.input-group > .custom-file + .form-control, -.input-group > .custom-file + .custom-select, -.input-group > .custom-file + .custom-file { - margin-right: -1px; -} - -.input-group > .form-control:not(:last-child), -.input-group > .custom-select:not(:last-child) { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} - -.input-group > .form-control:not(:first-child), -.input-group > .custom-select:not(:first-child) { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} - -.input-group > .custom-file { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; -} - -.input-group > .custom-file:not(:last-child) .custom-file-label, -.input-group > .custom-file:not(:last-child) .custom-file-label::after { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} - -.input-group > .custom-file:not(:first-child) .custom-file-label, -.input-group > .custom-file:not(:first-child) .custom-file-label::after { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} - -.input-group-prepend, -.input-group-append { - display: -ms-flexbox; - display: flex; -} - -.input-group-prepend .btn, -.input-group-append .btn { - position: relative; - z-index: 2; -} - -.input-group-prepend .btn + .btn, -.input-group-prepend .btn + .input-group-text, -.input-group-prepend .input-group-text + .input-group-text, -.input-group-prepend .input-group-text + .btn, -.input-group-append .btn + .btn, -.input-group-append .btn + .input-group-text, -.input-group-append .input-group-text + .input-group-text, -.input-group-append .input-group-text + .btn { - margin-right: -1px; -} - -.input-group-prepend { - margin-left: -1px; -} - -.input-group-append { - margin-right: -1px; -} - -.input-group-text { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - padding: 0.375rem 0.75rem; - margin-bottom: 0; - font-size: 0.9375rem; - font-weight: 400; - line-height: 1.6; - color: #495057; - text-align: center; - white-space: nowrap; - background-color: #fbfbfc; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; -} - -.input-group-text input[type="radio"], -.input-group-text input[type="checkbox"] { - margin-top: 0; -} - -.input-group > .input-group-prepend > .btn, -.input-group > .input-group-prepend > .input-group-text, -.input-group > .input-group-append:not(:last-child) > .btn, -.input-group > .input-group-append:not(:last-child) > .input-group-text, -.input-group > .input-group-append:last-child > .btn:not(:last-child):not(.dropdown-toggle), -.input-group > .input-group-append:last-child > .input-group-text:not(:last-child) { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} - -.input-group > .input-group-append > .btn, -.input-group > .input-group-append > .input-group-text, -.input-group > .input-group-prepend:not(:first-child) > .btn, -.input-group > .input-group-prepend:not(:first-child) > .input-group-text, -.input-group > .input-group-prepend:first-child > .btn:not(:first-child), -.input-group > .input-group-prepend:first-child > .input-group-text:not(:first-child) { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} - -.custom-control { - position: relative; - display: block; - min-height: 1.5rem; - padding-right: 1.5rem; -} - -.custom-control-inline { - display: -ms-inline-flexbox; - display: inline-flex; - margin-left: 1rem; -} - -.custom-control-input { - position: absolute; - z-index: -1; - opacity: 0; -} - -.custom-control-input:checked ~ .custom-control-label::before { - color: #fff; - background-color: #467fcf; -} - -.custom-control-input:focus ~ .custom-control-label::before { - box-shadow: 0 0 0 1px #f5f7fb, 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.custom-control-input:active ~ .custom-control-label::before { - color: #fff; - background-color: #d4e1f4; -} - -.custom-control-input:disabled ~ .custom-control-label { - color: #868e96; -} - -.custom-control-input:disabled ~ .custom-control-label::before { - background-color: #e9ecef; -} - -.custom-control-label { - margin-bottom: 0; -} - -.custom-control-label::before { - position: absolute; - top: 0.25rem; - right: 0; - display: block; - width: 1rem; - height: 1rem; - pointer-events: none; - content: ""; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - background-color: #dee2e6; -} - -.custom-control-label::after { - position: absolute; - top: 0.25rem; - right: 0; - display: block; - width: 1rem; - height: 1rem; - content: ""; - background-repeat: no-repeat; - background-position: center center; - background-size: 50% 50%; -} - -.custom-checkbox .custom-control-label::before { - border-radius: 3px; -} - -.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before { - background-color: #467fcf; -} - -.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E"); -} - -.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before { - background-color: #467fcf; -} - -.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::after { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3E%3Cpath stroke='%23fff' d='M0 2h4'/%3E%3C/svg%3E"); -} - -.custom-checkbox .custom-control-input:disabled:checked ~ .custom-control-label::before { - background-color: rgba(70, 127, 207, 0.5); -} - -.custom-checkbox .custom-control-input:disabled:indeterminate ~ .custom-control-label::before { - background-color: rgba(70, 127, 207, 0.5); -} - -.custom-radio .custom-control-label::before { - border-radius: 50%; -} - -.custom-radio .custom-control-input:checked ~ .custom-control-label::before { - background-color: #467fcf; -} - -.custom-radio .custom-control-input:checked ~ .custom-control-label::after { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E"); -} - -.custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before { - background-color: rgba(70, 127, 207, 0.5); -} - -.custom-select { - display: inline-block; - width: 100%; - height: 2.375rem; - padding: 0.5rem 0.75rem 0.5rem 1.75rem; - line-height: 1.5; - color: #495057; - vertical-align: middle; - background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 5'%3E%3Cpath fill='#999' d='M0 0L10 0L5 5L0 0'/%3E%3C/svg%3E") no-repeat left 0.75rem center; - background-size: 8px 10px; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; -} - -.custom-select:focus { - border-color: #1991eb; - outline: 0; - box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075), 0 0 5px rgba(25, 145, 235, 0.5); -} - -.custom-select:focus::-ms-value { - color: #495057; - background-color: #fff; -} - -.custom-select[multiple], .custom-select[size]:not([size="1"]) { - height: auto; - padding-left: 0.75rem; - background-image: none; -} - -.custom-select:disabled { - color: #868e96; - background-color: #e9ecef; -} - -.custom-select::-ms-expand { - opacity: 0; -} - -.custom-select-sm { - height: calc(1.8125rem + 2px); - padding-top: 0.5rem; - padding-bottom: 0.5rem; - font-size: 75%; -} - -.custom-select-lg { - height: calc(2.6875rem + 2px); - padding-top: 0.5rem; - padding-bottom: 0.5rem; - font-size: 125%; -} - -.custom-file { - position: relative; - display: inline-block; - width: 100%; - height: 2.375rem; - margin-bottom: 0; -} - -.custom-file-input { - position: relative; - z-index: 2; - width: 100%; - height: 2.375rem; - margin: 0; - opacity: 0; -} - -.custom-file-input:focus ~ .custom-file-label { - border-color: #1991eb; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.custom-file-input:focus ~ .custom-file-label::after { - border-color: #1991eb; -} - -.custom-file-input:lang(en) ~ .custom-file-label::after { - content: "Browse"; -} - -.custom-file-label { - position: absolute; - top: 0; - left: 0; - right: 0; - z-index: 1; - height: 2.375rem; - padding: 0.375rem 0.75rem; - line-height: 1.5; - color: #495057; - background-color: #fff; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; -} - -.custom-file-label::after { - position: absolute; - top: 0; - left: 0; - bottom: 0; - z-index: 3; - display: block; - height: calc(2.375rem - 1px * 2); - padding: 0.375rem 0.75rem; - line-height: 1.5; - color: #495057; - content: "Browse"; - background-color: #fbfbfc; - border-right: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px 0 0 3px; -} - -.custom-range { - width: 100%; - padding-right: 0; - background-color: transparent; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; -} - -.custom-range:focus { - outline: none; -} - -.custom-range::-moz-focus-outer { - border: 0; -} - -.custom-range::-webkit-slider-thumb { - width: 1rem; - height: 1rem; - margin-top: -0.25rem; - background-color: #467fcf; - border: 0; - border-radius: 1rem; - -webkit-appearance: none; - appearance: none; -} - -.custom-range::-webkit-slider-thumb:focus { - outline: none; - box-shadow: 0 0 0 1px #f5f7fb, 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.custom-range::-webkit-slider-thumb:active { - background-color: #d4e1f4; -} - -.custom-range::-webkit-slider-runnable-track { - width: 100%; - height: 0.5rem; - color: transparent; - cursor: pointer; - background-color: #dee2e6; - border-color: transparent; - border-radius: 1rem; -} - -.custom-range::-moz-range-thumb { - width: 1rem; - height: 1rem; - background-color: #467fcf; - border: 0; - border-radius: 1rem; - -moz-appearance: none; - appearance: none; -} - -.custom-range::-moz-range-thumb:focus { - outline: none; - box-shadow: 0 0 0 1px #f5f7fb, 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.custom-range::-moz-range-thumb:active { - background-color: #d4e1f4; -} - -.custom-range::-moz-range-track { - width: 100%; - height: 0.5rem; - color: transparent; - cursor: pointer; - background-color: #dee2e6; - border-color: transparent; - border-radius: 1rem; -} - -.custom-range::-ms-thumb { - width: 1rem; - height: 1rem; - background-color: #467fcf; - border: 0; - border-radius: 1rem; - appearance: none; -} - -.custom-range::-ms-thumb:focus { - outline: none; - box-shadow: 0 0 0 1px #f5f7fb, 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.custom-range::-ms-thumb:active { - background-color: #d4e1f4; -} - -.custom-range::-ms-track { - width: 100%; - height: 0.5rem; - color: transparent; - cursor: pointer; - background-color: transparent; - border-color: transparent; - border-width: 0.5rem; -} - -.custom-range::-ms-fill-lower { - background-color: #dee2e6; - border-radius: 1rem; -} - -.custom-range::-ms-fill-upper { - margin-left: 15px; - background-color: #dee2e6; - border-radius: 1rem; -} - -.nav { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - padding-right: 0; - margin-bottom: 0; - list-style: none; -} - -.nav-link { - display: block; - padding: 0.5rem 1rem; -} - -.nav-link:hover, .nav-link:focus { - text-decoration: none; -} - -.nav-link.disabled { - color: #868e96; -} - -.nav-tabs { - border-bottom: 1px solid #dee2e6; -} - -.nav-tabs .nav-item { - margin-bottom: -1px; -} - -.nav-tabs .nav-link { - border: 1px solid transparent; - border-top-right-radius: 3px; - border-top-left-radius: 3px; -} - -.nav-tabs .nav-link:hover, .nav-tabs .nav-link:focus { - border-color: #e9ecef #e9ecef #dee2e6; -} - -.nav-tabs .nav-link.disabled { - color: #868e96; - background-color: transparent; - border-color: transparent; -} - -.nav-tabs .nav-link.active, -.nav-tabs .nav-item.show .nav-link { - color: #495057; - background-color: transparent; - border-color: #dee2e6 #dee2e6 transparent; -} - -.nav-tabs .dropdown-menu { - margin-top: -1px; - border-top-right-radius: 0; - border-top-left-radius: 0; -} - -.nav-pills .nav-link { - border-radius: 3px; -} - -.nav-pills .nav-link.active, -.nav-pills .show > .nav-link { - color: #fff; - background-color: #467fcf; -} - -.nav-fill .nav-item { - -ms-flex: 1 1 auto; - flex: 1 1 auto; - text-align: center; -} - -.nav-justified .nav-item { - -ms-flex-preferred-size: 0; - flex-basis: 0; - -ms-flex-positive: 1; - flex-grow: 1; - text-align: center; -} - -.tab-content > .tab-pane { - display: none; -} - -.tab-content > .active { - display: block; -} - -.navbar { - position: relative; - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: justify; - justify-content: space-between; - padding: 0.5rem 1rem; -} - -.navbar > .container, -.navbar > .container-fluid { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: justify; - justify-content: space-between; -} - -.navbar-brand { - display: inline-block; - padding-top: 0.359375rem; - padding-bottom: 0.359375rem; - margin-left: 1rem; - font-size: 1.125rem; - line-height: inherit; - white-space: nowrap; -} - -.navbar-brand:hover, .navbar-brand:focus { - text-decoration: none; -} - -.navbar-nav { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - padding-right: 0; - margin-bottom: 0; - list-style: none; -} - -.navbar-nav .nav-link { - padding-left: 0; - padding-right: 0; -} - -.navbar-nav .dropdown-menu { - position: static; - float: none; -} - -.navbar-text { - display: inline-block; - padding-top: 0.5rem; - padding-bottom: 0.5rem; -} - -.navbar-collapse { - -ms-flex-preferred-size: 100%; - flex-basis: 100%; - -ms-flex-positive: 1; - flex-grow: 1; - -ms-flex-align: center; - align-items: center; -} - -.navbar-toggler { - padding: 0.25rem 0.75rem; - font-size: 1.125rem; - line-height: 1; - background-color: transparent; - border: 1px solid transparent; - border-radius: 3px; -} - -.navbar-toggler:hover, .navbar-toggler:focus { - text-decoration: none; -} - -.navbar-toggler:not(:disabled):not(.disabled) { - cursor: pointer; -} - -.navbar-toggler-icon { - display: inline-block; - width: 1.5em; - height: 1.5em; - vertical-align: middle; - content: ""; - background: no-repeat center center; - background-size: 100% 100%; -} - -@media (max-width: 575.98px) { - .navbar-expand-sm > .container, - .navbar-expand-sm > .container-fluid { - padding-left: 0; - padding-right: 0; - } -} - -@media (min-width: 576px) { - .navbar-expand-sm { - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -ms-flex-pack: start; - justify-content: flex-start; - } - .navbar-expand-sm .navbar-nav { - -ms-flex-direction: row; - flex-direction: row; - } - .navbar-expand-sm .navbar-nav .dropdown-menu { - position: absolute; - } - .navbar-expand-sm .navbar-nav .nav-link { - padding-left: 0.5rem; - padding-right: 0.5rem; - } - .navbar-expand-sm > .container, - .navbar-expand-sm > .container-fluid { - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - } - .navbar-expand-sm .navbar-collapse { - display: -ms-flexbox !important; - display: flex !important; - -ms-flex-preferred-size: auto; - flex-basis: auto; - } - .navbar-expand-sm .navbar-toggler { - display: none; - } -} - -@media (max-width: 767.98px) { - .navbar-expand-md > .container, - .navbar-expand-md > .container-fluid { - padding-left: 0; - padding-right: 0; - } -} - -@media (min-width: 768px) { - .navbar-expand-md { - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -ms-flex-pack: start; - justify-content: flex-start; - } - .navbar-expand-md .navbar-nav { - -ms-flex-direction: row; - flex-direction: row; - } - .navbar-expand-md .navbar-nav .dropdown-menu { - position: absolute; - } - .navbar-expand-md .navbar-nav .nav-link { - padding-left: 0.5rem; - padding-right: 0.5rem; - } - .navbar-expand-md > .container, - .navbar-expand-md > .container-fluid { - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - } - .navbar-expand-md .navbar-collapse { - display: -ms-flexbox !important; - display: flex !important; - -ms-flex-preferred-size: auto; - flex-basis: auto; - } - .navbar-expand-md .navbar-toggler { - display: none; - } -} - -@media (max-width: 991.98px) { - .navbar-expand-lg > .container, - .navbar-expand-lg > .container-fluid { - padding-left: 0; - padding-right: 0; - } -} - -@media (min-width: 992px) { - .navbar-expand-lg { - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -ms-flex-pack: start; - justify-content: flex-start; - } - .navbar-expand-lg .navbar-nav { - -ms-flex-direction: row; - flex-direction: row; - } - .navbar-expand-lg .navbar-nav .dropdown-menu { - position: absolute; - } - .navbar-expand-lg .navbar-nav .nav-link { - padding-left: 0.5rem; - padding-right: 0.5rem; - } - .navbar-expand-lg > .container, - .navbar-expand-lg > .container-fluid { - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - } - .navbar-expand-lg .navbar-collapse { - display: -ms-flexbox !important; - display: flex !important; - -ms-flex-preferred-size: auto; - flex-basis: auto; - } - .navbar-expand-lg .navbar-toggler { - display: none; - } -} - -@media (max-width: 1279.98px) { - .navbar-expand-xl > .container, - .navbar-expand-xl > .container-fluid { - padding-left: 0; - padding-right: 0; - } -} - -@media (min-width: 1280px) { - .navbar-expand-xl { - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -ms-flex-pack: start; - justify-content: flex-start; - } - .navbar-expand-xl .navbar-nav { - -ms-flex-direction: row; - flex-direction: row; - } - .navbar-expand-xl .navbar-nav .dropdown-menu { - position: absolute; - } - .navbar-expand-xl .navbar-nav .nav-link { - padding-left: 0.5rem; - padding-right: 0.5rem; - } - .navbar-expand-xl > .container, - .navbar-expand-xl > .container-fluid { - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; - } - .navbar-expand-xl .navbar-collapse { - display: -ms-flexbox !important; - display: flex !important; - -ms-flex-preferred-size: auto; - flex-basis: auto; - } - .navbar-expand-xl .navbar-toggler { - display: none; - } -} - -.navbar-expand { - -ms-flex-flow: row nowrap; - flex-flow: row nowrap; - -ms-flex-pack: start; - justify-content: flex-start; -} - -.navbar-expand > .container, -.navbar-expand > .container-fluid { - padding-left: 0; - padding-right: 0; -} - -.navbar-expand .navbar-nav { - -ms-flex-direction: row; - flex-direction: row; -} - -.navbar-expand .navbar-nav .dropdown-menu { - position: absolute; -} - -.navbar-expand .navbar-nav .nav-link { - padding-left: 0.5rem; - padding-right: 0.5rem; -} - -.navbar-expand > .container, -.navbar-expand > .container-fluid { - -ms-flex-wrap: nowrap; - flex-wrap: nowrap; -} - -.navbar-expand .navbar-collapse { - display: -ms-flexbox !important; - display: flex !important; - -ms-flex-preferred-size: auto; - flex-basis: auto; -} - -.navbar-expand .navbar-toggler { - display: none; -} - -.navbar-light .navbar-brand { - color: rgba(0, 0, 0, 0.9); -} - -.navbar-light .navbar-brand:hover, .navbar-light .navbar-brand:focus { - color: rgba(0, 0, 0, 0.9); -} - -.navbar-light .navbar-nav .nav-link { - color: rgba(0, 0, 0, 0.5); -} - -.navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus { - color: rgba(0, 0, 0, 0.7); -} - -.navbar-light .navbar-nav .nav-link.disabled { - color: rgba(0, 0, 0, 0.3); -} - -.navbar-light .navbar-nav .show > .nav-link, -.navbar-light .navbar-nav .active > .nav-link, -.navbar-light .navbar-nav .nav-link.show, -.navbar-light .navbar-nav .nav-link.active { - color: rgba(0, 0, 0, 0.9); -} - -.navbar-light .navbar-toggler { - color: rgba(0, 0, 0, 0.5); - border-color: rgba(0, 0, 0, 0.1); -} - -.navbar-light .navbar-toggler-icon { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); -} - -.navbar-light .navbar-text { - color: rgba(0, 0, 0, 0.5); -} - -.navbar-light .navbar-text a { - color: rgba(0, 0, 0, 0.9); -} - -.navbar-light .navbar-text a:hover, .navbar-light .navbar-text a:focus { - color: rgba(0, 0, 0, 0.9); -} - -.navbar-dark .navbar-brand { - color: #fff; -} - -.navbar-dark .navbar-brand:hover, .navbar-dark .navbar-brand:focus { - color: #fff; -} - -.navbar-dark .navbar-nav .nav-link { - color: rgba(255, 255, 255, 0.5); -} - -.navbar-dark .navbar-nav .nav-link:hover, .navbar-dark .navbar-nav .nav-link:focus { - color: rgba(255, 255, 255, 0.75); -} - -.navbar-dark .navbar-nav .nav-link.disabled { - color: rgba(255, 255, 255, 0.25); -} - -.navbar-dark .navbar-nav .show > .nav-link, -.navbar-dark .navbar-nav .active > .nav-link, -.navbar-dark .navbar-nav .nav-link.show, -.navbar-dark .navbar-nav .nav-link.active { - color: #fff; -} - -.navbar-dark .navbar-toggler { - color: rgba(255, 255, 255, 0.5); - border-color: rgba(255, 255, 255, 0.1); -} - -.navbar-dark .navbar-toggler-icon { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); -} - -.navbar-dark .navbar-text { - color: rgba(255, 255, 255, 0.5); -} - -.navbar-dark .navbar-text a { - color: #fff; -} - -.navbar-dark .navbar-text a:hover, .navbar-dark .navbar-text a:focus { - color: #fff; -} - -.card { - position: relative; - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - min-width: 0; - word-wrap: break-word; - background-color: #fff; - background-clip: border-box; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; -} - -.card > hr { - margin-left: 0; - margin-right: 0; -} - -.card > .list-group:first-child .list-group-item:first-child { - border-top-right-radius: 3px; - border-top-left-radius: 3px; -} - -.card > .list-group:last-child .list-group-item:last-child { - border-bottom-left-radius: 3px; - border-bottom-right-radius: 3px; -} - -.card-body { - -ms-flex: 1 1 auto; - flex: 1 1 auto; - padding: 1.5rem; -} - -.card-title { - margin-bottom: 1.5rem; -} - -.card-subtitle { - margin-top: -0.75rem; - margin-bottom: 0; -} - -.card-text:last-child { - margin-bottom: 0; -} - -.card-link:hover { - text-decoration: none; -} - -.card-link + .card-link { - margin-right: 1.5rem; -} - -.card-header { - padding: 1.5rem 1.5rem; - margin-bottom: 0; - background-color: rgba(0, 0, 0, 0.03); - border-bottom: 1px solid rgba(0, 40, 100, 0.12); -} - -.card-header:first-child { - border-radius: calc(3px - 1px) calc(3px - 1px) 0 0; -} - -.card-header + .list-group .list-group-item:first-child { - border-top: 0; -} - -.card-footer { - padding: 1.5rem 1.5rem; - background-color: rgba(0, 0, 0, 0.03); - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.card-footer:last-child { - border-radius: 0 0 calc(3px - 1px) calc(3px - 1px); -} - -.card-header-tabs { - margin-left: -0.75rem; - margin-bottom: -1.5rem; - margin-right: -0.75rem; - border-bottom: 0; -} - -.card-header-pills { - margin-left: -0.75rem; - margin-right: -0.75rem; -} - -.card-img-overlay { - position: absolute; - top: 0; - left: 0; - bottom: 0; - right: 0; - padding: 1.25rem; -} - -.card-img { - width: 100%; - border-radius: calc(3px - 1px); -} - -.card-img-top { - width: 100%; - border-top-right-radius: calc(3px - 1px); - border-top-left-radius: calc(3px - 1px); -} - -.card-img-bottom { - width: 100%; - border-bottom-left-radius: calc(3px - 1px); - border-bottom-right-radius: calc(3px - 1px); -} - -.card-deck { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; -} - -.card-deck .card { - margin-bottom: 0.75rem; -} - -@media (min-width: 576px) { - .card-deck { - -ms-flex-flow: row wrap; - flex-flow: row wrap; - margin-left: -0.75rem; - margin-right: -0.75rem; - } - .card-deck .card { - display: -ms-flexbox; - display: flex; - -ms-flex: 1 0 0%; - flex: 1 0 0%; - -ms-flex-direction: column; - flex-direction: column; - margin-left: 0.75rem; - margin-bottom: 0; - margin-right: 0.75rem; - } -} - -.card-group { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; -} - -.card-group > .card { - margin-bottom: 0.75rem; -} - -@media (min-width: 576px) { - .card-group { - -ms-flex-flow: row wrap; - flex-flow: row wrap; - } - .card-group > .card { - -ms-flex: 1 0 0%; - flex: 1 0 0%; - margin-bottom: 0; - } - .card-group > .card + .card { - margin-right: 0; - border-right: 0; - } - .card-group > .card:first-child { - border-top-left-radius: 0; - border-bottom-left-radius: 0; - } - .card-group > .card:first-child .card-img-top, - .card-group > .card:first-child .card-header { - border-top-left-radius: 0; - } - .card-group > .card:first-child .card-img-bottom, - .card-group > .card:first-child .card-footer { - border-bottom-left-radius: 0; - } - .card-group > .card:last-child { - border-top-right-radius: 0; - border-bottom-right-radius: 0; - } - .card-group > .card:last-child .card-img-top, - .card-group > .card:last-child .card-header { - border-top-right-radius: 0; - } - .card-group > .card:last-child .card-img-bottom, - .card-group > .card:last-child .card-footer { - border-bottom-right-radius: 0; - } - .card-group > .card:only-child { - border-radius: 3px; - } - .card-group > .card:only-child .card-img-top, - .card-group > .card:only-child .card-header { - border-top-right-radius: 3px; - border-top-left-radius: 3px; - } - .card-group > .card:only-child .card-img-bottom, - .card-group > .card:only-child .card-footer { - border-bottom-left-radius: 3px; - border-bottom-right-radius: 3px; - } - .card-group > .card:not(:first-child):not(:last-child):not(:only-child) { - border-radius: 0; - } - .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-img-top, - .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-img-bottom, - .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-header, - .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-footer { - border-radius: 0; - } -} - -.card-columns .card { - margin-bottom: 1.5rem; -} - -@media (min-width: 576px) { - .card-columns { - -webkit-column-count: 3; - -moz-column-count: 3; - column-count: 3; - -webkit-column-gap: 1.25rem; - -moz-column-gap: 1.25rem; - column-gap: 1.25rem; - orphans: 1; - widows: 1; - } - .card-columns .card { - display: inline-block; - width: 100%; - } -} - -.accordion .card:not(:first-of-type):not(:last-of-type) { - border-bottom: 0; - border-radius: 0; -} - -.accordion .card:not(:first-of-type) .card-header:first-child { - border-radius: 0; -} - -.accordion .card:first-of-type { - border-bottom: 0; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; -} - -.accordion .card:last-of-type { - border-top-right-radius: 0; - border-top-left-radius: 0; -} - -.breadcrumb { - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - padding: 0.75rem 1rem; - margin-bottom: 1rem; - list-style: none; - background-color: #e9ecef; - border-radius: 3px; -} - -.breadcrumb-item + .breadcrumb-item { - padding-right: 0.5rem; -} - -.breadcrumb-item + .breadcrumb-item::before { - display: inline-block; - padding-left: 0.5rem; - color: #868e96; - content: "/"; -} - -.breadcrumb-item + .breadcrumb-item:hover::before { - text-decoration: underline; -} - -.breadcrumb-item + .breadcrumb-item:hover::before { - text-decoration: none; -} - -.breadcrumb-item.active { - color: #868e96; -} - -.pagination { - display: -ms-flexbox; - display: flex; - padding-right: 0; - list-style: none; - border-radius: 3px; -} - -.page-link { - position: relative; - display: block; - padding: 0.5rem 0.75rem; - margin-right: -1px; - line-height: 1.25; - color: #495057; - background-color: #fff; - border: 1px solid #dee2e6; -} - -.page-link:hover { - z-index: 2; - color: #295a9f; - text-decoration: none; - background-color: #e9ecef; - border-color: #dee2e6; -} - -.page-link:focus { - z-index: 2; - outline: 0; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.page-link:not(:disabled):not(.disabled) { - cursor: pointer; -} - -.page-item:first-child .page-link { - margin-right: 0; - border-top-right-radius: 3px; - border-bottom-right-radius: 3px; -} - -.page-item:last-child .page-link { - border-top-left-radius: 3px; - border-bottom-left-radius: 3px; -} - -.page-item.active .page-link { - z-index: 1; - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.page-item.disabled .page-link { - color: #ced4da; - pointer-events: none; - cursor: auto; - background-color: #fff; - border-color: #dee2e6; -} - -.pagination-lg .page-link { - padding: 0.75rem 1.5rem; - font-size: 1.125rem; - line-height: 1.5; -} - -.pagination-lg .page-item:first-child .page-link { - border-top-right-radius: 3px; - border-bottom-right-radius: 3px; -} - -.pagination-lg .page-item:last-child .page-link { - border-top-left-radius: 3px; - border-bottom-left-radius: 3px; -} - -.pagination-sm .page-link { - padding: 0.25rem 0.5rem; - font-size: 0.875rem; - line-height: 1.5; -} - -.pagination-sm .page-item:first-child .page-link { - border-top-right-radius: 3px; - border-bottom-right-radius: 3px; -} - -.pagination-sm .page-item:last-child .page-link { - border-top-left-radius: 3px; - border-bottom-left-radius: 3px; -} - -.badge { - display: inline-block; - padding: 0.25em 0.4em; - font-size: 75%; - font-weight: 600; - line-height: 1; - text-align: center; - white-space: nowrap; - vertical-align: baseline; - border-radius: 3px; -} - -.badge:empty { - display: none; -} - -.btn .badge { - position: relative; - top: -1px; -} - -.badge-pill { - padding-left: 0.6em; - padding-right: 0.6em; - border-radius: 10rem; -} - -.badge-primary { - color: #fff; - background-color: #467fcf; -} - -.badge-primary[href]:hover, .badge-primary[href]:focus { - color: #fff; - text-decoration: none; - background-color: #2f66b3; -} - -.badge-secondary { - color: #fff; - background-color: #868e96; -} - -.badge-secondary[href]:hover, .badge-secondary[href]:focus { - color: #fff; - text-decoration: none; - background-color: #6c757d; -} - -.badge-success { - color: #fff; - background-color: #5eba00; -} - -.badge-success[href]:hover, .badge-success[href]:focus { - color: #fff; - text-decoration: none; - background-color: #448700; -} - -.badge-info { - color: #fff; - background-color: #45aaf2; -} - -.badge-info[href]:hover, .badge-info[href]:focus { - color: #fff; - text-decoration: none; - background-color: #1594ef; -} - -.badge-warning { - color: #fff; - background-color: #f1c40f; -} - -.badge-warning[href]:hover, .badge-warning[href]:focus { - color: #fff; - text-decoration: none; - background-color: #c29d0b; -} - -.badge-danger { - color: #fff; - background-color: #cd201f; -} - -.badge-danger[href]:hover, .badge-danger[href]:focus { - color: #fff; - text-decoration: none; - background-color: #a11918; -} - -.badge-light { - color: #495057; - background-color: #f8f9fa; -} - -.badge-light[href]:hover, .badge-light[href]:focus { - color: #495057; - text-decoration: none; - background-color: #dae0e5; -} - -.badge-dark { - color: #fff; - background-color: #343a40; -} - -.badge-dark[href]:hover, .badge-dark[href]:focus { - color: #fff; - text-decoration: none; - background-color: #1d2124; -} - -.jumbotron { - padding: 2rem 1rem; - margin-bottom: 2rem; - background-color: #e9ecef; - border-radius: 3px; -} - -@media (min-width: 576px) { - .jumbotron { - padding: 4rem 2rem; - } -} - -.jumbotron-fluid { - padding-left: 0; - padding-right: 0; - border-radius: 0; -} - -.alert { - position: relative; - padding: 0.75rem 1.25rem; - margin-bottom: 1rem; - border: 1px solid transparent; - border-radius: 3px; -} - -.alert-heading { - color: inherit; -} - -.alert-link { - font-weight: 600; -} - -.alert-dismissible { - padding-left: 3.90625rem; -} - -.alert-dismissible .close { - position: absolute; - top: 0; - left: 0; - padding: 0.75rem 1.25rem; - color: inherit; -} - -.alert-primary { - color: #24426c; - background-color: #dae5f5; - border-color: #cbdbf2; -} - -.alert-primary hr { - border-top-color: #b7cded; -} - -.alert-primary .alert-link { - color: #172b46; -} - -.alert-secondary { - color: #464a4e; - background-color: #e7e8ea; - border-color: #dddfe2; -} - -.alert-secondary hr { - border-top-color: #cfd2d6; -} - -.alert-secondary .alert-link { - color: #2e3133; -} - -.alert-success { - color: #316100; - background-color: #dff1cc; - border-color: #d2ecb8; -} - -.alert-success hr { - border-top-color: #c5e7a4; -} - -.alert-success .alert-link { - color: #172e00; -} - -.alert-info { - color: #24587e; - background-color: #daeefc; - border-color: #cbe7fb; -} - -.alert-info hr { - border-top-color: #b3dcf9; -} - -.alert-info .alert-link { - color: #193c56; -} - -.alert-warning { - color: #7d6608; - background-color: #fcf3cf; - border-color: #fbeebc; -} - -.alert-warning hr { - border-top-color: #fae8a4; -} - -.alert-warning .alert-link { - color: #4d3f05; -} - -.alert-danger { - color: #6b1110; - background-color: #f5d2d2; - border-color: #f1c1c0; -} - -.alert-danger hr { - border-top-color: #ecacab; -} - -.alert-danger .alert-link { - color: #3f0a09; -} - -.alert-light { - color: #818182; - background-color: #fefefe; - border-color: #fdfdfe; -} - -.alert-light hr { - border-top-color: #ececf6; -} - -.alert-light .alert-link { - color: #686868; -} - -.alert-dark { - color: #1b1e21; - background-color: #d6d8d9; - border-color: #c6c8ca; -} - -.alert-dark hr { - border-top-color: #b9bbbe; -} - -.alert-dark .alert-link { - color: #040505; -} - -@-webkit-keyframes progress-bar-stripes { - from { - background-position: 1rem 0; - } - to { - background-position: 100% 0; - } -} - -@keyframes progress-bar-stripes { - from { - background-position: 1rem 0; - } - to { - background-position: 100% 0; - } -} - -.progress { - display: -ms-flexbox; - display: flex; - height: 1rem; - overflow: hidden; - font-size: 0.703125rem; - background-color: #e9ecef; - border-radius: 3px; -} - -.progress-bar { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - -ms-flex-pack: center; - justify-content: center; - color: #fff; - text-align: center; - white-space: nowrap; - background-color: #467fcf; - transition: width 0.6s ease; -} - -@media screen and (prefers-reduced-motion: reduce) { - .progress-bar { - transition: none; - } -} - -.progress-bar-striped { - background-image: linear-gradient(-45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-size: 1rem 1rem; -} - -.progress-bar-animated { - -webkit-animation: progress-bar-stripes 1s linear infinite; - animation: progress-bar-stripes 1s linear infinite; -} - -.media { - display: -ms-flexbox; - display: flex; - -ms-flex-align: start; - align-items: flex-start; -} - -.media-body { - -ms-flex: 1; - flex: 1; -} - -.list-group { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - padding-right: 0; - margin-bottom: 0; -} - -.list-group-item-action { - width: 100%; - color: #495057; - text-align: inherit; -} - -.list-group-item-action:hover, .list-group-item-action:focus { - color: #495057; - text-decoration: none; - background-color: #f8f9fa; -} - -.list-group-item-action:active { - color: #495057; - background-color: #e9ecef; -} - -.list-group-item { - position: relative; - display: block; - padding: 0.75rem 1.25rem; - margin-bottom: -1px; - background-color: #fff; - border: 1px solid rgba(0, 40, 100, 0.12); -} - -.list-group-item:first-child { - border-top-right-radius: 3px; - border-top-left-radius: 3px; -} - -.list-group-item:last-child { - margin-bottom: 0; - border-bottom-left-radius: 3px; - border-bottom-right-radius: 3px; -} - -.list-group-item:hover, .list-group-item:focus { - z-index: 1; - text-decoration: none; -} - -.list-group-item.disabled, .list-group-item:disabled { - color: #868e96; - background-color: #fff; -} - -.list-group-item.active { - z-index: 2; - color: #467fcf; - background-color: #f8fafd; - border-color: rgba(0, 40, 100, 0.12); -} - -.list-group-flush .list-group-item { - border-left: 0; - border-right: 0; - border-radius: 0; -} - -.list-group-flush:first-child .list-group-item:first-child { - border-top: 0; -} - -.list-group-flush:last-child .list-group-item:last-child { - border-bottom: 0; -} - -.list-group-item-primary { - color: #24426c; - background-color: #cbdbf2; -} - -.list-group-item-primary.list-group-item-action:hover, .list-group-item-primary.list-group-item-action:focus { - color: #24426c; - background-color: #b7cded; -} - -.list-group-item-primary.list-group-item-action.active { - color: #fff; - background-color: #24426c; - border-color: #24426c; -} - -.list-group-item-secondary { - color: #464a4e; - background-color: #dddfe2; -} - -.list-group-item-secondary.list-group-item-action:hover, .list-group-item-secondary.list-group-item-action:focus { - color: #464a4e; - background-color: #cfd2d6; -} - -.list-group-item-secondary.list-group-item-action.active { - color: #fff; - background-color: #464a4e; - border-color: #464a4e; -} - -.list-group-item-success { - color: #316100; - background-color: #d2ecb8; -} - -.list-group-item-success.list-group-item-action:hover, .list-group-item-success.list-group-item-action:focus { - color: #316100; - background-color: #c5e7a4; -} - -.list-group-item-success.list-group-item-action.active { - color: #fff; - background-color: #316100; - border-color: #316100; -} - -.list-group-item-info { - color: #24587e; - background-color: #cbe7fb; -} - -.list-group-item-info.list-group-item-action:hover, .list-group-item-info.list-group-item-action:focus { - color: #24587e; - background-color: #b3dcf9; -} - -.list-group-item-info.list-group-item-action.active { - color: #fff; - background-color: #24587e; - border-color: #24587e; -} - -.list-group-item-warning { - color: #7d6608; - background-color: #fbeebc; -} - -.list-group-item-warning.list-group-item-action:hover, .list-group-item-warning.list-group-item-action:focus { - color: #7d6608; - background-color: #fae8a4; -} - -.list-group-item-warning.list-group-item-action.active { - color: #fff; - background-color: #7d6608; - border-color: #7d6608; -} - -.list-group-item-danger { - color: #6b1110; - background-color: #f1c1c0; -} - -.list-group-item-danger.list-group-item-action:hover, .list-group-item-danger.list-group-item-action:focus { - color: #6b1110; - background-color: #ecacab; -} - -.list-group-item-danger.list-group-item-action.active { - color: #fff; - background-color: #6b1110; - border-color: #6b1110; -} - -.list-group-item-light { - color: #818182; - background-color: #fdfdfe; -} - -.list-group-item-light.list-group-item-action:hover, .list-group-item-light.list-group-item-action:focus { - color: #818182; - background-color: #ececf6; -} - -.list-group-item-light.list-group-item-action.active { - color: #fff; - background-color: #818182; - border-color: #818182; -} - -.list-group-item-dark { - color: #1b1e21; - background-color: #c6c8ca; -} - -.list-group-item-dark.list-group-item-action:hover, .list-group-item-dark.list-group-item-action:focus { - color: #1b1e21; - background-color: #b9bbbe; -} - -.list-group-item-dark.list-group-item-action.active { - color: #fff; - background-color: #1b1e21; - border-color: #1b1e21; -} - -.close { - float: left; - font-size: 1.40625rem; - font-weight: 700; - line-height: 1; - color: #000; - text-shadow: 0 1px 0 #fff; - opacity: .5; -} - -.close:hover, .close:focus { - color: #000; - text-decoration: none; - opacity: .75; -} - -.close:not(:disabled):not(.disabled) { - cursor: pointer; -} - -button.close { - padding: 0; - background-color: transparent; - border: 0; - -webkit-appearance: none; -} - -.modal-open { - overflow: hidden; -} - -.modal { - position: fixed; - top: 0; - left: 0; - bottom: 0; - right: 0; - z-index: 1050; - display: none; - overflow: hidden; - outline: 0; -} - -.modal-open .modal { - overflow-x: hidden; - overflow-y: auto; -} - -.modal-dialog { - position: relative; - width: auto; - margin: 0.5rem; - pointer-events: none; -} - -.modal.fade .modal-dialog { - transition: -webkit-transform 0.3s ease-out; - transition: transform 0.3s ease-out; - transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out; - -webkit-transform: translate(0, -25%); - transform: translate(0, -25%); -} - -@media screen and (prefers-reduced-motion: reduce) { - .modal.fade .modal-dialog { - transition: none; - } -} - -.modal.show .modal-dialog { - -webkit-transform: translate(0, 0); - transform: translate(0, 0); -} - -.modal-dialog-centered { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - min-height: calc(100% - (0.5rem * 2)); -} - -.modal-content { - position: relative; - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - width: 100%; - pointer-events: auto; - background-color: #fff; - background-clip: padding-box; - border: 1px solid rgba(0, 0, 0, 0.2); - border-radius: 3px; - outline: 0; -} - -.modal-backdrop { - position: fixed; - top: 0; - left: 0; - bottom: 0; - right: 0; - z-index: 1040; - background-color: #000; -} - -.modal-backdrop.fade { - opacity: 0; -} - -.modal-backdrop.show { - opacity: 0.5; -} - -.modal-header { - display: -ms-flexbox; - display: flex; - -ms-flex-align: start; - align-items: flex-start; - -ms-flex-pack: justify; - justify-content: space-between; - padding: 1rem; - border-bottom: 1px solid #e9ecef; - border-top-right-radius: 3px; - border-top-left-radius: 3px; -} - -.modal-header .close { - padding: 1rem; - margin: -1rem auto -1rem -1rem; -} - -.modal-title { - margin-bottom: 0; - line-height: 1.5; -} - -.modal-body { - position: relative; - -ms-flex: 1 1 auto; - flex: 1 1 auto; - padding: 1rem; -} - -.modal-footer { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: end; - justify-content: flex-end; - padding: 1rem; - border-top: 1px solid #e9ecef; -} - -.modal-footer > :not(:first-child) { - margin-right: .25rem; -} - -.modal-footer > :not(:last-child) { - margin-left: .25rem; -} - -.modal-scrollbar-measure { - position: absolute; - top: -9999px; - width: 50px; - height: 50px; - overflow: scroll; -} - -@media (min-width: 576px) { - .modal-dialog { - max-width: 500px; - margin: 1.75rem auto; - } - .modal-dialog-centered { - min-height: calc(100% - (1.75rem * 2)); - } - .modal-sm { - max-width: 300px; - } -} - -@media (min-width: 992px) { - .modal-lg { - max-width: 800px; - } -} - -.tooltip { - position: absolute; - z-index: 1070; - display: block; - margin: 0; - font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; - font-style: normal; - font-weight: 400; - line-height: 1.5; - text-align: right; - text-align: start; - text-decoration: none; - text-shadow: none; - text-transform: none; - letter-spacing: normal; - word-break: normal; - word-spacing: normal; - white-space: normal; - line-break: auto; - font-size: 0.875rem; - word-wrap: break-word; - opacity: 0; -} - -.tooltip.show { - opacity: 0.9; -} - -.tooltip .arrow { - position: absolute; - display: block; - width: 0.8rem; - height: 0.4rem; -} - -.tooltip .arrow::before { - position: absolute; - content: ""; - border-color: transparent; - border-style: solid; -} - -.bs-tooltip-top, .bs-tooltip-auto[x-placement^="top"] { - padding: 0.4rem 0; -} - -.bs-tooltip-top .arrow, .bs-tooltip-auto[x-placement^="top"] .arrow { - bottom: 0; -} - -.bs-tooltip-top .arrow::before, .bs-tooltip-auto[x-placement^="top"] .arrow::before { - top: 0; - border-width: 0.4rem 0.4rem 0; - border-top-color: #000; -} - -.bs-tooltip-right, .bs-tooltip-auto[x-placement^="right"] { - padding: 0 0.4rem; -} - -.bs-tooltip-right .arrow, .bs-tooltip-auto[x-placement^="right"] .arrow { - right: 0; - width: 0.4rem; - height: 0.8rem; -} - -.bs-tooltip-right .arrow::before, .bs-tooltip-auto[x-placement^="right"] .arrow::before { - left: 0; - border-width: 0.4rem 0 0.4rem 0.4rem; - border-left-color: #000; -} - -.bs-tooltip-bottom, .bs-tooltip-auto[x-placement^="bottom"] { - padding: 0.4rem 0; -} - -.bs-tooltip-bottom .arrow, .bs-tooltip-auto[x-placement^="bottom"] .arrow { - top: 0; -} - -.bs-tooltip-bottom .arrow::before, .bs-tooltip-auto[x-placement^="bottom"] .arrow::before { - bottom: 0; - border-width: 0 0.4rem 0.4rem; - border-bottom-color: #000; -} - -.bs-tooltip-left, .bs-tooltip-auto[x-placement^="left"] { - padding: 0 0.4rem; -} - -.bs-tooltip-left .arrow, .bs-tooltip-auto[x-placement^="left"] .arrow { - left: 0; - width: 0.4rem; - height: 0.8rem; -} - -.bs-tooltip-left .arrow::before, .bs-tooltip-auto[x-placement^="left"] .arrow::before { - right: 0; - border-width: 0.4rem 0.4rem 0.4rem 0; - border-right-color: #000; -} - -.tooltip-inner { - max-width: 200px; - padding: 0.25rem 0.5rem; - color: #fff; - text-align: center; - background-color: #000; - border-radius: 3px; -} - -.popover { - position: absolute; - top: 0; - right: 0; - z-index: 1060; - display: block; - max-width: 276px; - font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; - font-style: normal; - font-weight: 400; - line-height: 1.5; - text-align: right; - text-align: start; - text-decoration: none; - text-shadow: none; - text-transform: none; - letter-spacing: normal; - word-break: normal; - word-spacing: normal; - white-space: normal; - line-break: auto; - font-size: 0.875rem; - word-wrap: break-word; - background-color: #fff; - background-clip: padding-box; - border: 1px solid #dee3eb; - border-radius: 3px; -} - -.popover .arrow { - position: absolute; - display: block; - width: 0.5rem; - height: 0.5rem; - margin: 0 3px; -} - -.popover .arrow::before, .popover .arrow::after { - position: absolute; - display: block; - content: ""; - border-color: transparent; - border-style: solid; -} - -.bs-popover-top, .bs-popover-auto[x-placement^="top"] { - margin-bottom: 0.5rem; -} - -.bs-popover-top .arrow, .bs-popover-auto[x-placement^="top"] .arrow { - bottom: calc((0.5rem + 1px) * -1); -} - -.bs-popover-top .arrow::before, .bs-popover-auto[x-placement^="top"] .arrow::before, -.bs-popover-top .arrow::after, -.bs-popover-auto[x-placement^="top"] .arrow::after { - border-width: 0.5rem 0.25rem 0; -} - -.bs-popover-top .arrow::before, .bs-popover-auto[x-placement^="top"] .arrow::before { - bottom: 0; - border-top-color: #dee3eb; -} - - -.bs-popover-top .arrow::after, -.bs-popover-auto[x-placement^="top"] .arrow::after { - bottom: 1px; - border-top-color: #fff; -} - -.bs-popover-right, .bs-popover-auto[x-placement^="right"] { - margin-right: 0.5rem; -} - -.bs-popover-right .arrow, .bs-popover-auto[x-placement^="right"] .arrow { - right: calc((0.5rem + 1px) * -1); - width: 0.5rem; - height: 0.5rem; - margin: 3px 0; -} - -.bs-popover-right .arrow::before, .bs-popover-auto[x-placement^="right"] .arrow::before, -.bs-popover-right .arrow::after, -.bs-popover-auto[x-placement^="right"] .arrow::after { - border-width: 0.25rem 0 0.25rem 0.5rem; -} - -.bs-popover-right .arrow::before, .bs-popover-auto[x-placement^="right"] .arrow::before { - right: 0; - border-left-color: #dee3eb; -} - - -.bs-popover-right .arrow::after, -.bs-popover-auto[x-placement^="right"] .arrow::after { - right: 1px; - border-left-color: #fff; -} - -.bs-popover-bottom, .bs-popover-auto[x-placement^="bottom"] { - margin-top: 0.5rem; -} - -.bs-popover-bottom .arrow, .bs-popover-auto[x-placement^="bottom"] .arrow { - top: calc((0.5rem + 1px) * -1); -} - -.bs-popover-bottom .arrow::before, .bs-popover-auto[x-placement^="bottom"] .arrow::before, -.bs-popover-bottom .arrow::after, -.bs-popover-auto[x-placement^="bottom"] .arrow::after { - border-width: 0 0.25rem 0.5rem 0.25rem; -} - -.bs-popover-bottom .arrow::before, .bs-popover-auto[x-placement^="bottom"] .arrow::before { - top: 0; - border-bottom-color: #dee3eb; -} - - -.bs-popover-bottom .arrow::after, -.bs-popover-auto[x-placement^="bottom"] .arrow::after { - top: 1px; - border-bottom-color: #fff; -} - -.bs-popover-bottom .popover-header::before, .bs-popover-auto[x-placement^="bottom"] .popover-header::before { - position: absolute; - top: 0; - right: 50%; - display: block; - width: 0.5rem; - margin-right: -0.25rem; - content: ""; - border-bottom: 1px solid #f7f7f7; -} - -.bs-popover-left, .bs-popover-auto[x-placement^="left"] { - margin-left: 0.5rem; -} - -.bs-popover-left .arrow, .bs-popover-auto[x-placement^="left"] .arrow { - left: calc((0.5rem + 1px) * -1); - width: 0.5rem; - height: 0.5rem; - margin: 3px 0; -} - -.bs-popover-left .arrow::before, .bs-popover-auto[x-placement^="left"] .arrow::before, -.bs-popover-left .arrow::after, -.bs-popover-auto[x-placement^="left"] .arrow::after { - border-width: 0.25rem 0.5rem 0.25rem 0; -} - -.bs-popover-left .arrow::before, .bs-popover-auto[x-placement^="left"] .arrow::before { - left: 0; - border-right-color: #dee3eb; -} - - -.bs-popover-left .arrow::after, -.bs-popover-auto[x-placement^="left"] .arrow::after { - left: 1px; - border-right-color: #fff; -} - -.popover-header { - padding: 0.5rem 0.75rem; - margin-bottom: 0; - font-size: 0.9375rem; - color: inherit; - background-color: #f7f7f7; - border-bottom: 1px solid #ebebeb; - border-top-right-radius: calc(3px - 1px); - border-top-left-radius: calc(3px - 1px); -} - -.popover-header:empty { - display: none; -} - -.popover-body { - padding: 0.75rem 1rem; - color: #6e7687; -} - -.carousel { - position: relative; -} - -.carousel-inner { - position: relative; - width: 100%; - overflow: hidden; -} - -.carousel-item { - position: relative; - display: none; - -ms-flex-align: center; - align-items: center; - width: 100%; - transition: -webkit-transform 0.6s ease; - transition: transform 0.6s ease; - transition: transform 0.6s ease, -webkit-transform 0.6s ease; - -webkit-backface-visibility: hidden; - backface-visibility: hidden; - -webkit-perspective: 1000px; - perspective: 1000px; -} - -@media screen and (prefers-reduced-motion: reduce) { - .carousel-item { - transition: none; - } -} - -.carousel-item.active, -.carousel-item-next, -.carousel-item-prev { - display: block; -} - -.carousel-item-next, -.carousel-item-prev { - position: absolute; - top: 0; -} - -.carousel-item-next.carousel-item-left, -.carousel-item-prev.carousel-item-right { - -webkit-transform: translateX(0); - transform: translateX(0); -} - -@supports ((-webkit-transform-style: preserve-3d) or (transform-style: preserve-3d)) { - .carousel-item-next.carousel-item-left, - .carousel-item-prev.carousel-item-right { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); - } -} - -.carousel-item-next, -.active.carousel-item-right { - -webkit-transform: translateX(-100%); - transform: translateX(-100%); -} - -@supports ((-webkit-transform-style: preserve-3d) or (transform-style: preserve-3d)) { - .carousel-item-next, - .active.carousel-item-right { - -webkit-transform: translate3d(-100%, 0, 0); - transform: translate3d(-100%, 0, 0); - } -} - -.carousel-item-prev, -.active.carousel-item-left { - -webkit-transform: translateX(100%); - transform: translateX(100%); -} - -@supports ((-webkit-transform-style: preserve-3d) or (transform-style: preserve-3d)) { - .carousel-item-prev, - .active.carousel-item-left { - -webkit-transform: translate3d(100%, 0, 0); - transform: translate3d(100%, 0, 0); - } -} - -.carousel-fade .carousel-item { - opacity: 0; - transition-duration: .6s; - transition-property: opacity; -} - -.carousel-fade .carousel-item.active, -.carousel-fade .carousel-item-next.carousel-item-left, -.carousel-fade .carousel-item-prev.carousel-item-right { - opacity: 1; -} - -.carousel-fade .active.carousel-item-left, -.carousel-fade .active.carousel-item-right { - opacity: 0; -} - -.carousel-fade .carousel-item-next, -.carousel-fade .carousel-item-prev, -.carousel-fade .carousel-item.active, -.carousel-fade .active.carousel-item-left, -.carousel-fade .active.carousel-item-prev { - -webkit-transform: translateX(0); - transform: translateX(0); -} - -@supports ((-webkit-transform-style: preserve-3d) or (transform-style: preserve-3d)) { - .carousel-fade .carousel-item-next, - .carousel-fade .carousel-item-prev, - .carousel-fade .carousel-item.active, - .carousel-fade .active.carousel-item-left, - .carousel-fade .active.carousel-item-prev { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); - } -} - -.carousel-control-prev, -.carousel-control-next { - position: absolute; - top: 0; - bottom: 0; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - width: 15%; - color: #fff; - text-align: center; - opacity: 0.5; -} - -.carousel-control-prev:hover, .carousel-control-prev:focus, -.carousel-control-next:hover, -.carousel-control-next:focus { - color: #fff; - text-decoration: none; - outline: 0; - opacity: .9; -} - -.carousel-control-prev { - right: 0; -} - -.carousel-control-next { - left: 0; -} - -.carousel-control-prev-icon, -.carousel-control-next-icon { - display: inline-block; - width: 20px; - height: 20px; - background: transparent no-repeat center center; - background-size: 100% 100%; -} - -.carousel-control-prev-icon { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E"); -} - -.carousel-control-next-icon { - background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E"); -} - -.carousel-indicators { - position: absolute; - left: 0; - bottom: 10px; - right: 0; - z-index: 15; - display: -ms-flexbox; - display: flex; - -ms-flex-pack: center; - justify-content: center; - padding-right: 0; - margin-left: 15%; - margin-right: 15%; - list-style: none; -} - -.carousel-indicators li { - position: relative; - -ms-flex: 0 1 auto; - flex: 0 1 auto; - width: 30px; - height: 3px; - margin-left: 3px; - margin-right: 3px; - text-indent: -999px; - background-color: rgba(255, 255, 255, 0.5); -} - -.carousel-indicators li::before { - position: absolute; - top: -10px; - right: 0; - display: inline-block; - width: 100%; - height: 10px; - content: ""; -} - -.carousel-indicators li::after { - position: absolute; - bottom: -10px; - right: 0; - display: inline-block; - width: 100%; - height: 10px; - content: ""; -} - -.carousel-indicators .active { - background-color: #fff; -} - -.carousel-caption { - position: absolute; - left: 15%; - bottom: 20px; - right: 15%; - z-index: 10; - padding-top: 20px; - padding-bottom: 20px; - color: #fff; - text-align: center; -} - -.align-baseline { - vertical-align: baseline !important; -} - -.align-top { - vertical-align: top !important; -} - -.align-middle { - vertical-align: middle !important; -} - -.align-bottom { - vertical-align: bottom !important; -} - -.align-text-bottom { - vertical-align: text-bottom !important; -} - -.align-text-top { - vertical-align: text-top !important; -} - -.bg-primary { - background-color: #467fcf !important; -} - -a.bg-primary:hover, a.bg-primary:focus, -button.bg-primary:hover, -button.bg-primary:focus { - background-color: #2f66b3 !important; -} - -.bg-secondary { - background-color: #868e96 !important; -} - -a.bg-secondary:hover, a.bg-secondary:focus, -button.bg-secondary:hover, -button.bg-secondary:focus { - background-color: #6c757d !important; -} - -.bg-success { - background-color: #5eba00 !important; -} - -a.bg-success:hover, a.bg-success:focus, -button.bg-success:hover, -button.bg-success:focus { - background-color: #448700 !important; -} - -.bg-info { - background-color: #45aaf2 !important; -} - -a.bg-info:hover, a.bg-info:focus, -button.bg-info:hover, -button.bg-info:focus { - background-color: #1594ef !important; -} - -.bg-warning { - background-color: #f1c40f !important; -} - -a.bg-warning:hover, a.bg-warning:focus, -button.bg-warning:hover, -button.bg-warning:focus { - background-color: #c29d0b !important; -} - -.bg-danger { - background-color: #cd201f !important; -} - -a.bg-danger:hover, a.bg-danger:focus, -button.bg-danger:hover, -button.bg-danger:focus { - background-color: #a11918 !important; -} - -.bg-light { - background-color: #f8f9fa !important; -} - -a.bg-light:hover, a.bg-light:focus, -button.bg-light:hover, -button.bg-light:focus { - background-color: #dae0e5 !important; -} - -.bg-dark { - background-color: #343a40 !important; -} - -a.bg-dark:hover, a.bg-dark:focus, -button.bg-dark:hover, -button.bg-dark:focus { - background-color: #1d2124 !important; -} - -.bg-white { - background-color: #fff !important; -} - -.bg-transparent { - background-color: transparent !important; -} - -.border { - border: 1px solid rgba(0, 40, 100, 0.12) !important; -} - -.border-top { - border-top: 1px solid rgba(0, 40, 100, 0.12) !important; -} - -.border-right { - border-left: 1px solid rgba(0, 40, 100, 0.12) !important; -} - -.border-bottom { - border-bottom: 1px solid rgba(0, 40, 100, 0.12) !important; -} - -.border-left { - border-right: 1px solid rgba(0, 40, 100, 0.12) !important; -} - -.border-0 { - border: 0 !important; -} - -.border-top-0 { - border-top: 0 !important; -} - -.border-right-0 { - border-left: 0 !important; -} - -.border-bottom-0 { - border-bottom: 0 !important; -} - -.border-left-0 { - border-right: 0 !important; -} - -.border-primary { - border-color: #467fcf !important; -} - -.border-secondary { - border-color: #868e96 !important; -} - -.border-success { - border-color: #5eba00 !important; -} - -.border-info { - border-color: #45aaf2 !important; -} - -.border-warning { - border-color: #f1c40f !important; -} - -.border-danger { - border-color: #cd201f !important; -} - -.border-light { - border-color: #f8f9fa !important; -} - -.border-dark { - border-color: #343a40 !important; -} - -.border-white { - border-color: #fff !important; -} - -.rounded { - border-radius: 3px !important; -} - -.rounded-top { - border-top-right-radius: 3px !important; - border-top-left-radius: 3px !important; -} - -.rounded-right { - border-top-left-radius: 3px !important; - border-bottom-left-radius: 3px !important; -} - -.rounded-bottom { - border-bottom-left-radius: 3px !important; - border-bottom-right-radius: 3px !important; -} - -.rounded-left { - border-top-right-radius: 3px !important; - border-bottom-right-radius: 3px !important; -} - -.rounded-circle { - border-radius: 50% !important; -} - -.rounded-0 { - border-radius: 0 !important; -} - -.clearfix::after { - display: block; - clear: both; - content: ""; -} - -.d-none { - display: none !important; -} - -.d-inline { - display: inline !important; -} - -.d-inline-block { - display: inline-block !important; -} - -.d-block { - display: block !important; -} - -.d-table { - display: table !important; -} - -.d-table-row { - display: table-row !important; -} - -.d-table-cell { - display: table-cell !important; -} - -.d-flex { - display: -ms-flexbox !important; - display: flex !important; -} - -.d-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; -} - -@media (min-width: 576px) { - .d-sm-none { - display: none !important; - } - .d-sm-inline { - display: inline !important; - } - .d-sm-inline-block { - display: inline-block !important; - } - .d-sm-block { - display: block !important; - } - .d-sm-table { - display: table !important; - } - .d-sm-table-row { - display: table-row !important; - } - .d-sm-table-cell { - display: table-cell !important; - } - .d-sm-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-sm-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media (min-width: 768px) { - .d-md-none { - display: none !important; - } - .d-md-inline { - display: inline !important; - } - .d-md-inline-block { - display: inline-block !important; - } - .d-md-block { - display: block !important; - } - .d-md-table { - display: table !important; - } - .d-md-table-row { - display: table-row !important; - } - .d-md-table-cell { - display: table-cell !important; - } - .d-md-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-md-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media (min-width: 992px) { - .d-lg-none { - display: none !important; - } - .d-lg-inline { - display: inline !important; - } - .d-lg-inline-block { - display: inline-block !important; - } - .d-lg-block { - display: block !important; - } - .d-lg-table { - display: table !important; - } - .d-lg-table-row { - display: table-row !important; - } - .d-lg-table-cell { - display: table-cell !important; - } - .d-lg-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-lg-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media (min-width: 1280px) { - .d-xl-none { - display: none !important; - } - .d-xl-inline { - display: inline !important; - } - .d-xl-inline-block { - display: inline-block !important; - } - .d-xl-block { - display: block !important; - } - .d-xl-table { - display: table !important; - } - .d-xl-table-row { - display: table-row !important; - } - .d-xl-table-cell { - display: table-cell !important; - } - .d-xl-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-xl-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -@media print { - .d-print-none { - display: none !important; - } - .d-print-inline { - display: inline !important; - } - .d-print-inline-block { - display: inline-block !important; - } - .d-print-block { - display: block !important; - } - .d-print-table { - display: table !important; - } - .d-print-table-row { - display: table-row !important; - } - .d-print-table-cell { - display: table-cell !important; - } - .d-print-flex { - display: -ms-flexbox !important; - display: flex !important; - } - .d-print-inline-flex { - display: -ms-inline-flexbox !important; - display: inline-flex !important; - } -} - -.embed-responsive { - position: relative; - display: block; - width: 100%; - padding: 0; - overflow: hidden; -} - -.embed-responsive::before { - display: block; - content: ""; -} - -.embed-responsive .embed-responsive-item, -.embed-responsive iframe, -.embed-responsive embed, -.embed-responsive object, -.embed-responsive video { - position: absolute; - top: 0; - bottom: 0; - right: 0; - width: 100%; - height: 100%; - border: 0; -} - -.embed-responsive-21by9::before { - padding-top: 42.85714286%; -} - -.embed-responsive-16by9::before { - padding-top: 56.25%; -} - -.embed-responsive-4by3::before { - padding-top: 75%; -} - -.embed-responsive-1by1::before { - padding-top: 100%; -} - -.flex-row { - -ms-flex-direction: row !important; - flex-direction: row !important; -} - -.flex-column { - -ms-flex-direction: column !important; - flex-direction: column !important; -} - -.flex-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; -} - -.flex-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; -} - -.flex-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; -} - -.flex-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; -} - -.flex-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; -} - -.flex-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; -} - -.flex-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; -} - -.flex-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; -} - -.flex-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; -} - -.flex-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; -} - -.justify-content-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; -} - -.justify-content-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; -} - -.justify-content-center { - -ms-flex-pack: center !important; - justify-content: center !important; -} - -.justify-content-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; -} - -.justify-content-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; -} - -.align-items-start { - -ms-flex-align: start !important; - align-items: flex-start !important; -} - -.align-items-end { - -ms-flex-align: end !important; - align-items: flex-end !important; -} - -.align-items-center { - -ms-flex-align: center !important; - align-items: center !important; -} - -.align-items-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; -} - -.align-items-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; -} - -.align-content-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; -} - -.align-content-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; -} - -.align-content-center { - -ms-flex-line-pack: center !important; - align-content: center !important; -} - -.align-content-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; -} - -.align-content-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; -} - -.align-content-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; -} - -.align-self-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; -} - -.align-self-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; -} - -.align-self-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; -} - -.align-self-center { - -ms-flex-item-align: center !important; - align-self: center !important; -} - -.align-self-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; -} - -.align-self-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; -} - -@media (min-width: 576px) { - .flex-sm-row { - -ms-flex-direction: row !important; - flex-direction: row !important; - } - .flex-sm-column { - -ms-flex-direction: column !important; - flex-direction: column !important; - } - .flex-sm-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; - } - .flex-sm-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; - } - .flex-sm-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; - } - .flex-sm-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; - } - .flex-sm-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; - } - .flex-sm-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; - } - .flex-sm-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; - } - .flex-sm-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; - } - .flex-sm-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; - } - .flex-sm-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; - } - .justify-content-sm-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; - } - .justify-content-sm-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; - } - .justify-content-sm-center { - -ms-flex-pack: center !important; - justify-content: center !important; - } - .justify-content-sm-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; - } - .justify-content-sm-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; - } - .align-items-sm-start { - -ms-flex-align: start !important; - align-items: flex-start !important; - } - .align-items-sm-end { - -ms-flex-align: end !important; - align-items: flex-end !important; - } - .align-items-sm-center { - -ms-flex-align: center !important; - align-items: center !important; - } - .align-items-sm-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; - } - .align-items-sm-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; - } - .align-content-sm-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; - } - .align-content-sm-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; - } - .align-content-sm-center { - -ms-flex-line-pack: center !important; - align-content: center !important; - } - .align-content-sm-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; - } - .align-content-sm-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; - } - .align-content-sm-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; - } - .align-self-sm-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; - } - .align-self-sm-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; - } - .align-self-sm-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; - } - .align-self-sm-center { - -ms-flex-item-align: center !important; - align-self: center !important; - } - .align-self-sm-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; - } - .align-self-sm-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; - } -} - -@media (min-width: 768px) { - .flex-md-row { - -ms-flex-direction: row !important; - flex-direction: row !important; - } - .flex-md-column { - -ms-flex-direction: column !important; - flex-direction: column !important; - } - .flex-md-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; - } - .flex-md-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; - } - .flex-md-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; - } - .flex-md-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; - } - .flex-md-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; - } - .flex-md-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; - } - .flex-md-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; - } - .flex-md-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; - } - .flex-md-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; - } - .flex-md-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; - } - .justify-content-md-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; - } - .justify-content-md-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; - } - .justify-content-md-center { - -ms-flex-pack: center !important; - justify-content: center !important; - } - .justify-content-md-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; - } - .justify-content-md-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; - } - .align-items-md-start { - -ms-flex-align: start !important; - align-items: flex-start !important; - } - .align-items-md-end { - -ms-flex-align: end !important; - align-items: flex-end !important; - } - .align-items-md-center { - -ms-flex-align: center !important; - align-items: center !important; - } - .align-items-md-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; - } - .align-items-md-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; - } - .align-content-md-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; - } - .align-content-md-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; - } - .align-content-md-center { - -ms-flex-line-pack: center !important; - align-content: center !important; - } - .align-content-md-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; - } - .align-content-md-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; - } - .align-content-md-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; - } - .align-self-md-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; - } - .align-self-md-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; - } - .align-self-md-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; - } - .align-self-md-center { - -ms-flex-item-align: center !important; - align-self: center !important; - } - .align-self-md-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; - } - .align-self-md-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; - } -} - -@media (min-width: 992px) { - .flex-lg-row { - -ms-flex-direction: row !important; - flex-direction: row !important; - } - .flex-lg-column { - -ms-flex-direction: column !important; - flex-direction: column !important; - } - .flex-lg-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; - } - .flex-lg-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; - } - .flex-lg-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; - } - .flex-lg-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; - } - .flex-lg-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; - } - .flex-lg-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; - } - .flex-lg-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; - } - .flex-lg-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; - } - .flex-lg-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; - } - .flex-lg-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; - } - .justify-content-lg-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; - } - .justify-content-lg-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; - } - .justify-content-lg-center { - -ms-flex-pack: center !important; - justify-content: center !important; - } - .justify-content-lg-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; - } - .justify-content-lg-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; - } - .align-items-lg-start { - -ms-flex-align: start !important; - align-items: flex-start !important; - } - .align-items-lg-end { - -ms-flex-align: end !important; - align-items: flex-end !important; - } - .align-items-lg-center { - -ms-flex-align: center !important; - align-items: center !important; - } - .align-items-lg-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; - } - .align-items-lg-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; - } - .align-content-lg-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; - } - .align-content-lg-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; - } - .align-content-lg-center { - -ms-flex-line-pack: center !important; - align-content: center !important; - } - .align-content-lg-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; - } - .align-content-lg-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; - } - .align-content-lg-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; - } - .align-self-lg-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; - } - .align-self-lg-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; - } - .align-self-lg-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; - } - .align-self-lg-center { - -ms-flex-item-align: center !important; - align-self: center !important; - } - .align-self-lg-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; - } - .align-self-lg-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; - } -} - -@media (min-width: 1280px) { - .flex-xl-row { - -ms-flex-direction: row !important; - flex-direction: row !important; - } - .flex-xl-column { - -ms-flex-direction: column !important; - flex-direction: column !important; - } - .flex-xl-row-reverse { - -ms-flex-direction: row-reverse !important; - flex-direction: row-reverse !important; - } - .flex-xl-column-reverse { - -ms-flex-direction: column-reverse !important; - flex-direction: column-reverse !important; - } - .flex-xl-wrap { - -ms-flex-wrap: wrap !important; - flex-wrap: wrap !important; - } - .flex-xl-nowrap { - -ms-flex-wrap: nowrap !important; - flex-wrap: nowrap !important; - } - .flex-xl-wrap-reverse { - -ms-flex-wrap: wrap-reverse !important; - flex-wrap: wrap-reverse !important; - } - .flex-xl-fill { - -ms-flex: 1 1 auto !important; - flex: 1 1 auto !important; - } - .flex-xl-grow-0 { - -ms-flex-positive: 0 !important; - flex-grow: 0 !important; - } - .flex-xl-grow-1 { - -ms-flex-positive: 1 !important; - flex-grow: 1 !important; - } - .flex-xl-shrink-0 { - -ms-flex-negative: 0 !important; - flex-shrink: 0 !important; - } - .flex-xl-shrink-1 { - -ms-flex-negative: 1 !important; - flex-shrink: 1 !important; - } - .justify-content-xl-start { - -ms-flex-pack: start !important; - justify-content: flex-start !important; - } - .justify-content-xl-end { - -ms-flex-pack: end !important; - justify-content: flex-end !important; - } - .justify-content-xl-center { - -ms-flex-pack: center !important; - justify-content: center !important; - } - .justify-content-xl-between { - -ms-flex-pack: justify !important; - justify-content: space-between !important; - } - .justify-content-xl-around { - -ms-flex-pack: distribute !important; - justify-content: space-around !important; - } - .align-items-xl-start { - -ms-flex-align: start !important; - align-items: flex-start !important; - } - .align-items-xl-end { - -ms-flex-align: end !important; - align-items: flex-end !important; - } - .align-items-xl-center { - -ms-flex-align: center !important; - align-items: center !important; - } - .align-items-xl-baseline { - -ms-flex-align: baseline !important; - align-items: baseline !important; - } - .align-items-xl-stretch { - -ms-flex-align: stretch !important; - align-items: stretch !important; - } - .align-content-xl-start { - -ms-flex-line-pack: start !important; - align-content: flex-start !important; - } - .align-content-xl-end { - -ms-flex-line-pack: end !important; - align-content: flex-end !important; - } - .align-content-xl-center { - -ms-flex-line-pack: center !important; - align-content: center !important; - } - .align-content-xl-between { - -ms-flex-line-pack: justify !important; - align-content: space-between !important; - } - .align-content-xl-around { - -ms-flex-line-pack: distribute !important; - align-content: space-around !important; - } - .align-content-xl-stretch { - -ms-flex-line-pack: stretch !important; - align-content: stretch !important; - } - .align-self-xl-auto { - -ms-flex-item-align: auto !important; - align-self: auto !important; - } - .align-self-xl-start { - -ms-flex-item-align: start !important; - align-self: flex-start !important; - } - .align-self-xl-end { - -ms-flex-item-align: end !important; - align-self: flex-end !important; - } - .align-self-xl-center { - -ms-flex-item-align: center !important; - align-self: center !important; - } - .align-self-xl-baseline { - -ms-flex-item-align: baseline !important; - align-self: baseline !important; - } - .align-self-xl-stretch { - -ms-flex-item-align: stretch !important; - align-self: stretch !important; - } -} - -.float-left { - float: right !important; -} - -.float-right { - float: left !important; -} - -.float-none { - float: none !important; -} - -@media (min-width: 576px) { - .float-sm-left { - float: right !important; - } - .float-sm-right { - float: left !important; - } - .float-sm-none { - float: none !important; - } -} - -@media (min-width: 768px) { - .float-md-left { - float: right !important; - } - .float-md-right { - float: left !important; - } - .float-md-none { - float: none !important; - } -} - -@media (min-width: 992px) { - .float-lg-left { - float: right !important; - } - .float-lg-right { - float: left !important; - } - .float-lg-none { - float: none !important; - } -} - -@media (min-width: 1280px) { - .float-xl-left { - float: right !important; - } - .float-xl-right { - float: left !important; - } - .float-xl-none { - float: none !important; - } -} - -.position-static { - position: static !important; -} - -.position-relative { - position: relative !important; -} - -.position-absolute { - position: absolute !important; -} - -.position-fixed { - position: fixed !important; -} - -.position-sticky { - position: -webkit-sticky !important; - position: sticky !important; -} - -.fixed-top { - position: fixed; - top: 0; - left: 0; - right: 0; - z-index: 1030; -} - -.fixed-bottom { - position: fixed; - left: 0; - bottom: 0; - right: 0; - z-index: 1030; -} - -@supports ((position: -webkit-sticky) or (position: sticky)) { - .sticky-top { - position: -webkit-sticky; - position: sticky; - top: 0; - z-index: 1020; - } -} - -.sr-only { - position: absolute; - width: 1px; - height: 1px; - padding: 0; - overflow: hidden; - clip: rect(0, 0, 0, 0); - white-space: nowrap; - border: 0; -} - -.sr-only-focusable:active, .sr-only-focusable:focus { - position: static; - width: auto; - height: auto; - overflow: visible; - clip: auto; - white-space: normal; -} - -.shadow-sm { - box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; -} - -.shadow { - box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; -} - -.shadow-lg { - box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important; -} - -.shadow-none { - box-shadow: none !important; -} - -.w-25 { - width: 25% !important; -} - -.w-50 { - width: 50% !important; -} - -.w-75 { - width: 75% !important; -} - -.w-100 { - width: 100% !important; -} - -.w-auto { - width: auto !important; -} - -.w-0 { - width: 0 !important; -} - -.w-1 { - width: 0.25rem !important; -} - -.w-2 { - width: 0.5rem !important; -} - -.w-3 { - width: 0.75rem !important; -} - -.w-4 { - width: 1rem !important; -} - -.w-5 { - width: 1.5rem !important; -} - -.w-6 { - width: 2rem !important; -} - -.w-7 { - width: 3rem !important; -} - -.w-8 { - width: 4rem !important; -} - -.w-9 { - width: 6rem !important; -} - -.h-25 { - height: 25% !important; -} - -.h-50 { - height: 50% !important; -} - -.h-75 { - height: 75% !important; -} - -.h-100 { - height: 100% !important; -} - -.h-auto { - height: auto !important; -} - -.h-0 { - height: 0 !important; -} - -.h-1 { - height: 0.25rem !important; -} - -.h-2 { - height: 0.5rem !important; -} - -.h-3 { - height: 0.75rem !important; -} - -.h-4 { - height: 1rem !important; -} - -.h-5 { - height: 1.5rem !important; -} - -.h-6 { - height: 2rem !important; -} - -.h-7 { - height: 3rem !important; -} - -.h-8 { - height: 4rem !important; -} - -.h-9 { - height: 6rem !important; -} - -.mw-100 { - max-width: 100% !important; -} - -.mh-100 { - max-height: 100% !important; -} - -.m-0 { - margin: 0 !important; -} - -.mt-0, -.my-0 { - margin-top: 0 !important; -} - -.mr-0, -.mx-0 { - margin-left: 0 !important; -} - -.mb-0, -.my-0 { - margin-bottom: 0 !important; -} - -.ml-0, -.mx-0 { - margin-right: 0 !important; -} - -.m-1 { - margin: 0.25rem !important; -} - -.mt-1, -.my-1 { - margin-top: 0.25rem !important; -} - -.mr-1, -.mx-1 { - margin-left: 0.25rem !important; -} - -.mb-1, -.my-1 { - margin-bottom: 0.25rem !important; -} - -.ml-1, -.mx-1 { - margin-right: 0.25rem !important; -} - -.m-2 { - margin: 0.5rem !important; -} - -.mt-2, -.my-2 { - margin-top: 0.5rem !important; -} - -.mr-2, -.mx-2 { - margin-left: 0.5rem !important; -} - -.mb-2, -.my-2 { - margin-bottom: 0.5rem !important; -} - -.ml-2, -.mx-2 { - margin-right: 0.5rem !important; -} - -.m-3 { - margin: 0.75rem !important; -} - -.mt-3, -.my-3 { - margin-top: 0.75rem !important; -} - -.mr-3, -.mx-3 { - margin-left: 0.75rem !important; -} - -.mb-3, -.my-3 { - margin-bottom: 0.75rem !important; -} - -.ml-3, -.mx-3 { - margin-right: 0.75rem !important; -} - -.m-4 { - margin: 1rem !important; -} - -.mt-4, -.my-4 { - margin-top: 1rem !important; -} - -.mr-4, -.mx-4 { - margin-left: 1rem !important; -} - -.mb-4, -.my-4 { - margin-bottom: 1rem !important; -} - -.ml-4, -.mx-4 { - margin-right: 1rem !important; -} - -.m-5 { - margin: 1.5rem !important; -} - -.mt-5, -.my-5 { - margin-top: 1.5rem !important; -} - -.mr-5, -.mx-5 { - margin-left: 1.5rem !important; -} - -.mb-5, -.my-5 { - margin-bottom: 1.5rem !important; -} - -.ml-5, -.mx-5 { - margin-right: 1.5rem !important; -} - -.m-6 { - margin: 2rem !important; -} - -.mt-6, -.my-6 { - margin-top: 2rem !important; -} - -.mr-6, -.mx-6 { - margin-left: 2rem !important; -} - -.mb-6, -.my-6 { - margin-bottom: 2rem !important; -} - -.ml-6, -.mx-6 { - margin-right: 2rem !important; -} - -.m-7 { - margin: 3rem !important; -} - -.mt-7, -.my-7 { - margin-top: 3rem !important; -} - -.mr-7, -.mx-7 { - margin-left: 3rem !important; -} - -.mb-7, -.my-7 { - margin-bottom: 3rem !important; -} - -.ml-7, -.mx-7 { - margin-right: 3rem !important; -} - -.m-8 { - margin: 4rem !important; -} - -.mt-8, -.my-8 { - margin-top: 4rem !important; -} - -.mr-8, -.mx-8 { - margin-left: 4rem !important; -} - -.mb-8, -.my-8 { - margin-bottom: 4rem !important; -} - -.ml-8, -.mx-8 { - margin-right: 4rem !important; -} - -.m-9 { - margin: 6rem !important; -} - -.mt-9, -.my-9 { - margin-top: 6rem !important; -} - -.mr-9, -.mx-9 { - margin-left: 6rem !important; -} - -.mb-9, -.my-9 { - margin-bottom: 6rem !important; -} - -.ml-9, -.mx-9 { - margin-right: 6rem !important; -} - -.p-0 { - padding: 0 !important; -} - -.pt-0, -.py-0 { - padding-top: 0 !important; -} - -.pr-0, -.px-0 { - padding-left: 0 !important; -} - -.pb-0, -.py-0 { - padding-bottom: 0 !important; -} - -.pl-0, -.px-0 { - padding-right: 0 !important; -} - -.p-1 { - padding: 0.25rem !important; -} - -.pt-1, -.py-1 { - padding-top: 0.25rem !important; -} - -.pr-1, -.px-1 { - padding-left: 0.25rem !important; -} - -.pb-1, -.py-1 { - padding-bottom: 0.25rem !important; -} - -.pl-1, -.px-1 { - padding-right: 0.25rem !important; -} - -.p-2 { - padding: 0.5rem !important; -} - -.pt-2, -.py-2 { - padding-top: 0.5rem !important; -} - -.pr-2, -.px-2 { - padding-left: 0.5rem !important; -} - -.pb-2, -.py-2 { - padding-bottom: 0.5rem !important; -} - -.pl-2, -.px-2 { - padding-right: 0.5rem !important; -} - -.p-3 { - padding: 0.75rem !important; -} - -.pt-3, -.py-3 { - padding-top: 0.75rem !important; -} - -.pr-3, -.px-3 { - padding-left: 0.75rem !important; -} - -.pb-3, -.py-3 { - padding-bottom: 0.75rem !important; -} - -.pl-3, -.px-3 { - padding-right: 0.75rem !important; -} - -.p-4 { - padding: 1rem !important; -} - -.pt-4, -.py-4 { - padding-top: 1rem !important; -} - -.pr-4, -.px-4 { - padding-left: 1rem !important; -} - -.pb-4, -.py-4 { - padding-bottom: 1rem !important; -} - -.pl-4, -.px-4 { - padding-right: 1rem !important; -} - -.p-5 { - padding: 1.5rem !important; -} - -.pt-5, -.py-5 { - padding-top: 1.5rem !important; -} - -.pr-5, -.px-5 { - padding-left: 1.5rem !important; -} - -.pb-5, -.py-5 { - padding-bottom: 1.5rem !important; -} - -.pl-5, -.px-5 { - padding-right: 1.5rem !important; -} - -.p-6 { - padding: 2rem !important; -} - -.pt-6, -.py-6 { - padding-top: 2rem !important; -} - -.pr-6, -.px-6 { - padding-left: 2rem !important; -} - -.pb-6, -.py-6 { - padding-bottom: 2rem !important; -} - -.pl-6, -.px-6 { - padding-right: 2rem !important; -} - -.p-7 { - padding: 3rem !important; -} - -.pt-7, -.py-7 { - padding-top: 3rem !important; -} - -.pr-7, -.px-7 { - padding-left: 3rem !important; -} - -.pb-7, -.py-7 { - padding-bottom: 3rem !important; -} - -.pl-7, -.px-7 { - padding-right: 3rem !important; -} - -.p-8 { - padding: 4rem !important; -} - -.pt-8, -.py-8 { - padding-top: 4rem !important; -} - -.pr-8, -.px-8 { - padding-left: 4rem !important; -} - -.pb-8, -.py-8 { - padding-bottom: 4rem !important; -} - -.pl-8, -.px-8 { - padding-right: 4rem !important; -} - -.p-9 { - padding: 6rem !important; -} - -.pt-9, -.py-9 { - padding-top: 6rem !important; -} - -.pr-9, -.px-9 { - padding-left: 6rem !important; -} - -.pb-9, -.py-9 { - padding-bottom: 6rem !important; -} - -.pl-9, -.px-9 { - padding-right: 6rem !important; -} - -.m-auto { - margin: auto !important; -} - -.mt-auto, -.my-auto { - margin-top: auto !important; -} - -.mr-auto, -.mx-auto { - margin-left: auto !important; -} - -.mb-auto, -.my-auto { - margin-bottom: auto !important; -} - -.ml-auto, -.mx-auto { - margin-right: auto !important; -} - -@media (min-width: 576px) { - .m-sm-0 { - margin: 0 !important; - } - .mt-sm-0, - .my-sm-0 { - margin-top: 0 !important; - } - .mr-sm-0, - .mx-sm-0 { - margin-left: 0 !important; - } - .mb-sm-0, - .my-sm-0 { - margin-bottom: 0 !important; - } - .ml-sm-0, - .mx-sm-0 { - margin-right: 0 !important; - } - .m-sm-1 { - margin: 0.25rem !important; - } - .mt-sm-1, - .my-sm-1 { - margin-top: 0.25rem !important; - } - .mr-sm-1, - .mx-sm-1 { - margin-left: 0.25rem !important; - } - .mb-sm-1, - .my-sm-1 { - margin-bottom: 0.25rem !important; - } - .ml-sm-1, - .mx-sm-1 { - margin-right: 0.25rem !important; - } - .m-sm-2 { - margin: 0.5rem !important; - } - .mt-sm-2, - .my-sm-2 { - margin-top: 0.5rem !important; - } - .mr-sm-2, - .mx-sm-2 { - margin-left: 0.5rem !important; - } - .mb-sm-2, - .my-sm-2 { - margin-bottom: 0.5rem !important; - } - .ml-sm-2, - .mx-sm-2 { - margin-right: 0.5rem !important; - } - .m-sm-3 { - margin: 0.75rem !important; - } - .mt-sm-3, - .my-sm-3 { - margin-top: 0.75rem !important; - } - .mr-sm-3, - .mx-sm-3 { - margin-left: 0.75rem !important; - } - .mb-sm-3, - .my-sm-3 { - margin-bottom: 0.75rem !important; - } - .ml-sm-3, - .mx-sm-3 { - margin-right: 0.75rem !important; - } - .m-sm-4 { - margin: 1rem !important; - } - .mt-sm-4, - .my-sm-4 { - margin-top: 1rem !important; - } - .mr-sm-4, - .mx-sm-4 { - margin-left: 1rem !important; - } - .mb-sm-4, - .my-sm-4 { - margin-bottom: 1rem !important; - } - .ml-sm-4, - .mx-sm-4 { - margin-right: 1rem !important; - } - .m-sm-5 { - margin: 1.5rem !important; - } - .mt-sm-5, - .my-sm-5 { - margin-top: 1.5rem !important; - } - .mr-sm-5, - .mx-sm-5 { - margin-left: 1.5rem !important; - } - .mb-sm-5, - .my-sm-5 { - margin-bottom: 1.5rem !important; - } - .ml-sm-5, - .mx-sm-5 { - margin-right: 1.5rem !important; - } - .m-sm-6 { - margin: 2rem !important; - } - .mt-sm-6, - .my-sm-6 { - margin-top: 2rem !important; - } - .mr-sm-6, - .mx-sm-6 { - margin-left: 2rem !important; - } - .mb-sm-6, - .my-sm-6 { - margin-bottom: 2rem !important; - } - .ml-sm-6, - .mx-sm-6 { - margin-right: 2rem !important; - } - .m-sm-7 { - margin: 3rem !important; - } - .mt-sm-7, - .my-sm-7 { - margin-top: 3rem !important; - } - .mr-sm-7, - .mx-sm-7 { - margin-left: 3rem !important; - } - .mb-sm-7, - .my-sm-7 { - margin-bottom: 3rem !important; - } - .ml-sm-7, - .mx-sm-7 { - margin-right: 3rem !important; - } - .m-sm-8 { - margin: 4rem !important; - } - .mt-sm-8, - .my-sm-8 { - margin-top: 4rem !important; - } - .mr-sm-8, - .mx-sm-8 { - margin-left: 4rem !important; - } - .mb-sm-8, - .my-sm-8 { - margin-bottom: 4rem !important; - } - .ml-sm-8, - .mx-sm-8 { - margin-right: 4rem !important; - } - .m-sm-9 { - margin: 6rem !important; - } - .mt-sm-9, - .my-sm-9 { - margin-top: 6rem !important; - } - .mr-sm-9, - .mx-sm-9 { - margin-left: 6rem !important; - } - .mb-sm-9, - .my-sm-9 { - margin-bottom: 6rem !important; - } - .ml-sm-9, - .mx-sm-9 { - margin-right: 6rem !important; - } - .p-sm-0 { - padding: 0 !important; - } - .pt-sm-0, - .py-sm-0 { - padding-top: 0 !important; - } - .pr-sm-0, - .px-sm-0 { - padding-left: 0 !important; - } - .pb-sm-0, - .py-sm-0 { - padding-bottom: 0 !important; - } - .pl-sm-0, - .px-sm-0 { - padding-right: 0 !important; - } - .p-sm-1 { - padding: 0.25rem !important; - } - .pt-sm-1, - .py-sm-1 { - padding-top: 0.25rem !important; - } - .pr-sm-1, - .px-sm-1 { - padding-left: 0.25rem !important; - } - .pb-sm-1, - .py-sm-1 { - padding-bottom: 0.25rem !important; - } - .pl-sm-1, - .px-sm-1 { - padding-right: 0.25rem !important; - } - .p-sm-2 { - padding: 0.5rem !important; - } - .pt-sm-2, - .py-sm-2 { - padding-top: 0.5rem !important; - } - .pr-sm-2, - .px-sm-2 { - padding-left: 0.5rem !important; - } - .pb-sm-2, - .py-sm-2 { - padding-bottom: 0.5rem !important; - } - .pl-sm-2, - .px-sm-2 { - padding-right: 0.5rem !important; - } - .p-sm-3 { - padding: 0.75rem !important; - } - .pt-sm-3, - .py-sm-3 { - padding-top: 0.75rem !important; - } - .pr-sm-3, - .px-sm-3 { - padding-left: 0.75rem !important; - } - .pb-sm-3, - .py-sm-3 { - padding-bottom: 0.75rem !important; - } - .pl-sm-3, - .px-sm-3 { - padding-right: 0.75rem !important; - } - .p-sm-4 { - padding: 1rem !important; - } - .pt-sm-4, - .py-sm-4 { - padding-top: 1rem !important; - } - .pr-sm-4, - .px-sm-4 { - padding-left: 1rem !important; - } - .pb-sm-4, - .py-sm-4 { - padding-bottom: 1rem !important; - } - .pl-sm-4, - .px-sm-4 { - padding-right: 1rem !important; - } - .p-sm-5 { - padding: 1.5rem !important; - } - .pt-sm-5, - .py-sm-5 { - padding-top: 1.5rem !important; - } - .pr-sm-5, - .px-sm-5 { - padding-left: 1.5rem !important; - } - .pb-sm-5, - .py-sm-5 { - padding-bottom: 1.5rem !important; - } - .pl-sm-5, - .px-sm-5 { - padding-right: 1.5rem !important; - } - .p-sm-6 { - padding: 2rem !important; - } - .pt-sm-6, - .py-sm-6 { - padding-top: 2rem !important; - } - .pr-sm-6, - .px-sm-6 { - padding-left: 2rem !important; - } - .pb-sm-6, - .py-sm-6 { - padding-bottom: 2rem !important; - } - .pl-sm-6, - .px-sm-6 { - padding-right: 2rem !important; - } - .p-sm-7 { - padding: 3rem !important; - } - .pt-sm-7, - .py-sm-7 { - padding-top: 3rem !important; - } - .pr-sm-7, - .px-sm-7 { - padding-left: 3rem !important; - } - .pb-sm-7, - .py-sm-7 { - padding-bottom: 3rem !important; - } - .pl-sm-7, - .px-sm-7 { - padding-right: 3rem !important; - } - .p-sm-8 { - padding: 4rem !important; - } - .pt-sm-8, - .py-sm-8 { - padding-top: 4rem !important; - } - .pr-sm-8, - .px-sm-8 { - padding-left: 4rem !important; - } - .pb-sm-8, - .py-sm-8 { - padding-bottom: 4rem !important; - } - .pl-sm-8, - .px-sm-8 { - padding-right: 4rem !important; - } - .p-sm-9 { - padding: 6rem !important; - } - .pt-sm-9, - .py-sm-9 { - padding-top: 6rem !important; - } - .pr-sm-9, - .px-sm-9 { - padding-left: 6rem !important; - } - .pb-sm-9, - .py-sm-9 { - padding-bottom: 6rem !important; - } - .pl-sm-9, - .px-sm-9 { - padding-right: 6rem !important; - } - .m-sm-auto { - margin: auto !important; - } - .mt-sm-auto, - .my-sm-auto { - margin-top: auto !important; - } - .mr-sm-auto, - .mx-sm-auto { - margin-left: auto !important; - } - .mb-sm-auto, - .my-sm-auto { - margin-bottom: auto !important; - } - .ml-sm-auto, - .mx-sm-auto { - margin-right: auto !important; - } -} - -@media (min-width: 768px) { - .m-md-0 { - margin: 0 !important; - } - .mt-md-0, - .my-md-0 { - margin-top: 0 !important; - } - .mr-md-0, - .mx-md-0 { - margin-left: 0 !important; - } - .mb-md-0, - .my-md-0 { - margin-bottom: 0 !important; - } - .ml-md-0, - .mx-md-0 { - margin-right: 0 !important; - } - .m-md-1 { - margin: 0.25rem !important; - } - .mt-md-1, - .my-md-1 { - margin-top: 0.25rem !important; - } - .mr-md-1, - .mx-md-1 { - margin-left: 0.25rem !important; - } - .mb-md-1, - .my-md-1 { - margin-bottom: 0.25rem !important; - } - .ml-md-1, - .mx-md-1 { - margin-right: 0.25rem !important; - } - .m-md-2 { - margin: 0.5rem !important; - } - .mt-md-2, - .my-md-2 { - margin-top: 0.5rem !important; - } - .mr-md-2, - .mx-md-2 { - margin-left: 0.5rem !important; - } - .mb-md-2, - .my-md-2 { - margin-bottom: 0.5rem !important; - } - .ml-md-2, - .mx-md-2 { - margin-right: 0.5rem !important; - } - .m-md-3 { - margin: 0.75rem !important; - } - .mt-md-3, - .my-md-3 { - margin-top: 0.75rem !important; - } - .mr-md-3, - .mx-md-3 { - margin-left: 0.75rem !important; - } - .mb-md-3, - .my-md-3 { - margin-bottom: 0.75rem !important; - } - .ml-md-3, - .mx-md-3 { - margin-right: 0.75rem !important; - } - .m-md-4 { - margin: 1rem !important; - } - .mt-md-4, - .my-md-4 { - margin-top: 1rem !important; - } - .mr-md-4, - .mx-md-4 { - margin-left: 1rem !important; - } - .mb-md-4, - .my-md-4 { - margin-bottom: 1rem !important; - } - .ml-md-4, - .mx-md-4 { - margin-right: 1rem !important; - } - .m-md-5 { - margin: 1.5rem !important; - } - .mt-md-5, - .my-md-5 { - margin-top: 1.5rem !important; - } - .mr-md-5, - .mx-md-5 { - margin-left: 1.5rem !important; - } - .mb-md-5, - .my-md-5 { - margin-bottom: 1.5rem !important; - } - .ml-md-5, - .mx-md-5 { - margin-right: 1.5rem !important; - } - .m-md-6 { - margin: 2rem !important; - } - .mt-md-6, - .my-md-6 { - margin-top: 2rem !important; - } - .mr-md-6, - .mx-md-6 { - margin-left: 2rem !important; - } - .mb-md-6, - .my-md-6 { - margin-bottom: 2rem !important; - } - .ml-md-6, - .mx-md-6 { - margin-right: 2rem !important; - } - .m-md-7 { - margin: 3rem !important; - } - .mt-md-7, - .my-md-7 { - margin-top: 3rem !important; - } - .mr-md-7, - .mx-md-7 { - margin-left: 3rem !important; - } - .mb-md-7, - .my-md-7 { - margin-bottom: 3rem !important; - } - .ml-md-7, - .mx-md-7 { - margin-right: 3rem !important; - } - .m-md-8 { - margin: 4rem !important; - } - .mt-md-8, - .my-md-8 { - margin-top: 4rem !important; - } - .mr-md-8, - .mx-md-8 { - margin-left: 4rem !important; - } - .mb-md-8, - .my-md-8 { - margin-bottom: 4rem !important; - } - .ml-md-8, - .mx-md-8 { - margin-right: 4rem !important; - } - .m-md-9 { - margin: 6rem !important; - } - .mt-md-9, - .my-md-9 { - margin-top: 6rem !important; - } - .mr-md-9, - .mx-md-9 { - margin-left: 6rem !important; - } - .mb-md-9, - .my-md-9 { - margin-bottom: 6rem !important; - } - .ml-md-9, - .mx-md-9 { - margin-right: 6rem !important; - } - .p-md-0 { - padding: 0 !important; - } - .pt-md-0, - .py-md-0 { - padding-top: 0 !important; - } - .pr-md-0, - .px-md-0 { - padding-left: 0 !important; - } - .pb-md-0, - .py-md-0 { - padding-bottom: 0 !important; - } - .pl-md-0, - .px-md-0 { - padding-right: 0 !important; - } - .p-md-1 { - padding: 0.25rem !important; - } - .pt-md-1, - .py-md-1 { - padding-top: 0.25rem !important; - } - .pr-md-1, - .px-md-1 { - padding-left: 0.25rem !important; - } - .pb-md-1, - .py-md-1 { - padding-bottom: 0.25rem !important; - } - .pl-md-1, - .px-md-1 { - padding-right: 0.25rem !important; - } - .p-md-2 { - padding: 0.5rem !important; - } - .pt-md-2, - .py-md-2 { - padding-top: 0.5rem !important; - } - .pr-md-2, - .px-md-2 { - padding-left: 0.5rem !important; - } - .pb-md-2, - .py-md-2 { - padding-bottom: 0.5rem !important; - } - .pl-md-2, - .px-md-2 { - padding-right: 0.5rem !important; - } - .p-md-3 { - padding: 0.75rem !important; - } - .pt-md-3, - .py-md-3 { - padding-top: 0.75rem !important; - } - .pr-md-3, - .px-md-3 { - padding-left: 0.75rem !important; - } - .pb-md-3, - .py-md-3 { - padding-bottom: 0.75rem !important; - } - .pl-md-3, - .px-md-3 { - padding-right: 0.75rem !important; - } - .p-md-4 { - padding: 1rem !important; - } - .pt-md-4, - .py-md-4 { - padding-top: 1rem !important; - } - .pr-md-4, - .px-md-4 { - padding-left: 1rem !important; - } - .pb-md-4, - .py-md-4 { - padding-bottom: 1rem !important; - } - .pl-md-4, - .px-md-4 { - padding-right: 1rem !important; - } - .p-md-5 { - padding: 1.5rem !important; - } - .pt-md-5, - .py-md-5 { - padding-top: 1.5rem !important; - } - .pr-md-5, - .px-md-5 { - padding-left: 1.5rem !important; - } - .pb-md-5, - .py-md-5 { - padding-bottom: 1.5rem !important; - } - .pl-md-5, - .px-md-5 { - padding-right: 1.5rem !important; - } - .p-md-6 { - padding: 2rem !important; - } - .pt-md-6, - .py-md-6 { - padding-top: 2rem !important; - } - .pr-md-6, - .px-md-6 { - padding-left: 2rem !important; - } - .pb-md-6, - .py-md-6 { - padding-bottom: 2rem !important; - } - .pl-md-6, - .px-md-6 { - padding-right: 2rem !important; - } - .p-md-7 { - padding: 3rem !important; - } - .pt-md-7, - .py-md-7 { - padding-top: 3rem !important; - } - .pr-md-7, - .px-md-7 { - padding-left: 3rem !important; - } - .pb-md-7, - .py-md-7 { - padding-bottom: 3rem !important; - } - .pl-md-7, - .px-md-7 { - padding-right: 3rem !important; - } - .p-md-8 { - padding: 4rem !important; - } - .pt-md-8, - .py-md-8 { - padding-top: 4rem !important; - } - .pr-md-8, - .px-md-8 { - padding-left: 4rem !important; - } - .pb-md-8, - .py-md-8 { - padding-bottom: 4rem !important; - } - .pl-md-8, - .px-md-8 { - padding-right: 4rem !important; - } - .p-md-9 { - padding: 6rem !important; - } - .pt-md-9, - .py-md-9 { - padding-top: 6rem !important; - } - .pr-md-9, - .px-md-9 { - padding-left: 6rem !important; - } - .pb-md-9, - .py-md-9 { - padding-bottom: 6rem !important; - } - .pl-md-9, - .px-md-9 { - padding-right: 6rem !important; - } - .m-md-auto { - margin: auto !important; - } - .mt-md-auto, - .my-md-auto { - margin-top: auto !important; - } - .mr-md-auto, - .mx-md-auto { - margin-left: auto !important; - } - .mb-md-auto, - .my-md-auto { - margin-bottom: auto !important; - } - .ml-md-auto, - .mx-md-auto { - margin-right: auto !important; - } -} - -@media (min-width: 992px) { - .m-lg-0 { - margin: 0 !important; - } - .mt-lg-0, - .my-lg-0 { - margin-top: 0 !important; - } - .mr-lg-0, - .mx-lg-0 { - margin-left: 0 !important; - } - .mb-lg-0, - .my-lg-0 { - margin-bottom: 0 !important; - } - .ml-lg-0, - .mx-lg-0 { - margin-right: 0 !important; - } - .m-lg-1 { - margin: 0.25rem !important; - } - .mt-lg-1, - .my-lg-1 { - margin-top: 0.25rem !important; - } - .mr-lg-1, - .mx-lg-1 { - margin-left: 0.25rem !important; - } - .mb-lg-1, - .my-lg-1 { - margin-bottom: 0.25rem !important; - } - .ml-lg-1, - .mx-lg-1 { - margin-right: 0.25rem !important; - } - .m-lg-2 { - margin: 0.5rem !important; - } - .mt-lg-2, - .my-lg-2 { - margin-top: 0.5rem !important; - } - .mr-lg-2, - .mx-lg-2 { - margin-left: 0.5rem !important; - } - .mb-lg-2, - .my-lg-2 { - margin-bottom: 0.5rem !important; - } - .ml-lg-2, - .mx-lg-2 { - margin-right: 0.5rem !important; - } - .m-lg-3 { - margin: 0.75rem !important; - } - .mt-lg-3, - .my-lg-3 { - margin-top: 0.75rem !important; - } - .mr-lg-3, - .mx-lg-3 { - margin-left: 0.75rem !important; - } - .mb-lg-3, - .my-lg-3 { - margin-bottom: 0.75rem !important; - } - .ml-lg-3, - .mx-lg-3 { - margin-right: 0.75rem !important; - } - .m-lg-4 { - margin: 1rem !important; - } - .mt-lg-4, - .my-lg-4 { - margin-top: 1rem !important; - } - .mr-lg-4, - .mx-lg-4 { - margin-left: 1rem !important; - } - .mb-lg-4, - .my-lg-4 { - margin-bottom: 1rem !important; - } - .ml-lg-4, - .mx-lg-4 { - margin-right: 1rem !important; - } - .m-lg-5 { - margin: 1.5rem !important; - } - .mt-lg-5, - .my-lg-5 { - margin-top: 1.5rem !important; - } - .mr-lg-5, - .mx-lg-5 { - margin-left: 1.5rem !important; - } - .mb-lg-5, - .my-lg-5 { - margin-bottom: 1.5rem !important; - } - .ml-lg-5, - .mx-lg-5 { - margin-right: 1.5rem !important; - } - .m-lg-6 { - margin: 2rem !important; - } - .mt-lg-6, - .my-lg-6 { - margin-top: 2rem !important; - } - .mr-lg-6, - .mx-lg-6 { - margin-left: 2rem !important; - } - .mb-lg-6, - .my-lg-6 { - margin-bottom: 2rem !important; - } - .ml-lg-6, - .mx-lg-6 { - margin-right: 2rem !important; - } - .m-lg-7 { - margin: 3rem !important; - } - .mt-lg-7, - .my-lg-7 { - margin-top: 3rem !important; - } - .mr-lg-7, - .mx-lg-7 { - margin-left: 3rem !important; - } - .mb-lg-7, - .my-lg-7 { - margin-bottom: 3rem !important; - } - .ml-lg-7, - .mx-lg-7 { - margin-right: 3rem !important; - } - .m-lg-8 { - margin: 4rem !important; - } - .mt-lg-8, - .my-lg-8 { - margin-top: 4rem !important; - } - .mr-lg-8, - .mx-lg-8 { - margin-left: 4rem !important; - } - .mb-lg-8, - .my-lg-8 { - margin-bottom: 4rem !important; - } - .ml-lg-8, - .mx-lg-8 { - margin-right: 4rem !important; - } - .m-lg-9 { - margin: 6rem !important; - } - .mt-lg-9, - .my-lg-9 { - margin-top: 6rem !important; - } - .mr-lg-9, - .mx-lg-9 { - margin-left: 6rem !important; - } - .mb-lg-9, - .my-lg-9 { - margin-bottom: 6rem !important; - } - .ml-lg-9, - .mx-lg-9 { - margin-right: 6rem !important; - } - .p-lg-0 { - padding: 0 !important; - } - .pt-lg-0, - .py-lg-0 { - padding-top: 0 !important; - } - .pr-lg-0, - .px-lg-0 { - padding-left: 0 !important; - } - .pb-lg-0, - .py-lg-0 { - padding-bottom: 0 !important; - } - .pl-lg-0, - .px-lg-0 { - padding-right: 0 !important; - } - .p-lg-1 { - padding: 0.25rem !important; - } - .pt-lg-1, - .py-lg-1 { - padding-top: 0.25rem !important; - } - .pr-lg-1, - .px-lg-1 { - padding-left: 0.25rem !important; - } - .pb-lg-1, - .py-lg-1 { - padding-bottom: 0.25rem !important; - } - .pl-lg-1, - .px-lg-1 { - padding-right: 0.25rem !important; - } - .p-lg-2 { - padding: 0.5rem !important; - } - .pt-lg-2, - .py-lg-2 { - padding-top: 0.5rem !important; - } - .pr-lg-2, - .px-lg-2 { - padding-left: 0.5rem !important; - } - .pb-lg-2, - .py-lg-2 { - padding-bottom: 0.5rem !important; - } - .pl-lg-2, - .px-lg-2 { - padding-right: 0.5rem !important; - } - .p-lg-3 { - padding: 0.75rem !important; - } - .pt-lg-3, - .py-lg-3 { - padding-top: 0.75rem !important; - } - .pr-lg-3, - .px-lg-3 { - padding-left: 0.75rem !important; - } - .pb-lg-3, - .py-lg-3 { - padding-bottom: 0.75rem !important; - } - .pl-lg-3, - .px-lg-3 { - padding-right: 0.75rem !important; - } - .p-lg-4 { - padding: 1rem !important; - } - .pt-lg-4, - .py-lg-4 { - padding-top: 1rem !important; - } - .pr-lg-4, - .px-lg-4 { - padding-left: 1rem !important; - } - .pb-lg-4, - .py-lg-4 { - padding-bottom: 1rem !important; - } - .pl-lg-4, - .px-lg-4 { - padding-right: 1rem !important; - } - .p-lg-5 { - padding: 1.5rem !important; - } - .pt-lg-5, - .py-lg-5 { - padding-top: 1.5rem !important; - } - .pr-lg-5, - .px-lg-5 { - padding-left: 1.5rem !important; - } - .pb-lg-5, - .py-lg-5 { - padding-bottom: 1.5rem !important; - } - .pl-lg-5, - .px-lg-5 { - padding-right: 1.5rem !important; - } - .p-lg-6 { - padding: 2rem !important; - } - .pt-lg-6, - .py-lg-6 { - padding-top: 2rem !important; - } - .pr-lg-6, - .px-lg-6 { - padding-left: 2rem !important; - } - .pb-lg-6, - .py-lg-6 { - padding-bottom: 2rem !important; - } - .pl-lg-6, - .px-lg-6 { - padding-right: 2rem !important; - } - .p-lg-7 { - padding: 3rem !important; - } - .pt-lg-7, - .py-lg-7 { - padding-top: 3rem !important; - } - .pr-lg-7, - .px-lg-7 { - padding-left: 3rem !important; - } - .pb-lg-7, - .py-lg-7 { - padding-bottom: 3rem !important; - } - .pl-lg-7, - .px-lg-7 { - padding-right: 3rem !important; - } - .p-lg-8 { - padding: 4rem !important; - } - .pt-lg-8, - .py-lg-8 { - padding-top: 4rem !important; - } - .pr-lg-8, - .px-lg-8 { - padding-left: 4rem !important; - } - .pb-lg-8, - .py-lg-8 { - padding-bottom: 4rem !important; - } - .pl-lg-8, - .px-lg-8 { - padding-right: 4rem !important; - } - .p-lg-9 { - padding: 6rem !important; - } - .pt-lg-9, - .py-lg-9 { - padding-top: 6rem !important; - } - .pr-lg-9, - .px-lg-9 { - padding-left: 6rem !important; - } - .pb-lg-9, - .py-lg-9 { - padding-bottom: 6rem !important; - } - .pl-lg-9, - .px-lg-9 { - padding-right: 6rem !important; - } - .m-lg-auto { - margin: auto !important; - } - .mt-lg-auto, - .my-lg-auto { - margin-top: auto !important; - } - .mr-lg-auto, - .mx-lg-auto { - margin-left: auto !important; - } - .mb-lg-auto, - .my-lg-auto { - margin-bottom: auto !important; - } - .ml-lg-auto, - .mx-lg-auto { - margin-right: auto !important; - } -} - -@media (min-width: 1280px) { - .m-xl-0 { - margin: 0 !important; - } - .mt-xl-0, - .my-xl-0 { - margin-top: 0 !important; - } - .mr-xl-0, - .mx-xl-0 { - margin-left: 0 !important; - } - .mb-xl-0, - .my-xl-0 { - margin-bottom: 0 !important; - } - .ml-xl-0, - .mx-xl-0 { - margin-right: 0 !important; - } - .m-xl-1 { - margin: 0.25rem !important; - } - .mt-xl-1, - .my-xl-1 { - margin-top: 0.25rem !important; - } - .mr-xl-1, - .mx-xl-1 { - margin-left: 0.25rem !important; - } - .mb-xl-1, - .my-xl-1 { - margin-bottom: 0.25rem !important; - } - .ml-xl-1, - .mx-xl-1 { - margin-right: 0.25rem !important; - } - .m-xl-2 { - margin: 0.5rem !important; - } - .mt-xl-2, - .my-xl-2 { - margin-top: 0.5rem !important; - } - .mr-xl-2, - .mx-xl-2 { - margin-left: 0.5rem !important; - } - .mb-xl-2, - .my-xl-2 { - margin-bottom: 0.5rem !important; - } - .ml-xl-2, - .mx-xl-2 { - margin-right: 0.5rem !important; - } - .m-xl-3 { - margin: 0.75rem !important; - } - .mt-xl-3, - .my-xl-3 { - margin-top: 0.75rem !important; - } - .mr-xl-3, - .mx-xl-3 { - margin-left: 0.75rem !important; - } - .mb-xl-3, - .my-xl-3 { - margin-bottom: 0.75rem !important; - } - .ml-xl-3, - .mx-xl-3 { - margin-right: 0.75rem !important; - } - .m-xl-4 { - margin: 1rem !important; - } - .mt-xl-4, - .my-xl-4 { - margin-top: 1rem !important; - } - .mr-xl-4, - .mx-xl-4 { - margin-left: 1rem !important; - } - .mb-xl-4, - .my-xl-4 { - margin-bottom: 1rem !important; - } - .ml-xl-4, - .mx-xl-4 { - margin-right: 1rem !important; - } - .m-xl-5 { - margin: 1.5rem !important; - } - .mt-xl-5, - .my-xl-5 { - margin-top: 1.5rem !important; - } - .mr-xl-5, - .mx-xl-5 { - margin-left: 1.5rem !important; - } - .mb-xl-5, - .my-xl-5 { - margin-bottom: 1.5rem !important; - } - .ml-xl-5, - .mx-xl-5 { - margin-right: 1.5rem !important; - } - .m-xl-6 { - margin: 2rem !important; - } - .mt-xl-6, - .my-xl-6 { - margin-top: 2rem !important; - } - .mr-xl-6, - .mx-xl-6 { - margin-left: 2rem !important; - } - .mb-xl-6, - .my-xl-6 { - margin-bottom: 2rem !important; - } - .ml-xl-6, - .mx-xl-6 { - margin-right: 2rem !important; - } - .m-xl-7 { - margin: 3rem !important; - } - .mt-xl-7, - .my-xl-7 { - margin-top: 3rem !important; - } - .mr-xl-7, - .mx-xl-7 { - margin-left: 3rem !important; - } - .mb-xl-7, - .my-xl-7 { - margin-bottom: 3rem !important; - } - .ml-xl-7, - .mx-xl-7 { - margin-right: 3rem !important; - } - .m-xl-8 { - margin: 4rem !important; - } - .mt-xl-8, - .my-xl-8 { - margin-top: 4rem !important; - } - .mr-xl-8, - .mx-xl-8 { - margin-left: 4rem !important; - } - .mb-xl-8, - .my-xl-8 { - margin-bottom: 4rem !important; - } - .ml-xl-8, - .mx-xl-8 { - margin-right: 4rem !important; - } - .m-xl-9 { - margin: 6rem !important; - } - .mt-xl-9, - .my-xl-9 { - margin-top: 6rem !important; - } - .mr-xl-9, - .mx-xl-9 { - margin-left: 6rem !important; - } - .mb-xl-9, - .my-xl-9 { - margin-bottom: 6rem !important; - } - .ml-xl-9, - .mx-xl-9 { - margin-right: 6rem !important; - } - .p-xl-0 { - padding: 0 !important; - } - .pt-xl-0, - .py-xl-0 { - padding-top: 0 !important; - } - .pr-xl-0, - .px-xl-0 { - padding-left: 0 !important; - } - .pb-xl-0, - .py-xl-0 { - padding-bottom: 0 !important; - } - .pl-xl-0, - .px-xl-0 { - padding-right: 0 !important; - } - .p-xl-1 { - padding: 0.25rem !important; - } - .pt-xl-1, - .py-xl-1 { - padding-top: 0.25rem !important; - } - .pr-xl-1, - .px-xl-1 { - padding-left: 0.25rem !important; - } - .pb-xl-1, - .py-xl-1 { - padding-bottom: 0.25rem !important; - } - .pl-xl-1, - .px-xl-1 { - padding-right: 0.25rem !important; - } - .p-xl-2 { - padding: 0.5rem !important; - } - .pt-xl-2, - .py-xl-2 { - padding-top: 0.5rem !important; - } - .pr-xl-2, - .px-xl-2 { - padding-left: 0.5rem !important; - } - .pb-xl-2, - .py-xl-2 { - padding-bottom: 0.5rem !important; - } - .pl-xl-2, - .px-xl-2 { - padding-right: 0.5rem !important; - } - .p-xl-3 { - padding: 0.75rem !important; - } - .pt-xl-3, - .py-xl-3 { - padding-top: 0.75rem !important; - } - .pr-xl-3, - .px-xl-3 { - padding-left: 0.75rem !important; - } - .pb-xl-3, - .py-xl-3 { - padding-bottom: 0.75rem !important; - } - .pl-xl-3, - .px-xl-3 { - padding-right: 0.75rem !important; - } - .p-xl-4 { - padding: 1rem !important; - } - .pt-xl-4, - .py-xl-4 { - padding-top: 1rem !important; - } - .pr-xl-4, - .px-xl-4 { - padding-left: 1rem !important; - } - .pb-xl-4, - .py-xl-4 { - padding-bottom: 1rem !important; - } - .pl-xl-4, - .px-xl-4 { - padding-right: 1rem !important; - } - .p-xl-5 { - padding: 1.5rem !important; - } - .pt-xl-5, - .py-xl-5 { - padding-top: 1.5rem !important; - } - .pr-xl-5, - .px-xl-5 { - padding-left: 1.5rem !important; - } - .pb-xl-5, - .py-xl-5 { - padding-bottom: 1.5rem !important; - } - .pl-xl-5, - .px-xl-5 { - padding-right: 1.5rem !important; - } - .p-xl-6 { - padding: 2rem !important; - } - .pt-xl-6, - .py-xl-6 { - padding-top: 2rem !important; - } - .pr-xl-6, - .px-xl-6 { - padding-left: 2rem !important; - } - .pb-xl-6, - .py-xl-6 { - padding-bottom: 2rem !important; - } - .pl-xl-6, - .px-xl-6 { - padding-right: 2rem !important; - } - .p-xl-7 { - padding: 3rem !important; - } - .pt-xl-7, - .py-xl-7 { - padding-top: 3rem !important; - } - .pr-xl-7, - .px-xl-7 { - padding-left: 3rem !important; - } - .pb-xl-7, - .py-xl-7 { - padding-bottom: 3rem !important; - } - .pl-xl-7, - .px-xl-7 { - padding-right: 3rem !important; - } - .p-xl-8 { - padding: 4rem !important; - } - .pt-xl-8, - .py-xl-8 { - padding-top: 4rem !important; - } - .pr-xl-8, - .px-xl-8 { - padding-left: 4rem !important; - } - .pb-xl-8, - .py-xl-8 { - padding-bottom: 4rem !important; - } - .pl-xl-8, - .px-xl-8 { - padding-right: 4rem !important; - } - .p-xl-9 { - padding: 6rem !important; - } - .pt-xl-9, - .py-xl-9 { - padding-top: 6rem !important; - } - .pr-xl-9, - .px-xl-9 { - padding-left: 6rem !important; - } - .pb-xl-9, - .py-xl-9 { - padding-bottom: 6rem !important; - } - .pl-xl-9, - .px-xl-9 { - padding-right: 6rem !important; - } - .m-xl-auto { - margin: auto !important; - } - .mt-xl-auto, - .my-xl-auto { - margin-top: auto !important; - } - .mr-xl-auto, - .mx-xl-auto { - margin-left: auto !important; - } - .mb-xl-auto, - .my-xl-auto { - margin-bottom: auto !important; - } - .ml-xl-auto, - .mx-xl-auto { - margin-right: auto !important; - } -} - -.text-monospace { - font-family: Monaco, Consolas, "Liberation Mono", "Courier New", monospace; -} - -.text-justify { - text-align: justify !important; -} - -.text-nowrap { - white-space: nowrap !important; -} - -.text-truncate { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.text-left { - text-align: right !important; -} - -.text-right { - text-align: left !important; -} - -.text-center { - text-align: center !important; -} - -@media (min-width: 576px) { - .text-sm-left { - text-align: right !important; - } - .text-sm-right { - text-align: left !important; - } - .text-sm-center { - text-align: center !important; - } -} - -@media (min-width: 768px) { - .text-md-left { - text-align: right !important; - } - .text-md-right { - text-align: left !important; - } - .text-md-center { - text-align: center !important; - } -} - -@media (min-width: 992px) { - .text-lg-left { - text-align: right !important; - } - .text-lg-right { - text-align: left !important; - } - .text-lg-center { - text-align: center !important; - } -} - -@media (min-width: 1280px) { - .text-xl-left { - text-align: right !important; - } - .text-xl-right { - text-align: left !important; - } - .text-xl-center { - text-align: center !important; - } -} - -.text-lowercase { - text-transform: lowercase !important; -} - -.text-uppercase { - text-transform: uppercase !important; -} - -.text-capitalize { - text-transform: capitalize !important; -} - -.font-weight-light { - font-weight: 300 !important; -} - -.font-weight-normal { - font-weight: 400 !important; -} - -.font-weight-bold { - font-weight: 700 !important; -} - -.font-italic { - font-style: italic !important; -} - -.text-white { - color: #fff !important; -} - -.text-primary { - color: #467fcf !important; -} - -a.text-primary:hover, a.text-primary:focus { - color: #2f66b3 !important; -} - -.text-secondary { - color: #868e96 !important; -} - -a.text-secondary:hover, a.text-secondary:focus { - color: #6c757d !important; -} - -.text-success { - color: #5eba00 !important; -} - -a.text-success:hover, a.text-success:focus { - color: #448700 !important; -} - -.text-info { - color: #45aaf2 !important; -} - -a.text-info:hover, a.text-info:focus { - color: #1594ef !important; -} - -.text-warning { - color: #f1c40f !important; -} - -a.text-warning:hover, a.text-warning:focus { - color: #c29d0b !important; -} - -.text-danger { - color: #cd201f !important; -} - -a.text-danger:hover, a.text-danger:focus { - color: #a11918 !important; -} - -.text-light { - color: #f8f9fa !important; -} - -a.text-light:hover, a.text-light:focus { - color: #dae0e5 !important; -} - -.text-dark { - color: #343a40 !important; -} - -a.text-dark:hover, a.text-dark:focus { - color: #1d2124 !important; -} - -.text-body { - color: #495057 !important; -} - -.text-muted { - color: #9aa0ac !important; -} - -.text-black-50 { - color: rgba(0, 0, 0, 0.5) !important; -} - -.text-white-50 { - color: rgba(255, 255, 255, 0.5) !important; -} - -.text-hide { - font: 0/0 a; - color: transparent; - text-shadow: none; - background-color: transparent; - border: 0; -} - -.visible { - visibility: visible !important; -} - -.invisible { - visibility: hidden !important; -} - -@media print { - *, - *::before, - *::after { - text-shadow: none !important; - box-shadow: none !important; - } - a:not(.btn) { - text-decoration: underline; - } - abbr[title]::after { - content: " (" attr(title) ")"; - } - pre { - white-space: pre-wrap !important; - } - pre, - blockquote { - border: 1px solid #adb5bd; - page-break-inside: avoid; - } - thead { - display: table-header-group; - } - tr, - img { - page-break-inside: avoid; - } - p, - h2, - h3 { - orphans: 3; - widows: 3; - } - h2, - h3 { - page-break-after: avoid; - } - @page { - size: a3; - } - body { - min-width: 992px !important; - } - .container { - min-width: 992px !important; - } - .navbar { - display: none; - } - .badge { - border: 1px solid #000; - } - .table, .text-wrap table { - border-collapse: collapse !important; - } - - .table td, - .text-wrap table td, .table th, .text-wrap table th { - background-color: #fff !important; - } - .table-bordered th, .text-wrap table th, - .table-bordered td, - .text-wrap table td { - border: 1px solid #dee2e6 !important; - } -} - -html { - font-size: 16px; - height: 100%; - direction: rtl; -} - -body { - direction: rtl; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - -webkit-tap-highlight-color: transparent; - -webkit-text-size-adjust: none; - -ms-touch-action: manipulation; - touch-action: manipulation; - -webkit-font-feature-settings: "liga" 0; - font-feature-settings: "liga" 0; - height: 100%; - overflow-y: scroll; - position: relative; -} - -@media print { - body { - background: none; - } -} - -body *::-webkit-scrollbar { - width: 6px; - height: 6px; - transition: .3s background; -} - -body *::-webkit-scrollbar-thumb { - background: #ced4da; -} - -body *:hover::-webkit-scrollbar-thumb { - background: #adb5bd; -} - -.lead { - line-height: 1.4; -} - -a { - -webkit-text-decoration-skip: ink; - text-decoration-skip: ink; -} - -h1 a, h2 a, h3 a, h4 a, h5 a, h6 a, -.h1 a, .h2 a, .h3 a, .h4 a, .h5 a, .h6 a { - color: inherit; -} - -strong, -b { - font-weight: 600; -} - -p, -ul, -ol, -blockquote { - margin-bottom: 1em; -} - -blockquote { - font-style: italic; - color: #6e7687; - padding-right: 2rem; - border-right: 2px solid rgba(0, 40, 100, 0.12); -} - -blockquote p { - margin-bottom: 1rem; -} - -blockquote cite { - display: block; - text-align: left; -} - -blockquote cite:before { - content: '— '; -} - -code { - background: rgba(0, 0, 0, 0.025); - border: 1px solid rgba(0, 0, 0, 0.05); - border-radius: 3px; - padding: 3px; -} - -pre code { - padding: 0; - border-radius: 0; - border: none; - background: none; -} - -hr { - margin-top: 2rem; - margin-bottom: 2rem; -} - -pre { - color: #343a40; - padding: 1rem; - overflow: auto; - font-size: 85%; - line-height: 1.45; - background-color: #f8fafc; - border-radius: 3px; - -moz-tab-size: 4; - -o-tab-size: 4; - tab-size: 4; - text-shadow: 0 1px white; - -webkit-hyphens: none; - -moz-hyphens: none; - -ms-hyphens: none; - hyphens: none; -} - -img { - max-width: 100%; -} - -.text-wrap { - font-size: 1rem; - line-height: 1.66; -} - -.text-wrap > :first-child { - margin-top: 0; -} - -.text-wrap > :last-child { - margin-bottom: 0; -} - -.text-wrap > h1, .text-wrap > h2, .text-wrap > h3, .text-wrap > h4, .text-wrap > h5, .text-wrap > h6 { - margin-top: 1em; -} - -.section-nav { - background-color: #f8f9fa; - margin: 1rem 0; - padding: .5rem 1rem; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; - list-style: none; -} - -.section-nav:before { - content: 'Table of contents:'; - display: block; - font-weight: 600; -} - -@media print { - .container { - max-width: none; - } -} - -.row-cards > .col, -.row-cards > [class*='col-'] { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; -} - -.row-deck > .col, -.row-deck > [class*='col-'] { - display: -ms-flexbox; - display: flex; - -ms-flex-align: stretch; - align-items: stretch; -} - -.row-deck > .col .card, -.row-deck > [class*='col-'] .card { - -ms-flex: 1 1 auto; - flex: 1 1 auto; -} - -.col-text { - max-width: 48rem; -} - -.col-login { - max-width: 24rem; -} - -.gutters-0 { - margin-left: 0; - margin-right: 0; -} - -.gutters-0 > .col, -.gutters-0 > [class*="col-"] { - padding-left: 0; - padding-right: 0; -} - -.gutters-0 .card { - margin-bottom: 0; -} - -.gutters-xs { - margin-left: -0.25rem; - margin-right: -0.25rem; -} - -.gutters-xs > .col, -.gutters-xs > [class*="col-"] { - padding-left: 0.25rem; - padding-right: 0.25rem; -} - -.gutters-xs .card { - margin-bottom: 0.5rem; -} - -.gutters-sm { - margin-left: -0.5rem; - margin-right: -0.5rem; -} - -.gutters-sm > .col, -.gutters-sm > [class*="col-"] { - padding-left: 0.5rem; - padding-right: 0.5rem; -} - -.gutters-sm .card { - margin-bottom: 1rem; -} - -.gutters-lg { - margin-left: -1rem; - margin-right: -1rem; -} - -.gutters-lg > .col, -.gutters-lg > [class*="col-"] { - padding-left: 1rem; - padding-right: 1rem; -} - -.gutters-lg .card { - margin-bottom: 2rem; -} - -.gutters-xl { - margin-left: -1.5rem; - margin-right: -1.5rem; -} - -.gutters-xl > .col, -.gutters-xl > [class*="col-"] { - padding-left: 1.5rem; - padding-right: 1.5rem; -} - -.gutters-xl .card { - margin-bottom: 3rem; -} - -.page { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - -ms-flex-pack: center; - justify-content: center; - min-height: 100%; -} - -body.fixed-header .page { - padding-top: 4.5rem; -} - -@media (min-width: 1600px) { - body.aside-opened .page { - margin-left: 22rem; - } -} - -.page-main { - -ms-flex: 1 1 auto; - flex: 1 1 auto; -} - -.page-content { - margin: .75rem 0; -} - -@media (min-width: 768px) { - .page-content { - margin: 1.5rem 0; - } -} - -.page-header { - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - margin: 1.5rem 0 1.5rem; - -ms-flex-wrap: wrap; - flex-wrap: wrap; -} - -.page-title { - margin: 0; - font-size: 1.5rem; - font-weight: 400; - line-height: 2.5rem; -} - -.page-title-icon { - color: #9aa0ac; - font-size: 1.25rem; -} - -.page-subtitle { - font-size: 0.8125rem; - color: #6e7687; - margin-right: 2rem; -} - -.page-subtitle a { - color: inherit; -} - -.page-options { - margin-right: auto; -} - -.page-breadcrumb { - -ms-flex-preferred-size: 100%; - flex-basis: 100%; -} - -.page-description { - margin: .25rem 0 0; - color: #6e7687; -} - -.page-description a { - color: inherit; -} - -.page-single { - -ms-flex: 1 1 auto; - flex: 1 1 auto; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - padding: 1rem 0; -} - -.content-heading { - font-weight: 400; - margin: 2rem 0 1.5rem; - font-size: 1.25rem; - line-height: 1.25; -} - -.content-heading:first-child { - margin-top: 0; -} - -.aside { - position: fixed; - top: 0; - left: 0; - bottom: 0; - width: 22rem; - background: #ffffff; - border-right: 1px solid rgba(0, 40, 100, 0.12); - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - z-index: 100; - visibility: hidden; - box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.05); -} - -@media (min-width: 1600px) { - body.aside-opened .aside { - visibility: visible; - } -} - -.aside-body { - padding: 1.5rem; - -ms-flex: 1 1 auto; - flex: 1 1 auto; - overflow: auto; -} - -.aside-footer { - padding: 1rem 1.5rem; - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.aside-header { - padding: 1rem 1.5rem; - border-bottom: 1px solid rgba(0, 40, 100, 0.12); -} - -.header { - padding-top: .75rem; - padding-bottom: .75rem; - background: #fff; - border-bottom: 1px solid rgba(0, 40, 100, 0.12); -} - -body.fixed-header .header { - position: fixed; - top: 0; - right: 0; - left: 0; - z-index: 1030; -} - -@media print { - .header { - display: none; - } -} - -.header .dropdown-menu { - margin-top: .75rem; -} - -.nav-unread { - position: absolute; - top: .25rem; - left: .25rem; - background: #cd201f; - width: .5rem; - height: .5rem; - border-radius: 50%; -} - -.header-brand { - color: inherit; - margin-left: 1rem; - font-size: 1.25rem; - white-space: nowrap; - font-weight: 600; - padding: 0; - transition: .3s opacity; - line-height: 2rem; -} - -.header-brand:hover { - opacity: .8; - color: inherit; - text-decoration: none; -} - -.header-brand-img { - height: 2rem; - line-height: 2rem; - vertical-align: bottom; - margin-left: .5rem; - width: auto; -} - -.header-avatar { - width: 2rem; - height: 2rem; - display: inline-block; - vertical-align: bottom; - border-radius: 50%; -} - -.header-btn { - display: inline-block; - width: 2rem; - height: 2rem; - line-height: 2rem; - text-align: center; - font-size: 1rem; -} - -.header-btn.has-new { - position: relative; -} - -.header-btn.has-new:before { - content: ''; - width: 6px; - height: 6px; - background: #cd201f; - position: absolute; - top: 4px; - left: 4px; - border-radius: 50%; -} - -.header-toggler { - width: 2rem; - height: 2rem; - position: relative; - color: #9aa0ac; -} - -.header-toggler:hover { - color: #6e7687; -} - -.header-toggler-icon { - position: absolute; - width: 1rem; - height: 2px; - color: inherit; - background: currentColor; - border-radius: 3px; - top: 50%; - right: 50%; - margin: -2px -.5rem 0 0; - box-shadow: 0 5px currentColor, 0 -5px currentColor; -} - -.footer { - background: #fff; - border-top: 1px solid rgba(0, 40, 100, 0.12); - font-size: 0.875rem; - padding: 1.25rem 0; - color: #9aa0ac; -} - -.footer a:not(.btn) { - color: #6e7687; -} - -@media print { - .footer { - display: none; - } -} - -.bg-blue-lightest { - background-color: #edf2fa !important; -} - -a.bg-blue-lightest:hover, a.bg-blue-lightest:focus, -button.bg-blue-lightest:hover, -button.bg-blue-lightest:focus { - background-color: #c5d5ef !important; -} - -.bg-blue-lighter { - background-color: #c8d9f1 !important; -} - -a.bg-blue-lighter:hover, a.bg-blue-lighter:focus, -button.bg-blue-lighter:hover, -button.bg-blue-lighter:focus { - background-color: #9fbde7 !important; -} - -.bg-blue-light { - background-color: #7ea5dd !important; -} - -a.bg-blue-light:hover, a.bg-blue-light:focus, -button.bg-blue-light:hover, -button.bg-blue-light:focus { - background-color: #5689d2 !important; -} - -.bg-blue-dark { - background-color: #3866a6 !important; -} - -a.bg-blue-dark:hover, a.bg-blue-dark:focus, -button.bg-blue-dark:hover, -button.bg-blue-dark:focus { - background-color: #2b4f80 !important; -} - -.bg-blue-darker { - background-color: #1c3353 !important; -} - -a.bg-blue-darker:hover, a.bg-blue-darker:focus, -button.bg-blue-darker:hover, -button.bg-blue-darker:focus { - background-color: #0f1c2d !important; -} - -.bg-blue-darkest { - background-color: #0e1929 !important; -} - -a.bg-blue-darkest:hover, a.bg-blue-darkest:focus, -button.bg-blue-darkest:hover, -button.bg-blue-darkest:focus { - background-color: #010203 !important; -} - -.bg-indigo-lightest { - background-color: #f0f1fa !important; -} - -a.bg-indigo-lightest:hover, a.bg-indigo-lightest:focus, -button.bg-indigo-lightest:hover, -button.bg-indigo-lightest:focus { - background-color: #cacded !important; -} - -.bg-indigo-lighter { - background-color: #d1d5f0 !important; -} - -a.bg-indigo-lighter:hover, a.bg-indigo-lighter:focus, -button.bg-indigo-lighter:hover, -button.bg-indigo-lighter:focus { - background-color: #abb2e3 !important; -} - -.bg-indigo-light { - background-color: #939edc !important; -} - -a.bg-indigo-light:hover, a.bg-indigo-light:focus, -button.bg-indigo-light:hover, -button.bg-indigo-light:focus { - background-color: #6c7bd0 !important; -} - -.bg-indigo-dark { - background-color: #515da4 !important; -} - -a.bg-indigo-dark:hover, a.bg-indigo-dark:focus, -button.bg-indigo-dark:hover, -button.bg-indigo-dark:focus { - background-color: #404a82 !important; -} - -.bg-indigo-darker { - background-color: #282e52 !important; -} - -a.bg-indigo-darker:hover, a.bg-indigo-darker:focus, -button.bg-indigo-darker:hover, -button.bg-indigo-darker:focus { - background-color: #171b30 !important; -} - -.bg-indigo-darkest { - background-color: #141729 !important; -} - -a.bg-indigo-darkest:hover, a.bg-indigo-darkest:focus, -button.bg-indigo-darkest:hover, -button.bg-indigo-darkest:focus { - background-color: #030407 !important; -} - -.bg-purple-lightest { - background-color: #f6effd !important; -} - -a.bg-purple-lightest:hover, a.bg-purple-lightest:focus, -button.bg-purple-lightest:hover, -button.bg-purple-lightest:focus { - background-color: #ddc2f7 !important; -} - -.bg-purple-lighter { - background-color: #e4cff9 !important; -} - -a.bg-purple-lighter:hover, a.bg-purple-lighter:focus, -button.bg-purple-lighter:hover, -button.bg-purple-lighter:focus { - background-color: #cba2f3 !important; -} - -.bg-purple-light { - background-color: #c08ef0 !important; -} - -a.bg-purple-light:hover, a.bg-purple-light:focus, -button.bg-purple-light:hover, -button.bg-purple-light:focus { - background-color: #a761ea !important; -} - -.bg-purple-dark { - background-color: #844bbb !important; -} - -a.bg-purple-dark:hover, a.bg-purple-dark:focus, -button.bg-purple-dark:hover, -button.bg-purple-dark:focus { - background-color: #6a3a99 !important; -} - -.bg-purple-darker { - background-color: #42265e !important; -} - -a.bg-purple-darker:hover, a.bg-purple-darker:focus, -button.bg-purple-darker:hover, -button.bg-purple-darker:focus { - background-color: #29173a !important; -} - -.bg-purple-darkest { - background-color: #21132f !important; -} - -a.bg-purple-darkest:hover, a.bg-purple-darkest:focus, -button.bg-purple-darkest:hover, -button.bg-purple-darkest:focus { - background-color: #08040b !important; -} - -.bg-pink-lightest { - background-color: #fef0f5 !important; -} - -a.bg-pink-lightest:hover, a.bg-pink-lightest:focus, -button.bg-pink-lightest:hover, -button.bg-pink-lightest:focus { - background-color: #fbc0d5 !important; -} - -.bg-pink-lighter { - background-color: #fcd3e1 !important; -} - -a.bg-pink-lighter:hover, a.bg-pink-lighter:focus, -button.bg-pink-lighter:hover, -button.bg-pink-lighter:focus { - background-color: #f9a3c0 !important; -} - -.bg-pink-light { - background-color: #f999b9 !important; -} - -a.bg-pink-light:hover, a.bg-pink-light:focus, -button.bg-pink-light:hover, -button.bg-pink-light:focus { - background-color: #f66998 !important; -} - -.bg-pink-dark { - background-color: #c5577c !important; -} - -a.bg-pink-dark:hover, a.bg-pink-dark:focus, -button.bg-pink-dark:hover, -button.bg-pink-dark:focus { - background-color: #ad3c62 !important; -} - -.bg-pink-darker { - background-color: #622c3e !important; -} - -a.bg-pink-darker:hover, a.bg-pink-darker:focus, -button.bg-pink-darker:hover, -button.bg-pink-darker:focus { - background-color: #3f1c28 !important; -} - -.bg-pink-darkest { - background-color: #31161f !important; -} - -a.bg-pink-darkest:hover, a.bg-pink-darkest:focus, -button.bg-pink-darkest:hover, -button.bg-pink-darkest:focus { - background-color: #0e0609 !important; -} - -.bg-red-lightest { - background-color: #fae9e9 !important; -} - -a.bg-red-lightest:hover, a.bg-red-lightest:focus, -button.bg-red-lightest:hover, -button.bg-red-lightest:focus { - background-color: #f1bfbf !important; -} - -.bg-red-lighter { - background-color: #f0bcbc !important; -} - -a.bg-red-lighter:hover, a.bg-red-lighter:focus, -button.bg-red-lighter:hover, -button.bg-red-lighter:focus { - background-color: #e79292 !important; -} - -.bg-red-light { - background-color: #dc6362 !important; -} - -a.bg-red-light:hover, a.bg-red-light:focus, -button.bg-red-light:hover, -button.bg-red-light:focus { - background-color: #d33a38 !important; -} - -.bg-red-dark { - background-color: #a41a19 !important; -} - -a.bg-red-dark:hover, a.bg-red-dark:focus, -button.bg-red-dark:hover, -button.bg-red-dark:focus { - background-color: #781312 !important; -} - -.bg-red-darker { - background-color: #520d0c !important; -} - -a.bg-red-darker:hover, a.bg-red-darker:focus, -button.bg-red-darker:hover, -button.bg-red-darker:focus { - background-color: #260605 !important; -} - -.bg-red-darkest { - background-color: #290606 !important; -} - -a.bg-red-darkest:hover, a.bg-red-darkest:focus, -button.bg-red-darkest:hover, -button.bg-red-darkest:focus { - background-color: black !important; -} - -.bg-orange-lightest { - background-color: #fff5ec !important; -} - -a.bg-orange-lightest:hover, a.bg-orange-lightest:focus, -button.bg-orange-lightest:hover, -button.bg-orange-lightest:focus { - background-color: peachpuff !important; -} - -.bg-orange-lighter { - background-color: #fee0c7 !important; -} - -a.bg-orange-lighter:hover, a.bg-orange-lighter:focus, -button.bg-orange-lighter:hover, -button.bg-orange-lighter:focus { - background-color: #fdc495 !important; -} - -.bg-orange-light { - background-color: #feb67c !important; -} - -a.bg-orange-light:hover, a.bg-orange-light:focus, -button.bg-orange-light:hover, -button.bg-orange-light:focus { - background-color: #fe9a49 !important; -} - -.bg-orange-dark { - background-color: #ca7836 !important; -} - -a.bg-orange-dark:hover, a.bg-orange-dark:focus, -button.bg-orange-dark:hover, -button.bg-orange-dark:focus { - background-color: #a2602b !important; -} - -.bg-orange-darker { - background-color: #653c1b !important; -} - -a.bg-orange-darker:hover, a.bg-orange-darker:focus, -button.bg-orange-darker:hover, -button.bg-orange-darker:focus { - background-color: #3d2410 !important; -} - -.bg-orange-darkest { - background-color: #331e0e !important; -} - -a.bg-orange-darkest:hover, a.bg-orange-darkest:focus, -button.bg-orange-darkest:hover, -button.bg-orange-darkest:focus { - background-color: #0b0603 !important; -} - -.bg-yellow-lightest { - background-color: #fef9e7 !important; -} - -a.bg-yellow-lightest:hover, a.bg-yellow-lightest:focus, -button.bg-yellow-lightest:hover, -button.bg-yellow-lightest:focus { - background-color: #fcedb6 !important; -} - -.bg-yellow-lighter { - background-color: #fbedb7 !important; -} - -a.bg-yellow-lighter:hover, a.bg-yellow-lighter:focus, -button.bg-yellow-lighter:hover, -button.bg-yellow-lighter:focus { - background-color: #f8e187 !important; -} - -.bg-yellow-light { - background-color: #f5d657 !important; -} - -a.bg-yellow-light:hover, a.bg-yellow-light:focus, -button.bg-yellow-light:hover, -button.bg-yellow-light:focus { - background-color: #f2ca27 !important; -} - -.bg-yellow-dark { - background-color: #c19d0c !important; -} - -a.bg-yellow-dark:hover, a.bg-yellow-dark:focus, -button.bg-yellow-dark:hover, -button.bg-yellow-dark:focus { - background-color: #917609 !important; -} - -.bg-yellow-darker { - background-color: #604e06 !important; -} - -a.bg-yellow-darker:hover, a.bg-yellow-darker:focus, -button.bg-yellow-darker:hover, -button.bg-yellow-darker:focus { - background-color: #302703 !important; -} - -.bg-yellow-darkest { - background-color: #302703 !important; -} - -a.bg-yellow-darkest:hover, a.bg-yellow-darkest:focus, -button.bg-yellow-darkest:hover, -button.bg-yellow-darkest:focus { - background-color: black !important; -} - -.bg-green-lightest { - background-color: #eff8e6 !important; -} - -a.bg-green-lightest:hover, a.bg-green-lightest:focus, -button.bg-green-lightest:hover, -button.bg-green-lightest:focus { - background-color: #d6edbe !important; -} - -.bg-green-lighter { - background-color: #cfeab3 !important; -} - -a.bg-green-lighter:hover, a.bg-green-lighter:focus, -button.bg-green-lighter:hover, -button.bg-green-lighter:focus { - background-color: #b6df8b !important; -} - -.bg-green-light { - background-color: #8ecf4d !important; -} - -a.bg-green-light:hover, a.bg-green-light:focus, -button.bg-green-light:hover, -button.bg-green-light:focus { - background-color: #75b831 !important; -} - -.bg-green-dark { - background-color: #4b9500 !important; -} - -a.bg-green-dark:hover, a.bg-green-dark:focus, -button.bg-green-dark:hover, -button.bg-green-dark:focus { - background-color: #316200 !important; -} - -.bg-green-darker { - background-color: #264a00 !important; -} - -a.bg-green-darker:hover, a.bg-green-darker:focus, -button.bg-green-darker:hover, -button.bg-green-darker:focus { - background-color: #0c1700 !important; -} - -.bg-green-darkest { - background-color: #132500 !important; -} - -a.bg-green-darkest:hover, a.bg-green-darkest:focus, -button.bg-green-darkest:hover, -button.bg-green-darkest:focus { - background-color: black !important; -} - -.bg-teal-lightest { - background-color: #eafaf8 !important; -} - -a.bg-teal-lightest:hover, a.bg-teal-lightest:focus, -button.bg-teal-lightest:hover, -button.bg-teal-lightest:focus { - background-color: #c1f0ea !important; -} - -.bg-teal-lighter { - background-color: #bfefea !important; -} - -a.bg-teal-lighter:hover, a.bg-teal-lighter:focus, -button.bg-teal-lighter:hover, -button.bg-teal-lighter:focus { - background-color: #96e5dd !important; -} - -.bg-teal-light { - background-color: #6bdbcf !important; -} - -a.bg-teal-light:hover, a.bg-teal-light:focus, -button.bg-teal-light:hover, -button.bg-teal-light:focus { - background-color: #42d1c2 !important; -} - -.bg-teal-dark { - background-color: #22a295 !important; -} - -a.bg-teal-dark:hover, a.bg-teal-dark:focus, -button.bg-teal-dark:hover, -button.bg-teal-dark:focus { - background-color: #19786e !important; -} - -.bg-teal-darker { - background-color: #11514a !important; -} - -a.bg-teal-darker:hover, a.bg-teal-darker:focus, -button.bg-teal-darker:hover, -button.bg-teal-darker:focus { - background-color: #082723 !important; -} - -.bg-teal-darkest { - background-color: #092925 !important; -} - -a.bg-teal-darkest:hover, a.bg-teal-darkest:focus, -button.bg-teal-darkest:hover, -button.bg-teal-darkest:focus { - background-color: black !important; -} - -.bg-cyan-lightest { - background-color: #e8f6f8 !important; -} - -a.bg-cyan-lightest:hover, a.bg-cyan-lightest:focus, -button.bg-cyan-lightest:hover, -button.bg-cyan-lightest:focus { - background-color: #c1e7ec !important; -} - -.bg-cyan-lighter { - background-color: #b9e3ea !important; -} - -a.bg-cyan-lighter:hover, a.bg-cyan-lighter:focus, -button.bg-cyan-lighter:hover, -button.bg-cyan-lighter:focus { - background-color: #92d3de !important; -} - -.bg-cyan-light { - background-color: #5dbecd !important; -} - -a.bg-cyan-light:hover, a.bg-cyan-light:focus, -button.bg-cyan-light:hover, -button.bg-cyan-light:focus { - background-color: #3aabbd !important; -} - -.bg-cyan-dark { - background-color: #128293 !important; -} - -a.bg-cyan-dark:hover, a.bg-cyan-dark:focus, -button.bg-cyan-dark:hover, -button.bg-cyan-dark:focus { - background-color: #0c5a66 !important; -} - -.bg-cyan-darker { - background-color: #09414a !important; -} - -a.bg-cyan-darker:hover, a.bg-cyan-darker:focus, -button.bg-cyan-darker:hover, -button.bg-cyan-darker:focus { - background-color: #03191d !important; -} - -.bg-cyan-darkest { - background-color: #052025 !important; -} - -a.bg-cyan-darkest:hover, a.bg-cyan-darkest:focus, -button.bg-cyan-darkest:hover, -button.bg-cyan-darkest:focus { - background-color: black !important; -} - -.bg-white-lightest { - background-color: white !important; -} - -a.bg-white-lightest:hover, a.bg-white-lightest:focus, -button.bg-white-lightest:hover, -button.bg-white-lightest:focus { - background-color: #e6e5e5 !important; -} - -.bg-white-lighter { - background-color: white !important; -} - -a.bg-white-lighter:hover, a.bg-white-lighter:focus, -button.bg-white-lighter:hover, -button.bg-white-lighter:focus { - background-color: #e6e5e5 !important; -} - -.bg-white-light { - background-color: white !important; -} - -a.bg-white-light:hover, a.bg-white-light:focus, -button.bg-white-light:hover, -button.bg-white-light:focus { - background-color: #e6e5e5 !important; -} - -.bg-white-dark { - background-color: #cccccc !important; -} - -a.bg-white-dark:hover, a.bg-white-dark:focus, -button.bg-white-dark:hover, -button.bg-white-dark:focus { - background-color: #b3b2b2 !important; -} - -.bg-white-darker { - background-color: #666666 !important; -} - -a.bg-white-darker:hover, a.bg-white-darker:focus, -button.bg-white-darker:hover, -button.bg-white-darker:focus { - background-color: #4d4c4c !important; -} - -.bg-white-darkest { - background-color: #333333 !important; -} - -a.bg-white-darkest:hover, a.bg-white-darkest:focus, -button.bg-white-darkest:hover, -button.bg-white-darkest:focus { - background-color: #1a1919 !important; -} - -.bg-gray-lightest { - background-color: #f3f4f5 !important; -} - -a.bg-gray-lightest:hover, a.bg-gray-lightest:focus, -button.bg-gray-lightest:hover, -button.bg-gray-lightest:focus { - background-color: #d7dbde !important; -} - -.bg-gray-lighter { - background-color: #dbdde0 !important; -} - -a.bg-gray-lighter:hover, a.bg-gray-lighter:focus, -button.bg-gray-lighter:hover, -button.bg-gray-lighter:focus { - background-color: #c0c3c8 !important; -} - -.bg-gray-light { - background-color: #aab0b6 !important; -} - -a.bg-gray-light:hover, a.bg-gray-light:focus, -button.bg-gray-light:hover, -button.bg-gray-light:focus { - background-color: #8f979e !important; -} - -.bg-gray-dark { - background-color: #6b7278 !important; -} - -a.bg-gray-dark:hover, a.bg-gray-dark:focus, -button.bg-gray-dark:hover, -button.bg-gray-dark:focus { - background-color: #53585d !important; -} - -.bg-gray-darker { - background-color: #36393c !important; -} - -a.bg-gray-darker:hover, a.bg-gray-darker:focus, -button.bg-gray-darker:hover, -button.bg-gray-darker:focus { - background-color: #1e2021 !important; -} - -.bg-gray-darkest { - background-color: #1b1c1e !important; -} - -a.bg-gray-darkest:hover, a.bg-gray-darkest:focus, -button.bg-gray-darkest:hover, -button.bg-gray-darkest:focus { - background-color: #030303 !important; -} - -.bg-gray-dark-lightest { - background-color: #ebebec !important; -} - -a.bg-gray-dark-lightest:hover, a.bg-gray-dark-lightest:focus, -button.bg-gray-dark-lightest:hover, -button.bg-gray-dark-lightest:focus { - background-color: #d1d1d3 !important; -} - -.bg-gray-dark-lighter { - background-color: #c2c4c6 !important; -} - -a.bg-gray-dark-lighter:hover, a.bg-gray-dark-lighter:focus, -button.bg-gray-dark-lighter:hover, -button.bg-gray-dark-lighter:focus { - background-color: #a8abad !important; -} - -.bg-gray-dark-light { - background-color: #717579 !important; -} - -a.bg-gray-dark-light:hover, a.bg-gray-dark-light:focus, -button.bg-gray-dark-light:hover, -button.bg-gray-dark-light:focus { - background-color: #585c5f !important; -} - -.bg-gray-dark-dark { - background-color: #2a2e33 !important; -} - -a.bg-gray-dark-dark:hover, a.bg-gray-dark-dark:focus, -button.bg-gray-dark-dark:hover, -button.bg-gray-dark-dark:focus { - background-color: #131517 !important; -} - -.bg-gray-dark-darker { - background-color: #15171a !important; -} - -a.bg-gray-dark-darker:hover, a.bg-gray-dark-darker:focus, -button.bg-gray-dark-darker:hover, -button.bg-gray-dark-darker:focus { - background-color: black !important; -} - -.bg-gray-dark-darkest { - background-color: #0a0c0d !important; -} - -a.bg-gray-dark-darkest:hover, a.bg-gray-dark-darkest:focus, -button.bg-gray-dark-darkest:hover, -button.bg-gray-dark-darkest:focus { - background-color: black !important; -} - -.bg-azure-lightest { - background-color: #ecf7fe !important; -} - -a.bg-azure-lightest:hover, a.bg-azure-lightest:focus, -button.bg-azure-lightest:hover, -button.bg-azure-lightest:focus { - background-color: #bce3fb !important; -} - -.bg-azure-lighter { - background-color: #c7e6fb !important; -} - -a.bg-azure-lighter:hover, a.bg-azure-lighter:focus, -button.bg-azure-lighter:hover, -button.bg-azure-lighter:focus { - background-color: #97d1f8 !important; -} - -.bg-azure-light { - background-color: #7dc4f6 !important; -} - -a.bg-azure-light:hover, a.bg-azure-light:focus, -button.bg-azure-light:hover, -button.bg-azure-light:focus { - background-color: #4daef3 !important; -} - -.bg-azure-dark { - background-color: #3788c2 !important; -} - -a.bg-azure-dark:hover, a.bg-azure-dark:focus, -button.bg-azure-dark:hover, -button.bg-azure-dark:focus { - background-color: #2c6c9a !important; -} - -.bg-azure-darker { - background-color: #1c4461 !important; -} - -a.bg-azure-darker:hover, a.bg-azure-darker:focus, -button.bg-azure-darker:hover, -button.bg-azure-darker:focus { - background-color: #112839 !important; -} - -.bg-azure-darkest { - background-color: #0e2230 !important; -} - -a.bg-azure-darkest:hover, a.bg-azure-darkest:focus, -button.bg-azure-darkest:hover, -button.bg-azure-darkest:focus { - background-color: #020609 !important; -} - -.bg-lime-lightest { - background-color: #f2fbeb !important; -} - -a.bg-lime-lightest:hover, a.bg-lime-lightest:focus, -button.bg-lime-lightest:hover, -button.bg-lime-lightest:focus { - background-color: #d6f3c1 !important; -} - -.bg-lime-lighter { - background-color: #d7f2c2 !important; -} - -a.bg-lime-lighter:hover, a.bg-lime-lighter:focus, -button.bg-lime-lighter:hover, -button.bg-lime-lighter:focus { - background-color: #bbe998 !important; -} - -.bg-lime-light { - background-color: #a3e072 !important; -} - -a.bg-lime-light:hover, a.bg-lime-light:focus, -button.bg-lime-light:hover, -button.bg-lime-light:focus { - background-color: #88d748 !important; -} - -.bg-lime-dark { - background-color: #62a82a !important; -} - -a.bg-lime-dark:hover, a.bg-lime-dark:focus, -button.bg-lime-dark:hover, -button.bg-lime-dark:focus { - background-color: #4a7f20 !important; -} - -.bg-lime-darker { - background-color: #315415 !important; -} - -a.bg-lime-darker:hover, a.bg-lime-darker:focus, -button.bg-lime-darker:hover, -button.bg-lime-darker:focus { - background-color: #192b0b !important; -} - -.bg-lime-darkest { - background-color: #192a0b !important; -} - -a.bg-lime-darkest:hover, a.bg-lime-darkest:focus, -button.bg-lime-darkest:hover, -button.bg-lime-darkest:focus { - background-color: #010200 !important; -} - -.display-1 i, -.display-2 i, -.display-3 i, -.display-4 i { - vertical-align: baseline; - font-size: 0.815em; -} - -.text-inherit { - color: inherit !important; -} - -.text-default { - color: #495057 !important; -} - -.text-muted-dark { - color: #6e7687 !important; -} - -.tracking-tight { - letter-spacing: -0.05em !important; -} - -.tracking-normal { - letter-spacing: 0 !important; -} - -.tracking-wide { - letter-spacing: 0.05em !important; -} - -.leading-none { - line-height: 1 !important; -} - -.leading-tight { - line-height: 1.25 !important; -} - -.leading-normal { - line-height: 1.5 !important; -} - -.leading-loose { - line-height: 2 !important; -} - -.bg-blue { - background-color: #467fcf !important; -} - -a.bg-blue:hover, a.bg-blue:focus, -button.bg-blue:hover, -button.bg-blue:focus { - background-color: #2f66b3 !important; -} - -.text-blue { - color: #467fcf !important; -} - -.bg-indigo { - background-color: #6574cd !important; -} - -a.bg-indigo:hover, a.bg-indigo:focus, -button.bg-indigo:hover, -button.bg-indigo:focus { - background-color: #3f51c1 !important; -} - -.text-indigo { - color: #6574cd !important; -} - -.bg-purple { - background-color: #a55eea !important; -} - -a.bg-purple:hover, a.bg-purple:focus, -button.bg-purple:hover, -button.bg-purple:focus { - background-color: #8c31e4 !important; -} - -.text-purple { - color: #a55eea !important; -} - -.bg-pink { - background-color: #f66d9b !important; -} - -a.bg-pink:hover, a.bg-pink:focus, -button.bg-pink:hover, -button.bg-pink:focus { - background-color: #f33d7a !important; -} - -.text-pink { - color: #f66d9b !important; -} - -.bg-red { - background-color: #cd201f !important; -} - -a.bg-red:hover, a.bg-red:focus, -button.bg-red:hover, -button.bg-red:focus { - background-color: #a11918 !important; -} - -.text-red { - color: #cd201f !important; -} - -.bg-orange { - background-color: #fd9644 !important; -} - -a.bg-orange:hover, a.bg-orange:focus, -button.bg-orange:hover, -button.bg-orange:focus { - background-color: #fc7a12 !important; -} - -.text-orange { - color: #fd9644 !important; -} - -.bg-yellow { - background-color: #f1c40f !important; -} - -a.bg-yellow:hover, a.bg-yellow:focus, -button.bg-yellow:hover, -button.bg-yellow:focus { - background-color: #c29d0b !important; -} - -.text-yellow { - color: #f1c40f !important; -} - -.bg-green { - background-color: #5eba00 !important; -} - -a.bg-green:hover, a.bg-green:focus, -button.bg-green:hover, -button.bg-green:focus { - background-color: #448700 !important; -} - -.text-green { - color: #5eba00 !important; -} - -.bg-teal { - background-color: #2bcbba !important; -} - -a.bg-teal:hover, a.bg-teal:focus, -button.bg-teal:hover, -button.bg-teal:focus { - background-color: #22a193 !important; -} - -.text-teal { - color: #2bcbba !important; -} - -.bg-cyan { - background-color: #17a2b8 !important; -} - -a.bg-cyan:hover, a.bg-cyan:focus, -button.bg-cyan:hover, -button.bg-cyan:focus { - background-color: #117a8b !important; -} - -.text-cyan { - color: #17a2b8 !important; -} - -.bg-white { - background-color: #fff !important; -} - -a.bg-white:hover, a.bg-white:focus, -button.bg-white:hover, -button.bg-white:focus { - background-color: #e6e5e5 !important; -} - -.text-white { - color: #fff !important; -} - -.bg-gray { - background-color: #868e96 !important; -} - -a.bg-gray:hover, a.bg-gray:focus, -button.bg-gray:hover, -button.bg-gray:focus { - background-color: #6c757d !important; -} - -.text-gray { - color: #868e96 !important; -} - -.bg-gray-dark { - background-color: #343a40 !important; -} - -a.bg-gray-dark:hover, a.bg-gray-dark:focus, -button.bg-gray-dark:hover, -button.bg-gray-dark:focus { - background-color: #1d2124 !important; -} - -.text-gray-dark { - color: #343a40 !important; -} - -.bg-azure { - background-color: #45aaf2 !important; -} - -a.bg-azure:hover, a.bg-azure:focus, -button.bg-azure:hover, -button.bg-azure:focus { - background-color: #1594ef !important; -} - -.text-azure { - color: #45aaf2 !important; -} - -.bg-lime { - background-color: #7bd235 !important; -} - -a.bg-lime:hover, a.bg-lime:focus, -button.bg-lime:hover, -button.bg-lime:focus { - background-color: #63ad27 !important; -} - -.text-lime { - color: #7bd235 !important; -} - -.icon { - color: #9aa0ac !important; -} - -.icon i { - vertical-align: -1px; -} - -a.icon { - text-decoration: none; - cursor: pointer; -} - -a.icon:hover { - color: #495057 !important; -} - -.o-auto { - overflow: auto !important; -} - -.o-hidden { - overflow: hidden !important; -} - -.shadow { - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; -} - -.shadow-none { - box-shadow: none !important; -} - -.nav-link, -.nav-item { - padding: 0 .75rem; - min-width: 2rem; - transition: .3s color; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - cursor: pointer; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; -} - -.nav-link .badge, -.nav-item .badge { - position: absolute; - top: 0; - left: 0; - padding: .2rem .25rem; - min-width: 1rem; -} - -.nav-tabs { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - color: #9aa0ac; - margin: 0 -.75rem; -} - -.nav-tabs .nav-link { - border: 0; - color: inherit; - border-bottom: 1px solid transparent; - margin-bottom: -1px; - transition: .3s border-color; - font-weight: 400; - padding: 1rem 0; -} - -.nav-tabs .nav-link:hover:not(.disabled) { - border-color: #6e7687; - color: #6e7687; -} - -.nav-tabs .nav-link.active { - border-color: #467fcf; - color: #467fcf; - background: transparent; -} - -.nav-tabs .nav-link.disabled { - opacity: .4; - cursor: default; - pointer-events: none; -} - -.nav-tabs .nav-item { - margin-bottom: 0; - position: relative; -} - -.nav-tabs .nav-item i { - margin-left: .25rem; - line-height: 1; - font-size: 0.875rem; - width: 0.875rem; - vertical-align: baseline; - display: inline-block; -} - -.nav-tabs .nav-item:hover .nav-submenu { - display: block; -} - -.nav-tabs .nav-submenu { - display: none; - position: absolute; - background: #fff; - border: 1px solid rgba(0, 40, 100, 0.12); - border-top: none; - z-index: 10; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); - min-width: 10rem; - border-radius: 0 0 3px 3px; -} - -.nav-tabs .nav-submenu .nav-item { - display: block; - padding: .5rem 1rem; - color: #9aa0ac; - margin: 0 !important; - cursor: pointer; - transition: .3s background; -} - -.nav-tabs .nav-submenu .nav-item.active { - color: #467fcf; -} - -.nav-tabs .nav-submenu .nav-item:hover { - color: #6e7687; - text-decoration: none; - background: rgba(0, 0, 0, 0.024); -} - -.btn { - cursor: pointer; - font-weight: 600; - letter-spacing: .03em; - font-size: 0.8125rem; - min-width: 2.375rem; -} - -.btn i { - font-size: 1rem; - vertical-align: -2px; -} - -.btn-icon { - padding-right: .5rem; - padding-left: .5rem; - text-align: center; -} - -.btn-secondary { - color: #495057; - background-color: #fff; - border-color: rgba(0, 40, 100, 0.12); - box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.05); -} - -.btn-secondary:hover { - color: #495057; - background-color: #f6f6f6; - border-color: rgba(0, 20, 49, 0.12); -} - -.btn-secondary:focus, .btn-secondary.focus { - box-shadow: 0 0 0 2px rgba(0, 40, 100, 0.5); -} - -.btn-secondary.disabled, .btn-secondary:disabled { - color: #495057; - background-color: #fff; - border-color: rgba(0, 40, 100, 0.12); -} - -.btn-secondary:not(:disabled):not(.disabled):active, .btn-secondary:not(:disabled):not(.disabled).active, -.show > .btn-secondary.dropdown-toggle { - color: #495057; - background-color: #e6e5e5; - border-color: rgba(0, 15, 36, 0.12); -} - -.btn-secondary:not(:disabled):not(.disabled):active:focus, .btn-secondary:not(:disabled):not(.disabled).active:focus, -.show > .btn-secondary.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(0, 40, 100, 0.5); -} - -.btn-pill { - border-radius: 10rem; - padding-right: 1.5em; - padding-left: 1.5em; -} - -.btn-square { - border-radius: 0; -} - -.btn-facebook { - color: #fff; - background-color: #3b5998; - border-color: #3b5998; -} - -.btn-facebook:hover { - color: #fff; - background-color: #30497c; - border-color: #2d4373; -} - -.btn-facebook:focus, .btn-facebook.focus { - box-shadow: 0 0 0 2px rgba(59, 89, 152, 0.5); -} - -.btn-facebook.disabled, .btn-facebook:disabled { - color: #fff; - background-color: #3b5998; - border-color: #3b5998; -} - -.btn-facebook:not(:disabled):not(.disabled):active, .btn-facebook:not(:disabled):not(.disabled).active, -.show > .btn-facebook.dropdown-toggle { - color: #fff; - background-color: #2d4373; - border-color: #293e6a; -} - -.btn-facebook:not(:disabled):not(.disabled):active:focus, .btn-facebook:not(:disabled):not(.disabled).active:focus, -.show > .btn-facebook.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(59, 89, 152, 0.5); -} - -.btn-twitter { - color: #fff; - background-color: #1da1f2; - border-color: #1da1f2; -} - -.btn-twitter:hover { - color: #fff; - background-color: #0d8ddc; - border-color: #0c85d0; -} - -.btn-twitter:focus, .btn-twitter.focus { - box-shadow: 0 0 0 2px rgba(29, 161, 242, 0.5); -} - -.btn-twitter.disabled, .btn-twitter:disabled { - color: #fff; - background-color: #1da1f2; - border-color: #1da1f2; -} - -.btn-twitter:not(:disabled):not(.disabled):active, .btn-twitter:not(:disabled):not(.disabled).active, -.show > .btn-twitter.dropdown-toggle { - color: #fff; - background-color: #0c85d0; - border-color: #0b7ec4; -} - -.btn-twitter:not(:disabled):not(.disabled):active:focus, .btn-twitter:not(:disabled):not(.disabled).active:focus, -.show > .btn-twitter.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(29, 161, 242, 0.5); -} - -.btn-google { - color: #fff; - background-color: #dc4e41; - border-color: #dc4e41; -} - -.btn-google:hover { - color: #fff; - background-color: #d03526; - border-color: #c63224; -} - -.btn-google:focus, .btn-google.focus { - box-shadow: 0 0 0 2px rgba(220, 78, 65, 0.5); -} - -.btn-google.disabled, .btn-google:disabled { - color: #fff; - background-color: #dc4e41; - border-color: #dc4e41; -} - -.btn-google:not(:disabled):not(.disabled):active, .btn-google:not(:disabled):not(.disabled).active, -.show > .btn-google.dropdown-toggle { - color: #fff; - background-color: #c63224; - border-color: #bb2f22; -} - -.btn-google:not(:disabled):not(.disabled):active:focus, .btn-google:not(:disabled):not(.disabled).active:focus, -.show > .btn-google.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(220, 78, 65, 0.5); -} - -.btn-youtube { - color: #fff; - background-color: #f00; - border-color: #f00; -} - -.btn-youtube:hover { - color: #fff; - background-color: #d90000; - border-color: #cc0000; -} - -.btn-youtube:focus, .btn-youtube.focus { - box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.5); -} - -.btn-youtube.disabled, .btn-youtube:disabled { - color: #fff; - background-color: #f00; - border-color: #f00; -} - -.btn-youtube:not(:disabled):not(.disabled):active, .btn-youtube:not(:disabled):not(.disabled).active, -.show > .btn-youtube.dropdown-toggle { - color: #fff; - background-color: #cc0000; - border-color: #bf0000; -} - -.btn-youtube:not(:disabled):not(.disabled):active:focus, .btn-youtube:not(:disabled):not(.disabled).active:focus, -.show > .btn-youtube.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.5); -} - -.btn-vimeo { - color: #fff; - background-color: #1ab7ea; - border-color: #1ab7ea; -} - -.btn-vimeo:hover { - color: #fff; - background-color: #139ecb; - border-color: #1295bf; -} - -.btn-vimeo:focus, .btn-vimeo.focus { - box-shadow: 0 0 0 2px rgba(26, 183, 234, 0.5); -} - -.btn-vimeo.disabled, .btn-vimeo:disabled { - color: #fff; - background-color: #1ab7ea; - border-color: #1ab7ea; -} - -.btn-vimeo:not(:disabled):not(.disabled):active, .btn-vimeo:not(:disabled):not(.disabled).active, -.show > .btn-vimeo.dropdown-toggle { - color: #fff; - background-color: #1295bf; - border-color: #108cb4; -} - -.btn-vimeo:not(:disabled):not(.disabled):active:focus, .btn-vimeo:not(:disabled):not(.disabled).active:focus, -.show > .btn-vimeo.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(26, 183, 234, 0.5); -} - -.btn-dribbble { - color: #fff; - background-color: #ea4c89; - border-color: #ea4c89; -} - -.btn-dribbble:hover { - color: #fff; - background-color: #e62a72; - border-color: #e51e6b; -} - -.btn-dribbble:focus, .btn-dribbble.focus { - box-shadow: 0 0 0 2px rgba(234, 76, 137, 0.5); -} - -.btn-dribbble.disabled, .btn-dribbble:disabled { - color: #fff; - background-color: #ea4c89; - border-color: #ea4c89; -} - -.btn-dribbble:not(:disabled):not(.disabled):active, .btn-dribbble:not(:disabled):not(.disabled).active, -.show > .btn-dribbble.dropdown-toggle { - color: #fff; - background-color: #e51e6b; - border-color: #dc1a65; -} - -.btn-dribbble:not(:disabled):not(.disabled):active:focus, .btn-dribbble:not(:disabled):not(.disabled).active:focus, -.show > .btn-dribbble.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(234, 76, 137, 0.5); -} - -.btn-github { - color: #fff; - background-color: #181717; - border-color: #181717; -} - -.btn-github:hover { - color: #fff; - background-color: #040404; - border-color: black; -} - -.btn-github:focus, .btn-github.focus { - box-shadow: 0 0 0 2px rgba(24, 23, 23, 0.5); -} - -.btn-github.disabled, .btn-github:disabled { - color: #fff; - background-color: #181717; - border-color: #181717; -} - -.btn-github:not(:disabled):not(.disabled):active, .btn-github:not(:disabled):not(.disabled).active, -.show > .btn-github.dropdown-toggle { - color: #fff; - background-color: black; - border-color: black; -} - -.btn-github:not(:disabled):not(.disabled):active:focus, .btn-github:not(:disabled):not(.disabled).active:focus, -.show > .btn-github.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(24, 23, 23, 0.5); -} - -.btn-instagram { - color: #fff; - background-color: #e4405f; - border-color: #e4405f; -} - -.btn-instagram:hover { - color: #fff; - background-color: #de1f44; - border-color: #d31e40; -} - -.btn-instagram:focus, .btn-instagram.focus { - box-shadow: 0 0 0 2px rgba(228, 64, 95, 0.5); -} - -.btn-instagram.disabled, .btn-instagram:disabled { - color: #fff; - background-color: #e4405f; - border-color: #e4405f; -} - -.btn-instagram:not(:disabled):not(.disabled):active, .btn-instagram:not(:disabled):not(.disabled).active, -.show > .btn-instagram.dropdown-toggle { - color: #fff; - background-color: #d31e40; - border-color: #c81c3d; -} - -.btn-instagram:not(:disabled):not(.disabled):active:focus, .btn-instagram:not(:disabled):not(.disabled).active:focus, -.show > .btn-instagram.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(228, 64, 95, 0.5); -} - -.btn-pinterest { - color: #fff; - background-color: #bd081c; - border-color: #bd081c; -} - -.btn-pinterest:hover { - color: #fff; - background-color: #980617; - border-color: #8c0615; -} - -.btn-pinterest:focus, .btn-pinterest.focus { - box-shadow: 0 0 0 2px rgba(189, 8, 28, 0.5); -} - -.btn-pinterest.disabled, .btn-pinterest:disabled { - color: #fff; - background-color: #bd081c; - border-color: #bd081c; -} - -.btn-pinterest:not(:disabled):not(.disabled):active, .btn-pinterest:not(:disabled):not(.disabled).active, -.show > .btn-pinterest.dropdown-toggle { - color: #fff; - background-color: #8c0615; - border-color: #800513; -} - -.btn-pinterest:not(:disabled):not(.disabled):active:focus, .btn-pinterest:not(:disabled):not(.disabled).active:focus, -.show > .btn-pinterest.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(189, 8, 28, 0.5); -} - -.btn-vk { - color: #fff; - background-color: #6383a8; - border-color: #6383a8; -} - -.btn-vk:hover { - color: #fff; - background-color: #527093; - border-color: #4d6a8b; -} - -.btn-vk:focus, .btn-vk.focus { - box-shadow: 0 0 0 2px rgba(99, 131, 168, 0.5); -} - -.btn-vk.disabled, .btn-vk:disabled { - color: #fff; - background-color: #6383a8; - border-color: #6383a8; -} - -.btn-vk:not(:disabled):not(.disabled):active, .btn-vk:not(:disabled):not(.disabled).active, -.show > .btn-vk.dropdown-toggle { - color: #fff; - background-color: #4d6a8b; - border-color: #496482; -} - -.btn-vk:not(:disabled):not(.disabled):active:focus, .btn-vk:not(:disabled):not(.disabled).active:focus, -.show > .btn-vk.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(99, 131, 168, 0.5); -} - -.btn-rss { - color: #fff; - background-color: #ffa500; - border-color: #ffa500; -} - -.btn-rss:hover { - color: #fff; - background-color: #d98c00; - border-color: #cc8400; -} - -.btn-rss:focus, .btn-rss.focus { - box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.5); -} - -.btn-rss.disabled, .btn-rss:disabled { - color: #fff; - background-color: #ffa500; - border-color: #ffa500; -} - -.btn-rss:not(:disabled):not(.disabled):active, .btn-rss:not(:disabled):not(.disabled).active, -.show > .btn-rss.dropdown-toggle { - color: #fff; - background-color: #cc8400; - border-color: #bf7c00; -} - -.btn-rss:not(:disabled):not(.disabled):active:focus, .btn-rss:not(:disabled):not(.disabled).active:focus, -.show > .btn-rss.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.5); -} - -.btn-flickr { - color: #fff; - background-color: #0063dc; - border-color: #0063dc; -} - -.btn-flickr:hover { - color: #fff; - background-color: #0052b6; - border-color: #004ca9; -} - -.btn-flickr:focus, .btn-flickr.focus { - box-shadow: 0 0 0 2px rgba(0, 99, 220, 0.5); -} - -.btn-flickr.disabled, .btn-flickr:disabled { - color: #fff; - background-color: #0063dc; - border-color: #0063dc; -} - -.btn-flickr:not(:disabled):not(.disabled):active, .btn-flickr:not(:disabled):not(.disabled).active, -.show > .btn-flickr.dropdown-toggle { - color: #fff; - background-color: #004ca9; - border-color: #00469c; -} - -.btn-flickr:not(:disabled):not(.disabled):active:focus, .btn-flickr:not(:disabled):not(.disabled).active:focus, -.show > .btn-flickr.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(0, 99, 220, 0.5); -} - -.btn-bitbucket { - color: #fff; - background-color: #0052cc; - border-color: #0052cc; -} - -.btn-bitbucket:hover { - color: #fff; - background-color: #0043a6; - border-color: #003e99; -} - -.btn-bitbucket:focus, .btn-bitbucket.focus { - box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.5); -} - -.btn-bitbucket.disabled, .btn-bitbucket:disabled { - color: #fff; - background-color: #0052cc; - border-color: #0052cc; -} - -.btn-bitbucket:not(:disabled):not(.disabled):active, .btn-bitbucket:not(:disabled):not(.disabled).active, -.show > .btn-bitbucket.dropdown-toggle { - color: #fff; - background-color: #003e99; - border-color: #00388c; -} - -.btn-bitbucket:not(:disabled):not(.disabled):active:focus, .btn-bitbucket:not(:disabled):not(.disabled).active:focus, -.show > .btn-bitbucket.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.5); -} - -.btn-blue { - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.btn-blue:hover { - color: #fff; - background-color: #316cbe; - border-color: #2f66b3; -} - -.btn-blue:focus, .btn-blue.focus { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.5); -} - -.btn-blue.disabled, .btn-blue:disabled { - color: #fff; - background-color: #467fcf; - border-color: #467fcf; -} - -.btn-blue:not(:disabled):not(.disabled):active, .btn-blue:not(:disabled):not(.disabled).active, -.show > .btn-blue.dropdown-toggle { - color: #fff; - background-color: #2f66b3; - border-color: #2c60a9; -} - -.btn-blue:not(:disabled):not(.disabled):active:focus, .btn-blue:not(:disabled):not(.disabled).active:focus, -.show > .btn-blue.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.5); -} - -.btn-indigo { - color: #fff; - background-color: #6574cd; - border-color: #6574cd; -} - -.btn-indigo:hover { - color: #fff; - background-color: #485ac4; - border-color: #3f51c1; -} - -.btn-indigo:focus, .btn-indigo.focus { - box-shadow: 0 0 0 2px rgba(101, 116, 205, 0.5); -} - -.btn-indigo.disabled, .btn-indigo:disabled { - color: #fff; - background-color: #6574cd; - border-color: #6574cd; -} - -.btn-indigo:not(:disabled):not(.disabled):active, .btn-indigo:not(:disabled):not(.disabled).active, -.show > .btn-indigo.dropdown-toggle { - color: #fff; - background-color: #3f51c1; - border-color: #3b4db7; -} - -.btn-indigo:not(:disabled):not(.disabled):active:focus, .btn-indigo:not(:disabled):not(.disabled).active:focus, -.show > .btn-indigo.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(101, 116, 205, 0.5); -} - -.btn-purple { - color: #fff; - background-color: #a55eea; - border-color: #a55eea; -} - -.btn-purple:hover { - color: #fff; - background-color: #923ce6; - border-color: #8c31e4; -} - -.btn-purple:focus, .btn-purple.focus { - box-shadow: 0 0 0 2px rgba(165, 94, 234, 0.5); -} - -.btn-purple.disabled, .btn-purple:disabled { - color: #fff; - background-color: #a55eea; - border-color: #a55eea; -} - -.btn-purple:not(:disabled):not(.disabled):active, .btn-purple:not(:disabled):not(.disabled).active, -.show > .btn-purple.dropdown-toggle { - color: #fff; - background-color: #8c31e4; - border-color: #8526e3; -} - -.btn-purple:not(:disabled):not(.disabled):active:focus, .btn-purple:not(:disabled):not(.disabled).active:focus, -.show > .btn-purple.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(165, 94, 234, 0.5); -} - -.btn-pink { - color: #fff; - background-color: #f66d9b; - border-color: #f66d9b; -} - -.btn-pink:hover { - color: #fff; - background-color: #f44982; - border-color: #f33d7a; -} - -.btn-pink:focus, .btn-pink.focus { - box-shadow: 0 0 0 2px rgba(246, 109, 155, 0.5); -} - -.btn-pink.disabled, .btn-pink:disabled { - color: #fff; - background-color: #f66d9b; - border-color: #f66d9b; -} - -.btn-pink:not(:disabled):not(.disabled):active, .btn-pink:not(:disabled):not(.disabled).active, -.show > .btn-pink.dropdown-toggle { - color: #fff; - background-color: #f33d7a; - border-color: #f23172; -} - -.btn-pink:not(:disabled):not(.disabled):active:focus, .btn-pink:not(:disabled):not(.disabled).active:focus, -.show > .btn-pink.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(246, 109, 155, 0.5); -} - -.btn-red { - color: #fff; - background-color: #cd201f; - border-color: #cd201f; -} - -.btn-red:hover { - color: #fff; - background-color: #ac1b1a; - border-color: #a11918; -} - -.btn-red:focus, .btn-red.focus { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.5); -} - -.btn-red.disabled, .btn-red:disabled { - color: #fff; - background-color: #cd201f; - border-color: #cd201f; -} - -.btn-red:not(:disabled):not(.disabled):active, .btn-red:not(:disabled):not(.disabled).active, -.show > .btn-red.dropdown-toggle { - color: #fff; - background-color: #a11918; - border-color: #961717; -} - -.btn-red:not(:disabled):not(.disabled):active:focus, .btn-red:not(:disabled):not(.disabled).active:focus, -.show > .btn-red.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(205, 32, 31, 0.5); -} - -.btn-orange { - color: #fff; - background-color: #fd9644; - border-color: #fd9644; -} - -.btn-orange:hover { - color: #fff; - background-color: #fd811e; - border-color: #fc7a12; -} - -.btn-orange:focus, .btn-orange.focus { - box-shadow: 0 0 0 2px rgba(253, 150, 68, 0.5); -} - -.btn-orange.disabled, .btn-orange:disabled { - color: #fff; - background-color: #fd9644; - border-color: #fd9644; -} - -.btn-orange:not(:disabled):not(.disabled):active, .btn-orange:not(:disabled):not(.disabled).active, -.show > .btn-orange.dropdown-toggle { - color: #fff; - background-color: #fc7a12; - border-color: #fc7305; -} - -.btn-orange:not(:disabled):not(.disabled):active:focus, .btn-orange:not(:disabled):not(.disabled).active:focus, -.show > .btn-orange.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(253, 150, 68, 0.5); -} - -.btn-yellow { - color: #fff; - background-color: #f1c40f; - border-color: #f1c40f; -} - -.btn-yellow:hover { - color: #fff; - background-color: #cea70c; - border-color: #c29d0b; -} - -.btn-yellow:focus, .btn-yellow.focus { - box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.5); -} - -.btn-yellow.disabled, .btn-yellow:disabled { - color: #fff; - background-color: #f1c40f; - border-color: #f1c40f; -} - -.btn-yellow:not(:disabled):not(.disabled):active, .btn-yellow:not(:disabled):not(.disabled).active, -.show > .btn-yellow.dropdown-toggle { - color: #fff; - background-color: #c29d0b; - border-color: #b6940b; -} - -.btn-yellow:not(:disabled):not(.disabled):active:focus, .btn-yellow:not(:disabled):not(.disabled).active:focus, -.show > .btn-yellow.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.5); -} - -.btn-green { - color: #fff; - background-color: #5eba00; - border-color: #5eba00; -} - -.btn-green:hover { - color: #fff; - background-color: #4b9400; - border-color: #448700; -} - -.btn-green:focus, .btn-green.focus { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.5); -} - -.btn-green.disabled, .btn-green:disabled { - color: #fff; - background-color: #5eba00; - border-color: #5eba00; -} - -.btn-green:not(:disabled):not(.disabled):active, .btn-green:not(:disabled):not(.disabled).active, -.show > .btn-green.dropdown-toggle { - color: #fff; - background-color: #448700; - border-color: #3e7a00; -} - -.btn-green:not(:disabled):not(.disabled):active:focus, .btn-green:not(:disabled):not(.disabled).active:focus, -.show > .btn-green.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(94, 186, 0, 0.5); -} - -.btn-teal { - color: #fff; - background-color: #2bcbba; - border-color: #2bcbba; -} - -.btn-teal:hover { - color: #fff; - background-color: #24ab9d; - border-color: #22a193; -} - -.btn-teal:focus, .btn-teal.focus { - box-shadow: 0 0 0 2px rgba(43, 203, 186, 0.5); -} - -.btn-teal.disabled, .btn-teal:disabled { - color: #fff; - background-color: #2bcbba; - border-color: #2bcbba; -} - -.btn-teal:not(:disabled):not(.disabled):active, .btn-teal:not(:disabled):not(.disabled).active, -.show > .btn-teal.dropdown-toggle { - color: #fff; - background-color: #22a193; - border-color: #20968a; -} - -.btn-teal:not(:disabled):not(.disabled):active:focus, .btn-teal:not(:disabled):not(.disabled).active:focus, -.show > .btn-teal.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(43, 203, 186, 0.5); -} - -.btn-cyan { - color: #fff; - background-color: #17a2b8; - border-color: #17a2b8; -} - -.btn-cyan:hover { - color: #fff; - background-color: #138496; - border-color: #117a8b; -} - -.btn-cyan:focus, .btn-cyan.focus { - box-shadow: 0 0 0 2px rgba(23, 162, 184, 0.5); -} - -.btn-cyan.disabled, .btn-cyan:disabled { - color: #fff; - background-color: #17a2b8; - border-color: #17a2b8; -} - -.btn-cyan:not(:disabled):not(.disabled):active, .btn-cyan:not(:disabled):not(.disabled).active, -.show > .btn-cyan.dropdown-toggle { - color: #fff; - background-color: #117a8b; - border-color: #10707f; -} - -.btn-cyan:not(:disabled):not(.disabled):active:focus, .btn-cyan:not(:disabled):not(.disabled).active:focus, -.show > .btn-cyan.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(23, 162, 184, 0.5); -} - -.btn-white { - color: #495057; - background-color: #fff; - border-color: #fff; -} - -.btn-white:hover { - color: #495057; - background-color: #ececec; - border-color: #e6e5e5; -} - -.btn-white:focus, .btn-white.focus { - box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); -} - -.btn-white.disabled, .btn-white:disabled { - color: #495057; - background-color: #fff; - border-color: #fff; -} - -.btn-white:not(:disabled):not(.disabled):active, .btn-white:not(:disabled):not(.disabled).active, -.show > .btn-white.dropdown-toggle { - color: #495057; - background-color: #e6e5e5; - border-color: #dfdfdf; -} - -.btn-white:not(:disabled):not(.disabled):active:focus, .btn-white:not(:disabled):not(.disabled).active:focus, -.show > .btn-white.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); -} - -.btn-gray { - color: #fff; - background-color: #868e96; - border-color: #868e96; -} - -.btn-gray:hover { - color: #fff; - background-color: #727b84; - border-color: #6c757d; -} - -.btn-gray:focus, .btn-gray.focus { - box-shadow: 0 0 0 2px rgba(134, 142, 150, 0.5); -} - -.btn-gray.disabled, .btn-gray:disabled { - color: #fff; - background-color: #868e96; - border-color: #868e96; -} - -.btn-gray:not(:disabled):not(.disabled):active, .btn-gray:not(:disabled):not(.disabled).active, -.show > .btn-gray.dropdown-toggle { - color: #fff; - background-color: #6c757d; - border-color: #666e76; -} - -.btn-gray:not(:disabled):not(.disabled):active:focus, .btn-gray:not(:disabled):not(.disabled).active:focus, -.show > .btn-gray.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(134, 142, 150, 0.5); -} - -.btn-gray-dark { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} - -.btn-gray-dark:hover { - color: #fff; - background-color: #23272b; - border-color: #1d2124; -} - -.btn-gray-dark:focus, .btn-gray-dark.focus { - box-shadow: 0 0 0 2px rgba(52, 58, 64, 0.5); -} - -.btn-gray-dark.disabled, .btn-gray-dark:disabled { - color: #fff; - background-color: #343a40; - border-color: #343a40; -} - -.btn-gray-dark:not(:disabled):not(.disabled):active, .btn-gray-dark:not(:disabled):not(.disabled).active, -.show > .btn-gray-dark.dropdown-toggle { - color: #fff; - background-color: #1d2124; - border-color: #171a1d; -} - -.btn-gray-dark:not(:disabled):not(.disabled):active:focus, .btn-gray-dark:not(:disabled):not(.disabled).active:focus, -.show > .btn-gray-dark.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(52, 58, 64, 0.5); -} - -.btn-azure { - color: #fff; - background-color: #45aaf2; - border-color: #45aaf2; -} - -.btn-azure:hover { - color: #fff; - background-color: #219af0; - border-color: #1594ef; -} - -.btn-azure:focus, .btn-azure.focus { - box-shadow: 0 0 0 2px rgba(69, 170, 242, 0.5); -} - -.btn-azure.disabled, .btn-azure:disabled { - color: #fff; - background-color: #45aaf2; - border-color: #45aaf2; -} - -.btn-azure:not(:disabled):not(.disabled):active, .btn-azure:not(:disabled):not(.disabled).active, -.show > .btn-azure.dropdown-toggle { - color: #fff; - background-color: #1594ef; - border-color: #108ee7; -} - -.btn-azure:not(:disabled):not(.disabled):active:focus, .btn-azure:not(:disabled):not(.disabled).active:focus, -.show > .btn-azure.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(69, 170, 242, 0.5); -} - -.btn-lime { - color: #fff; - background-color: #7bd235; - border-color: #7bd235; -} - -.btn-lime:hover { - color: #fff; - background-color: #69b829; - border-color: #63ad27; -} - -.btn-lime:focus, .btn-lime.focus { - box-shadow: 0 0 0 2px rgba(123, 210, 53, 0.5); -} - -.btn-lime.disabled, .btn-lime:disabled { - color: #fff; - background-color: #7bd235; - border-color: #7bd235; -} - -.btn-lime:not(:disabled):not(.disabled):active, .btn-lime:not(:disabled):not(.disabled).active, -.show > .btn-lime.dropdown-toggle { - color: #fff; - background-color: #63ad27; - border-color: #5da324; -} - -.btn-lime:not(:disabled):not(.disabled):active:focus, .btn-lime:not(:disabled):not(.disabled).active:focus, -.show > .btn-lime.dropdown-toggle:focus { - box-shadow: 0 0 0 2px rgba(123, 210, 53, 0.5); -} - -.btn-option { - background: transparent; - color: #9aa0ac; -} - -.btn-option:hover { - color: #6e7687; -} - -.btn-option:focus { - box-shadow: none; - color: #6e7687; -} - -.btn-sm, .btn-group-sm > .btn { - font-size: 0.75rem; - min-width: 1.625rem; -} - -.btn-lg, .btn-group-lg > .btn { - font-size: 1rem; - min-width: 2.75rem; - font-weight: 400; -} - -.btn-list { - margin-bottom: -.5rem; - font-size: 0; -} - -.btn-list > .btn, -.btn-list > .dropdown { - margin-bottom: .5rem; -} - -.btn-list > .btn:not(:last-child), -.btn-list > .dropdown:not(:last-child) { - margin-left: .5rem; -} - -.btn-loading { - color: transparent !important; - pointer-events: none; - position: relative; -} - -.btn-loading:after { - content: ''; - -webkit-animation: loader 500ms infinite linear; - animation: loader 500ms infinite linear; - border: 2px solid #fff; - border-radius: 50%; - border-left-color: transparent !important; - border-top-color: transparent !important; - display: block; - height: 1.4em; - width: 1.4em; - position: absolute; - right: calc(50% - (1.4em / 2)); - top: calc(50% - (1.4em / 2)); - -webkit-transform-origin: center; - transform-origin: center; - position: absolute !important; -} - -.btn-loading.btn-sm:after, .btn-group-sm > .btn-loading.btn:after { - height: 1em; - width: 1em; - right: calc(50% - (1em / 2)); - top: calc(50% - (1em / 2)); -} - -.btn-loading.btn-secondary:after { - border-color: #495057; -} - -.alert { - font-size: 0.9375rem; -} - -.alert-icon { - padding-right: 3rem; -} - -.alert-icon > i { - color: inherit !important; - font-size: 1rem; - position: absolute; - top: 1rem; - right: 1rem; -} - -.alert-avatar { - padding-right: 3.75rem; -} - -.alert-avatar .avatar { - position: absolute; - top: .5rem; - right: .75rem; -} - -.close { - font-size: 1rem; - line-height: 1.5; - transition: .3s color; -} - -.close:before { - content: '\ea00'; - font-family: "feather"; -} - -.badge { - color: #fff; -} - -.badge-default { - background: #e9ecef; - color: #868e96; -} - -.table thead th, .text-wrap table thead th { - border-top: 0; - border-bottom-width: 1px; - padding-top: .5rem; - padding-bottom: .5rem; -} - -.table th, .text-wrap table th { - color: #9aa0ac; - text-transform: uppercase; - font-size: 0.875rem; - font-weight: 400; -} - -.table-md th, -.table-md td { - padding: .5rem; -} - -.table-vcenter td, -.table-vcenter th { - vertical-align: middle; -} - -.table-center td, -.table-center th { - text-align: center; -} - -.table-striped tbody tr:nth-of-type(odd) { - background: transparent; -} - -.table-striped tbody tr:nth-of-type(even) { - background-color: rgba(0, 0, 0, 0.02); -} - -.table-calendar { - margin: 0 0 .75rem; -} - -.table-calendar td, -.table-calendar th { - border: 0; - text-align: center; - padding: 0 !important; - width: 14.28571429%; - line-height: 2.5rem; -} - -.table-calendar td { - border-top: 0; -} - -.table-calendar-link { - line-height: 2rem; - min-width: calc(2rem + 2px); - display: inline-block; - border-radius: 3px; - background: #f8f9fa; - color: #495057; - font-weight: 600; - transition: .3s background, .3s color; - position: relative; -} - -.table-calendar-link:before { - content: ''; - width: 4px; - height: 4px; - position: absolute; - right: .25rem; - top: .25rem; - border-radius: 50px; - background: #467fcf; -} - -.table-calendar-link:hover { - color: #fff; - text-decoration: none; - background: #467fcf; - transition: .3s background; -} - -.table-calendar-link:hover:before { - background: #fff; -} - -.table-header { - cursor: pointer; - transition: .3s color; -} - -.table-header:hover { - color: #495057 !important; -} - -.table-header:after { - content: '\f0dc'; - font-family: FontAwesome; - display: inline-block; - margin-right: .5rem; - font-size: .75rem; -} - -.table-header-asc { - color: #495057 !important; -} - -.table-header-asc:after { - content: '\f0de'; -} - -.table-header-desc { - color: #495057 !important; -} - -.table-header-desc:after { - content: '\f0dd'; -} - -.page-breadcrumb { - background: none; - padding: 0; - margin: 1rem 0 0; - font-size: 0.875rem; -} - -@media (min-width: 768px) { - .page-breadcrumb { - margin: -.5rem 0 0; - } -} - -.page-breadcrumb .breadcrumb-item { - color: #9aa0ac; -} - -.page-breadcrumb .breadcrumb-item.active { - color: #6e7687; -} - -.pagination-simple .page-item .page-link { - background: none; - border: none; -} - -.pagination-simple .page-item.active .page-link { - color: #495057; - font-weight: 700; -} - -.pagination-pager .page-prev { - margin-left: auto; -} - -.pagination-pager .page-next { - margin-right: auto; -} - -.page-total-text { - margin-left: 1rem; - -ms-flex-item-align: center; - align-self: center; - color: #6e7687; -} - -.card { - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); - position: relative; - margin-bottom: 1.5rem; - width: 100%; -} - -.card .card { - box-shadow: none; -} - -@media print { - .card { - box-shadow: none; - border: none; - } -} - -.card-body { - -ms-flex: 1 1 auto; - flex: 1 1 auto; - margin: 0; - padding: 1.5rem 1.5rem; - position: relative; -} - -.card-body + .card-body { - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.card-body > :last-child { - margin-bottom: 0; -} - -@media print { - .card-body { - padding: 0; - } -} - -.card-body-scrollable { - overflow: auto; -} - -.card-footer, -.card-bottom { - padding: 1rem 1.5rem; - background: none; -} - -.card-footer { - border-top: 1px solid rgba(0, 40, 100, 0.12); - color: #6e7687; -} - -.card-header { - background: none; - padding: 0.5rem 1.5rem; - display: -ms-flexbox; - display: flex; - min-height: 3.5rem; - -ms-flex-align: center; - align-items: center; -} - -.card-header .card-title { - margin-bottom: 0; -} - -.card-header.border-0 + .card-body { - padding-top: 0; -} - -@media print { - .card-header { - display: none; - } -} - -.card-img-top { - border-top-right-radius: 3px; - border-top-left-radius: 3px; -} - -.card-img-overlay { - background-color: rgba(0, 0, 0, 0.4); - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; -} - -.card-title { - font-size: 1.125rem; - line-height: 1.2; - font-weight: 400; - margin-bottom: 1.5rem; -} - -.card-title a { - color: inherit; -} - -.card-title:only-child { - margin-bottom: 0; -} - -.card-title small, -.card-subtitle { - color: #9aa0ac; - font-size: 0.875rem; - display: block; - margin: -.75rem 0 1rem; - line-height: 1.1; - font-weight: 400; -} - -.card-table { - margin-bottom: 0; -} - -.card-table tr:first-child td, -.card-table tr:first-child th { - border-top: 0; -} - -.card-table tr td:first-child, -.card-table tr th:first-child { - padding-right: 1.5rem; -} - -.card-table tr td:last-child, -.card-table tr th:last-child { - padding-left: 1.5rem; -} - -.card-body + .card-table { - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.card-profile .card-header { - height: 9rem; - background-size: cover; -} - -.card-profile-img { - max-width: 6rem; - margin-top: -5rem; - margin-bottom: 1rem; - border: 3px solid #fff; - border-radius: 100%; - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); -} - -.card-link + .card-link { - margin-right: 1rem; -} - -.card-body + .card-list-group { - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.card-list-group .list-group-item { - border-left: 0; - border-right: 0; - border-radius: 0; - padding-right: 1.5rem; - padding-left: 1.5rem; -} - -.card-list-group .list-group-item:last-child { - border-bottom: 0; -} - -.card-list-group .list-group-item:first-child { - border-top: 0; -} - -.card-header-tabs { - margin: -1.25rem 0; - border-bottom: 0; - line-height: 2rem; -} - -.card-header-tabs .nav-item { - margin-bottom: 1px; -} - -.card-header-pills { - margin: -.75rem 0; -} - -.card-aside { - -ms-flex-direction: row; - flex-direction: row; -} - -.card-aside-column { - min-width: 5rem; - width: 30%; - -ms-flex: 0 0 30%; - flex: 0 0 30%; - border-top-right-radius: 3px; - border-bottom-right-radius: 3px; - background: no-repeat center/cover; -} - -.card-value { - font-size: 2.5rem; - line-height: 3.4rem; - height: 3.4rem; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - font-weight: 400; -} - -.card-value i { - vertical-align: middle; -} - -.card-chart-bg { - height: 4rem; - margin-top: -1rem; - position: relative; - z-index: 1; - overflow: hidden; -} - -.card-options { - margin-right: auto; - display: -ms-flexbox; - display: flex; - -ms-flex-order: 100; - order: 100; - margin-left: -.5rem; - color: #9aa0ac; - -ms-flex-item-align: center; - align-self: center; -} - -.card-options a:not(.btn) { - margin-right: .5rem; - color: #9aa0ac; - display: inline-block; - min-width: 1rem; -} - -.card-options a:not(.btn):hover { - text-decoration: none; - color: #6e7687; -} - -.card-options a:not(.btn) i { - font-size: 1rem; - vertical-align: middle; -} - -.card-options .dropdown-toggle:after { - display: none; -} - -/* -Card options - */ -.card-collapsed > :not(.card-header):not(.card-status) { - display: none; -} - -.card-collapsed .card-options-collapse i:before { - content: '\e92d'; -} - -.card-fullscreen .card-options-fullscreen i:before { - content: '\e992'; -} - -.card-fullscreen .card-options-remove { - display: none; -} - -/* -Card maps - */ -.card-map { - height: 15rem; - background: #e9ecef; -} - -.card-map-placeholder { - background: no-repeat center; -} - -/** -Card tabs - */ -.card-tabs { - display: -ms-flexbox; - display: flex; -} - -.card-tabs-bottom .card-tabs-item { - border: 0; - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.card-tabs-bottom .card-tabs-item.active { - border-top-color: #fff; -} - -.card-tabs-item { - -ms-flex: 1 1 auto; - flex: 1 1 auto; - display: block; - padding: 1rem 1.5rem; - border-bottom: 1px solid rgba(0, 40, 100, 0.12); - color: inherit; - overflow: hidden; -} - -a.card-tabs-item { - background: #fafbfc; -} - -a.card-tabs-item:hover { - text-decoration: none; - color: inherit; -} - -a.card-tabs-item:focus { - z-index: 1; -} - -a.card-tabs-item.active { - background: #fff; - border-bottom-color: #fff; -} - -.card-tabs-item + .card-tabs-item { - border-right: 1px solid rgba(0, 40, 100, 0.12); -} - -/** -Card status - */ -.card-status { - position: absolute; - top: -1px; - right: -1px; - left: -1px; - height: 3px; - border-radius: 3px 3px 0 0; - background: rgba(0, 40, 100, 0.12); -} - -.card-status-left { - left: auto; - bottom: 0; - height: auto; - width: 3px; - border-radius: 0 3px 3px 0; -} - -/** -Card icon - */ -.card-icon { - width: 3rem; - font-size: 2.5rem; - line-height: 3rem; - text-align: center; -} - -/** -Card fullscreen - */ -.card-fullscreen { - position: fixed; - top: 0; - right: 0; - left: 0; - bottom: 0; - z-index: 1; - margin: 0; -} - -/** -Card alert - */ -.card-alert { - border-radius: 0; - margin: -1px -1px 0; -} - -.card-category { - font-size: 0.875rem; - text-transform: uppercase; - text-align: center; - font-weight: 600; - letter-spacing: .05em; - margin: 0 0 .5rem; -} - -.popover { - -webkit-filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1)); - filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1)); -} - -.popover.bs-popover-top, .popover.bs-popover-auto[x-placement^="top"] { - margin-bottom: 0.625rem; -} - -.popover .arrow { - margin-right: calc(.25rem + 2px); -} - -.dropdown { - display: inline-block; -} - -.dropdown-menu { - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); - min-width: 12rem; -} - -.dropdown-item { - color: #6e7687; -} - -.dropdown-menu-arrow:before { - position: absolute; - top: -6px; - right: 12px; - display: inline-block; - border-left: 5px solid transparent; - border-bottom: 5px solid rgba(0, 40, 100, 0.12); - border-right: 5px solid transparent; - border-bottom-color: rgba(0, 0, 0, 0.2); - content: ''; -} - -.dropdown-menu-arrow:after { - position: absolute; - top: -5px; - right: 12px; - display: inline-block; - border-left: 5px solid transparent; - border-bottom: 5px solid #fff; - border-right: 5px solid transparent; - content: ''; -} - -.dropdown-menu-arrow.dropdown-menu-right:before, .dropdown-menu-arrow.dropdown-menu-right:after { - right: auto; - left: 12px; -} - -.dropdown-toggle { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - cursor: pointer; -} - -.dropdown-toggle:after { - vertical-align: 0.155em; -} - -.dropdown-toggle:empty:after { - margin-right: 0; -} - -.dropdown-icon { - color: #9aa0ac; - margin-left: .5rem; - margin-right: -.5rem; - width: 1em; - display: inline-block; - text-align: center; - vertical-align: -1px; -} - -.list-inline-dots .list-inline-item + .list-inline-item:before { - content: '· '; - margin-right: -2px; - margin-left: 3px; -} - -.list-separated-item { - padding: 1rem 0; -} - -.list-separated-item:first-child { - padding-top: 0; -} - -.list-separated-item:last-child { - padding-bottom: 0; -} - -.list-separated-item + .list-separated-item { - border-top: 1px solid rgba(0, 40, 100, 0.12); -} - -.list-group-item.active .icon { - color: inherit !important; -} - -.list-group-transparent .list-group-item { - background: none; - border: 0; - padding: .5rem 1rem; - border-radius: 3px; -} - -.list-group-transparent .list-group-item.active { - background: rgba(70, 127, 207, 0.06); - font-weight: 600; -} - -.avatar { - width: 2rem; - height: 2rem; - line-height: 2rem; - border-radius: 50%; - display: inline-block; - background: #ced4da no-repeat center/cover; - position: relative; - text-align: center; - color: #868e96; - font-weight: 600; - vertical-align: bottom; - font-size: .875rem; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.avatar i { - font-size: 125%; - vertical-align: sub; -} - -.avatar-status { - position: absolute; - left: -2px; - bottom: -2px; - width: .75rem; - height: .75rem; - border: 2px solid #fff; - background: #868e96; - border-radius: 50%; -} - -.avatar-sm { - width: 1.5rem; - height: 1.5rem; - line-height: 1.5rem; - font-size: .75rem; -} - -.avatar-md { - width: 2.5rem; - height: 2.5rem; - line-height: 2.5rem; - font-size: 1rem; -} - -.avatar-lg { - width: 3rem; - height: 3rem; - line-height: 3rem; - font-size: 1.25rem; -} - -.avatar-xl { - width: 4rem; - height: 4rem; - line-height: 4rem; - font-size: 1.75rem; -} - -.avatar-xxl { - width: 5rem; - height: 5rem; - line-height: 5rem; - font-size: 2rem; -} - -.avatar-placeholder { - background: #ced4da url('data:image/svg+xml;charset=utf8,') no-repeat center/80%; -} - -.avatar-list { - margin: 0 0 -.5rem; - padding: 0; - font-size: 0; -} - -.avatar-list .avatar { - margin-bottom: .5rem; -} - -.avatar-list .avatar:not(:last-child) { - margin-left: .5rem; -} - -.avatar-list-stacked .avatar { - margin-left: -.8em !important; -} - -.avatar-list-stacked .avatar { - box-shadow: 0 0 0 2px #fff; -} - -.avatar-blue { - background-color: #c8d9f1; - color: #467fcf; -} - -.avatar-indigo { - background-color: #d1d5f0; - color: #6574cd; -} - -.avatar-purple { - background-color: #e4cff9; - color: #a55eea; -} - -.avatar-pink { - background-color: #fcd3e1; - color: #f66d9b; -} - -.avatar-red { - background-color: #f0bcbc; - color: #cd201f; -} - -.avatar-orange { - background-color: #fee0c7; - color: #fd9644; -} - -.avatar-yellow { - background-color: #fbedb7; - color: #f1c40f; -} - -.avatar-green { - background-color: #cfeab3; - color: #5eba00; -} - -.avatar-teal { - background-color: #bfefea; - color: #2bcbba; -} - -.avatar-cyan { - background-color: #b9e3ea; - color: #17a2b8; -} - -.avatar-white { - background-color: white; - color: #fff; -} - -.avatar-gray { - background-color: #dbdde0; - color: #868e96; -} - -.avatar-gray-dark { - background-color: #c2c4c6; - color: #343a40; -} - -.avatar-azure { - background-color: #c7e6fb; - color: #45aaf2; -} - -.avatar-lime { - background-color: #d7f2c2; - color: #7bd235; -} - -.product-price { - font-size: 1rem; -} - -.product-price strong { - font-size: 1.5rem; -} - -@-webkit-keyframes indeterminate { - 0% { - right: -35%; - left: 100%; - } - 100%, 60% { - right: 100%; - left: -90%; - } -} - -@keyframes indeterminate { - 0% { - right: -35%; - left: 100%; - } - 100%, 60% { - right: 100%; - left: -90%; - } -} - -@-webkit-keyframes indeterminate-short { - 0% { - right: -200%; - left: 100%; - } - 100%, 60% { - right: 107%; - left: -8%; - } -} - -@keyframes indeterminate-short { - 0% { - right: -200%; - left: 100%; - } - 100%, 60% { - right: 107%; - left: -8%; - } -} - -.progress { - position: relative; -} - -.progress-xs, -.progress-xs .progress-bar { - height: .25rem; -} - -.progress-sm, -.progress-sm .progress-bar { - height: .5rem; -} - -.progress-bar-indeterminate:after, .progress-bar-indeterminate:before { - content: ''; - position: absolute; - background-color: inherit; - right: 0; - will-change: left, right; - top: 0; - bottom: 0; -} - -.progress-bar-indeterminate:before { - -webkit-animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; -} - -.progress-bar-indeterminate:after { - -webkit-animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite; - animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite; - -webkit-animation-delay: 1.15s; - animation-delay: 1.15s; -} - -@-webkit-keyframes loader { - from { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - to { - -webkit-transform: rotate(-360deg); - transform: rotate(-360deg); - } -} - -@keyframes loader { - from { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - to { - -webkit-transform: rotate(-360deg); - transform: rotate(-360deg); - } -} - -/** -Dimmer -*/ -.dimmer { - position: relative; -} - -.dimmer .loader { - display: none; - margin: 0 auto; - position: absolute; - top: 50%; - right: 0; - left: 0; - -webkit-transform: translateY(-50%); - transform: translateY(-50%); -} - -.dimmer.active .loader { - display: block; -} - -.dimmer.active .dimmer-content { - opacity: .04; - pointer-events: none; -} - -/** -Loader -*/ -.loader { - display: block; - position: relative; - height: 2.5rem; - width: 2.5rem; - color: #467fcf; -} - -.loader:before, .loader:after { - width: 2.5rem; - height: 2.5rem; - margin: -1.25rem -1.25rem 0 0; - position: absolute; - content: ''; - top: 50%; - right: 50%; -} - -.loader:before { - border-radius: 50%; - border: 3px solid currentColor; - opacity: .15; -} - -.loader:after { - -webkit-animation: loader .6s linear; - animation: loader .6s linear; - -webkit-animation-iteration-count: infinite; - animation-iteration-count: infinite; - border-radius: 50%; - border: 3px solid; - border-color: transparent; - border-top-color: currentColor; - box-shadow: 0 0 0 1px transparent; -} - -.icons-list { - list-style: none; - margin: 0 0 -1px -1px; - padding: 0; - display: -ms-flexbox; - display: flex; - -ms-flex-wrap: wrap; - flex-wrap: wrap; -} - -.icons-list > li { - -ms-flex: 1 0 4rem; - flex: 1 0 4rem; -} - -.icons-list-wrap { - overflow: hidden; -} - -.icons-list-item { - text-align: center; - height: 4rem; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - border-left: 1px solid rgba(0, 40, 100, 0.12); - border-bottom: 1px solid rgba(0, 40, 100, 0.12); -} - -.icons-list-item i { - font-size: 1.25rem; -} - -.img-gallery { - margin-left: -.25rem; - margin-right: -.25rem; - margin-bottom: -.5rem; -} - -.img-gallery > .col, -.img-gallery > [class*="col-"] { - padding-right: .25rem; - padding-left: .25rem; - padding-bottom: .5rem; -} - -.link-overlay { - position: relative; -} - -.link-overlay:hover .link-overlay-bg { - opacity: 1; -} - -.link-overlay-bg { - position: absolute; - top: 0; - right: 0; - left: 0; - bottom: 0; - background: rgba(70, 127, 207, 0.8); - display: -ms-flexbox; - display: flex; - color: #fff; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - font-size: 1.25rem; - opacity: 0; - transition: .3s opacity; -} - -.media-icon { - width: 2rem; - height: 2rem; - line-height: 2rem; - text-align: center; - border-radius: 100%; -} - -.media-list { - margin: 0; - padding: 0; - list-style: none; -} - -textarea[cols] { - height: auto; -} - -.form-group { - display: block; -} - -.form-label { - display: block; - margin-bottom: .375rem; - font-weight: 600; - font-size: 0.875rem; -} - -.form-label-small { - float: left; - font-weight: 400; - font-size: 87.5%; -} - -.form-footer { - margin-top: 2rem; -} - -.custom-control { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.custom-controls-stacked .custom-control { - margin-bottom: .25rem; -} - -.custom-control-label { - vertical-align: middle; -} - -.custom-control-label:before { - border: 1px solid rgba(0, 40, 100, 0.12); - background-color: #fff; - background-size: .5rem; -} - -.custom-control-description { - line-height: 1.5rem; -} - -.input-group-prepend, -.input-group-append, -.input-group-btn { - font-size: 0.9375rem; -} - -.input-group-prepend > .btn, -.input-group-append > .btn, -.input-group-btn > .btn { - height: 100%; - border-color: rgba(0, 40, 100, 0.12); -} - -.input-group-prepend > .input-group-text { - border-left: 0; -} - -.input-group-append > .input-group-text { - border-right: 0; -} - -/** -Icon input - */ -.input-icon { - position: relative; -} - -.input-icon .form-control:not(:last-child) { - padding-left: 2.5rem; -} - -.input-icon .form-control:not(:first-child) { - padding-right: 2.5rem; -} - -.input-icon-addon { - position: absolute; - top: 0; - bottom: 0; - right: 0; - color: #9aa0ac; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; - min-width: 2.5rem; - pointer-events: none; -} - -.input-icon-addon:last-child { - right: auto; - left: 0; -} - -.form-fieldset { - background: #f8f9fa; - border: 1px solid #e9ecef; - padding: 1rem; - border-radius: 3px; - margin-bottom: 1rem; -} - -.form-required { - color: #cd201f; -} - -.form-required:before { - content: ' '; -} - -.state-valid { - padding-left: 2rem; - background: url("data:image/svg+xml;charset=utf8,") no-repeat center right 0.5rem/1rem; -} - -.state-invalid { - padding-left: 2rem; - background: url("data:image/svg+xml;charset=utf8,") no-repeat center right 0.5rem/1rem; -} - -.form-help { - display: inline-block; - width: 1rem; - height: 1rem; - text-align: center; - line-height: 1rem; - color: #9aa0ac; - background: #f8f9fa; - border-radius: 50%; - font-size: 0.75rem; - transition: .3s background-color, .3s color; - text-decoration: none; - cursor: pointer; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.form-help:hover, .form-help[aria-describedby] { - background: #467fcf; - color: #fff; -} - -.sparkline { - display: inline-block; - height: 2rem; -} - -.jqstooltip { - box-sizing: content-box; - font-family: inherit !important; - background: #333 !important; - border: none !important; - border-radius: 3px; - font-size: 11px !important; - font-weight: 700 !important; - line-height: 1 !important; - padding: 6px !important; -} - -.jqstooltip .jqsfield { - font: inherit !important; -} - -.social-links li a { - background: #f8f8f8; - border-radius: 50%; - color: #9aa0ac; - display: inline-block; - height: 1.75rem; - width: 1.75rem; - line-height: 1.75rem; - text-align: center; -} - -.map, -.chart { - position: relative; - padding-top: 56.25%; -} - -.map-square, -.chart-square { - padding-top: 100%; -} - -.map-content, -.chart-content { - position: absolute; - top: 0; - right: 0; - left: 0; - bottom: 0; -} - -.map-header { - margin-top: -1.5rem; - margin-bottom: 1.5rem; - height: 15rem; - position: relative; - margin-bottom: -1.5rem; -} - -.map-header:before { - content: ''; - position: absolute; - bottom: 0; - right: 0; - left: 0; - height: 10rem; - background: linear-gradient(to bottom, rgba(245, 247, 251, 0) 5%, #f5f7fb 95%); - pointer-events: none; -} - -.map-header-layer { - height: 100%; -} - -.map-static { - height: 120px; - width: 100%; - max-width: 640px; - background-position: center center; - background-size: 640px 120px; -} - -@-webkit-keyframes status-pulse { - 0%, 100% { - opacity: 1; - } - 50% { - opacity: .32; - } -} - -@keyframes status-pulse { - 0%, 100% { - opacity: 1; - } - 50% { - opacity: .32; - } -} - -.status-icon { - content: ''; - width: 0.5rem; - height: 0.5rem; - display: inline-block; - background: currentColor; - border-radius: 50%; - -webkit-transform: translateY(-1px); - transform: translateY(-1px); - margin-left: .375rem; - vertical-align: middle; -} - -.status-animated { - -webkit-animation: 1s status-pulse infinite ease; - animation: 1s status-pulse infinite ease; -} - -.chart-circle { - display: block; - height: 8rem; - width: 8rem; - position: relative; -} - -.chart-circle canvas { - margin: 0 auto; - display: block; - max-width: 100%; - max-height: 100%; -} - -.chart-circle-xs { - height: 2.5rem; - width: 2.5rem; - font-size: .8rem; -} - -.chart-circle-sm { - height: 4rem; - width: 4rem; - font-size: .8rem; -} - -.chart-circle-lg { - height: 10rem; - width: 10rem; - font-size: .8rem; -} - -.chart-circle-value { - position: absolute; - top: 0; - right: 0; - left: 0; - margin-right: auto; - margin-left: auto; - bottom: 0; - display: -ms-flexbox; - display: flex; - -ms-flex-pack: center; - justify-content: center; - -ms-flex-align: center; - align-items: center; - -ms-flex-direction: column; - flex-direction: column; - line-height: 1; -} - -.chart-circle-value small { - display: block; - color: #9aa0ac; - font-size: 0.9375rem; -} - -.chips { - margin: 0 0 -.5rem; -} - -.chips .chip { - margin: 0 0 .5rem .5rem; -} - -.chip { - display: inline-block; - height: 2rem; - line-height: 2rem; - font-size: 0.875rem; - font-weight: 500; - color: #6e7687; - padding: 0 .75rem; - border-radius: 1rem; - background-color: #f8f9fa; - transition: .3s background; -} - -.chip .avatar { - float: right; - margin: 0 -.75rem 0 .5rem; - height: 2rem; - width: 2rem; - border-radius: 50%; -} - -a.chip:hover { - color: inherit; - text-decoration: none; - background-color: #e9ecef; -} - -.stamp { - color: #fff; - background: #868e96; - display: inline-block; - min-width: 2rem; - height: 2rem; - padding: 0 .25rem; - line-height: 2rem; - text-align: center; - border-radius: 3px; - font-weight: 600; -} - -.stamp-md { - min-width: 2.5rem; - height: 2.5rem; - line-height: 2.5rem; -} - -.chat { - outline: 0; - margin: 0; - padding: 0; - list-style-type: none; - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; - -ms-flex-pack: end; - justify-content: flex-end; - min-height: 100%; -} - -.chat-line { - padding: 0; - text-align: left; - position: relative; - display: -ms-flexbox; - display: flex; - -ms-flex-direction: row-reverse; - flex-direction: row-reverse; -} - -.chat-line + .chat-line { - padding-top: 1rem; -} - -.chat-message { - position: relative; - display: inline-block; - background-color: #467fcf; - color: #fff; - font-size: 0.875rem; - padding: .375rem .5rem; - border-radius: 3px; - white-space: normal; - text-align: right; - margin: 0 2.5rem 0 .5rem; - line-height: 1.4; -} - -.chat-message > :last-child { - margin-bottom: 0 !important; -} - -.chat-message:after { - content: ""; - position: absolute; - left: -5px; - top: 7px; - border-bottom: 6px solid transparent; - border-right: 6px solid #467fcf; - border-top: 6px solid transparent; -} - -.chat-message img { - max-width: 100%; -} - -.chat-message p { - margin-bottom: 1em; -} - -.chat-line-friend { - -ms-flex-direction: row; - flex-direction: row; -} - -.chat-line-friend + .chat-line-friend { - margin-top: -.5rem; -} - -.chat-line-friend + .chat-line-friend .chat-author { - visibility: hidden; -} - -.chat-line-friend + .chat-line-friend .chat-message:after { - display: none; -} - -.chat-line-friend .chat-message { - background-color: #f3f3f3; - color: #495057; - margin-right: .5rem; - margin-left: 2.5rem; -} - -.chat-line-friend .chat-message:after { - left: auto; - right: -5px; - border-right-width: 0; - border-left: 5px solid #f3f3f3; -} - -.example { - padding: 1.5rem; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px 3px 0 0; - font-size: 0.9375rem; -} - -.example-bg { - background: #f5f7fb; -} - -.example + .highlight { - border-top: none; - margin-top: 0; - border-radius: 0 0 3px 3px; -} - -.highlight { - margin: 1rem 0 2rem; - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; - font-size: 0.9375rem; - max-height: 40rem; - overflow: auto; - background: #fcfcfc; -} - -.highlight pre { - margin-bottom: 0; - background-color: transparent; -} - -.example-column { - margin: 0 auto; -} - -.example-column > .card:last-of-type { - margin-bottom: 0; -} - -.example-column-1 { - max-width: 20rem; -} - -.example-column-2 { - max-width: 40rem; -} - -.tag { - font-size: 0.75rem; - color: #6e7687; - background-color: #e9ecef; - border-radius: 3px; - padding: 0 .5rem; - line-height: 2em; - display: -ms-inline-flexbox; - display: inline-flex; - cursor: default; - font-weight: 400; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -a.tag { - text-decoration: none; - cursor: pointer; - transition: .3s color, .3s background; -} - -a.tag:hover { - background-color: rgba(110, 118, 135, 0.2); - color: inherit; -} - -.tag-addon { - display: inline-block; - padding: 0 .5rem; - color: inherit; - text-decoration: none; - background: rgba(0, 0, 0, 0.06); - margin: 0 .5rem 0 -.5rem; - text-align: center; - min-width: 1.5rem; -} - -.tag-addon:last-child { - border-top-left-radius: 3px; - border-bottom-left-radius: 3px; -} - -.tag-addon i { - vertical-align: middle; - margin: 0 -.25rem; -} - -a.tag-addon { - text-decoration: none; - cursor: pointer; - transition: .3s color, .3s background; -} - -a.tag-addon:hover { - background: rgba(0, 0, 0, 0.16); - color: inherit; -} - -.tag-avatar { - width: 1.5rem; - height: 1.5rem; - border-radius: 0 3px 3px 0; - margin: 0 -.5rem 0 .5rem; -} - -.tag-blue { - background-color: #467fcf; - color: #fff; -} - -.tag-indigo { - background-color: #6574cd; - color: #fff; -} - -.tag-purple { - background-color: #a55eea; - color: #fff; -} - -.tag-pink { - background-color: #f66d9b; - color: #fff; -} - -.tag-red { - background-color: #cd201f; - color: #fff; -} - -.tag-orange { - background-color: #fd9644; - color: #fff; -} - -.tag-yellow { - background-color: #f1c40f; - color: #fff; -} - -.tag-green { - background-color: #5eba00; - color: #fff; -} - -.tag-teal { - background-color: #2bcbba; - color: #fff; -} - -.tag-cyan { - background-color: #17a2b8; - color: #fff; -} - -.tag-white { - background-color: #fff; - color: #fff; -} - -.tag-gray { - background-color: #868e96; - color: #fff; -} - -.tag-gray-dark { - background-color: #343a40; - color: #fff; -} - -.tag-azure { - background-color: #45aaf2; - color: #fff; -} - -.tag-lime { - background-color: #7bd235; - color: #fff; -} - -.tag-primary { - background-color: #467fcf; - color: #fff; -} - -.tag-secondary { - background-color: #868e96; - color: #fff; -} - -.tag-success { - background-color: #5eba00; - color: #fff; -} - -.tag-info { - background-color: #45aaf2; - color: #fff; -} - -.tag-warning { - background-color: #f1c40f; - color: #fff; -} - -.tag-danger { - background-color: #cd201f; - color: #fff; -} - -.tag-light { - background-color: #f8f9fa; - color: #fff; -} - -.tag-dark { - background-color: #343a40; - color: #fff; -} - -.tag-rounded { - border-radius: 50px; -} - -.tag-rounded .tag-avatar { - border-radius: 50px; -} - -.tags { - margin-bottom: -.5rem; - font-size: 0; -} - -.tags > .tag { - margin-bottom: .5rem; -} - -.tags > .tag:not(:last-child) { - margin-left: .5rem; -} - -.highlight .hll { - background-color: #ffc; -} - -.highlight .c { - color: #999; -} - -.highlight .k { - color: #069; -} - -.highlight .o { - color: #555; -} - -.highlight .cm { - color: #999; -} - -.highlight .cp { - color: #099; -} - -.highlight .c1 { - color: #999; -} - -.highlight .cs { - color: #999; -} - -.highlight .gd { - background-color: #fcc; - border: 1px solid #c00; -} - -.highlight .ge { - font-style: italic; -} - -.highlight .gr { - color: #f00; -} - -.highlight .gh { - color: #030; -} - -.highlight .gi { - background-color: #cfc; - border: 1px solid #0c0; -} - -.highlight .go { - color: #aaa; -} - -.highlight .gp { - color: #009; -} - -.highlight .gu { - color: #030; -} - -.highlight .gt { - color: #9c6; -} - -.highlight .kc { - color: #069; -} - -.highlight .kd { - color: #069; -} - -.highlight .kn { - color: #069; -} - -.highlight .kp { - color: #069; -} - -.highlight .kr { - color: #069; -} - -.highlight .kt { - color: #078; -} - -.highlight .m { - color: #f60; -} - -.highlight .s { - color: #d44950; -} - -.highlight .na { - color: #4f9fcf; -} - -.highlight .nb { - color: #366; -} - -.highlight .nc { - color: #0a8; -} - -.highlight .no { - color: #360; -} - -.highlight .nd { - color: #99f; -} - -.highlight .ni { - color: #999; -} - -.highlight .ne { - color: #c00; -} - -.highlight .nf { - color: #c0f; -} - -.highlight .nl { - color: #99f; -} - -.highlight .nn { - color: #0cf; -} - -.highlight .nt { - color: #2f6f9f; -} - -.highlight .nv { - color: #033; -} - -.highlight .ow { - color: #000; -} - -.highlight .w { - color: #bbb; -} - -.highlight .mf { - color: #f60; -} - -.highlight .mh { - color: #f60; -} - -.highlight .mi { - color: #f60; -} - -.highlight .mo { - color: #f60; -} - -.highlight .sb { - color: #c30; -} - -.highlight .sc { - color: #c30; -} - -.highlight .sd { - font-style: italic; - color: #c30; -} - -.highlight .s2 { - color: #c30; -} - -.highlight .se { - color: #c30; -} - -.highlight .sh { - color: #c30; -} - -.highlight .si { - color: #a00; -} - -.highlight .sx { - color: #c30; -} - -.highlight .sr { - color: #3aa; -} - -.highlight .s1 { - color: #c30; -} - -.highlight .ss { - color: #fc3; -} - -.highlight .bp { - color: #366; -} - -.highlight .vc { - color: #033; -} - -.highlight .vg { - color: #033; -} - -.highlight .vi { - color: #033; -} - -.highlight .il { - color: #f60; -} - -.highlight .css .o, -.highlight .css .o + .nt, -.highlight .css .nt + .nt { - color: #999; -} - -.highlight .language-bash::before, -.highlight .language-sh::before { - color: #009; - content: "$ "; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.highlight .language-powershell::before { - color: #009; - content: "PM> "; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.carousel-item-background { - content: ''; - background: rgba(0, 0, 0, 0.5); - position: absolute; - top: 0; - right: 0; - left: 0; - bottom: 0; -} - -.custom-range { - -ms-flex-align: center; - align-items: center; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - background: none; - cursor: pointer; - display: -ms-flexbox; - display: flex; - height: 100%; - min-height: 2.375rem; - overflow: hidden; - padding: 0; - border: 0; -} - -.custom-range:focus { - box-shadow: none; - outline: none; -} - -.custom-range:focus::-webkit-slider-thumb { - border-color: #467fcf; - background-color: #467fcf; -} - -.custom-range:focus::-moz-range-thumb { - border-color: #467fcf; - background-color: #467fcf; -} - -.custom-range:focus::-ms-thumb { - border-color: #467fcf; - background-color: #467fcf; -} - -.custom-range::-moz-focus-outer { - border: 0; -} - -.custom-range::-webkit-slider-runnable-track { - background: #467fcf; - content: ''; - height: 2px; - pointer-events: none; -} - -.custom-range::-webkit-slider-thumb { - width: 14px; - height: 14px; - -webkit-appearance: none; - appearance: none; - background: #fff; - border-radius: 50px; - box-shadow: -1px 0 0 -6px rgba(0, 50, 126, 0.12), -6px 0 0 -6px rgba(0, 50, 126, 0.12), -7px 0 0 -6px rgba(0, 50, 126, 0.12), -8px 0 0 -6px rgba(0, 50, 126, 0.12), -9px 0 0 -6px rgba(0, 50, 126, 0.12), -10px 0 0 -6px rgba(0, 50, 126, 0.12), -11px 0 0 -6px rgba(0, 50, 126, 0.12), -12px 0 0 -6px rgba(0, 50, 126, 0.12), -13px 0 0 -6px rgba(0, 50, 126, 0.12), -14px 0 0 -6px rgba(0, 50, 126, 0.12), -15px 0 0 -6px rgba(0, 50, 126, 0.12), -16px 0 0 -6px rgba(0, 50, 126, 0.12), -17px 0 0 -6px rgba(0, 50, 126, 0.12), -18px 0 0 -6px rgba(0, 50, 126, 0.12), -19px 0 0 -6px rgba(0, 50, 126, 0.12), -20px 0 0 -6px rgba(0, 50, 126, 0.12), -21px 0 0 -6px rgba(0, 50, 126, 0.12), -22px 0 0 -6px rgba(0, 50, 126, 0.12), -23px 0 0 -6px rgba(0, 50, 126, 0.12), -24px 0 0 -6px rgba(0, 50, 126, 0.12), -25px 0 0 -6px rgba(0, 50, 126, 0.12), -26px 0 0 -6px rgba(0, 50, 126, 0.12), -27px 0 0 -6px rgba(0, 50, 126, 0.12), -28px 0 0 -6px rgba(0, 50, 126, 0.12), -29px 0 0 -6px rgba(0, 50, 126, 0.12), -30px 0 0 -6px rgba(0, 50, 126, 0.12), -31px 0 0 -6px rgba(0, 50, 126, 0.12), -32px 0 0 -6px rgba(0, 50, 126, 0.12), -33px 0 0 -6px rgba(0, 50, 126, 0.12), -34px 0 0 -6px rgba(0, 50, 126, 0.12), -35px 0 0 -6px rgba(0, 50, 126, 0.12), -36px 0 0 -6px rgba(0, 50, 126, 0.12), -37px 0 0 -6px rgba(0, 50, 126, 0.12), -38px 0 0 -6px rgba(0, 50, 126, 0.12), -39px 0 0 -6px rgba(0, 50, 126, 0.12), -40px 0 0 -6px rgba(0, 50, 126, 0.12), -41px 0 0 -6px rgba(0, 50, 126, 0.12), -42px 0 0 -6px rgba(0, 50, 126, 0.12), -43px 0 0 -6px rgba(0, 50, 126, 0.12), -44px 0 0 -6px rgba(0, 50, 126, 0.12), -45px 0 0 -6px rgba(0, 50, 126, 0.12), -46px 0 0 -6px rgba(0, 50, 126, 0.12), -47px 0 0 -6px rgba(0, 50, 126, 0.12), -48px 0 0 -6px rgba(0, 50, 126, 0.12), -49px 0 0 -6px rgba(0, 50, 126, 0.12), -50px 0 0 -6px rgba(0, 50, 126, 0.12), -51px 0 0 -6px rgba(0, 50, 126, 0.12), -52px 0 0 -6px rgba(0, 50, 126, 0.12), -53px 0 0 -6px rgba(0, 50, 126, 0.12), -54px 0 0 -6px rgba(0, 50, 126, 0.12), -55px 0 0 -6px rgba(0, 50, 126, 0.12), -56px 0 0 -6px rgba(0, 50, 126, 0.12), -57px 0 0 -6px rgba(0, 50, 126, 0.12), -58px 0 0 -6px rgba(0, 50, 126, 0.12), -59px 0 0 -6px rgba(0, 50, 126, 0.12), -60px 0 0 -6px rgba(0, 50, 126, 0.12), -61px 0 0 -6px rgba(0, 50, 126, 0.12), -62px 0 0 -6px rgba(0, 50, 126, 0.12), -63px 0 0 -6px rgba(0, 50, 126, 0.12), -64px 0 0 -6px rgba(0, 50, 126, 0.12), -65px 0 0 -6px rgba(0, 50, 126, 0.12), -66px 0 0 -6px rgba(0, 50, 126, 0.12), -67px 0 0 -6px rgba(0, 50, 126, 0.12), -68px 0 0 -6px rgba(0, 50, 126, 0.12), -69px 0 0 -6px rgba(0, 50, 126, 0.12), -70px 0 0 -6px rgba(0, 50, 126, 0.12), -71px 0 0 -6px rgba(0, 50, 126, 0.12), -72px 0 0 -6px rgba(0, 50, 126, 0.12), -73px 0 0 -6px rgba(0, 50, 126, 0.12), -74px 0 0 -6px rgba(0, 50, 126, 0.12), -75px 0 0 -6px rgba(0, 50, 126, 0.12), -76px 0 0 -6px rgba(0, 50, 126, 0.12), -77px 0 0 -6px rgba(0, 50, 126, 0.12), -78px 0 0 -6px rgba(0, 50, 126, 0.12), -79px 0 0 -6px rgba(0, 50, 126, 0.12), -80px 0 0 -6px rgba(0, 50, 126, 0.12), -81px 0 0 -6px rgba(0, 50, 126, 0.12), -82px 0 0 -6px rgba(0, 50, 126, 0.12), -83px 0 0 -6px rgba(0, 50, 126, 0.12), -84px 0 0 -6px rgba(0, 50, 126, 0.12), -85px 0 0 -6px rgba(0, 50, 126, 0.12), -86px 0 0 -6px rgba(0, 50, 126, 0.12), -87px 0 0 -6px rgba(0, 50, 126, 0.12), -88px 0 0 -6px rgba(0, 50, 126, 0.12), -89px 0 0 -6px rgba(0, 50, 126, 0.12), -90px 0 0 -6px rgba(0, 50, 126, 0.12), -91px 0 0 -6px rgba(0, 50, 126, 0.12), -92px 0 0 -6px rgba(0, 50, 126, 0.12), -93px 0 0 -6px rgba(0, 50, 126, 0.12), -94px 0 0 -6px rgba(0, 50, 126, 0.12), -95px 0 0 -6px rgba(0, 50, 126, 0.12), -96px 0 0 -6px rgba(0, 50, 126, 0.12), -97px 0 0 -6px rgba(0, 50, 126, 0.12), -98px 0 0 -6px rgba(0, 50, 126, 0.12), -99px 0 0 -6px rgba(0, 50, 126, 0.12), -100px 0 0 -6px rgba(0, 50, 126, 0.12), -101px 0 0 -6px rgba(0, 50, 126, 0.12), -102px 0 0 -6px rgba(0, 50, 126, 0.12), -103px 0 0 -6px rgba(0, 50, 126, 0.12), -104px 0 0 -6px rgba(0, 50, 126, 0.12), -105px 0 0 -6px rgba(0, 50, 126, 0.12), -106px 0 0 -6px rgba(0, 50, 126, 0.12), -107px 0 0 -6px rgba(0, 50, 126, 0.12), -108px 0 0 -6px rgba(0, 50, 126, 0.12), -109px 0 0 -6px rgba(0, 50, 126, 0.12), -110px 0 0 -6px rgba(0, 50, 126, 0.12), -111px 0 0 -6px rgba(0, 50, 126, 0.12), -112px 0 0 -6px rgba(0, 50, 126, 0.12), -113px 0 0 -6px rgba(0, 50, 126, 0.12), -114px 0 0 -6px rgba(0, 50, 126, 0.12), -115px 0 0 -6px rgba(0, 50, 126, 0.12), -116px 0 0 -6px rgba(0, 50, 126, 0.12), -117px 0 0 -6px rgba(0, 50, 126, 0.12), -118px 0 0 -6px rgba(0, 50, 126, 0.12), -119px 0 0 -6px rgba(0, 50, 126, 0.12), -120px 0 0 -6px rgba(0, 50, 126, 0.12), -121px 0 0 -6px rgba(0, 50, 126, 0.12), -122px 0 0 -6px rgba(0, 50, 126, 0.12), -123px 0 0 -6px rgba(0, 50, 126, 0.12), -124px 0 0 -6px rgba(0, 50, 126, 0.12), -125px 0 0 -6px rgba(0, 50, 126, 0.12), -126px 0 0 -6px rgba(0, 50, 126, 0.12), -127px 0 0 -6px rgba(0, 50, 126, 0.12), -128px 0 0 -6px rgba(0, 50, 126, 0.12), -129px 0 0 -6px rgba(0, 50, 126, 0.12), -130px 0 0 -6px rgba(0, 50, 126, 0.12), -131px 0 0 -6px rgba(0, 50, 126, 0.12), -132px 0 0 -6px rgba(0, 50, 126, 0.12), -133px 0 0 -6px rgba(0, 50, 126, 0.12), -134px 0 0 -6px rgba(0, 50, 126, 0.12), -135px 0 0 -6px rgba(0, 50, 126, 0.12), -136px 0 0 -6px rgba(0, 50, 126, 0.12), -137px 0 0 -6px rgba(0, 50, 126, 0.12), -138px 0 0 -6px rgba(0, 50, 126, 0.12), -139px 0 0 -6px rgba(0, 50, 126, 0.12), -140px 0 0 -6px rgba(0, 50, 126, 0.12), -141px 0 0 -6px rgba(0, 50, 126, 0.12), -142px 0 0 -6px rgba(0, 50, 126, 0.12), -143px 0 0 -6px rgba(0, 50, 126, 0.12), -144px 0 0 -6px rgba(0, 50, 126, 0.12), -145px 0 0 -6px rgba(0, 50, 126, 0.12), -146px 0 0 -6px rgba(0, 50, 126, 0.12), -147px 0 0 -6px rgba(0, 50, 126, 0.12), -148px 0 0 -6px rgba(0, 50, 126, 0.12), -149px 0 0 -6px rgba(0, 50, 126, 0.12), -150px 0 0 -6px rgba(0, 50, 126, 0.12), -151px 0 0 -6px rgba(0, 50, 126, 0.12), -152px 0 0 -6px rgba(0, 50, 126, 0.12), -153px 0 0 -6px rgba(0, 50, 126, 0.12), -154px 0 0 -6px rgba(0, 50, 126, 0.12), -155px 0 0 -6px rgba(0, 50, 126, 0.12), -156px 0 0 -6px rgba(0, 50, 126, 0.12), -157px 0 0 -6px rgba(0, 50, 126, 0.12), -158px 0 0 -6px rgba(0, 50, 126, 0.12), -159px 0 0 -6px rgba(0, 50, 126, 0.12), -160px 0 0 -6px rgba(0, 50, 126, 0.12), -161px 0 0 -6px rgba(0, 50, 126, 0.12), -162px 0 0 -6px rgba(0, 50, 126, 0.12), -163px 0 0 -6px rgba(0, 50, 126, 0.12), -164px 0 0 -6px rgba(0, 50, 126, 0.12), -165px 0 0 -6px rgba(0, 50, 126, 0.12), -166px 0 0 -6px rgba(0, 50, 126, 0.12), -167px 0 0 -6px rgba(0, 50, 126, 0.12), -168px 0 0 -6px rgba(0, 50, 126, 0.12), -169px 0 0 -6px rgba(0, 50, 126, 0.12), -170px 0 0 -6px rgba(0, 50, 126, 0.12), -171px 0 0 -6px rgba(0, 50, 126, 0.12), -172px 0 0 -6px rgba(0, 50, 126, 0.12), -173px 0 0 -6px rgba(0, 50, 126, 0.12), -174px 0 0 -6px rgba(0, 50, 126, 0.12), -175px 0 0 -6px rgba(0, 50, 126, 0.12), -176px 0 0 -6px rgba(0, 50, 126, 0.12), -177px 0 0 -6px rgba(0, 50, 126, 0.12), -178px 0 0 -6px rgba(0, 50, 126, 0.12), -179px 0 0 -6px rgba(0, 50, 126, 0.12), -180px 0 0 -6px rgba(0, 50, 126, 0.12), -181px 0 0 -6px rgba(0, 50, 126, 0.12), -182px 0 0 -6px rgba(0, 50, 126, 0.12), -183px 0 0 -6px rgba(0, 50, 126, 0.12), -184px 0 0 -6px rgba(0, 50, 126, 0.12), -185px 0 0 -6px rgba(0, 50, 126, 0.12), -186px 0 0 -6px rgba(0, 50, 126, 0.12), -187px 0 0 -6px rgba(0, 50, 126, 0.12), -188px 0 0 -6px rgba(0, 50, 126, 0.12), -189px 0 0 -6px rgba(0, 50, 126, 0.12), -190px 0 0 -6px rgba(0, 50, 126, 0.12), -191px 0 0 -6px rgba(0, 50, 126, 0.12), -192px 0 0 -6px rgba(0, 50, 126, 0.12), -193px 0 0 -6px rgba(0, 50, 126, 0.12), -194px 0 0 -6px rgba(0, 50, 126, 0.12), -195px 0 0 -6px rgba(0, 50, 126, 0.12), -196px 0 0 -6px rgba(0, 50, 126, 0.12), -197px 0 0 -6px rgba(0, 50, 126, 0.12), -198px 0 0 -6px rgba(0, 50, 126, 0.12), -199px 0 0 -6px rgba(0, 50, 126, 0.12), -200px 0 0 -6px rgba(0, 50, 126, 0.12), -201px 0 0 -6px rgba(0, 50, 126, 0.12), -202px 0 0 -6px rgba(0, 50, 126, 0.12), -203px 0 0 -6px rgba(0, 50, 126, 0.12), -204px 0 0 -6px rgba(0, 50, 126, 0.12), -205px 0 0 -6px rgba(0, 50, 126, 0.12), -206px 0 0 -6px rgba(0, 50, 126, 0.12), -207px 0 0 -6px rgba(0, 50, 126, 0.12), -208px 0 0 -6px rgba(0, 50, 126, 0.12), -209px 0 0 -6px rgba(0, 50, 126, 0.12), -210px 0 0 -6px rgba(0, 50, 126, 0.12), -211px 0 0 -6px rgba(0, 50, 126, 0.12), -212px 0 0 -6px rgba(0, 50, 126, 0.12), -213px 0 0 -6px rgba(0, 50, 126, 0.12), -214px 0 0 -6px rgba(0, 50, 126, 0.12), -215px 0 0 -6px rgba(0, 50, 126, 0.12), -216px 0 0 -6px rgba(0, 50, 126, 0.12), -217px 0 0 -6px rgba(0, 50, 126, 0.12), -218px 0 0 -6px rgba(0, 50, 126, 0.12), -219px 0 0 -6px rgba(0, 50, 126, 0.12), -220px 0 0 -6px rgba(0, 50, 126, 0.12), -221px 0 0 -6px rgba(0, 50, 126, 0.12), -222px 0 0 -6px rgba(0, 50, 126, 0.12), -223px 0 0 -6px rgba(0, 50, 126, 0.12), -224px 0 0 -6px rgba(0, 50, 126, 0.12), -225px 0 0 -6px rgba(0, 50, 126, 0.12), -226px 0 0 -6px rgba(0, 50, 126, 0.12), -227px 0 0 -6px rgba(0, 50, 126, 0.12), -228px 0 0 -6px rgba(0, 50, 126, 0.12), -229px 0 0 -6px rgba(0, 50, 126, 0.12), -230px 0 0 -6px rgba(0, 50, 126, 0.12), -231px 0 0 -6px rgba(0, 50, 126, 0.12), -232px 0 0 -6px rgba(0, 50, 126, 0.12), -233px 0 0 -6px rgba(0, 50, 126, 0.12), -234px 0 0 -6px rgba(0, 50, 126, 0.12), -235px 0 0 -6px rgba(0, 50, 126, 0.12), -236px 0 0 -6px rgba(0, 50, 126, 0.12), -237px 0 0 -6px rgba(0, 50, 126, 0.12), -238px 0 0 -6px rgba(0, 50, 126, 0.12), -239px 0 0 -6px rgba(0, 50, 126, 0.12), -240px 0 0 -6px rgba(0, 50, 126, 0.12); - margin-top: -6px; - border: 1px solid rgba(0, 30, 75, 0.12); - transition: .3s border-color, .3s background-color; -} - -.custom-range::-moz-range-track { - width: 240px; - height: 2px; - background: rgba(0, 50, 126, 0.12); -} - -.custom-range::-moz-range-thumb { - width: 14px; - height: 14px; - background: #fff; - border-radius: 50px; - border: 1px solid rgba(0, 30, 75, 0.12); - position: relative; - transition: .3s border-color, .3s background-color; -} - -.custom-range::-moz-range-progress { - height: 2px; - background: #467fcf; - border: 0; - margin-top: 0; -} - -.custom-range::-ms-track { - background: transparent; - border: 0; - border-color: transparent; - border-radius: 0; - border-width: 0; - color: transparent; - height: 2px; - margin-top: 10px; - width: 240px; -} - -.custom-range::-ms-thumb { - width: 240px; - height: 2px; - background: #fff; - border-radius: 50px; - border: 1px solid rgba(0, 30, 75, 0.12); - transition: .3s border-color, .3s background-color; -} - -.custom-range::-ms-fill-lower { - background: #467fcf; - border-radius: 0; -} - -.custom-range::-ms-fill-upper { - background: rgba(0, 50, 126, 0.12); - border-radius: 0; -} - -.custom-range::-ms-tooltip { - display: none; -} - -.selectgroup { - display: -ms-inline-flexbox; - display: inline-flex; -} - -.selectgroup-item { - -ms-flex-positive: 1; - flex-grow: 1; - position: relative; -} - -.selectgroup-item + .selectgroup-item { - margin-right: -1px; -} - -.selectgroup-item:not(:first-child) .selectgroup-button { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} - -.selectgroup-item:not(:last-child) .selectgroup-button { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} - -.selectgroup-input { - opacity: 0; - position: absolute; - z-index: -1; - top: 0; - right: 0; -} - -.selectgroup-button { - display: block; - border: 1px solid rgba(0, 40, 100, 0.12); - text-align: center; - padding: 0.375rem 1rem; - position: relative; - cursor: pointer; - border-radius: 3px; - color: #9aa0ac; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - font-size: 0.9375rem; - line-height: 1.5rem; - min-width: 2.375rem; -} - -.selectgroup-button-icon { - padding-right: .5rem; - padding-left: .5rem; - font-size: 1rem; -} - -.selectgroup-input:checked + .selectgroup-button { - border-color: #467fcf; - z-index: 1; - color: #467fcf; - background: #edf2fa; -} - -.selectgroup-input:focus + .selectgroup-button { - border-color: #467fcf; - z-index: 2; - color: #467fcf; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.selectgroup-pills { - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -ms-flex-align: start; - align-items: flex-start; -} - -.selectgroup-pills .selectgroup-item { - margin-left: .5rem; - -ms-flex-positive: 0; - flex-grow: 0; -} - -.selectgroup-pills .selectgroup-button { - border-radius: 50px !important; -} - -.custom-switch { - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - cursor: default; - display: -ms-inline-flexbox; - display: inline-flex; - -ms-flex-align: center; - align-items: center; - margin: 0; -} - -.custom-switch-input { - position: absolute; - z-index: -1; - opacity: 0; -} - -.custom-switches-stacked { - display: -ms-flexbox; - display: flex; - -ms-flex-direction: column; - flex-direction: column; -} - -.custom-switches-stacked .custom-switch { - margin-bottom: .5rem; -} - -.custom-switch-indicator { - display: inline-block; - height: 1.25rem; - width: 2.25rem; - background: #e9ecef; - border-radius: 50px; - position: relative; - vertical-align: bottom; - border: 1px solid rgba(0, 40, 100, 0.12); - transition: .3s border-color, .3s background-color; -} - -.custom-switch-indicator:before { - content: ''; - position: absolute; - height: calc(1.25rem - 4px); - width: calc(1.25rem - 4px); - top: 1px; - right: 1px; - background: #fff; - border-radius: 50%; - transition: .3s right; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); -} - -.custom-switch-input:checked ~ .custom-switch-indicator { - background: #467fcf; -} - -.custom-switch-input:checked ~ .custom-switch-indicator:before { - right: calc(1rem + 1px); -} - -.custom-switch-input:focus ~ .custom-switch-indicator { - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); - border-color: #467fcf; -} - -.custom-switch-description { - margin-right: .5rem; - color: #6e7687; - transition: .3s color; -} - -.custom-switch-input:checked ~ .custom-switch-description { - color: #495057; -} - -.imagecheck { - margin: 0; - position: relative; - cursor: pointer; -} - -.imagecheck-input { - position: absolute; - z-index: -1; - opacity: 0; -} - -.imagecheck-figure { - border: 1px solid rgba(0, 40, 100, 0.12); - border-radius: 3px; - margin: 0; - position: relative; -} - -.imagecheck-input:focus ~ .imagecheck-figure { - border-color: #467fcf; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.imagecheck-input:checked ~ .imagecheck-figure { - border-color: rgba(0, 40, 100, 0.24); -} - -.imagecheck-figure:before { - content: ''; - position: absolute; - top: .25rem; - right: .25rem; - display: block; - width: 1rem; - height: 1rem; - pointer-events: none; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - background: #467fcf url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E") no-repeat center center/50% 50%; - color: #fff; - z-index: 1; - border-radius: 3px; - opacity: 0; - transition: .3s opacity; -} - -.imagecheck-input:checked ~ .imagecheck-figure:before { - opacity: 1; -} - -.imagecheck-image { - max-width: 100%; - opacity: .64; - transition: .3s opacity; -} - -.imagecheck-image:first-child { - border-top-right-radius: 2px; - border-top-left-radius: 2px; -} - -.imagecheck-image:last-child { - border-bottom-right-radius: 2px; - border-bottom-left-radius: 2px; -} - -.imagecheck:hover .imagecheck-image, -.imagecheck-input:focus ~ .imagecheck-figure .imagecheck-image, -.imagecheck-input:checked ~ .imagecheck-figure .imagecheck-image { - opacity: 1; -} - -.imagecheck-caption { - text-align: center; - padding: .25rem .25rem; - color: #9aa0ac; - font-size: 0.875rem; - transition: .3s color; -} - -.imagecheck:hover .imagecheck-caption, -.imagecheck-input:focus ~ .imagecheck-figure .imagecheck-caption, -.imagecheck-input:checked ~ .imagecheck-figure .imagecheck-caption { - color: #495057; -} - -.colorinput { - margin: 0; - position: relative; - cursor: pointer; -} - -.colorinput-input { - position: absolute; - z-index: -1; - opacity: 0; -} - -.colorinput-color { - display: inline-block; - width: 1.75rem; - height: 1.75rem; - border-radius: 3px; - border: 1px solid rgba(0, 40, 100, 0.12); - color: #fff; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); -} - -.colorinput-color:before { - content: ''; - opacity: 0; - position: absolute; - top: .25rem; - right: .25rem; - height: 1.25rem; - width: 1.25rem; - transition: .3s opacity; - background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E") no-repeat center center/50% 50%; -} - -.colorinput-input:checked ~ .colorinput-color:before { - opacity: 1; -} - -.colorinput-input:focus ~ .colorinput-color { - border-color: #467fcf; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.timeline { - position: relative; - margin: 0 0 2rem; - padding: 0; - list-style: none; -} - -.timeline:before { - background-color: #e9ecef; - position: absolute; - display: block; - content: ''; - width: 1px; - height: 100%; - top: 0; - bottom: 0; - right: 4px; -} - -.timeline-item { - position: relative; - display: -ms-flexbox; - display: flex; - padding-right: 2rem; - margin: .5rem 0; -} - -.timeline-item:first-child:before, .timeline-item:last-child:before { - content: ''; - position: absolute; - background: #fff; - width: 1px; - right: .25rem; -} - -.timeline-item:first-child { - margin-top: 0; -} - -.timeline-item:first-child:before { - top: 0; - height: .5rem; -} - -.timeline-item:last-child { - margin-bottom: 0; -} - -.timeline-item:last-child:before { - top: .5rem; - bottom: 0; -} - -.timeline-badge { - position: absolute; - display: block; - width: 0.4375rem; - height: 0.4375rem; - right: 1px; - top: .5rem; - border-radius: 100%; - border: 1px solid #fff; - background: #adb5bd; -} - -.timeline-time { - white-space: nowrap; - margin-right: auto; - color: #9aa0ac; - font-size: 87.5%; -} - -.browser { - width: 1.25rem; - height: 1.25rem; - display: inline-block; - background: no-repeat center/100% 100%; - vertical-align: bottom; - font-style: normal; -} - -.browser-android-browser { - background-image: url("../images/browsers/android-browser.svg"); -} - -.browser-aol-explorer { - background-image: url("../images/browsers/aol-explorer.svg"); -} - -.browser-blackberry { - background-image: url("../images/browsers/blackberry.svg"); -} - -.browser-camino { - background-image: url("../images/browsers/camino.svg"); -} - -.browser-chrome { - background-image: url("../images/browsers/chrome.svg"); -} - -.browser-chromium { - background-image: url("../images/browsers/chromium.svg"); -} - -.browser-dolphin { - background-image: url("../images/browsers/dolphin.svg"); -} - -.browser-edge { - background-image: url("../images/browsers/edge.svg"); -} - -.browser-firefox { - background-image: url("../images/browsers/firefox.svg"); -} - -.browser-ie { - background-image: url("../images/browsers/ie.svg"); -} - -.browser-maxthon { - background-image: url("../images/browsers/maxthon.svg"); -} - -.browser-mozilla { - background-image: url("../images/browsers/mozilla.svg"); -} - -.browser-netscape { - background-image: url("../images/browsers/netscape.svg"); -} - -.browser-opera { - background-image: url("../images/browsers/opera.svg"); -} - -.browser-safari { - background-image: url("../images/browsers/safari.svg"); -} - -.browser-sleipnir { - background-image: url("../images/browsers/sleipnir.svg"); -} - -.browser-uc-browser { - background-image: url("../images/browsers/uc-browser.svg"); -} - -.browser-vivaldi { - background-image: url("../images/browsers/vivaldi.svg"); -} - -.flag { - width: 1.6rem; - height: 1.2rem; - display: inline-block; - background: no-repeat center/100% 100%; - vertical-align: bottom; - font-style: normal; - box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.1); - border-radius: 2px; -} - -.flag-ad { - background-image: url("../images/flags/ad.svg"); -} - -.flag-ae { - background-image: url("../images/flags/ae.svg"); -} - -.flag-af { - background-image: url("../images/flags/af.svg"); -} - -.flag-ag { - background-image: url("../images/flags/ag.svg"); -} - -.flag-ai { - background-image: url("../images/flags/ai.svg"); -} - -.flag-al { - background-image: url("../images/flags/al.svg"); -} - -.flag-am { - background-image: url("../images/flags/am.svg"); -} - -.flag-ao { - background-image: url("../images/flags/ao.svg"); -} - -.flag-aq { - background-image: url("../images/flags/aq.svg"); -} - -.flag-ar { - background-image: url("../images/flags/ar.svg"); -} - -.flag-as { - background-image: url("../images/flags/as.svg"); -} - -.flag-at { - background-image: url("../images/flags/at.svg"); -} - -.flag-au { - background-image: url("../images/flags/au.svg"); -} - -.flag-aw { - background-image: url("../images/flags/aw.svg"); -} - -.flag-ax { - background-image: url("../images/flags/ax.svg"); -} - -.flag-az { - background-image: url("../images/flags/az.svg"); -} - -.flag-ba { - background-image: url("../images/flags/ba.svg"); -} - -.flag-bb { - background-image: url("../images/flags/bb.svg"); -} - -.flag-bd { - background-image: url("../images/flags/bd.svg"); -} - -.flag-be { - background-image: url("../images/flags/be.svg"); -} - -.flag-bf { - background-image: url("../images/flags/bf.svg"); -} - -.flag-bg { - background-image: url("../images/flags/bg.svg"); -} - -.flag-bh { - background-image: url("../images/flags/bh.svg"); -} - -.flag-bi { - background-image: url("../images/flags/bi.svg"); -} - -.flag-bj { - background-image: url("../images/flags/bj.svg"); -} - -.flag-bl { - background-image: url("../images/flags/bl.svg"); -} - -.flag-bm { - background-image: url("../images/flags/bm.svg"); -} - -.flag-bn { - background-image: url("../images/flags/bn.svg"); -} - -.flag-bo { - background-image: url("../images/flags/bo.svg"); -} - -.flag-bq { - background-image: url("../images/flags/bq.svg"); -} - -.flag-br { - background-image: url("../images/flags/br.svg"); -} - -.flag-bs { - background-image: url("../images/flags/bs.svg"); -} - -.flag-bt { - background-image: url("../images/flags/bt.svg"); -} - -.flag-bv { - background-image: url("../images/flags/bv.svg"); -} - -.flag-bw { - background-image: url("../images/flags/bw.svg"); -} - -.flag-by { - background-image: url("../images/flags/by.svg"); -} - -.flag-bz { - background-image: url("../images/flags/bz.svg"); -} - -.flag-ca { - background-image: url("../images/flags/ca.svg"); -} - -.flag-cc { - background-image: url("../images/flags/cc.svg"); -} - -.flag-cd { - background-image: url("../images/flags/cd.svg"); -} - -.flag-cf { - background-image: url("../images/flags/cf.svg"); -} - -.flag-cg { - background-image: url("../images/flags/cg.svg"); -} - -.flag-ch { - background-image: url("../images/flags/ch.svg"); -} - -.flag-ci { - background-image: url("../images/flags/ci.svg"); -} - -.flag-ck { - background-image: url("../images/flags/ck.svg"); -} - -.flag-cl { - background-image: url("../images/flags/cl.svg"); -} - -.flag-cm { - background-image: url("../images/flags/cm.svg"); -} - -.flag-cn { - background-image: url("../images/flags/cn.svg"); -} - -.flag-co { - background-image: url("../images/flags/co.svg"); -} - -.flag-cr { - background-image: url("../images/flags/cr.svg"); -} - -.flag-cu { - background-image: url("../images/flags/cu.svg"); -} - -.flag-cv { - background-image: url("../images/flags/cv.svg"); -} - -.flag-cw { - background-image: url("../images/flags/cw.svg"); -} - -.flag-cx { - background-image: url("../images/flags/cx.svg"); -} - -.flag-cy { - background-image: url("../images/flags/cy.svg"); -} - -.flag-cz { - background-image: url("../images/flags/cz.svg"); -} - -.flag-de { - background-image: url("../images/flags/de.svg"); -} - -.flag-dj { - background-image: url("../images/flags/dj.svg"); -} - -.flag-dk { - background-image: url("../images/flags/dk.svg"); -} - -.flag-dm { - background-image: url("../images/flags/dm.svg"); -} - -.flag-do { - background-image: url("../images/flags/do.svg"); -} - -.flag-dz { - background-image: url("../images/flags/dz.svg"); -} - -.flag-ec { - background-image: url("../images/flags/ec.svg"); -} - -.flag-ee { - background-image: url("../images/flags/ee.svg"); -} - -.flag-eg { - background-image: url("../images/flags/eg.svg"); -} - -.flag-eh { - background-image: url("../images/flags/eh.svg"); -} - -.flag-er { - background-image: url("../images/flags/er.svg"); -} - -.flag-es { - background-image: url("../images/flags/es.svg"); -} - -.flag-et { - background-image: url("../images/flags/et.svg"); -} - -.flag-eu { - background-image: url("../images/flags/eu.svg"); -} - -.flag-fi { - background-image: url("../images/flags/fi.svg"); -} - -.flag-fj { - background-image: url("../images/flags/fj.svg"); -} - -.flag-fk { - background-image: url("../images/flags/fk.svg"); -} - -.flag-fm { - background-image: url("../images/flags/fm.svg"); -} - -.flag-fo { - background-image: url("../images/flags/fo.svg"); -} - -.flag-fr { - background-image: url("../images/flags/fr.svg"); -} - -.flag-ga { - background-image: url("../images/flags/ga.svg"); -} - -.flag-gb-eng { - background-image: url("../images/flags/gb-eng.svg"); -} - -.flag-gb-nir { - background-image: url("../images/flags/gb-nir.svg"); -} - -.flag-gb-sct { - background-image: url("../images/flags/gb-sct.svg"); -} - -.flag-gb-wls { - background-image: url("../images/flags/gb-wls.svg"); -} - -.flag-gb { - background-image: url("../images/flags/gb.svg"); -} - -.flag-gd { - background-image: url("../images/flags/gd.svg"); -} - -.flag-ge { - background-image: url("../images/flags/ge.svg"); -} - -.flag-gf { - background-image: url("../images/flags/gf.svg"); -} - -.flag-gg { - background-image: url("../images/flags/gg.svg"); -} - -.flag-gh { - background-image: url("../images/flags/gh.svg"); -} - -.flag-gi { - background-image: url("../images/flags/gi.svg"); -} - -.flag-gl { - background-image: url("../images/flags/gl.svg"); -} - -.flag-gm { - background-image: url("../images/flags/gm.svg"); -} - -.flag-gn { - background-image: url("../images/flags/gn.svg"); -} - -.flag-gp { - background-image: url("../images/flags/gp.svg"); -} - -.flag-gq { - background-image: url("../images/flags/gq.svg"); -} - -.flag-gr { - background-image: url("../images/flags/gr.svg"); -} - -.flag-gs { - background-image: url("../images/flags/gs.svg"); -} - -.flag-gt { - background-image: url("../images/flags/gt.svg"); -} - -.flag-gu { - background-image: url("../images/flags/gu.svg"); -} - -.flag-gw { - background-image: url("../images/flags/gw.svg"); -} - -.flag-gy { - background-image: url("../images/flags/gy.svg"); -} - -.flag-hk { - background-image: url("../images/flags/hk.svg"); -} - -.flag-hm { - background-image: url("../images/flags/hm.svg"); -} - -.flag-hn { - background-image: url("../images/flags/hn.svg"); -} - -.flag-hr { - background-image: url("../images/flags/hr.svg"); -} - -.flag-ht { - background-image: url("../images/flags/ht.svg"); -} - -.flag-hu { - background-image: url("../images/flags/hu.svg"); -} - -.flag-id { - background-image: url("../images/flags/id.svg"); -} - -.flag-ie { - background-image: url("../images/flags/ie.svg"); -} - -.flag-il { - background-image: url("../images/flags/il.svg"); -} - -.flag-im { - background-image: url("../images/flags/im.svg"); -} - -.flag-in { - background-image: url("../images/flags/in.svg"); -} - -.flag-io { - background-image: url("../images/flags/io.svg"); -} - -.flag-iq { - background-image: url("../images/flags/iq.svg"); -} - -.flag-ir { - background-image: url("../images/flags/ir.svg"); -} - -.flag-is { - background-image: url("../images/flags/is.svg"); -} - -.flag-it { - background-image: url("../images/flags/it.svg"); -} - -.flag-je { - background-image: url("../images/flags/je.svg"); -} - -.flag-jm { - background-image: url("../images/flags/jm.svg"); -} - -.flag-jo { - background-image: url("../images/flags/jo.svg"); -} - -.flag-jp { - background-image: url("../images/flags/jp.svg"); -} - -.flag-ke { - background-image: url("../images/flags/ke.svg"); -} - -.flag-kg { - background-image: url("../images/flags/kg.svg"); -} - -.flag-kh { - background-image: url("../images/flags/kh.svg"); -} - -.flag-ki { - background-image: url("../images/flags/ki.svg"); -} - -.flag-km { - background-image: url("../images/flags/km.svg"); -} - -.flag-kn { - background-image: url("../images/flags/kn.svg"); -} - -.flag-kp { - background-image: url("../images/flags/kp.svg"); -} - -.flag-kr { - background-image: url("../images/flags/kr.svg"); -} - -.flag-kw { - background-image: url("../images/flags/kw.svg"); -} - -.flag-ky { - background-image: url("../images/flags/ky.svg"); -} - -.flag-kz { - background-image: url("../images/flags/kz.svg"); -} - -.flag-la { - background-image: url("../images/flags/la.svg"); -} - -.flag-lb { - background-image: url("../images/flags/lb.svg"); -} - -.flag-lc { - background-image: url("../images/flags/lc.svg"); -} - -.flag-li { - background-image: url("../images/flags/li.svg"); -} - -.flag-lk { - background-image: url("../images/flags/lk.svg"); -} - -.flag-lr { - background-image: url("../images/flags/lr.svg"); -} - -.flag-ls { - background-image: url("../images/flags/ls.svg"); -} - -.flag-lt { - background-image: url("../images/flags/lt.svg"); -} - -.flag-lu { - background-image: url("../images/flags/lu.svg"); -} - -.flag-lv { - background-image: url("../images/flags/lv.svg"); -} - -.flag-ly { - background-image: url("../images/flags/ly.svg"); -} - -.flag-ma { - background-image: url("../images/flags/ma.svg"); -} - -.flag-mc { - background-image: url("../images/flags/mc.svg"); -} - -.flag-md { - background-image: url("../images/flags/md.svg"); -} - -.flag-me { - background-image: url("../images/flags/me.svg"); -} - -.flag-mf { - background-image: url("../images/flags/mf.svg"); -} - -.flag-mg { - background-image: url("../images/flags/mg.svg"); -} - -.flag-mh { - background-image: url("../images/flags/mh.svg"); -} - -.flag-mk { - background-image: url("../images/flags/mk.svg"); -} - -.flag-ml { - background-image: url("../images/flags/ml.svg"); -} - -.flag-mm { - background-image: url("../images/flags/mm.svg"); -} - -.flag-mn { - background-image: url("../images/flags/mn.svg"); -} - -.flag-mo { - background-image: url("../images/flags/mo.svg"); -} - -.flag-mp { - background-image: url("../images/flags/mp.svg"); -} - -.flag-mq { - background-image: url("../images/flags/mq.svg"); -} - -.flag-mr { - background-image: url("../images/flags/mr.svg"); -} - -.flag-ms { - background-image: url("../images/flags/ms.svg"); -} - -.flag-mt { - background-image: url("../images/flags/mt.svg"); -} - -.flag-mu { - background-image: url("../images/flags/mu.svg"); -} - -.flag-mv { - background-image: url("../images/flags/mv.svg"); -} - -.flag-mw { - background-image: url("../images/flags/mw.svg"); -} - -.flag-mx { - background-image: url("../images/flags/mx.svg"); -} - -.flag-my { - background-image: url("../images/flags/my.svg"); -} - -.flag-mz { - background-image: url("../images/flags/mz.svg"); -} - -.flag-na { - background-image: url("../images/flags/na.svg"); -} - -.flag-nc { - background-image: url("../images/flags/nc.svg"); -} - -.flag-ne { - background-image: url("../images/flags/ne.svg"); -} - -.flag-nf { - background-image: url("../images/flags/nf.svg"); -} - -.flag-ng { - background-image: url("../images/flags/ng.svg"); -} - -.flag-ni { - background-image: url("../images/flags/ni.svg"); -} - -.flag-nl { - background-image: url("../images/flags/nl.svg"); -} - -.flag-no { - background-image: url("../images/flags/no.svg"); -} - -.flag-np { - background-image: url("../images/flags/np.svg"); -} - -.flag-nr { - background-image: url("../images/flags/nr.svg"); -} - -.flag-nu { - background-image: url("../images/flags/nu.svg"); -} - -.flag-nz { - background-image: url("../images/flags/nz.svg"); -} - -.flag-om { - background-image: url("../images/flags/om.svg"); -} - -.flag-pa { - background-image: url("../images/flags/pa.svg"); -} - -.flag-pe { - background-image: url("../images/flags/pe.svg"); -} - -.flag-pf { - background-image: url("../images/flags/pf.svg"); -} - -.flag-pg { - background-image: url("../images/flags/pg.svg"); -} - -.flag-ph { - background-image: url("../images/flags/ph.svg"); -} - -.flag-pk { - background-image: url("../images/flags/pk.svg"); -} - -.flag-pl { - background-image: url("../images/flags/pl.svg"); -} - -.flag-pm { - background-image: url("../images/flags/pm.svg"); -} - -.flag-pn { - background-image: url("../images/flags/pn.svg"); -} - -.flag-pr { - background-image: url("../images/flags/pr.svg"); -} - -.flag-ps { - background-image: url("../images/flags/ps.svg"); -} - -.flag-pt { - background-image: url("../images/flags/pt.svg"); -} - -.flag-pw { - background-image: url("../images/flags/pw.svg"); -} - -.flag-py { - background-image: url("../images/flags/py.svg"); -} - -.flag-qa { - background-image: url("../images/flags/qa.svg"); -} - -.flag-re { - background-image: url("../images/flags/re.svg"); -} - -.flag-ro { - background-image: url("../images/flags/ro.svg"); -} - -.flag-rs { - background-image: url("../images/flags/rs.svg"); -} - -.flag-ru { - background-image: url("../images/flags/ru.svg"); -} - -.flag-rw { - background-image: url("../images/flags/rw.svg"); -} - -.flag-sa { - background-image: url("../images/flags/sa.svg"); -} - -.flag-sb { - background-image: url("../images/flags/sb.svg"); -} - -.flag-sc { - background-image: url("../images/flags/sc.svg"); -} - -.flag-sd { - background-image: url("../images/flags/sd.svg"); -} - -.flag-se { - background-image: url("../images/flags/se.svg"); -} - -.flag-sg { - background-image: url("../images/flags/sg.svg"); -} - -.flag-sh { - background-image: url("../images/flags/sh.svg"); -} - -.flag-si { - background-image: url("../images/flags/si.svg"); -} - -.flag-sj { - background-image: url("../images/flags/sj.svg"); -} - -.flag-sk { - background-image: url("../images/flags/sk.svg"); -} - -.flag-sl { - background-image: url("../images/flags/sl.svg"); -} - -.flag-sm { - background-image: url("../images/flags/sm.svg"); -} - -.flag-sn { - background-image: url("../images/flags/sn.svg"); -} - -.flag-so { - background-image: url("../images/flags/so.svg"); -} - -.flag-sr { - background-image: url("../images/flags/sr.svg"); -} - -.flag-ss { - background-image: url("../images/flags/ss.svg"); -} - -.flag-st { - background-image: url("../images/flags/st.svg"); -} - -.flag-sv { - background-image: url("../images/flags/sv.svg"); -} - -.flag-sx { - background-image: url("../images/flags/sx.svg"); -} - -.flag-sy { - background-image: url("../images/flags/sy.svg"); -} - -.flag-sz { - background-image: url("../images/flags/sz.svg"); -} - -.flag-tc { - background-image: url("../images/flags/tc.svg"); -} - -.flag-td { - background-image: url("../images/flags/td.svg"); -} - -.flag-tf { - background-image: url("../images/flags/tf.svg"); -} - -.flag-tg { - background-image: url("../images/flags/tg.svg"); -} - -.flag-th { - background-image: url("../images/flags/th.svg"); -} - -.flag-tj { - background-image: url("../images/flags/tj.svg"); -} - -.flag-tk { - background-image: url("../images/flags/tk.svg"); -} - -.flag-tl { - background-image: url("../images/flags/tl.svg"); -} - -.flag-tm { - background-image: url("../images/flags/tm.svg"); -} - -.flag-tn { - background-image: url("../images/flags/tn.svg"); -} - -.flag-to { - background-image: url("../images/flags/to.svg"); -} - -.flag-tr { - background-image: url("../images/flags/tr.svg"); -} - -.flag-tt { - background-image: url("../images/flags/tt.svg"); -} - -.flag-tv { - background-image: url("../images/flags/tv.svg"); -} - -.flag-tw { - background-image: url("../images/flags/tw.svg"); -} - -.flag-tz { - background-image: url("../images/flags/tz.svg"); -} - -.flag-ua { - background-image: url("../images/flags/ua.svg"); -} - -.flag-ug { - background-image: url("../images/flags/ug.svg"); -} - -.flag-um { - background-image: url("../images/flags/um.svg"); -} - -.flag-un { - background-image: url("../images/flags/un.svg"); -} - -.flag-us { - background-image: url("../images/flags/us.svg"); -} - -.flag-uy { - background-image: url("../images/flags/uy.svg"); -} - -.flag-uz { - background-image: url("../images/flags/uz.svg"); -} - -.flag-va { - background-image: url("../images/flags/va.svg"); -} - -.flag-vc { - background-image: url("../images/flags/vc.svg"); -} - -.flag-ve { - background-image: url("../images/flags/ve.svg"); -} - -.flag-vg { - background-image: url("../images/flags/vg.svg"); -} - -.flag-vi { - background-image: url("../images/flags/vi.svg"); -} - -.flag-vn { - background-image: url("../images/flags/vn.svg"); -} - -.flag-vu { - background-image: url("../images/flags/vu.svg"); -} - -.flag-wf { - background-image: url("../images/flags/wf.svg"); -} - -.flag-ws { - background-image: url("../images/flags/ws.svg"); -} - -.flag-ye { - background-image: url("../images/flags/ye.svg"); -} - -.flag-yt { - background-image: url("../images/flags/yt.svg"); -} - -.flag-za { - background-image: url("../images/flags/za.svg"); -} - -.flag-zm { - background-image: url("../images/flags/zm.svg"); -} - -.flag-zw { - background-image: url("../images/flags/zw.svg"); -} - -.payment { - width: 2.5rem; - height: 1.5rem; - display: inline-block; - background: no-repeat center/100% 100%; - vertical-align: bottom; - font-style: normal; - box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.1); - border-radius: 2px; -} - -.payment-2checkout-dark { - background-image: url("../images/payments/2checkout-dark.svg"); -} - -.payment-2checkout { - background-image: url("../images/payments/2checkout.svg"); -} - -.payment-alipay-dark { - background-image: url("../images/payments/alipay-dark.svg"); -} - -.payment-alipay { - background-image: url("../images/payments/alipay.svg"); -} - -.payment-amazon-dark { - background-image: url("../images/payments/amazon-dark.svg"); -} - -.payment-amazon { - background-image: url("../images/payments/amazon.svg"); -} - -.payment-americanexpress-dark { - background-image: url("../images/payments/americanexpress-dark.svg"); -} - -.payment-americanexpress { - background-image: url("../images/payments/americanexpress.svg"); -} - -.payment-applepay-dark { - background-image: url("../images/payments/applepay-dark.svg"); -} - -.payment-applepay { - background-image: url("../images/payments/applepay.svg"); -} - -.payment-bancontact-dark { - background-image: url("../images/payments/bancontact-dark.svg"); -} - -.payment-bancontact { - background-image: url("../images/payments/bancontact.svg"); -} - -.payment-bitcoin-dark { - background-image: url("../images/payments/bitcoin-dark.svg"); -} - -.payment-bitcoin { - background-image: url("../images/payments/bitcoin.svg"); -} - -.payment-bitpay-dark { - background-image: url("../images/payments/bitpay-dark.svg"); -} - -.payment-bitpay { - background-image: url("../images/payments/bitpay.svg"); -} - -.payment-cirrus-dark { - background-image: url("../images/payments/cirrus-dark.svg"); -} - -.payment-cirrus { - background-image: url("../images/payments/cirrus.svg"); -} - -.payment-clickandbuy-dark { - background-image: url("../images/payments/clickandbuy-dark.svg"); -} - -.payment-clickandbuy { - background-image: url("../images/payments/clickandbuy.svg"); -} - -.payment-coinkite-dark { - background-image: url("../images/payments/coinkite-dark.svg"); -} - -.payment-coinkite { - background-image: url("../images/payments/coinkite.svg"); -} - -.payment-dinersclub-dark { - background-image: url("../images/payments/dinersclub-dark.svg"); -} - -.payment-dinersclub { - background-image: url("../images/payments/dinersclub.svg"); -} - -.payment-directdebit-dark { - background-image: url("../images/payments/directdebit-dark.svg"); -} - -.payment-directdebit { - background-image: url("../images/payments/directdebit.svg"); -} - -.payment-discover-dark { - background-image: url("../images/payments/discover-dark.svg"); -} - -.payment-discover { - background-image: url("../images/payments/discover.svg"); -} - -.payment-dwolla-dark { - background-image: url("../images/payments/dwolla-dark.svg"); -} - -.payment-dwolla { - background-image: url("../images/payments/dwolla.svg"); -} - -.payment-ebay-dark { - background-image: url("../images/payments/ebay-dark.svg"); -} - -.payment-ebay { - background-image: url("../images/payments/ebay.svg"); -} - -.payment-eway-dark { - background-image: url("../images/payments/eway-dark.svg"); -} - -.payment-eway { - background-image: url("../images/payments/eway.svg"); -} - -.payment-giropay-dark { - background-image: url("../images/payments/giropay-dark.svg"); -} - -.payment-giropay { - background-image: url("../images/payments/giropay.svg"); -} - -.payment-googlewallet-dark { - background-image: url("../images/payments/googlewallet-dark.svg"); -} - -.payment-googlewallet { - background-image: url("../images/payments/googlewallet.svg"); -} - -.payment-ingenico-dark { - background-image: url("../images/payments/ingenico-dark.svg"); -} - -.payment-ingenico { - background-image: url("../images/payments/ingenico.svg"); -} - -.payment-jcb-dark { - background-image: url("../images/payments/jcb-dark.svg"); -} - -.payment-jcb { - background-image: url("../images/payments/jcb.svg"); -} - -.payment-klarna-dark { - background-image: url("../images/payments/klarna-dark.svg"); -} - -.payment-klarna { - background-image: url("../images/payments/klarna.svg"); -} - -.payment-laser-dark { - background-image: url("../images/payments/laser-dark.svg"); -} - -.payment-laser { - background-image: url("../images/payments/laser.svg"); -} - -.payment-maestro-dark { - background-image: url("../images/payments/maestro-dark.svg"); -} - -.payment-maestro { - background-image: url("../images/payments/maestro.svg"); -} - -.payment-mastercard-dark { - background-image: url("../images/payments/mastercard-dark.svg"); -} - -.payment-mastercard { - background-image: url("../images/payments/mastercard.svg"); -} - -.payment-monero-dark { - background-image: url("../images/payments/monero-dark.svg"); -} - -.payment-monero { - background-image: url("../images/payments/monero.svg"); -} - -.payment-neteller-dark { - background-image: url("../images/payments/neteller-dark.svg"); -} - -.payment-neteller { - background-image: url("../images/payments/neteller.svg"); -} - -.payment-ogone-dark { - background-image: url("../images/payments/ogone-dark.svg"); -} - -.payment-ogone { - background-image: url("../images/payments/ogone.svg"); -} - -.payment-okpay-dark { - background-image: url("../images/payments/okpay-dark.svg"); -} - -.payment-okpay { - background-image: url("../images/payments/okpay.svg"); -} - -.payment-paybox-dark { - background-image: url("../images/payments/paybox-dark.svg"); -} - -.payment-paybox { - background-image: url("../images/payments/paybox.svg"); -} - -.payment-paymill-dark { - background-image: url("../images/payments/paymill-dark.svg"); -} - -.payment-paymill { - background-image: url("../images/payments/paymill.svg"); -} - -.payment-payone-dark { - background-image: url("../images/payments/payone-dark.svg"); -} - -.payment-payone { - background-image: url("../images/payments/payone.svg"); -} - -.payment-payoneer-dark { - background-image: url("../images/payments/payoneer-dark.svg"); -} - -.payment-payoneer { - background-image: url("../images/payments/payoneer.svg"); -} - -.payment-paypal-dark { - background-image: url("../images/payments/paypal-dark.svg"); -} - -.payment-paypal { - background-image: url("../images/payments/paypal.svg"); -} - -.payment-paysafecard-dark { - background-image: url("../images/payments/paysafecard-dark.svg"); -} - -.payment-paysafecard { - background-image: url("../images/payments/paysafecard.svg"); -} - -.payment-payu-dark { - background-image: url("../images/payments/payu-dark.svg"); -} - -.payment-payu { - background-image: url("../images/payments/payu.svg"); -} - -.payment-payza-dark { - background-image: url("../images/payments/payza-dark.svg"); -} - -.payment-payza { - background-image: url("../images/payments/payza.svg"); -} - -.payment-ripple-dark { - background-image: url("../images/payments/ripple-dark.svg"); -} - -.payment-ripple { - background-image: url("../images/payments/ripple.svg"); -} - -.payment-sage-dark { - background-image: url("../images/payments/sage-dark.svg"); -} - -.payment-sage { - background-image: url("../images/payments/sage.svg"); -} - -.payment-sepa-dark { - background-image: url("../images/payments/sepa-dark.svg"); -} - -.payment-sepa { - background-image: url("../images/payments/sepa.svg"); -} - -.payment-shopify-dark { - background-image: url("../images/payments/shopify-dark.svg"); -} - -.payment-shopify { - background-image: url("../images/payments/shopify.svg"); -} - -.payment-skrill-dark { - background-image: url("../images/payments/skrill-dark.svg"); -} - -.payment-skrill { - background-image: url("../images/payments/skrill.svg"); -} - -.payment-solo-dark { - background-image: url("../images/payments/solo-dark.svg"); -} - -.payment-solo { - background-image: url("../images/payments/solo.svg"); -} - -.payment-square-dark { - background-image: url("../images/payments/square-dark.svg"); -} - -.payment-square { - background-image: url("../images/payments/square.svg"); -} - -.payment-stripe-dark { - background-image: url("../images/payments/stripe-dark.svg"); -} - -.payment-stripe { - background-image: url("../images/payments/stripe.svg"); -} - -.payment-switch-dark { - background-image: url("../images/payments/switch-dark.svg"); -} - -.payment-switch { - background-image: url("../images/payments/switch.svg"); -} - -.payment-ukash-dark { - background-image: url("../images/payments/ukash-dark.svg"); -} - -.payment-ukash { - background-image: url("../images/payments/ukash.svg"); -} - -.payment-unionpay-dark { - background-image: url("../images/payments/unionpay-dark.svg"); -} - -.payment-unionpay { - background-image: url("../images/payments/unionpay.svg"); -} - -.payment-verifone-dark { - background-image: url("../images/payments/verifone-dark.svg"); -} - -.payment-verifone { - background-image: url("../images/payments/verifone.svg"); -} - -.payment-verisign-dark { - background-image: url("../images/payments/verisign-dark.svg"); -} - -.payment-verisign { - background-image: url("../images/payments/verisign.svg"); -} - -.payment-visa-dark { - background-image: url("../images/payments/visa-dark.svg"); -} - -.payment-visa { - background-image: url("../images/payments/visa.svg"); -} - -.payment-webmoney-dark { - background-image: url("../images/payments/webmoney-dark.svg"); -} - -.payment-webmoney { - background-image: url("../images/payments/webmoney.svg"); -} - -.payment-westernunion-dark { - background-image: url("../images/payments/westernunion-dark.svg"); -} - -.payment-westernunion { - background-image: url("../images/payments/westernunion.svg"); -} - -.payment-worldpay-dark { - background-image: url("../images/payments/worldpay-dark.svg"); -} - -.payment-worldpay { - background-image: url("../images/payments/worldpay.svg"); -} - -svg { - -ms-touch-action: none; - touch-action: none; -} - -.jvectormap-container { - width: 100%; - height: 100%; - position: relative; - overflow: hidden; - -ms-touch-action: none; - touch-action: none; -} - -.jvectormap-tip { - position: absolute; - display: none; - border-radius: 3px; - background: #212529; - color: white; - padding: 6px; - font-size: 11px; - line-height: 1; - font-weight: 700; -} - -.jvectormap-tip small { - font-size: inherit; - font-weight: 400; -} - -.jvectormap-zoomin, .jvectormap-zoomout, .jvectormap-goback { - position: absolute; - right: 10px; - border-radius: 3px; - background: #292929; - padding: 3px; - color: white; - cursor: pointer; - line-height: 10px; - text-align: center; - box-sizing: content-box; -} - -.jvectormap-zoomin, .jvectormap-zoomout { - width: 10px; - height: 10px; -} - -.jvectormap-zoomin { - top: 10px; -} - -.jvectormap-zoomout { - top: 30px; -} - -.jvectormap-goback { - bottom: 10px; - z-index: 1000; - padding: 6px; -} - -.jvectormap-spinner { - position: absolute; - right: 0; - top: 0; - left: 0; - bottom: 0; - background: center no-repeat url(data:image/gif;base64,R0lGODlhIAAgAPMAAP///wAAAMbGxoSEhLa2tpqamjY2NlZWVtjY2OTk5Ly8vB4eHgQEBAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAIAAgAAAE5xDISWlhperN52JLhSSdRgwVo1ICQZRUsiwHpTJT4iowNS8vyW2icCF6k8HMMBkCEDskxTBDAZwuAkkqIfxIQyhBQBFvAQSDITM5VDW6XNE4KagNh6Bgwe60smQUB3d4Rz1ZBApnFASDd0hihh12BkE9kjAJVlycXIg7CQIFA6SlnJ87paqbSKiKoqusnbMdmDC2tXQlkUhziYtyWTxIfy6BE8WJt5YJvpJivxNaGmLHT0VnOgSYf0dZXS7APdpB309RnHOG5gDqXGLDaC457D1zZ/V/nmOM82XiHRLYKhKP1oZmADdEAAAh+QQJCgAAACwAAAAAIAAgAAAE6hDISWlZpOrNp1lGNRSdRpDUolIGw5RUYhhHukqFu8DsrEyqnWThGvAmhVlteBvojpTDDBUEIFwMFBRAmBkSgOrBFZogCASwBDEY/CZSg7GSE0gSCjQBMVG023xWBhklAnoEdhQEfyNqMIcKjhRsjEdnezB+A4k8gTwJhFuiW4dokXiloUepBAp5qaKpp6+Ho7aWW54wl7obvEe0kRuoplCGepwSx2jJvqHEmGt6whJpGpfJCHmOoNHKaHx61WiSR92E4lbFoq+B6QDtuetcaBPnW6+O7wDHpIiK9SaVK5GgV543tzjgGcghAgAh+QQJCgAAACwAAAAAIAAgAAAE7hDISSkxpOrN5zFHNWRdhSiVoVLHspRUMoyUakyEe8PTPCATW9A14E0UvuAKMNAZKYUZCiBMuBakSQKG8G2FzUWox2AUtAQFcBKlVQoLgQReZhQlCIJesQXI5B0CBnUMOxMCenoCfTCEWBsJColTMANldx15BGs8B5wlCZ9Po6OJkwmRpnqkqnuSrayqfKmqpLajoiW5HJq7FL1Gr2mMMcKUMIiJgIemy7xZtJsTmsM4xHiKv5KMCXqfyUCJEonXPN2rAOIAmsfB3uPoAK++G+w48edZPK+M6hLJpQg484enXIdQFSS1u6UhksENEQAAIfkECQoAAAAsAAAAACAAIAAABOcQyEmpGKLqzWcZRVUQnZYg1aBSh2GUVEIQ2aQOE+G+cD4ntpWkZQj1JIiZIogDFFyHI0UxQwFugMSOFIPJftfVAEoZLBbcLEFhlQiqGp1Vd140AUklUN3eCA51C1EWMzMCezCBBmkxVIVHBWd3HHl9JQOIJSdSnJ0TDKChCwUJjoWMPaGqDKannasMo6WnM562R5YluZRwur0wpgqZE7NKUm+FNRPIhjBJxKZteWuIBMN4zRMIVIhffcgojwCF117i4nlLnY5ztRLsnOk+aV+oJY7V7m76PdkS4trKcdg0Zc0tTcKkRAAAIfkECQoAAAAsAAAAACAAIAAABO4QyEkpKqjqzScpRaVkXZWQEximw1BSCUEIlDohrft6cpKCk5xid5MNJTaAIkekKGQkWyKHkvhKsR7ARmitkAYDYRIbUQRQjWBwJRzChi9CRlBcY1UN4g0/VNB0AlcvcAYHRyZPdEQFYV8ccwR5HWxEJ02YmRMLnJ1xCYp0Y5idpQuhopmmC2KgojKasUQDk5BNAwwMOh2RtRq5uQuPZKGIJQIGwAwGf6I0JXMpC8C7kXWDBINFMxS4DKMAWVWAGYsAdNqW5uaRxkSKJOZKaU3tPOBZ4DuK2LATgJhkPJMgTwKCdFjyPHEnKxFCDhEAACH5BAkKAAAALAAAAAAgACAAAATzEMhJaVKp6s2nIkolIJ2WkBShpkVRWqqQrhLSEu9MZJKK9y1ZrqYK9WiClmvoUaF8gIQSNeF1Er4MNFn4SRSDARWroAIETg1iVwuHjYB1kYc1mwruwXKC9gmsJXliGxc+XiUCby9ydh1sOSdMkpMTBpaXBzsfhoc5l58Gm5yToAaZhaOUqjkDgCWNHAULCwOLaTmzswadEqggQwgHuQsHIoZCHQMMQgQGubVEcxOPFAcMDAYUA85eWARmfSRQCdcMe0zeP1AAygwLlJtPNAAL19DARdPzBOWSm1brJBi45soRAWQAAkrQIykShQ9wVhHCwCQCACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq+E71SRQeyqUToLA7VxF0JDyIQh/MVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiRMDjI0Fd30/iI2UA5GSS5UDj2l6NoqgOgN4gksEBgYFf0FDqKgHnyZ9OX8HrgYHdHpcHQULXAS2qKpENRg7eAMLC7kTBaixUYFkKAzWAAnLC7FLVxLWDBLKCwaKTULgEwbLA4hJtOkSBNqITT3xEgfLpBtzE/jiuL04RGEBgwWhShRgQExHBAAh+QQJCgAAACwAAAAAIAAgAAAE7xDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfZiCqGk5dTESJeaOAlClzsJsqwiJwiqnFrb2nS9kmIcgEsjQydLiIlHehhpejaIjzh9eomSjZR+ipslWIRLAgMDOR2DOqKogTB9pCUJBagDBXR6XB0EBkIIsaRsGGMMAxoDBgYHTKJiUYEGDAzHC9EACcUGkIgFzgwZ0QsSBcXHiQvOwgDdEwfFs0sDzt4S6BK4xYjkDOzn0unFeBzOBijIm1Dgmg5YFQwsCMjp1oJ8LyIAACH5BAkKAAAALAAAAAAgACAAAATwEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq+E71SRQeyqUToLA7VxF0JDyIQh/MVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GGl6NoiPOH16iZKNlH6KmyWFOggHhEEvAwwMA0N9GBsEC6amhnVcEwavDAazGwIDaH1ipaYLBUTCGgQDA8NdHz0FpqgTBwsLqAbWAAnIA4FWKdMLGdYGEgraigbT0OITBcg5QwPT4xLrROZL6AuQAPUS7bxLpoWidY0JtxLHKhwwMJBTHgPKdEQAACH5BAkKAAAALAAAAAAgACAAAATrEMhJaVKp6s2nIkqFZF2VIBWhUsJaTokqUCoBq+E71SRQeyqUToLA7VxF0JDyIQh/MVVPMt1ECZlfcjZJ9mIKoaTl1MRIl5o4CUKXOwmyrCInCKqcWtvadL2SYhyASyNDJ0uIiUd6GAULDJCRiXo1CpGXDJOUjY+Yip9DhToJA4RBLwMLCwVDfRgbBAaqqoZ1XBMHswsHtxtFaH1iqaoGNgAIxRpbFAgfPQSqpbgGBqUD1wBXeCYp1AYZ19JJOYgH1KwA4UBvQwXUBxPqVD9L3sbp2BNk2xvvFPJd+MFCN6HAAIKgNggY0KtEBAAh+QQJCgAAACwAAAAAIAAgAAAE6BDISWlSqerNpyJKhWRdlSAVoVLCWk6JKlAqAavhO9UkUHsqlE6CwO1cRdCQ8iEIfzFVTzLdRAmZX3I2SfYIDMaAFdTESJeaEDAIMxYFqrOUaNW4E4ObYcCXaiBVEgULe0NJaxxtYksjh2NLkZISgDgJhHthkpU4mW6blRiYmZOlh4JWkDqILwUGBnE6TYEbCgevr0N1gH4At7gHiRpFaLNrrq8HNgAJA70AWxQIH1+vsYMDAzZQPC9VCNkDWUhGkuE5PxJNwiUK4UfLzOlD4WvzAHaoG9nxPi5d+jYUqfAhhykOFwJWiAAAIfkECQoAAAAsAAAAACAAIAAABPAQyElpUqnqzaciSoVkXVUMFaFSwlpOCcMYlErAavhOMnNLNo8KsZsMZItJEIDIFSkLGQoQTNhIsFehRww2CQLKF0tYGKYSg+ygsZIuNqJksKgbfgIGepNo2cIUB3V1B3IvNiBYNQaDSTtfhhx0CwVPI0UJe0+bm4g5VgcGoqOcnjmjqDSdnhgEoamcsZuXO1aWQy8KAwOAuTYYGwi7w5h+Kr0SJ8MFihpNbx+4Erq7BYBuzsdiH1jCAzoSfl0rVirNbRXlBBlLX+BP0XJLAPGzTkAuAOqb0WT5AH7OcdCm5B8TgRwSRKIHQtaLCwg1RAAAOwAAAAAAAAAAAA==); -} - -.jvectormap-legend-title { - font-weight: bold; - font-size: 14px; - text-align: center; -} - -.jvectormap-legend-cnt { - position: absolute; -} - -.jvectormap-legend-cnt-h { - bottom: 0; - left: 0; -} - -.jvectormap-legend-cnt-v { - top: 0; - left: 0; -} - -.jvectormap-legend { - background: black; - color: white; - border-radius: 3px; -} - -.jvectormap-legend-cnt-h .jvectormap-legend { - float: right; - margin: 0 0 10px 10px; - padding: 3px 3px 1px 3px; -} - -.jvectormap-legend-cnt-h .jvectormap-legend .jvectormap-legend-tick { - float: right; -} - -.jvectormap-legend-cnt-v .jvectormap-legend { - margin: 10px 0 0 10px; - padding: 3px; -} - -.jvectormap-legend-cnt-h .jvectormap-legend-tick { - width: 40px; -} - -.jvectormap-legend-cnt-h .jvectormap-legend-tick-sample { - height: 15px; -} - -.jvectormap-legend-cnt-v .jvectormap-legend-tick-sample { - height: 20px; - width: 20px; - display: inline-block; - vertical-align: middle; -} - -.jvectormap-legend-tick-text { - font-size: 12px; -} - -.jvectormap-legend-cnt-h .jvectormap-legend-tick-text { - text-align: center; -} - -.jvectormap-legend-cnt-v .jvectormap-legend-tick-text { - display: inline-block; - vertical-align: middle; - line-height: 20px; - padding-right: 3px; -} - -/** - * selectize.css (v0.12.4) - * Copyright (c) 2013–2015 Brian Reavis & contributors - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this - * file except in compliance with the License. You may obtain a copy of the License at: - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software distributed under - * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF - * ANY KIND, either express or implied. See the License for the specific language - * governing permissions and limitations under the License. - * - * @author Brian Reavis - */ -.selectize-control.plugin-drag_drop.multi > .selectize-input > div.ui-sortable-placeholder { - visibility: visible !important; - background: #f2f2f2 !important; - background: rgba(0, 0, 0, 0.06) !important; - border: 0 none !important; - box-shadow: inset 0 0 12px 4px #fff; -} - -.selectize-control.plugin-drag_drop .ui-sortable-placeholder::after { - content: '!'; - visibility: hidden; -} - -.selectize-control.plugin-drag_drop .ui-sortable-helper { - box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); -} - -.selectize-dropdown-header { - position: relative; - padding: 5px 8px; - border-bottom: 1px solid #d0d0d0; - background: #f8f8f8; - border-radius: 3px 3px 0 0; -} - -.selectize-dropdown-header-close { - position: absolute; - left: 8px; - top: 50%; - color: #495057; - opacity: 0.4; - margin-top: -12px; - line-height: 20px; - font-size: 20px !important; -} - -.selectize-dropdown-header-close:hover { - color: #000; -} - -.selectize-dropdown.plugin-optgroup_columns .optgroup { - border-left: 1px solid #f2f2f2; - border-top: 0 none; - float: right; - box-sizing: border-box; -} - -.selectize-dropdown.plugin-optgroup_columns .optgroup:last-child { - border-left: 0 none; -} - -.selectize-dropdown.plugin-optgroup_columns .optgroup:before { - display: none; -} - -.selectize-dropdown.plugin-optgroup_columns .optgroup-header { - border-top: 0 none; -} - -.selectize-control.plugin-remove_button [data-value] { - position: relative; - padding-left: 24px !important; -} - -.selectize-control.plugin-remove_button [data-value] .remove { - z-index: 1; - /* fixes ie bug (see #392) */ - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 17px; - text-align: center; - font-weight: bold; - font-size: 12px; - color: inherit; - text-decoration: none; - vertical-align: middle; - display: inline-block; - padding: 2px 0 0 0; - border-right: 1px solid #d0d0d0; - border-radius: 2px 0 0 2px; - box-sizing: border-box; -} - -.selectize-control.plugin-remove_button [data-value] .remove:hover { - background: rgba(0, 0, 0, 0.05); -} - -.selectize-control.plugin-remove_button [data-value].active .remove { - border-right-color: #cacaca; -} - -.selectize-control.plugin-remove_button .disabled [data-value] .remove:hover { - background: none; -} - -.selectize-control.plugin-remove_button .disabled [data-value] .remove { - border-right-color: #fff; -} - -.selectize-control.plugin-remove_button .remove-single { - position: absolute; - left: 28px; - top: 6px; - font-size: 23px; -} - -.selectize-control { - position: relative; - padding: 0; - border: 0; -} - -.selectize-dropdown, -.selectize-input, -.selectize-input input { - color: #495057; - font-family: inherit; - font-size: 15px; - line-height: 18px; - -webkit-font-smoothing: inherit; -} - -.selectize-input, -.selectize-control.single .selectize-input.input-active { - background: #fff; - cursor: text; - display: inline-block; -} - -.selectize-input { - border: 1px solid rgba(0, 40, 100, 0.12); - padding: 0.5625rem 0.75rem; - display: inline-block; - display: block; - width: 100%; - overflow: hidden; - position: relative; - z-index: 1; - box-sizing: border-box; - border-radius: 3px; - transition: .3s border-color, .3s box-shadow; -} - -.selectize-control.multi .selectize-input.has-items { - padding: 7px 7px 4px 0.75rem; -} - -.selectize-input.full { - background-color: #fff; -} - -.selectize-input.disabled, -.selectize-input.disabled * { - cursor: default !important; -} - -.selectize-input.focus { - border-color: #467fcf; - box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25); -} - -.selectize-input.dropdown-active { - border-radius: 3px 3px 0 0; -} - -.selectize-input > * { - vertical-align: baseline; - display: -moz-inline-stack; - display: inline-block; - zoom: 1; - *display: inline; -} - -.selectize-control.multi .selectize-input > div { - cursor: pointer; - margin: 0 0 3px 3px; - padding: 2px 6px; - background: #e9ecef; - color: #495057; - font-size: 13px; - border: 0 solid rgba(0, 40, 100, 0.12); - border-radius: 3px; - font-weight: 400; -} - -.selectize-control.multi .selectize-input > div.active { - background: #e8e8e8; - color: #303030; - border: 0 solid #cacaca; -} - -.selectize-control.multi .selectize-input.disabled > div, -.selectize-control.multi .selectize-input.disabled > div.active { - color: #7d7d7d; - background: #fff; - border: 0 solid #fff; -} - -.selectize-input > input { - display: inline-block !important; - padding: 0 !important; - min-height: 0 !important; - max-height: none !important; - max-width: 100% !important; - margin: 0 0 0 2px !important; - text-indent: 0 !important; - border: 0 none !important; - background: none !important; - line-height: inherit !important; - box-shadow: none !important; -} - -.selectize-input > input::-ms-clear { - display: none; -} - -.selectize-input > input:focus { - outline: none !important; -} - -.selectize-input::after { - content: ' '; - display: block; - clear: right; -} - -.selectize-input.dropdown-active::before { - content: ' '; - display: block; - position: absolute; - background: #f0f0f0; - height: 1px; - bottom: 0; - right: 0; - left: 0; -} - -.selectize-dropdown { - position: absolute; - z-index: 10; - border: 1px solid rgba(0, 40, 100, 0.12); - background: #fff; - margin: -1px 0 0 0; - border-top: 0 none; - box-sizing: border-box; - border-radius: 0 0 3px 3px; - height: auto; - padding: 0; -} - -.selectize-dropdown [data-selectable] { - cursor: pointer; - overflow: hidden; -} - -.selectize-dropdown [data-selectable] .highlight { - background: rgba(125, 168, 208, 0.2); - border-radius: 1px; -} - -.selectize-dropdown [data-selectable], -.selectize-dropdown .optgroup-header { - padding: 6px .75rem; -} - -.selectize-dropdown .optgroup:first-child .optgroup-header { - border-top: 0 none; -} - -.selectize-dropdown .optgroup-header { - color: #495057; - background: #fff; - cursor: default; -} - -.selectize-dropdown .active { - background-color: #F1F4F8; - color: #467fcf; -} - -.selectize-dropdown .active.create { - color: #495057; -} - -.selectize-dropdown .create { - color: rgba(48, 48, 48, 0.5); -} - -.selectize-dropdown-content { - overflow-y: auto; - overflow-x: hidden; - max-height: 200px; - -webkit-overflow-scrolling: touch; -} - -.selectize-control.single .selectize-input, -.selectize-control.single .selectize-input input { - cursor: pointer; -} - -.selectize-control.single .selectize-input.input-active, -.selectize-control.single .selectize-input.input-active input { - cursor: text; -} - -.selectize-control.single .selectize-input:after { - content: ''; - display: block; - position: absolute; - top: 13px; - left: 12px; - width: 8px; - height: 10px; - background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 5'%3E%3Cpath fill='#999' d='M0 0L10 0L5 5L0 0'/%3E%3C/svg%3E") no-repeat center; - background-size: 8px 10px; - transition: .3s transform; -} - -.selectize-control.single .selectize-input.dropdown-active:after { - -webkit-transform: rotate(-180deg); - transform: rotate(-180deg); -} - -.selectize-control .selectize-input.disabled { - opacity: 0.5; - background-color: #fafafa; -} - -.selectize-dropdown .image, -.selectize-input .image { - width: 1.25rem; - height: 1.25rem; - background-size: contain; - margin: -1px -4px -1px .5rem; - line-height: 1.25rem; - float: right; - display: -ms-flexbox; - display: flex; - -ms-flex-align: center; - align-items: center; - -ms-flex-pack: center; - justify-content: center; -} - -.selectize-dropdown .image img, -.selectize-input .image img { - max-width: 100%; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); - border-radius: 2px; -} - -.selectize-input .image { - width: 1.5rem; - height: 1.5rem; - margin: -3px -5px -3px .75rem; -} - -@font-face { - font-family: "feather"; - src: url("../fonts/feather/feather-webfont.eot?t=1501841394106"); - /* IE9*/ - src: url("../fonts/feather/feather-webfont.eot?t=1501841394106#iefix") format("embedded-opentype"), url("../fonts/feather/feather-webfont.woff?t=1501841394106") format("woff"), url("../fonts/feather/feather-webfont.ttf?t=1501841394106") format("truetype"), url("../fonts/feather/feather-webfont.svg?t=1501841394106#feather") format("svg"); - /* iOS 4.1- */ -} - -.fe { - font-family: 'feather' !important; - speak: none; - font-style: normal; - font-weight: normal; - font-variant: normal; - text-transform: none; - line-height: 1; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.fe-activity:before { - content: "\e900"; -} - -.fe-airplay:before { - content: "\e901"; -} - -.fe-alert-circle:before { - content: "\e902"; -} - -.fe-alert-octagon:before { - content: "\e903"; -} - -.fe-alert-triangle:before { - content: "\e904"; -} - -.fe-align-center:before { - content: "\e905"; -} - -.fe-align-justify:before { - content: "\e906"; -} - -.fe-align-left:before { - content: "\e907"; -} - -.fe-align-right:before { - content: "\e908"; -} - -.fe-anchor:before { - content: "\e909"; -} - -.fe-aperture:before { - content: "\e90a"; -} - -.fe-arrow-down:before { - content: "\e90b"; -} - -.fe-arrow-down-circle:before { - content: "\e90c"; -} - -.fe-arrow-down-left:before { - content: "\e90d"; -} - -.fe-arrow-down-right:before { - content: "\e90e"; -} - -.fe-arrow-left:before { - content: "\e90f"; -} - -.fe-arrow-left-circle:before { - content: "\e910"; -} - -.fe-arrow-right:before { - content: "\e911"; -} - -.fe-arrow-right-circle:before { - content: "\e912"; -} - -.fe-arrow-up:before { - content: "\e913"; -} - -.fe-arrow-up-circle:before { - content: "\e914"; -} - -.fe-arrow-up-left:before { - content: "\e915"; -} - -.fe-arrow-up-right:before { - content: "\e916"; -} - -.fe-at-sign:before { - content: "\e917"; -} - -.fe-award:before { - content: "\e918"; -} - -.fe-bar-chart:before { - content: "\e919"; -} - -.fe-bar-chart-2:before { - content: "\e91a"; -} - -.fe-battery:before { - content: "\e91b"; -} - -.fe-battery-charging:before { - content: "\e91c"; -} - -.fe-bell:before { - content: "\e91d"; -} - -.fe-bell-off:before { - content: "\e91e"; -} - -.fe-bluetooth:before { - content: "\e91f"; -} - -.fe-bold:before { - content: "\e920"; -} - -.fe-book:before { - content: "\e921"; -} - -.fe-book-open:before { - content: "\e922"; -} - -.fe-bookmark:before { - content: "\e923"; -} - -.fe-box:before { - content: "\e924"; -} - -.fe-briefcase:before { - content: "\e925"; -} - -.fe-calendar:before { - content: "\e926"; -} - -.fe-camera:before { - content: "\e927"; -} - -.fe-camera-off:before { - content: "\e928"; -} - -.fe-cast:before { - content: "\e929"; -} - -.fe-check:before { - content: "\e92a"; -} - -.fe-check-circle:before { - content: "\e92b"; -} - -.fe-check-square:before { - content: "\e92c"; -} - -.fe-chevron-down:before { - content: "\e92d"; -} - -.fe-chevron-left:before { - content: "\e92e"; -} - -.fe-chevron-right:before { - content: "\e92f"; -} - -.fe-chevron-up:before { - content: "\e930"; -} - -.fe-chevrons-down:before { - content: "\e931"; -} - -.fe-chevrons-left:before { - content: "\e932"; -} - -.fe-chevrons-right:before { - content: "\e933"; -} - -.fe-chevrons-up:before { - content: "\e934"; -} - -.fe-chrome:before { - content: "\e935"; -} - -.fe-circle:before { - content: "\e936"; -} - -.fe-clipboard:before { - content: "\e937"; -} - -.fe-clock:before { - content: "\e938"; -} - -.fe-cloud:before { - content: "\e939"; -} - -.fe-cloud-drizzle:before { - content: "\e93a"; -} - -.fe-cloud-lightning:before { - content: "\e93b"; -} - -.fe-cloud-off:before { - content: "\e93c"; -} - -.fe-cloud-rain:before { - content: "\e93d"; -} - -.fe-cloud-snow:before { - content: "\e93e"; -} - -.fe-code:before { - content: "\e93f"; -} - -.fe-codepen:before { - content: "\e940"; -} - -.fe-command:before { - content: "\e941"; -} - -.fe-compass:before { - content: "\e942"; -} - -.fe-copy:before { - content: "\e943"; -} - -.fe-corner-down-left:before { - content: "\e944"; -} - -.fe-corner-down-right:before { - content: "\e945"; -} - -.fe-corner-left-down:before { - content: "\e946"; -} - -.fe-corner-left-up:before { - content: "\e947"; -} - -.fe-corner-right-down:before { - content: "\e948"; -} - -.fe-corner-right-up:before { - content: "\e949"; -} - -.fe-corner-up-left:before { - content: "\e94a"; -} - -.fe-corner-up-right:before { - content: "\e94b"; -} - -.fe-cpu:before { - content: "\e94c"; -} - -.fe-credit-card:before { - content: "\e94d"; -} - -.fe-crop:before { - content: "\e94e"; -} - -.fe-crosshair:before { - content: "\e94f"; -} - -.fe-database:before { - content: "\e950"; -} - -.fe-delete:before { - content: "\e951"; -} - -.fe-disc:before { - content: "\e952"; -} - -.fe-dollar-sign:before { - content: "\e953"; -} - -.fe-download:before { - content: "\e954"; -} - -.fe-download-cloud:before { - content: "\e955"; -} - -.fe-droplet:before { - content: "\e956"; -} - -.fe-edit:before { - content: "\e957"; -} - -.fe-edit-2:before { - content: "\e958"; -} - -.fe-edit-3:before { - content: "\e959"; -} - -.fe-external-link:before { - content: "\e95a"; -} - -.fe-eye:before { - content: "\e95b"; -} - -.fe-eye-off:before { - content: "\e95c"; -} - -.fe-facebook:before { - content: "\e95d"; -} - -.fe-fast-forward:before { - content: "\e95e"; -} - -.fe-feather:before { - content: "\e95f"; -} - -.fe-file:before { - content: "\e960"; -} - -.fe-file-minus:before { - content: "\e961"; -} - -.fe-file-plus:before { - content: "\e962"; -} - -.fe-file-text:before { - content: "\e963"; -} - -.fe-film:before { - content: "\e964"; -} - -.fe-filter:before { - content: "\e965"; -} - -.fe-flag:before { - content: "\e966"; -} - -.fe-folder:before { - content: "\e967"; -} - -.fe-folder-minus:before { - content: "\e968"; -} - -.fe-folder-plus:before { - content: "\e969"; -} - -.fe-git-branch:before { - content: "\e96a"; -} - -.fe-git-commit:before { - content: "\e96b"; -} - -.fe-git-merge:before { - content: "\e96c"; -} - -.fe-git-pull-request:before { - content: "\e96d"; -} - -.fe-github:before { - content: "\e96e"; -} - -.fe-gitlab:before { - content: "\e96f"; -} - -.fe-globe:before { - content: "\e970"; -} - -.fe-grid:before { - content: "\e971"; -} - -.fe-hard-drive:before { - content: "\e972"; -} - -.fe-hash:before { - content: "\e973"; -} - -.fe-headphones:before { - content: "\e974"; -} - -.fe-heart:before { - content: "\e975"; -} - -.fe-help-circle:before { - content: "\e976"; -} - -.fe-home:before { - content: "\e977"; -} - -.fe-image:before { - content: "\e978"; -} - -.fe-inbox:before { - content: "\e979"; -} - -.fe-info:before { - content: "\e97a"; -} - -.fe-instagram:before { - content: "\e97b"; -} - -.fe-italic:before { - content: "\e97c"; -} - -.fe-layers:before { - content: "\e97d"; -} - -.fe-layout:before { - content: "\e97e"; -} - -.fe-life-buoy:before { - content: "\e97f"; -} - -.fe-link:before { - content: "\e980"; -} - -.fe-link-2:before { - content: "\e981"; -} - -.fe-linkedin:before { - content: "\e982"; -} - -.fe-list:before { - content: "\e983"; -} - -.fe-loader:before { - content: "\e984"; -} - -.fe-lock:before { - content: "\e985"; -} - -.fe-log-in:before { - content: "\e986"; -} - -.fe-log-out:before { - content: "\e987"; -} - -.fe-mail:before { - content: "\e988"; -} - -.fe-map:before { - content: "\e989"; -} - -.fe-map-pin:before { - content: "\e98a"; -} - -.fe-maximize:before { - content: "\e98b"; -} - -.fe-maximize-2:before { - content: "\e98c"; -} - -.fe-menu:before { - content: "\e98d"; -} - -.fe-message-circle:before { - content: "\e98e"; -} - -.fe-message-square:before { - content: "\e98f"; -} - -.fe-mic:before { - content: "\e990"; -} - -.fe-mic-off:before { - content: "\e991"; -} - -.fe-minimize:before { - content: "\e992"; -} - -.fe-minimize-2:before { - content: "\e993"; -} - -.fe-minus:before { - content: "\e994"; -} - -.fe-minus-circle:before { - content: "\e995"; -} - -.fe-minus-square:before { - content: "\e996"; -} - -.fe-monitor:before { - content: "\e997"; -} - -.fe-moon:before { - content: "\e998"; -} - -.fe-more-horizontal:before { - content: "\e999"; -} - -.fe-more-vertical:before { - content: "\e99a"; -} - -.fe-move:before { - content: "\e99b"; -} - -.fe-music:before { - content: "\e99c"; -} - -.fe-navigation:before { - content: "\e99d"; -} - -.fe-navigation-2:before { - content: "\e99e"; -} - -.fe-octagon:before { - content: "\e99f"; -} - -.fe-package:before { - content: "\e9a0"; -} - -.fe-paperclip:before { - content: "\e9a1"; -} - -.fe-pause:before { - content: "\e9a2"; -} - -.fe-pause-circle:before { - content: "\e9a3"; -} - -.fe-percent:before { - content: "\e9a4"; -} - -.fe-phone:before { - content: "\e9a5"; -} - -.fe-phone-call:before { - content: "\e9a6"; -} - -.fe-phone-forwarded:before { - content: "\e9a7"; -} - -.fe-phone-incoming:before { - content: "\e9a8"; -} - -.fe-phone-missed:before { - content: "\e9a9"; -} - -.fe-phone-off:before { - content: "\e9aa"; -} - -.fe-phone-outgoing:before { - content: "\e9ab"; -} - -.fe-pie-chart:before { - content: "\e9ac"; -} - -.fe-play:before { - content: "\e9ad"; -} - -.fe-play-circle:before { - content: "\e9ae"; -} - -.fe-plus:before { - content: "\e9af"; -} - -.fe-plus-circle:before { - content: "\e9b0"; -} - -.fe-plus-square:before { - content: "\e9b1"; -} - -.fe-pocket:before { - content: "\e9b2"; -} - -.fe-power:before { - content: "\e9b3"; -} - -.fe-printer:before { - content: "\e9b4"; -} - -.fe-radio:before { - content: "\e9b5"; -} - -.fe-refresh-ccw:before { - content: "\e9b6"; -} - -.fe-refresh-cw:before { - content: "\e9b7"; -} - -.fe-repeat:before { - content: "\e9b8"; -} - -.fe-rewind:before { - content: "\e9b9"; -} - -.fe-rotate-ccw:before { - content: "\e9ba"; -} - -.fe-rotate-cw:before { - content: "\e9bb"; -} - -.fe-rss:before { - content: "\e9bc"; -} - -.fe-save:before { - content: "\e9bd"; -} - -.fe-scissors:before { - content: "\e9be"; -} - -.fe-search:before { - content: "\e9bf"; -} - -.fe-send:before { - content: "\e9c0"; -} - -.fe-server:before { - content: "\e9c1"; -} - -.fe-settings:before { - content: "\e9c2"; -} - -.fe-share:before { - content: "\e9c3"; -} - -.fe-share-2:before { - content: "\e9c4"; -} - -.fe-shield:before { - content: "\e9c5"; -} - -.fe-shield-off:before { - content: "\e9c6"; -} - -.fe-shopping-bag:before { - content: "\e9c7"; -} - -.fe-shopping-cart:before { - content: "\e9c8"; -} - -.fe-shuffle:before { - content: "\e9c9"; -} - -.fe-sidebar:before { - content: "\e9ca"; -} - -.fe-skip-back:before { - content: "\e9cb"; -} - -.fe-skip-forward:before { - content: "\e9cc"; -} - -.fe-slack:before { - content: "\e9cd"; -} - -.fe-slash:before { - content: "\e9ce"; -} - -.fe-sliders:before { - content: "\e9cf"; -} - -.fe-smartphone:before { - content: "\e9d0"; -} - -.fe-speaker:before { - content: "\e9d1"; -} - -.fe-square:before { - content: "\e9d2"; -} - -.fe-star:before { - content: "\e9d3"; -} - -.fe-stop-circle:before { - content: "\e9d4"; -} - -.fe-sun:before { - content: "\e9d5"; -} - -.fe-sunrise:before { - content: "\e9d6"; -} - -.fe-sunset:before { - content: "\e9d7"; -} - -.fe-tablet:before { - content: "\e9d8"; -} - -.fe-tag:before { - content: "\e9d9"; -} - -.fe-target:before { - content: "\e9da"; -} - -.fe-terminal:before { - content: "\e9db"; -} - -.fe-thermometer:before { - content: "\e9dc"; -} - -.fe-thumbs-down:before { - content: "\e9dd"; -} - -.fe-thumbs-up:before { - content: "\e9de"; -} - -.fe-toggle-left:before { - content: "\e9df"; -} - -.fe-toggle-right:before { - content: "\e9e0"; -} - -.fe-trash:before { - content: "\e9e1"; -} - -.fe-trash-2:before { - content: "\e9e2"; -} - -.fe-trending-down:before { - content: "\e9e3"; -} - -.fe-trending-up:before { - content: "\e9e4"; -} - -.fe-triangle:before { - content: "\e9e5"; -} - -.fe-truck:before { - content: "\e9e6"; -} - -.fe-tv:before { - content: "\e9e7"; -} - -.fe-twitter:before { - content: "\e9e8"; -} - -.fe-type:before { - content: "\e9e9"; -} - -.fe-umbrella:before { - content: "\e9ea"; -} - -.fe-underline:before { - content: "\e9eb"; -} - -.fe-unlock:before { - content: "\e9ec"; -} - -.fe-upload:before { - content: "\e9ed"; -} - -.fe-upload-cloud:before { - content: "\e9ee"; -} - -.fe-user:before { - content: "\e9ef"; -} - -.fe-user-check:before { - content: "\e9f0"; -} - -.fe-user-minus:before { - content: "\e9f1"; -} - -.fe-user-plus:before { - content: "\e9f2"; -} - -.fe-user-x:before { - content: "\e9f3"; -} - -.fe-users:before { - content: "\e9f4"; -} - -.fe-video:before { - content: "\e9f5"; -} - -.fe-video-off:before { - content: "\e9f6"; -} - -.fe-voicemail:before { - content: "\e9f7"; -} - -.fe-volume:before { - content: "\e9f8"; -} - -.fe-volume-1:before { - content: "\e9f9"; -} - -.fe-volume-2:before { - content: "\e9fa"; -} - -.fe-volume-x:before { - content: "\e9fb"; -} - -.fe-watch:before { - content: "\e9fc"; -} - -.fe-wifi:before { - content: "\e9fd"; -} - -.fe-wifi-off:before { - content: "\e9fe"; -} - -.fe-wind:before { - content: "\e9ff"; -} - -.fe-x:before { - content: "\ea00"; -} - -.fe-x-circle:before { - content: "\ea01"; -} - -.fe-x-square:before { - content: "\ea02"; -} - -.fe-zap:before { - content: "\ea03"; -} - -.fe-zap-off:before { - content: "\ea04"; -} - -.fe-zoom-in:before { - content: "\ea05"; -} - -.fe-zoom-out:before { - content: "\ea06"; -} diff --git a/dist/assets/fonts/feather/feather-webfont.eot b/dist/assets/fonts/feather/feather-webfont.eot deleted file mode 100644 index 8350e1615..000000000 Binary files a/dist/assets/fonts/feather/feather-webfont.eot and /dev/null differ diff --git a/dist/assets/fonts/feather/feather-webfont.svg b/dist/assets/fonts/feather/feather-webfont.svg deleted file mode 100644 index 164c09c67..000000000 --- a/dist/assets/fonts/feather/feather-webfont.svg +++ /dev/null @@ -1,1038 +0,0 @@ - - - - -Created by FontForge 20170910 at Tue Jan 16 19:54:31 2018 - By jimmywarting - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/dist/assets/fonts/feather/feather-webfont.ttf b/dist/assets/fonts/feather/feather-webfont.ttf deleted file mode 100644 index f75018c80..000000000 Binary files a/dist/assets/fonts/feather/feather-webfont.ttf and /dev/null differ diff --git a/dist/assets/fonts/feather/feather-webfont.woff b/dist/assets/fonts/feather/feather-webfont.woff deleted file mode 100644 index 8ce9004f7..000000000 Binary files a/dist/assets/fonts/feather/feather-webfont.woff and /dev/null differ diff --git a/dist/assets/images/browsers/android-browser.svg b/dist/assets/images/browsers/android-browser.svg deleted file mode 100644 index 8065c1c30..000000000 --- a/dist/assets/images/browsers/android-browser.svg +++ /dev/null @@ -1 +0,0 @@ -android-browserCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/browsers/aol-explorer.svg b/dist/assets/images/browsers/aol-explorer.svg deleted file mode 100644 index 77422f434..000000000 --- a/dist/assets/images/browsers/aol-explorer.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/browsers/blackberry.svg b/dist/assets/images/browsers/blackberry.svg deleted file mode 100644 index ea1682cb4..000000000 --- a/dist/assets/images/browsers/blackberry.svg +++ /dev/null @@ -1 +0,0 @@ -blackberryCreated with Sketch.Layer 1 \ No newline at end of file diff --git a/dist/assets/images/browsers/camino.svg b/dist/assets/images/browsers/camino.svg deleted file mode 100644 index 317a76d3a..000000000 --- a/dist/assets/images/browsers/camino.svg +++ /dev/null @@ -1 +0,0 @@ -caminoCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/browsers/chrome.svg b/dist/assets/images/browsers/chrome.svg deleted file mode 100644 index 0a5c3a8b8..000000000 --- a/dist/assets/images/browsers/chrome.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/browsers/chromium.svg b/dist/assets/images/browsers/chromium.svg deleted file mode 100644 index 19514f11b..000000000 --- a/dist/assets/images/browsers/chromium.svg +++ /dev/null @@ -1 +0,0 @@ -image/svg+xml \ No newline at end of file diff --git a/dist/assets/images/browsers/dolphin.svg b/dist/assets/images/browsers/dolphin.svg deleted file mode 100644 index de753f568..000000000 --- a/dist/assets/images/browsers/dolphin.svg +++ /dev/null @@ -1 +0,0 @@ -dolphinCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/browsers/edge.svg b/dist/assets/images/browsers/edge.svg deleted file mode 100644 index 7626d767e..000000000 --- a/dist/assets/images/browsers/edge.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/browsers/firefox.svg b/dist/assets/images/browsers/firefox.svg deleted file mode 100644 index 6e0299b97..000000000 --- a/dist/assets/images/browsers/firefox.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/browsers/ie.svg b/dist/assets/images/browsers/ie.svg deleted file mode 100644 index 015ab2d37..000000000 --- a/dist/assets/images/browsers/ie.svg +++ /dev/null @@ -1 +0,0 @@ -image/svg+xml \ No newline at end of file diff --git a/dist/assets/images/browsers/maxthon.svg b/dist/assets/images/browsers/maxthon.svg deleted file mode 100644 index f64fe8de9..000000000 --- a/dist/assets/images/browsers/maxthon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/browsers/mozilla.svg b/dist/assets/images/browsers/mozilla.svg deleted file mode 100644 index d5774e80c..000000000 --- a/dist/assets/images/browsers/mozilla.svg +++ /dev/null @@ -1 +0,0 @@ -mozillaCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/browsers/netscape.svg b/dist/assets/images/browsers/netscape.svg deleted file mode 100644 index 201a165b8..000000000 --- a/dist/assets/images/browsers/netscape.svg +++ /dev/null @@ -1 +0,0 @@ -netscapeCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/browsers/opera.svg b/dist/assets/images/browsers/opera.svg deleted file mode 100644 index f761fcfcd..000000000 --- a/dist/assets/images/browsers/opera.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/browsers/safari.svg b/dist/assets/images/browsers/safari.svg deleted file mode 100644 index 3a5b5674f..000000000 --- a/dist/assets/images/browsers/safari.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/browsers/sleipnir.svg b/dist/assets/images/browsers/sleipnir.svg deleted file mode 100644 index a940c5f2d..000000000 --- a/dist/assets/images/browsers/sleipnir.svg +++ /dev/null @@ -1 +0,0 @@ -slepnir-mobileCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/browsers/uc-browser.svg b/dist/assets/images/browsers/uc-browser.svg deleted file mode 100644 index 8041f873d..000000000 --- a/dist/assets/images/browsers/uc-browser.svg +++ /dev/null @@ -1 +0,0 @@ -uc-browserCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/browsers/vivaldi.svg b/dist/assets/images/browsers/vivaldi.svg deleted file mode 100644 index d53054b36..000000000 --- a/dist/assets/images/browsers/vivaldi.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/crypto-currencies/bitcoin.svg b/dist/assets/images/crypto-currencies/bitcoin.svg deleted file mode 100644 index cae4d6a31..000000000 --- a/dist/assets/images/crypto-currencies/bitcoin.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/crypto-currencies/cardano.svg b/dist/assets/images/crypto-currencies/cardano.svg deleted file mode 100644 index b732eef6d..000000000 --- a/dist/assets/images/crypto-currencies/cardano.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/crypto-currencies/dash.svg b/dist/assets/images/crypto-currencies/dash.svg deleted file mode 100644 index 73da05d96..000000000 --- a/dist/assets/images/crypto-currencies/dash.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/crypto-currencies/eos.svg b/dist/assets/images/crypto-currencies/eos.svg deleted file mode 100644 index edf882ed4..000000000 --- a/dist/assets/images/crypto-currencies/eos.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/crypto-currencies/ethereum.svg b/dist/assets/images/crypto-currencies/ethereum.svg deleted file mode 100644 index 45b3820ca..000000000 --- a/dist/assets/images/crypto-currencies/ethereum.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/crypto-currencies/litecoin.svg b/dist/assets/images/crypto-currencies/litecoin.svg deleted file mode 100644 index 109d98dec..000000000 --- a/dist/assets/images/crypto-currencies/litecoin.svg +++ /dev/null @@ -1 +0,0 @@ -Litecoin \ No newline at end of file diff --git a/dist/assets/images/crypto-currencies/nem.svg b/dist/assets/images/crypto-currencies/nem.svg deleted file mode 100644 index 327bcab95..000000000 --- a/dist/assets/images/crypto-currencies/nem.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/crypto-currencies/ripple.svg b/dist/assets/images/crypto-currencies/ripple.svg deleted file mode 100644 index 56718617c..000000000 --- a/dist/assets/images/crypto-currencies/ripple.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ad.svg b/dist/assets/images/flags/ad.svg deleted file mode 100755 index b9ceae5cd..000000000 --- a/dist/assets/images/flags/ad.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ae.svg b/dist/assets/images/flags/ae.svg deleted file mode 100755 index 3b88fd0fe..000000000 --- a/dist/assets/images/flags/ae.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/af.svg b/dist/assets/images/flags/af.svg deleted file mode 100755 index 16184ee6e..000000000 --- a/dist/assets/images/flags/af.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ag.svg b/dist/assets/images/flags/ag.svg deleted file mode 100755 index 7e71e4f40..000000000 --- a/dist/assets/images/flags/ag.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ai.svg b/dist/assets/images/flags/ai.svg deleted file mode 100755 index 302f71227..000000000 --- a/dist/assets/images/flags/ai.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/al.svg b/dist/assets/images/flags/al.svg deleted file mode 100755 index 381148e43..000000000 --- a/dist/assets/images/flags/al.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/am.svg b/dist/assets/images/flags/am.svg deleted file mode 100755 index fcd656d61..000000000 --- a/dist/assets/images/flags/am.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ao.svg b/dist/assets/images/flags/ao.svg deleted file mode 100755 index f9370f943..000000000 --- a/dist/assets/images/flags/ao.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/aq.svg b/dist/assets/images/flags/aq.svg deleted file mode 100755 index c466788a0..000000000 --- a/dist/assets/images/flags/aq.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ar.svg b/dist/assets/images/flags/ar.svg deleted file mode 100755 index 5859716bd..000000000 --- a/dist/assets/images/flags/ar.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/as.svg b/dist/assets/images/flags/as.svg deleted file mode 100755 index 8cdcfb904..000000000 --- a/dist/assets/images/flags/as.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/at.svg b/dist/assets/images/flags/at.svg deleted file mode 100755 index 87128f223..000000000 --- a/dist/assets/images/flags/at.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/au.svg b/dist/assets/images/flags/au.svg deleted file mode 100755 index 69bb9a469..000000000 --- a/dist/assets/images/flags/au.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/aw.svg b/dist/assets/images/flags/aw.svg deleted file mode 100755 index 13c1a70ac..000000000 --- a/dist/assets/images/flags/aw.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ax.svg b/dist/assets/images/flags/ax.svg deleted file mode 100755 index 070768303..000000000 --- a/dist/assets/images/flags/ax.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/az.svg b/dist/assets/images/flags/az.svg deleted file mode 100755 index 3e446e7f4..000000000 --- a/dist/assets/images/flags/az.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ba.svg b/dist/assets/images/flags/ba.svg deleted file mode 100755 index 94291a481..000000000 --- a/dist/assets/images/flags/ba.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/bb.svg b/dist/assets/images/flags/bb.svg deleted file mode 100755 index 23f3a3363..000000000 --- a/dist/assets/images/flags/bb.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/bd.svg b/dist/assets/images/flags/bd.svg deleted file mode 100755 index 2e07b68fc..000000000 --- a/dist/assets/images/flags/bd.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/be.svg b/dist/assets/images/flags/be.svg deleted file mode 100755 index 907e4700b..000000000 --- a/dist/assets/images/flags/be.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/bf.svg b/dist/assets/images/flags/bf.svg deleted file mode 100755 index 3ea79912a..000000000 --- a/dist/assets/images/flags/bf.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/bg.svg b/dist/assets/images/flags/bg.svg deleted file mode 100755 index 3d76818bc..000000000 --- a/dist/assets/images/flags/bg.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/bh.svg b/dist/assets/images/flags/bh.svg deleted file mode 100755 index 6da13f442..000000000 --- a/dist/assets/images/flags/bh.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/bi.svg b/dist/assets/images/flags/bi.svg deleted file mode 100755 index 498a27774..000000000 --- a/dist/assets/images/flags/bi.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/bj.svg b/dist/assets/images/flags/bj.svg deleted file mode 100755 index fef1eccd0..000000000 --- a/dist/assets/images/flags/bj.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/bl.svg b/dist/assets/images/flags/bl.svg deleted file mode 100755 index cd256c5fc..000000000 --- a/dist/assets/images/flags/bl.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/bm.svg b/dist/assets/images/flags/bm.svg deleted file mode 100755 index 3599e0fb7..000000000 --- a/dist/assets/images/flags/bm.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/bn.svg b/dist/assets/images/flags/bn.svg deleted file mode 100755 index 4e3d0fe7a..000000000 --- a/dist/assets/images/flags/bn.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/bo.svg b/dist/assets/images/flags/bo.svg deleted file mode 100755 index c208bde39..000000000 --- a/dist/assets/images/flags/bo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/bq.svg b/dist/assets/images/flags/bq.svg deleted file mode 100755 index 93446cfd4..000000000 --- a/dist/assets/images/flags/bq.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/br.svg b/dist/assets/images/flags/br.svg deleted file mode 100755 index 8561ea7b1..000000000 --- a/dist/assets/images/flags/br.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/bs.svg b/dist/assets/images/flags/bs.svg deleted file mode 100755 index 91dc2d7e9..000000000 --- a/dist/assets/images/flags/bs.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/bt.svg b/dist/assets/images/flags/bt.svg deleted file mode 100755 index 4d2c5f53e..000000000 --- a/dist/assets/images/flags/bt.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/bv.svg b/dist/assets/images/flags/bv.svg deleted file mode 100755 index cda48ff69..000000000 --- a/dist/assets/images/flags/bv.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/bw.svg b/dist/assets/images/flags/bw.svg deleted file mode 100755 index cc154b992..000000000 --- a/dist/assets/images/flags/bw.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/by.svg b/dist/assets/images/flags/by.svg deleted file mode 100755 index 1e7be2507..000000000 --- a/dist/assets/images/flags/by.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/bz.svg b/dist/assets/images/flags/bz.svg deleted file mode 100755 index 0fec282b7..000000000 --- a/dist/assets/images/flags/bz.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ca.svg b/dist/assets/images/flags/ca.svg deleted file mode 100755 index fb542b029..000000000 --- a/dist/assets/images/flags/ca.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/dist/assets/images/flags/cc.svg b/dist/assets/images/flags/cc.svg deleted file mode 100755 index 09958459f..000000000 --- a/dist/assets/images/flags/cc.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/cd.svg b/dist/assets/images/flags/cd.svg deleted file mode 100755 index a54f831a5..000000000 --- a/dist/assets/images/flags/cd.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/cf.svg b/dist/assets/images/flags/cf.svg deleted file mode 100755 index 2c64d40f2..000000000 --- a/dist/assets/images/flags/cf.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/cg.svg b/dist/assets/images/flags/cg.svg deleted file mode 100755 index 3b9a67324..000000000 --- a/dist/assets/images/flags/cg.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ch.svg b/dist/assets/images/flags/ch.svg deleted file mode 100755 index 11a20552d..000000000 --- a/dist/assets/images/flags/ch.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ci.svg b/dist/assets/images/flags/ci.svg deleted file mode 100755 index 9a82ef37b..000000000 --- a/dist/assets/images/flags/ci.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ck.svg b/dist/assets/images/flags/ck.svg deleted file mode 100755 index a404e2ff9..000000000 --- a/dist/assets/images/flags/ck.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/cl.svg b/dist/assets/images/flags/cl.svg deleted file mode 100755 index 60d316c26..000000000 --- a/dist/assets/images/flags/cl.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/cm.svg b/dist/assets/images/flags/cm.svg deleted file mode 100755 index f5ec52ae1..000000000 --- a/dist/assets/images/flags/cm.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/cn.svg b/dist/assets/images/flags/cn.svg deleted file mode 100755 index e9e74970c..000000000 --- a/dist/assets/images/flags/cn.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/co.svg b/dist/assets/images/flags/co.svg deleted file mode 100755 index 926d620b4..000000000 --- a/dist/assets/images/flags/co.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/cr.svg b/dist/assets/images/flags/cr.svg deleted file mode 100755 index e5a9cb98c..000000000 --- a/dist/assets/images/flags/cr.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/cu.svg b/dist/assets/images/flags/cu.svg deleted file mode 100755 index a48cda4db..000000000 --- a/dist/assets/images/flags/cu.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/cv.svg b/dist/assets/images/flags/cv.svg deleted file mode 100755 index 9004e89b8..000000000 --- a/dist/assets/images/flags/cv.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/cw.svg b/dist/assets/images/flags/cw.svg deleted file mode 100755 index 974c2c0ba..000000000 --- a/dist/assets/images/flags/cw.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/cx.svg b/dist/assets/images/flags/cx.svg deleted file mode 100755 index 117abe2b2..000000000 --- a/dist/assets/images/flags/cx.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/cy.svg b/dist/assets/images/flags/cy.svg deleted file mode 100755 index 12ef15c38..000000000 --- a/dist/assets/images/flags/cy.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/cz.svg b/dist/assets/images/flags/cz.svg deleted file mode 100755 index b5a58cc13..000000000 --- a/dist/assets/images/flags/cz.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/de.svg b/dist/assets/images/flags/de.svg deleted file mode 100755 index d681fce85..000000000 --- a/dist/assets/images/flags/de.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/dj.svg b/dist/assets/images/flags/dj.svg deleted file mode 100755 index 4e7114cd3..000000000 --- a/dist/assets/images/flags/dj.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/dk.svg b/dist/assets/images/flags/dk.svg deleted file mode 100755 index af7775acf..000000000 --- a/dist/assets/images/flags/dk.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/dm.svg b/dist/assets/images/flags/dm.svg deleted file mode 100755 index 7bf9a07fd..000000000 --- a/dist/assets/images/flags/dm.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/do.svg b/dist/assets/images/flags/do.svg deleted file mode 100755 index 5001b18e3..000000000 --- a/dist/assets/images/flags/do.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/dz.svg b/dist/assets/images/flags/dz.svg deleted file mode 100755 index aa0834c77..000000000 --- a/dist/assets/images/flags/dz.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ec.svg b/dist/assets/images/flags/ec.svg deleted file mode 100755 index 7da884fc7..000000000 --- a/dist/assets/images/flags/ec.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ee.svg b/dist/assets/images/flags/ee.svg deleted file mode 100755 index b0b67006b..000000000 --- a/dist/assets/images/flags/ee.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/eg.svg b/dist/assets/images/flags/eg.svg deleted file mode 100755 index 55a7401c6..000000000 --- a/dist/assets/images/flags/eg.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/eh.svg b/dist/assets/images/flags/eh.svg deleted file mode 100755 index 3a2c1e6a2..000000000 --- a/dist/assets/images/flags/eh.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/er.svg b/dist/assets/images/flags/er.svg deleted file mode 100755 index 5470eb25b..000000000 --- a/dist/assets/images/flags/er.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/es.svg b/dist/assets/images/flags/es.svg deleted file mode 100755 index dbc157882..000000000 --- a/dist/assets/images/flags/es.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/et.svg b/dist/assets/images/flags/et.svg deleted file mode 100755 index 6a4d0cf55..000000000 --- a/dist/assets/images/flags/et.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/eu.svg b/dist/assets/images/flags/eu.svg deleted file mode 100755 index dbd6971a7..000000000 --- a/dist/assets/images/flags/eu.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/fi.svg b/dist/assets/images/flags/fi.svg deleted file mode 100755 index 06d3048cf..000000000 --- a/dist/assets/images/flags/fi.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/fj.svg b/dist/assets/images/flags/fj.svg deleted file mode 100755 index 6aab0a7e7..000000000 --- a/dist/assets/images/flags/fj.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/fk.svg b/dist/assets/images/flags/fk.svg deleted file mode 100755 index c80f01104..000000000 --- a/dist/assets/images/flags/fk.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/fm.svg b/dist/assets/images/flags/fm.svg deleted file mode 100755 index 6925a8f23..000000000 --- a/dist/assets/images/flags/fm.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/fo.svg b/dist/assets/images/flags/fo.svg deleted file mode 100755 index 7ec4a613d..000000000 --- a/dist/assets/images/flags/fo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/fr.svg b/dist/assets/images/flags/fr.svg deleted file mode 100755 index 33c456dd3..000000000 --- a/dist/assets/images/flags/fr.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ga.svg b/dist/assets/images/flags/ga.svg deleted file mode 100755 index b8f264a85..000000000 --- a/dist/assets/images/flags/ga.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/gb-eng.svg b/dist/assets/images/flags/gb-eng.svg deleted file mode 100755 index 0f6938301..000000000 --- a/dist/assets/images/flags/gb-eng.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/gb-nir.svg b/dist/assets/images/flags/gb-nir.svg deleted file mode 100755 index ac560251e..000000000 --- a/dist/assets/images/flags/gb-nir.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/gb-sct.svg b/dist/assets/images/flags/gb-sct.svg deleted file mode 100755 index 859e49dbd..000000000 --- a/dist/assets/images/flags/gb-sct.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/gb-wls.svg b/dist/assets/images/flags/gb-wls.svg deleted file mode 100755 index bc5d42da1..000000000 --- a/dist/assets/images/flags/gb-wls.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/gb.svg b/dist/assets/images/flags/gb.svg deleted file mode 100755 index 001f884bc..000000000 --- a/dist/assets/images/flags/gb.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/gd.svg b/dist/assets/images/flags/gd.svg deleted file mode 100755 index 502ee9286..000000000 --- a/dist/assets/images/flags/gd.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ge.svg b/dist/assets/images/flags/ge.svg deleted file mode 100755 index 1c994a7c3..000000000 --- a/dist/assets/images/flags/ge.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/gf.svg b/dist/assets/images/flags/gf.svg deleted file mode 100755 index 1bd8664ed..000000000 --- a/dist/assets/images/flags/gf.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/gg.svg b/dist/assets/images/flags/gg.svg deleted file mode 100755 index de79b30c4..000000000 --- a/dist/assets/images/flags/gg.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/gh.svg b/dist/assets/images/flags/gh.svg deleted file mode 100755 index 31cf2349f..000000000 --- a/dist/assets/images/flags/gh.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/gi.svg b/dist/assets/images/flags/gi.svg deleted file mode 100755 index 4e7711b1d..000000000 --- a/dist/assets/images/flags/gi.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/gl.svg b/dist/assets/images/flags/gl.svg deleted file mode 100755 index 2239044ab..000000000 --- a/dist/assets/images/flags/gl.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/gm.svg b/dist/assets/images/flags/gm.svg deleted file mode 100755 index c4dd45b12..000000000 --- a/dist/assets/images/flags/gm.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/gn.svg b/dist/assets/images/flags/gn.svg deleted file mode 100755 index c56e03e42..000000000 --- a/dist/assets/images/flags/gn.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/gp.svg b/dist/assets/images/flags/gp.svg deleted file mode 100755 index 33c456dd3..000000000 --- a/dist/assets/images/flags/gp.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/gq.svg b/dist/assets/images/flags/gq.svg deleted file mode 100755 index a72324432..000000000 --- a/dist/assets/images/flags/gq.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/gr.svg b/dist/assets/images/flags/gr.svg deleted file mode 100755 index 10b87ef6e..000000000 --- a/dist/assets/images/flags/gr.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/gs.svg b/dist/assets/images/flags/gs.svg deleted file mode 100755 index 8b6931241..000000000 --- a/dist/assets/images/flags/gs.svg +++ /dev/null @@ -1 +0,0 @@ -LEOTERRRRREOOAAAMPPPITTMG \ No newline at end of file diff --git a/dist/assets/images/flags/gt.svg b/dist/assets/images/flags/gt.svg deleted file mode 100755 index eef9fc936..000000000 --- a/dist/assets/images/flags/gt.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/gu.svg b/dist/assets/images/flags/gu.svg deleted file mode 100755 index 6993c523c..000000000 --- a/dist/assets/images/flags/gu.svg +++ /dev/null @@ -1 +0,0 @@ -GUAMGUAM \ No newline at end of file diff --git a/dist/assets/images/flags/gw.svg b/dist/assets/images/flags/gw.svg deleted file mode 100755 index 6ffb42029..000000000 --- a/dist/assets/images/flags/gw.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/gy.svg b/dist/assets/images/flags/gy.svg deleted file mode 100755 index 571d44c94..000000000 --- a/dist/assets/images/flags/gy.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/hk.svg b/dist/assets/images/flags/hk.svg deleted file mode 100755 index f06e36fe1..000000000 --- a/dist/assets/images/flags/hk.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/hm.svg b/dist/assets/images/flags/hm.svg deleted file mode 100755 index e94952ad6..000000000 --- a/dist/assets/images/flags/hm.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/hn.svg b/dist/assets/images/flags/hn.svg deleted file mode 100755 index 1bd8321f6..000000000 --- a/dist/assets/images/flags/hn.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/hr.svg b/dist/assets/images/flags/hr.svg deleted file mode 100755 index 2b737ee1c..000000000 --- a/dist/assets/images/flags/hr.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ht.svg b/dist/assets/images/flags/ht.svg deleted file mode 100755 index fbdff3aa5..000000000 --- a/dist/assets/images/flags/ht.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/hu.svg b/dist/assets/images/flags/hu.svg deleted file mode 100755 index c7e187678..000000000 --- a/dist/assets/images/flags/hu.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/id.svg b/dist/assets/images/flags/id.svg deleted file mode 100755 index a0cb094a2..000000000 --- a/dist/assets/images/flags/id.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ie.svg b/dist/assets/images/flags/ie.svg deleted file mode 100755 index 8ca940c9e..000000000 --- a/dist/assets/images/flags/ie.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/il.svg b/dist/assets/images/flags/il.svg deleted file mode 100755 index 8fffe6cf8..000000000 --- a/dist/assets/images/flags/il.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/im.svg b/dist/assets/images/flags/im.svg deleted file mode 100755 index 9cb472646..000000000 --- a/dist/assets/images/flags/im.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/in.svg b/dist/assets/images/flags/in.svg deleted file mode 100755 index 50defbf07..000000000 --- a/dist/assets/images/flags/in.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/io.svg b/dist/assets/images/flags/io.svg deleted file mode 100755 index baa770de0..000000000 --- a/dist/assets/images/flags/io.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/iq.svg b/dist/assets/images/flags/iq.svg deleted file mode 100755 index bdfe72131..000000000 --- a/dist/assets/images/flags/iq.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ir.svg b/dist/assets/images/flags/ir.svg deleted file mode 100755 index 22f97cf69..000000000 --- a/dist/assets/images/flags/ir.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/is.svg b/dist/assets/images/flags/is.svg deleted file mode 100755 index 6545c56ef..000000000 --- a/dist/assets/images/flags/is.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/it.svg b/dist/assets/images/flags/it.svg deleted file mode 100755 index 721c0ce55..000000000 --- a/dist/assets/images/flags/it.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/je.svg b/dist/assets/images/flags/je.svg deleted file mode 100755 index 22482efc4..000000000 --- a/dist/assets/images/flags/je.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/jm.svg b/dist/assets/images/flags/jm.svg deleted file mode 100755 index 794ebff31..000000000 --- a/dist/assets/images/flags/jm.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/jo.svg b/dist/assets/images/flags/jo.svg deleted file mode 100755 index e6e924653..000000000 --- a/dist/assets/images/flags/jo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/jp.svg b/dist/assets/images/flags/jp.svg deleted file mode 100755 index 5b8fef559..000000000 --- a/dist/assets/images/flags/jp.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ke.svg b/dist/assets/images/flags/ke.svg deleted file mode 100755 index 7c03d523c..000000000 --- a/dist/assets/images/flags/ke.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/kg.svg b/dist/assets/images/flags/kg.svg deleted file mode 100755 index bf79897e3..000000000 --- a/dist/assets/images/flags/kg.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/kh.svg b/dist/assets/images/flags/kh.svg deleted file mode 100755 index e4192905e..000000000 --- a/dist/assets/images/flags/kh.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ki.svg b/dist/assets/images/flags/ki.svg deleted file mode 100755 index f7f76eba8..000000000 --- a/dist/assets/images/flags/ki.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/km.svg b/dist/assets/images/flags/km.svg deleted file mode 100755 index 02cade428..000000000 --- a/dist/assets/images/flags/km.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/kn.svg b/dist/assets/images/flags/kn.svg deleted file mode 100755 index 802da76ef..000000000 --- a/dist/assets/images/flags/kn.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/kp.svg b/dist/assets/images/flags/kp.svg deleted file mode 100755 index 5a78b5261..000000000 --- a/dist/assets/images/flags/kp.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/kr.svg b/dist/assets/images/flags/kr.svg deleted file mode 100755 index 3ba5e92cd..000000000 --- a/dist/assets/images/flags/kr.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/kw.svg b/dist/assets/images/flags/kw.svg deleted file mode 100755 index 24e3a108a..000000000 --- a/dist/assets/images/flags/kw.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ky.svg b/dist/assets/images/flags/ky.svg deleted file mode 100755 index bbbc4cd52..000000000 --- a/dist/assets/images/flags/ky.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/kz.svg b/dist/assets/images/flags/kz.svg deleted file mode 100755 index d9af6f83d..000000000 --- a/dist/assets/images/flags/kz.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/la.svg b/dist/assets/images/flags/la.svg deleted file mode 100755 index 0fcec31eb..000000000 --- a/dist/assets/images/flags/la.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/lb.svg b/dist/assets/images/flags/lb.svg deleted file mode 100755 index e2f6f2b62..000000000 --- a/dist/assets/images/flags/lb.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/lc.svg b/dist/assets/images/flags/lc.svg deleted file mode 100755 index d44ffca10..000000000 --- a/dist/assets/images/flags/lc.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/li.svg b/dist/assets/images/flags/li.svg deleted file mode 100755 index 245b721e6..000000000 --- a/dist/assets/images/flags/li.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/lk.svg b/dist/assets/images/flags/lk.svg deleted file mode 100755 index d3b5e8206..000000000 --- a/dist/assets/images/flags/lk.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/lr.svg b/dist/assets/images/flags/lr.svg deleted file mode 100755 index 3386c26aa..000000000 --- a/dist/assets/images/flags/lr.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ls.svg b/dist/assets/images/flags/ls.svg deleted file mode 100755 index 17bbf6cd0..000000000 --- a/dist/assets/images/flags/ls.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/lt.svg b/dist/assets/images/flags/lt.svg deleted file mode 100755 index 6a103ff5a..000000000 --- a/dist/assets/images/flags/lt.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/lu.svg b/dist/assets/images/flags/lu.svg deleted file mode 100755 index 3e657e961..000000000 --- a/dist/assets/images/flags/lu.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/lv.svg b/dist/assets/images/flags/lv.svg deleted file mode 100755 index e6200ea43..000000000 --- a/dist/assets/images/flags/lv.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ly.svg b/dist/assets/images/flags/ly.svg deleted file mode 100755 index 0ac041467..000000000 --- a/dist/assets/images/flags/ly.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ma.svg b/dist/assets/images/flags/ma.svg deleted file mode 100755 index 4795e6c61..000000000 --- a/dist/assets/images/flags/ma.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/mc.svg b/dist/assets/images/flags/mc.svg deleted file mode 100755 index 53ea91ddd..000000000 --- a/dist/assets/images/flags/mc.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/md.svg b/dist/assets/images/flags/md.svg deleted file mode 100755 index b18b49572..000000000 --- a/dist/assets/images/flags/md.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/me.svg b/dist/assets/images/flags/me.svg deleted file mode 100755 index 6624c272b..000000000 --- a/dist/assets/images/flags/me.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/mf.svg b/dist/assets/images/flags/mf.svg deleted file mode 100755 index 33c456dd3..000000000 --- a/dist/assets/images/flags/mf.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/mg.svg b/dist/assets/images/flags/mg.svg deleted file mode 100755 index 157d074ed..000000000 --- a/dist/assets/images/flags/mg.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/mh.svg b/dist/assets/images/flags/mh.svg deleted file mode 100755 index 22703ab58..000000000 --- a/dist/assets/images/flags/mh.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/mk.svg b/dist/assets/images/flags/mk.svg deleted file mode 100755 index a77d5e8b6..000000000 --- a/dist/assets/images/flags/mk.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ml.svg b/dist/assets/images/flags/ml.svg deleted file mode 100755 index 648eede19..000000000 --- a/dist/assets/images/flags/ml.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/mm.svg b/dist/assets/images/flags/mm.svg deleted file mode 100755 index eca1371b6..000000000 --- a/dist/assets/images/flags/mm.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/mn.svg b/dist/assets/images/flags/mn.svg deleted file mode 100755 index ef0d3ee9e..000000000 --- a/dist/assets/images/flags/mn.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/mo.svg b/dist/assets/images/flags/mo.svg deleted file mode 100755 index 14b80bd6f..000000000 --- a/dist/assets/images/flags/mo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/mp.svg b/dist/assets/images/flags/mp.svg deleted file mode 100755 index 38f1009cb..000000000 --- a/dist/assets/images/flags/mp.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/mq.svg b/dist/assets/images/flags/mq.svg deleted file mode 100755 index 711b04562..000000000 --- a/dist/assets/images/flags/mq.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/mr.svg b/dist/assets/images/flags/mr.svg deleted file mode 100755 index d823a938d..000000000 --- a/dist/assets/images/flags/mr.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ms.svg b/dist/assets/images/flags/ms.svg deleted file mode 100755 index 2a5951b03..000000000 --- a/dist/assets/images/flags/ms.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/mt.svg b/dist/assets/images/flags/mt.svg deleted file mode 100755 index 2777777c1..000000000 --- a/dist/assets/images/flags/mt.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/mu.svg b/dist/assets/images/flags/mu.svg deleted file mode 100755 index dcc048cac..000000000 --- a/dist/assets/images/flags/mu.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/mv.svg b/dist/assets/images/flags/mv.svg deleted file mode 100755 index 52938d23e..000000000 --- a/dist/assets/images/flags/mv.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/mw.svg b/dist/assets/images/flags/mw.svg deleted file mode 100755 index 3dc4e80eb..000000000 --- a/dist/assets/images/flags/mw.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/mx.svg b/dist/assets/images/flags/mx.svg deleted file mode 100755 index 61d9aa9d8..000000000 --- a/dist/assets/images/flags/mx.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/my.svg b/dist/assets/images/flags/my.svg deleted file mode 100755 index 534a4be00..000000000 --- a/dist/assets/images/flags/my.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/mz.svg b/dist/assets/images/flags/mz.svg deleted file mode 100755 index ce9e8a804..000000000 --- a/dist/assets/images/flags/mz.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/na.svg b/dist/assets/images/flags/na.svg deleted file mode 100755 index 60caec25a..000000000 --- a/dist/assets/images/flags/na.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/nc.svg b/dist/assets/images/flags/nc.svg deleted file mode 100755 index 6c95ad541..000000000 --- a/dist/assets/images/flags/nc.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ne.svg b/dist/assets/images/flags/ne.svg deleted file mode 100755 index a38708666..000000000 --- a/dist/assets/images/flags/ne.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/nf.svg b/dist/assets/images/flags/nf.svg deleted file mode 100755 index de845bc91..000000000 --- a/dist/assets/images/flags/nf.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ng.svg b/dist/assets/images/flags/ng.svg deleted file mode 100755 index 9a2e663ac..000000000 --- a/dist/assets/images/flags/ng.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ni.svg b/dist/assets/images/flags/ni.svg deleted file mode 100755 index 91f312405..000000000 --- a/dist/assets/images/flags/ni.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/nl.svg b/dist/assets/images/flags/nl.svg deleted file mode 100755 index 37c639008..000000000 --- a/dist/assets/images/flags/nl.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/no.svg b/dist/assets/images/flags/no.svg deleted file mode 100755 index 5739ea091..000000000 --- a/dist/assets/images/flags/no.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/np.svg b/dist/assets/images/flags/np.svg deleted file mode 100755 index 85cb38dc7..000000000 --- a/dist/assets/images/flags/np.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/nr.svg b/dist/assets/images/flags/nr.svg deleted file mode 100755 index f33ab737a..000000000 --- a/dist/assets/images/flags/nr.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/nu.svg b/dist/assets/images/flags/nu.svg deleted file mode 100755 index 4834fe8c8..000000000 --- a/dist/assets/images/flags/nu.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/nz.svg b/dist/assets/images/flags/nz.svg deleted file mode 100755 index ddcd5027f..000000000 --- a/dist/assets/images/flags/nz.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/om.svg b/dist/assets/images/flags/om.svg deleted file mode 100755 index c5851cbf5..000000000 --- a/dist/assets/images/flags/om.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/pa.svg b/dist/assets/images/flags/pa.svg deleted file mode 100755 index 8b6900f6e..000000000 --- a/dist/assets/images/flags/pa.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/pe.svg b/dist/assets/images/flags/pe.svg deleted file mode 100755 index da10e7df6..000000000 --- a/dist/assets/images/flags/pe.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/pf.svg b/dist/assets/images/flags/pf.svg deleted file mode 100755 index 264217fd3..000000000 --- a/dist/assets/images/flags/pf.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/pg.svg b/dist/assets/images/flags/pg.svg deleted file mode 100755 index 38d067911..000000000 --- a/dist/assets/images/flags/pg.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ph.svg b/dist/assets/images/flags/ph.svg deleted file mode 100755 index f49c92ac4..000000000 --- a/dist/assets/images/flags/ph.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/pk.svg b/dist/assets/images/flags/pk.svg deleted file mode 100755 index 0478f54a9..000000000 --- a/dist/assets/images/flags/pk.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/pl.svg b/dist/assets/images/flags/pl.svg deleted file mode 100755 index 53ec758f5..000000000 --- a/dist/assets/images/flags/pl.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/pm.svg b/dist/assets/images/flags/pm.svg deleted file mode 100755 index 6c95ad541..000000000 --- a/dist/assets/images/flags/pm.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/pn.svg b/dist/assets/images/flags/pn.svg deleted file mode 100755 index e9b37f9dd..000000000 --- a/dist/assets/images/flags/pn.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/pr.svg b/dist/assets/images/flags/pr.svg deleted file mode 100755 index 58e2613f6..000000000 --- a/dist/assets/images/flags/pr.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ps.svg b/dist/assets/images/flags/ps.svg deleted file mode 100755 index 77ac5981f..000000000 --- a/dist/assets/images/flags/ps.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/pt.svg b/dist/assets/images/flags/pt.svg deleted file mode 100755 index 3b8f934bb..000000000 --- a/dist/assets/images/flags/pt.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/pw.svg b/dist/assets/images/flags/pw.svg deleted file mode 100755 index 91620ba4e..000000000 --- a/dist/assets/images/flags/pw.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/py.svg b/dist/assets/images/flags/py.svg deleted file mode 100755 index 93800948e..000000000 --- a/dist/assets/images/flags/py.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/qa.svg b/dist/assets/images/flags/qa.svg deleted file mode 100755 index c98d48992..000000000 --- a/dist/assets/images/flags/qa.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/re.svg b/dist/assets/images/flags/re.svg deleted file mode 100755 index 6c95ad541..000000000 --- a/dist/assets/images/flags/re.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ro.svg b/dist/assets/images/flags/ro.svg deleted file mode 100755 index dce850ab2..000000000 --- a/dist/assets/images/flags/ro.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/rs.svg b/dist/assets/images/flags/rs.svg deleted file mode 100755 index d6a04b350..000000000 --- a/dist/assets/images/flags/rs.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ru.svg b/dist/assets/images/flags/ru.svg deleted file mode 100755 index 273d9bed4..000000000 --- a/dist/assets/images/flags/ru.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/rw.svg b/dist/assets/images/flags/rw.svg deleted file mode 100755 index 990b51c13..000000000 --- a/dist/assets/images/flags/rw.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/sa.svg b/dist/assets/images/flags/sa.svg deleted file mode 100755 index a51805812..000000000 --- a/dist/assets/images/flags/sa.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/sb.svg b/dist/assets/images/flags/sb.svg deleted file mode 100755 index a4cb3e686..000000000 --- a/dist/assets/images/flags/sb.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/sc.svg b/dist/assets/images/flags/sc.svg deleted file mode 100755 index 480f4bafb..000000000 --- a/dist/assets/images/flags/sc.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/sd.svg b/dist/assets/images/flags/sd.svg deleted file mode 100755 index b59f65fb8..000000000 --- a/dist/assets/images/flags/sd.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/se.svg b/dist/assets/images/flags/se.svg deleted file mode 100755 index a1a818fba..000000000 --- a/dist/assets/images/flags/se.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/sg.svg b/dist/assets/images/flags/sg.svg deleted file mode 100755 index ea670f9b4..000000000 --- a/dist/assets/images/flags/sg.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/sh.svg b/dist/assets/images/flags/sh.svg deleted file mode 100755 index f5ce3d9e6..000000000 --- a/dist/assets/images/flags/sh.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/si.svg b/dist/assets/images/flags/si.svg deleted file mode 100755 index 0b3ee205c..000000000 --- a/dist/assets/images/flags/si.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/sj.svg b/dist/assets/images/flags/sj.svg deleted file mode 100755 index 5739ea091..000000000 --- a/dist/assets/images/flags/sj.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/sk.svg b/dist/assets/images/flags/sk.svg deleted file mode 100755 index 357763411..000000000 --- a/dist/assets/images/flags/sk.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/sl.svg b/dist/assets/images/flags/sl.svg deleted file mode 100755 index 42e0d6210..000000000 --- a/dist/assets/images/flags/sl.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/sm.svg b/dist/assets/images/flags/sm.svg deleted file mode 100755 index 133ae34cf..000000000 --- a/dist/assets/images/flags/sm.svg +++ /dev/null @@ -1 +0,0 @@ -LIBERTAS \ No newline at end of file diff --git a/dist/assets/images/flags/sn.svg b/dist/assets/images/flags/sn.svg deleted file mode 100755 index 28a1e7fd2..000000000 --- a/dist/assets/images/flags/sn.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/so.svg b/dist/assets/images/flags/so.svg deleted file mode 100755 index 651cfee92..000000000 --- a/dist/assets/images/flags/so.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/sr.svg b/dist/assets/images/flags/sr.svg deleted file mode 100755 index d968261e2..000000000 --- a/dist/assets/images/flags/sr.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ss.svg b/dist/assets/images/flags/ss.svg deleted file mode 100755 index c5458ee21..000000000 --- a/dist/assets/images/flags/ss.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/st.svg b/dist/assets/images/flags/st.svg deleted file mode 100755 index b48da60eb..000000000 --- a/dist/assets/images/flags/st.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/sv.svg b/dist/assets/images/flags/sv.svg deleted file mode 100755 index dec1600c9..000000000 --- a/dist/assets/images/flags/sv.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/sx.svg b/dist/assets/images/flags/sx.svg deleted file mode 100755 index cea8d7f60..000000000 --- a/dist/assets/images/flags/sx.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/sy.svg b/dist/assets/images/flags/sy.svg deleted file mode 100755 index 3ab1b1343..000000000 --- a/dist/assets/images/flags/sy.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/sz.svg b/dist/assets/images/flags/sz.svg deleted file mode 100755 index 0b05d5c81..000000000 --- a/dist/assets/images/flags/sz.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/tc.svg b/dist/assets/images/flags/tc.svg deleted file mode 100755 index e30c4196c..000000000 --- a/dist/assets/images/flags/tc.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/td.svg b/dist/assets/images/flags/td.svg deleted file mode 100755 index b0aeeeca5..000000000 --- a/dist/assets/images/flags/td.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/tf.svg b/dist/assets/images/flags/tf.svg deleted file mode 100755 index effb5adb4..000000000 --- a/dist/assets/images/flags/tf.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/tg.svg b/dist/assets/images/flags/tg.svg deleted file mode 100755 index 40d569d0f..000000000 --- a/dist/assets/images/flags/tg.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/th.svg b/dist/assets/images/flags/th.svg deleted file mode 100755 index 753a2cedc..000000000 --- a/dist/assets/images/flags/th.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/tj.svg b/dist/assets/images/flags/tj.svg deleted file mode 100755 index b605fe7a8..000000000 --- a/dist/assets/images/flags/tj.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/tk.svg b/dist/assets/images/flags/tk.svg deleted file mode 100755 index 570f08e73..000000000 --- a/dist/assets/images/flags/tk.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/tl.svg b/dist/assets/images/flags/tl.svg deleted file mode 100755 index 745064c42..000000000 --- a/dist/assets/images/flags/tl.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/tm.svg b/dist/assets/images/flags/tm.svg deleted file mode 100755 index 368d8ea87..000000000 --- a/dist/assets/images/flags/tm.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/tn.svg b/dist/assets/images/flags/tn.svg deleted file mode 100755 index e3190c9f1..000000000 --- a/dist/assets/images/flags/tn.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/to.svg b/dist/assets/images/flags/to.svg deleted file mode 100755 index ce7f3cf98..000000000 --- a/dist/assets/images/flags/to.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/tr.svg b/dist/assets/images/flags/tr.svg deleted file mode 100755 index db16e185c..000000000 --- a/dist/assets/images/flags/tr.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/tt.svg b/dist/assets/images/flags/tt.svg deleted file mode 100755 index 6c71f86fd..000000000 --- a/dist/assets/images/flags/tt.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/tv.svg b/dist/assets/images/flags/tv.svg deleted file mode 100755 index 54ca302a7..000000000 --- a/dist/assets/images/flags/tv.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/tw.svg b/dist/assets/images/flags/tw.svg deleted file mode 100755 index d11ddfca1..000000000 --- a/dist/assets/images/flags/tw.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/tz.svg b/dist/assets/images/flags/tz.svg deleted file mode 100755 index b2f7141fc..000000000 --- a/dist/assets/images/flags/tz.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ua.svg b/dist/assets/images/flags/ua.svg deleted file mode 100755 index 118620957..000000000 --- a/dist/assets/images/flags/ua.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ug.svg b/dist/assets/images/flags/ug.svg deleted file mode 100755 index e0ed3c68c..000000000 --- a/dist/assets/images/flags/ug.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/um.svg b/dist/assets/images/flags/um.svg deleted file mode 100755 index 370cd29e9..000000000 --- a/dist/assets/images/flags/um.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/un.svg b/dist/assets/images/flags/un.svg deleted file mode 100755 index e95206b54..000000000 --- a/dist/assets/images/flags/un.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/us.svg b/dist/assets/images/flags/us.svg deleted file mode 100755 index 95e707b41..000000000 --- a/dist/assets/images/flags/us.svg +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/dist/assets/images/flags/uy.svg b/dist/assets/images/flags/uy.svg deleted file mode 100755 index 81fc1f16c..000000000 --- a/dist/assets/images/flags/uy.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/uz.svg b/dist/assets/images/flags/uz.svg deleted file mode 100755 index b63fdbf5d..000000000 --- a/dist/assets/images/flags/uz.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/va.svg b/dist/assets/images/flags/va.svg deleted file mode 100755 index 00c9eea4c..000000000 --- a/dist/assets/images/flags/va.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/vc.svg b/dist/assets/images/flags/vc.svg deleted file mode 100755 index 114280991..000000000 --- a/dist/assets/images/flags/vc.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ve.svg b/dist/assets/images/flags/ve.svg deleted file mode 100755 index 839a6ccc0..000000000 --- a/dist/assets/images/flags/ve.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/vg.svg b/dist/assets/images/flags/vg.svg deleted file mode 100755 index b46659b3a..000000000 --- a/dist/assets/images/flags/vg.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/vi.svg b/dist/assets/images/flags/vi.svg deleted file mode 100755 index e292e17f7..000000000 --- a/dist/assets/images/flags/vi.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/vn.svg b/dist/assets/images/flags/vn.svg deleted file mode 100755 index 1b546a294..000000000 --- a/dist/assets/images/flags/vn.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/vu.svg b/dist/assets/images/flags/vu.svg deleted file mode 100755 index f9dbd67f1..000000000 --- a/dist/assets/images/flags/vu.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/wf.svg b/dist/assets/images/flags/wf.svg deleted file mode 100755 index 8a3ced1eb..000000000 --- a/dist/assets/images/flags/wf.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ws.svg b/dist/assets/images/flags/ws.svg deleted file mode 100755 index 94f42a09c..000000000 --- a/dist/assets/images/flags/ws.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/ye.svg b/dist/assets/images/flags/ye.svg deleted file mode 100755 index 00e3500ab..000000000 --- a/dist/assets/images/flags/ye.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/yt.svg b/dist/assets/images/flags/yt.svg deleted file mode 100755 index 6c95ad541..000000000 --- a/dist/assets/images/flags/yt.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/za.svg b/dist/assets/images/flags/za.svg deleted file mode 100755 index 273f48f18..000000000 --- a/dist/assets/images/flags/za.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/zm.svg b/dist/assets/images/flags/zm.svg deleted file mode 100755 index 6bb037344..000000000 --- a/dist/assets/images/flags/zm.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/flags/zw.svg b/dist/assets/images/flags/zw.svg deleted file mode 100755 index 138c53582..000000000 --- a/dist/assets/images/flags/zw.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/images/payments/2checkout-dark.svg b/dist/assets/images/payments/2checkout-dark.svg deleted file mode 100644 index c61fb1407..000000000 --- a/dist/assets/images/payments/2checkout-dark.svg +++ /dev/null @@ -1 +0,0 @@ -2checkout-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/2checkout.svg b/dist/assets/images/payments/2checkout.svg deleted file mode 100644 index 6dd6537d4..000000000 --- a/dist/assets/images/payments/2checkout.svg +++ /dev/null @@ -1 +0,0 @@ -2checkout-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/alipay-dark.svg b/dist/assets/images/payments/alipay-dark.svg deleted file mode 100644 index 0959682f8..000000000 --- a/dist/assets/images/payments/alipay-dark.svg +++ /dev/null @@ -1 +0,0 @@ -AliPay-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/alipay.svg b/dist/assets/images/payments/alipay.svg deleted file mode 100644 index 8ac60edad..000000000 --- a/dist/assets/images/payments/alipay.svg +++ /dev/null @@ -1 +0,0 @@ -AliPay-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/amazon-dark.svg b/dist/assets/images/payments/amazon-dark.svg deleted file mode 100644 index 1a57e5e8f..000000000 --- a/dist/assets/images/payments/amazon-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Amazon-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/amazon.svg b/dist/assets/images/payments/amazon.svg deleted file mode 100644 index 9c103a950..000000000 --- a/dist/assets/images/payments/amazon.svg +++ /dev/null @@ -1 +0,0 @@ -Amazon-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/americanexpress-dark.svg b/dist/assets/images/payments/americanexpress-dark.svg deleted file mode 100644 index 574c95830..000000000 --- a/dist/assets/images/payments/americanexpress-dark.svg +++ /dev/null @@ -1 +0,0 @@ -AmericanExpress-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/americanexpress.svg b/dist/assets/images/payments/americanexpress.svg deleted file mode 100644 index c300f96d7..000000000 --- a/dist/assets/images/payments/americanexpress.svg +++ /dev/null @@ -1 +0,0 @@ -AmericanExpress-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/applepay-dark.svg b/dist/assets/images/payments/applepay-dark.svg deleted file mode 100644 index 9f752f6b9..000000000 --- a/dist/assets/images/payments/applepay-dark.svg +++ /dev/null @@ -1 +0,0 @@ -ApplePay-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/applepay.svg b/dist/assets/images/payments/applepay.svg deleted file mode 100644 index a3bc1c491..000000000 --- a/dist/assets/images/payments/applepay.svg +++ /dev/null @@ -1 +0,0 @@ -ApplePay-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/bancontact-dark.svg b/dist/assets/images/payments/bancontact-dark.svg deleted file mode 100644 index 6b84177a2..000000000 --- a/dist/assets/images/payments/bancontact-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Bancontact-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/bancontact.svg b/dist/assets/images/payments/bancontact.svg deleted file mode 100644 index 4f74650cc..000000000 --- a/dist/assets/images/payments/bancontact.svg +++ /dev/null @@ -1 +0,0 @@ -Bancontact-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/bitcoin-dark.svg b/dist/assets/images/payments/bitcoin-dark.svg deleted file mode 100644 index 5a871ee09..000000000 --- a/dist/assets/images/payments/bitcoin-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Bitcoin-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/bitcoin.svg b/dist/assets/images/payments/bitcoin.svg deleted file mode 100644 index e0c065614..000000000 --- a/dist/assets/images/payments/bitcoin.svg +++ /dev/null @@ -1 +0,0 @@ -Bitcoin-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/bitpay-dark.svg b/dist/assets/images/payments/bitpay-dark.svg deleted file mode 100644 index 5954891f6..000000000 --- a/dist/assets/images/payments/bitpay-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Bitpay-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/bitpay.svg b/dist/assets/images/payments/bitpay.svg deleted file mode 100644 index 965363089..000000000 --- a/dist/assets/images/payments/bitpay.svg +++ /dev/null @@ -1 +0,0 @@ -Bitpay-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/cirrus-dark.svg b/dist/assets/images/payments/cirrus-dark.svg deleted file mode 100644 index 28af2a4d4..000000000 --- a/dist/assets/images/payments/cirrus-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Cirrus-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/cirrus.svg b/dist/assets/images/payments/cirrus.svg deleted file mode 100644 index 56160ef86..000000000 --- a/dist/assets/images/payments/cirrus.svg +++ /dev/null @@ -1 +0,0 @@ -Cirrus-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/clickandbuy-dark.svg b/dist/assets/images/payments/clickandbuy-dark.svg deleted file mode 100644 index 6e1473502..000000000 --- a/dist/assets/images/payments/clickandbuy-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Clickandbuy-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/clickandbuy.svg b/dist/assets/images/payments/clickandbuy.svg deleted file mode 100644 index 719fd8822..000000000 --- a/dist/assets/images/payments/clickandbuy.svg +++ /dev/null @@ -1 +0,0 @@ -Clickandbuy-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/coinkite-dark.svg b/dist/assets/images/payments/coinkite-dark.svg deleted file mode 100644 index 019f934e9..000000000 --- a/dist/assets/images/payments/coinkite-dark.svg +++ /dev/null @@ -1 +0,0 @@ -CoinKite-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/coinkite.svg b/dist/assets/images/payments/coinkite.svg deleted file mode 100644 index b31a1bc42..000000000 --- a/dist/assets/images/payments/coinkite.svg +++ /dev/null @@ -1 +0,0 @@ -Coinkite-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/dinersclub-dark.svg b/dist/assets/images/payments/dinersclub-dark.svg deleted file mode 100644 index 4b15a2107..000000000 --- a/dist/assets/images/payments/dinersclub-dark.svg +++ /dev/null @@ -1 +0,0 @@ -DinersClub-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/dinersclub.svg b/dist/assets/images/payments/dinersclub.svg deleted file mode 100644 index c907b0d21..000000000 --- a/dist/assets/images/payments/dinersclub.svg +++ /dev/null @@ -1 +0,0 @@ -DinersClub-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/directdebit-dark.svg b/dist/assets/images/payments/directdebit-dark.svg deleted file mode 100644 index 4fcacfa1d..000000000 --- a/dist/assets/images/payments/directdebit-dark.svg +++ /dev/null @@ -1 +0,0 @@ -DirectDebit-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/directdebit.svg b/dist/assets/images/payments/directdebit.svg deleted file mode 100644 index 37ad454c5..000000000 --- a/dist/assets/images/payments/directdebit.svg +++ /dev/null @@ -1 +0,0 @@ -DirectDebit-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/discover-dark.svg b/dist/assets/images/payments/discover-dark.svg deleted file mode 100644 index bb3ca4cbd..000000000 --- a/dist/assets/images/payments/discover-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Discover-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/discover.svg b/dist/assets/images/payments/discover.svg deleted file mode 100644 index 6e89ad8b4..000000000 --- a/dist/assets/images/payments/discover.svg +++ /dev/null @@ -1 +0,0 @@ -Discover-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/dwolla-dark.svg b/dist/assets/images/payments/dwolla-dark.svg deleted file mode 100644 index abfbe8e0e..000000000 --- a/dist/assets/images/payments/dwolla-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Dwolla-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/dwolla.svg b/dist/assets/images/payments/dwolla.svg deleted file mode 100644 index 772c08472..000000000 --- a/dist/assets/images/payments/dwolla.svg +++ /dev/null @@ -1 +0,0 @@ -Dwolla-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/ebay-dark.svg b/dist/assets/images/payments/ebay-dark.svg deleted file mode 100644 index 19f5fbc1a..000000000 --- a/dist/assets/images/payments/ebay-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Ebay-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/ebay.svg b/dist/assets/images/payments/ebay.svg deleted file mode 100644 index a50f1d131..000000000 --- a/dist/assets/images/payments/ebay.svg +++ /dev/null @@ -1 +0,0 @@ -Ebay-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/eway-dark.svg b/dist/assets/images/payments/eway-dark.svg deleted file mode 100644 index 9efc3ab29..000000000 --- a/dist/assets/images/payments/eway-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Eway-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/eway.svg b/dist/assets/images/payments/eway.svg deleted file mode 100644 index 248503bc0..000000000 --- a/dist/assets/images/payments/eway.svg +++ /dev/null @@ -1 +0,0 @@ -Eway-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/giropay-dark.svg b/dist/assets/images/payments/giropay-dark.svg deleted file mode 100644 index 2e074168e..000000000 --- a/dist/assets/images/payments/giropay-dark.svg +++ /dev/null @@ -1 +0,0 @@ -GiroPay-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/giropay.svg b/dist/assets/images/payments/giropay.svg deleted file mode 100644 index f1da29ce3..000000000 --- a/dist/assets/images/payments/giropay.svg +++ /dev/null @@ -1 +0,0 @@ -GiroPay-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/googlewallet-dark.svg b/dist/assets/images/payments/googlewallet-dark.svg deleted file mode 100644 index 49c32a4b8..000000000 --- a/dist/assets/images/payments/googlewallet-dark.svg +++ /dev/null @@ -1 +0,0 @@ -GoogleWallet-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/googlewallet.svg b/dist/assets/images/payments/googlewallet.svg deleted file mode 100644 index 4423d9494..000000000 --- a/dist/assets/images/payments/googlewallet.svg +++ /dev/null @@ -1 +0,0 @@ -GoogleWallet-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/ingenico-dark.svg b/dist/assets/images/payments/ingenico-dark.svg deleted file mode 100644 index ef252951f..000000000 --- a/dist/assets/images/payments/ingenico-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Ingenico-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/ingenico.svg b/dist/assets/images/payments/ingenico.svg deleted file mode 100644 index 03f64bf3d..000000000 --- a/dist/assets/images/payments/ingenico.svg +++ /dev/null @@ -1 +0,0 @@ -Ingenico-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/jcb-dark.svg b/dist/assets/images/payments/jcb-dark.svg deleted file mode 100644 index 8fcdd6c01..000000000 --- a/dist/assets/images/payments/jcb-dark.svg +++ /dev/null @@ -1 +0,0 @@ -JCB-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/jcb.svg b/dist/assets/images/payments/jcb.svg deleted file mode 100644 index 3ecc08430..000000000 --- a/dist/assets/images/payments/jcb.svg +++ /dev/null @@ -1 +0,0 @@ -JCB-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/klarna-dark.svg b/dist/assets/images/payments/klarna-dark.svg deleted file mode 100644 index 772558a1c..000000000 --- a/dist/assets/images/payments/klarna-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Klarna-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/klarna.svg b/dist/assets/images/payments/klarna.svg deleted file mode 100644 index 47359a383..000000000 --- a/dist/assets/images/payments/klarna.svg +++ /dev/null @@ -1 +0,0 @@ -Klarna-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/laser-dark.svg b/dist/assets/images/payments/laser-dark.svg deleted file mode 100644 index 682534ccb..000000000 --- a/dist/assets/images/payments/laser-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Laser-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/laser.svg b/dist/assets/images/payments/laser.svg deleted file mode 100644 index f5754eaa9..000000000 --- a/dist/assets/images/payments/laser.svg +++ /dev/null @@ -1 +0,0 @@ -Laser-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/maestro-dark.svg b/dist/assets/images/payments/maestro-dark.svg deleted file mode 100644 index 2464d396c..000000000 --- a/dist/assets/images/payments/maestro-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Maestro-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/maestro.svg b/dist/assets/images/payments/maestro.svg deleted file mode 100644 index b18b89e79..000000000 --- a/dist/assets/images/payments/maestro.svg +++ /dev/null @@ -1 +0,0 @@ -Maestro-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/mastercard-dark.svg b/dist/assets/images/payments/mastercard-dark.svg deleted file mode 100644 index c5062ebcb..000000000 --- a/dist/assets/images/payments/mastercard-dark.svg +++ /dev/null @@ -1 +0,0 @@ -MasterCard-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/mastercard.svg b/dist/assets/images/payments/mastercard.svg deleted file mode 100644 index f70f2572e..000000000 --- a/dist/assets/images/payments/mastercard.svg +++ /dev/null @@ -1 +0,0 @@ -MasterCard-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/monero-dark.svg b/dist/assets/images/payments/monero-dark.svg deleted file mode 100644 index 497dd6013..000000000 --- a/dist/assets/images/payments/monero-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Monero-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/monero.svg b/dist/assets/images/payments/monero.svg deleted file mode 100644 index 2a1d43417..000000000 --- a/dist/assets/images/payments/monero.svg +++ /dev/null @@ -1 +0,0 @@ -Monero-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/neteller-dark.svg b/dist/assets/images/payments/neteller-dark.svg deleted file mode 100644 index f6c76c14c..000000000 --- a/dist/assets/images/payments/neteller-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Neteller-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/neteller.svg b/dist/assets/images/payments/neteller.svg deleted file mode 100644 index 433e3a182..000000000 --- a/dist/assets/images/payments/neteller.svg +++ /dev/null @@ -1 +0,0 @@ -Neteller-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/ogone-dark.svg b/dist/assets/images/payments/ogone-dark.svg deleted file mode 100644 index 5847469fe..000000000 --- a/dist/assets/images/payments/ogone-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Ogone-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/ogone.svg b/dist/assets/images/payments/ogone.svg deleted file mode 100644 index dd0e5157c..000000000 --- a/dist/assets/images/payments/ogone.svg +++ /dev/null @@ -1 +0,0 @@ -Ogone-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/okpay-dark.svg b/dist/assets/images/payments/okpay-dark.svg deleted file mode 100644 index 50a22c35e..000000000 --- a/dist/assets/images/payments/okpay-dark.svg +++ /dev/null @@ -1 +0,0 @@ -OkPay-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/okpay.svg b/dist/assets/images/payments/okpay.svg deleted file mode 100644 index 116672820..000000000 --- a/dist/assets/images/payments/okpay.svg +++ /dev/null @@ -1 +0,0 @@ -OkPay-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/paybox-dark.svg b/dist/assets/images/payments/paybox-dark.svg deleted file mode 100644 index 464ba31a2..000000000 --- a/dist/assets/images/payments/paybox-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Paybox-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/paybox.svg b/dist/assets/images/payments/paybox.svg deleted file mode 100644 index 8ea00796f..000000000 --- a/dist/assets/images/payments/paybox.svg +++ /dev/null @@ -1 +0,0 @@ -Paybox-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/paymill-dark.svg b/dist/assets/images/payments/paymill-dark.svg deleted file mode 100644 index 4c5db48f8..000000000 --- a/dist/assets/images/payments/paymill-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Paymill-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/paymill.svg b/dist/assets/images/payments/paymill.svg deleted file mode 100644 index fc748735c..000000000 --- a/dist/assets/images/payments/paymill.svg +++ /dev/null @@ -1 +0,0 @@ -Paymill-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/payone-dark.svg b/dist/assets/images/payments/payone-dark.svg deleted file mode 100644 index 7d65a78b3..000000000 --- a/dist/assets/images/payments/payone-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Payone-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/payone.svg b/dist/assets/images/payments/payone.svg deleted file mode 100644 index a0c70b702..000000000 --- a/dist/assets/images/payments/payone.svg +++ /dev/null @@ -1 +0,0 @@ -Payone-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/payoneer-dark.svg b/dist/assets/images/payments/payoneer-dark.svg deleted file mode 100644 index 36b371c26..000000000 --- a/dist/assets/images/payments/payoneer-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Payoneer-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/payoneer.svg b/dist/assets/images/payments/payoneer.svg deleted file mode 100644 index 357d0755f..000000000 --- a/dist/assets/images/payments/payoneer.svg +++ /dev/null @@ -1 +0,0 @@ -Payoneer-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/paypal-dark.svg b/dist/assets/images/payments/paypal-dark.svg deleted file mode 100644 index 3d613c51b..000000000 --- a/dist/assets/images/payments/paypal-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Paypal-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/paypal.svg b/dist/assets/images/payments/paypal.svg deleted file mode 100644 index 36df6e955..000000000 --- a/dist/assets/images/payments/paypal.svg +++ /dev/null @@ -1 +0,0 @@ -Paypal-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/paysafecard-dark.svg b/dist/assets/images/payments/paysafecard-dark.svg deleted file mode 100644 index 897b7909b..000000000 --- a/dist/assets/images/payments/paysafecard-dark.svg +++ /dev/null @@ -1 +0,0 @@ -PaysafeCard-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/paysafecard.svg b/dist/assets/images/payments/paysafecard.svg deleted file mode 100644 index f8ad324dc..000000000 --- a/dist/assets/images/payments/paysafecard.svg +++ /dev/null @@ -1 +0,0 @@ -PaysafeCard-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/payu-dark.svg b/dist/assets/images/payments/payu-dark.svg deleted file mode 100644 index aef45df2f..000000000 --- a/dist/assets/images/payments/payu-dark.svg +++ /dev/null @@ -1 +0,0 @@ -PayU-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/payu.svg b/dist/assets/images/payments/payu.svg deleted file mode 100644 index 936643757..000000000 --- a/dist/assets/images/payments/payu.svg +++ /dev/null @@ -1 +0,0 @@ -PayU-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/payza-dark.svg b/dist/assets/images/payments/payza-dark.svg deleted file mode 100644 index 419fd550b..000000000 --- a/dist/assets/images/payments/payza-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Payza-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/payza.svg b/dist/assets/images/payments/payza.svg deleted file mode 100644 index 762524316..000000000 --- a/dist/assets/images/payments/payza.svg +++ /dev/null @@ -1 +0,0 @@ -Payza-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/ripple-dark.svg b/dist/assets/images/payments/ripple-dark.svg deleted file mode 100644 index 5fecdd71d..000000000 --- a/dist/assets/images/payments/ripple-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Ripple-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/ripple.svg b/dist/assets/images/payments/ripple.svg deleted file mode 100644 index 62c0b588f..000000000 --- a/dist/assets/images/payments/ripple.svg +++ /dev/null @@ -1 +0,0 @@ -Ripple-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/sage-dark.svg b/dist/assets/images/payments/sage-dark.svg deleted file mode 100644 index 84cff147b..000000000 --- a/dist/assets/images/payments/sage-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Sage-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/sage.svg b/dist/assets/images/payments/sage.svg deleted file mode 100644 index 11623bdf7..000000000 --- a/dist/assets/images/payments/sage.svg +++ /dev/null @@ -1 +0,0 @@ -Sage-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/sepa-dark.svg b/dist/assets/images/payments/sepa-dark.svg deleted file mode 100644 index 5db63235a..000000000 --- a/dist/assets/images/payments/sepa-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Sepa-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/sepa.svg b/dist/assets/images/payments/sepa.svg deleted file mode 100644 index 845952a22..000000000 --- a/dist/assets/images/payments/sepa.svg +++ /dev/null @@ -1 +0,0 @@ -Sepa-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/shopify-dark.svg b/dist/assets/images/payments/shopify-dark.svg deleted file mode 100644 index c0265cd1d..000000000 --- a/dist/assets/images/payments/shopify-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Shopify-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/shopify.svg b/dist/assets/images/payments/shopify.svg deleted file mode 100644 index 084fbed86..000000000 --- a/dist/assets/images/payments/shopify.svg +++ /dev/null @@ -1 +0,0 @@ -Shopify-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/skrill-dark.svg b/dist/assets/images/payments/skrill-dark.svg deleted file mode 100644 index e1008353a..000000000 --- a/dist/assets/images/payments/skrill-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Skrill-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/skrill.svg b/dist/assets/images/payments/skrill.svg deleted file mode 100644 index 5ad3300b0..000000000 --- a/dist/assets/images/payments/skrill.svg +++ /dev/null @@ -1 +0,0 @@ -Skrill-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/solo-dark.svg b/dist/assets/images/payments/solo-dark.svg deleted file mode 100644 index bbe6e3b66..000000000 --- a/dist/assets/images/payments/solo-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Solo-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/solo.svg b/dist/assets/images/payments/solo.svg deleted file mode 100644 index 344c23b9f..000000000 --- a/dist/assets/images/payments/solo.svg +++ /dev/null @@ -1 +0,0 @@ -Solo-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/square-dark.svg b/dist/assets/images/payments/square-dark.svg deleted file mode 100644 index acfbca901..000000000 --- a/dist/assets/images/payments/square-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Square-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/square.svg b/dist/assets/images/payments/square.svg deleted file mode 100644 index e775d8630..000000000 --- a/dist/assets/images/payments/square.svg +++ /dev/null @@ -1 +0,0 @@ -Square-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/stripe-dark.svg b/dist/assets/images/payments/stripe-dark.svg deleted file mode 100644 index 466fd87da..000000000 --- a/dist/assets/images/payments/stripe-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Stripe-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/stripe.svg b/dist/assets/images/payments/stripe.svg deleted file mode 100644 index 4bafa86cf..000000000 --- a/dist/assets/images/payments/stripe.svg +++ /dev/null @@ -1 +0,0 @@ -Stripe-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/switch-dark.svg b/dist/assets/images/payments/switch-dark.svg deleted file mode 100644 index 4e8787978..000000000 --- a/dist/assets/images/payments/switch-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Switch-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/switch.svg b/dist/assets/images/payments/switch.svg deleted file mode 100644 index e4a8e5b08..000000000 --- a/dist/assets/images/payments/switch.svg +++ /dev/null @@ -1 +0,0 @@ -Switch-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/ukash-dark.svg b/dist/assets/images/payments/ukash-dark.svg deleted file mode 100644 index f48a474de..000000000 --- a/dist/assets/images/payments/ukash-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Ukash-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/ukash.svg b/dist/assets/images/payments/ukash.svg deleted file mode 100644 index fd22ed2de..000000000 --- a/dist/assets/images/payments/ukash.svg +++ /dev/null @@ -1 +0,0 @@ -Ukash-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/unionpay-dark.svg b/dist/assets/images/payments/unionpay-dark.svg deleted file mode 100644 index 4665ee938..000000000 --- a/dist/assets/images/payments/unionpay-dark.svg +++ /dev/null @@ -1 +0,0 @@ -UnionPay-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/unionpay.svg b/dist/assets/images/payments/unionpay.svg deleted file mode 100644 index 90bdea517..000000000 --- a/dist/assets/images/payments/unionpay.svg +++ /dev/null @@ -1 +0,0 @@ -UnionPay-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/verifone-dark.svg b/dist/assets/images/payments/verifone-dark.svg deleted file mode 100644 index 9215cc6df..000000000 --- a/dist/assets/images/payments/verifone-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Verifone-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/verifone.svg b/dist/assets/images/payments/verifone.svg deleted file mode 100644 index f7ffab860..000000000 --- a/dist/assets/images/payments/verifone.svg +++ /dev/null @@ -1 +0,0 @@ -Verifone-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/verisign-dark.svg b/dist/assets/images/payments/verisign-dark.svg deleted file mode 100644 index 2f47d3a3a..000000000 --- a/dist/assets/images/payments/verisign-dark.svg +++ /dev/null @@ -1 +0,0 @@ -VeriSign-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/verisign.svg b/dist/assets/images/payments/verisign.svg deleted file mode 100644 index a557a0dd4..000000000 --- a/dist/assets/images/payments/verisign.svg +++ /dev/null @@ -1 +0,0 @@ -VeriSign-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/visa-dark.svg b/dist/assets/images/payments/visa-dark.svg deleted file mode 100644 index 95619ac38..000000000 --- a/dist/assets/images/payments/visa-dark.svg +++ /dev/null @@ -1 +0,0 @@ -Visa-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/visa.svg b/dist/assets/images/payments/visa.svg deleted file mode 100644 index f8d981353..000000000 --- a/dist/assets/images/payments/visa.svg +++ /dev/null @@ -1 +0,0 @@ -Visa-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/webmoney-dark.svg b/dist/assets/images/payments/webmoney-dark.svg deleted file mode 100644 index ab37c57ab..000000000 --- a/dist/assets/images/payments/webmoney-dark.svg +++ /dev/null @@ -1 +0,0 @@ -WebMoney-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/webmoney.svg b/dist/assets/images/payments/webmoney.svg deleted file mode 100644 index c745bffde..000000000 --- a/dist/assets/images/payments/webmoney.svg +++ /dev/null @@ -1 +0,0 @@ -WebMoney-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/westernunion-dark.svg b/dist/assets/images/payments/westernunion-dark.svg deleted file mode 100644 index a1826ff69..000000000 --- a/dist/assets/images/payments/westernunion-dark.svg +++ /dev/null @@ -1 +0,0 @@ -WesternUnion-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/westernunion.svg b/dist/assets/images/payments/westernunion.svg deleted file mode 100644 index 5c55f7122..000000000 --- a/dist/assets/images/payments/westernunion.svg +++ /dev/null @@ -1 +0,0 @@ -WesternUnion-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/worldpay-dark.svg b/dist/assets/images/payments/worldpay-dark.svg deleted file mode 100644 index a1dc42d5d..000000000 --- a/dist/assets/images/payments/worldpay-dark.svg +++ /dev/null @@ -1 +0,0 @@ -WorldPay-darkCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/images/payments/worldpay.svg b/dist/assets/images/payments/worldpay.svg deleted file mode 100644 index d48408b2e..000000000 --- a/dist/assets/images/payments/worldpay.svg +++ /dev/null @@ -1 +0,0 @@ -WorldPay-lightCreated with Sketch. \ No newline at end of file diff --git a/dist/assets/js/core.js b/dist/assets/js/core.js deleted file mode 100644 index 6333a12aa..000000000 --- a/dist/assets/js/core.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * - */ -let hexToRgba = function(hex, opacity) { - let result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); - let rgb = result ? { - r: parseInt(result[1], 16), - g: parseInt(result[2], 16), - b: parseInt(result[3], 16) - } : null; - - return 'rgba(' + rgb.r + ', ' + rgb.g + ', ' + rgb.b + ', ' + opacity + ')'; -}; - -/** - * - */ -$(document).ready(function() { - /** Constant div card */ - const DIV_CARD = 'div.card'; - - /** Initialize tooltips */ - $('[data-toggle="tooltip"]').tooltip(); - - /** Initialize popovers */ - $('[data-toggle="popover"]').popover({ - html: true - }); - - /** Function for remove card */ - $('[data-toggle="card-remove"]').on('click', function(e) { - let $card = $(this).closest(DIV_CARD); - - $card.remove(); - - e.preventDefault(); - return false; - }); - - /** Function for collapse card */ - $('[data-toggle="card-collapse"]').on('click', function(e) { - let $card = $(this).closest(DIV_CARD); - - $card.toggleClass('card-collapsed'); - - e.preventDefault(); - return false; - }); - - /** Function for fullscreen card */ - $('[data-toggle="card-fullscreen"]').on('click', function(e) { - let $card = $(this).closest(DIV_CARD); - - $card.toggleClass('card-fullscreen').removeClass('card-collapsed'); - - e.preventDefault(); - return false; - }); - - /** */ - if ($('[data-sparkline]').length) { - let generateSparkline = function($elem, data, params) { - $elem.sparkline(data, { - type: $elem.attr('data-sparkline-type'), - height: '100%', - barColor: params.color, - lineColor: params.color, - fillColor: 'transparent', - spotColor: params.color, - spotRadius: 0, - lineWidth: 2, - highlightColor: hexToRgba(params.color, .6), - highlightLineColor: '#666', - defaultPixelsPerValue: 5 - }); - }; - - require(['sparkline'], function() { - $('[data-sparkline]').each(function() { - let $chart = $(this); - - generateSparkline($chart, JSON.parse($chart.attr('data-sparkline')), { - color: $chart.attr('data-sparkline-color') - }); - }); - }); - } - - /** */ - if ($('.chart-circle').length) { - require(['circle-progress'], function() { - $('.chart-circle').each(function() { - let $this = $(this); - - $this.circleProgress({ - fill: { - color: tabler.colors[$this.attr('data-color')] || tabler.colors.blue - }, - size: $this.height(), - startAngle: -Math.PI / 4 * 2, - emptyFill: '#F4F4F4', - lineCap: 'round' - }); - }); - }); - } -}); \ No newline at end of file diff --git a/dist/assets/js/dashboard.js b/dist/assets/js/dashboard.js deleted file mode 100644 index 32bf37853..000000000 --- a/dist/assets/js/dashboard.js +++ /dev/null @@ -1,126 +0,0 @@ -require.config({ -shim: { -'bootstrap': ['jquery'], -'sparkline': ['jquery'], -'tablesorter': ['jquery'], -'vector-map': ['jquery'], -'vector-map-de': ['vector-map', 'jquery'], -'vector-map-world': ['vector-map', 'jquery'], -'core': ['bootstrap', 'jquery'], -}, -paths: { -'core': 'assets/js/core', -'jquery': 'assets/js/vendors/jquery-3.2.1.min', -'bootstrap': 'assets/js/vendors/bootstrap.bundle.min', -'sparkline': 'assets/js/vendors/jquery.sparkline.min', -'selectize': 'assets/js/vendors/selectize.min', -'tablesorter': 'assets/js/vendors/jquery.tablesorter.min', -'vector-map': 'assets/js/vendors/jquery-jvectormap-2.0.3.min', -'vector-map-de': 'assets/js/vendors/jquery-jvectormap-de-merc', -'vector-map-world': 'assets/js/vendors/jquery-jvectormap-world-mill', -'circle-progress': 'assets/js/vendors/circle-progress.min', -} -}); -window.tabler = { -colors: { -'blue': '#467fcf', -'blue-darkest': '#0e1929', -'blue-darker': '#1c3353', -'blue-dark': '#3866a6', -'blue-light': '#7ea5dd', -'blue-lighter': '#c8d9f1', -'blue-lightest': '#edf2fa', -'azure': '#45aaf2', -'azure-darkest': '#0e2230', -'azure-darker': '#1c4461', -'azure-dark': '#3788c2', -'azure-light': '#7dc4f6', -'azure-lighter': '#c7e6fb', -'azure-lightest': '#ecf7fe', -'indigo': '#6574cd', -'indigo-darkest': '#141729', -'indigo-darker': '#282e52', -'indigo-dark': '#515da4', -'indigo-light': '#939edc', -'indigo-lighter': '#d1d5f0', -'indigo-lightest': '#f0f1fa', -'purple': '#a55eea', -'purple-darkest': '#21132f', -'purple-darker': '#42265e', -'purple-dark': '#844bbb', -'purple-light': '#c08ef0', -'purple-lighter': '#e4cff9', -'purple-lightest': '#f6effd', -'pink': '#f66d9b', -'pink-darkest': '#31161f', -'pink-darker': '#622c3e', -'pink-dark': '#c5577c', -'pink-light': '#f999b9', -'pink-lighter': '#fcd3e1', -'pink-lightest': '#fef0f5', -'red': '#e74c3c', -'red-darkest': '#2e0f0c', -'red-darker': '#5c1e18', -'red-dark': '#b93d30', -'red-light': '#ee8277', -'red-lighter': '#f8c9c5', -'red-lightest': '#fdedec', -'orange': '#fd9644', -'orange-darkest': '#331e0e', -'orange-darker': '#653c1b', -'orange-dark': '#ca7836', -'orange-light': '#feb67c', -'orange-lighter': '#fee0c7', -'orange-lightest': '#fff5ec', -'yellow': '#f1c40f', -'yellow-darkest': '#302703', -'yellow-darker': '#604e06', -'yellow-dark': '#c19d0c', -'yellow-light': '#f5d657', -'yellow-lighter': '#fbedb7', -'yellow-lightest': '#fef9e7', -'lime': '#7bd235', -'lime-darkest': '#192a0b', -'lime-darker': '#315415', -'lime-dark': '#62a82a', -'lime-light': '#a3e072', -'lime-lighter': '#d7f2c2', -'lime-lightest': '#f2fbeb', -'green': '#5eba00', -'green-darkest': '#132500', -'green-darker': '#264a00', -'green-dark': '#4b9500', -'green-light': '#8ecf4d', -'green-lighter': '#cfeab3', -'green-lightest': '#eff8e6', -'teal': '#2bcbba', -'teal-darkest': '#092925', -'teal-darker': '#11514a', -'teal-dark': '#22a295', -'teal-light': '#6bdbcf', -'teal-lighter': '#bfefea', -'teal-lightest': '#eafaf8', -'cyan': '#17a2b8', -'cyan-darkest': '#052025', -'cyan-darker': '#09414a', -'cyan-dark': '#128293', -'cyan-light': '#5dbecd', -'cyan-lighter': '#b9e3ea', -'cyan-lightest': '#e8f6f8', -'gray': '#868e96', -'gray-darkest': '#1b1c1e', -'gray-darker': '#36393c', -'gray-dark': '#6b7278', -'gray-light': '#aab0b6', -'gray-lighter': '#dbdde0', -'gray-lightest': '#f3f4f5', -'gray-dark': '#343a40', -'gray-dark-darkest': '#0a0c0d', -'gray-dark-darker': '#15171a', -'gray-dark-dark': '#2a2e33', -'gray-dark-light': '#717579', -'gray-dark-lighter': '#c2c4c6', -'gray-dark-lightest': '#ebebec' -} -}; -require(['core']); \ No newline at end of file diff --git a/dist/assets/js/require.min.js b/dist/assets/js/require.min.js deleted file mode 100644 index a3ca583b9..000000000 --- a/dist/assets/js/require.min.js +++ /dev/null @@ -1,5 +0,0 @@ -/** vim: et:ts=4:sw=4:sts=4 - * @license RequireJS 2.3.5 Copyright jQuery Foundation and other contributors. - * Released under MIT license, https://github.com/requirejs/requirejs/blob/master/LICENSE - */ -var requirejs,require,define;!function(global,setTimeout){function commentReplace(e,t){return t||""}function isFunction(e){return"[object Function]"===ostring.call(e)}function isArray(e){return"[object Array]"===ostring.call(e)}function each(e,t){if(e){var i;for(i=0;i-1&&(!e[i]||!t(e[i],i,e));i-=1);}}function hasProp(e,t){return hasOwn.call(e,t)}function getOwn(e,t){return hasProp(e,t)&&e[t]}function eachProp(e,t){var i;for(i in e)if(hasProp(e,i)&&t(e[i],i))break}function mixin(e,t,i,r){return t&&eachProp(t,function(t,n){!i&&hasProp(e,n)||(!r||"object"!=typeof t||!t||isArray(t)||isFunction(t)||t instanceof RegExp?e[n]=t:(e[n]||(e[n]={}),mixin(e[n],t,i,r)))}),e}function bind(e,t){return function(){return t.apply(e,arguments)}}function scripts(){return document.getElementsByTagName("script")}function defaultOnError(e){throw e}function getGlobal(e){if(!e)return e;var t=global;return each(e.split("."),function(e){t=t[e]}),t}function makeError(e,t,i,r){var n=new Error(t+"\nhttp://requirejs.org/docs/errors.html#"+e);return n.requireType=e,n.requireModules=r,i&&(n.originalError=i),n}function newContext(e){function t(e){var t,i;for(t=0;t0&&(e.splice(t-1,2),t-=2)}}function i(e,i,r){var n,o,a,s,u,c,d,p,f,l,h=i&&i.split("/"),m=y.map,g=m&&m["*"];if(e&&(c=(e=e.split("/")).length-1,y.nodeIdCompat&&jsSuffixRegExp.test(e[c])&&(e[c]=e[c].replace(jsSuffixRegExp,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),t(e),e=e.join("/")),r&&m&&(h||g)){e:for(a=(o=e.split("/")).length;a>0;a-=1){if(u=o.slice(0,a).join("/"),h)for(s=h.length;s>0;s-=1)if((n=getOwn(m,h.slice(0,s).join("/")))&&(n=getOwn(n,u))){d=n,p=a;break e}!f&&g&&getOwn(g,u)&&(f=getOwn(g,u),l=a)}!d&&f&&(d=f,p=l),d&&(o.splice(0,p,d),e=o.join("/"))}return getOwn(y.pkgs,e)||e}function r(e){isBrowser&&each(scripts(),function(t){if(t.getAttribute("data-requiremodule")===e&&t.getAttribute("data-requirecontext")===q.contextName)return t.parentNode.removeChild(t),!0})}function n(e){var t=getOwn(y.paths,e);if(t&&isArray(t)&&t.length>1)return t.shift(),q.require.undef(e),q.makeRequire(null,{skipMap:!0})([e]),!0}function o(e){var t,i=e?e.indexOf("!"):-1;return i>-1&&(t=e.substring(0,i),e=e.substring(i+1,e.length)),[t,e]}function a(e,t,r,n){var a,s,u,c,d=null,p=t?t.name:null,f=e,l=!0,h="";return e||(l=!1,e="_@r"+(T+=1)),c=o(e),d=c[0],e=c[1],d&&(d=i(d,p,n),s=getOwn(j,d)),e&&(d?h=r?e:s&&s.normalize?s.normalize(e,function(e){return i(e,p,n)}):-1===e.indexOf("!")?i(e,p,n):e:(d=(c=o(h=i(e,p,n)))[0],h=c[1],r=!0,a=q.nameToUrl(h))),u=!d||s||r?"":"_unnormalized"+(A+=1),{prefix:d,name:h,parentMap:t,unnormalized:!!u,url:a,originalName:f,isDefine:l,id:(d?d+"!"+h:h)+u}}function s(e){var t=e.id,i=getOwn(S,t);return i||(i=S[t]=new q.Module(e)),i}function u(e,t,i){var r=e.id,n=getOwn(S,r);!hasProp(j,r)||n&&!n.defineEmitComplete?(n=s(e)).error&&"error"===t?i(n.error):n.on(t,i):"defined"===t&&i(j[r])}function c(e,t){var i=e.requireModules,r=!1;t?t(e):(each(i,function(t){var i=getOwn(S,t);i&&(i.error=e,i.events.error&&(r=!0,i.emit("error",e)))}),r||req.onError(e))}function d(){globalDefQueue.length&&(each(globalDefQueue,function(e){var t=e[0];"string"==typeof t&&(q.defQueueMap[t]=!0),O.push(e)}),globalDefQueue=[])}function p(e){delete S[e],delete k[e]}function f(e,t,i){var r=e.map.id;e.error?e.emit("error",e.error):(t[r]=!0,each(e.depMaps,function(r,n){var o=r.id,a=getOwn(S,o);!a||e.depMatched[n]||i[o]||(getOwn(t,o)?(e.defineDep(n,j[o]),e.check()):f(a,t,i))}),i[r]=!0)}function l(){var e,t,i=1e3*y.waitSeconds,o=i&&q.startTime+i<(new Date).getTime(),a=[],s=[],u=!1,d=!0;if(!x){if(x=!0,eachProp(k,function(e){var i=e.map,c=i.id;if(e.enabled&&(i.isDefine||s.push(e),!e.error))if(!e.inited&&o)n(c)?(t=!0,u=!0):(a.push(c),r(c));else if(!e.inited&&e.fetched&&i.isDefine&&(u=!0,!i.prefix))return d=!1}),o&&a.length)return e=makeError("timeout","Load timeout for modules: "+a,null,a),e.contextName=q.contextName,c(e);d&&each(s,function(e){f(e,{},{})}),o&&!t||!u||!isBrowser&&!isWebWorker||w||(w=setTimeout(function(){w=0,l()},50)),x=!1}}function h(e){hasProp(j,e[0])||s(a(e[0],null,!0)).init(e[1],e[2])}function m(e,t,i,r){e.detachEvent&&!isOpera?r&&e.detachEvent(r,t):e.removeEventListener(i,t,!1)}function g(e){var t=e.currentTarget||e.srcElement;return m(t,q.onScriptLoad,"load","onreadystatechange"),m(t,q.onScriptError,"error"),{node:t,id:t&&t.getAttribute("data-requiremodule")}}function v(){var e;for(d();O.length;){if(null===(e=O.shift())[0])return c(makeError("mismatch","Mismatched anonymous define() module: "+e[e.length-1]));h(e)}q.defQueueMap={}}var x,b,q,E,w,y={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},S={},k={},M={},O=[],j={},P={},R={},T=1,A=1;return E={require:function(e){return e.require?e.require:e.require=q.makeRequire(e.map)},exports:function(e){if(e.usingExports=!0,e.map.isDefine)return e.exports?j[e.map.id]=e.exports:e.exports=j[e.map.id]={}},module:function(e){return e.module?e.module:e.module={id:e.map.id,uri:e.map.url,config:function(){return getOwn(y.config,e.map.id)||{}},exports:e.exports||(e.exports={})}}},b=function(e){this.events=getOwn(M,e.id)||{},this.map=e,this.shim=getOwn(y.shim,e.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0},b.prototype={init:function(e,t,i,r){r=r||{},this.inited||(this.factory=t,i?this.on("error",i):this.events.error&&(i=bind(this,function(e){this.emit("error",e)})),this.depMaps=e&&e.slice(0),this.errback=i,this.inited=!0,this.ignore=r.ignore,r.enabled||this.enabled?this.enable():this.check())},defineDep:function(e,t){this.depMatched[e]||(this.depMatched[e]=!0,this.depCount-=1,this.depExports[e]=t)},fetch:function(){if(!this.fetched){this.fetched=!0,q.startTime=(new Date).getTime();var e=this.map;if(!this.shim)return e.prefix?this.callPlugin():this.load();q.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],bind(this,function(){return e.prefix?this.callPlugin():this.load()}))}},load:function(){var e=this.map.url;P[e]||(P[e]=!0,q.load(this.map.id,e))},check:function(){if(this.enabled&&!this.enabling){var e,t,i=this.map.id,r=this.depExports,n=this.exports,o=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,this.depCount<1&&!this.defined){if(isFunction(o)){if(this.events.error&&this.map.isDefine||req.onError!==defaultOnError)try{n=q.execCb(i,o,r,n)}catch(t){e=t}else n=q.execCb(i,o,r,n);if(this.map.isDefine&&void 0===n&&((t=this.module)?n=t.exports:this.usingExports&&(n=this.exports)),e)return e.requireMap=this.map,e.requireModules=this.map.isDefine?[this.map.id]:null,e.requireType=this.map.isDefine?"define":"require",c(this.error=e)}else n=o;if(this.exports=n,this.map.isDefine&&!this.ignore&&(j[i]=n,req.onResourceLoad)){var a=[];each(this.depMaps,function(e){a.push(e.normalizedMap||e)}),req.onResourceLoad(q,this.map,a)}p(i),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else hasProp(q.defQueueMap,i)||this.fetch()}},callPlugin:function(){var e=this.map,t=e.id,r=a(e.prefix);this.depMaps.push(r),u(r,"defined",bind(this,function(r){var n,o,d,f=getOwn(R,this.map.id),l=this.map.name,h=this.map.parentMap?this.map.parentMap.name:null,m=q.makeRequire(e.parentMap,{enableBuildCallback:!0});return this.map.unnormalized?(r.normalize&&(l=r.normalize(l,function(e){return i(e,h,!0)})||""),o=a(e.prefix+"!"+l,this.map.parentMap,!0),u(o,"defined",bind(this,function(e){this.map.normalizedMap=o,this.init([],function(){return e},null,{enabled:!0,ignore:!0})})),void((d=getOwn(S,o.id))&&(this.depMaps.push(o),this.events.error&&d.on("error",bind(this,function(e){this.emit("error",e)})),d.enable()))):f?(this.map.url=q.nameToUrl(f),void this.load()):((n=bind(this,function(e){this.init([],function(){return e},null,{enabled:!0})})).error=bind(this,function(e){this.inited=!0,this.error=e,e.requireModules=[t],eachProp(S,function(e){0===e.map.id.indexOf(t+"_unnormalized")&&p(e.map.id)}),c(e)}),n.fromText=bind(this,function(i,r){var o=e.name,u=a(o),d=useInteractive;r&&(i=r),d&&(useInteractive=!1),s(u),hasProp(y.config,t)&&(y.config[o]=y.config[t]);try{req.exec(i)}catch(e){return c(makeError("fromtexteval","fromText eval for "+t+" failed: "+e,e,[t]))}d&&(useInteractive=!0),this.depMaps.push(u),q.completeLoad(o),m([o],n)}),void r.load(e.name,m,n,y))})),q.enable(r,this),this.pluginMaps[r.id]=r},enable:function(){k[this.map.id]=this,this.enabled=!0,this.enabling=!0,each(this.depMaps,bind(this,function(e,t){var i,r,n;if("string"==typeof e){if(e=a(e,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[t]=e,n=getOwn(E,e.id))return void(this.depExports[t]=n(this));this.depCount+=1,u(e,"defined",bind(this,function(e){this.undefed||(this.defineDep(t,e),this.check())})),this.errback?u(e,"error",bind(this,this.errback)):this.events.error&&u(e,"error",bind(this,function(e){this.emit("error",e)}))}i=e.id,r=S[i],hasProp(E,i)||!r||r.enabled||q.enable(e,this)})),eachProp(this.pluginMaps,bind(this,function(e){var t=getOwn(S,e.id);t&&!t.enabled&&q.enable(e,this)})),this.enabling=!1,this.check()},on:function(e,t){var i=this.events[e];i||(i=this.events[e]=[]),i.push(t)},emit:function(e,t){each(this.events[e],function(e){e(t)}),"error"===e&&delete this.events[e]}},q={config:y,contextName:e,registry:S,defined:j,urlFetched:P,defQueue:O,defQueueMap:{},Module:b,makeModuleMap:a,nextTick:req.nextTick,onError:c,configure:function(e){if(e.baseUrl&&"/"!==e.baseUrl.charAt(e.baseUrl.length-1)&&(e.baseUrl+="/"),"string"==typeof e.urlArgs){var t=e.urlArgs;e.urlArgs=function(e,i){return(-1===i.indexOf("?")?"?":"&")+t}}var i=y.shim,r={paths:!0,bundles:!0,config:!0,map:!0};eachProp(e,function(e,t){r[t]?(y[t]||(y[t]={}),mixin(y[t],e,!0,!0)):y[t]=e}),e.bundles&&eachProp(e.bundles,function(e,t){each(e,function(e){e!==t&&(R[e]=t)})}),e.shim&&(eachProp(e.shim,function(e,t){isArray(e)&&(e={deps:e}),!e.exports&&!e.init||e.exportsFn||(e.exportsFn=q.makeShimExports(e)),i[t]=e}),y.shim=i),e.packages&&each(e.packages,function(e){var t;t=(e="string"==typeof e?{name:e}:e).name,e.location&&(y.paths[t]=e.location),y.pkgs[t]=e.name+"/"+(e.main||"main").replace(currDirRegExp,"").replace(jsSuffixRegExp,"")}),eachProp(S,function(e,t){e.inited||e.map.unnormalized||(e.map=a(t,null,!0))}),(e.deps||e.callback)&&q.require(e.deps||[],e.callback)},makeShimExports:function(e){return function(){var t;return e.init&&(t=e.init.apply(global,arguments)),t||e.exports&&getGlobal(e.exports)}},makeRequire:function(t,n){function o(i,r,u){var d,p,f;return n.enableBuildCallback&&r&&isFunction(r)&&(r.__requireJsBuild=!0),"string"==typeof i?isFunction(r)?c(makeError("requireargs","Invalid require call"),u):t&&hasProp(E,i)?E[i](S[t.id]):req.get?req.get(q,i,t,o):(p=a(i,t,!1,!0),d=p.id,hasProp(j,d)?j[d]:c(makeError("notloaded",'Module name "'+d+'" has not been loaded yet for context: '+e+(t?"":". Use require([])")))):(v(),q.nextTick(function(){v(),(f=s(a(null,t))).skipMap=n.skipMap,f.init(i,r,u,{enabled:!0}),l()}),o)}return n=n||{},mixin(o,{isBrowser:isBrowser,toUrl:function(e){var r,n=e.lastIndexOf("."),o=e.split("/")[0],a="."===o||".."===o;return-1!==n&&(!a||n>1)&&(r=e.substring(n,e.length),e=e.substring(0,n)),q.nameToUrl(i(e,t&&t.id,!0),r,!0)},defined:function(e){return hasProp(j,a(e,t,!1,!0).id)},specified:function(e){return e=a(e,t,!1,!0).id,hasProp(j,e)||hasProp(S,e)}}),t||(o.undef=function(e){d();var i=a(e,t,!0),n=getOwn(S,e);n.undefed=!0,r(e),delete j[e],delete P[i.url],delete M[e],eachReverse(O,function(t,i){t[0]===e&&O.splice(i,1)}),delete q.defQueueMap[e],n&&(n.events.defined&&(M[e]=n.events),p(e))}),o},enable:function(e){getOwn(S,e.id)&&s(e).enable()},completeLoad:function(e){var t,i,r,o=getOwn(y.shim,e)||{},a=o.exports;for(d();O.length;){if(null===(i=O.shift())[0]){if(i[0]=e,t)break;t=!0}else i[0]===e&&(t=!0);h(i)}if(q.defQueueMap={},r=getOwn(S,e),!t&&!hasProp(j,e)&&r&&!r.inited){if(!(!y.enforceDefine||a&&getGlobal(a)))return n(e)?void 0:c(makeError("nodefine","No define call for "+e,null,[e]));h([e,o.deps||[],o.exportsFn])}l()},nameToUrl:function(e,t,i){var r,n,o,a,s,u,c,d=getOwn(y.pkgs,e);if(d&&(e=d),c=getOwn(R,e))return q.nameToUrl(c,t,i);if(req.jsExtRegExp.test(e))s=e+(t||"");else{for(r=y.paths,o=(n=e.split("/")).length;o>0;o-=1)if(a=n.slice(0,o).join("/"),u=getOwn(r,a)){isArray(u)&&(u=u[0]),n.splice(0,o,u);break}s=n.join("/"),s=("/"===(s+=t||(/^data\:|^blob\:|\?/.test(s)||i?"":".js")).charAt(0)||s.match(/^[\w\+\.\-]+:/)?"":y.baseUrl)+s}return y.urlArgs&&!/^blob\:/.test(s)?s+y.urlArgs(e,s):s},load:function(e,t){req.load(q,e,t)},execCb:function(e,t,i,r){return t.apply(r,i)},onScriptLoad:function(e){if("load"===e.type||readyRegExp.test((e.currentTarget||e.srcElement).readyState)){interactiveScript=null;var t=g(e);q.completeLoad(t.id)}},onScriptError:function(e){var t=g(e);if(!n(t.id)){var i=[];return eachProp(S,function(e,r){0!==r.indexOf("_@r")&&each(e.depMaps,function(e){if(e.id===t.id)return i.push(r),!0})}),c(makeError("scripterror",'Script error for "'+t.id+(i.length?'", needed by: '+i.join(", "):'"'),e,[t.id]))}}},q.require=q.makeRequire(),q}function getInteractiveScript(){return interactiveScript&&"interactive"===interactiveScript.readyState?interactiveScript:(eachReverse(scripts(),function(e){if("interactive"===e.readyState)return interactiveScript=e}),interactiveScript)}var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainScript,subPath,version="2.3.5",commentRegExp=/\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/gm,cjsRequireRegExp=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,jsSuffixRegExp=/\.js$/,currDirRegExp=/^\.\//,op=Object.prototype,ostring=op.toString,hasOwn=op.hasOwnProperty,isBrowser=!("undefined"==typeof window||"undefined"==typeof navigator||!window.document),isWebWorker=!isBrowser&&"undefined"!=typeof importScripts,readyRegExp=isBrowser&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,defContextName="_",isOpera="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),contexts={},cfg={},globalDefQueue=[],useInteractive=!1;if(void 0===define){if(void 0!==requirejs){if(isFunction(requirejs))return;cfg=requirejs,requirejs=void 0}void 0===require||isFunction(require)||(cfg=require,require=void 0),req=requirejs=function(e,t,i,r){var n,o,a=defContextName;return isArray(e)||"string"==typeof e||(o=e,isArray(t)?(e=t,t=i,i=r):e=[]),o&&o.context&&(a=o.context),(n=getOwn(contexts,a))||(n=contexts[a]=req.s.newContext(a)),o&&n.configure(o),n.require(e,t,i)},req.config=function(e){return req(e)},req.nextTick=void 0!==setTimeout?function(e){setTimeout(e,4)}:function(e){e()},require||(require=req),req.version=version,req.jsExtRegExp=/^\/|:|\?|\.js$/,req.isBrowser=isBrowser,s=req.s={contexts:contexts,newContext:newContext},req({}),each(["toUrl","undef","defined","specified"],function(e){req[e]=function(){var t=contexts[defContextName];return t.require[e].apply(t,arguments)}}),isBrowser&&(head=s.head=document.getElementsByTagName("head")[0],(baseElement=document.getElementsByTagName("base")[0])&&(head=s.head=baseElement.parentNode)),req.onError=defaultOnError,req.createNode=function(e,t,i){var r=e.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");return r.type=e.scriptType||"text/javascript",r.charset="utf-8",r.async=!0,r},req.load=function(e,t,i){var r,n=e&&e.config||{};if(isBrowser)return(r=req.createNode(n,t,i)).setAttribute("data-requirecontext",e.contextName),r.setAttribute("data-requiremodule",t),!r.attachEvent||r.attachEvent.toString&&r.attachEvent.toString().indexOf("[native code")<0||isOpera?(r.addEventListener("load",e.onScriptLoad,!1),r.addEventListener("error",e.onScriptError,!1)):(useInteractive=!0,r.attachEvent("onreadystatechange",e.onScriptLoad)),r.src=i,n.onNodeCreated&&n.onNodeCreated(r,n,t,i),currentlyAddingScript=r,baseElement?head.insertBefore(r,baseElement):head.appendChild(r),currentlyAddingScript=null,r;if(isWebWorker)try{setTimeout(function(){},0),importScripts(i),e.completeLoad(t)}catch(r){e.onError(makeError("importscripts","importScripts failed for "+t+" at "+i,r,[t]))}},isBrowser&&!cfg.skipDataMain&&eachReverse(scripts(),function(e){if(head||(head=e.parentNode),dataMain=e.getAttribute("data-main"))return mainScript=dataMain,cfg.baseUrl||-1!==mainScript.indexOf("!")||(src=mainScript.split("/"),mainScript=src.pop(),subPath=src.length?src.join("/")+"/":"./",cfg.baseUrl=subPath),mainScript=mainScript.replace(jsSuffixRegExp,""),req.jsExtRegExp.test(mainScript)&&(mainScript=dataMain),cfg.deps=cfg.deps?cfg.deps.concat(mainScript):[mainScript],!0}),define=function(e,t,i){var r,n;"string"!=typeof e&&(i=t,t=e,e=null),isArray(t)||(i=t,t=null),!t&&isFunction(i)&&(t=[],i.length&&(i.toString().replace(commentRegExp,commentReplace).replace(cjsRequireRegExp,function(e,i){t.push(i)}),t=(1===i.length?["require"]:["require","exports","module"]).concat(t))),useInteractive&&(r=currentlyAddingScript||getInteractiveScript())&&(e||(e=r.getAttribute("data-requiremodule")),n=contexts[r.getAttribute("data-requirecontext")]),n?(n.defQueue.push([e,t,i]),n.defQueueMap[e]=!0):globalDefQueue.push([e,t,i])},define.amd={jQuery:!0},req.exec=function(text){return eval(text)},req(cfg)}}(this,"undefined"==typeof setTimeout?void 0:setTimeout); \ No newline at end of file diff --git a/dist/assets/js/vendors/bootstrap.bundle.min.js b/dist/assets/js/vendors/bootstrap.bundle.min.js deleted file mode 100644 index be7336ad3..000000000 --- a/dist/assets/js/vendors/bootstrap.bundle.min.js +++ /dev/null @@ -1,7 +0,0 @@ -/*! - * Bootstrap v4.0.0 (https://getbootstrap.com) - * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - */ -!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],e):e(t.bootstrap={},t.jQuery)}(this,function(t,e){"use strict";function n(t,e){for(var n=0;n0?n:null}catch(t){return null}},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(n){t(n).trigger(e.end)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var o=n[r],s=e[r],a=s&&i.isElement(s)?"element":(l=s,{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(o).test(a))throw new Error(t.toUpperCase()+': Option "'+r+'" provided type "'+a+'" but expected type "'+o+'".')}var l}};return e=("undefined"==typeof window||!window.QUnit)&&{end:"transitionend"},t.fn.emulateTransitionEnd=n,i.supportsTransitionEnd()&&(t.event.special[i.TRANSITION_END]={bindType:e.end,delegateType:e.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}),i}(e=e&&e.hasOwnProperty("default")?e.default:e),mt=(s="alert",l="."+(a="bs.alert"),c=(o=e).fn[s],h={CLOSE:"close"+l,CLOSED:"closed"+l,CLICK_DATA_API:"click"+l+".data-api"},f="alert",u="fade",d="show",p=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){t=t||this._element;var e=this._getRootElement(t);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){o.removeData(this._element,a),this._element=null},e._getRootElement=function(t){var e=gt.getSelectorFromElement(t),n=!1;return e&&(n=o(e)[0]),n||(n=o(t).closest("."+f)[0]),n},e._triggerCloseEvent=function(t){var e=o.Event(h.CLOSE);return o(t).trigger(e),e},e._removeElement=function(t){var e=this;o(t).removeClass(d),gt.supportsTransitionEnd()&&o(t).hasClass(u)?o(t).one(gt.TRANSITION_END,function(n){return e._destroyElement(t,n)}).emulateTransitionEnd(150):this._destroyElement(t)},e._destroyElement=function(t){o(t).detach().trigger(h.CLOSED).remove()},t._jQueryInterface=function(e){return this.each(function(){var n=o(this),i=n.data(a);i||(i=new t(this),n.data(a,i)),"close"===e&&i[e](this)})},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},i(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}(),o(document).on(h.CLICK_DATA_API,'[data-dismiss="alert"]',p._handleDismiss(new p)),o.fn[s]=p._jQueryInterface,o.fn[s].Constructor=p,o.fn[s].noConflict=function(){return o.fn[s]=c,p._jQueryInterface},p),_t=(m="button",v="."+(_="bs.button"),E=".data-api",y=(g=e).fn[m],b="active",T="btn",C="focus",w='[data-toggle^="button"]',I='[data-toggle="buttons"]',A="input",D=".active",S=".btn",O={CLICK_DATA_API:"click"+v+E,FOCUS_BLUR_DATA_API:"focus"+v+E+" blur"+v+E},N=function(){function t(t){this._element=t}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,n=g(this._element).closest(I)[0];if(n){var i=g(this._element).find(A)[0];if(i){if("radio"===i.type)if(i.checked&&g(this._element).hasClass(b))t=!1;else{var r=g(n).find(D)[0];r&&g(r).removeClass(b)}if(t){if(i.hasAttribute("disabled")||n.hasAttribute("disabled")||i.classList.contains("disabled")||n.classList.contains("disabled"))return;i.checked=!g(this._element).hasClass(b),g(i).trigger("change")}i.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!g(this._element).hasClass(b)),t&&g(this._element).toggleClass(b)},e.dispose=function(){g.removeData(this._element,_),this._element=null},t._jQueryInterface=function(e){return this.each(function(){var n=g(this).data(_);n||(n=new t(this),g(this).data(_,n)),"toggle"===e&&n[e]()})},i(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}(),g(document).on(O.CLICK_DATA_API,w,function(t){t.preventDefault();var e=t.target;g(e).hasClass(T)||(e=g(e).closest(S)),N._jQueryInterface.call(g(e),"toggle")}).on(O.FOCUS_BLUR_DATA_API,w,function(t){var e=g(t.target).closest(S)[0];g(e).toggleClass(C,/^focus(in)?$/.test(t.type))}),g.fn[m]=N._jQueryInterface,g.fn[m].Constructor=N,g.fn[m].noConflict=function(){return g.fn[m]=y,N._jQueryInterface},N),vt=(L="carousel",x="."+(P="bs.carousel"),R=".data-api",j=(k=e).fn[L],H={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},M={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},W="next",U="prev",F="left",B="right",K={SLIDE:"slide"+x,SLID:"slid"+x,KEYDOWN:"keydown"+x,MOUSEENTER:"mouseenter"+x,MOUSELEAVE:"mouseleave"+x,TOUCHEND:"touchend"+x,LOAD_DATA_API:"load"+x+R,CLICK_DATA_API:"click"+x+R},V="carousel",Q="active",Y="slide",G="carousel-item-right",q="carousel-item-left",z="carousel-item-next",X="carousel-item-prev",J={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},Z=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(e),this._element=k(t)[0],this._indicatorsElement=k(this._element).find(J.INDICATORS)[0],this._transitionDuration=this._getTransitionDuration(),this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide(W)},e.nextWhenVisible=function(){!document.hidden&&k(this._element).is(":visible")&&"hidden"!==k(this._element).css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(U)},e.pause=function(t){t||(this._isPaused=!0),k(this._element).find(J.NEXT_PREV)[0]&>.supportsTransitionEnd()&&(gt.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(t){var e=this;this._activeElement=k(this._element).find(J.ACTIVE_ITEM)[0];var n=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)k(this._element).one(K.SLID,function(){return e.to(t)});else{if(n===t)return this.pause(),void this.cycle();var i=t>n?W:U;this._slide(i,this._items[t])}},e.dispose=function(){k(this._element).off(x),k.removeData(this._element,P),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=r({},H,t),gt.typeCheckConfig(L,t,M),t},e._getTransitionDuration=function(){var t=k(this._element).find(J.ITEM).css("transition-duration");return t?(t=t.split(",")[0]).indexOf("ms")>-1?parseFloat(t):1e3*parseFloat(t):0},e._addEventListeners=function(){var t=this;this._config.keyboard&&k(this._element).on(K.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&(k(this._element).on(K.MOUSEENTER,function(e){return t.pause(e)}).on(K.MOUSELEAVE,function(e){return t.cycle(e)}),"ontouchstart"in document.documentElement&&k(this._element).on(K.TOUCHEND,function(){t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},500+t._config.interval)}))},e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},e._getItemIndex=function(t){return this._items=k.makeArray(k(t).parent().find(J.ITEM)),this._items.indexOf(t)},e._getItemByDirection=function(t,e){var n=t===W,i=t===U,r=this._getItemIndex(e),o=this._items.length-1;if((i&&0===r||n&&r===o)&&!this._config.wrap)return e;var s=(r+(t===U?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},e._triggerSlideEvent=function(t,e){var n=this._getItemIndex(t),i=this._getItemIndex(k(this._element).find(J.ACTIVE_ITEM)[0]),r=k.Event(K.SLIDE,{relatedTarget:t,direction:e,from:i,to:n});return k(this._element).trigger(r),r},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){k(this._indicatorsElement).find(J.ACTIVE).removeClass(Q);var e=this._indicatorsElement.children[this._getItemIndex(t)];e&&k(e).addClass(Q)}},e._slide=function(t,e){var n,i,r,o=this,s=k(this._element).find(J.ACTIVE_ITEM)[0],a=this._getItemIndex(s),l=e||s&&this._getItemByDirection(t,s),c=this._getItemIndex(l),h=Boolean(this._interval);if(t===W?(n=q,i=z,r=F):(n=G,i=X,r=B),l&&k(l).hasClass(Q))this._isSliding=!1;else if(!this._triggerSlideEvent(l,r).isDefaultPrevented()&&s&&l){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(l);var f=k.Event(K.SLID,{relatedTarget:l,direction:r,from:a,to:c});gt.supportsTransitionEnd()&&k(this._element).hasClass(Y)?(k(l).addClass(i),gt.reflow(l),k(s).addClass(n),k(l).addClass(n),k(s).one(gt.TRANSITION_END,function(){k(l).removeClass(n+" "+i).addClass(Q),k(s).removeClass(Q+" "+i+" "+n),o._isSliding=!1,setTimeout(function(){return k(o._element).trigger(f)},0)}).emulateTransitionEnd(this._transitionDuration)):(k(s).removeClass(Q),k(l).addClass(Q),this._isSliding=!1,k(this._element).trigger(f)),h&&this.cycle()}},t._jQueryInterface=function(e){return this.each(function(){var n=k(this).data(P),i=r({},H,k(this).data());"object"==typeof e&&(i=r({},i,e));var o="string"==typeof e?e:i.slide;if(n||(n=new t(this,i),k(this).data(P,n)),"number"==typeof e)n.to(e);else if("string"==typeof o){if("undefined"==typeof n[o])throw new TypeError('No method named "'+o+'"');n[o]()}else i.interval&&(n.pause(),n.cycle())})},t._dataApiClickHandler=function(e){var n=gt.getSelectorFromElement(this);if(n){var i=k(n)[0];if(i&&k(i).hasClass(V)){var o=r({},k(i).data(),k(this).data()),s=this.getAttribute("data-slide-to");s&&(o.interval=!1),t._jQueryInterface.call(k(i),o),s&&k(i).data(P).to(s),e.preventDefault()}}},i(t,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return H}}]),t}(),k(document).on(K.CLICK_DATA_API,J.DATA_SLIDE,Z._dataApiClickHandler),k(window).on(K.LOAD_DATA_API,function(){k(J.DATA_RIDE).each(function(){var t=k(this);Z._jQueryInterface.call(t,t.data())})}),k.fn[L]=Z._jQueryInterface,k.fn[L].Constructor=Z,k.fn[L].noConflict=function(){return k.fn[L]=j,Z._jQueryInterface},Z),Et=(tt="collapse",nt="."+(et="bs.collapse"),it=($=e).fn[tt],rt={toggle:!0,parent:""},ot={toggle:"boolean",parent:"(string|element)"},st={SHOW:"show"+nt,SHOWN:"shown"+nt,HIDE:"hide"+nt,HIDDEN:"hidden"+nt,CLICK_DATA_API:"click"+nt+".data-api"},at="show",lt="collapse",ct="collapsing",ht="collapsed",ft="width",ut="height",dt={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},pt=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=$.makeArray($('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=$(dt.DATA_TOGGLE),i=0;i0&&(this._selector=o,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){$(this._element).hasClass(at)?this.hide():this.show()},e.show=function(){var e,n,i=this;if(!this._isTransitioning&&!$(this._element).hasClass(at)&&(this._parent&&0===(e=$.makeArray($(this._parent).find(dt.ACTIVES).filter('[data-parent="'+this._config.parent+'"]'))).length&&(e=null),!(e&&(n=$(e).not(this._selector).data(et))&&n._isTransitioning))){var r=$.Event(st.SHOW);if($(this._element).trigger(r),!r.isDefaultPrevented()){e&&(t._jQueryInterface.call($(e).not(this._selector),"hide"),n||$(e).data(et,null));var o=this._getDimension();$(this._element).removeClass(lt).addClass(ct),this._element.style[o]=0,this._triggerArray.length>0&&$(this._triggerArray).removeClass(ht).attr("aria-expanded",!0),this.setTransitioning(!0);var s=function(){$(i._element).removeClass(ct).addClass(lt).addClass(at),i._element.style[o]="",i.setTransitioning(!1),$(i._element).trigger(st.SHOWN)};if(gt.supportsTransitionEnd()){var a="scroll"+(o[0].toUpperCase()+o.slice(1));$(this._element).one(gt.TRANSITION_END,s).emulateTransitionEnd(600),this._element.style[o]=this._element[a]+"px"}else s()}}},e.hide=function(){var t=this;if(!this._isTransitioning&&$(this._element).hasClass(at)){var e=$.Event(st.HIDE);if($(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();if(this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",gt.reflow(this._element),$(this._element).addClass(ct).removeClass(lt).removeClass(at),this._triggerArray.length>0)for(var i=0;i0&&$(e).toggleClass(ht,!n).attr("aria-expanded",n)}},t._getTargetFromElement=function(t){var e=gt.getSelectorFromElement(t);return e?$(e)[0]:null},t._jQueryInterface=function(e){return this.each(function(){var n=$(this),i=n.data(et),o=r({},rt,n.data(),"object"==typeof e&&e);if(!i&&o.toggle&&/show|hide/.test(e)&&(o.toggle=!1),i||(i=new t(this,o),n.data(et,i)),"string"==typeof e){if("undefined"==typeof i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},i(t,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return rt}}]),t}(),$(document).on(st.CLICK_DATA_API,dt.DATA_TOGGLE,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=$(this),n=gt.getSelectorFromElement(this);$(n).each(function(){var t=$(this),n=t.data(et)?"toggle":e.data();pt._jQueryInterface.call(t,n)})}),$.fn[tt]=pt._jQueryInterface,$.fn[tt].Constructor=pt,$.fn[tt].noConflict=function(){return $.fn[tt]=it,pt._jQueryInterface},pt),yt="undefined"!=typeof window&&"undefined"!=typeof document,bt=["Edge","Trident","Firefox"],Tt=0,Ct=0;Ct=0){Tt=1;break}var wt=yt&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},Tt))}};function It(t){return t&&"[object Function]"==={}.toString.call(t)}function At(t,e){if(1!==t.nodeType)return[];var n=getComputedStyle(t,null);return e?n[e]:n}function Dt(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function St(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=At(t),n=e.overflow,i=e.overflowX,r=e.overflowY;return/(auto|scroll)/.test(n+r+i)?t:St(Dt(t))}function Ot(t){var e=t&&t.offsetParent,n=e&&e.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TD","TABLE"].indexOf(e.nodeName)&&"static"===At(e,"position")?Ot(e):e:t?t.ownerDocument.documentElement:document.documentElement}function Nt(t){return null!==t.parentNode?Nt(t.parentNode):t}function kt(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,r=n?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var s,a,l=o.commonAncestorContainer;if(t!==l&&e!==l||i.contains(r))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&Ot(s.firstElementChild)!==s?Ot(l):l;var c=Nt(t);return c.host?kt(c.host,e):kt(t,Nt(e).host)}function Lt(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var i=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||i)[e]}return t[e]}function Pt(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+i+"Width"],10)}var xt=void 0,Rt=function(){return void 0===xt&&(xt=-1!==navigator.appVersion.indexOf("MSIE 10")),xt};function jt(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],Rt()?n["offset"+t]+i["margin"+("Height"===t?"Top":"Left")]+i["margin"+("Height"===t?"Bottom":"Right")]:0)}function Ht(){var t=document.body,e=document.documentElement,n=Rt()&&getComputedStyle(e);return{height:jt("Height",t,e,n),width:jt("Width",t,e,n)}}var Mt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Wt=function(){function t(t,e){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],i=Lt(e,"top"),r=Lt(e,"left"),o=n?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=r*o,t.right+=r*o,t}(h,e)),h}function Qt(t,e,n,i){var r,o,s,a,l,c,h,f={top:0,left:0},u=kt(t,e);if("viewport"===i)o=(r=u).ownerDocument.documentElement,s=Vt(r,o),a=Math.max(o.clientWidth,window.innerWidth||0),l=Math.max(o.clientHeight,window.innerHeight||0),c=Lt(o),h=Lt(o,"left"),f=Bt({top:c-s.top+s.marginTop,left:h-s.left+s.marginLeft,width:a,height:l});else{var d=void 0;"scrollParent"===i?"BODY"===(d=St(Dt(e))).nodeName&&(d=t.ownerDocument.documentElement):d="window"===i?t.ownerDocument.documentElement:i;var p=Vt(d,u);if("HTML"!==d.nodeName||function t(e){var n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===At(e,"position")||t(Dt(e)))}(u))f=p;else{var g=Ht(),m=g.height,_=g.width;f.top+=p.top-p.marginTop,f.bottom=m+p.top,f.left+=p.left-p.marginLeft,f.right=_+p.left}}return f.left+=n,f.top+=n,f.right-=n,f.bottom-=n,f}function Yt(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=Qt(n,i,o,r),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(a).map(function(t){return Ft({key:t},a[t],{area:(e=a[t],e.width*e.height)});var e}).sort(function(t,e){return e.area-t.area}),c=l.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),h=c.length>0?c[0].key:l[0].key,f=t.split("-")[1];return h+(f?"-"+f:"")}function Gt(t,e,n){return Vt(n,kt(e,n))}function qt(t){var e=getComputedStyle(t),n=parseFloat(e.marginTop)+parseFloat(e.marginBottom),i=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function zt(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function Xt(t,e,n){n=n.split("-")[0];var i=qt(t),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),s=o?"top":"left",a=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return r[s]=e[s]+e[l]/2-i[l]/2,r[a]=n===a?e[a]-i[c]:e[zt(a)],r}function Jt(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function Zt(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=Jt(t,function(t){return t[e]===n});return t.indexOf(i)}(t,"name",n))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&It(n)&&(e.offsets.popper=Bt(e.offsets.popper),e.offsets.reference=Bt(e.offsets.reference),e=n(e,t))}),e}function $t(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function te(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i1&&void 0!==arguments[1]&&arguments[1],n=le.indexOf(t),i=le.slice(n+1).concat(le.slice(0,n));return e?i.reverse():i}var he={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function fe(t,e,n,i){var r=[0,0],o=-1!==["right","left"].indexOf(i),s=t.split(/(\+|\-)/).map(function(t){return t.trim()}),a=s.indexOf(Jt(s,function(t){return-1!==t.search(/,|\s/)}));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return(c=c.map(function(t,i){var r=(1===i?!o:o)?"height":"width",s=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)},[]).map(function(t){return function(t,e,n,i){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],s=r[2];if(!o)return t;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=i}return Bt(a)[e]/100*o}if("vh"===s||"vw"===s)return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(t,r,e,n)})})).forEach(function(t,e){t.forEach(function(n,i){re(n)&&(r[e]+=n*("-"===t[i-1]?-1:1))})}),r}var ue={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var r=t.offsets,o=r.reference,s=r.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",h={start:Ut({},l,o[l]),end:Ut({},l,o[l]+o[c]-s[c])};t.offsets.popper=Ft({},s,h[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,r=t.offsets,o=r.popper,s=r.reference,a=i.split("-")[0],l=void 0;return l=re(+n)?[+n,0]:fe(n,o,s,a),"left"===a?(o.top+=l[0],o.left-=l[1]):"right"===a?(o.top+=l[0],o.left+=l[1]):"top"===a?(o.left+=l[0],o.top-=l[1]):"bottom"===a&&(o.left+=l[0],o.top+=l[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||Ot(t.instance.popper);t.instance.reference===n&&(n=Ot(n));var i=Qt(t.instance.popper,t.instance.reference,e.padding,n);e.boundaries=i;var r=e.priority,o=t.offsets.popper,s={primary:function(t){var n=o[t];return o[t]i[t]&&!e.escapeWithReference&&(r=Math.min(o[n],i[t]-("right"===t?o.width:o.height))),Ut({},n,r)}};return r.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";o=Ft({},o,s[e](t))}),t.offsets.popper=o,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,r=t.placement.split("-")[0],o=Math.floor,s=-1!==["top","bottom"].indexOf(r),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]o(i[a])&&(t.offsets.popper[l]=o(i[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!se(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var r=t.placement.split("-")[0],o=t.offsets,s=o.popper,a=o.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",h=l?"Top":"Left",f=h.toLowerCase(),u=l?"left":"top",d=l?"bottom":"right",p=qt(i)[c];a[d]-ps[d]&&(t.offsets.popper[f]+=a[f]+p-s[d]),t.offsets.popper=Bt(t.offsets.popper);var g=a[f]+a[c]/2-p/2,m=At(t.instance.popper),_=parseFloat(m["margin"+h],10),v=parseFloat(m["border"+h+"Width"],10),E=g-t.offsets.popper[f]-_-v;return E=Math.max(Math.min(s[c]-p,E),0),t.arrowElement=i,t.offsets.arrow=(Ut(n={},f,Math.round(E)),Ut(n,u,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if($t(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=Qt(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement),i=t.placement.split("-")[0],r=zt(i),o=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case he.FLIP:s=[i,r];break;case he.CLOCKWISE:s=ce(i);break;case he.COUNTERCLOCKWISE:s=ce(i,!0);break;default:s=e.behavior}return s.forEach(function(a,l){if(i!==a||s.length===l+1)return t;i=t.placement.split("-")[0],r=zt(i);var c,h=t.offsets.popper,f=t.offsets.reference,u=Math.floor,d="left"===i&&u(h.right)>u(f.left)||"right"===i&&u(h.left)u(f.top)||"bottom"===i&&u(h.top)u(n.right),m=u(h.top)u(n.bottom),v="left"===i&&p||"right"===i&&g||"top"===i&&m||"bottom"===i&&_,E=-1!==["top","bottom"].indexOf(i),y=!!e.flipVariations&&(E&&"start"===o&&p||E&&"end"===o&&g||!E&&"start"===o&&m||!E&&"end"===o&&_);(d||v||y)&&(t.flipped=!0,(d||v)&&(i=s[l+1]),y&&(o="end"===(c=o)?"start":"start"===c?"end":c),t.placement=i+(o?"-"+o:""),t.offsets.popper=Ft({},t.offsets.popper,Xt(t.instance.popper,t.offsets.reference,t.placement)),t=Zt(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,r=i.popper,o=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return r[s?"left":"top"]=o[n]-(a?r[s?"width":"height"]:0),t.placement=zt(e),t.offsets.popper=Bt(r),t}},hide:{order:800,enabled:!0,fn:function(t){if(!se(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=Jt(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottomn.right||e.top>n.bottom||e.right2&&void 0!==arguments[2]?arguments[2]:{};Mt(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=wt(this.update.bind(this)),this.options=Ft({},t.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Ft({},t.Defaults.modifiers,r.modifiers)).forEach(function(e){i.options.modifiers[e]=Ft({},t.Defaults.modifiers[e]||{},r.modifiers?r.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return Ft({name:t},i.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&It(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return Wt(t,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=Gt(this.state,this.popper,this.reference),t.placement=Yt(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.offsets.popper=Xt(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position="absolute",t=Zt(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,$t(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[te("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=ne(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return ie.call(this)}}]),t}();de.Utils=("undefined"!=typeof window?window:global).PopperUtils,de.placements=ae,de.Defaults=ue;var pe,ge,me,_e,ve,Ee,ye,be,Te,Ce,we,Ie,Ae,De,Se,Oe,Ne,ke,Le,Pe,xe,Re,je,He,Me,We,Ue,Fe,Be,Ke,Ve,Qe,Ye,Ge,qe,ze,Xe,Je,Ze,$e,tn,en,nn,rn,on,sn,an,ln,cn,hn,fn,un,dn,pn,gn,mn,_n,vn,En,yn,bn,Tn,Cn,wn,In,An,Dn,Sn,On,Nn,kn,Ln,Pn,xn,Rn,jn,Hn,Mn,Wn,Un,Fn,Bn,Kn,Vn,Qn,Yn,Gn,qn,zn,Xn,Jn,Zn,$n,ti,ei,ni,ii,ri,oi,si,ai,li,ci,hi,fi,ui,di,pi,gi,mi,_i,vi,Ei,yi=(ge="dropdown",_e="."+(me="bs.dropdown"),ve=".data-api",Ee=(pe=e).fn[ge],ye=new RegExp("38|40|27"),be={HIDE:"hide"+_e,HIDDEN:"hidden"+_e,SHOW:"show"+_e,SHOWN:"shown"+_e,CLICK:"click"+_e,CLICK_DATA_API:"click"+_e+ve,KEYDOWN_DATA_API:"keydown"+_e+ve,KEYUP_DATA_API:"keyup"+_e+ve},Te="disabled",Ce="show",we="dropup",Ie="dropright",Ae="dropleft",De="dropdown-menu-right",Se="position-static",Oe='[data-toggle="dropdown"]',Ne=".dropdown form",ke=".dropdown-menu",Le=".navbar-nav",Pe=".dropdown-menu .dropdown-item:not(.disabled)",xe="top-start",Re="top-end",je="bottom-start",He="bottom-end",Me="right-start",We="left-start",Ue={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},Fe={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},Be=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=t.prototype;return e.toggle=function(){if(!this._element.disabled&&!pe(this._element).hasClass(Te)){var e=t._getParentFromElement(this._element),n=pe(this._menu).hasClass(Ce);if(t._clearMenus(),!n){var i={relatedTarget:this._element},r=pe.Event(be.SHOW,i);if(pe(e).trigger(r),!r.isDefaultPrevented()){if(!this._inNavbar){if("undefined"==typeof de)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var o=this._element;"parent"===this._config.reference?o=e:gt.isElement(this._config.reference)&&(o=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(o=this._config.reference[0])),"scrollParent"!==this._config.boundary&&pe(e).addClass(Se),this._popper=new de(o,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===pe(e).closest(Le).length&&pe(document.body).children().on("mouseover",null,pe.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),pe(this._menu).toggleClass(Ce),pe(e).toggleClass(Ce).trigger(pe.Event(be.SHOWN,i))}}}},e.dispose=function(){pe.removeData(this._element,me),pe(this._element).off(_e),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;pe(this._element).on(be.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},e._getConfig=function(t){return t=r({},this.constructor.Default,pe(this._element).data(),t),gt.typeCheckConfig(ge,t,this.constructor.DefaultType),t},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);this._menu=pe(e).find(ke)[0]}return this._menu},e._getPlacement=function(){var t=pe(this._element).parent(),e=je;return t.hasClass(we)?(e=xe,pe(this._menu).hasClass(De)&&(e=Re)):t.hasClass(Ie)?e=Me:t.hasClass(Ae)?e=We:pe(this._menu).hasClass(De)&&(e=He),e},e._detectNavbar=function(){return pe(this._element).closest(".navbar").length>0},e._getPopperConfig=function(){var t=this,e={};"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=r({},e.offsets,t._config.offset(e.offsets)||{}),e}:e.offset=this._config.offset;var n={placement:this._getPlacement(),modifiers:{offset:e,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(n.modifiers.applyStyle={enabled:!1}),n},t._jQueryInterface=function(e){return this.each(function(){var n=pe(this).data(me);if(n||(n=new t(this,"object"==typeof e?e:null),pe(this).data(me,n)),"string"==typeof e){if("undefined"==typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},t._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var n=pe.makeArray(pe(Oe)),i=0;i0&&o--,40===e.which&&odocument.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},gn="show",mn="out",_n={HIDE:"hide"+ln,HIDDEN:"hidden"+ln,SHOW:"show"+ln,SHOWN:"shown"+ln,INSERTED:"inserted"+ln,CLICK:"click"+ln,FOCUSIN:"focusin"+ln,FOCUSOUT:"focusout"+ln,MOUSEENTER:"mouseenter"+ln,MOUSELEAVE:"mouseleave"+ln},vn="fade",En="show",yn=".tooltip-inner",bn=".arrow",Tn="hover",Cn="focus",wn="click",In="manual",An=function(){function t(t,e){if("undefined"==typeof de)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=on(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),on(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(on(this.getTipElement()).hasClass(En))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),on.removeData(this.element,this.constructor.DATA_KEY),on(this.element).off(this.constructor.EVENT_KEY),on(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&on(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var e=this;if("none"===on(this.element).css("display"))throw new Error("Please use show on visible elements");var n=on.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){on(this.element).trigger(n);var i=on.contains(this.element.ownerDocument.documentElement,this.element);if(n.isDefaultPrevented()||!i)return;var r=this.getTipElement(),o=gt.getUID(this.constructor.NAME);r.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&on(r).addClass(vn);var s="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,a=this._getAttachment(s);this.addAttachmentClass(a);var l=!1===this.config.container?document.body:on(this.config.container);on(r).data(this.constructor.DATA_KEY,this),on.contains(this.element.ownerDocument.documentElement,this.tip)||on(r).appendTo(l),on(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new de(this.element,r,{placement:a,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:bn},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),on(r).addClass(En),"ontouchstart"in document.documentElement&&on(document.body).children().on("mouseover",null,on.noop);var c=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,on(e.element).trigger(e.constructor.Event.SHOWN),t===mn&&e._leave(null,e)};gt.supportsTransitionEnd()&&on(this.tip).hasClass(vn)?on(this.tip).one(gt.TRANSITION_END,c).emulateTransitionEnd(t._TRANSITION_DURATION):c()}},e.hide=function(t){var e=this,n=this.getTipElement(),i=on.Event(this.constructor.Event.HIDE),r=function(){e._hoverState!==gn&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),on(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};on(this.element).trigger(i),i.isDefaultPrevented()||(on(n).removeClass(En),"ontouchstart"in document.documentElement&&on(document.body).children().off("mouseover",null,on.noop),this._activeTrigger[wn]=!1,this._activeTrigger[Cn]=!1,this._activeTrigger[Tn]=!1,gt.supportsTransitionEnd()&&on(this.tip).hasClass(vn)?on(n).one(gt.TRANSITION_END,r).emulateTransitionEnd(150):r(),this._hoverState="")},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(t){on(this.getTipElement()).addClass(hn+"-"+t)},e.getTipElement=function(){return this.tip=this.tip||on(this.config.template)[0],this.tip},e.setContent=function(){var t=on(this.getTipElement());this.setElementContent(t.find(yn),this.getTitle()),t.removeClass(vn+" "+En)},e.setElementContent=function(t,e){var n=this.config.html;"object"==typeof e&&(e.nodeType||e.jquery)?n?on(e).parent().is(t)||t.empty().append(e):t.text(on(e).text()):t[n?"html":"text"](e)},e.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},e._getAttachment=function(t){return dn[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)on(t.element).on(t.constructor.Event.CLICK,t.config.selector,function(e){return t.toggle(e)});else if(e!==In){var n=e===Tn?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,i=e===Tn?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;on(t.element).on(n,t.config.selector,function(e){return t._enter(e)}).on(i,t.config.selector,function(e){return t._leave(e)})}on(t.element).closest(".modal").on("hide.bs.modal",function(){return t.hide()})}),this.config.selector?this.config=r({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||on(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),on(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?Cn:Tn]=!0),on(e.getTipElement()).hasClass(En)||e._hoverState===gn?e._hoverState=gn:(clearTimeout(e._timeout),e._hoverState=gn,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===gn&&e.show()},e.config.delay.show):e.show())},e._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||on(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),on(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?Cn:Tn]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=mn,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===mn&&e.hide()},e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){return"number"==typeof(t=r({},this.constructor.Default,on(this.element).data(),t)).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),gt.typeCheckConfig(sn,t,this.constructor.DefaultType),t},e._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},e._cleanTipClass=function(){var t=on(this.getTipElement()),e=t.attr("class").match(fn);null!==e&&e.length>0&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(on(t).removeClass(vn),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each(function(){var n=on(this).data(an),i="object"==typeof e&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new t(this,i),on(this).data(an,n)),"string"==typeof e)){if("undefined"==typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}})},i(t,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return pn}},{key:"NAME",get:function(){return sn}},{key:"DATA_KEY",get:function(){return an}},{key:"Event",get:function(){return _n}},{key:"EVENT_KEY",get:function(){return ln}},{key:"DefaultType",get:function(){return un}}]),t}(),on.fn[sn]=An._jQueryInterface,on.fn[sn].Constructor=An,on.fn[sn].noConflict=function(){return on.fn[sn]=cn,An._jQueryInterface},An),Ci=(Sn="popover",Nn="."+(On="bs.popover"),kn=(Dn=e).fn[Sn],Ln="bs-popover",Pn=new RegExp("(^|\\s)"+Ln+"\\S+","g"),xn=r({},Ti.Default,{placement:"right",trigger:"click",content:"",template:''}),Rn=r({},Ti.DefaultType,{content:"(string|element|function)"}),jn="fade",Hn="show",Mn=".popover-header",Wn=".popover-body",Un={HIDE:"hide"+Nn,HIDDEN:"hidden"+Nn,SHOW:"show"+Nn,SHOWN:"shown"+Nn,INSERTED:"inserted"+Nn,CLICK:"click"+Nn,FOCUSIN:"focusin"+Nn,FOCUSOUT:"focusout"+Nn,MOUSEENTER:"mouseenter"+Nn,MOUSELEAVE:"mouseleave"+Nn},Fn=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=r.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(t){Dn(this.getTipElement()).addClass(Ln+"-"+t)},o.getTipElement=function(){return this.tip=this.tip||Dn(this.config.template)[0],this.tip},o.setContent=function(){var t=Dn(this.getTipElement());this.setElementContent(t.find(Mn),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(Wn),e),t.removeClass(jn+" "+Hn)},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var t=Dn(this.getTipElement()),e=t.attr("class").match(Pn);null!==e&&e.length>0&&t.removeClass(e.join(""))},r._jQueryInterface=function(t){return this.each(function(){var e=Dn(this).data(On),n="object"==typeof t?t:null;if((e||!/destroy|hide/.test(t))&&(e||(e=new r(this,n),Dn(this).data(On,e)),"string"==typeof t)){if("undefined"==typeof e[t])throw new TypeError('No method named "'+t+'"');e[t]()}})},i(r,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return xn}},{key:"NAME",get:function(){return Sn}},{key:"DATA_KEY",get:function(){return On}},{key:"Event",get:function(){return Un}},{key:"EVENT_KEY",get:function(){return Nn}},{key:"DefaultType",get:function(){return Rn}}]),r}(Ti),Dn.fn[Sn]=Fn._jQueryInterface,Dn.fn[Sn].Constructor=Fn,Dn.fn[Sn].noConflict=function(){return Dn.fn[Sn]=kn,Fn._jQueryInterface},Fn),wi=(Kn="scrollspy",Qn="."+(Vn="bs.scrollspy"),Yn=(Bn=e).fn[Kn],Gn={offset:10,method:"auto",target:""},qn={offset:"number",method:"string",target:"(string|element)"},zn={ACTIVATE:"activate"+Qn,SCROLL:"scroll"+Qn,LOAD_DATA_API:"load"+Qn+".data-api"},Xn="dropdown-item",Jn="active",Zn={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},$n="offset",ti="position",ei=function(){function t(t,e){var n=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+Zn.NAV_LINKS+","+this._config.target+" "+Zn.LIST_ITEMS+","+this._config.target+" "+Zn.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,Bn(this._scrollElement).on(zn.SCROLL,function(t){return n._process(t)}),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?$n:ti,n="auto"===this._config.method?e:this._config.method,i=n===ti?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),Bn.makeArray(Bn(this._selector)).map(function(t){var e,r=gt.getSelectorFromElement(t);if(r&&(e=Bn(r)[0]),e){var o=e.getBoundingClientRect();if(o.width||o.height)return[Bn(e)[n]().top+i,r]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},e.dispose=function(){Bn.removeData(this._element,Vn),Bn(this._scrollElement).off(Qn),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!=typeof(t=r({},Gn,t)).target){var e=Bn(t.target).attr("id");e||(e=gt.getUID(Kn),Bn(t.target).attr("id",e)),t.target="#"+e}return gt.typeCheckConfig(Kn,t,qn),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;){this._activeTarget!==this._targets[r]&&t>=this._offsets[r]&&("undefined"==typeof this._offsets[r+1]||t=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(e),t.Util=gt,t.Alert=mt,t.Button=_t,t.Carousel=vt,t.Collapse=Et,t.Dropdown=yi,t.Modal=bi,t.Popover=Ci,t.Scrollspy=wi,t.Tab=Ii,t.Tooltip=Ti,Object.defineProperty(t,"__esModule",{value:!0})}); -//# sourceMappingURL=bootstrap.bundle.min.js.map \ No newline at end of file diff --git a/dist/assets/js/vendors/chart.bundle.min.js b/dist/assets/js/vendors/chart.bundle.min.js deleted file mode 100644 index efb0b2a97..000000000 --- a/dist/assets/js/vendors/chart.bundle.min.js +++ /dev/null @@ -1,10 +0,0 @@ -/*! - * Chart.js - * http://chartjs.org/ - * Version: 2.7.0 - * - * Copyright 2017 Nick Downie - * Released under the MIT license - * https://github.com/chartjs/Chart.js/blob/master/LICENSE.md - */ -!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Chart=t()}}(function(){return function t(e,n,i){function a(o,s){if(!n[o]){if(!e[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(r)return r(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[o]={exports:{}};e[o][0].call(d.exports,function(t){var n=e[o][1][t];return a(n||t)},d,d.exports,t,e,n,i)}return n[o].exports}for(var r="function"==typeof require&&require,o=0;on?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=this,i=t,a=void 0===e?.5:e,r=2*a-1,o=n.alpha()-i.alpha(),s=((r*o==-1?r:(r+o)/(1+r*o))+1)/2,l=1-s;return this.rgb(s*n.red()+l*i.red(),s*n.green()+l*i.green(),s*n.blue()+l*i.blue()).alpha(n.alpha()*a+i.alpha()*(1-a))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new r,i=this.values,a=n.values;for(var o in i)i.hasOwnProperty(o)&&(t=i[o],"[object Array]"===(e={}.toString.call(t))?a[o]=t.slice(0):"[object Number]"===e?a[o]=t:console.error("unexpected color value:",t));return n}},r.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},r.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},r.prototype.getValues=function(t){for(var e=this.values,n={},i=0;i.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*e+.7152*n+.0722*i),100*(.0193*e+.1192*n+.9505*i)]}function d(t){var e,n,i,a=u(t),r=a[0],o=a[1],s=a[2];return r/=95.047,o/=100,s/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,e=116*o-16,n=500*(r-o),i=200*(o-s),[e,n,i]}function c(t){var e,n,i,a,r,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0==s)return r=255*l,[r,r,r];e=2*l-(n=l<.5?l*(1+s):l+s-l*s),a=[0,0,0];for(var u=0;u<3;u++)(i=o+1/3*-(u-1))<0&&i++,i>1&&i--,r=6*i<1?e+6*(n-e)*i:2*i<1?n:3*i<2?e+(n-e)*(2/3-i)*6:e,a[u]=255*r;return a}function h(t){var e=t[0]/60,n=t[1]/100,i=t[2]/100,a=Math.floor(e)%6,r=e-Math.floor(e),o=255*i*(1-n),s=255*i*(1-n*r),l=255*i*(1-n*(1-r)),i=255*i;switch(a){case 0:return[i,l,o];case 1:return[s,i,o];case 2:return[o,i,l];case 3:return[o,s,i];case 4:return[l,o,i];case 5:return[i,o,s]}}function f(t){var e,n,i,a,o=t[0]/360,s=t[1]/100,l=t[2]/100,u=s+l;switch(u>1&&(s/=u,l/=u),e=Math.floor(6*o),n=1-l,i=6*o-e,0!=(1&e)&&(i=1-i),a=s+i*(n-s),e){default:case 6:case 0:r=n,g=a,b=s;break;case 1:r=a,g=n,b=s;break;case 2:r=s,g=n,b=a;break;case 3:r=s,g=a,b=n;break;case 4:r=a,g=s,b=n;break;case 5:r=n,g=s,b=a}return[255*r,255*g,255*b]}function m(t){var e,n,i,a=t[0]/100,r=t[1]/100,o=t[2]/100,s=t[3]/100;return e=1-Math.min(1,a*(1-s)+s),n=1-Math.min(1,r*(1-s)+s),i=1-Math.min(1,o*(1-s)+s),[255*e,255*n,255*i]}function p(t){var e,n,i,a=t[0]/100,r=t[1]/100,o=t[2]/100;return e=3.2406*a+-1.5372*r+-.4986*o,n=-.9689*a+1.8758*r+.0415*o,i=.0557*a+-.204*r+1.057*o,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,e=Math.min(Math.max(0,e),1),n=Math.min(Math.max(0,n),1),i=Math.min(Math.max(0,i),1),[255*e,255*n,255*i]}function v(t){var e,n,i,a=t[0],r=t[1],o=t[2];return a/=95.047,r/=100,o/=108.883,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,o=o>.008856?Math.pow(o,1/3):7.787*o+16/116,e=116*r-16,n=500*(a-r),i=200*(r-o),[e,n,i]}function y(t){var e,n,i,a,r=t[0],o=t[1],s=t[2];return r<=8?a=(n=100*r/903.3)/100*7.787+16/116:(n=100*Math.pow((r+16)/116,3),a=Math.pow(n/100,1/3)),e=e/95.047<=.008856?e=95.047*(o/500+a-16/116)/7.787:95.047*Math.pow(o/500+a,3),i=i/108.883<=.008859?i=108.883*(a-s/200-16/116)/7.787:108.883*Math.pow(a-s/200,3),[e,n,i]}function x(t){var e,n,i,a=t[0],r=t[1],o=t[2];return e=Math.atan2(o,r),(n=360*e/2/Math.PI)<0&&(n+=360),i=Math.sqrt(r*r+o*o),[a,i,n]}function _(t){return p(y(t))}function k(t){var e,n,i,a=t[0],r=t[1];return i=t[2]/360*2*Math.PI,e=r*Math.cos(i),n=r*Math.sin(i),[a,e,n]}function w(t){return M[t]}e.exports={rgb2hsl:i,rgb2hsv:a,rgb2hwb:o,rgb2cmyk:s,rgb2keyword:l,rgb2xyz:u,rgb2lab:d,rgb2lch:function(t){return x(d(t))},hsl2rgb:c,hsl2hsv:function(t){var e,n,i=t[0],a=t[1]/100,r=t[2]/100;return 0===r?[0,0,0]:(r*=2,a*=r<=1?r:2-r,n=(r+a)/2,e=2*a/(r+a),[i,100*e,100*n])},hsl2hwb:function(t){return o(c(t))},hsl2cmyk:function(t){return s(c(t))},hsl2keyword:function(t){return l(c(t))},hsv2rgb:h,hsv2hsl:function(t){var e,n,i=t[0],a=t[1]/100,r=t[2]/100;return n=(2-a)*r,e=a*r,e/=n<=1?n:2-n,e=e||0,n/=2,[i,100*e,100*n]},hsv2hwb:function(t){return o(h(t))},hsv2cmyk:function(t){return s(h(t))},hsv2keyword:function(t){return l(h(t))},hwb2rgb:f,hwb2hsl:function(t){return i(f(t))},hwb2hsv:function(t){return a(f(t))},hwb2cmyk:function(t){return s(f(t))},hwb2keyword:function(t){return l(f(t))},cmyk2rgb:m,cmyk2hsl:function(t){return i(m(t))},cmyk2hsv:function(t){return a(m(t))},cmyk2hwb:function(t){return o(m(t))},cmyk2keyword:function(t){return l(m(t))},keyword2rgb:w,keyword2hsl:function(t){return i(w(t))},keyword2hsv:function(t){return a(w(t))},keyword2hwb:function(t){return o(w(t))},keyword2cmyk:function(t){return s(w(t))},keyword2lab:function(t){return d(w(t))},keyword2xyz:function(t){return u(w(t))},xyz2rgb:p,xyz2lab:v,xyz2lch:function(t){return x(v(t))},lab2xyz:y,lab2rgb:_,lab2lch:x,lch2lab:k,lch2xyz:function(t){return y(k(t))},lch2rgb:function(t){return _(k(t))}};var M={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},S={};for(var D in M)S[JSON.stringify(M[D])]=D},{}],4:[function(t,e,n){var i=t(3),a=function(){return new u};for(var r in i){a[r+"Raw"]=function(t){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),i[t](e)}}(r);var o=/(\w+)2(\w+)/.exec(r),s=o[1],l=o[2];(a[s]=a[s]||{})[l]=a[r]=function(t){return function(e){"number"==typeof e&&(e=Array.prototype.slice.call(arguments));var n=i[t](e);if("string"==typeof n||void 0===n)return n;for(var a=0;a0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+i}function N(t,e,n,i){var a=i;"string"==typeof i&&(a=function(){return this[i]()}),t&&(Ne[t]=a),e&&(Ne[e[0]]=function(){return Y(a.apply(this,arguments),e[1],e[2])}),n&&(Ne[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),t)})}function z(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function B(t){var e,n,i=t.match(Le);for(e=0,n=i.length;e=0&&We.test(t);)t=t.replace(We,function(t){return e.longDateFormat(t)||t}),We.lastIndex=0,n-=1;return t}function E(t,e,n){nn[t]=D(e)?e:function(t,i){return t&&n?n:e}}function j(t,e){return d(nn,t)?nn[t](e._strict,e._locale):new RegExp(U(t))}function U(t){return q(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,a){return e||n||i||a}))}function q(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function G(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),s(e)&&(i=function(t,n){n[e]=_(t)}),n=0;n=0&&isFinite(s.getFullYear())&&s.setFullYear(t),s}function at(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function rt(t,e,n){var i=7+e-n;return-((7+at(t,0,i).getUTCDay()-e)%7)+i-1}function ot(t,e,n,i,a){var r,o,s=1+7*(e-1)+(7+n-i)%7+rt(t,i,a);return s<=0?o=et(r=t-1)+s:s>et(t)?(r=t+1,o=s-et(t)):(r=t,o=s),{year:r,dayOfYear:o}}function st(t,e,n){var i,a,r=rt(t.year(),e,n),o=Math.floor((t.dayOfYear()-r-1)/7)+1;return o<1?i=o+lt(a=t.year()-1,e,n):o>lt(t.year(),e,n)?(i=o-lt(t.year(),e,n),a=t.year()+1):(a=t.year(),i=o),{week:i,year:a}}function lt(t,e,n){var i=rt(t,e,n),a=rt(t+1,e,n);return(et(t)-i+a)/7}function ut(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function dt(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function ct(t,e,n){var i,a,r,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=h([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(a=gn.call(this._weekdaysParse,o))?a:null:"ddd"===e?-1!==(a=gn.call(this._shortWeekdaysParse,o))?a:null:-1!==(a=gn.call(this._minWeekdaysParse,o))?a:null:"dddd"===e?-1!==(a=gn.call(this._weekdaysParse,o))?a:-1!==(a=gn.call(this._shortWeekdaysParse,o))?a:-1!==(a=gn.call(this._minWeekdaysParse,o))?a:null:"ddd"===e?-1!==(a=gn.call(this._shortWeekdaysParse,o))?a:-1!==(a=gn.call(this._weekdaysParse,o))?a:-1!==(a=gn.call(this._minWeekdaysParse,o))?a:null:-1!==(a=gn.call(this._minWeekdaysParse,o))?a:-1!==(a=gn.call(this._weekdaysParse,o))?a:-1!==(a=gn.call(this._shortWeekdaysParse,o))?a:null}function ht(){function t(t,e){return e.length-t.length}var e,n,i,a,r,o=[],s=[],l=[],u=[];for(e=0;e<7;e++)n=h([2e3,1]).day(e),i=this.weekdaysMin(n,""),a=this.weekdaysShort(n,""),r=this.weekdays(n,""),o.push(i),s.push(a),l.push(r),u.push(i),u.push(a),u.push(r);for(o.sort(t),s.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)s[e]=q(s[e]),l[e]=q(l[e]),u[e]=q(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function ft(){return this.hours()%12||12}function gt(t,e){N(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function mt(t,e){return e._meridiemParse}function pt(t){return t?t.toLowerCase().replace("_","-"):t}function vt(t){for(var e,n,i,a,r=0;r0;){if(i=yt(a.slice(0,e).join("-")))return i;if(n&&n.length>=e&&k(a,n,!0)>=e-1)break;e--}r++}return null}function yt(n){var i=null;if(!On[n]&&void 0!==e&&e&&e.exports)try{i=Pn._abbr,t("./locale/"+n),bt(i)}catch(t){}return On[n]}function bt(t,e){var n;return t&&(n=o(e)?_t(t):xt(t,e))&&(Pn=n),Pn._abbr}function xt(t,e){if(null!==e){var n=An;if(e.abbr=t,null!=On[t])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=On[t]._config;else if(null!=e.parentLocale){if(null==On[e.parentLocale])return Fn[e.parentLocale]||(Fn[e.parentLocale]=[]),Fn[e.parentLocale].push({name:t,config:e}),null;n=On[e.parentLocale]._config}return On[t]=new P(C(n,e)),Fn[t]&&Fn[t].forEach(function(t){xt(t.name,t.config)}),bt(t),On[t]}return delete On[t],null}function _t(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Pn;if(!i(t)){if(e=yt(t))return e;t=[t]}return vt(t)}function kt(t){var e,n=t._a;return n&&-2===g(t).overflow&&(e=n[on]<0||n[on]>11?on:n[sn]<1||n[sn]>J(n[rn],n[on])?sn:n[ln]<0||n[ln]>24||24===n[ln]&&(0!==n[un]||0!==n[dn]||0!==n[cn])?ln:n[un]<0||n[un]>59?un:n[dn]<0||n[dn]>59?dn:n[cn]<0||n[cn]>999?cn:-1,g(t)._overflowDayOfYear&&(esn)&&(e=sn),g(t)._overflowWeeks&&-1===e&&(e=hn),g(t)._overflowWeekday&&-1===e&&(e=fn),g(t).overflow=e),t}function wt(t){var e,n,i,a,r,o,s=t._i,l=Rn.exec(s)||Ln.exec(s);if(l){for(g(t).iso=!0,e=0,n=Yn.length;e10?"YYYY ":"YY "),r="HH:mm"+(n[4]?":ss":""),n[1]){var d=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][new Date(n[2]).getDay()];if(n[1].substr(0,3)!==d)return g(t).weekdayMismatch=!0,void(t._isValid=!1)}switch(n[5].length){case 2:s=0===l?" +0000":((l="YXWVUTSRQPONZABCDEFGHIKLM".indexOf(n[5][1].toUpperCase())-12)<0?" -":" +")+(""+l).replace(/^-?/,"0").match(/..$/)[0]+"00";break;case 4:s=u[n[5]];break;default:s=u[" GMT"]}n[5]=s,t._i=n.splice(1).join(""),o=" ZZ",t._f=i+a+r+o,It(t),g(t).rfc2822=!0}else t._isValid=!1}function St(t){var e=zn.exec(t._i);null===e?(wt(t),!1===t._isValid&&(delete t._isValid,Mt(t),!1===t._isValid&&(delete t._isValid,n.createFromInputFallback(t)))):t._d=new Date(+e[1])}function Dt(t,e,n){return null!=t?t:null!=e?e:n}function Ct(t){var e=new Date(n.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Pt(t){var e,n,i,a,r=[];if(!t._d){for(i=Ct(t),t._w&&null==t._a[sn]&&null==t._a[on]&&Tt(t),null!=t._dayOfYear&&(a=Dt(t._a[rn],i[rn]),(t._dayOfYear>et(a)||0===t._dayOfYear)&&(g(t)._overflowDayOfYear=!0),n=at(a,0,t._dayOfYear),t._a[on]=n.getUTCMonth(),t._a[sn]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=r[e]=i[e];for(;e<7;e++)t._a[e]=r[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[ln]&&0===t._a[un]&&0===t._a[dn]&&0===t._a[cn]&&(t._nextDay=!0,t._a[ln]=0),t._d=(t._useUTC?at:it).apply(null,r),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[ln]=24)}}function Tt(t){var e,n,i,a,r,o,s,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)r=1,o=4,n=Dt(e.GG,t._a[rn],st(Nt(),1,4).year),i=Dt(e.W,1),((a=Dt(e.E,1))<1||a>7)&&(l=!0);else{r=t._locale._week.dow,o=t._locale._week.doy;var u=st(Nt(),r,o);n=Dt(e.gg,t._a[rn],u.year),i=Dt(e.w,u.week),null!=e.d?((a=e.d)<0||a>6)&&(l=!0):null!=e.e?(a=e.e+r,(e.e<0||e.e>6)&&(l=!0)):a=r}i<1||i>lt(n,r,o)?g(t)._overflowWeeks=!0:null!=l?g(t)._overflowWeekday=!0:(s=ot(n,i,a,r,o),t._a[rn]=s.year,t._dayOfYear=s.dayOfYear)}function It(t){if(t._f!==n.ISO_8601)if(t._f!==n.RFC_2822){t._a=[],g(t).empty=!0;var e,i,a,r,o,s=""+t._i,l=s.length,u=0;for(a=H(t._f,t._locale).match(Le)||[],e=0;e0&&g(t).unusedInput.push(o),s=s.slice(s.indexOf(i)+i.length),u+=i.length),Ne[r]?(i?g(t).empty=!1:g(t).unusedTokens.push(r),X(r,i,t)):t._strict&&!i&&g(t).unusedTokens.push(r);g(t).charsLeftOver=l-u,s.length>0&&g(t).unusedInput.push(s),t._a[ln]<=12&&!0===g(t).bigHour&&t._a[ln]>0&&(g(t).bigHour=void 0),g(t).parsedDateParts=t._a.slice(0),g(t).meridiem=t._meridiem,t._a[ln]=At(t._locale,t._a[ln],t._meridiem),Pt(t),kt(t)}else Mt(t);else wt(t)}function At(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}function Ot(t){var e,n,i,a,r;if(0===t._f.length)return g(t).invalidFormat=!0,void(t._d=new Date(NaN));for(a=0;ar&&(e=r),oe.call(this,t,e,n,i,a))}function oe(t,e,n,i,a){var r=ot(t,e,n,i,a),o=at(r.year,0,r.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function se(t){return t}function le(t,e,n,i){var a=_t(),r=h().set(i,e);return a[n](r,t)}function ue(t,e,n){if(s(t)&&(e=t,t=void 0),t=t||"",null!=e)return le(t,e,n,"month");var i,a=[];for(i=0;i<12;i++)a[i]=le(t,i,n,"month");return a}function de(t,e,n,i){"boolean"==typeof t?(s(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,s(e)&&(n=e,e=void 0),e=e||"");var a=_t(),r=t?a._week.dow:0;if(null!=n)return le(e,(n+r)%7,i,"day");var o,l=[];for(o=0;o<7;o++)l[o]=le(e,(o+r)%7,i,"day");return l}function ce(t,e,n,i){var a=Xt(e,n);return t._milliseconds+=i*a._milliseconds,t._days+=i*a._days,t._months+=i*a._months,t._bubble()}function he(t){return t<0?Math.floor(t):Math.ceil(t)}function fe(t){return 4800*t/146097}function ge(t){return 146097*t/4800}function me(t){return function(){return this.as(t)}}function pe(t){return function(){return this.isValid()?this._data[t]:NaN}}function ve(t,e,n,i,a){return a.relativeTime(e||1,!!n,t,i)}function ye(t,e,n){var i=Xt(t).abs(),a=bi(i.as("s")),r=bi(i.as("m")),o=bi(i.as("h")),s=bi(i.as("d")),l=bi(i.as("M")),u=bi(i.as("y")),d=a<=xi.ss&&["s",a]||a0,d[4]=n,ve.apply(null,d)}function be(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i=_i(this._milliseconds)/1e3,a=_i(this._days),r=_i(this._months);e=x((t=x(i/60))/60),i%=60,t%=60;var o=n=x(r/12),s=r%=12,l=a,u=e,d=t,c=i,h=this.asSeconds();return h?(h<0?"-":"")+"P"+(o?o+"Y":"")+(s?s+"M":"")+(l?l+"D":"")+(u||d||c?"T":"")+(u?u+"H":"")+(d?d+"M":"")+(c?c+"S":""):"P0D"}var xe,_e,ke=_e=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,i=0;i68?1900:2e3)};var xn=R("FullYear",!0);N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),T("week","w"),T("isoWeek","W"),O("week",5),O("isoWeek",5),E("w",je),E("ww",je,Be),E("W",je),E("WW",je,Be),Z(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=_(t)});var _n={dow:0,doy:6};N("d",0,"do","day"),N("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),N("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),N("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),T("day","d"),T("weekday","e"),T("isoWeekday","E"),O("day",11),O("weekday",11),O("isoWeekday",11),E("d",je),E("e",je),E("E",je),E("dd",function(t,e){return e.weekdaysMinRegex(t)}),E("ddd",function(t,e){return e.weekdaysShortRegex(t)}),E("dddd",function(t,e){return e.weekdaysRegex(t)}),Z(["dd","ddd","dddd"],function(t,e,n,i){var a=n._locale.weekdaysParse(t,i,n._strict);null!=a?e.d=a:g(n).invalidWeekday=t}),Z(["d","e","E"],function(t,e,n,i){e[i]=_(t)});var kn="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),wn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Mn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Sn=en,Dn=en,Cn=en;N("H",["HH",2],0,"hour"),N("h",["hh",2],0,ft),N("k",["kk",2],0,function(){return this.hours()||24}),N("hmm",0,0,function(){return""+ft.apply(this)+Y(this.minutes(),2)}),N("hmmss",0,0,function(){return""+ft.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)}),N("Hmm",0,0,function(){return""+this.hours()+Y(this.minutes(),2)}),N("Hmmss",0,0,function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)}),gt("a",!0),gt("A",!1),T("hour","h"),O("hour",13),E("a",mt),E("A",mt),E("H",je),E("h",je),E("k",je),E("HH",je,Be),E("hh",je,Be),E("kk",je,Be),E("hmm",Ue),E("hmmss",qe),E("Hmm",Ue),E("Hmmss",qe),G(["H","HH"],ln),G(["k","kk"],function(t,e,n){var i=_(t);e[ln]=24===i?0:i}),G(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),G(["h","hh"],function(t,e,n){e[ln]=_(t),g(n).bigHour=!0}),G("hmm",function(t,e,n){var i=t.length-2;e[ln]=_(t.substr(0,i)),e[un]=_(t.substr(i)),g(n).bigHour=!0}),G("hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[ln]=_(t.substr(0,i)),e[un]=_(t.substr(i,2)),e[dn]=_(t.substr(a)),g(n).bigHour=!0}),G("Hmm",function(t,e,n){var i=t.length-2;e[ln]=_(t.substr(0,i)),e[un]=_(t.substr(i))}),G("Hmmss",function(t,e,n){var i=t.length-4,a=t.length-2;e[ln]=_(t.substr(0,i)),e[un]=_(t.substr(i,2)),e[dn]=_(t.substr(a))});var Pn,Tn=/[ap]\.?m?\.?/i,In=R("Hours",!0),An={calendar:Te,longDateFormat:Ie,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:Ae,relativeTime:Oe,months:pn,monthsShort:vn,week:_n,weekdays:kn,weekdaysMin:Mn,weekdaysShort:wn,meridiemParse:Tn},On={},Fn={},Rn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ln=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Wn=/Z|[+-]\d\d(?::?\d\d)?/,Yn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Nn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],zn=/^\/?Date\((\-?\d+)/i,Bn=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;n.createFromInputFallback=M("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),n.ISO_8601=function(){},n.RFC_2822=function(){};var Vn=M("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Nt.apply(null,arguments);return this.isValid()&&t.isValid()?tthis?this:t:p()}),En=["year","quarter","month","week","day","hour","minute","second","millisecond"];jt("Z",":"),jt("ZZ",""),E("Z",$e),E("ZZ",$e),G(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Ut($e,t)});var jn=/([\+\-]|\d\d)/gi;n.updateOffset=function(){};var Un=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,qn=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Xt.fn=Vt.prototype,Xt.invalid=function(){return Xt(NaN)};var Gn=$t(1,"add"),Zn=$t(-1,"subtract");n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Xn=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});N(0,["gg",2],0,function(){return this.weekYear()%100}),N(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ae("gggg","weekYear"),ae("ggggg","weekYear"),ae("GGGG","isoWeekYear"),ae("GGGGG","isoWeekYear"),T("weekYear","gg"),T("isoWeekYear","GG"),O("weekYear",1),O("isoWeekYear",1),E("G",Ke),E("g",Ke),E("GG",je,Be),E("gg",je,Be),E("GGGG",Ze,He),E("gggg",Ze,He),E("GGGGG",Xe,Ee),E("ggggg",Xe,Ee),Z(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=_(t)}),Z(["gg","GG"],function(t,e,i,a){e[a]=n.parseTwoDigitYear(t)}),N("Q",0,"Qo","quarter"),T("quarter","Q"),O("quarter",7),E("Q",ze),G("Q",function(t,e){e[on]=3*(_(t)-1)}),N("D",["DD",2],"Do","date"),T("date","D"),O("date",9),E("D",je),E("DD",je,Be),E("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),G(["D","DD"],sn),G("Do",function(t,e){e[sn]=_(t.match(je)[0],10)});var Jn=R("Date",!0);N("DDD",["DDDD",3],"DDDo","dayOfYear"),T("dayOfYear","DDD"),O("dayOfYear",4),E("DDD",Ge),E("DDDD",Ve),G(["DDD","DDDD"],function(t,e,n){n._dayOfYear=_(t)}),N("m",["mm",2],0,"minute"),T("minute","m"),O("minute",14),E("m",je),E("mm",je,Be),G(["m","mm"],un);var Kn=R("Minutes",!1);N("s",["ss",2],0,"second"),T("second","s"),O("second",15),E("s",je),E("ss",je,Be),G(["s","ss"],dn);var Qn=R("Seconds",!1);N("S",0,0,function(){return~~(this.millisecond()/100)}),N(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,function(){return 10*this.millisecond()}),N(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),N(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),N(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),N(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),N(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),T("millisecond","ms"),O("millisecond",16),E("S",Ge,ze),E("SS",Ge,Be),E("SSS",Ge,Ve);var $n;for($n="SSSS";$n.length<=9;$n+="S")E($n,Je);for($n="S";$n.length<=9;$n+="S")G($n,function(t,e){e[cn]=_(1e3*("0."+t))});var ti=R("Milliseconds",!1);N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");var ei=y.prototype;ei.add=Gn,ei.calendar=function(t,e){var i=t||Nt(),a=qt(i,this).startOf("day"),r=n.calendarFormat(this,a)||"sameElse",o=e&&(D(e[r])?e[r].call(this,i):e[r]);return this.format(o||this.localeData().calendar(r,this,Nt(i)))},ei.clone=function(){return new y(this)},ei.diff=function(t,e,n){var i,a,r,o;return this.isValid()&&(i=qt(t,this)).isValid()?(a=6e4*(i.utcOffset()-this.utcOffset()),"year"===(e=I(e))||"month"===e||"quarter"===e?(o=ee(this,i),"quarter"===e?o/=3:"year"===e&&(o/=12)):(r=this-i,o="second"===e?r/1e3:"minute"===e?r/6e4:"hour"===e?r/36e5:"day"===e?(r-a)/864e5:"week"===e?(r-a)/6048e5:r),n?o:x(o)):NaN},ei.endOf=function(t){return void 0===(t=I(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))},ei.format=function(t){t||(t=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var e=V(this,t);return this.localeData().postformat(e)},ei.from=function(t,e){return this.isValid()&&(b(t)&&t.isValid()||Nt(t).isValid())?Xt({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ei.fromNow=function(t){return this.from(Nt(),t)},ei.to=function(t,e){return this.isValid()&&(b(t)&&t.isValid()||Nt(t).isValid())?Xt({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ei.toNow=function(t){return this.to(Nt(),t)},ei.get=function(t){return t=I(t),D(this[t])?this[t]():this},ei.invalidAt=function(){return g(this).overflow},ei.isAfter=function(t,e){var n=b(t)?t:Nt(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=I(o(e)?"millisecond":e))?this.valueOf()>n.valueOf():n.valueOf()9999?V(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):D(Date.prototype.toISOString)?this.toDate().toISOString():V(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},ei.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a=e+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+a)},ei.toJSON=function(){return this.isValid()?this.toISOString():null},ei.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ei.unix=function(){return Math.floor(this.valueOf()/1e3)},ei.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ei.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ei.year=xn,ei.isLeapYear=function(){return nt(this.year())},ei.weekYear=function(t){return re.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ei.isoWeekYear=function(t){return re.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},ei.quarter=ei.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},ei.month=$,ei.daysInMonth=function(){return J(this.year(),this.month())},ei.week=ei.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},ei.isoWeek=ei.isoWeeks=function(t){var e=st(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},ei.weeksInYear=function(){var t=this.localeData()._week;return lt(this.year(),t.dow,t.doy)},ei.isoWeeksInYear=function(){return lt(this.year(),1,4)},ei.date=Jn,ei.day=ei.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=ut(t,this.localeData()),this.add(t-e,"d")):e},ei.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},ei.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=dt(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},ei.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},ei.hour=ei.hours=In,ei.minute=ei.minutes=Kn,ei.second=ei.seconds=Qn,ei.millisecond=ei.milliseconds=ti,ei.utcOffset=function(t,e,i){var a,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Ut($e,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(a=Gt(this)),this._offset=t,this._isUTC=!0,null!=a&&this.add(a,"m"),r!==t&&(!e||this._changeInProgress?te(this,Xt(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Gt(this)},ei.utc=function(t){return this.utcOffset(0,t)},ei.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Gt(this),"m")),this},ei.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ut(Qe,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},ei.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Nt(t).utcOffset():0,(this.utcOffset()-t)%60==0)},ei.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ei.isLocal=function(){return!!this.isValid()&&!this._isUTC},ei.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ei.isUtc=Zt,ei.isUTC=Zt,ei.zoneAbbr=function(){return this._isUTC?"UTC":""},ei.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ei.dates=M("dates accessor is deprecated. Use date instead.",Jn),ei.months=M("months accessor is deprecated. Use month instead",$),ei.years=M("years accessor is deprecated. Use year instead",xn),ei.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),ei.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var t={};if(v(t,this),(t=Lt(t))._a){var e=t._isUTC?h(t._a):Nt(t._a);this._isDSTShifted=this.isValid()&&k(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var ni=P.prototype;ni.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return D(i)?i.call(e,n):i},ni.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},ni.invalidDate=function(){return this._invalidDate},ni.ordinal=function(t){return this._ordinal.replace("%d",t)},ni.preparse=se,ni.postformat=se,ni.relativeTime=function(t,e,n,i){var a=this._relativeTime[n];return D(a)?a(t,e,n,i):a.replace(/%d/i,t)},ni.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return D(n)?n(e):n.replace(/%s/i,e)},ni.set=function(t){var e,n;for(n in t)D(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},ni.months=function(t,e){return t?i(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||mn).test(e)?"format":"standalone"][t.month()]:i(this._months)?this._months:this._months.standalone},ni.monthsShort=function(t,e){return t?i(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[mn.test(e)?"format":"standalone"][t.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},ni.monthsParse=function(t,e,n){var i,a,r;if(this._monthsParseExact)return K.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=h([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},ni.monthsRegex=function(t){return this._monthsParseExact?(d(this,"_monthsRegex")||tt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=bn),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},ni.monthsShortRegex=function(t){return this._monthsParseExact?(d(this,"_monthsRegex")||tt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=yn),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},ni.week=function(t){return st(t,this._week.dow,this._week.doy).week},ni.firstDayOfYear=function(){return this._week.doy},ni.firstDayOfWeek=function(){return this._week.dow},ni.weekdays=function(t,e){return t?i(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:i(this._weekdays)?this._weekdays:this._weekdays.standalone},ni.weekdaysMin=function(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin},ni.weekdaysShort=function(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort},ni.weekdaysParse=function(t,e,n){var i,a,r;if(this._weekdaysParseExact)return ct.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(a=h([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},ni.weekdaysRegex=function(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||ht.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Sn),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},ni.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||ht.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Dn),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},ni.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||ht.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Cn),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},ni.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},ni.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},bt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===_(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),n.lang=M("moment.lang is deprecated. Use moment.locale instead.",bt),n.langData=M("moment.langData is deprecated. Use moment.localeData instead.",_t);var ii=Math.abs,ai=me("ms"),ri=me("s"),oi=me("m"),si=me("h"),li=me("d"),ui=me("w"),di=me("M"),ci=me("y"),hi=pe("milliseconds"),fi=pe("seconds"),gi=pe("minutes"),mi=pe("hours"),pi=pe("days"),vi=pe("months"),yi=pe("years"),bi=Math.round,xi={ss:44,s:45,m:45,h:22,d:26,M:11},_i=Math.abs,ki=Vt.prototype;return ki.isValid=function(){return this._isValid},ki.abs=function(){var t=this._data;return this._milliseconds=ii(this._milliseconds),this._days=ii(this._days),this._months=ii(this._months),t.milliseconds=ii(t.milliseconds),t.seconds=ii(t.seconds),t.minutes=ii(t.minutes),t.hours=ii(t.hours),t.months=ii(t.months),t.years=ii(t.years),this},ki.add=function(t,e){return ce(this,t,e,1)},ki.subtract=function(t,e){return ce(this,t,e,-1)},ki.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=I(t))||"year"===t)return e=this._days+i/864e5,n=this._months+fe(e),"month"===t?n:n/12;switch(e=this._days+Math.round(ge(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},ki.asMilliseconds=ai,ki.asSeconds=ri,ki.asMinutes=oi,ki.asHours=si,ki.asDays=li,ki.asWeeks=ui,ki.asMonths=di,ki.asYears=ci,ki.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*_(this._months/12):NaN},ki._bubble=function(){var t,e,n,i,a,r=this._milliseconds,o=this._days,s=this._months,l=this._data;return r>=0&&o>=0&&s>=0||r<=0&&o<=0&&s<=0||(r+=864e5*he(ge(s)+o),o=0,s=0),l.milliseconds=r%1e3,t=x(r/1e3),l.seconds=t%60,e=x(t/60),l.minutes=e%60,n=x(e/60),l.hours=n%24,o+=x(n/24),a=x(fe(o)),s+=a,o-=he(ge(a)),i=x(s/12),s%=12,l.days=o,l.months=s,l.years=i,this},ki.get=function(t){return t=I(t),this.isValid()?this[t+"s"]():NaN},ki.milliseconds=hi,ki.seconds=fi,ki.minutes=gi,ki.hours=mi,ki.days=pi,ki.weeks=function(){return x(this.days()/7)},ki.months=vi,ki.years=yi,ki.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=ye(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},ki.toISOString=be,ki.toString=be,ki.toJSON=be,ki.locale=ne,ki.localeData=ie,ki.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",be),ki.lang=Xn,N("X",0,0,"unix"),N("x",0,0,"valueOf"),E("x",Ke),E("X",tn),G("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),G("x",function(t,e,n){n._d=new Date(_(t))}),n.version="2.18.1",function(t){xe=t}(Nt),n.fn=ei,n.min=function(){return zt("isBefore",[].slice.call(arguments,0))},n.max=function(){return zt("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=h,n.unix=function(t){return Nt(1e3*t)},n.months=function(t,e){return ue(t,e,"months")},n.isDate=l,n.locale=bt,n.invalid=p,n.duration=Xt,n.isMoment=b,n.weekdays=function(t,e,n){return de(t,e,n,"weekdays")},n.parseZone=function(){return Nt.apply(null,arguments).parseZone()},n.localeData=_t,n.isDuration=Ht,n.monthsShort=function(t,e){return ue(t,e,"monthsShort")},n.weekdaysMin=function(t,e,n){return de(t,e,n,"weekdaysMin")},n.defineLocale=xt,n.updateLocale=function(t,e){if(null!=e){var n,i=An;null!=On[t]&&(i=On[t]._config),(n=new P(e=C(i,e))).parentLocale=On[t],On[t]=n,bt(t)}else null!=On[t]&&(null!=On[t].parentLocale?On[t]=On[t].parentLocale:null!=On[t]&&delete On[t]);return On[t]},n.locales=function(){return Pe(On)},n.weekdaysShort=function(t,e,n){return de(t,e,n,"weekdaysShort")},n.normalizeUnits=I,n.relativeTimeRounding=function(t){return void 0===t?bi:"function"==typeof t&&(bi=t,!0)},n.relativeTimeThreshold=function(t,e){return void 0!==xi[t]&&(void 0===e?xi[t]:(xi[t]=e,"s"===t&&(xi.ss=e-1),!0))},n.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},n.prototype=ei,n})},{}],7:[function(t,e,n){var i=t(29)();i.helpers=t(45),t(27)(i),i.defaults=t(25),i.Element=t(26),i.elements=t(40),i.Interaction=t(28),i.platform=t(48),t(31)(i),t(22)(i),t(23)(i),t(24)(i),t(30)(i),t(33)(i),t(32)(i),t(35)(i),t(54)(i),t(52)(i),t(53)(i),t(55)(i),t(56)(i),t(57)(i),t(15)(i),t(16)(i),t(17)(i),t(18)(i),t(19)(i),t(20)(i),t(21)(i),t(8)(i),t(9)(i),t(10)(i),t(11)(i),t(12)(i),t(13)(i),t(14)(i);var a=[];a.push(t(49)(i),t(50)(i),t(51)(i)),i.plugins.register(a),i.platform.initialize(),e.exports=i,"undefined"!=typeof window&&(window.Chart=i),i.canvasHelpers=i.helpers.canvas},{10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,29:29,30:30,31:31,32:32,33:33,35:35,40:40,45:45,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,8:8,9:9}],8:[function(t,e,n){"use strict";e.exports=function(t){t.Bar=function(e,n){return n.type="bar",new t(e,n)}}},{}],9:[function(t,e,n){"use strict";e.exports=function(t){t.Bubble=function(e,n){return n.type="bubble",new t(e,n)}}},{}],10:[function(t,e,n){"use strict";e.exports=function(t){t.Doughnut=function(e,n){return n.type="doughnut",new t(e,n)}}},{}],11:[function(t,e,n){"use strict";e.exports=function(t){t.Line=function(e,n){return n.type="line",new t(e,n)}}},{}],12:[function(t,e,n){"use strict";e.exports=function(t){t.PolarArea=function(e,n){return n.type="polarArea",new t(e,n)}}},{}],13:[function(t,e,n){"use strict";e.exports=function(t){t.Radar=function(e,n){return n.type="radar",new t(e,n)}}},{}],14:[function(t,e,n){"use strict";e.exports=function(t){t.Scatter=function(e,n){return n.type="scatter",new t(e,n)}}},{}],15:[function(t,e,n){"use strict";var i=t(25),a=t(40),r=t(45);i._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),i._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(t,e){var n="";return t.length>0&&(t[0].yLabel?n=t[0].yLabel:e.labels.length>0&&t[0].index=0&&a>0)&&(p+=a));return r=c.getPixelForValue(p),o=c.getPixelForValue(p+f),s=(o-r)/2,{size:s,base:r,head:o,center:o+s/2}},calculateBarIndexPixels:function(t,e,n){var i,a,o,s,l,u,d=this,c=n.scale.options,h=d.getStackIndex(t),f=n.pixels,g=f[e],m=f.length,p=n.start,v=n.end;return 1===m?(i=g>p?g-p:v-g,a=g0&&(i=(g-f[e-1])/2,e===m-1&&(a=i)),e');var n=t.data,i=n.datasets,a=n.labels;if(i.length)for(var r=0;r'),a[r]&&e.push(a[r]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(n,i){var a=t.getDatasetMeta(0),o=e.datasets[0],s=a.data[i],l=s&&s.custom||{},u=r.valueAtIndexOrDefault,d=t.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(o.backgroundColor,i,d.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(o.borderColor,i,d.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(o.borderWidth,i,d.borderWidth),hidden:isNaN(o.data[i])||a.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,i,a,r=e.index,o=this.chart;for(n=0,i=(o.data.datasets||[]).length;n=Math.PI?-1:g<-Math.PI?1:0))+f,p={x:Math.cos(g),y:Math.sin(g)},v={x:Math.cos(m),y:Math.sin(m)},y=g<=0&&m>=0||g<=2*Math.PI&&2*Math.PI<=m,b=g<=.5*Math.PI&&.5*Math.PI<=m||g<=2.5*Math.PI&&2.5*Math.PI<=m,x=g<=-Math.PI&&-Math.PI<=m||g<=Math.PI&&Math.PI<=m,_=g<=.5*-Math.PI&&.5*-Math.PI<=m||g<=1.5*Math.PI&&1.5*Math.PI<=m,k=h/100,w={x:x?-1:Math.min(p.x*(p.x<0?1:k),v.x*(v.x<0?1:k)),y:_?-1:Math.min(p.y*(p.y<0?1:k),v.y*(v.y<0?1:k))},M={x:y?1:Math.max(p.x*(p.x>0?1:k),v.x*(v.x>0?1:k)),y:b?1:Math.max(p.y*(p.y>0?1:k),v.y*(v.y>0?1:k))},S={width:.5*(M.x-w.x),height:.5*(M.y-w.y)};u=Math.min(s/S.width,l/S.height),d={x:-.5*(M.x+w.x),y:-.5*(M.y+w.y)}}n.borderWidth=e.getMaxBorderWidth(c.data),n.outerRadius=Math.max((u-n.borderWidth)/2,0),n.innerRadius=Math.max(h?n.outerRadius/100*h:0,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=d.x*n.outerRadius,n.offsetY=d.y*n.outerRadius,c.total=e.calculateTotal(),e.outerRadius=n.outerRadius-n.radiusLength*e.getRingIndex(e.index),e.innerRadius=Math.max(e.outerRadius-n.radiusLength,0),r.each(c.data,function(n,i){e.updateElement(n,i,t)})},updateElement:function(t,e,n){var i=this,a=i.chart,o=a.chartArea,s=a.options,l=s.animation,u=(o.left+o.right)/2,d=(o.top+o.bottom)/2,c=s.rotation,h=s.rotation,f=i.getDataset(),g=n&&l.animateRotate?0:t.hidden?0:i.calculateCircumference(f.data[e])*(s.circumference/(2*Math.PI)),m=n&&l.animateScale?0:i.innerRadius,p=n&&l.animateScale?0:i.outerRadius,v=r.valueAtIndexOrDefault;r.extend(t,{_datasetIndex:i.index,_index:e,_model:{x:u+a.offsetX,y:d+a.offsetY,startAngle:c,endAngle:h,circumference:g,outerRadius:p,innerRadius:m,label:v(f.label,e,a.data.labels[e])}});var y=t._model;this.removeHoverStyle(t),n&&l.animateRotate||(y.startAngle=0===e?s.rotation:i.getMeta().data[e-1]._model.endAngle,y.endAngle=y.startAngle+y.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,e=this.getDataset(),n=this.getMeta(),i=0;return r.each(n.data,function(n,a){t=e.data[a],isNaN(t)||n.hidden||(i+=Math.abs(t))}),i},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,n,i=0,a=this.index,r=t.length,o=0;o(i=e>i?e:i)?n:i;return i}})}},{25:25,40:40,45:45}],18:[function(t,e,n){"use strict";var i=t(25),a=t(40),r=t(45);i._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(t){function e(t,e){return r.valueOrDefault(t.showLine,e.showLines)}t.controllers.line=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,update:function(t){var n,i,a,o=this,s=o.getMeta(),l=s.dataset,u=s.data||[],d=o.chart.options,c=d.elements.line,h=o.getScaleForId(s.yAxisID),f=o.getDataset(),g=e(f,d);for(g&&(a=l.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),l._scale=h,l._datasetIndex=o.index,l._children=u,l._model={spanGaps:f.spanGaps?f.spanGaps:d.spanGaps,tension:a.tension?a.tension:r.valueOrDefault(f.lineTension,c.tension),backgroundColor:a.backgroundColor?a.backgroundColor:f.backgroundColor||c.backgroundColor,borderWidth:a.borderWidth?a.borderWidth:f.borderWidth||c.borderWidth,borderColor:a.borderColor?a.borderColor:f.borderColor||c.borderColor,borderCapStyle:a.borderCapStyle?a.borderCapStyle:f.borderCapStyle||c.borderCapStyle,borderDash:a.borderDash?a.borderDash:f.borderDash||c.borderDash,borderDashOffset:a.borderDashOffset?a.borderDashOffset:f.borderDashOffset||c.borderDashOffset,borderJoinStyle:a.borderJoinStyle?a.borderJoinStyle:f.borderJoinStyle||c.borderJoinStyle,fill:a.fill?a.fill:void 0!==f.fill?f.fill:c.fill,steppedLine:a.steppedLine?a.steppedLine:r.valueOrDefault(f.steppedLine,c.stepped),cubicInterpolationMode:a.cubicInterpolationMode?a.cubicInterpolationMode:r.valueOrDefault(f.cubicInterpolationMode,c.cubicInterpolationMode)},l.pivot()),n=0,i=u.length;n');var n=t.data,i=n.datasets,a=n.labels;if(i.length)for(var r=0;r'),a[r]&&e.push(a[r]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(n,i){var a=t.getDatasetMeta(0),o=e.datasets[0],s=a.data[i].custom||{},l=r.valueAtIndexOrDefault,u=t.options.elements.arc;return{text:n,fillStyle:s.backgroundColor?s.backgroundColor:l(o.backgroundColor,i,u.backgroundColor),strokeStyle:s.borderColor?s.borderColor:l(o.borderColor,i,u.borderColor),lineWidth:s.borderWidth?s.borderWidth:l(o.borderWidth,i,u.borderWidth),hidden:isNaN(o.data[i])||a.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,i,a,r=e.index,o=this.chart;for(n=0,i=(o.data.datasets||[]).length;n0&&!isNaN(t)?2*Math.PI/e:0}})}},{25:25,40:40,45:45}],20:[function(t,e,n){"use strict";var i=t(25),a=t(40),r=t(45);i._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(t){t.controllers.radar=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,linkScales:r.noop,update:function(t){var e=this,n=e.getMeta(),i=n.dataset,a=n.data,o=i.custom||{},s=e.getDataset(),l=e.chart.options.elements.line,u=e.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),r.extend(n.dataset,{_datasetIndex:e.index,_scale:u,_children:a,_loop:!0,_model:{tension:o.tension?o.tension:r.valueOrDefault(s.lineTension,l.tension),backgroundColor:o.backgroundColor?o.backgroundColor:s.backgroundColor||l.backgroundColor,borderWidth:o.borderWidth?o.borderWidth:s.borderWidth||l.borderWidth,borderColor:o.borderColor?o.borderColor:s.borderColor||l.borderColor,fill:o.fill?o.fill:void 0!==s.fill?s.fill:l.fill,borderCapStyle:o.borderCapStyle?o.borderCapStyle:s.borderCapStyle||l.borderCapStyle,borderDash:o.borderDash?o.borderDash:s.borderDash||l.borderDash,borderDashOffset:o.borderDashOffset?o.borderDashOffset:s.borderDashOffset||l.borderDashOffset,borderJoinStyle:o.borderJoinStyle?o.borderJoinStyle:s.borderJoinStyle||l.borderJoinStyle}}),n.dataset.pivot(),r.each(a,function(n,i){e.updateElement(n,i,t)},e),e.updateBezierControlPoints()},updateElement:function(t,e,n){var i=this,a=t.custom||{},o=i.getDataset(),s=i.chart.scale,l=i.chart.options.elements.point,u=s.getPointPositionForValue(e,o.data[e]);void 0!==o.radius&&void 0===o.pointRadius&&(o.pointRadius=o.radius),void 0!==o.hitRadius&&void 0===o.pointHitRadius&&(o.pointHitRadius=o.hitRadius),r.extend(t,{_datasetIndex:i.index,_index:e,_scale:s,_model:{x:n?s.xCenter:u.x,y:n?s.yCenter:u.y,tension:a.tension?a.tension:r.valueOrDefault(o.lineTension,i.chart.options.elements.line.tension),radius:a.radius?a.radius:r.valueAtIndexOrDefault(o.pointRadius,e,l.radius),backgroundColor:a.backgroundColor?a.backgroundColor:r.valueAtIndexOrDefault(o.pointBackgroundColor,e,l.backgroundColor),borderColor:a.borderColor?a.borderColor:r.valueAtIndexOrDefault(o.pointBorderColor,e,l.borderColor),borderWidth:a.borderWidth?a.borderWidth:r.valueAtIndexOrDefault(o.pointBorderWidth,e,l.borderWidth),pointStyle:a.pointStyle?a.pointStyle:r.valueAtIndexOrDefault(o.pointStyle,e,l.pointStyle),hitRadius:a.hitRadius?a.hitRadius:r.valueAtIndexOrDefault(o.pointHitRadius,e,l.hitRadius)}}),t._model.skip=a.skip?a.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,e=this.getMeta();r.each(e.data,function(n,i){var a=n._model,o=r.splineCurve(r.previousItem(e.data,i,!0)._model,a,r.nextItem(e.data,i,!0)._model,a.tension);a.controlPointPreviousX=Math.max(Math.min(o.previous.x,t.right),t.left),a.controlPointPreviousY=Math.max(Math.min(o.previous.y,t.bottom),t.top),a.controlPointNextX=Math.max(Math.min(o.next.x,t.right),t.left),a.controlPointNextY=Math.max(Math.min(o.next.y,t.bottom),t.top),n.pivot()})},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,a=t._model;a.radius=n.hoverRadius?n.hoverRadius:r.valueAtIndexOrDefault(e.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),a.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:r.valueAtIndexOrDefault(e.pointHoverBackgroundColor,i,r.getHoverColor(a.backgroundColor)),a.borderColor=n.hoverBorderColor?n.hoverBorderColor:r.valueAtIndexOrDefault(e.pointHoverBorderColor,i,r.getHoverColor(a.borderColor)),a.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:r.valueAtIndexOrDefault(e.pointHoverBorderWidth,i,a.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,a=t._model,o=this.chart.options.elements.point;a.radius=n.radius?n.radius:r.valueAtIndexOrDefault(e.pointRadius,i,o.radius),a.backgroundColor=n.backgroundColor?n.backgroundColor:r.valueAtIndexOrDefault(e.pointBackgroundColor,i,o.backgroundColor),a.borderColor=n.borderColor?n.borderColor:r.valueAtIndexOrDefault(e.pointBorderColor,i,o.borderColor),a.borderWidth=n.borderWidth?n.borderWidth:r.valueAtIndexOrDefault(e.pointBorderWidth,i,o.borderWidth)}})}},{25:25,40:40,45:45}],21:[function(t,e,n){"use strict";t(25)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),e.exports=function(t){t.controllers.scatter=t.controllers.line}},{25:25}],22:[function(t,e,n){"use strict";var i=t(25),a=t(26),r=t(45);i._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:r.noop,onComplete:r.noop}}),e.exports=function(t){t.Animation=a.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,i){var a,r,o=this.animations;for(e.chart=t,i||(t.animating=!0),a=0,r=o.length;a1&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+n);var i=Date.now();t.dropFrames+=(i-e)/t.frameDuration,t.animations.length>0&&t.requestAnimationFrame()},advance:function(t){for(var e,n,i=this.animations,a=0;a=e.numSteps?(r.callback(e.onAnimationComplete,[e],n),n.animating=!1,i.splice(a,1)):++a}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},{25:25,26:26,45:45}],23:[function(t,e,n){"use strict";var i=t(25),a=t(45),r=t(28),o=t(48);e.exports=function(t){function e(t){var e=(t=t||{}).data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=a.configMerge(i.global,i[t.type],t.options||{}),t}function n(t){var e=t.options;e.scale?t.scale.options=e.scale:e.scales&&e.scales.xAxes.concat(e.scales.yAxes).forEach(function(e){t.scales[e.id].options=e}),t.tooltip._options=e.tooltips}function s(t){return"top"===t||"bottom"===t}var l=t.plugins;t.types={},t.instances={},t.controllers={},a.extend(t.prototype,{construct:function(n,i){var r=this;i=e(i);var s=o.acquireContext(n,i),l=s&&s.canvas,u=l&&l.height,d=l&&l.width;r.id=a.uid(),r.ctx=s,r.canvas=l,r.config=i,r.width=d,r.height=u,r.aspectRatio=u?d/u:null,r.options=i.options,r._bufferedRender=!1,r.chart=r,r.controller=r,t.instances[r.id]=r,Object.defineProperty(r,"data",{get:function(){return r.config.data},set:function(t){r.config.data=t}}),s&&l?(r.initialize(),r.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return l.notify(t,"beforeInit"),a.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildScales(),t.initToolTip(),l.notify(t,"afterInit"),t},clear:function(){return a.canvas.clear(this),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,r=n.maintainAspectRatio&&e.aspectRatio||null,o=Math.max(0,Math.floor(a.getMaximumWidth(i))),s=Math.max(0,Math.floor(r?o/r:a.getMaximumHeight(i)));if((e.width!==o||e.height!==s)&&(i.width=e.width=o,i.height=e.height=s,i.style.width=o+"px",i.style.height=s+"px",a.retinaScale(e,n.devicePixelRatio),!t)){var u={width:o,height:s};l.notify(e,"resize",[u]),e.options.onResize&&e.options.onResize(e,u),e.stop(),e.update(e.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;a.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),a.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),n&&(n.id=n.id||"scale")},buildScales:function(){var e=this,n=e.options,i=e.scales={},r=[];n.scales&&(r=r.concat((n.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(n.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),n.scale&&r.push({options:n.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),a.each(r,function(n){var r=n.options,o=a.valueOrDefault(r.type,n.dtype),l=t.scaleService.getScaleConstructor(o);if(l){s(r.position)!==s(n.dposition)&&(r.position=n.dposition);var u=new l({id:r.id,options:r,ctx:e.ctx,chart:e});i[u.id]=u,u.mergeTicksOptions(),n.isDefault&&(e.scale=u)}}),t.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,n=[],i=[];return a.each(e.data.datasets,function(a,r){var o=e.getDatasetMeta(r),s=a.type||e.config.type;if(o.type&&o.type!==s&&(e.destroyDatasetMeta(r),o=e.getDatasetMeta(r)),o.type=s,n.push(o.type),o.controller)o.controller.updateIndex(r);else{var l=t.controllers[o.type];if(void 0===l)throw new Error('"'+o.type+'" is not a chart type.');o.controller=new l(e,r),i.push(o.controller)}},e),i},resetElements:function(){var t=this;a.each(t.data.datasets,function(e,n){t.getDatasetMeta(n).controller.reset()},t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e=this;if(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),n(e),!1!==l.notify(e,"beforeUpdate")){e.tooltip._data=e.data;var i=e.buildOrUpdateControllers();a.each(e.data.datasets,function(t,n){e.getDatasetMeta(n).controller.buildOrUpdateElements()},e),e.updateLayout(),a.each(i,function(t){t.reset()}),e.updateDatasets(),l.notify(e,"afterUpdate"),e._bufferedRender?e._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:e.render(t)}},updateLayout:function(){var e=this;!1!==l.notify(e,"beforeLayout")&&(t.layoutService.update(this,this.width,this.height),l.notify(e,"afterScaleUpdate"),l.notify(e,"afterLayout"))},updateDatasets:function(){var t=this;if(!1!==l.notify(t,"beforeDatasetsUpdate")){for(var e=0,n=t.data.datasets.length;e=0;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);l.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this,i=n.getDatasetMeta(t),a={meta:i,index:t,easingValue:e};!1!==l.notify(n,"beforeDatasetDraw",[a])&&(i.controller.draw(e),l.notify(n,"afterDatasetDraw",[a]))},getElementAtEvent:function(t){return r.modes.single(this,t)},getElementsAtEvent:function(t){return r.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return r.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var i=r.modes[e];return"function"==typeof i?i(this,t,n):[]},getDatasetAtEvent:function(t){return r.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this,n=e.data.datasets[t];n._meta||(n._meta={});var i=n._meta[e.id];return i||(i=n._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),i},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e0||(a.forEach(function(e){delete t[e]}),delete t._chartjs)}}var a=["push","pop","shift","splice","unshift"];t.DatasetController=function(t,e){this.initialize(t,e)},i.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null===e.xAxisID&&(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null===e.yAxisID&&(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,n=e.dataElementType;return n&&new n({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,n=this,i=n.getMeta(),a=n.getDataset().data||[],r=i.data;for(t=0,e=a.length;ti&&t.insertElements(i,a-i)},insertElements:function(t,e){for(var n=0;n=n[e].length&&n[e].push({}),!n[e][o].type||l.type&&l.type!==n[e][o].type?r.merge(n[e][o],[t.scaleService.getScaleDefaults(s),l]):r.merge(n[e][o],l)}else r._merger(e,n,i,a)}})},r.where=function(t,e){if(r.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return r.each(t,function(t){e(t)&&n.push(t)}),n},r.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var i=0,a=t.length;i=0;i--){var a=t[i];if(e(a))return a}},r.inherits=function(t){var e=this,n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},i=function(){this.constructor=n};return i.prototype=e.prototype,n.prototype=new i,n.extend=r.inherits,t&&r.extend(n.prototype,t),n.__super__=e.prototype,n},r.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},r.almostEquals=function(t,e,n){return Math.abs(t-e)t},r.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},r.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},r.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0==(t=+t)||isNaN(t)?t:t>0?1:-1},r.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},r.toRadians=function(t){return t*(Math.PI/180)},r.toDegrees=function(t){return t*(180/Math.PI)},r.getAngleFromPoint=function(t,e){var n=e.x-t.x,i=e.y-t.y,a=Math.sqrt(n*n+i*i),r=Math.atan2(i,n);return r<-.5*Math.PI&&(r+=2*Math.PI),{angle:r,distance:a}},r.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},r.aliasPixel=function(t){return t%2==0?0:.5},r.splineCurve=function(t,e,n,i){var a=t.skip?e:t,r=e,o=n.skip?e:n,s=Math.sqrt(Math.pow(r.x-a.x,2)+Math.pow(r.y-a.y,2)),l=Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),u=s/(s+l),d=l/(s+l),c=i*(u=isNaN(u)?0:u),h=i*(d=isNaN(d)?0:d);return{previous:{x:r.x-c*(o.x-a.x),y:r.y-c*(o.y-a.y)},next:{x:r.x+h*(o.x-a.x),y:r.y+h*(o.y-a.y)}}},r.EPSILON=Number.EPSILON||1e-14,r.splineCurveMonotone=function(t){var e,n,i,a,o=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),s=o.length;for(e=0;e0?o[e-1]:null,(a=e0?o[e-1]:null,a=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},r.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},r.niceNum=function(t,e){var n=Math.floor(r.log10(t)),i=t/Math.pow(10,n);return(e?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},r.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},r.getRelativePosition=function(t,e){var n,i,a=t.originalEvent||t,o=t.currentTarget||t.srcElement,s=o.getBoundingClientRect(),l=a.touches;l&&l.length>0?(n=l[0].clientX,i=l[0].clientY):(n=a.clientX,i=a.clientY);var u=parseFloat(r.getStyle(o,"padding-left")),d=parseFloat(r.getStyle(o,"padding-top")),c=parseFloat(r.getStyle(o,"padding-right")),h=parseFloat(r.getStyle(o,"padding-bottom")),f=s.right-s.left-u-c,g=s.bottom-s.top-d-h;return n=Math.round((n-s.left-u)/f*o.width/e.currentDevicePixelRatio),i=Math.round((i-s.top-d)/g*o.height/e.currentDevicePixelRatio),{x:n,y:i}},r.getConstraintWidth=function(t){return o(t,"max-width","clientWidth")},r.getConstraintHeight=function(t){return o(t,"max-height","clientHeight")},r.getMaximumWidth=function(t){var e=t.parentNode;if(!e)return t.clientWidth;var n=parseInt(r.getStyle(e,"padding-left"),10),i=parseInt(r.getStyle(e,"padding-right"),10),a=e.clientWidth-n-i,o=r.getConstraintWidth(t);return isNaN(o)?a:Math.min(a,o)},r.getMaximumHeight=function(t){var e=t.parentNode;if(!e)return t.clientHeight;var n=parseInt(r.getStyle(e,"padding-top"),10),i=parseInt(r.getStyle(e,"padding-bottom"),10),a=e.clientHeight-n-i,o=r.getConstraintHeight(t);return isNaN(o)?a:Math.min(a,o)},r.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},r.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||window.devicePixelRatio||1;if(1!==n){var i=t.canvas,a=t.height,r=t.width;i.height=a*n,i.width=r*n,t.ctx.scale(n,n),i.style.height=a+"px",i.style.width=r+"px"}},r.fontString=function(t,e,n){return e+" "+t+"px "+n},r.longestText=function(t,e,n,i){var a=(i=i||{}).data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(a=i.data={},o=i.garbageCollect=[],i.font=e),t.font=e;var s=0;r.each(n,function(e){void 0!==e&&null!==e&&!0!==r.isArray(e)?s=r.measureText(t,a,o,s,e):r.isArray(e)&&r.each(e,function(e){void 0===e||null===e||r.isArray(e)||(s=r.measureText(t,a,o,s,e))})});var l=o.length/2;if(l>n.length){for(var u=0;ui&&(i=r),i},r.numberOfLabelLines=function(t){var e=1;return r.each(t,function(t){r.isArray(t)&&t.length>e&&(e=t.length)}),e},r.color=i?function(t){return t instanceof CanvasGradient&&(t=a.global.defaultColor),i(t)}:function(t){return console.error("Color.js not found!"),t},r.getHoverColor=function(t){return t instanceof CanvasPattern?t:r.color(t).saturate(.5).darken(.1).rgbString()}}},{2:2,25:25,45:45}],28:[function(t,e,n){"use strict";function i(t,e){return t.native?{x:t.x,y:t.y}:u.getRelativePosition(t,e)}function a(t,e){var n,i,a,r,o;for(i=0,r=t.data.datasets.length;i0&&(u=t.getDatasetMeta(u[0]._datasetIndex).data),u},"x-axis":function(t,e){return l(t,e,{intersect:!0})},point:function(t,e){return r(t,i(e,t))},nearest:function(t,e,n){var a=i(e,t);n.axis=n.axis||"xy";var r=s(n.axis),l=o(t,a,n.intersect,r);return l.length>1&&l.sort(function(t,e){var n=t.getArea()-e.getArea();return 0===n&&(n=t._datasetIndex-e._datasetIndex),n}),l.slice(0,1)},x:function(t,e,n){var r=i(e,t),o=[],s=!1;return a(t,function(t){t.inXRange(r.x)&&o.push(t),t.inRange(r.x,r.y)&&(s=!0)}),n.intersect&&!s&&(o=[]),o},y:function(t,e,n){var r=i(e,t),o=[],s=!1;return a(t,function(t){t.inYRange(r.y)&&o.push(t),t.inRange(r.x,r.y)&&(s=!0)}),n.intersect&&!s&&(o=[]),o}}}},{45:45}],29:[function(t,e,n){"use strict";t(25)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){var t=function(t,e){return this.construct(t,e),this};return t.Chart=t,t}},{25:25}],30:[function(t,e,n){"use strict";var i=t(45);e.exports=function(t){function e(t,e){return i.where(t,function(t){return t.position===e})}function n(t,e){t.forEach(function(t,e){return t._tmpIndex_=e,t}),t.sort(function(t,n){var i=e?n:t,a=e?t:n;return i.weight===a.weight?i._tmpIndex_-a._tmpIndex_:i.weight-a.weight}),t.forEach(function(t){delete t._tmpIndex_})}t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var i,a=["fullWidth","position","weight"],r=a.length,o=0;oh&&lt.maxHeight){l--;break}l++,c=u*d}t.labelRotation=l},afterCalculateTickRotation:function(){s.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){s.callback(this.options.beforeFit,[this])},fit:function(){var t=this,a=t.minSize={width:0,height:0},r=i(t._ticks),o=t.options,u=o.ticks,d=o.scaleLabel,c=o.gridLines,h=o.display,f=t.isHorizontal(),g=n(u),m=o.gridLines.tickMarkLength;if(a.width=f?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:h&&c.drawTicks?m:0,a.height=f?h&&c.drawTicks?m:0:t.maxHeight,d.display&&h){var p=l(d)+s.options.toPadding(d.padding).height;f?a.height+=p:a.width+=p}if(u.display&&h){var v=s.longestText(t.ctx,g.font,r,t.longestTextCache),y=s.numberOfLabelLines(r),b=.5*g.size,x=t.options.ticks.padding;if(f){t.longestLabelWidth=v;var _=s.toRadians(t.labelRotation),k=Math.cos(_),w=Math.sin(_)*v+g.size*y+b*(y-1)+b;a.height=Math.min(t.maxHeight,a.height+w+x),t.ctx.font=g.font;var M=e(t.ctx,r[0],g.font),S=e(t.ctx,r[r.length-1],g.font);0!==t.labelRotation?(t.paddingLeft="bottom"===o.position?k*M+3:k*b+3,t.paddingRight="bottom"===o.position?k*b+3:k*S+3):(t.paddingLeft=M/2+3,t.paddingRight=S/2+3)}else u.mirror?v=0:v+=x+b,a.width=Math.min(t.maxWidth,a.width+v),t.paddingTop=g.size/2,t.paddingBottom=g.size/2}t.handleMargins(),t.width=a.width,t.height=a.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){s.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(s.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:s.noop,getPixelForValue:s.noop,getValueForPixel:s.noop,getPixelForTick:function(t){var e=this,n=e.options.offset;if(e.isHorizontal()){var i=(e.width-(e.paddingLeft+e.paddingRight))/Math.max(e._ticks.length-(n?0:1),1),a=i*t+e.paddingLeft;n&&(a+=i/2);var r=e.left+Math.round(a);return r+=e.isFullWidth()?e.margins.left:0}var o=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(o/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var n=(e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft,i=e.left+Math.round(n);return i+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,n=t.max;return t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0},_autoSkip:function(t){var e,n,i,a,r=this,o=r.isHorizontal(),l=r.options.ticks.minor,u=t.length,d=s.toRadians(r.labelRotation),c=Math.cos(d),h=r.longestLabelWidth*c,f=[];for(l.maxTicksLimit&&(a=l.maxTicksLimit),o&&(e=!1,(h+l.autoSkipPadding)*u>r.width-(r.paddingLeft+r.paddingRight)&&(e=1+Math.floor((h+l.autoSkipPadding)*u/(r.width-(r.paddingLeft+r.paddingRight)))),a&&u>a&&(e=Math.max(e,Math.floor(u/a)))),n=0;n1&&n%e>0||n%e==0&&n+e>=u)&&n!==u-1||s.isNullOrUndef(i.label))&&delete i.label,f.push(i);return f},draw:function(t){var e=this,i=e.options;if(i.display){var o=e.ctx,u=r.global,d=i.ticks.minor,c=i.ticks.major||d,h=i.gridLines,f=i.scaleLabel,g=0!==e.labelRotation,m=e.isHorizontal(),p=d.autoSkip?e._autoSkip(e.getTicks()):e.getTicks(),v=s.valueOrDefault(d.fontColor,u.defaultFontColor),y=n(d),b=s.valueOrDefault(c.fontColor,u.defaultFontColor),x=n(c),_=h.drawTicks?h.tickMarkLength:0,k=s.valueOrDefault(f.fontColor,u.defaultFontColor),w=n(f),M=s.options.toPadding(f.padding),S=s.toRadians(e.labelRotation),D=[],C="right"===i.position?e.left:e.right-_,P="right"===i.position?e.left+_:e.right,T="bottom"===i.position?e.top:e.bottom-_,I="bottom"===i.position?e.top+_:e.bottom;if(s.each(p,function(n,r){if(void 0!==n.label){var o,l,c,f,v=n.label;r===e.zeroLineIndex&&i.offset===h.offsetGridLines?(o=h.zeroLineWidth,l=h.zeroLineColor,c=h.zeroLineBorderDash,f=h.zeroLineBorderDashOffset):(o=s.valueAtIndexOrDefault(h.lineWidth,r),l=s.valueAtIndexOrDefault(h.color,r),c=s.valueOrDefault(h.borderDash,u.borderDash),f=s.valueOrDefault(h.borderDashOffset,u.borderDashOffset));var y,b,x,k,w,M,A,O,F,R,L="middle",W="middle",Y=d.padding;if(m){var N=_+Y;"bottom"===i.position?(W=g?"middle":"top",L=g?"right":"center",R=e.top+N):(W=g?"middle":"bottom",L=g?"left":"center",R=e.bottom-N);var z=a(e,r,h.offsetGridLines&&p.length>1);z1);H0)n=t.stepSize;else{var r=i.niceNum(e.max-e.min,!1);n=i.niceNum(r/(t.maxTicks-1),!0)}var o=Math.floor(e.min/n)*n,s=Math.ceil(e.max/n)*n;t.min&&t.max&&t.stepSize&&i.almostWhole((t.max-t.min)/t.stepSize,n/1e3)&&(o=t.min,s=t.max);var l=(s-o)/n;l=i.almostEquals(l,Math.round(l),n/1e3)?Math.round(l):Math.ceil(l),a.push(void 0!==t.min?t.min:o);for(var u=1;u3?n[2]-n[1]:n[1]-n[0];Math.abs(a)>1&&t!==Math.floor(t)&&(a=t-Math.floor(t));var r=i.log10(Math.abs(a)),o="";if(0!==t){var s=-1*Math.floor(r);s=Math.max(Math.min(s,20),0),o=t.toFixed(s)}else o="0";return o},logarithmic:function(t,e,n){var a=t/Math.pow(10,Math.floor(i.log10(t)));return 0===t?"0":1===a||2===a||5===a||0===e||e===n.length-1?t.toExponential():""}}}},{45:45}],35:[function(t,e,n){"use strict";var i=t(25),a=t(26),r=t(45);i._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:r.noop,title:function(t,e){var n="",i=e.labels,a=i?i.length:0;if(t.length>0){var r=t[0];r.xLabel?n=r.xLabel:a>0&&r.indexi.height-e.height&&(o="bottom");var s,l,u,d,c,h=(a.left+a.right)/2,f=(a.top+a.bottom)/2;"center"===o?(s=function(t){return t<=h},l=function(t){return t>h}):(s=function(t){return t<=e.width/2},l=function(t){return t>=i.width-e.width/2}),u=function(t){return t+e.width>i.width},d=function(t){return t-e.width<0},c=function(t){return t<=f?"top":"bottom"},s(n.x)?(r="left",u(n.x)&&(r="center",o=c(n.y))):l(n.x)&&(r="right",d(n.x)&&(r="center",o=c(n.y)));var g=t._options;return{xAlign:g.xAlign?g.xAlign:r,yAlign:g.yAlign?g.yAlign:o}}function d(t,e,n){var i=t.x,a=t.y,r=t.caretSize,o=t.caretPadding,s=t.cornerRadius,l=n.xAlign,u=n.yAlign,d=r+o,c=s+o;return"right"===l?i-=e.width:"center"===l&&(i-=e.width/2),"top"===u?a+=d:a-="bottom"===u?e.height+d:e.height/2,"center"===u?"left"===l?i+=d:"right"===l&&(i-=d):"left"===l?i-=c:"right"===l&&(i+=c),{x:i,y:a}}t.Tooltip=a.extend({initialize:function(){this._model=s(this._options)},getTitle:function(){var t=this,e=t._options.callbacks,i=e.beforeTitle.apply(t,arguments),a=e.title.apply(t,arguments),r=e.afterTitle.apply(t,arguments),o=[];return o=n(o,i),o=n(o,a),o=n(o,r)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return r.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,e){var i=this,a=i._options.callbacks,o=[];return r.each(t,function(t){var r={before:[],lines:[],after:[]};n(r.before,a.beforeLabel.call(i,t,e)),n(r.lines,a.label.call(i,t,e)),n(r.after,a.afterLabel.call(i,t,e)),o.push(r)}),o},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return r.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this,e=t._options.callbacks,i=e.beforeFooter.apply(t,arguments),a=e.footer.apply(t,arguments),r=e.afterFooter.apply(t,arguments),o=[];return o=n(o,i),o=n(o,a),o=n(o,r)},update:function(e){var n,i,a=this,c=a._options,h=a._model,f=a._model=s(c),g=a._active,m=a._data,p={xAlign:h.xAlign,yAlign:h.yAlign},v={x:h.x,y:h.y},y={width:h.width,height:h.height},b={x:h.caretX,y:h.caretY};if(g.length){f.opacity=1;var x=[],_=[];b=t.Tooltip.positioners[c.position](g,a._eventPosition);var k=[];for(n=0,i=g.length;n0&&i.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},i={x:e.x,y:e.y},a=Math.abs(e.opacity<.001)?0:e.opacity,r=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&r&&(this.drawBackground(i,e,t,n,a),i.x+=e.xPadding,i.y+=e.yPadding,this.drawTitle(i,e,t,a),this.drawBody(i,e,t,a),this.drawFooter(i,e,t,a))}},handleEvent:function(t){var e=this,n=e._options,i=!1;if(e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:e._active=e._chart.getElementsAtEventForMode(t,n.mode,n),!(i=!r.arrayEquals(e._active,e._lastActive)))return!1;if(e._lastActive=e._active,n.enabled||n.custom){e._eventPosition={x:t.x,y:t.y};var a=e._model;e.update(!0),e.pivot(),i|=a.x!==e._model.x||a.y!==e._model.y}return i}}),t.Tooltip.positioners={average:function(t){if(!t.length)return!1;var e,n,i=0,a=0,r=0;for(e=0,n=t.length;el;)a-=2*Math.PI;for(;a=s&&a<=l,d=o>=n.innerRadius&&o<=n.outerRadius;return u&&d}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,i=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,i),t.arc(e.x,e.y,e.innerRadius,i,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},{25:25,26:26,45:45}],37:[function(t,e,n){"use strict";var i=t(25),a=t(26),r=t(45),o=i.global;i._set("global",{elements:{line:{tension:.4,backgroundColor:o.defaultColor,borderWidth:3,borderColor:o.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=a.extend({draw:function(){var t,e,n,i,a=this,s=a._view,l=a._chart.ctx,u=s.spanGaps,d=a._children.slice(),c=o.elements.line,h=-1;for(a._loop&&d.length&&d.push(d[0]),l.save(),l.lineCap=s.borderCapStyle||c.borderCapStyle,l.setLineDash&&l.setLineDash(s.borderDash||c.borderDash),l.lineDashOffset=s.borderDashOffset||c.borderDashOffset,l.lineJoin=s.borderJoinStyle||c.borderJoinStyle,l.lineWidth=s.borderWidth||c.borderWidth,l.strokeStyle=s.borderColor||o.defaultColor,l.beginPath(),h=-1,t=0;te?1:-1,o=1,s=u.borderSkipped||"left"):(e=u.x-u.width/2,n=u.x+u.width/2,i=u.y,r=1,o=(a=u.base)>i?1:-1,s=u.borderSkipped||"bottom"),d){var c=Math.min(Math.abs(e-n),Math.abs(i-a)),h=(d=d>c?c:d)/2,f=e+("left"!==s?h*r:0),g=n+("right"!==s?-h*r:0),m=i+("top"!==s?h*o:0),p=a+("bottom"!==s?-h*o:0);f!==g&&(i=m,a=p),m!==p&&(e=f,n=g)}l.beginPath(),l.fillStyle=u.backgroundColor,l.strokeStyle=u.borderColor,l.lineWidth=d;var v=[[e,a],[e,i],[n,i],[n,a]],y=["bottom","left","top","right"].indexOf(s,0);-1===y&&(y=0);var b=t(0);l.moveTo(b[0],b[1]);for(var x=1;x<4;x++)b=t(x),l.lineTo(b[0],b[1]);l.fill(),d&&l.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var n=!1;if(this._view){var i=a(this);n=t>=i.left&&t<=i.right&&e>=i.top&&e<=i.bottom}return n},inLabelRange:function(t,e){var n=this;if(!n._view)return!1;var r=a(n);return i(n)?t>=r.left&&t<=r.right:e>=r.top&&e<=r.bottom},inXRange:function(t){var e=a(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=a(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e,n=this._view;return i(this)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{25:25,26:26}],40:[function(t,e,n){"use strict";e.exports={},e.exports.Arc=t(36),e.exports.Line=t(37),e.exports.Point=t(38),e.exports.Rectangle=t(39)},{36:36,37:37,38:38,39:39}],41:[function(t,e,n){"use strict";var i=t(42),n=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,a,r){if(r){var o=Math.min(r,i/2),s=Math.min(r,a/2);t.moveTo(e+o,n),t.lineTo(e+i-o,n),t.quadraticCurveTo(e+i,n,e+i,n+s),t.lineTo(e+i,n+a-s),t.quadraticCurveTo(e+i,n+a,e+i-o,n+a),t.lineTo(e+o,n+a),t.quadraticCurveTo(e,n+a,e,n+a-s),t.lineTo(e,n+s),t.quadraticCurveTo(e,n,e+o,n)}else t.rect(e,n,i,a)},drawPoint:function(t,e,n,i,a){var r,o,s,l,u,d;if("object"!=typeof e||"[object HTMLImageElement]"!==(r=e.toString())&&"[object HTMLCanvasElement]"!==r){if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(i,a,n,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),u=(o=3*n/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(i-o/2,a+u/3),t.lineTo(i+o/2,a+u/3),t.lineTo(i,a-2*u/3),t.closePath(),t.fill();break;case"rect":d=1/Math.SQRT2*n,t.beginPath(),t.fillRect(i-d,a-d,2*d,2*d),t.strokeRect(i-d,a-d,2*d,2*d);break;case"rectRounded":var c=n/Math.SQRT2,h=i-c,f=a-c,g=Math.SQRT2*n;t.beginPath(),this.roundedRect(t,h,f,g,g,n/2),t.closePath(),t.fill();break;case"rectRot":d=1/Math.SQRT2*n,t.beginPath(),t.moveTo(i-d,a),t.lineTo(i,a+d),t.lineTo(i+d,a),t.lineTo(i,a-d),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(i,a+n),t.lineTo(i,a-n),t.moveTo(i-n,a),t.lineTo(i+n,a),t.closePath();break;case"crossRot":t.beginPath(),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(i-s,a-l),t.lineTo(i+s,a+l),t.moveTo(i-s,a+l),t.lineTo(i+s,a-l),t.closePath();break;case"star":t.beginPath(),t.moveTo(i,a+n),t.lineTo(i,a-n),t.moveTo(i-n,a),t.lineTo(i+n,a),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(i-s,a-l),t.lineTo(i+s,a+l),t.moveTo(i-s,a+l),t.lineTo(i+s,a-l),t.closePath();break;case"line":t.beginPath(),t.moveTo(i-n,a),t.lineTo(i+n,a),t.closePath();break;case"dash":t.beginPath(),t.moveTo(i,a),t.lineTo(i+n,a),t.closePath()}t.stroke()}}else t.drawImage(e,i-e.width/2,a-e.height/2,e.width,e.height)},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,i){if(n.steppedLine)return"after"===n.steppedLine&&!i||"after"!==n.steppedLine&&i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),void t.lineTo(n.x,n.y);n.tension?t.bezierCurveTo(i?e.controlPointPreviousX:e.controlPointNextX,i?e.controlPointPreviousY:e.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}};i.clear=n.clear,i.drawRoundedRectangle=function(t){t.beginPath(),n.roundedRect.apply(n,arguments),t.closePath()}},{42:42}],42:[function(t,e,n){"use strict";var i={noop:function(){},uid:function(){var t=0;return function(){return t++}}(),isNullOrUndef:function(t){return null===t||void 0===t},isArray:Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return i.valueOrDefault(i.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,a){var r,o,s;if(i.isArray(t))if(o=t.length,a)for(r=o-1;r>=0;r--)e.call(n,t[r],r);else for(r=0;r=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2==(t/=.5)?1:(n||(n=.45),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-a.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*a.easeInBounce(2*t):.5*a.easeOutBounce(2*t-1)+.5}};e.exports={effects:a},i.easingEffects=a},{42:42}],44:[function(t,e,n){"use strict";var i=t(42);e.exports={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,a,r;return i.isObject(t)?(e=+t.top||0,n=+t.right||0,a=+t.bottom||0,r=+t.left||0):e=n=a=r=+t||0,{top:e,right:n,bottom:a,left:r,height:e+a,width:r+n}},resolve:function(t,e,n){var a,r,o;for(a=0,r=t.length;a
';var a=e.childNodes[0],o=e.childNodes[1];e._reset=function(){a.scrollLeft=1e6,a.scrollTop=1e6,o.scrollLeft=1e6,o.scrollTop=1e6};var s=function(){e._reset(),t()};return r(a,"scroll",s.bind(a,"expand")),r(o,"scroll",s.bind(o,"shrink")),e}function c(t,e){var n=(t[v]||(t[v]={})).renderProxy=function(t){t.animationName===x&&e()};p.each(_,function(e){r(t,e,n)}),t.classList.add(b)}function h(t){var e=t[v]||{},n=e.renderProxy;n&&(p.each(_,function(e){o(t,e,n)}),delete e.renderProxy),t.classList.remove(b)}function f(t,e,n){var i=t[v]||(t[v]={}),a=i.resizer=d(u(function(){if(i.resizer)return e(s("resize",n))}));c(t,function(){if(i.resizer){var e=t.parentNode;e&&e!==a.parentNode&&e.insertBefore(a,e.firstChild),a._reset()}})}function g(t){var e=t[v]||{},n=e.resizer;delete e.resizer,h(t),n&&n.parentNode&&n.parentNode.removeChild(n)}function m(t,e){var n=t._style||document.createElement("style");t._style||(t._style=n,e="/* Chart.js */\n"+e,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(e))}var p=t(45),v="$chartjs",y="chartjs-",b=y+"render-monitor",x=y+"render-animation",_=["animationstart","webkitAnimationStart"],k={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},w=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t="from{opacity:0.99}to{opacity:1}";m(this,"@-webkit-keyframes "+x+"{"+t+"}@keyframes "+x+"{"+t+"}."+b+"{-webkit-animation:"+x+" 0.001s;animation:"+x+" 0.001s;}")},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(a(t,e),n):null},releaseContext:function(t){var e=t.canvas;if(e[v]){var n=e[v].initial;["height","width"].forEach(function(t){var i=n[t];p.isNullOrUndef(i)?e.removeAttribute(t):e.setAttribute(t,i)}),p.each(n.style||{},function(t,n){e.style[n]=t}),e.width=e.width,delete e[v]}},addEventListener:function(t,e,n){var i=t.canvas;if("resize"!==e){var a=n[v]||(n[v]={});r(i,e,(a.proxies||(a.proxies={}))[t.id+"_"+e]=function(e){n(l(e,t))})}else f(i,n,t)},removeEventListener:function(t,e,n){var i=t.canvas;if("resize"!==e){var a=((n[v]||{}).proxies||{})[t.id+"_"+e];a&&o(i,e,a)}else g(i)}},p.addEvent=r,p.removeEvent=o},{45:45}],48:[function(t,e,n){"use strict";var i=t(45),a=t(46),r=t(47),o=r._enabled?r:a;e.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},o)},{45:45,46:46,47:47}],49:[function(t,e,n){"use strict";var i=t(25),a=t(40),r=t(45);i._set("global",{plugins:{filler:{propagate:!0}}}),e.exports=function(){function t(t,e,n){var i,a=t._model||{},r=a.fill;if(void 0===r&&(r=!!a.backgroundColor),!1===r||null===r)return!1;if(!0===r)return"origin";if(i=parseFloat(r,10),isFinite(i)&&Math.floor(i)===i)return"-"!==r[0]&&"+"!==r[0]||(i=e+i),!(i===e||i<0||i>=n)&&i;switch(r){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return r;default:return!1}}function e(t){var e,n=t.el._model||{},i=t.el._scale||{},a=t.fill,r=null;if(isFinite(a))return null;if("start"===a?r=void 0===n.scaleBottom?i.bottom:n.scaleBottom:"end"===a?r=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?r=n.scaleZero:i.getBasePosition?r=i.getBasePosition():i.getBasePixel&&(r=i.getBasePixel()),void 0!==r&&null!==r){if(void 0!==r.x&&void 0!==r.y)return r;if("number"==typeof r&&isFinite(r))return e=i.isHorizontal(),{x:e?r:null,y:e?null:r}}return null}function n(t,e,n){var i,a=t[e].fill,r=[e];if(!n)return a;for(;!1!==a&&-1===r.indexOf(a);){if(!isFinite(a))return a;if(!(i=t[a]))return!1;if(i.visible)return a;r.push(a),a=i.fill}return!1}function o(t){var e=t.fill,n="dataset";return!1===e?null:(isFinite(e)||(n="boundary"),d[n](t))}function s(t){return t&&!t.skip}function l(t,e,n,i,a){var o;if(i&&a){for(t.moveTo(e[0].x,e[0].y),o=1;o0;--o)r.canvas.lineTo(t,n[o],n[o-1],!0)}}function u(t,e,n,i,a,r){var o,u,d,c,h,f,g,m=e.length,p=i.spanGaps,v=[],y=[],b=0,x=0;for(t.beginPath(),o=0,u=m+!!r;o');for(var n=0;n'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("");return e.push(""),e.join("")}}),e.exports=function(t){function e(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}function n(e,n){var i=new t.Legend({ctx:e.ctx,options:n,chart:e});o.configure(e,i,n),o.addBox(e,i),e.legend=i}var o=t.layoutService,s=r.noop;return t.Legend=a.extend({initialize:function(t){r.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:s,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:function(){var t=this,e=t.options.labels||{},n=r.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(n=n.filter(function(n){return e.filter(n,t.chart.data)})),t.options.reverse&&n.reverse(),t.legendItems=n},afterBuildLabels:s,beforeFit:s,fit:function(){var t=this,n=t.options,a=n.labels,o=n.display,s=t.ctx,l=i.global,u=r.valueOrDefault,d=u(a.fontSize,l.defaultFontSize),c=u(a.fontStyle,l.defaultFontStyle),h=u(a.fontFamily,l.defaultFontFamily),f=r.fontString(d,c,h),g=t.legendHitBoxes=[],m=t.minSize,p=t.isHorizontal();if(p?(m.width=t.maxWidth,m.height=o?10:0):(m.width=o?10:0,m.height=t.maxHeight),o)if(s.font=f,p){var v=t.lineWidths=[0],y=t.legendItems.length?d+a.padding:0;s.textAlign="left",s.textBaseline="top",r.each(t.legendItems,function(n,i){var r=e(a,d)+d/2+s.measureText(n.text).width;v[v.length-1]+r+a.padding>=t.width&&(y+=d+a.padding,v[v.length]=t.left),g[i]={left:0,top:0,width:r,height:d},v[v.length-1]+=r+a.padding}),m.height+=y}else{var b=a.padding,x=t.columnWidths=[],_=a.padding,k=0,w=0,M=d+b;r.each(t.legendItems,function(t,n){var i=e(a,d)+d/2+s.measureText(t.text).width;w+M>m.height&&(_+=k+a.padding,x.push(k),k=0,w=0),k=Math.max(k,i),w+=M,g[n]={left:0,top:0,width:i,height:d}}),_+=k,x.push(k),m.width+=_}t.width=m.width,t.height=m.height},afterFit:s,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,n=t.options,a=n.labels,o=i.global,s=o.elements.line,l=t.width,u=t.lineWidths;if(n.display){var d,c=t.ctx,h=r.valueOrDefault,f=h(a.fontColor,o.defaultFontColor),g=h(a.fontSize,o.defaultFontSize),m=h(a.fontStyle,o.defaultFontStyle),p=h(a.fontFamily,o.defaultFontFamily),v=r.fontString(g,m,p);c.textAlign="left",c.textBaseline="middle",c.lineWidth=.5,c.strokeStyle=f,c.fillStyle=f,c.font=v;var y=e(a,g),b=t.legendHitBoxes,x=function(t,e,i){if(!(isNaN(y)||y<=0)){c.save(),c.fillStyle=h(i.fillStyle,o.defaultColor),c.lineCap=h(i.lineCap,s.borderCapStyle),c.lineDashOffset=h(i.lineDashOffset,s.borderDashOffset),c.lineJoin=h(i.lineJoin,s.borderJoinStyle),c.lineWidth=h(i.lineWidth,s.borderWidth),c.strokeStyle=h(i.strokeStyle,o.defaultColor);var a=0===h(i.lineWidth,s.borderWidth);if(c.setLineDash&&c.setLineDash(h(i.lineDash,s.borderDash)),n.labels&&n.labels.usePointStyle){var l=g*Math.SQRT2/2,u=l/Math.SQRT2,d=t+u,f=e+u;r.canvas.drawPoint(c,i.pointStyle,l,d,f)}else a||c.strokeRect(t,e,y,g),c.fillRect(t,e,y,g);c.restore()}},_=function(t,e,n,i){var a=g/2,r=y+a+t,o=e+a;c.fillText(n.text,r,o),n.hidden&&(c.beginPath(),c.lineWidth=2,c.moveTo(r,o),c.lineTo(r+i,o),c.stroke())},k=t.isHorizontal();d=k?{x:t.left+(l-u[0])/2,y:t.top+a.padding,line:0}:{x:t.left+a.padding,y:t.top+a.padding,line:0};var w=g+a.padding;r.each(t.legendItems,function(e,n){var i=c.measureText(e.text).width,r=y+g/2+i,o=d.x,s=d.y;k?o+r>=l&&(s=d.y+=w,d.line++,o=d.x=t.left+(l-u[d.line])/2):s+w>t.bottom&&(o=d.x=o+t.columnWidths[d.line]+a.padding,s=d.y=t.top+a.padding,d.line++),x(o,s,e),b[n].left=o,b[n].top=s,_(o,s,e,i),k?d.x+=r+a.padding:d.y+=w})}},handleEvent:function(t){var e=this,n=e.options,i="mouseup"===t.type?"click":t.type,a=!1;if("mousemove"===i){if(!n.onHover)return}else{if("click"!==i)return;if(!n.onClick)return}var r=t.x,o=t.y;if(r>=e.left&&r<=e.right&&o>=e.top&&o<=e.bottom)for(var s=e.legendHitBoxes,l=0;l=u.left&&r<=u.left+u.width&&o>=u.top&&o<=u.top+u.height){if("click"===i){n.onClick.call(e,t.native,e.legendItems[l]),a=!0;break}if("mousemove"===i){n.onHover.call(e,t.native,e.legendItems[l]),a=!0;break}}}return a}}),{id:"legend",beforeInit:function(t){var e=t.options.legend;e&&n(t,e)},beforeUpdate:function(t){var e=t.options.legend,a=t.legend;e?(r.mergeIf(e,i.global.legend),a?(o.configure(t,a,e),a.options=e):n(t,e)):a&&(o.removeBox(t,a),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}}}},{25:25,26:26,45:45}],51:[function(t,e,n){"use strict";var i=t(25),a=t(26),r=t(45);i._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}}),e.exports=function(t){function e(e,i){var a=new t.Title({ctx:e.ctx,options:i,chart:e});n.configure(e,a,i),n.addBox(e,a),e.titleBlock=a}var n=t.layoutService,o=r.noop;return t.Title=a.extend({initialize:function(t){var e=this;r.extend(e,t),e.legendHitBoxes=[]},beforeUpdate:o,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:o,beforeSetDimensions:o,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:o,beforeBuildLabels:o,buildLabels:o,afterBuildLabels:o,beforeFit:o,fit:function(){var t=this,e=r.valueOrDefault,n=t.options,a=n.display,o=e(n.fontSize,i.global.defaultFontSize),s=t.minSize,l=r.isArray(n.text)?n.text.length:1,u=r.options.toLineHeight(n.lineHeight,o),d=a?l*u+2*n.padding:0;t.isHorizontal()?(s.width=t.maxWidth,s.height=d):(s.width=d,s.height=t.maxHeight),t.width=s.width,t.height=s.height},afterFit:o,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,n=r.valueOrDefault,a=t.options,o=i.global;if(a.display){var s,l,u,d=n(a.fontSize,o.defaultFontSize),c=n(a.fontStyle,o.defaultFontStyle),h=n(a.fontFamily,o.defaultFontFamily),f=r.fontString(d,c,h),g=r.options.toLineHeight(a.lineHeight,d),m=g/2+a.padding,p=0,v=t.top,y=t.left,b=t.bottom,x=t.right;e.fillStyle=n(a.fontColor,o.defaultFontColor),e.font=f,t.isHorizontal()?(l=y+(x-y)/2,u=v+m,s=x-y):(l="left"===a.position?y+m:x-m,u=v+(b-v)/2,s=b-v,p=Math.PI*("left"===a.position?-.5:.5)),e.save(),e.translate(l,u),e.rotate(p),e.textAlign="center",e.textBaseline="middle";var _=a.text;if(r.isArray(_))for(var k=0,w=0;w<_.length;++w)e.fillText(_[w],0,k,s),k+=g;else e.fillText(_,0,0,s);e.restore()}}}),{id:"title",beforeInit:function(t){var n=t.options.title;n&&e(t,n)},beforeUpdate:function(a){var o=a.options.title,s=a.titleBlock;o?(r.mergeIf(o,i.global.title),s?(n.configure(a,s,o),s.options=o):e(a,o)):s&&(t.layoutService.removeBox(a,s),delete a.titleBlock)}}}},{25:25,26:26,45:45}],52:[function(t,e,n){"use strict";e.exports=function(t){var e={position:"bottom"},n=t.Scale.extend({getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,e=t.getLabels();t.minIndex=0,t.maxIndex=e.length-1;var n;void 0!==t.options.ticks.min&&(n=e.indexOf(t.options.ticks.min),t.minIndex=-1!==n?n:t.minIndex),void 0!==t.options.ticks.max&&(n=e.indexOf(t.options.ticks.max),t.maxIndex=-1!==n?n:t.maxIndex),t.min=e[t.minIndex],t.max=e[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var n=this,i=n.chart.data,a=n.isHorizontal();return i.yLabels&&!a?n.getRightValue(i.datasets[e].data[t]):n.ticks[t-n.minIndex]},getPixelForValue:function(t,e){var n,i=this,a=i.options.offset,r=Math.max(i.maxIndex+1-i.minIndex-(a?0:1),1);if(void 0!==t&&null!==t&&(n=i.isHorizontal()?t.x:t.y),void 0!==n||void 0!==t&&isNaN(e)){var o=i.getLabels();t=n||t;var s=o.indexOf(t);e=-1!==s?s:e}if(i.isHorizontal()){var l=i.width/r,u=l*(e-i.minIndex);return a&&(u+=l/2),i.left+Math.round(u)}var d=i.height/r,c=d*(e-i.minIndex);return a&&(c+=d/2),i.top+Math.round(c)},getPixelForTick:function(t){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null)},getValueForPixel:function(t){var e=this,n=e.options.offset,i=Math.max(e._ticks.length-(n?0:1),1),a=e.isHorizontal(),r=(a?e.width:e.height)/i;return t-=a?e.left:e.top,n&&(t-=r/2),(t<=0?0:Math.round(t/r))+e.minIndex},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",n,e)}},{}],53:[function(t,e,n){"use strict";var i=t(25),a=t(45),r=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:r.formatters.linear}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return o?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,n=e.options,i=e.chart,r=i.data.datasets,o=e.isHorizontal();e.min=null,e.max=null;var s=n.stacked;if(void 0===s&&a.each(r,function(e,n){if(!s){var a=i.getDatasetMeta(n);i.isDatasetVisible(n)&&t(a)&&void 0!==a.stack&&(s=!0)}}),n.stacked||s){var l={};a.each(r,function(r,o){var s=i.getDatasetMeta(o),u=[s.type,void 0===n.stacked&&void 0===s.stack?o:"",s.stack].join(".");void 0===l[u]&&(l[u]={positiveValues:[],negativeValues:[]});var d=l[u].positiveValues,c=l[u].negativeValues;i.isDatasetVisible(o)&&t(s)&&a.each(r.data,function(t,i){var a=+e.getRightValue(t);isNaN(a)||s.data[i].hidden||(d[i]=d[i]||0,c[i]=c[i]||0,n.relativePoints?d[i]=100:a<0?c[i]+=a:d[i]+=a)})}),a.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),i=a.min(n),r=a.max(n);e.min=null===e.min?i:Math.min(e.min,i),e.max=null===e.max?r:Math.max(e.max,r)})}else a.each(r,function(n,r){var o=i.getDatasetMeta(r);i.isDatasetVisible(r)&&t(o)&&a.each(n.data,function(t,n){var i=+e.getRightValue(t);isNaN(i)||o.data[n].hidden||(null===e.min?e.min=i:ie.max&&(e.max=i))})});e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this,n=e.options.ticks;if(e.isHorizontal())t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.width/50));else{var r=a.valueOrDefault(n.fontSize,i.global.defaultFontSize);t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.height/(2*r)))}return t},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,n=this,i=n.start,a=+n.getRightValue(t),r=n.end-i;return n.isHorizontal()?(e=n.left+n.width/r*(a-i),Math.round(e)):(e=n.bottom-n.height/r*(a-i),Math.round(e))},getValueForPixel:function(t){var e=this,n=e.isHorizontal(),i=n?e.width:e.height,a=(n?t-e.left:e.bottom-t)/i;return e.start+(e.end-e.start)*a},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,e)}},{25:25,34:34,45:45}],54:[function(t,e,n){"use strict";var i=t(45),a=t(34);e.exports=function(t){var e=i.noop;t.LinearScaleBase=t.Scale.extend({getRightValue:function(e){return"string"==typeof e?+e:t.Scale.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var n=i.sign(t.min),a=i.sign(t.max);n<0&&a<0?t.max=0:n>0&&a>0&&(t.min=0)}var r=void 0!==e.min||void 0!==e.suggestedMin,o=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),r!==o&&t.min>=t.max&&(r?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:e,handleDirectionalChanges:e,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),r={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,stepSize:i.valueOrDefault(e.fixedStepSize,e.stepSize)},o=t.ticks=a.generators.linear(r,t);t.handleDirectionalChanges(),t.max=i.max(o),t.min=i.min(o),e.reverse?(o.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{34:34,45:45}],55:[function(t,e,n){"use strict";var i=t(45),a=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:a.formatters.logarithmic}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return l?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,n=e.options,a=n.ticks,r=e.chart,o=r.data.datasets,s=i.valueOrDefault,l=e.isHorizontal();e.min=null,e.max=null,e.minNotZero=null;var u=n.stacked;if(void 0===u&&i.each(o,function(e,n){if(!u){var i=r.getDatasetMeta(n);r.isDatasetVisible(n)&&t(i)&&void 0!==i.stack&&(u=!0)}}),n.stacked||u){var d={};i.each(o,function(a,o){var s=r.getDatasetMeta(o),l=[s.type,void 0===n.stacked&&void 0===s.stack?o:"",s.stack].join(".");r.isDatasetVisible(o)&&t(s)&&(void 0===d[l]&&(d[l]=[]),i.each(a.data,function(t,i){var a=d[l],r=+e.getRightValue(t);isNaN(r)||s.data[i].hidden||(a[i]=a[i]||0,n.relativePoints?a[i]=100:a[i]+=r)}))}),i.each(d,function(t){var n=i.min(t),a=i.max(t);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?a:Math.max(e.max,a)})}else i.each(o,function(n,a){var o=r.getDatasetMeta(a);r.isDatasetVisible(a)&&t(o)&&i.each(n.data,function(t,n){var i=+e.getRightValue(t);isNaN(i)||o.data[n].hidden||(null===e.min?e.min=i:ie.max&&(e.max=i),0!==i&&(null===e.minNotZero||ia?{start:e-n-5,end:e}:{start:e,end:e+n+5}}function l(t){var i,r,l,u=n(t),d=Math.min(t.height/2,t.width/2),c={r:t.width,l:0,t:t.height,b:0},h={};t.ctx.font=u.font,t._pointLabelSizes=[];var f=e(t);for(i=0;ic.r&&(c.r=p.end,h.r=g),v.startc.b&&(c.b=v.end,h.b=g)}t.setReductions(d,c,h)}function u(t){var e=Math.min(t.height/2,t.width/2);t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0)}function d(t){return 0===t||180===t?"center":t<180?"left":"right"}function c(t,e,n,i){if(a.isArray(e))for(var r=n.y,o=1.5*i,s=0;s270||t<90)&&(n.y-=e.h)}function f(t){var i=t.ctx,r=a.valueOrDefault,o=t.options,s=o.angleLines,l=o.pointLabels;i.lineWidth=s.lineWidth,i.strokeStyle=s.color;var u=t.getDistanceFromCenterForValue(o.ticks.reverse?t.min:t.max),f=n(t);i.textBaseline="top";for(var g=e(t)-1;g>=0;g--){if(s.display){var m=t.getPointPosition(g,u);i.beginPath(),i.moveTo(t.xCenter,t.yCenter),i.lineTo(m.x,m.y),i.stroke(),i.closePath()}if(l.display){var v=t.getPointPosition(g,u+5),y=r(l.fontColor,p.defaultFontColor);i.font=f.font,i.fillStyle=y;var b=t.getIndexAngle(g),x=a.toDegrees(b);i.textAlign=d(x),h(x,t._pointLabelSizes[g],v),c(i,t.pointLabels[g]||"",v,f.size)}}}function g(t,n,i,r){var o=t.ctx;if(o.strokeStyle=a.valueAtIndexOrDefault(n.color,r-1),o.lineWidth=a.valueAtIndexOrDefault(n.lineWidth,r-1),t.options.gridLines.circular)o.beginPath(),o.arc(t.xCenter,t.yCenter,i,0,2*Math.PI),o.closePath(),o.stroke();else{var s=e(t);if(0===s)return;o.beginPath();var l=t.getPointPosition(0,i);o.moveTo(l.x,l.y);for(var u=1;u0&&n>0?e:0)},draw:function(){var t=this,e=t.options,n=e.gridLines,i=e.ticks,r=a.valueOrDefault;if(e.display){var o=t.ctx,s=this.getIndexAngle(0),l=r(i.fontSize,p.defaultFontSize),u=r(i.fontStyle,p.defaultFontStyle),d=r(i.fontFamily,p.defaultFontFamily),c=a.fontString(l,u,d);a.each(t.ticks,function(e,a){if(a>0||i.reverse){var u=t.getDistanceFromCenterForValue(t.ticksAsNumbers[a]);if(n.display&&0!==a&&g(t,n,u,a),i.display){var d=r(i.fontColor,p.defaultFontColor);if(o.font=c,o.save(),o.translate(t.xCenter,t.yCenter),o.rotate(s),i.showLabelBackdrop){var h=o.measureText(e).width;o.fillStyle=i.backdropColor,o.fillRect(-h/2-i.backdropPaddingX,-u-l/2-i.backdropPaddingY,h+2*i.backdropPaddingX,l+2*i.backdropPaddingY)}o.textAlign="center",o.textBaseline="middle",o.fillStyle=d,o.fillText(e,0,-u),o.restore()}}}),(e.angleLines.display||e.pointLabels.display)&&f(t)}}});t.scaleService.registerScaleType("radialLinear",y,v)}},{25:25,34:34,45:45}],57:[function(t,e,n){"use strict";function i(t,e){return t-e}function a(t){var e,n,i,a={},r=[];for(e=0,n=t.length;ee&&s=0&&o<=s;){if(i=o+s>>1,a=t[i-1]||null,r=t[i],!a)return{lo:null,hi:r};if(r[e]n))return{lo:a,hi:r};s=i-1}}return{lo:r,hi:null}}function s(t,e,n,i){var a=o(t,e,n),r=a.lo?a.hi?a.lo:t[t.length-2]:t[0],s=a.lo?a.hi?a.hi:t[t.length-1]:t[1],l=s[e]-r[e],u=l?(n-r[e])/l:0,d=(s[i]-r[i])*u;return r[i]+d}function l(t,e){var n=e.parser,i=e.parser||e.format;return"function"==typeof n?n(t):"string"==typeof t&&"string"==typeof i?p(t,i):(t instanceof p||(t=p(t)),t.isValid()?t:"function"==typeof i?i(t):t)}function u(t,e){if(y.isNullOrUndef(t))return null;var n=e.options.time,i=l(e.getRightValue(t),n);return i.isValid()?(n.round&&i.startOf(n.round),i.valueOf()):null}function d(t,e,n,i){var a,r,o,s=e-t,l=_[n],u=l.size,d=l.steps;if(!d)return Math.ceil(s/((i||1)*u));for(a=0,r=d.length;a1?e[1]:i,o=e[0],l=(s(t,"time",r,"pos")-s(t,"time",o,"pos"))/2),a.time.max||(r=e[e.length-1],o=e.length>1?e[e.length-2]:n,u=(s(t,"time",r,"pos")-s(t,"time",o,"pos"))/2)),{left:l,right:u}}function m(t,e){var n,i,a,r,o=[];for(n=0,i=t.length;n=a&&n<=o&&x.push(n);return i.min=a,i.max=o,i._unit=v,i._majorUnit=y,i._minorFormat=d[v],i._majorFormat=d[y],i._table=r(i._timestamps.data,a,o,s.distribution),i._offsets=g(i._table,x,a,o,s),m(x,y)},getLabelForIndex:function(t,e){var n=this,i=n.chart.data,a=n.options.time,r=i.labels&&t=0&&t - * @version 1.2.2 - * @licence MIT - * @preserve - */ -!function(i){if("function"==typeof define&&define.amd)define(["jquery"],i);else if("object"==typeof module&&module.exports){var t=require("jquery");i(t),module.exports=t}else i(jQuery)}(function(i){function t(i){this.init(i)}t.prototype={value:0,size:100,startAngle:-Math.PI,thickness:"auto",fill:{gradient:["#3aeabb","#fdd250"]},emptyFill:"rgba(0, 0, 0, .1)",animation:{duration:1200,easing:"circleProgressEasing"},animationStartValue:0,reverse:!1,lineCap:"butt",insertMode:"prepend",constructor:t,el:null,canvas:null,ctx:null,radius:0,arcFill:null,lastFrameValue:0,init:function(t){i.extend(this,t),this.radius=this.size/2,this.initWidget(),this.initFill(),this.draw(),this.el.trigger("circle-inited")},initWidget:function(){this.canvas||(this.canvas=i("")["prepend"==this.insertMode?"prependTo":"appendTo"](this.el)[0]);var t=this.canvas;if(t.width=this.size,t.height=this.size,this.ctx=t.getContext("2d"),window.devicePixelRatio>1){var e=window.devicePixelRatio;t.style.width=t.style.height=this.size+"px",t.width=t.height=this.size*e,this.ctx.scale(e,e)}},initFill:function(){function t(){var t=i("")[0];t.width=e.size,t.height=e.size,t.getContext("2d").drawImage(g,0,0,r,r),e.arcFill=e.ctx.createPattern(t,"no-repeat"),e.drawFrame(e.lastFrameValue)}var e=this,a=this.fill,n=this.ctx,r=this.size;if(!a)throw Error("The fill is not specified!");if("string"==typeof a&&(a={color:a}),a.color&&(this.arcFill=a.color),a.gradient){var s=a.gradient;if(1==s.length)this.arcFill=s[0];else if(s.length>1){for(var l=a.gradientAngle||0,o=a.gradientDirection||[r/2*(1-Math.cos(l)),r/2*(1+Math.sin(l)),r/2*(1+Math.cos(l)),r/2*(1-Math.sin(l))],h=n.createLinearGradient.apply(n,o),c=0;c=0&&c0&&b-1 in a)}var x=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=function(a,b){for(var c=0,d=a.length;c+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(N),U=new RegExp("^"+L+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),aa=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:d<0?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ba=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ca=function(a,b){return b?"\0"===a?"\ufffd":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},da=function(){m()},ea=ta(function(a){return a.disabled===!0&&("form"in a||"label"in a)},{dir:"parentNode",next:"legend"});try{G.apply(D=H.call(v.childNodes),v.childNodes),D[v.childNodes.length].nodeType}catch(fa){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s=b&&b.ownerDocument,w=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==w&&9!==w&&11!==w)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==w&&(l=Z.exec(a)))if(f=l[1]){if(9===w){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(s&&(j=s.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(l[2])return G.apply(d,b.getElementsByTagName(a)),d;if((f=l[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==w)s=b,r=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(ba,ca):b.setAttribute("id",k=u),o=g(a),h=o.length;while(h--)o[h]="#"+k+" "+sa(o[h]);r=o.join(","),s=$.test(a)&&qa(b.parentNode)||b}if(r)try{return G.apply(d,s.querySelectorAll(r)),d}catch(x){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(P,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return function(b){return"form"in b?b.parentNode&&b.disabled===!1?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&ea(b)===a:b.disabled===a:"label"in b&&b.disabled===a}}function pa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function qa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return!!b&&"HTML"!==b.nodeName},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),v!==n&&(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(n.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){return a.getAttribute("id")===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}}):(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c,d,e,f=b.getElementById(a);if(f){if(c=f.getAttributeNode("id"),c&&c.value===a)return[f];e=b.getElementsByName(a),d=0;while(f=e[d++])if(c=f.getAttributeNode("id"),c&&c.value===a)return[f]}return[]}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){if("undefined"!=typeof b.getElementsByClassName&&p)return b.getElementsByClassName(a)},r=[],q=[],(c.qsa=Y.test(n.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){a.innerHTML="";var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+K+"*[*^$|!~]?="),2!==a.querySelectorAll(":enabled").length&&q.push(":enabled",":disabled"),o.appendChild(a).disabled=!0,2!==a.querySelectorAll(":disabled").length&&q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Y.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"*"),s.call(a,"[s!='']:x"),r.push("!=",N)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Y.test(o.compareDocumentPosition),t=b||Y.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?I(k,a)-I(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?I(k,a)-I(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?la(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(S,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.escape=function(a){return(a+"").replace(ba,ca)},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(_,aa),a[3]=(a[3]||a[4]||a[5]||"").replace(_,aa),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return V.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&T.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(_,aa).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:!b||(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(O," ")+" ").indexOf(c)>-1:"|="===b&&(e===c||e.slice(0,c.length+1)===c+"-"))}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(P,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(_,aa),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return U.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(_,aa).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:oa(!1),disabled:oa(!0),checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:pa(function(){return[0]}),last:pa(function(a,b){return[b-1]}),eq:pa(function(a,b,c){return[c<0?c+b:c]}),even:pa(function(a,b){for(var c=0;c=0;)a.push(d);return a}),gt:pa(function(a,b,c){for(var d=c<0?c+b:c;++d1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function va(a,b,c){for(var d=0,e=b.length;d-1&&(f[j]=!(g[j]=l))}}else r=wa(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ya(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ta(function(a){return a===b},h,!0),l=ta(function(a){return I(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];i1&&ua(m),i>1&&sa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(P,"$1"),c,i0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=E.call(i));u=wa(u)}G.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&ga.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=ya(b[c]),f[u]?d.push(f):e.push(f);f=A(a,za(e,d)),f.selector=a}return f},i=ga.select=function(a,b,c,e){var f,i,j,k,l,m="function"==typeof a&&a,n=!e&&g(a=m.selector||a);if(c=c||[],1===n.length){if(i=n[0]=n[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&9===b.nodeType&&p&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(_,aa),b)||[])[0],!b)return c;m&&(b=b.parentNode),a=a.slice(i.shift().value.length)}f=V.needsContext.test(a)?0:i.length;while(f--){if(j=i[f],d.relative[k=j.type])break;if((l=d.find[k])&&(e=l(j.matches[0].replace(_,aa),$.test(i[0].type)&&qa(b.parentNode)||b))){if(i.splice(f,1),a=e.length&&sa(i),!a)return G.apply(c,e),c;break}}}return(m||h(a,n))(e,b,!p,c,!b||$.test(a)&&qa(b.parentNode)||b),c},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("fieldset"))}),ja(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(J,function(a,b,c){var d;if(!c)return a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);r.find=x,r.expr=x.selectors,r.expr[":"]=r.expr.pseudos,r.uniqueSort=r.unique=x.uniqueSort,r.text=x.getText,r.isXMLDoc=x.isXML,r.contains=x.contains,r.escapeSelector=x.escape;var y=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&r(a).is(c))break;d.push(a)}return d},z=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},A=r.expr.match.needsContext;function B(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()}var C=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,D=/^.[^:#\[\.,]*$/;function E(a,b,c){return r.isFunction(b)?r.grep(a,function(a,d){return!!b.call(a,d,a)!==c}):b.nodeType?r.grep(a,function(a){return a===b!==c}):"string"!=typeof b?r.grep(a,function(a){return i.call(b,a)>-1!==c}):D.test(b)?r.filter(b,a,c):(b=r.filter(b,a),r.grep(a,function(a){return i.call(b,a)>-1!==c&&1===a.nodeType}))}r.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?r.find.matchesSelector(d,a)?[d]:[]:r.find.matches(a,r.grep(b,function(a){return 1===a.nodeType}))},r.fn.extend({find:function(a){var b,c,d=this.length,e=this;if("string"!=typeof a)return this.pushStack(r(a).filter(function(){for(b=0;b1?r.uniqueSort(c):c},filter:function(a){return this.pushStack(E(this,a||[],!1))},not:function(a){return this.pushStack(E(this,a||[],!0))},is:function(a){return!!E(this,"string"==typeof a&&A.test(a)?r(a):a||[],!1).length}});var F,G=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,H=r.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||F,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:G.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof r?b[0]:b,r.merge(this,r.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),C.test(e[1])&&r.isPlainObject(b))for(e in b)r.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&(this[0]=f,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):r.isFunction(a)?void 0!==c.ready?c.ready(a):a(r):r.makeArray(a,this)};H.prototype=r.fn,F=r(d);var I=/^(?:parents|prev(?:Until|All))/,J={children:!0,contents:!0,next:!0,prev:!0};r.fn.extend({has:function(a){var b=r(a,this),c=b.length;return this.filter(function(){for(var a=0;a-1:1===c.nodeType&&r.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?r.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?i.call(r(a),this[0]):i.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(r.uniqueSort(r.merge(this.get(),r(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function K(a,b){while((a=a[b])&&1!==a.nodeType);return a}r.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return y(a,"parentNode")},parentsUntil:function(a,b,c){return y(a,"parentNode",c)},next:function(a){return K(a,"nextSibling")},prev:function(a){return K(a,"previousSibling")},nextAll:function(a){return y(a,"nextSibling")},prevAll:function(a){return y(a,"previousSibling")},nextUntil:function(a,b,c){return y(a,"nextSibling",c)},prevUntil:function(a,b,c){return y(a,"previousSibling",c)},siblings:function(a){return z((a.parentNode||{}).firstChild,a)},children:function(a){return z(a.firstChild)},contents:function(a){return B(a,"iframe")?a.contentDocument:(B(a,"template")&&(a=a.content||a),r.merge([],a.childNodes))}},function(a,b){r.fn[a]=function(c,d){var e=r.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=r.filter(d,e)),this.length>1&&(J[a]||r.uniqueSort(e),I.test(a)&&e.reverse()),this.pushStack(e)}});var L=/[^\x20\t\r\n\f]+/g;function M(a){var b={};return r.each(a.match(L)||[],function(a,c){b[c]=!0}),b}r.Callbacks=function(a){a="string"==typeof a?M(a):r.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=e||a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h-1)f.splice(c,1),c<=h&&h--}),this},has:function(a){return a?r.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||b||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j};function N(a){return a}function O(a){throw a}function P(a,b,c,d){var e;try{a&&r.isFunction(e=a.promise)?e.call(a).done(b).fail(c):a&&r.isFunction(e=a.then)?e.call(a,b,c):b.apply(void 0,[a].slice(d))}catch(a){c.apply(void 0,[a])}}r.extend({Deferred:function(b){var c=[["notify","progress",r.Callbacks("memory"),r.Callbacks("memory"),2],["resolve","done",r.Callbacks("once memory"),r.Callbacks("once memory"),0,"resolved"],["reject","fail",r.Callbacks("once memory"),r.Callbacks("once memory"),1,"rejected"]],d="pending",e={state:function(){return d},always:function(){return f.done(arguments).fail(arguments),this},"catch":function(a){return e.then(null,a)},pipe:function(){var a=arguments;return r.Deferred(function(b){r.each(c,function(c,d){var e=r.isFunction(a[d[4]])&&a[d[4]];f[d[1]](function(){var a=e&&e.apply(this,arguments);a&&r.isFunction(a.promise)?a.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[d[0]+"With"](this,e?[a]:arguments)})}),a=null}).promise()},then:function(b,d,e){var f=0;function g(b,c,d,e){return function(){var h=this,i=arguments,j=function(){var a,j;if(!(b=f&&(d!==O&&(h=void 0,i=[a]),c.rejectWith(h,i))}};b?k():(r.Deferred.getStackHook&&(k.stackTrace=r.Deferred.getStackHook()),a.setTimeout(k))}}return r.Deferred(function(a){c[0][3].add(g(0,a,r.isFunction(e)?e:N,a.notifyWith)),c[1][3].add(g(0,a,r.isFunction(b)?b:N)),c[2][3].add(g(0,a,r.isFunction(d)?d:O))}).promise()},promise:function(a){return null!=a?r.extend(a,e):e}},f={};return r.each(c,function(a,b){var g=b[2],h=b[5];e[b[1]]=g.add,h&&g.add(function(){d=h},c[3-a][2].disable,c[0][2].lock),g.add(b[3].fire),f[b[0]]=function(){return f[b[0]+"With"](this===f?void 0:this,arguments),this},f[b[0]+"With"]=g.fireWith}),e.promise(f),b&&b.call(f,f),f},when:function(a){var b=arguments.length,c=b,d=Array(c),e=f.call(arguments),g=r.Deferred(),h=function(a){return function(c){d[a]=this,e[a]=arguments.length>1?f.call(arguments):c,--b||g.resolveWith(d,e)}};if(b<=1&&(P(a,g.done(h(c)).resolve,g.reject,!b),"pending"===g.state()||r.isFunction(e[c]&&e[c].then)))return g.then();while(c--)P(e[c],h(c),g.reject);return g.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;r.Deferred.exceptionHook=function(b,c){a.console&&a.console.warn&&b&&Q.test(b.name)&&a.console.warn("jQuery.Deferred exception: "+b.message,b.stack,c)},r.readyException=function(b){a.setTimeout(function(){throw b})};var R=r.Deferred();r.fn.ready=function(a){return R.then(a)["catch"](function(a){r.readyException(a)}),this},r.extend({isReady:!1,readyWait:1,ready:function(a){(a===!0?--r.readyWait:r.isReady)||(r.isReady=!0,a!==!0&&--r.readyWait>0||R.resolveWith(d,[r]))}}),r.ready.then=R.then;function S(){d.removeEventListener("DOMContentLoaded",S), -a.removeEventListener("load",S),r.ready()}"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(r.ready):(d.addEventListener("DOMContentLoaded",S),a.addEventListener("load",S));var T=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===r.type(c)){e=!0;for(h in c)T(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,r.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(r(a),c)})),b))for(;h1,null,!0)},removeData:function(a){return this.each(function(){X.remove(this,a)})}}),r.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=W.get(a,b),c&&(!d||Array.isArray(c)?d=W.access(a,b,r.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=r.queue(a,b),d=c.length,e=c.shift(),f=r._queueHooks(a,b),g=function(){r.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return W.get(a,c)||W.access(a,c,{empty:r.Callbacks("once memory").add(function(){W.remove(a,[b+"queue",c])})})}}),r.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length\x20\t\r\n\f]+)/i,la=/^$|\/(?:java|ecma)script/i,ma={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ma.optgroup=ma.option,ma.tbody=ma.tfoot=ma.colgroup=ma.caption=ma.thead,ma.th=ma.td;function na(a,b){var c;return c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[],void 0===b||b&&B(a,b)?r.merge([a],c):c}function oa(a,b){for(var c=0,d=a.length;c-1)e&&e.push(f);else if(j=r.contains(f.ownerDocument,f),g=na(l.appendChild(f),"script"),j&&oa(g),c){k=0;while(f=g[k++])la.test(f.type||"")&&c.push(f)}return l}!function(){var a=d.createDocumentFragment(),b=a.appendChild(d.createElement("div")),c=d.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),o.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="",o.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var ra=d.documentElement,sa=/^key/,ta=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ua=/^([^.]*)(?:\.(.+)|)/;function va(){return!0}function wa(){return!1}function xa(){try{return d.activeElement}catch(a){}}function ya(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)ya(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=wa;else if(!e)return a;return 1===f&&(g=e,e=function(a){return r().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=r.guid++)),a.each(function(){r.event.add(this,b,e,d,c)})}r.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=W.get(a);if(q){c.handler&&(f=c,c=f.handler,e=f.selector),e&&r.find.matchesSelector(ra,e),c.guid||(c.guid=r.guid++),(i=q.events)||(i=q.events={}),(g=q.handle)||(g=q.handle=function(b){return"undefined"!=typeof r&&r.event.triggered!==b.type?r.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(L)||[""],j=b.length;while(j--)h=ua.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n&&(l=r.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=r.event.special[n]||{},k=r.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&r.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,o,g)!==!1||a.addEventListener&&a.addEventListener(n,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),r.event.global[n]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=W.hasData(a)&&W.get(a);if(q&&(i=q.events)){b=(b||"").match(L)||[""],j=b.length;while(j--)if(h=ua.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){l=r.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&p!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,o,q.handle)!==!1||r.removeEvent(a,n,q.handle),delete i[n])}else for(n in i)r.event.remove(a,n+b[j],c,d,!0);r.isEmptyObject(i)&&W.remove(a,"handle events")}},dispatch:function(a){var b=r.event.fix(a),c,d,e,f,g,h,i=new Array(arguments.length),j=(W.get(this,"events")||{})[b.type]||[],k=r.event.special[b.type]||{};for(i[0]=b,c=1;c=1))for(;j!==this;j=j.parentNode||this)if(1===j.nodeType&&("click"!==a.type||j.disabled!==!0)){for(f=[],g={},c=0;c-1:r.find(e,this,null,[j]).length),g[e]&&f.push(d);f.length&&h.push({elem:j,handlers:f})}return j=this,i\x20\t\r\n\f]*)[^>]*)\/>/gi,Aa=/\s*$/g;function Ea(a,b){return B(a,"table")&&B(11!==b.nodeType?b:b.firstChild,"tr")?r(">tbody",a)[0]||a:a}function Fa(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function Ga(a){var b=Ca.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Ha(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(W.hasData(a)&&(f=W.access(a),g=W.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;c1&&"string"==typeof q&&!o.checkClone&&Ba.test(q))return a.each(function(e){var f=a.eq(e);s&&(b[0]=q.call(this,e,f.html())),Ja(f,b,c,d)});if(m&&(e=qa(b,a[0].ownerDocument,!1,a,d),f=e.firstChild,1===e.childNodes.length&&(e=f),f||d)){for(h=r.map(na(e,"script"),Fa),i=h.length;l")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=r.contains(a.ownerDocument,a);if(!(o.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||r.isXMLDoc(a)))for(g=na(h),f=na(a),d=0,e=f.length;d0&&oa(g,!i&&na(a,"script")),h},cleanData:function(a){for(var b,c,d,e=r.event.special,f=0;void 0!==(c=a[f]);f++)if(U(c)){if(b=c[W.expando]){if(b.events)for(d in b.events)e[d]?r.event.remove(c,d):r.removeEvent(c,d,b.handle);c[W.expando]=void 0}c[X.expando]&&(c[X.expando]=void 0)}}}),r.fn.extend({detach:function(a){return Ka(this,a,!0)},remove:function(a){return Ka(this,a)},text:function(a){return T(this,function(a){return void 0===a?r.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return Ja(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ea(this,a);b.appendChild(a)}})},prepend:function(){return Ja(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ea(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ja(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ja(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(r.cleanData(na(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null!=a&&a,b=null==b?a:b,this.map(function(){return r.clone(this,a,b)})},html:function(a){return T(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!Aa.test(a)&&!ma[(ka.exec(a)||["",""])[1].toLowerCase()]){a=r.htmlPrefilter(a);try{for(;c1)}});function _a(a,b,c,d,e){return new _a.prototype.init(a,b,c,d,e)}r.Tween=_a,_a.prototype={constructor:_a,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||r.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(r.cssNumber[c]?"":"px")},cur:function(){var a=_a.propHooks[this.prop];return a&&a.get?a.get(this):_a.propHooks._default.get(this)},run:function(a){var b,c=_a.propHooks[this.prop];return this.options.duration?this.pos=b=r.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):_a.propHooks._default.set(this),this}},_a.prototype.init.prototype=_a.prototype,_a.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=r.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){r.fx.step[a.prop]?r.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[r.cssProps[a.prop]]&&!r.cssHooks[a.prop]?a.elem[a.prop]=a.now:r.style(a.elem,a.prop,a.now+a.unit)}}},_a.propHooks.scrollTop=_a.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},r.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},r.fx=_a.prototype.init,r.fx.step={};var ab,bb,cb=/^(?:toggle|show|hide)$/,db=/queueHooks$/;function eb(){bb&&(d.hidden===!1&&a.requestAnimationFrame?a.requestAnimationFrame(eb):a.setTimeout(eb,r.fx.interval),r.fx.tick())}function fb(){return a.setTimeout(function(){ab=void 0}),ab=r.now()}function gb(a,b){var c,d=0,e={height:a};for(b=b?1:0;d<4;d+=2-b)c=ca[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function hb(a,b,c){for(var d,e=(kb.tweeners[b]||[]).concat(kb.tweeners["*"]),f=0,g=e.length;f1)},removeAttr:function(a){return this.each(function(){r.removeAttr(this,a)})}}),r.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?r.prop(a,b,c):(1===f&&r.isXMLDoc(a)||(e=r.attrHooks[b.toLowerCase()]||(r.expr.match.bool.test(b)?lb:void 0)),void 0!==c?null===c?void r.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=r.find.attr(a,b), -null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"===b&&B(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d=0,e=b&&b.match(L);if(e&&1===a.nodeType)while(c=e[d++])a.removeAttribute(c)}}),lb={set:function(a,b,c){return b===!1?r.removeAttr(a,c):a.setAttribute(c,c),c}},r.each(r.expr.match.bool.source.match(/\w+/g),function(a,b){var c=mb[b]||r.find.attr;mb[b]=function(a,b,d){var e,f,g=b.toLowerCase();return d||(f=mb[g],mb[g]=e,e=null!=c(a,b,d)?g:null,mb[g]=f),e}});var nb=/^(?:input|select|textarea|button)$/i,ob=/^(?:a|area)$/i;r.fn.extend({prop:function(a,b){return T(this,r.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[r.propFix[a]||a]})}}),r.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&r.isXMLDoc(a)||(b=r.propFix[b]||b,e=r.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=r.find.attr(a,"tabindex");return b?parseInt(b,10):nb.test(a.nodeName)||ob.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),o.optSelected||(r.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),r.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){r.propFix[this.toLowerCase()]=this});function pb(a){var b=a.match(L)||[];return b.join(" ")}function qb(a){return a.getAttribute&&a.getAttribute("class")||""}r.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).addClass(a.call(this,b,qb(this)))});if("string"==typeof a&&a){b=a.match(L)||[];while(c=this[i++])if(e=qb(c),d=1===c.nodeType&&" "+pb(e)+" "){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=pb(d),e!==h&&c.setAttribute("class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).removeClass(a.call(this,b,qb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(L)||[];while(c=this[i++])if(e=qb(c),d=1===c.nodeType&&" "+pb(e)+" "){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=pb(d),e!==h&&c.setAttribute("class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):r.isFunction(a)?this.each(function(c){r(this).toggleClass(a.call(this,c,qb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=r(this),f=a.match(L)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=qb(this),b&&W.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":W.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+pb(qb(c))+" ").indexOf(b)>-1)return!0;return!1}});var rb=/\r/g;r.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=r.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,r(this).val()):a,null==e?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=r.map(e,function(a){return null==a?"":a+""})),b=r.valHooks[this.type]||r.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=r.valHooks[e.type]||r.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(rb,""):null==c?"":c)}}}),r.extend({valHooks:{option:{get:function(a){var b=r.find.attr(a,"value");return null!=b?b:pb(r.text(a))}},select:{get:function(a){var b,c,d,e=a.options,f=a.selectedIndex,g="select-one"===a.type,h=g?null:[],i=g?f+1:e.length;for(d=f<0?i:g?f:0;d-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),r.each(["radio","checkbox"],function(){r.valHooks[this]={set:function(a,b){if(Array.isArray(b))return a.checked=r.inArray(r(a).val(),b)>-1}},o.checkOn||(r.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var sb=/^(?:focusinfocus|focusoutblur)$/;r.extend(r.event,{trigger:function(b,c,e,f){var g,h,i,j,k,m,n,o=[e||d],p=l.call(b,"type")?b.type:b,q=l.call(b,"namespace")?b.namespace.split("."):[];if(h=i=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!sb.test(p+r.event.triggered)&&(p.indexOf(".")>-1&&(q=p.split("."),p=q.shift(),q.sort()),k=p.indexOf(":")<0&&"on"+p,b=b[r.expando]?b:new r.Event(p,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=q.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:r.makeArray(c,[b]),n=r.event.special[p]||{},f||!n.trigger||n.trigger.apply(e,c)!==!1)){if(!f&&!n.noBubble&&!r.isWindow(e)){for(j=n.delegateType||p,sb.test(j+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),i=h;i===(e.ownerDocument||d)&&o.push(i.defaultView||i.parentWindow||a)}g=0;while((h=o[g++])&&!b.isPropagationStopped())b.type=g>1?j:n.bindType||p,m=(W.get(h,"events")||{})[b.type]&&W.get(h,"handle"),m&&m.apply(h,c),m=k&&h[k],m&&m.apply&&U(h)&&(b.result=m.apply(h,c),b.result===!1&&b.preventDefault());return b.type=p,f||b.isDefaultPrevented()||n._default&&n._default.apply(o.pop(),c)!==!1||!U(e)||k&&r.isFunction(e[p])&&!r.isWindow(e)&&(i=e[k],i&&(e[k]=null),r.event.triggered=p,e[p](),r.event.triggered=void 0,i&&(e[k]=i)),b.result}},simulate:function(a,b,c){var d=r.extend(new r.Event,c,{type:a,isSimulated:!0});r.event.trigger(d,null,b)}}),r.fn.extend({trigger:function(a,b){return this.each(function(){r.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];if(c)return r.event.trigger(a,b,c,!0)}}),r.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(a,b){r.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),r.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),o.focusin="onfocusin"in a,o.focusin||r.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){r.event.simulate(b,a.target,r.event.fix(a))};r.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=W.access(d,b);e||d.addEventListener(a,c,!0),W.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=W.access(d,b)-1;e?W.access(d,b,e):(d.removeEventListener(a,c,!0),W.remove(d,b))}}});var tb=a.location,ub=r.now(),vb=/\?/;r.parseXML=function(b){var c;if(!b||"string"!=typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(d){c=void 0}return c&&!c.getElementsByTagName("parsererror").length||r.error("Invalid XML: "+b),c};var wb=/\[\]$/,xb=/\r?\n/g,yb=/^(?:submit|button|image|reset|file)$/i,zb=/^(?:input|select|textarea|keygen)/i;function Ab(a,b,c,d){var e;if(Array.isArray(b))r.each(b,function(b,e){c||wb.test(a)?d(a,e):Ab(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==r.type(b))d(a,b);else for(e in b)Ab(a+"["+e+"]",b[e],c,d)}r.param=function(a,b){var c,d=[],e=function(a,b){var c=r.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(null==c?"":c)};if(Array.isArray(a)||a.jquery&&!r.isPlainObject(a))r.each(a,function(){e(this.name,this.value)});else for(c in a)Ab(c,a[c],b,e);return d.join("&")},r.fn.extend({serialize:function(){return r.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=r.prop(this,"elements");return a?r.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!r(this).is(":disabled")&&zb.test(this.nodeName)&&!yb.test(a)&&(this.checked||!ja.test(a))}).map(function(a,b){var c=r(this).val();return null==c?null:Array.isArray(c)?r.map(c,function(a){return{name:b.name,value:a.replace(xb,"\r\n")}}):{name:b.name,value:c.replace(xb,"\r\n")}}).get()}});var Bb=/%20/g,Cb=/#.*$/,Db=/([?&])_=[^&]*/,Eb=/^(.*?):[ \t]*([^\r\n]*)$/gm,Fb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Gb=/^(?:GET|HEAD)$/,Hb=/^\/\//,Ib={},Jb={},Kb="*/".concat("*"),Lb=d.createElement("a");Lb.href=tb.href;function Mb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(L)||[];if(r.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Nb(a,b,c,d){var e={},f=a===Jb;function g(h){var i;return e[h]=!0,r.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Ob(a,b){var c,d,e=r.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&r.extend(!0,a,d),a}function Pb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}if(f)return f!==i[0]&&i.unshift(f),c[f]}function Qb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}r.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:tb.href,type:"GET",isLocal:Fb.test(tb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Kb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":r.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Ob(Ob(a,r.ajaxSettings),b):Ob(r.ajaxSettings,a)},ajaxPrefilter:Mb(Ib),ajaxTransport:Mb(Jb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m,n,o=r.ajaxSetup({},c),p=o.context||o,q=o.context&&(p.nodeType||p.jquery)?r(p):r.event,s=r.Deferred(),t=r.Callbacks("once memory"),u=o.statusCode||{},v={},w={},x="canceled",y={readyState:0,getResponseHeader:function(a){var b;if(k){if(!h){h={};while(b=Eb.exec(g))h[b[1].toLowerCase()]=b[2]}b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return k?g:null},setRequestHeader:function(a,b){return null==k&&(a=w[a.toLowerCase()]=w[a.toLowerCase()]||a,v[a]=b),this},overrideMimeType:function(a){return null==k&&(o.mimeType=a),this},statusCode:function(a){var b;if(a)if(k)y.always(a[y.status]);else for(b in a)u[b]=[u[b],a[b]];return this},abort:function(a){var b=a||x;return e&&e.abort(b),A(0,b),this}};if(s.promise(y),o.url=((b||o.url||tb.href)+"").replace(Hb,tb.protocol+"//"),o.type=c.method||c.type||o.method||o.type,o.dataTypes=(o.dataType||"*").toLowerCase().match(L)||[""],null==o.crossDomain){j=d.createElement("a");try{j.href=o.url,j.href=j.href,o.crossDomain=Lb.protocol+"//"+Lb.host!=j.protocol+"//"+j.host}catch(z){o.crossDomain=!0}}if(o.data&&o.processData&&"string"!=typeof o.data&&(o.data=r.param(o.data,o.traditional)),Nb(Ib,o,c,y),k)return y;l=r.event&&o.global,l&&0===r.active++&&r.event.trigger("ajaxStart"),o.type=o.type.toUpperCase(),o.hasContent=!Gb.test(o.type),f=o.url.replace(Cb,""),o.hasContent?o.data&&o.processData&&0===(o.contentType||"").indexOf("application/x-www-form-urlencoded")&&(o.data=o.data.replace(Bb,"+")):(n=o.url.slice(f.length),o.data&&(f+=(vb.test(f)?"&":"?")+o.data,delete o.data),o.cache===!1&&(f=f.replace(Db,"$1"),n=(vb.test(f)?"&":"?")+"_="+ub++ +n),o.url=f+n),o.ifModified&&(r.lastModified[f]&&y.setRequestHeader("If-Modified-Since",r.lastModified[f]),r.etag[f]&&y.setRequestHeader("If-None-Match",r.etag[f])),(o.data&&o.hasContent&&o.contentType!==!1||c.contentType)&&y.setRequestHeader("Content-Type",o.contentType),y.setRequestHeader("Accept",o.dataTypes[0]&&o.accepts[o.dataTypes[0]]?o.accepts[o.dataTypes[0]]+("*"!==o.dataTypes[0]?", "+Kb+"; q=0.01":""):o.accepts["*"]);for(m in o.headers)y.setRequestHeader(m,o.headers[m]);if(o.beforeSend&&(o.beforeSend.call(p,y,o)===!1||k))return y.abort();if(x="abort",t.add(o.complete),y.done(o.success),y.fail(o.error),e=Nb(Jb,o,c,y)){if(y.readyState=1,l&&q.trigger("ajaxSend",[y,o]),k)return y;o.async&&o.timeout>0&&(i=a.setTimeout(function(){y.abort("timeout")},o.timeout));try{k=!1,e.send(v,A)}catch(z){if(k)throw z;A(-1,z)}}else A(-1,"No Transport");function A(b,c,d,h){var j,m,n,v,w,x=c;k||(k=!0,i&&a.clearTimeout(i),e=void 0,g=h||"",y.readyState=b>0?4:0,j=b>=200&&b<300||304===b,d&&(v=Pb(o,y,d)),v=Qb(o,v,y,j),j?(o.ifModified&&(w=y.getResponseHeader("Last-Modified"),w&&(r.lastModified[f]=w),w=y.getResponseHeader("etag"),w&&(r.etag[f]=w)),204===b||"HEAD"===o.type?x="nocontent":304===b?x="notmodified":(x=v.state,m=v.data,n=v.error,j=!n)):(n=x,!b&&x||(x="error",b<0&&(b=0))),y.status=b,y.statusText=(c||x)+"",j?s.resolveWith(p,[m,x,y]):s.rejectWith(p,[y,x,n]),y.statusCode(u),u=void 0,l&&q.trigger(j?"ajaxSuccess":"ajaxError",[y,o,j?m:n]),t.fireWith(p,[y,x]),l&&(q.trigger("ajaxComplete",[y,o]),--r.active||r.event.trigger("ajaxStop")))}return y},getJSON:function(a,b,c){return r.get(a,b,c,"json")},getScript:function(a,b){return r.get(a,void 0,b,"script")}}),r.each(["get","post"],function(a,b){r[b]=function(a,c,d,e){return r.isFunction(c)&&(e=e||d,d=c,c=void 0),r.ajax(r.extend({url:a,type:b,dataType:e,data:c,success:d},r.isPlainObject(a)&&a))}}),r._evalUrl=function(a){return r.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},r.fn.extend({wrapAll:function(a){var b;return this[0]&&(r.isFunction(a)&&(a=a.call(this[0])),b=r(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this},wrapInner:function(a){return r.isFunction(a)?this.each(function(b){r(this).wrapInner(a.call(this,b))}):this.each(function(){var b=r(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=r.isFunction(a);return this.each(function(c){r(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){r(this).replaceWith(this.childNodes)}),this}}),r.expr.pseudos.hidden=function(a){return!r.expr.pseudos.visible(a)},r.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},r.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var Rb={0:200,1223:204},Sb=r.ajaxSettings.xhr();o.cors=!!Sb&&"withCredentials"in Sb,o.ajax=Sb=!!Sb,r.ajaxTransport(function(b){var c,d;if(o.cors||Sb&&!b.crossDomain)return{send:function(e,f){var g,h=b.xhr();if(h.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(g in b.xhrFields)h[g]=b.xhrFields[g];b.mimeType&&h.overrideMimeType&&h.overrideMimeType(b.mimeType),b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(Rb[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&a.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(b.hasContent&&b.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}}),r.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),r.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return r.globalEval(a),a}}}),r.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),r.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(e,f){b=r(" - - - - - - - - - - - - - - -
-
- - -
-
- -
-
-
- And this isn't my nose. This is a false one. -
-

And this isn't my nose. This is a false one.

-
Look, my liege! The Knights Who Say Ni demand a sacrifice! …Are you suggesting that coconuts migr...
-
-
-
- Rose Bradley - 3 days ago -
-
- -
-
-
-
-
-
-
- Well, I didn't vote for you. -
-

Well, I didn't vote for you.

-
Well, we did do the nose. Why? Shut up! Will you shut up?! You don't frighten us, English pig-dog...
-
-
-
- Peter Richards - 3 days ago -
-
- -
-
-
-
-
-
-
- How do you know she is a witch? -
-

How do you know she is a witch?

-
Are you suggesting that coconuts migrate? No, no, no! Yes, yes. A bit. But she's got a wart. You ...
-
-
-
- Wayne Holland - 3 days ago -
-
- -
-
-
-
-
-
-
- Shut up! -
-

Shut up!

-
Burn her! How do you know she is a witch? You don't frighten us, English pig-dogs! Go and boil yo...
-
-
-
- Michelle Ross - 3 days ago -
-
- -
-
-
-
-
-
-
-
-

Weaseling out of things is important to learn.

-
Please do not offer my god a peanut. That's why I love elementary school, Edna. The children beli...
-
-
-
- Bobby Knight - 3 days ago -
-
- -
-
-
-
-
-
-
-
-

You don't like your job, you don't strike.

-
But, Aquaman, you cannot marry a woman without gills. You're from two different worlds… Oh, I've ...
-
-
-
- Craig Anderson - 3 days ago -
-
- -
-
-
-
-
-
-
-
-

I hope I didn't brain my damage.

-
I don't like being outdoors, Smithers. For one thing, there's too many fat children. Oh, loneline...
-
-
-
- Crystal Wallace - 3 days ago -
-
- -
-
-
-
-
-
-
- -
-

And this isn't my nose. This is a false one.

-
Look, my liege! The Knights Who Say Ni demand a sacrifice! …Are you suggesting that coconuts migr...
-
-
-
- Rose Bradley - 3 days ago -
-
- -
-
-
-
-
-
-
- -
-

Well, I didn't vote for you.

-
Well, we did do the nose. Why? Shut up! Will you shut up?! You don't frighten us, English pig-dog...
-
-
-
- Peter Richards - 3 days ago -
-
- -
-
-
-
-
-
-
- -
-

Weaseling out of things is important to learn.

-
Please do not offer my god a peanut. That's why I love elementary school, Edna. The children believe anything you tell them. Brace yourselves gentlemen. According to the gas chromatograph, the secr...
-
-
-
- Bobby Knight - 3 days ago -
-
- -
-
-
-
-
-
-
- -
-

You don't like your job, you don't strike.

-
But, Aquaman, you cannot marry a woman without gills. You're from two different worlds… Oh, I've wasted my life. Son, when you participate in sporting events, it's not whether you win or lose: it's...
-
-
-
- Craig Anderson - 3 days ago -
-
- -
-
-
-
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/cards.html b/dist/cards.html deleted file mode 100644 index 48bd748f6..000000000 --- a/dist/cards.html +++ /dev/null @@ -1,540 +0,0 @@ - - - - - - - - - - - - - - - - - - Cards design - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
-
-
-
-
-

This is a standard card

-
- - -
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus! -
- -
-
-
-
-
-

Built card

-
- - -
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus! -
-
-
-
-
-
-
-

Card blue

-
- - -
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus! -
-
-
-
-
-
-
-

Card green

-
- - -
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus! -
-
-
-
-
-
-
-

Card orange

-
- - -
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus! -
-
-
-
-
-
-
-

Card red

-
- - -
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus! -
-
-
-
-
-
-
-

Card yellow

-
- - -
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus! -
-
-
-
-
-
-
-

Card teal

-
- - -
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus! -
-
-
-
-
-
-
-

Card purple

-
- - -
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus! -
-
-
-
-
-
-
-

Card status on left side

-
- - -
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus! -
-
-
-
-
-
-

Initial collapsed card

-
- - -
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus! -
-
-
-
-
-
-

With additional fullscreen button

-
- - - -
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus! -
-
-
-
-
-
-

Panel with custom buttons

- -
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus! -
-
-
-
-
-
-

Card with search form

-
-
-
- - - - -
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus! -
-
-
-
-
-
-

Card with alert

-
- - -
-
-
- Adding action was successful -
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus! -
-
-
-
-
-
-

Card with alert

-
- - -
-
-
- Adding action failed -
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus! -
-
-
-
-
-
-

Card with switch

-
- -
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus! -
-
-
-
-
-
-

Card with loader

-
- - -
-
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus! -
-
-
-
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/carousel.html b/dist/carousel.html deleted file mode 100644 index 50fc06047..000000000 --- a/dist/carousel.html +++ /dev/null @@ -1,415 +0,0 @@ - - - - - - - - - - - - - - - - - - Carousel - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
-
-
-
-
-

Carousel

-
-
- -
-
-
-
-
-
-

Carousel with indicators

-
-
- -
-
-
-
-
-
-

Carousel with controls

-
-
- -
-
-
-
-
-
-

Carousel with captions

-
-
- -
-
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/charts.html b/dist/charts.html deleted file mode 100644 index 53065557d..000000000 --- a/dist/charts.html +++ /dev/null @@ -1,1094 +0,0 @@ - - - - - - - - - - - - - - - - - - Charts - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
- -
-
-
-
-

Employment Growth

-
-
-
-
-
- -
-
-
-
-

Monthly Average Temperature

-
-
-
-
-
- -
-
-
-
-

Lorem ipsum

-
-
-
-
-
- -
-
-
-
-

Lorem ipsum

-
-
-
-
-
- -
-
-
-
-

Lorem ipsum

-
-
-
-
-
- -
-
-
-
-

Wind speed during two days

-
-
-
-
-
- -
-
-
-
-

Lorem ipsum

-
-
-
-
-
- -
-
-
-
-

Lorem ipsum

-
-
-
-
-
- -
-
-
-
-

Lorem ipsum

-
-
-
-
-
- -
-
-
-
-

Lorem ipsum

-
-
-
-
-
- -
-
-
-
-

Lorem ipsum

-
-
-
-
-
- -
-
-
-
-

Lorem ipsum

-
-
-
-
-
- -
-
-
-
-

Lorem ipsum

-
-
-
-
-
- -
-
-
-
-

Lorem ipsum

-
-
-
-
-
- -
-
-
-
-

Lorem ipsum

-
-
-
-
-
- -
-
-
-
-

Combination chart

-
-
-
-
-
- -
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/crypto-currencies.html b/dist/crypto-currencies.html deleted file mode 100644 index 4dd083b89..000000000 --- a/dist/crypto-currencies.html +++ /dev/null @@ -1,1474 +0,0 @@ - - - - - - - - - - - - - - - - - - Crypto currencies - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NamePrice% 24hMarket CapCirculating SupplyVolume 24HCMGR/MonthInflation
1BitcoinBitcoin$10513.00-7%$179,470,305,92316,819,612 BTC$9,578,830,0008.11% / 570.36%
2EthereumEthereum$966.61-6%$95,270,125,03697,145,024 ETH$3,466,060,00022.62% / 290.64%
3RippleRipple$1.2029-11%$47,649,145,65738,739,144,704 XRP$2,081,450,00010.85% / 530.06%
4Bitcoin Cash$1547.00-11%$26,720,210,95616,925,988 BCH$598,337,00021.30% / 60.32%
5CardanoCardano$0.550768-9%$14,279,800,78625,927,069,696 ADA$466,381,000205.35% / 30.00%
6LitecoinLitecoin$173.86-7%$9,670,920,26754,873,584 LTC$430,524,0006.87% / 570.80%
7EOSEOS$13.3945%$8,420,143,033621,412,800 EOS$2,864,780,00053.25% / 611.56%
8NEMNEM$0.935049-11%$8,415,440,9998,999,999,488 XEM$66,061,00026.99% / 330.24%
9Stellar$0.4678132%$8,358,735,08017,867,683,840 XLM$370,297,00013.12% / 410.19%
10NEO$118.61-9%$7,693,400,00065,000,000 NEO$318,308,00062.68% / 150.00%
11IOTA$2.34-14%$6,504,100,8622,779,530,240 MIOTA$103,132,00023.27% / 7-0.02%
12DashDash$747.222-8%$5,881,413,8157,833,738 DASH$96,147,90019.19% / 470.81%
13Monero$305.16-11%$4,778,157,53315,633,286 XMR$100,788,00011.88% / 440.78%
14TRON$0.067691-5%$4,450,560,89665,748,193,280 TRX$581,651,000142.69% / 40.00%
15Bitcoin Gold$181.39-7%$3,084,108,67616,779,700 BTG$199,652,000-25.44% / 30.34%
16ICON$7.90-10%$3,002,355,531380,044,992 ICX$78,201,200179.33% / 390.09%
17Qtum$38.37-9%$2,832,729,40473,826,672 QTUM$593,524,00030.43% / 80.11%
18Ethereum Classic$28.023-6%$2,827,320,11299,308,752 ETC$303,356,00022.79% / 180.74%
19Lisk$20.48-6%$2,401,760,051117,273,440 LSK$44,483,50012.05% / 210.86%
20VeChain$8.339%$2,308,764,732277,162,624 VEN$348,907,000101.15% / 5-0.06%
21RaiBlocks$14.46-15%$1,926,770,258133,248,288 XRB$13,331,500112.15% / 100.06%
22Tether$1.0097-1%$1,618,090,8231,618,090,880 USDT$3,022,620,0000.03% / 3333.71%
23OmiseGO$14.83-11%$1,532,679,131102,042,552 OMG$63,574,50050.49% / 6-0.04%
24Populous$41.22-3%$1,525,305,99237,004,028 PPT$2,271,65058.49% / 6-10.29%
25Zcash$431.43-10%$1,358,979,7113,114,069 ZEC$71,375,000-13.51% / 157.44%
26Verge$0.089875-13%$1,303,358,29814,501,900,288 XVG$75,841,90027.95% / 392.06%
27Binance Coin$12.60-9%$1,247,576,40099,014,000 BNB$129,483,000122.80% / 60.08%
28Siacoin$0.037594-13%$1,180,306,71931,396,145,152 SC$58,783,60026.70% / 290.00%
29Stratis$11.50-13%$1,135,175,76498,710,936 STRAT$25,548,10049.79% / 17-0.02%
30Bytecoin$0.006127-8%$1,125,403,469183,679,369,216 BCN$7,904,87011.39% / 430.23%
31Steem$4.13-14%$1,022,039,920247,467,296 STEEM$29,580,00010.15% / 210.68%
32Ardor$0.995641-9%$994,644,856998,999,488 ARDR$143,752,00020.75% / 18-0.41%
33Status$0.264278-9%$917,172,5143,470,483,712 SNT$355,833,00024.53% / 70.00%
34Maker$1480.84-7%$915,496,751618,228 MKR$1,662,69042.77% / 12-
35Augur$81.55-5%$897,050,00011,000,000 REP$16,086,60016.36% / 270.01%
36BitShares$0.317687-9%$828,330,7302,607,379,968 BTS$43,185,6008.22% / 420.06%
370x$1.66-3%$827,949,569498,764,800 ZRX$20,493,00072.59% / 5-0.24%
38Waves$8.13-1%$813,000,000100,000,000 WAVES$26,239,60010.11% / 19-0.01%
39Dogecoin$0.00659-8%$743,890,685112,881,745,920 DOGE$20,613,4005.35% / 490.36%
40KuCoin Shares$7.91-17%$720,150,73191,043,072 KCS$5,481,780276.01% / 2-0.04%
41Electroneum$0.120304-7%$712,763,8195,924,689,408 ETN$5,103,98019.45% / 218.19%
42Walton$27.791%$691,920,36624,898,178 WTC$50,403,90092.30% / 50.00%
43Veritaseum$335.15-8%$682,581,5712,036,645 VERI$628,12833.82% / 70.00%
44Komodo$5.96-11%$614,151,644103,045,576 KMD$7,010,05045.00% / 11-1.09%
45Decred$91.29-8%$603,249,1586,608,053 DCR$1,304,41022.47% / 233.04%
46Dragonchain$2.39-11%$569,828,436238,421,936 DRGN$3,490,920926.29% / 10.14%
47Dentacoin$0.001735-5%$564,205,023325,190,221,824 DCN$1,082,85043.44% / 50.05%
48Loopring$0.965091-9%$541,577,621561,167,424 LRC$11,179,90055.67% / 595.51%
49Ark$5.36-11%$525,179,68297,981,280 ARK$7,183,61068.16% / 10-0.07%
50SALT$7.23-11%$514,095,07871,105,824 SALT$12,135,1004.35% / 438.07%
51QASH$1.46-9%$511,000,000350,000,000 QASH$19,206,80085.16% / 2-0.17%
52DigiByte$0.050116-11%$487,853,9289,734,494,208 DGB$11,389,9008.02% / 471.48%
53Basic Attention Token$0.487348-12%$487,348,0001,000,000,000 BAT$14,891,30019.38% / 70.00%
54PIVX$8.684%$480,968,83455,411,156 PIVX$11,144,70047.24% / 230.42%
55Golem$0.571295-9%$476,609,709834,262,016 GNT$10,420,80030.48% / 140.10%
56Hshare$10.82-9%$460,173,19342,529,872 HSR$100,098,000-9.81% / 50.30%
57Byteball Bytes$700.65-1%$452,074,794645,222 GBYTE$1,461,46032.04% / 130.00%
58Kyber Network$3.32-9%$445,320,554134,132,696 KNC$39,139,80018.46% / 40.08%
59WAX$0.903366-8%$445,318,368492,954,528 WAX$8,945,930-77.44% / 1-
60Ethos$5.84-8%$440,377,39975,407,088 ETHOS$3,608,20084.05% / 20.31%
61Gas$44.44-12%$425,068,2889,564,993 GAS$19,148,90074.36% / 64.55%
62RChain$1.71-6%$417,309,706244,040,768 RHOC$773,418117.91% / 333.41%
63FunFair$0.092324-8%$407,987,6574,419,085,824 FUN$12,285,80037.92% / 63.98%
64Cindicator$0.27288632%$394,586,7671,445,976,576 CND$262,465,000120.78% / 30.00%
65SmartCash$0.634479-14%$393,086,475619,542,144 SMART$943,55388.55% / 624.97%
66Factom$44.59-6%$389,944,0988,745,102 FCT$10,792,40022.26% / 270.00%
67Nxt$0.38182329%$381,441,154998,999,936 NXT$122,842,0006.32% / 49-0.20%
68Kin$0.0004920%$372,000,000756,097,548,288 KIN$1,325,07049.42% / 40.11%
69Aion$4.75-13%$370,278,76477,953,424 AION$8,336,950108.52% / 330.32%
70Dent$0.033938-12%$360,243,75710,614,761,472 DENT$10,021,500129.26% / 50.00%
71MonaCoin$6.24-8%$355,053,03656,899,524 MONA$5,033,73010.28% / 461.17%
72DigixDAO$176.77-6%$353,540,0002,000,000 DGD$6,663,63012.74% / 80.00%
73Power Ledger$0.949943-9%$345,599,442363,810,720 POWR$27,744,500337.83% / 21.12%
74Aeternity$1.48-2%$344,870,298233,020,480 AE$2,399,09011.87% / 7-0.13%
75aelf$1.37-10%$342,500,000250,000,000 ELF$91,334,50043.85% / 1-
76Bytom$0.340729-4%$336,299,523987,000,000 BTM$20,267,40026.63% / 50.00%
77ZClassic$106.69-19%$336,029,5433,149,588 ZCL$29,954,80025.48% / 1473.30%
78Nebulas$9.32-7%$330,860,00035,500,000 NAS$22,865,40017.66% / 5-
79MaidSafeCoin$0.7304598%$330,570,982452,552,416 MAID$11,475,7008.94% / 440.00%
80Syscoin$0.613294-3%$325,307,399530,426,528 SYS$29,120,20015.10% / 410.13%
81ReddCoin$0.010511-11%$302,001,00728,731,899,904 RDD$5,219,45013.19% / 470.09%
82Nexus$5.47-6%$301,758,33755,166,056 NXS$2,823,43022.15% / 361.13%
83SIRIN LABS Token$3.0223%$298,797,16698,939,456 SRN$15,880,000229.99% / 1-
84GXShares$4.920%$295,200,00060,000,000 GXS$9,631,300-2.54% / 748.19%
85Enigma$3.91-11%$292,609,42874,836,168 ENG$7,421,05092.34% / 30.41%
86Request Network$0.455615-8%$292,069,688641,044,928 REQ$13,739,700104.63% / 30.05%
87Cryptonex$6.267%$282,187,76645,077,920 CNX$293,94430.18% / 30.11%
88Emercoin$6.72-10%$276,999,59641,220,176 EMC$1,951,95023.20% / 410.14%
89ChainLink$0.790746-10%$276,761,100350,000,000 LINK$11,327,70054.30% / 4-0.36%
90Neblio$21.57-13%$274,933,39812,746,101 NEBL$7,116,500153.01% / 40.66%
91Bancor$6.59-7%$268,693,21940,772,872 BNT$8,478,5406.69% / 7-0.01%
92ZCoin$67.90-12%$267,385,7183,937,934 XZC$3,653,91042.92% / 155.28%
93Substratum$1.17-16%$264,526,995226,091,456 SUB$12,041,500131.18% / 40.14%
94Experience Points$0.00127-11%$268,849,841211,692,781,568 XP$1,528,840160.93% / 19.61%
95MediBloc$0.088088-13%$261,302,8422,966,384,128 MED$6,968,920390.11% / 1-
96Quantstamp$0.412894-6%$254,885,317617,314,176 QSP$15,626,100159.68% / 20.00%
97Bitcore$22.43-17%$244,287,08110,891,087 BTX$3,291,47016.18% / 9444.11%
98TenX$2.23-6%$233,394,721104,661,312 PAY$11,627,30017.68% / 60.05%
99XPlay$0.2317560%$231,756,0001,000,000,000 XPA$143,905106.90% / 40.00%
100Iconomi$2.26-11%$225,521,58999,788,312 ICN$3,993,010-3.30% / 7-0.19%
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/demo/brand/tabler.sketch b/dist/demo/brand/tabler.sketch deleted file mode 100644 index 474ff169f..000000000 Binary files a/dist/demo/brand/tabler.sketch and /dev/null differ diff --git a/dist/demo/brand/tabler@1x.png b/dist/demo/brand/tabler@1x.png deleted file mode 100644 index 957180e9f..000000000 Binary files a/dist/demo/brand/tabler@1x.png and /dev/null differ diff --git a/dist/demo/brand/tabler@2x.png b/dist/demo/brand/tabler@2x.png deleted file mode 100644 index 365be97da..000000000 Binary files a/dist/demo/brand/tabler@2x.png and /dev/null differ diff --git a/dist/demo/faces/female/1.jpg b/dist/demo/faces/female/1.jpg deleted file mode 100755 index d873a9a16..000000000 Binary files a/dist/demo/faces/female/1.jpg and /dev/null differ diff --git a/dist/demo/faces/female/10.jpg b/dist/demo/faces/female/10.jpg deleted file mode 100755 index f5b6655b5..000000000 Binary files a/dist/demo/faces/female/10.jpg and /dev/null differ diff --git a/dist/demo/faces/female/11.jpg b/dist/demo/faces/female/11.jpg deleted file mode 100755 index b51eca5ec..000000000 Binary files a/dist/demo/faces/female/11.jpg and /dev/null differ diff --git a/dist/demo/faces/female/12.jpg b/dist/demo/faces/female/12.jpg deleted file mode 100755 index c4b48fd39..000000000 Binary files a/dist/demo/faces/female/12.jpg and /dev/null differ diff --git a/dist/demo/faces/female/13.jpg b/dist/demo/faces/female/13.jpg deleted file mode 100755 index 74d2e3ac9..000000000 Binary files a/dist/demo/faces/female/13.jpg and /dev/null differ diff --git a/dist/demo/faces/female/14.jpg b/dist/demo/faces/female/14.jpg deleted file mode 100755 index 9e1bbc5bf..000000000 Binary files a/dist/demo/faces/female/14.jpg and /dev/null differ diff --git a/dist/demo/faces/female/15.jpg b/dist/demo/faces/female/15.jpg deleted file mode 100755 index 1a7230a6d..000000000 Binary files a/dist/demo/faces/female/15.jpg and /dev/null differ diff --git a/dist/demo/faces/female/16.jpg b/dist/demo/faces/female/16.jpg deleted file mode 100755 index 284611e8c..000000000 Binary files a/dist/demo/faces/female/16.jpg and /dev/null differ diff --git a/dist/demo/faces/female/17.jpg b/dist/demo/faces/female/17.jpg deleted file mode 100755 index af26a7a8f..000000000 Binary files a/dist/demo/faces/female/17.jpg and /dev/null differ diff --git a/dist/demo/faces/female/18.jpg b/dist/demo/faces/female/18.jpg deleted file mode 100755 index d0abd70ac..000000000 Binary files a/dist/demo/faces/female/18.jpg and /dev/null differ diff --git a/dist/demo/faces/female/19.jpg b/dist/demo/faces/female/19.jpg deleted file mode 100755 index 764195ed3..000000000 Binary files a/dist/demo/faces/female/19.jpg and /dev/null differ diff --git a/dist/demo/faces/female/2.jpg b/dist/demo/faces/female/2.jpg deleted file mode 100755 index 31c2aa075..000000000 Binary files a/dist/demo/faces/female/2.jpg and /dev/null differ diff --git a/dist/demo/faces/female/20.jpg b/dist/demo/faces/female/20.jpg deleted file mode 100755 index 786465d0a..000000000 Binary files a/dist/demo/faces/female/20.jpg and /dev/null differ diff --git a/dist/demo/faces/female/21.jpg b/dist/demo/faces/female/21.jpg deleted file mode 100755 index 12cc3a044..000000000 Binary files a/dist/demo/faces/female/21.jpg and /dev/null differ diff --git a/dist/demo/faces/female/22.jpg b/dist/demo/faces/female/22.jpg deleted file mode 100755 index 97fdc8022..000000000 Binary files a/dist/demo/faces/female/22.jpg and /dev/null differ diff --git a/dist/demo/faces/female/23.jpg b/dist/demo/faces/female/23.jpg deleted file mode 100755 index d2f501e48..000000000 Binary files a/dist/demo/faces/female/23.jpg and /dev/null differ diff --git a/dist/demo/faces/female/24.jpg b/dist/demo/faces/female/24.jpg deleted file mode 100755 index a7509ed31..000000000 Binary files a/dist/demo/faces/female/24.jpg and /dev/null differ diff --git a/dist/demo/faces/female/25.jpg b/dist/demo/faces/female/25.jpg deleted file mode 100755 index d939cc624..000000000 Binary files a/dist/demo/faces/female/25.jpg and /dev/null differ diff --git a/dist/demo/faces/female/26.jpg b/dist/demo/faces/female/26.jpg deleted file mode 100755 index 1276a58bc..000000000 Binary files a/dist/demo/faces/female/26.jpg and /dev/null differ diff --git a/dist/demo/faces/female/27.jpg b/dist/demo/faces/female/27.jpg deleted file mode 100755 index 27c0c75a3..000000000 Binary files a/dist/demo/faces/female/27.jpg and /dev/null differ diff --git a/dist/demo/faces/female/28.jpg b/dist/demo/faces/female/28.jpg deleted file mode 100755 index e67a7d2ad..000000000 Binary files a/dist/demo/faces/female/28.jpg and /dev/null differ diff --git a/dist/demo/faces/female/29.jpg b/dist/demo/faces/female/29.jpg deleted file mode 100755 index 277fc94cf..000000000 Binary files a/dist/demo/faces/female/29.jpg and /dev/null differ diff --git a/dist/demo/faces/female/3.jpg b/dist/demo/faces/female/3.jpg deleted file mode 100755 index 6da870fc2..000000000 Binary files a/dist/demo/faces/female/3.jpg and /dev/null differ diff --git a/dist/demo/faces/female/30.jpg b/dist/demo/faces/female/30.jpg deleted file mode 100755 index b3047280a..000000000 Binary files a/dist/demo/faces/female/30.jpg and /dev/null differ diff --git a/dist/demo/faces/female/31.jpg b/dist/demo/faces/female/31.jpg deleted file mode 100755 index 9d4b3fd8c..000000000 Binary files a/dist/demo/faces/female/31.jpg and /dev/null differ diff --git a/dist/demo/faces/female/32.jpg b/dist/demo/faces/female/32.jpg deleted file mode 100755 index 89b28cc5d..000000000 Binary files a/dist/demo/faces/female/32.jpg and /dev/null differ diff --git a/dist/demo/faces/female/4.jpg b/dist/demo/faces/female/4.jpg deleted file mode 100755 index 0ecbaf5d5..000000000 Binary files a/dist/demo/faces/female/4.jpg and /dev/null differ diff --git a/dist/demo/faces/female/5.jpg b/dist/demo/faces/female/5.jpg deleted file mode 100755 index 3399c89ab..000000000 Binary files a/dist/demo/faces/female/5.jpg and /dev/null differ diff --git a/dist/demo/faces/female/6.jpg b/dist/demo/faces/female/6.jpg deleted file mode 100755 index d8819265c..000000000 Binary files a/dist/demo/faces/female/6.jpg and /dev/null differ diff --git a/dist/demo/faces/female/7.jpg b/dist/demo/faces/female/7.jpg deleted file mode 100755 index 89861700d..000000000 Binary files a/dist/demo/faces/female/7.jpg and /dev/null differ diff --git a/dist/demo/faces/female/8.jpg b/dist/demo/faces/female/8.jpg deleted file mode 100755 index 8c71dcbd8..000000000 Binary files a/dist/demo/faces/female/8.jpg and /dev/null differ diff --git a/dist/demo/faces/female/9.jpg b/dist/demo/faces/female/9.jpg deleted file mode 100755 index 28deb04d1..000000000 Binary files a/dist/demo/faces/female/9.jpg and /dev/null differ diff --git a/dist/demo/faces/male/1.jpg b/dist/demo/faces/male/1.jpg deleted file mode 100755 index d348aea0b..000000000 Binary files a/dist/demo/faces/male/1.jpg and /dev/null differ diff --git a/dist/demo/faces/male/10.jpg b/dist/demo/faces/male/10.jpg deleted file mode 100755 index db4d3ed8f..000000000 Binary files a/dist/demo/faces/male/10.jpg and /dev/null differ diff --git a/dist/demo/faces/male/11.jpg b/dist/demo/faces/male/11.jpg deleted file mode 100755 index 9ece17cc7..000000000 Binary files a/dist/demo/faces/male/11.jpg and /dev/null differ diff --git a/dist/demo/faces/male/12.jpg b/dist/demo/faces/male/12.jpg deleted file mode 100755 index b51193c6a..000000000 Binary files a/dist/demo/faces/male/12.jpg and /dev/null differ diff --git a/dist/demo/faces/male/13.jpg b/dist/demo/faces/male/13.jpg deleted file mode 100755 index 5dcb432ca..000000000 Binary files a/dist/demo/faces/male/13.jpg and /dev/null differ diff --git a/dist/demo/faces/male/14.jpg b/dist/demo/faces/male/14.jpg deleted file mode 100755 index c418d2a30..000000000 Binary files a/dist/demo/faces/male/14.jpg and /dev/null differ diff --git a/dist/demo/faces/male/15.jpg b/dist/demo/faces/male/15.jpg deleted file mode 100755 index 129eaeaf2..000000000 Binary files a/dist/demo/faces/male/15.jpg and /dev/null differ diff --git a/dist/demo/faces/male/16.jpg b/dist/demo/faces/male/16.jpg deleted file mode 100755 index 1257ecaa6..000000000 Binary files a/dist/demo/faces/male/16.jpg and /dev/null differ diff --git a/dist/demo/faces/male/17.jpg b/dist/demo/faces/male/17.jpg deleted file mode 100755 index 0fbf68eb7..000000000 Binary files a/dist/demo/faces/male/17.jpg and /dev/null differ diff --git a/dist/demo/faces/male/18.jpg b/dist/demo/faces/male/18.jpg deleted file mode 100755 index 9dbe23555..000000000 Binary files a/dist/demo/faces/male/18.jpg and /dev/null differ diff --git a/dist/demo/faces/male/2.jpg b/dist/demo/faces/male/2.jpg deleted file mode 100755 index 529b6008e..000000000 Binary files a/dist/demo/faces/male/2.jpg and /dev/null differ diff --git a/dist/demo/faces/male/20.jpg b/dist/demo/faces/male/20.jpg deleted file mode 100755 index f607f8539..000000000 Binary files a/dist/demo/faces/male/20.jpg and /dev/null differ diff --git a/dist/demo/faces/male/21.jpg b/dist/demo/faces/male/21.jpg deleted file mode 100755 index e92da8f3b..000000000 Binary files a/dist/demo/faces/male/21.jpg and /dev/null differ diff --git a/dist/demo/faces/male/24.jpg b/dist/demo/faces/male/24.jpg deleted file mode 100755 index f83fdd047..000000000 Binary files a/dist/demo/faces/male/24.jpg and /dev/null differ diff --git a/dist/demo/faces/male/25.jpg b/dist/demo/faces/male/25.jpg deleted file mode 100755 index 45d8ba7b6..000000000 Binary files a/dist/demo/faces/male/25.jpg and /dev/null differ diff --git a/dist/demo/faces/male/26.jpg b/dist/demo/faces/male/26.jpg deleted file mode 100755 index a8975089c..000000000 Binary files a/dist/demo/faces/male/26.jpg and /dev/null differ diff --git a/dist/demo/faces/male/27.jpg b/dist/demo/faces/male/27.jpg deleted file mode 100755 index 997f865a2..000000000 Binary files a/dist/demo/faces/male/27.jpg and /dev/null differ diff --git a/dist/demo/faces/male/28.jpg b/dist/demo/faces/male/28.jpg deleted file mode 100755 index afa595125..000000000 Binary files a/dist/demo/faces/male/28.jpg and /dev/null differ diff --git a/dist/demo/faces/male/29.jpg b/dist/demo/faces/male/29.jpg deleted file mode 100755 index 5d626bba9..000000000 Binary files a/dist/demo/faces/male/29.jpg and /dev/null differ diff --git a/dist/demo/faces/male/3.jpg b/dist/demo/faces/male/3.jpg deleted file mode 100755 index f623f1bde..000000000 Binary files a/dist/demo/faces/male/3.jpg and /dev/null differ diff --git a/dist/demo/faces/male/30.jpg b/dist/demo/faces/male/30.jpg deleted file mode 100755 index 4231d9c4c..000000000 Binary files a/dist/demo/faces/male/30.jpg and /dev/null differ diff --git a/dist/demo/faces/male/31.jpg b/dist/demo/faces/male/31.jpg deleted file mode 100755 index ad9290be4..000000000 Binary files a/dist/demo/faces/male/31.jpg and /dev/null differ diff --git a/dist/demo/faces/male/32.jpg b/dist/demo/faces/male/32.jpg deleted file mode 100755 index dc266d9d0..000000000 Binary files a/dist/demo/faces/male/32.jpg and /dev/null differ diff --git a/dist/demo/faces/male/33.jpg b/dist/demo/faces/male/33.jpg deleted file mode 100755 index 38589456c..000000000 Binary files a/dist/demo/faces/male/33.jpg and /dev/null differ diff --git a/dist/demo/faces/male/34.jpg b/dist/demo/faces/male/34.jpg deleted file mode 100755 index 5b9831bd2..000000000 Binary files a/dist/demo/faces/male/34.jpg and /dev/null differ diff --git a/dist/demo/faces/male/35.jpg b/dist/demo/faces/male/35.jpg deleted file mode 100755 index 34bd94c5b..000000000 Binary files a/dist/demo/faces/male/35.jpg and /dev/null differ diff --git a/dist/demo/faces/male/36.jpg b/dist/demo/faces/male/36.jpg deleted file mode 100755 index 8acb4b1f3..000000000 Binary files a/dist/demo/faces/male/36.jpg and /dev/null differ diff --git a/dist/demo/faces/male/37.jpg b/dist/demo/faces/male/37.jpg deleted file mode 100755 index e9d51b4f1..000000000 Binary files a/dist/demo/faces/male/37.jpg and /dev/null differ diff --git a/dist/demo/faces/male/38.jpg b/dist/demo/faces/male/38.jpg deleted file mode 100755 index bac7739c8..000000000 Binary files a/dist/demo/faces/male/38.jpg and /dev/null differ diff --git a/dist/demo/faces/male/39.jpg b/dist/demo/faces/male/39.jpg deleted file mode 100755 index 5eeba7554..000000000 Binary files a/dist/demo/faces/male/39.jpg and /dev/null differ diff --git a/dist/demo/faces/male/4.jpg b/dist/demo/faces/male/4.jpg deleted file mode 100755 index 3196695c7..000000000 Binary files a/dist/demo/faces/male/4.jpg and /dev/null differ diff --git a/dist/demo/faces/male/40.jpg b/dist/demo/faces/male/40.jpg deleted file mode 100755 index 06b079b4b..000000000 Binary files a/dist/demo/faces/male/40.jpg and /dev/null differ diff --git a/dist/demo/faces/male/41.jpg b/dist/demo/faces/male/41.jpg deleted file mode 100755 index c699870cb..000000000 Binary files a/dist/demo/faces/male/41.jpg and /dev/null differ diff --git a/dist/demo/faces/male/42.jpg b/dist/demo/faces/male/42.jpg deleted file mode 100755 index 05a1d936f..000000000 Binary files a/dist/demo/faces/male/42.jpg and /dev/null differ diff --git a/dist/demo/faces/male/43.jpg b/dist/demo/faces/male/43.jpg deleted file mode 100755 index 1e1f91210..000000000 Binary files a/dist/demo/faces/male/43.jpg and /dev/null differ diff --git a/dist/demo/faces/male/5.jpg b/dist/demo/faces/male/5.jpg deleted file mode 100755 index 6d914cd71..000000000 Binary files a/dist/demo/faces/male/5.jpg and /dev/null differ diff --git a/dist/demo/faces/male/6.jpg b/dist/demo/faces/male/6.jpg deleted file mode 100755 index 4656f055a..000000000 Binary files a/dist/demo/faces/male/6.jpg and /dev/null differ diff --git a/dist/demo/faces/male/7.jpg b/dist/demo/faces/male/7.jpg deleted file mode 100755 index 88ce147cb..000000000 Binary files a/dist/demo/faces/male/7.jpg and /dev/null differ diff --git a/dist/demo/faces/male/8.jpg b/dist/demo/faces/male/8.jpg deleted file mode 100755 index ebc9caed7..000000000 Binary files a/dist/demo/faces/male/8.jpg and /dev/null differ diff --git a/dist/demo/faces/male/9.jpg b/dist/demo/faces/male/9.jpg deleted file mode 100755 index f48e868ce..000000000 Binary files a/dist/demo/faces/male/9.jpg and /dev/null differ diff --git a/dist/demo/logo.svg b/dist/demo/logo.svg deleted file mode 100644 index d00c749a9..000000000 --- a/dist/demo/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/demo/photos/adrian-infernus-281832-1500.jpg b/dist/demo/photos/adrian-infernus-281832-1500.jpg deleted file mode 100644 index 3ab810842..000000000 Binary files a/dist/demo/photos/adrian-infernus-281832-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/adrian-infernus-281832-500.jpg b/dist/demo/photos/adrian-infernus-281832-500.jpg deleted file mode 100644 index 6f2e6a955..000000000 Binary files a/dist/demo/photos/adrian-infernus-281832-500.jpg and /dev/null differ diff --git a/dist/demo/photos/ales-krivec-107499-1500.jpg b/dist/demo/photos/ales-krivec-107499-1500.jpg deleted file mode 100644 index 7157037b8..000000000 Binary files a/dist/demo/photos/ales-krivec-107499-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/ales-krivec-107499-500.jpg b/dist/demo/photos/ales-krivec-107499-500.jpg deleted file mode 100644 index bcaad3afa..000000000 Binary files a/dist/demo/photos/ales-krivec-107499-500.jpg and /dev/null differ diff --git a/dist/demo/photos/alex-bertha-316137-1500.jpg b/dist/demo/photos/alex-bertha-316137-1500.jpg deleted file mode 100644 index f3329a75f..000000000 Binary files a/dist/demo/photos/alex-bertha-316137-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/alex-bertha-316137-500.jpg b/dist/demo/photos/alex-bertha-316137-500.jpg deleted file mode 100644 index fbdccc70c..000000000 Binary files a/dist/demo/photos/alex-bertha-316137-500.jpg and /dev/null differ diff --git a/dist/demo/photos/anders-jilden-307322-1500.jpg b/dist/demo/photos/anders-jilden-307322-1500.jpg deleted file mode 100644 index 321ff9d0f..000000000 Binary files a/dist/demo/photos/anders-jilden-307322-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/anders-jilden-307322-500.jpg b/dist/demo/photos/anders-jilden-307322-500.jpg deleted file mode 100644 index 2dc8a7594..000000000 Binary files a/dist/demo/photos/anders-jilden-307322-500.jpg and /dev/null differ diff --git a/dist/demo/photos/andrew-neel-141710-1500.jpg b/dist/demo/photos/andrew-neel-141710-1500.jpg deleted file mode 100644 index fada86dee..000000000 Binary files a/dist/demo/photos/andrew-neel-141710-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/andrew-neel-141710-500.jpg b/dist/demo/photos/andrew-neel-141710-500.jpg deleted file mode 100644 index 4e3056584..000000000 Binary files a/dist/demo/photos/andrew-neel-141710-500.jpg and /dev/null differ diff --git a/dist/demo/photos/aneta-ivanova-776-1500.jpg b/dist/demo/photos/aneta-ivanova-776-1500.jpg deleted file mode 100644 index 7244b1f62..000000000 Binary files a/dist/demo/photos/aneta-ivanova-776-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/aneta-ivanova-776-500.jpg b/dist/demo/photos/aneta-ivanova-776-500.jpg deleted file mode 100644 index 26dc2d44e..000000000 Binary files a/dist/demo/photos/aneta-ivanova-776-500.jpg and /dev/null differ diff --git a/dist/demo/photos/anthony-intraversato-257182-1500.jpg b/dist/demo/photos/anthony-intraversato-257182-1500.jpg deleted file mode 100644 index beb1ab8f2..000000000 Binary files a/dist/demo/photos/anthony-intraversato-257182-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/anthony-intraversato-257182-500.jpg b/dist/demo/photos/anthony-intraversato-257182-500.jpg deleted file mode 100644 index c55d77806..000000000 Binary files a/dist/demo/photos/anthony-intraversato-257182-500.jpg and /dev/null differ diff --git a/dist/demo/photos/artem-sapegin-229391-1500.jpg b/dist/demo/photos/artem-sapegin-229391-1500.jpg deleted file mode 100644 index bf6006775..000000000 Binary files a/dist/demo/photos/artem-sapegin-229391-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/artem-sapegin-229391-500.jpg b/dist/demo/photos/artem-sapegin-229391-500.jpg deleted file mode 100644 index 9112786dd..000000000 Binary files a/dist/demo/photos/artem-sapegin-229391-500.jpg and /dev/null differ diff --git a/dist/demo/photos/bobby-burch-145906-1500.jpg b/dist/demo/photos/bobby-burch-145906-1500.jpg deleted file mode 100644 index 9f1e57ca4..000000000 Binary files a/dist/demo/photos/bobby-burch-145906-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/bobby-burch-145906-500.jpg b/dist/demo/photos/bobby-burch-145906-500.jpg deleted file mode 100644 index 9460ed7e8..000000000 Binary files a/dist/demo/photos/bobby-burch-145906-500.jpg and /dev/null differ diff --git a/dist/demo/photos/casey-horner-339165-1500.jpg b/dist/demo/photos/casey-horner-339165-1500.jpg deleted file mode 100644 index 5708aece0..000000000 Binary files a/dist/demo/photos/casey-horner-339165-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/casey-horner-339165-500.jpg b/dist/demo/photos/casey-horner-339165-500.jpg deleted file mode 100644 index 13826a2d6..000000000 Binary files a/dist/demo/photos/casey-horner-339165-500.jpg and /dev/null differ diff --git a/dist/demo/photos/christian-joudrey-96208-1500.jpg b/dist/demo/photos/christian-joudrey-96208-1500.jpg deleted file mode 100644 index 579c2c9d3..000000000 Binary files a/dist/demo/photos/christian-joudrey-96208-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/christian-joudrey-96208-500.jpg b/dist/demo/photos/christian-joudrey-96208-500.jpg deleted file mode 100644 index 048a5e346..000000000 Binary files a/dist/demo/photos/christian-joudrey-96208-500.jpg and /dev/null differ diff --git a/dist/demo/photos/christoph-bengtsson-lissalde-80291-1500.jpg b/dist/demo/photos/christoph-bengtsson-lissalde-80291-1500.jpg deleted file mode 100644 index eecea7796..000000000 Binary files a/dist/demo/photos/christoph-bengtsson-lissalde-80291-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/christoph-bengtsson-lissalde-80291-500.jpg b/dist/demo/photos/christoph-bengtsson-lissalde-80291-500.jpg deleted file mode 100644 index a2af13432..000000000 Binary files a/dist/demo/photos/christoph-bengtsson-lissalde-80291-500.jpg and /dev/null differ diff --git a/dist/demo/photos/clarisse-meyer-122804-1500.jpg b/dist/demo/photos/clarisse-meyer-122804-1500.jpg deleted file mode 100644 index 49f4fd9f6..000000000 Binary files a/dist/demo/photos/clarisse-meyer-122804-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/clarisse-meyer-122804-500.jpg b/dist/demo/photos/clarisse-meyer-122804-500.jpg deleted file mode 100644 index 8f9646df1..000000000 Binary files a/dist/demo/photos/clarisse-meyer-122804-500.jpg and /dev/null differ diff --git a/dist/demo/photos/cristina-gottardi-259243-1500.jpg b/dist/demo/photos/cristina-gottardi-259243-1500.jpg deleted file mode 100644 index 18c6ceec2..000000000 Binary files a/dist/demo/photos/cristina-gottardi-259243-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/cristina-gottardi-259243-500.jpg b/dist/demo/photos/cristina-gottardi-259243-500.jpg deleted file mode 100644 index fb389dfde..000000000 Binary files a/dist/demo/photos/cristina-gottardi-259243-500.jpg and /dev/null differ diff --git a/dist/demo/photos/david-klaasen-54203-1500.jpg b/dist/demo/photos/david-klaasen-54203-1500.jpg deleted file mode 100644 index e0e5bcd37..000000000 Binary files a/dist/demo/photos/david-klaasen-54203-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/david-klaasen-54203-500.jpg b/dist/demo/photos/david-klaasen-54203-500.jpg deleted file mode 100644 index 7b71f66cd..000000000 Binary files a/dist/demo/photos/david-klaasen-54203-500.jpg and /dev/null differ diff --git a/dist/demo/photos/david-marcu-114194-1500.jpg b/dist/demo/photos/david-marcu-114194-1500.jpg deleted file mode 100644 index 6d0574a2f..000000000 Binary files a/dist/demo/photos/david-marcu-114194-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/david-marcu-114194-500.jpg b/dist/demo/photos/david-marcu-114194-500.jpg deleted file mode 100644 index eb353a0ae..000000000 Binary files a/dist/demo/photos/david-marcu-114194-500.jpg and /dev/null differ diff --git a/dist/demo/photos/davide-cantelli-139887-1500.jpg b/dist/demo/photos/davide-cantelli-139887-1500.jpg deleted file mode 100644 index 4378d5179..000000000 Binary files a/dist/demo/photos/davide-cantelli-139887-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/davide-cantelli-139887-500.jpg b/dist/demo/photos/davide-cantelli-139887-500.jpg deleted file mode 100644 index 46b6f86e3..000000000 Binary files a/dist/demo/photos/davide-cantelli-139887-500.jpg and /dev/null differ diff --git a/dist/demo/photos/dino-reichmuth-84359-1500.jpg b/dist/demo/photos/dino-reichmuth-84359-1500.jpg deleted file mode 100644 index 7517bfbc2..000000000 Binary files a/dist/demo/photos/dino-reichmuth-84359-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/dino-reichmuth-84359-500.jpg b/dist/demo/photos/dino-reichmuth-84359-500.jpg deleted file mode 100644 index 64683c469..000000000 Binary files a/dist/demo/photos/dino-reichmuth-84359-500.jpg and /dev/null differ diff --git a/dist/demo/photos/eberhard-grossgasteiger-311213-1500.jpg b/dist/demo/photos/eberhard-grossgasteiger-311213-1500.jpg deleted file mode 100644 index 1d6c80f42..000000000 Binary files a/dist/demo/photos/eberhard-grossgasteiger-311213-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/eberhard-grossgasteiger-311213-500.jpg b/dist/demo/photos/eberhard-grossgasteiger-311213-500.jpg deleted file mode 100644 index 2fb1abbf1..000000000 Binary files a/dist/demo/photos/eberhard-grossgasteiger-311213-500.jpg and /dev/null differ diff --git a/dist/demo/photos/geran-de-klerk-290418-1500.jpg b/dist/demo/photos/geran-de-klerk-290418-1500.jpg deleted file mode 100644 index ecaf8a8a0..000000000 Binary files a/dist/demo/photos/geran-de-klerk-290418-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/geran-de-klerk-290418-500.jpg b/dist/demo/photos/geran-de-klerk-290418-500.jpg deleted file mode 100644 index 590a32b1a..000000000 Binary files a/dist/demo/photos/geran-de-klerk-290418-500.jpg and /dev/null differ diff --git a/dist/demo/photos/grant-ritchie-338179-1500.jpg b/dist/demo/photos/grant-ritchie-338179-1500.jpg deleted file mode 100644 index 3db499bbf..000000000 Binary files a/dist/demo/photos/grant-ritchie-338179-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/grant-ritchie-338179-500.jpg b/dist/demo/photos/grant-ritchie-338179-500.jpg deleted file mode 100644 index 9fda83934..000000000 Binary files a/dist/demo/photos/grant-ritchie-338179-500.jpg and /dev/null differ diff --git a/dist/demo/photos/ilnur-kalimullin-218996-1500.jpg b/dist/demo/photos/ilnur-kalimullin-218996-1500.jpg deleted file mode 100644 index 256f35f6d..000000000 Binary files a/dist/demo/photos/ilnur-kalimullin-218996-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/ilnur-kalimullin-218996-500.jpg b/dist/demo/photos/ilnur-kalimullin-218996-500.jpg deleted file mode 100644 index b7afdfc4b..000000000 Binary files a/dist/demo/photos/ilnur-kalimullin-218996-500.jpg and /dev/null differ diff --git a/dist/demo/photos/jakob-owens-224352-1500.jpg b/dist/demo/photos/jakob-owens-224352-1500.jpg deleted file mode 100644 index 1ceb3fb7f..000000000 Binary files a/dist/demo/photos/jakob-owens-224352-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/jakob-owens-224352-500.jpg b/dist/demo/photos/jakob-owens-224352-500.jpg deleted file mode 100644 index e5d22955d..000000000 Binary files a/dist/demo/photos/jakob-owens-224352-500.jpg and /dev/null differ diff --git a/dist/demo/photos/jeremy-bishop-330225-1500.jpg b/dist/demo/photos/jeremy-bishop-330225-1500.jpg deleted file mode 100644 index f5effe31b..000000000 Binary files a/dist/demo/photos/jeremy-bishop-330225-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/jeremy-bishop-330225-500.jpg b/dist/demo/photos/jeremy-bishop-330225-500.jpg deleted file mode 100644 index 50c2705c2..000000000 Binary files a/dist/demo/photos/jeremy-bishop-330225-500.jpg and /dev/null differ diff --git a/dist/demo/photos/jonatan-pie-226191-1500.jpg b/dist/demo/photos/jonatan-pie-226191-1500.jpg deleted file mode 100644 index ab5e246ba..000000000 Binary files a/dist/demo/photos/jonatan-pie-226191-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/jonatan-pie-226191-500.jpg b/dist/demo/photos/jonatan-pie-226191-500.jpg deleted file mode 100644 index a00109a12..000000000 Binary files a/dist/demo/photos/jonatan-pie-226191-500.jpg and /dev/null differ diff --git a/dist/demo/photos/josh-calabrese-66153-1500.jpg b/dist/demo/photos/josh-calabrese-66153-1500.jpg deleted file mode 100644 index b46220bb9..000000000 Binary files a/dist/demo/photos/josh-calabrese-66153-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/josh-calabrese-66153-500.jpg b/dist/demo/photos/josh-calabrese-66153-500.jpg deleted file mode 100644 index b8d93710d..000000000 Binary files a/dist/demo/photos/josh-calabrese-66153-500.jpg and /dev/null differ diff --git a/dist/demo/photos/joshua-earle-157231-1500.jpg b/dist/demo/photos/joshua-earle-157231-1500.jpg deleted file mode 100644 index cb7e23ee9..000000000 Binary files a/dist/demo/photos/joshua-earle-157231-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/joshua-earle-157231-500.jpg b/dist/demo/photos/joshua-earle-157231-500.jpg deleted file mode 100644 index c2a60bf40..000000000 Binary files a/dist/demo/photos/joshua-earle-157231-500.jpg and /dev/null differ diff --git a/dist/demo/photos/mahkeo-222765-1500.jpg b/dist/demo/photos/mahkeo-222765-1500.jpg deleted file mode 100644 index e8700f911..000000000 Binary files a/dist/demo/photos/mahkeo-222765-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/mahkeo-222765-500.jpg b/dist/demo/photos/mahkeo-222765-500.jpg deleted file mode 100644 index a69d6fc99..000000000 Binary files a/dist/demo/photos/mahkeo-222765-500.jpg and /dev/null differ diff --git a/dist/demo/photos/matt-barrett-339981-1500.jpg b/dist/demo/photos/matt-barrett-339981-1500.jpg deleted file mode 100644 index 699c1b3db..000000000 Binary files a/dist/demo/photos/matt-barrett-339981-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/matt-barrett-339981-500.jpg b/dist/demo/photos/matt-barrett-339981-500.jpg deleted file mode 100644 index 20e627201..000000000 Binary files a/dist/demo/photos/matt-barrett-339981-500.jpg and /dev/null differ diff --git a/dist/demo/photos/nathan-anderson-297460-1500.jpg b/dist/demo/photos/nathan-anderson-297460-1500.jpg deleted file mode 100644 index f980853ff..000000000 Binary files a/dist/demo/photos/nathan-anderson-297460-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/nathan-anderson-297460-500.jpg b/dist/demo/photos/nathan-anderson-297460-500.jpg deleted file mode 100644 index bf011beaf..000000000 Binary files a/dist/demo/photos/nathan-anderson-297460-500.jpg and /dev/null differ diff --git a/dist/demo/photos/nathan-anderson-316188-1500.jpg b/dist/demo/photos/nathan-anderson-316188-1500.jpg deleted file mode 100644 index 47410b994..000000000 Binary files a/dist/demo/photos/nathan-anderson-316188-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/nathan-anderson-316188-500.jpg b/dist/demo/photos/nathan-anderson-316188-500.jpg deleted file mode 100644 index 069af5afa..000000000 Binary files a/dist/demo/photos/nathan-anderson-316188-500.jpg and /dev/null differ diff --git a/dist/demo/photos/nathan-dumlao-287713-1500.jpg b/dist/demo/photos/nathan-dumlao-287713-1500.jpg deleted file mode 100644 index 97ae0c31c..000000000 Binary files a/dist/demo/photos/nathan-dumlao-287713-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/nathan-dumlao-287713-500.jpg b/dist/demo/photos/nathan-dumlao-287713-500.jpg deleted file mode 100644 index 7f061b3de..000000000 Binary files a/dist/demo/photos/nathan-dumlao-287713-500.jpg and /dev/null differ diff --git a/dist/demo/photos/nicolas-picard-208276-1500.jpg b/dist/demo/photos/nicolas-picard-208276-1500.jpg deleted file mode 100644 index a20c7583a..000000000 Binary files a/dist/demo/photos/nicolas-picard-208276-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/nicolas-picard-208276-500.jpg b/dist/demo/photos/nicolas-picard-208276-500.jpg deleted file mode 100644 index 17b12c18a..000000000 Binary files a/dist/demo/photos/nicolas-picard-208276-500.jpg and /dev/null differ diff --git a/dist/demo/photos/oskar-vertetics-53043-1500.jpg b/dist/demo/photos/oskar-vertetics-53043-1500.jpg deleted file mode 100644 index 9a8804019..000000000 Binary files a/dist/demo/photos/oskar-vertetics-53043-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/oskar-vertetics-53043-500.jpg b/dist/demo/photos/oskar-vertetics-53043-500.jpg deleted file mode 100644 index 87c79dd5f..000000000 Binary files a/dist/demo/photos/oskar-vertetics-53043-500.jpg and /dev/null differ diff --git a/dist/demo/photos/priscilla-du-preez-181896-1500.jpg b/dist/demo/photos/priscilla-du-preez-181896-1500.jpg deleted file mode 100644 index f0bfe74ed..000000000 Binary files a/dist/demo/photos/priscilla-du-preez-181896-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/priscilla-du-preez-181896-500.jpg b/dist/demo/photos/priscilla-du-preez-181896-500.jpg deleted file mode 100644 index 0d83bd1f5..000000000 Binary files a/dist/demo/photos/priscilla-du-preez-181896-500.jpg and /dev/null differ diff --git a/dist/demo/photos/ricardo-gomez-angel-262359-1500.jpg b/dist/demo/photos/ricardo-gomez-angel-262359-1500.jpg deleted file mode 100644 index 34f4186dc..000000000 Binary files a/dist/demo/photos/ricardo-gomez-angel-262359-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/ricardo-gomez-angel-262359-500.jpg b/dist/demo/photos/ricardo-gomez-angel-262359-500.jpg deleted file mode 100644 index 943068cdb..000000000 Binary files a/dist/demo/photos/ricardo-gomez-angel-262359-500.jpg and /dev/null differ diff --git a/dist/demo/photos/sam-ferrara-136526-1500.jpg b/dist/demo/photos/sam-ferrara-136526-1500.jpg deleted file mode 100644 index f6ebf969b..000000000 Binary files a/dist/demo/photos/sam-ferrara-136526-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/sam-ferrara-136526-500.jpg b/dist/demo/photos/sam-ferrara-136526-500.jpg deleted file mode 100644 index b9e134458..000000000 Binary files a/dist/demo/photos/sam-ferrara-136526-500.jpg and /dev/null differ diff --git a/dist/demo/photos/sean-afnan-244576-1500.jpg b/dist/demo/photos/sean-afnan-244576-1500.jpg deleted file mode 100644 index fa36f9fe3..000000000 Binary files a/dist/demo/photos/sean-afnan-244576-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/sean-afnan-244576-500.jpg b/dist/demo/photos/sean-afnan-244576-500.jpg deleted file mode 100644 index aba57365f..000000000 Binary files a/dist/demo/photos/sean-afnan-244576-500.jpg and /dev/null differ diff --git a/dist/demo/photos/sophie-higginbottom-133982-1500.jpg b/dist/demo/photos/sophie-higginbottom-133982-1500.jpg deleted file mode 100644 index ee5f400db..000000000 Binary files a/dist/demo/photos/sophie-higginbottom-133982-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/sophie-higginbottom-133982-500.jpg b/dist/demo/photos/sophie-higginbottom-133982-500.jpg deleted file mode 100644 index dbf699a7a..000000000 Binary files a/dist/demo/photos/sophie-higginbottom-133982-500.jpg and /dev/null differ diff --git a/dist/demo/photos/stefan-kunze-26932-1500.jpg b/dist/demo/photos/stefan-kunze-26932-1500.jpg deleted file mode 100644 index deff5e7d4..000000000 Binary files a/dist/demo/photos/stefan-kunze-26932-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/stefan-kunze-26932-500.jpg b/dist/demo/photos/stefan-kunze-26932-500.jpg deleted file mode 100644 index d7dc8a295..000000000 Binary files a/dist/demo/photos/stefan-kunze-26932-500.jpg and /dev/null differ diff --git a/dist/demo/photos/stefan-stefancik-105376-1500.jpg b/dist/demo/photos/stefan-stefancik-105376-1500.jpg deleted file mode 100644 index 918fb606d..000000000 Binary files a/dist/demo/photos/stefan-stefancik-105376-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/stefan-stefancik-105376-500.jpg b/dist/demo/photos/stefan-stefancik-105376-500.jpg deleted file mode 100644 index c7be0b9d0..000000000 Binary files a/dist/demo/photos/stefan-stefancik-105376-500.jpg and /dev/null differ diff --git a/dist/demo/photos/sweet-ice-cream-photography-143023-1500.jpg b/dist/demo/photos/sweet-ice-cream-photography-143023-1500.jpg deleted file mode 100644 index f082d64b1..000000000 Binary files a/dist/demo/photos/sweet-ice-cream-photography-143023-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/sweet-ice-cream-photography-143023-500.jpg b/dist/demo/photos/sweet-ice-cream-photography-143023-500.jpg deleted file mode 100644 index 550305657..000000000 Binary files a/dist/demo/photos/sweet-ice-cream-photography-143023-500.jpg and /dev/null differ diff --git a/dist/demo/photos/tatyana-dobreva-288463-1500.jpg b/dist/demo/photos/tatyana-dobreva-288463-1500.jpg deleted file mode 100644 index ce941f2f1..000000000 Binary files a/dist/demo/photos/tatyana-dobreva-288463-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/tatyana-dobreva-288463-500.jpg b/dist/demo/photos/tatyana-dobreva-288463-500.jpg deleted file mode 100644 index 2ff3ec970..000000000 Binary files a/dist/demo/photos/tatyana-dobreva-288463-500.jpg and /dev/null differ diff --git a/dist/demo/photos/teddy-kelley-109202-1500.jpg b/dist/demo/photos/teddy-kelley-109202-1500.jpg deleted file mode 100644 index d3ed45877..000000000 Binary files a/dist/demo/photos/teddy-kelley-109202-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/teddy-kelley-109202-500.jpg b/dist/demo/photos/teddy-kelley-109202-500.jpg deleted file mode 100644 index 7f0780d89..000000000 Binary files a/dist/demo/photos/teddy-kelley-109202-500.jpg and /dev/null differ diff --git a/dist/demo/photos/tim-bogdanov-97988-1500.jpg b/dist/demo/photos/tim-bogdanov-97988-1500.jpg deleted file mode 100644 index 054f63236..000000000 Binary files a/dist/demo/photos/tim-bogdanov-97988-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/tim-bogdanov-97988-500.jpg b/dist/demo/photos/tim-bogdanov-97988-500.jpg deleted file mode 100644 index 3badb6008..000000000 Binary files a/dist/demo/photos/tim-bogdanov-97988-500.jpg and /dev/null differ diff --git a/dist/demo/photos/tim-marshall-173957-1500.jpg b/dist/demo/photos/tim-marshall-173957-1500.jpg deleted file mode 100644 index fbb1a98c0..000000000 Binary files a/dist/demo/photos/tim-marshall-173957-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/tim-marshall-173957-500.jpg b/dist/demo/photos/tim-marshall-173957-500.jpg deleted file mode 100644 index fddc819b5..000000000 Binary files a/dist/demo/photos/tim-marshall-173957-500.jpg and /dev/null differ diff --git a/dist/demo/photos/tom-barrett-318952-1500.jpg b/dist/demo/photos/tom-barrett-318952-1500.jpg deleted file mode 100644 index 5ef9c009e..000000000 Binary files a/dist/demo/photos/tom-barrett-318952-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/tom-barrett-318952-500.jpg b/dist/demo/photos/tom-barrett-318952-500.jpg deleted file mode 100644 index 8bb691773..000000000 Binary files a/dist/demo/photos/tom-barrett-318952-500.jpg and /dev/null differ diff --git a/dist/demo/photos/vladimir-kudinov-12761-1500.jpg b/dist/demo/photos/vladimir-kudinov-12761-1500.jpg deleted file mode 100644 index bc2517fea..000000000 Binary files a/dist/demo/photos/vladimir-kudinov-12761-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/vladimir-kudinov-12761-500.jpg b/dist/demo/photos/vladimir-kudinov-12761-500.jpg deleted file mode 100644 index 41a1d16ad..000000000 Binary files a/dist/demo/photos/vladimir-kudinov-12761-500.jpg and /dev/null differ diff --git a/dist/demo/photos/web-agency-29200-1500.jpg b/dist/demo/photos/web-agency-29200-1500.jpg deleted file mode 100644 index ca8538771..000000000 Binary files a/dist/demo/photos/web-agency-29200-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/web-agency-29200-500.jpg b/dist/demo/photos/web-agency-29200-500.jpg deleted file mode 100644 index 0891898b7..000000000 Binary files a/dist/demo/photos/web-agency-29200-500.jpg and /dev/null differ diff --git a/dist/demo/photos/wil-stewart-18242-1500.jpg b/dist/demo/photos/wil-stewart-18242-1500.jpg deleted file mode 100644 index 9d05fcccc..000000000 Binary files a/dist/demo/photos/wil-stewart-18242-1500.jpg and /dev/null differ diff --git a/dist/demo/photos/wil-stewart-18242-500.jpg b/dist/demo/photos/wil-stewart-18242-500.jpg deleted file mode 100644 index a84b71da4..000000000 Binary files a/dist/demo/photos/wil-stewart-18242-500.jpg and /dev/null differ diff --git a/dist/demo/staticmap.png b/dist/demo/staticmap.png deleted file mode 100755 index 1ea5a38fb..000000000 Binary files a/dist/demo/staticmap.png and /dev/null differ diff --git a/dist/demo/teams/fc-barcelona.png b/dist/demo/teams/fc-barcelona.png deleted file mode 100644 index 7f6a237b7..000000000 Binary files a/dist/demo/teams/fc-barcelona.png and /dev/null differ diff --git a/dist/demo/teams/real-madrid.png b/dist/demo/teams/real-madrid.png deleted file mode 100644 index 61fdc3d93..000000000 Binary files a/dist/demo/teams/real-madrid.png and /dev/null differ diff --git a/dist/docs.html b/dist/docs.html deleted file mode 100644 index 67a64ded4..000000000 --- a/dist/docs.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - Redirecting… - - - - - - \ No newline at end of file diff --git a/dist/docs/alerts.html b/dist/docs/alerts.html deleted file mode 100644 index ae1bd5bb3..000000000 --- a/dist/docs/alerts.html +++ /dev/null @@ -1,427 +0,0 @@ - - - - - - - - - - - - - - - - - - Alerts - Documentation - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
- -
- -
-
-
-
-

Alerts

-

Provide contextual feedback messages for typical user actions with the handful of available and flexible alert messages.

-
-
Work in progress! More detailed documentation is coming soon.
-
-

Default alerts

-

Add color contextual class.

-
- - - - - - -
-
-
<div class="alert alert-primary" role="alert">
-  This is a primary alert—check it out!
-</div>
-<div class="alert alert-secondary" role="alert">
-  This is a secondary alert—check it out!
-</div>
-<div class="alert alert-success" role="alert">
-  This is a success alert—check it out!
-</div>
-<div class="alert alert-info" role="alert">
-  This is a info alert—check it out!
-</div>
-<div class="alert alert-warning" role="alert">
-  This is a warning alert—check it out!
-</div>
-<div class="alert alert-danger" role="alert">
-  This is a danger alert—check it out!
-</div>
-
-

Alert with icon

-

Add .alert-icon class.

-
- - - -
-
-
<div class="alert alert-icon alert-primary" role="alert">
-  <i class="fe fe-bell mr-2" aria-hidden="true"></i> You have done 5 actions. 
-</div>
-<div class="alert alert-icon alert-success" role="alert">
-  <i class="fe fe-check mr-2" aria-hidden="true"></i> The page has been added. 
-</div>
-<div class="alert alert-icon alert-danger" role="alert">
-  <i class="fe fe-alert-triangle mr-2" aria-hidden="true"></i> The daily report has failed. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit.
-</div>
-
-

Alert dismissible

-

Add a dismiss button and the .alert-dismissible class, which adds extra padding to the right of the alert and positions the .close button. On the dismiss button, add the data-dismiss="alert" attribute, which triggers the JavaScript functionality. Be sure to use the <button> element with it for proper behavior across all devices.

-
-
- - Lorem ipsum dolor sit amet, consectetur adipisicing elit. -
-
-
-
<div class="alert alert-warning alert-dismissible">
-  <button type="button" class="close" data-dismiss="alert"></button>
-  Lorem ipsum dolor sit amet, consectetur adipisicing elit.
-</div>
-
-

Alert with avatar

-
-
- - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit. -
-
- - Lorem ipsum dolor sit amet, consectetur adipisicing elit. -
-
-
-
<div class="alert alert-avatar alert-primary alert-dismissible">
-  <span class="avatar" style="background-image: url(./demo/faces/male/4.jpg)"></span>
-  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Lorem ipsum dolor sit amet, consectetur adipisicing elit.
-</div>
-<div class="alert alert-avatar alert-success alert-dismissible">
-  <span class="avatar" style="background-image: url(./demo/faces/male/35.jpg)"></span>
-  Lorem ipsum dolor sit amet, consectetur adipisicing elit.
-</div>
-
-

Alert with buttons

-
-
- -

Some Message

-

- Lorem ipsum Minim ad pariatur eiusmod ea ut nulla aliqua est quis id dolore minim - voluptate. -

-
- - -
-
-
-
-
<div class="alert alert-success alert-dismissible">
-  <button data-dismiss="alert" class="close"></button>
-  <h4>Some Message</h4>
-  <p>
-    Lorem ipsum Minim ad pariatur eiusmod ea ut nulla aliqua est quis id dolore minim
-    voluptate.
-  </p>
-  <div class="btn-list">
-    <button class="btn btn-success" type="button">Okay</button>
-    <button class="btn btn-secondary" type="button">No, thanks</button>
-  </div>
-</div>
-
-
-
-
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/docs/avatars.html b/dist/docs/avatars.html deleted file mode 100644 index 2edd84d64..000000000 --- a/dist/docs/avatars.html +++ /dev/null @@ -1,452 +0,0 @@ - - - - - - - - - - - - - - - - - - Avatars - Documentation - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
- -
- -
-
-
-
-

Avatars

-

Simple avatar

-
-
- - - - - -
-
-
-
<span class="avatar" style="background-image: url(./demo/faces/male/21.jpg)"></span>
-<span class="avatar" style="background-image: url(./demo/faces/male/25.jpg)"></span>
-<span class="avatar" style="background-image: url(./demo/faces/female/5.jpg)"></span>
-<span class="avatar" style="background-image: url(./demo/faces/female/17.jpg)"></span>
-<span class="avatar" style="background-image: url(./demo/faces/male/40.jpg)"></span>
-
-

Avatar size

-
-
- - - - - - -
-
-
-
<span class="avatar avatar-sm" style="background-image: url(./demo/faces/male/9.jpg)"></span>
-<span class="avatar" style="background-image: url(./demo/faces/female/8.jpg)"></span>
-<span class="avatar avatar-md" style="background-image: url(./demo/faces/male/4.jpg)"></span>
-<span class="avatar avatar-lg" style="background-image: url(./demo/faces/male/35.jpg)"></span>
-<span class="avatar avatar-xl" style="background-image: url(./demo/faces/female/29.jpg)"></span>
-<span class="avatar avatar-xxl" style="background-image: url(./demo/faces/male/2.jpg)"></span>
-
-

Avatar status

-
-
- - - - - - - - - - - - - -
-
-
-
<span class="avatar" style="background-image: url(./demo/faces/male/2.jpg)"></span>
-<span class="avatar" style="background-image: url(./demo/faces/female/25.jpg)">
-  <span class="avatar-status"></span>
-</span>
-<span class="avatar" style="background-image: url(./demo/faces/male/9.jpg)">
-  <span class="avatar-status bg-red"></span>
-</span>
-<span class="avatar" style="background-image: url(./demo/faces/female/25.jpg)">
-  <span class="avatar-status bg-green"></span>
-</span>
-<span class="avatar" style="background-image: url(./demo/faces/female/16.jpg)">
-  <span class="avatar-status bg-yellow"></span>
-</span>
-
-

Avatar placeholder

-
-
- RB - KH - BK - - -
-
-
-
<span class="avatar">RB</span>
-<span class="avatar">KH</span>
-<span class="avatar">BK</span>
-<span class="avatar avatar-placeholder"></span>
-<span class="avatar"><i class="fe fe-more-horizontal"></i></span>
-
-
-
- NG - AM - RB - PR - WH - MR - DB - PP - JR - RB - KH - BK - CA - CW -
-
-
-
<span class="avatar avatar-blue">NG</span>
-<span class="avatar avatar-azure">AM</span>
-<span class="avatar avatar-indigo">RB</span>
-<span class="avatar avatar-purple">PR</span>
-<span class="avatar avatar-pink">WH</span>
-<span class="avatar avatar-red">MR</span>
-<span class="avatar avatar-orange">DB</span>
-<span class="avatar avatar-yellow">PP</span>
-<span class="avatar avatar-lime">JR</span>
-<span class="avatar avatar-green">RB</span>
-<span class="avatar avatar-teal">KH</span>
-<span class="avatar avatar-cyan">BK</span>
-<span class="avatar avatar-gray">CA</span>
-<span class="avatar avatar-gray-dark">CW</span>
-
-

Avatars list

-
-
- - - - - -
-
-
-
<div class="avatar-list">
-  <span class="avatar" style="background-image: url(./demo/faces/male/21.jpg)"></span>
-  <span class="avatar" style="background-image: url(./demo/faces/male/25.jpg)"></span>
-  <span class="avatar" style="background-image: url(./demo/faces/female/5.jpg)"></span>
-  <span class="avatar" style="background-image: url(./demo/faces/female/17.jpg)"></span>
-  <span class="avatar" style="background-image: url(./demo/faces/male/40.jpg)"></span>
-</div>
-
-
-
- - - - - - +8 -
-
-
-
<div class="avatar-list avatar-list-stacked">
-  <span class="avatar" style="background-image: url(./demo/faces/female/12.jpg)"></span>
-  <span class="avatar" style="background-image: url(./demo/faces/female/21.jpg)"></span>
-  <span class="avatar" style="background-image: url(./demo/faces/female/29.jpg)"></span>
-  <span class="avatar" style="background-image: url(./demo/faces/female/2.jpg)"></span>
-  <span class="avatar" style="background-image: url(./demo/faces/male/34.jpg)"></span>
-  <span class="avatar">+8</span>
-</div>
-
-
-
-
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/docs/buttons.html b/dist/docs/buttons.html deleted file mode 100644 index 0962f4763..000000000 --- a/dist/docs/buttons.html +++ /dev/null @@ -1,758 +0,0 @@ - - - - - - - - - - - - - - - - - - Buttons - Documentation - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
- -
- -
-
-
-
-

Buttons

-

Use Bootstrap’s custom button styles for actions in forms, dialogs, and more. Includes support for a handful of contextual variations, sizes, states, and more.

-

Button tag

-

The .btn classes are designed to be used with the <button> element. However, you can also use these classes on <a> or <input> elements (though some browsers may apply a slightly different rendering).

-
-
- Link - - - - -
-
-
-
<a href="#" class="btn btn-primary" role="button">Link</a>
-<button class="btn btn-primary">Button</button>
-<input type="button" class="btn btn-primary" value="Input" />
-<input type="submit" class="btn btn-primary" value="Submit" />
-<input type="reset" class="btn btn-primary" value="Reset" />
-
-

Button variations

-

Use any of the available button classes to quickly create a styled button . We provide a variety of colors for you to express different emotions.

- -
-
<a href="#" class="btn btn-primary">Primary</a>
-<a href="#" class="btn btn-secondary">Secondary</a>
-<a href="#" class="btn btn-success">Success</a>
-<a href="#" class="btn btn-info">Info</a>
-<a href="#" class="btn btn-warning">Warning</a>
-<a href="#" class="btn btn-danger">Danger</a>
-<a href="#" class="btn btn-link">Link</a>
-
-

Disabled buttons

-

Make buttons look inactive by adding the disabled boolean attribute to any .btn element. <a>s don’t support the disabled attribute, so you must add the .disabled class to make it visually appear disabled.

- -
-
<a href="#" class="btn btn-primary disabled">Primary</a>
-<a href="#" class="btn btn-secondary disabled">Secondary</a>
-<a href="#" class="btn btn-success disabled">Success</a>
-<a href="#" class="btn btn-info disabled">Info</a>
-<a href="#" class="btn btn-warning disabled">Warning</a>
-<a href="#" class="btn btn-danger disabled">Danger</a>
-
-

Color variations

-

The classic button, in different colors.

-
- -
-
-
<a href="#" class="btn btn-blue">Blue</a>
-<a href="#" class="btn btn-azure">Azure</a>
-<a href="#" class="btn btn-indigo">Indigo</a>
-<a href="#" class="btn btn-purple">Purple</a>
-<a href="#" class="btn btn-pink">Pink</a>
-<a href="#" class="btn btn-red">Red</a>
-<a href="#" class="btn btn-orange">Orange</a>
-<a href="#" class="btn btn-yellow">Yellow</a>
-<a href="#" class="btn btn-lime">Lime</a>
-<a href="#" class="btn btn-green">Green</a>
-<a href="#" class="btn btn-teal">Teal</a>
-<a href="#" class="btn btn-cyan">Cyan</a>
-<a href="#" class="btn btn-gray">Gray</a>
-<a href="#" class="btn btn-gray-dark">Dark gray</a>
-
-

Square buttons

-

Add .btn-square to button to remove border-radius.

- -
-
<a href="#" class="btn btn-square btn-primary">Primary</a>
-<a href="#" class="btn btn-square btn-secondary">Secondary</a>
-<a href="#" class="btn btn-square btn-success">Success</a>
-<a href="#" class="btn btn-square btn-info">Info</a>
-<a href="#" class="btn btn-square btn-warning">Warning</a>
-<a href="#" class="btn btn-square btn-danger">Danger</a>
-
-

Pill buttons

-

Add .btn-pill class to any button to make them more rounded.

- -
-
<a href="#" class="btn btn-pill btn-primary">Primary</a>
-<a href="#" class="btn btn-pill btn-secondary">Secondary</a>
-<a href="#" class="btn btn-pill btn-success">Success</a>
-<a href="#" class="btn btn-pill btn-info">Info</a>
-<a href="#" class="btn btn-pill btn-warning">Warning</a>
-<a href="#" class="btn btn-pill btn-danger">Danger</a>
-
-

Outline buttons

-

In need of a button, but not the hefty background colors they bring? Replace the default modifier classes with the .btn-outline-* ones to remove all background images and colors on any button.

- -
-
<a href="#" class="btn btn-outline-primary">Primary</a>
-<a href="#" class="btn btn-outline-secondary">Secondary</a>
-<a href="#" class="btn btn-outline-success">Success</a>
-<a href="#" class="btn btn-outline-info">Info</a>
-<a href="#" class="btn btn-outline-warning">Warning</a>
-<a href="#" class="btn btn-outline-danger">Danger</a>
-
-

Button size

-

Add .btn-lg or .btn-sm for additional sizes.

-
-
- - -
-
-
-
<button type="button" class="btn btn-primary btn-lg">Large button</button>
-<button type="button" class="btn btn-secondary btn-lg">Large button</button>
-
-
-
- - -
-
-
-
<button type="button" class="btn btn-primary btn-sm">Small button</button>
-<button type="button" class="btn btn-secondary btn-sm">Small button</button>
-
-

Create block level buttons—those that span the full width of a parent—by adding .btn-block.

-
- - -
-
-
<button type="button" class="btn btn-primary btn-block">Block level button</button>
-<button type="button" class="btn btn-secondary btn-block">Block level button</button>
-
-

Button with icon

-

Basic buttons are traditional buttons with borders and background with an extra commponent like an icon. You can place it either on the left or the right which ever you want with different color opitons.

-
-
- - - - - - -
-
-
-
<button type="button" class="btn btn-dark"><i class="fe fe-upload mr-2"></i>Upload</button>
-<button type="button" class="btn btn-warning"><i class="fe fe-heart mr-2"></i>I like</button>
-<button type="button" class="btn btn-success"><i class="fe fe-check mr-2"></i>I agree</button>
-<button type="button" class="btn btn-outline-primary"><i class="fe fe-plus mr-2"></i>More</button>
-<button type="button" class="btn btn-danger"><i class="fe fe-link mr-2"></i>Link</button>
-<button type="button" class="btn btn-info"><i class="fe fe-message-circle mr-2"></i>Comment</button>
-
-

Social buttons

-
-
- - - - - - - - - - - - - -
-
-
-
<button type="button" class="btn btn-facebook"><i class="fa fa-facebook mr-2"></i>Facebook</button>
-<button type="button" class="btn btn-twitter"><i class="fa fa-twitter mr-2"></i>Twitter</button>
-<button type="button" class="btn btn-google"><i class="fa fa-google mr-2"></i>Google</button>
-<button type="button" class="btn btn-youtube"><i class="fa fa-youtube mr-2"></i>Youtube</button>
-<button type="button" class="btn btn-vimeo"><i class="fa fa-vimeo mr-2"></i>Vimeo</button>
-<button type="button" class="btn btn-dribbble"><i class="fa fa-dribbble mr-2"></i>Dribble</button>
-<button type="button" class="btn btn-github"><i class="fa fa-github mr-2"></i>Github</button>
-<button type="button" class="btn btn-instagram"><i class="fa fa-instagram mr-2"></i>Instagram</button>
-<button type="button" class="btn btn-pinterest"><i class="fa fa-pinterest mr-2"></i>Pinterest</button>
-<button type="button" class="btn btn-vk"><i class="fa fa-vk mr-2"></i>VKontakte</button>
-<button type="button" class="btn btn-rss"><i class="fa fa-rss mr-2"></i>RSS</button>
-<button type="button" class="btn btn-flickr"><i class="fa fa-flickr mr-2"></i>Flickr</button>
-<button type="button" class="btn btn-bitbucket"><i class="fa fa-bitbucket mr-2"></i>Bitbucket</button>
-
-

You can use only icons.

-
-
- - - - - - - - - - - - - -
-
-
-
<button type="button" class="btn btn-icon btn-facebook"><i class="fa fa-facebook"></i></button>
-<button type="button" class="btn btn-icon btn-twitter"><i class="fa fa-twitter"></i></button>
-<button type="button" class="btn btn-icon btn-google"><i class="fa fa-google"></i></button>
-<button type="button" class="btn btn-icon btn-youtube"><i class="fa fa-youtube"></i></button>
-<button type="button" class="btn btn-icon btn-vimeo"><i class="fa fa-vimeo"></i></button>
-<button type="button" class="btn btn-icon btn-dribbble"><i class="fa fa-dribbble"></i></button>
-<button type="button" class="btn btn-icon btn-github"><i class="fa fa-github"></i></button>
-<button type="button" class="btn btn-icon btn-instagram"><i class="fa fa-instagram"></i></button>
-<button type="button" class="btn btn-icon btn-pinterest"><i class="fa fa-pinterest"></i></button>
-<button type="button" class="btn btn-icon btn-vk"><i class="fa fa-vk"></i></button>
-<button type="button" class="btn btn-icon btn-rss"><i class="fa fa-rss"></i></button>
-<button type="button" class="btn btn-icon btn-flickr"><i class="fa fa-flickr"></i></button>
-<button type="button" class="btn btn-icon btn-bitbucket"><i class="fa fa-bitbucket"></i></button>
-
-

Icon buttons

-

Icon only button. Add .btn-icon class to remove unnecessary padding from button.

-
-
- - - - - - - -
-
-
-
<button type="button" class="btn btn-icon btn-primary"><i class="fe fe-activity"></i></button>
-<button type="button" class="btn btn-icon btn-primary btn-github"><i class="fe fe-github"></i></button>
-<button type="button" class="btn btn-icon btn-primary btn-success"><i class="fe fe-bell"></i></button>
-<button type="button" class="btn btn-icon btn-primary btn-warning"><i class="fe fe-star"></i></button>
-<button type="button" class="btn btn-icon btn-primary btn-danger"><i class="fe fe-trash"></i></button>
-<button type="button" class="btn btn-icon btn-primary btn-purple"><i class="fe fe-bar-chart"></i></button>
-<button type="button" class="btn btn-icon btn-primary btn-secondary"><i class="fe fe-git-merge"></i></button>
-
-

Button dropdown

-

Wrap the dropdown’s toggle (your button or link) and the dropdown menu within .dropdown, or another element that declares position: relative;. Dropdowns can be triggered from <a> or <button> elements to better fit your potential needs.

-
-
- - - -
-
-
-
<div class="dropdown">
-  <button type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown">
-     <i class="fe fe-calendar"></i>
-  </button>
-  <div class="dropdown-menu">
-    <a class="dropdown-item" href="#">Dropdown link</a>
-    <a class="dropdown-item" href="#">Dropdown link</a>
-  </div>
-</div>
-<div class="dropdown">
-  <button type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown">
-     <i class="fe fe-calendar mr-2"></i>Show calendar
-  </button>
-  <div class="dropdown-menu">
-    <a class="dropdown-item" href="#">Dropdown link</a>
-    <a class="dropdown-item" href="#">Dropdown link</a>
-  </div>
-</div>
-<div class="dropdown">
-  <button type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown">
-     Show calendar
-  </button>
-  <div class="dropdown-menu">
-    <a class="dropdown-item" href="#">Dropdown link</a>
-    <a class="dropdown-item" href="#">Dropdown link</a>
-  </div>
-</div>
-
-

Loading button

-

Add .btn-loading to use a loading state on a button. The width of the button depends on the length of the text inside.

-

Since the loading spinner is implemented using the :after pseudo-element, it is not supported by the <input type="submit"> element.

-
-
- - - - - -
-
-
-
<button type="button" class="btn btn-primary btn-loading">Button text</button>
-<button type="button" class="btn btn-success btn-loading btn-icon"><i class="fe fe-check"></i></button>
-<button type="button" class="btn btn-warning btn-loading btn-sm">Button text</button>
-<button type="button" class="btn btn-danger btn-loading btn-lg">Button text</button>
-<button type="button" class="btn btn-secondary btn-loading btn-block">Button text</button>
-
-

List of buttons

-

You can now create a list of buttons with the .btn-list container.

- -
-
<div class="btn-list">
-  <a href="#" class="btn btn-success">Save changes</a>
-  <a href="#" class="btn btn-secondary">Save and continue</a>
-  <a href="#" class="btn btn-danger">Cancel</a>
-</div>
-
-

If the list is very long, it will automatically wrap on multiple lines, while keeping all buttons evenly spaced.

- -
-
<div class="btn-list">
-  <a href="#" class="btn btn-secondary">One</a>
-  <a href="#" class="btn btn-secondary">Two</a>
-  <a href="#" class="btn btn-secondary">Three</a>
-  <a href="#" class="btn btn-secondary">Four</a>
-  <a href="#" class="btn btn-secondary">Five</a>
-  <a href="#" class="btn btn-secondary">Six</a>
-  <a href="#" class="btn btn-secondary">Seven</a>
-  <a href="#" class="btn btn-secondary">Eight</a>
-  <a href="#" class="btn btn-secondary">Nine</a>
-  <a href="#" class="btn btn-secondary">Ten</a>
-  <a href="#" class="btn btn-secondary">Eleven</a>
-  <a href="#" class="btn btn-secondary">Twelve</a>
-  <a href="#" class="btn btn-secondary">Thirteen</a>
-  <a href="#" class="btn btn-secondary">Fourteen</a>
-  <a href="#" class="btn btn-secondary">Fifteen</a>
-  <a href="#" class="btn btn-secondary">Sixteen</a>
-  <a href="#" class="btn btn-secondary">Seventeen</a>
-  <a href="#" class="btn btn-secondary">Eighteen</a>
-  <a href="#" class="btn btn-secondary">Nineteen</a>
-</div>
-
-

Use the .text-center or the .text-right modifiers to alter the alignment.

- -
-
<div class="btn-list text-center">
-  <a href="#" class="btn btn-primary">Save changes</a>
-  <a href="#" class="btn btn-secondary">Save and continue</a>
-</div>
-
- -
-
<div class="btn-list text-right">
-  <a href="#" class="btn btn-primary">Save changes</a>
-  <a href="#" class="btn btn-secondary">Save and continue</a>
-</div>
-
-
-
-
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/docs/cards.html b/dist/docs/cards.html deleted file mode 100644 index efe25ee76..000000000 --- a/dist/docs/cards.html +++ /dev/null @@ -1,604 +0,0 @@ - - - - - - - - - - - - - - - - - - Cards - Documentation - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
- -
- -
-
-
-
-

Cards

-

A card is a flexible and extensible content container. It includes options for headers and footers, a wide variety of content, contextual background colors, and powerful display options.

-

The .card element is simply a container with a shadow, a border, a radius, and some padding. Built with flexbox, they offer easy alignment and mix well with other Bootstrap components.

-

Default card

-
-
-
-
-

Card title

-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus! -
-
-
-
-
-
<div class="card">
-  <div class="card-header">
-    <h3 class="card-title">Card title</h3>
-  </div>
-  <div class="card-body">
-    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus!
-  </div>
-</div>
-
-

Advanced card

-
-
-
-
-

Card title

- -
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus! -
- -
-
-
-
-
<div class="card">
-  <div class="card-header">
-    <h3 class="card-title">Card title</h3>
-    <div class="card-options">
-        <a href="#" class="btn btn-primary btn-sm">Action 1</a>
-        <a href="#" class="btn btn-secondary btn-sm ml-2">Action 2</a>
-    </div>
-  </div>
-  <div class="card-body">
-    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus!
-  </div>
-  <div class="card-footer">
-    This is standard card footer
-  </div>
-</div>
-
-

Blog post card

-

The best way to make your post eye-catching is adding an image to it. To do so, just add the image with the .card-img-top class. We’ve added the .d-flex .flex-column classes to the .card-body to have the author details be on the bottom of the card.

-
-
-
- And this isn't my nose. This is a false one. -
-

And this isn't my nose. This is a false one.

-
Look, my liege! The Knights Who Say Ni demand a sacrifice! …Are you suggesting that coconuts migr...
-
-
-
- Rose Bradley - 3 days ago -
-
- -
-
-
-
-
-
-
-
<div class="card">
-  <a href="#"><img class="card-img-top" src="./demo/photos/david-klaasen-54203-500.jpg" alt="And this isn&#39;t my nose. This is a false one."></a>
-  <div class="card-body d-flex flex-column">
-    <h4><a href="#">And this isn't my nose. This is a false one.</a></h4>
-    <div class="text-muted">Look, my liege! The Knights Who Say Ni demand a sacrifice! …Are you suggesting that coconuts migr...</div>
-    <div class="d-flex align-items-center pt-5 mt-auto">
-      <div class="avatar avatar-md mr-3" style="background-image: url(./demo/faces/female/18.jpg)"></div>
-      <div>
-        <a href="./profile.html" class="text-default">Rose Bradley</a>
-        <small class="d-block text-muted">3 days ago</small>
-      </div>
-      <div class="ml-auto text-muted">
-        <a href="#" class="icon d-none d-md-inline-block ml-3"><i class="fe fe-heart mr-1"></i></a>
-      </div>
-    </div>
-  </div>
-</div>
-
-

Row deck

-

If you want to create a couple of posts next to each other, add the .row-deck class to .row—then they will all have the same height.

-
-
-
-
-
-
Short content
-
-
-
-
-
Extra long content of card. Lorem ipsum dolor sit amet, consetetur sadipscing elitr
-
-
-
-
-
Short content
-
-
-
-
-
-
-
<div class="row row-cards row-deck">
-    <div class="col-md-4">
-        <div class="card">
-            <div class="card-body">Short content</div>
-        </div>
-    </div>
-    <div class="col-md-4">
-        <div class="card">
-            <div class="card-body">Extra long content of card. Lorem ipsum dolor sit amet, consetetur sadipscing elitr</div>
-        </div>
-    </div>
-    <div class="col-md-4">
-        <div class="card">
-            <div class="card-body">Short content</div>
-        </div>
-    </div>
-</div>
-
-

Post card with aside image

-

You can also add the image on the left side of the card. All you need do to is: add the .card-aside class to the element with the .card class. Then add the image in the .card-aside-column element. No worries, tabler will automatically center it and scale to right size:

-
-
-
- -
-

And this isn't my nose. This is a false one.

-
Look, my liege! The Knights Who Say Ni demand a sacrifice! …Are you suggesting that coconuts migr...
-
-
-
- Rose Bradley - 3 days ago -
-
- -
-
-
-
-
-
-
-
<div class="card card-aside">
-  <a href="#" class="card-aside-column" style="background-image: url(./demo/photos/david-klaasen-54203-500.jpg)"></a>
-  <div class="card-body d-flex flex-column">
-    <h4><a href="#">And this isn't my nose. This is a false one.</a></h4>
-    <div class="text-muted">Look, my liege! The Knights Who Say Ni demand a sacrifice! …Are you suggesting that coconuts migr...</div>
-    <div class="d-flex align-items-center pt-5 mt-auto">
-      <div class="avatar avatar-md mr-3" style="background-image: url(./demo/faces/female/18.jpg)"></div>
-      <div>
-        <a href="./profile.html" class="text-default">Rose Bradley</a>
-        <small class="d-block text-muted">3 days ago</small>
-      </div>
-      <div class="ml-auto text-red">
-        <a href="#" class="icon d-none d-md-inline-block ml-3"><i class="fe fe-heart mr-1"></i></a>
-      </div>
-    </div>
-  </div>
-</div>
-
-

Color variations

-
-
-
-
-
-
-
-

Card status

-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus! -
-
-
-
-
-
-
-

Card status on left side

-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus! -
-
-
-
-
-
-
-
<div class="row row-cards row-deck">
-    <div class="col-md-6">
-        <div class="card">
-  <div class="card-status bg-purple"></div>
-  <div class="card-header">
-    <h3 class="card-title">Card status</h3>
-  </div>
-  <div class="card-body">
-    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus!
-  </div>
-</div>
-    </div>
-    <div class="col-md-6">
-        <div class="card">
-  <div class="card-status card-status-left bg-blue"></div>
-  <div class="card-header">
-    <h3 class="card-title">Card status on left side</h3>
-  </div>
-  <div class="card-body">
-    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus!
-  </div>
-</div>
-    </div>
-</div>
-
-

Card with switch

-
-
-
-
-

Card with switch

-
- -
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus! -
-
-
-
-
-
<div class="card">
-  <div class="card-header">
-    <h3 class="card-title">Card with switch</h3>
-    <div class="card-options">
-      <label class="custom-switch m-0">
-        <input type="checkbox" value="1" class="custom-switch-input" checked>
-        <span class="custom-switch-indicator"></span>
-      </label>
-    </div>
-  </div>
-  <div class="card-body">
-    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus!
-  </div>
-</div>
-
-

Card with loader

-
-
-
-
-

Card with loader

-
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus! -
-
-
-
-
-
-
-
<div class="card">
-  <div class="card-header">
-    <h3 class="card-title">Card with loader</h3>
-  </div>
-  <div class="card-body">
-    <div class="dimmer active">
-      <div class="loader"></div>
-      <div class="dimmer-content">
-        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aperiam deleniti fugit incidunt, iste, itaque minima neque pariatur perferendis sed suscipit velit vitae voluptatem. A consequuntur, deserunt eaque error nulla temporibus!
-      </div>
-    </div>
-  </div>
-</div>
-
-
-
-
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/docs/charts.html b/dist/docs/charts.html deleted file mode 100644 index 6b8575cda..000000000 --- a/dist/docs/charts.html +++ /dev/null @@ -1,398 +0,0 @@ - - - - - - - - - - - - - - - - - - Charts - Documentation - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
- -
- -
-
-
-
-

Charts

-

c3.js charts

-
-
-
-
-

Chart name

-
-
-
-
-
- -
-
-
-
<div class="card">
-  <div class="card-header">
-    <h3 class="card-title">Chart name</h3>
-  </div>
-  <div class="card-body">
-    <div id="chart-wrapper" style="height: 16rem"></div>
-  </div>
-</div>
-<script>
-require(['c3', 'jquery'], function(c3, $) {
-  $(document).ready(function(){
-    var chart = c3.generate({
-      bindto: '#chart-wrapper', // id of chart wrapper
-      data: {
-        columns: [
-            // each columns data
-          ['data1', 7.0, 6.9, 9.5, 14.5, 18.4, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6],
-          ['data2', 3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8]
-        ],
-        labels: true,
-        type: 'line', // default type of chart
-        colors: { 
-          'data1': tabler.colors["blue"],
-          'data2': tabler.colors["green"]
-        },
-        names: {
-            // name of each serie
-          'data1': 'Tokyo',
-          'data2': 'London'
-        }
-      },
-      axis: {
-        x: {
-          type: 'category',
-          // name of each category
-          categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun']
-        },
-      },
-      legend: {
-                show: false, //hide legend
-      },
-      padding: {
-        bottom: 0,
-        top: 0
-      },
-    });
-  });
-});
-</script>
-
-
-
-
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/docs/colors.html b/dist/docs/colors.html deleted file mode 100644 index b8e7ca436..000000000 --- a/dist/docs/colors.html +++ /dev/null @@ -1,707 +0,0 @@ - - - - - - - - - - - - - - - - - - Colors - Documentation - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
- -
- -
-
-
-
-

Colors

-

Convey meaning through color with a handful of color utility classes.

-

Contextual colors

-

A background fill can be applied to a container using one of the .bg-[color] classes.

-
-
-
-
- Primary
- .bg-primary -
-
-
-
-
- Secondary
- .bg-secondary -
-
-
-
-
- Success
- .bg-success -
-
-
-
-
- Info
- .bg-info -
-
-
-
-
- Warning
- .bg-warning -
-
-
-
-
- Danger
- .bg-danger -
-
-
-
-
<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-primary rounded mr-4"></div>
-  <div>
-    <strong>Primary</strong><br />
-    <code>.bg-primary</code>
-  </div>
-</div>
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-secondary rounded mr-4"></div>
-  <div>
-    <strong>Secondary</strong><br />
-    <code>.bg-secondary</code>
-  </div>
-</div>
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-success rounded mr-4"></div>
-  <div>
-    <strong>Success</strong><br />
-    <code>.bg-success</code>
-  </div>
-</div>
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-info rounded mr-4"></div>
-  <div>
-    <strong>Info</strong><br />
-    <code>.bg-info</code>
-  </div>
-</div>
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-warning rounded mr-4"></div>
-  <div>
-    <strong>Warning</strong><br />
-    <code>.bg-warning</code>
-  </div>
-</div>
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-danger rounded mr-4"></div>
-  <div>
-    <strong>Danger</strong><br />
-    <code>.bg-danger</code>
-  </div>
-</div>
-
-

Other colors

-

Instead of using contextual classes you can use ordinary color names.

-
-
-
-
-
-
- Blue
- .bg-blue -
-
-
-
-
- Azure
- .bg-azure -
-
-
-
-
- Indigo
- .bg-indigo -
-
-
-
-
- Purple
- .bg-purple -
-
-
-
-
- Pink
- .bg-pink -
-
-
-
-
-
-
- Red
- .bg-red -
-
-
-
-
- Orange
- .bg-orange -
-
-
-
-
- Yellow
- .bg-yellow -
-
-
-
-
- Lime
- .bg-lime -
-
-
-
-
- Green
- .bg-green -
-
-
-
-
-
-
- Teal
- .bg-teal -
-
-
-
-
- Cyan
- .bg-cyan -
-
-
-
-
- Gray
- .bg-gray -
-
-
-
-
- Dark gray
- .bg-gray-dark -
-
-
-
-
-
-
<div class="row">
-<div class="col-4">
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-blue rounded mr-4"></div>
-  <div>
-    <strong>Blue</strong><br />
-    <code>.bg-blue</code>
-  </div>
-</div>
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-azure rounded mr-4"></div>
-  <div>
-    <strong>Azure</strong><br />
-    <code>.bg-azure</code>
-  </div>
-</div>
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-indigo rounded mr-4"></div>
-  <div>
-    <strong>Indigo</strong><br />
-    <code>.bg-indigo</code>
-  </div>
-</div>
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-purple rounded mr-4"></div>
-  <div>
-    <strong>Purple</strong><br />
-    <code>.bg-purple</code>
-  </div>
-</div>
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-pink rounded mr-4"></div>
-  <div>
-    <strong>Pink</strong><br />
-    <code>.bg-pink</code>
-  </div>
-</div>
-</div>
-<div class="col-4">
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-red rounded mr-4"></div>
-  <div>
-    <strong>Red</strong><br />
-    <code>.bg-red</code>
-  </div>
-</div>
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-orange rounded mr-4"></div>
-  <div>
-    <strong>Orange</strong><br />
-    <code>.bg-orange</code>
-  </div>
-</div>
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-yellow rounded mr-4"></div>
-  <div>
-    <strong>Yellow</strong><br />
-    <code>.bg-yellow</code>
-  </div>
-</div>
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-lime rounded mr-4"></div>
-  <div>
-    <strong>Lime</strong><br />
-    <code>.bg-lime</code>
-  </div>
-</div>
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-green rounded mr-4"></div>
-  <div>
-    <strong>Green</strong><br />
-    <code>.bg-green</code>
-  </div>
-</div>
-</div>
-<div class="col-4">
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-teal rounded mr-4"></div>
-  <div>
-    <strong>Teal</strong><br />
-    <code>.bg-teal</code>
-  </div>
-</div>
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-cyan rounded mr-4"></div>
-  <div>
-    <strong>Cyan</strong><br />
-    <code>.bg-cyan</code>
-  </div>
-</div>
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-gray rounded mr-4"></div>
-  <div>
-    <strong>Gray</strong><br />
-    <code>.bg-gray</code>
-  </div>
-</div>
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-gray-dark rounded mr-4"></div>
-  <div>
-    <strong>Dark gray</strong><br />
-    <code>.bg-gray-dark</code>
-  </div>
-</div>
-</div>
-</div>
-
-

Tinting backgrounds

-

Translucent background fills to shade an element against a background. You can use one of few suffixes:
- -darkest, -darker, -dark, -lightest, -lighter or -light.

-
-
-
-
- Darkest blue
- .bg-blue-darkest -
-
-
-
-
- Darker blue
- .bg-blue-darker -
-
-
-
-
- Dark blue
- .bg-blue-dark -
-
-
-
-
- Default blue
- .bg-blue -
-
-
-
-
- Light blue
- .bg-blue-light -
-
-
-
-
- Lighter blue
- .bg-blue-lighter -
-
-
-
-
- Lightest blue
- .bg-blue-lightest -
-
-
-
-
<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-blue-darkest rounded mr-4"></div>
-  <div>
-    <strong>Darkest blue</strong><br />
-    <code>.bg-blue-darkest</code>
-  </div>
-</div>
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-blue-darker rounded mr-4"></div>
-  <div>
-    <strong>Darker blue</strong><br />
-    <code>.bg-blue-darker</code>
-  </div>
-</div>
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-blue-dark rounded mr-4"></div>
-  <div>
-    <strong>Dark blue</strong><br />
-    <code>.bg-blue-dark</code>
-  </div>
-</div>
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-blue rounded mr-4"></div>
-  <div>
-    <strong>Default blue</strong><br />
-    <code>.bg-blue</code>
-  </div>
-</div>
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-blue-light rounded mr-4"></div>
-  <div>
-    <strong>Light blue</strong><br />
-    <code>.bg-blue-light</code>
-  </div>
-</div>
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-blue-lighter rounded mr-4"></div>
-  <div>
-    <strong>Lighter blue</strong><br />
-    <code>.bg-blue-lighter</code>
-  </div>
-</div>
-<div class="d-flex align-items-center mb-4">
-  <div class="w-7 h-7 bg-blue-lightest rounded mr-4"></div>
-  <div>
-    <strong>Lightest blue</strong><br />
-    <code>.bg-blue-lightest</code>
-  </div>
-</div>
-
-
-
-
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/docs/form-components.html b/dist/docs/form-components.html deleted file mode 100644 index 5dd9f84c6..000000000 --- a/dist/docs/form-components.html +++ /dev/null @@ -1,660 +0,0 @@ - - - - - - - - - - - - - - - - - - Form components - Documentation - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
- -
- -
-
-
-
-

Form components

-

Color input

-
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
-
-
-
-
<div class="form-group">
-  <label class="form-label">Color Input</label>
-  <div class="row gutters-xs">
-    <div class="col-auto">
-      <label class="colorinput">
-        <input name="color" type="checkbox" value="azure" class="colorinput-input" />
-        <span class="colorinput-color bg-azure"></span>
-      </label>
-    </div>
-    <div class="col-auto">
-      <label class="colorinput">
-        <input name="color" type="checkbox" value="indigo" class="colorinput-input"  checked/>
-        <span class="colorinput-color bg-indigo"></span>
-      </label>
-    </div>
-    <div class="col-auto">
-      <label class="colorinput">
-        <input name="color" type="checkbox" value="purple" class="colorinput-input" />
-        <span class="colorinput-color bg-purple"></span>
-      </label>
-    </div>
-    <div class="col-auto">
-      <label class="colorinput">
-        <input name="color" type="checkbox" value="pink" class="colorinput-input" />
-        <span class="colorinput-color bg-pink"></span>
-      </label>
-    </div>
-    <div class="col-auto">
-      <label class="colorinput">
-        <input name="color" type="checkbox" value="red" class="colorinput-input" />
-        <span class="colorinput-color bg-red"></span>
-      </label>
-    </div>
-    <div class="col-auto">
-      <label class="colorinput">
-        <input name="color" type="checkbox" value="orange" class="colorinput-input" />
-        <span class="colorinput-color bg-orange"></span>
-      </label>
-    </div>
-    <div class="col-auto">
-      <label class="colorinput">
-        <input name="color" type="checkbox" value="yellow" class="colorinput-input" />
-        <span class="colorinput-color bg-yellow"></span>
-      </label>
-    </div>
-    <div class="col-auto">
-      <label class="colorinput">
-        <input name="color" type="checkbox" value="lime" class="colorinput-input" />
-        <span class="colorinput-color bg-lime"></span>
-      </label>
-    </div>
-    <div class="col-auto">
-      <label class="colorinput">
-        <input name="color" type="checkbox" value="green" class="colorinput-input" />
-        <span class="colorinput-color bg-green"></span>
-      </label>
-    </div>
-    <div class="col-auto">
-      <label class="colorinput">
-        <input name="color" type="checkbox" value="teal" class="colorinput-input" />
-        <span class="colorinput-color bg-teal"></span>
-      </label>
-    </div>
-  </div>
-</div>
-
-

Image input

-
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
-
-
-
-
<div class="form-group">
-  <label class="form-label">Image Check</label>
-  <div class="row gutters-sm">
-    <div class="col-sm-2">
-      <label class="imagecheck mb-4">
-        <input name="imagecheck" type="checkbox" value="1" class="imagecheck-input"  />
-        <figure class="imagecheck-figure">
-          <img src="./demo/photos/nathan-anderson-316188-500.jpg" alt="}" class="imagecheck-image">
-        </figure>
-      </label>
-    </div>
-    <div class="col-sm-2">
-      <label class="imagecheck mb-4">
-        <input name="imagecheck" type="checkbox" value="2" class="imagecheck-input"  checked />
-        <figure class="imagecheck-figure">
-          <img src="./demo/photos/nathan-dumlao-287713-500.jpg" alt="}" class="imagecheck-image">
-        </figure>
-      </label>
-    </div>
-    <div class="col-sm-2">
-      <label class="imagecheck mb-4">
-        <input name="imagecheck" type="checkbox" value="3" class="imagecheck-input"  />
-        <figure class="imagecheck-figure">
-          <img src="./demo/photos/nicolas-picard-208276-500.jpg" alt="}" class="imagecheck-image">
-        </figure>
-      </label>
-    </div>
-    <div class="col-sm-2">
-      <label class="imagecheck mb-4">
-        <input name="imagecheck" type="checkbox" value="4" class="imagecheck-input"  checked />
-        <figure class="imagecheck-figure">
-          <img src="./demo/photos/oskar-vertetics-53043-500.jpg" alt="}" class="imagecheck-image">
-        </figure>
-      </label>
-    </div>
-    <div class="col-sm-2">
-      <label class="imagecheck mb-4">
-        <input name="imagecheck" type="checkbox" value="5" class="imagecheck-input"  />
-        <figure class="imagecheck-figure">
-          <img src="./demo/photos/priscilla-du-preez-181896-500.jpg" alt="}" class="imagecheck-image">
-        </figure>
-      </label>
-    </div>
-    <div class="col-sm-2">
-      <label class="imagecheck mb-4">
-        <input name="imagecheck" type="checkbox" value="6" class="imagecheck-input"  />
-        <figure class="imagecheck-figure">
-          <img src="./demo/photos/ricardo-gomez-angel-262359-500.jpg" alt="}" class="imagecheck-image">
-        </figure>
-      </label>
-    </div>
-  </div>
-</div>
-
-

Icon input

-
-
- -
- - - - -
-
- - - - -
-
-
-
-
<div class="form-group">
-  <label class="form-label">Icon input</label>
-  <div class="input-icon mb-3">
-    <input type="text" class="form-control" placeholder="Search for...">
-    <span class="input-icon-addon">
-      <i class="fe fe-search"></i>
-    </span>
-  </div>
-  <div class="input-icon">
-    <span class="input-icon-addon">
-      <i class="fe fe-user"></i>
-    </span>
-    <input type="text" class="form-control" placeholder="Username">
-  </div>
-</div>
-
-

Toggle switches

-
-
-
Toggle switches
-
- - - -
-
-
-
-
<div class="form-group">
-  <div class="form-label">Toggle switches</div>
-  <div class="custom-switches-stacked">
-    <label class="custom-switch">
-      <input type="radio" name="option" value="1" class="custom-switch-input" checked>
-      <span class="custom-switch-indicator"></span>
-      <span class="custom-switch-description">Option 1</span>
-    </label>
-    <label class="custom-switch">
-      <input type="radio" name="option" value="2" class="custom-switch-input">
-      <span class="custom-switch-indicator"></span>
-      <span class="custom-switch-description">Option 2</span>
-    </label>
-    <label class="custom-switch">
-      <input type="radio" name="option" value="3" class="custom-switch-input">
-      <span class="custom-switch-indicator"></span>
-      <span class="custom-switch-description">Option 3</span>
-    </label>
-  </div>
-</div>
-
-

Form fieldset

-
-
-
- - -
-
- - -
-
- - -
-
- - -
-
-
-
-
<fieldset class="form-fieldset">
-  <div class="form-group">
-    <label class="form-label">Full name<span class="form-required">*</span></label>
-    <input type="text" class="form-control" />
-  </div>
-  <div class="form-group">
-    <label class="form-label">Company<span class="form-required">*</span></label>
-    <input type="text" class="form-control" />
-  </div>
-  <div class="form-group">
-    <label class="form-label">Email<span class="form-required">*</span></label>
-    <input type="email" class="form-control" />
-  </div>
-  <div class="form-group mb-0">
-    <label class="form-label">Phone number</label>
-    <input type="tel" class="form-control" />
-  </div>
-</fieldset>
-
-
-
-
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/docs/grid.html b/dist/docs/grid.html deleted file mode 100644 index 5fef32852..000000000 --- a/dist/docs/grid.html +++ /dev/null @@ -1,493 +0,0 @@ - - - - - - - - - - - - - - - - - - Grid utilities - Documentation - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
- -
- -
-
-
-
-

Grid utilities

-

Quickly and easily create layouts with the basic 12-column.

-
-
Work in progress! More detailed documentation is coming soon.
-
-

Basic layout

-

Create basic grid layout using columns. With .row and .col, we can easily manipulate the layout.

-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<div class="row mb-3">
-  <div class="col-12"><div class="h-5 bg-gray-lighter rounded"></div></div>
-</div>
-<div class="row mb-3">
-  <div class="col-6"><div class="h-5 bg-gray-lighter rounded"></div></div>
-  <div class="col-6"><div class="h-5 bg-gray-lightest rounded"></div></div>
-</div>
-<div class="row mb-3">
-  <div class="col-4"><div class="h-5 bg-gray-lighter rounded"></div></div>
-  <div class="col-4"><div class="h-5 bg-gray-lightest rounded"></div></div>
-  <div class="col-4"><div class="h-5 bg-gray-lighter rounded"></div></div>
-</div>
-<div class="row mb-3">
-  <div class="col-3"><div class="h-5 bg-gray-lighter rounded"></div></div>
-  <div class="col-3"><div class="h-5 bg-gray-lightest rounded"></div></div>
-  <div class="col-3"><div class="h-5 bg-gray-lighter rounded"></div></div>
-  <div class="col-3"><div class="h-5 bg-gray-lightest rounded"></div></div>
-</div>
-<div class="row mb-3">
-  <div class="col-2"><div class="h-5 bg-gray-lighter rounded"></div></div>
-  <div class="col-2"><div class="h-5 bg-gray-lightest rounded"></div></div>
-  <div class="col-2"><div class="h-5 bg-gray-lighter rounded"></div></div>
-  <div class="col-2"><div class="h-5 bg-gray-lightest rounded"></div></div>
-  <div class="col-2"><div class="h-5 bg-gray-lighter rounded"></div></div>
-  <div class="col-2"><div class="h-5 bg-gray-lightest rounded"></div></div>
-</div>
-
-

Column spacing

-

Row provides .gutters-[size] attribute to specify spacings between columns.

-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
<div class="row gutters-0 mb-3">
-  <div class="col-3"><div class="h-5 bg-gray-lighter rounded"></div></div>
-  <div class="col-3"><div class="h-5 bg-gray-lightest rounded"></div></div>
-  <div class="col-3"><div class="h-5 bg-gray-lighter rounded"></div></div>
-  <div class="col-3"><div class="h-5 bg-gray-lightest rounded"></div></div>
-</div>
-<div class="row gutters-xs mb-3">
-  <div class="col-3"><div class="h-5 bg-gray-lighter rounded"></div></div>
-  <div class="col-3"><div class="h-5 bg-gray-lightest rounded"></div></div>
-  <div class="col-3"><div class="h-5 bg-gray-lighter rounded"></div></div>
-  <div class="col-3"><div class="h-5 bg-gray-lightest rounded"></div></div>
-</div>
-<div class="row gutters-sm mb-3">
-  <div class="col-3"><div class="h-5 bg-gray-lighter rounded"></div></div>
-  <div class="col-3"><div class="h-5 bg-gray-lightest rounded"></div></div>
-  <div class="col-3"><div class="h-5 bg-gray-lighter rounded"></div></div>
-  <div class="col-3"><div class="h-5 bg-gray-lightest rounded"></div></div>
-</div>
-<div class="row gutters-md mb-3">
-  <div class="col-3"><div class="h-5 bg-gray-lighter rounded"></div></div>
-  <div class="col-3"><div class="h-5 bg-gray-lightest rounded"></div></div>
-  <div class="col-3"><div class="h-5 bg-gray-lighter rounded"></div></div>
-  <div class="col-3"><div class="h-5 bg-gray-lightest rounded"></div></div>
-</div>
-<div class="row gutters-lg mb-3">
-  <div class="col-3"><div class="h-5 bg-gray-lighter rounded"></div></div>
-  <div class="col-3"><div class="h-5 bg-gray-lightest rounded"></div></div>
-  <div class="col-3"><div class="h-5 bg-gray-lighter rounded"></div></div>
-  <div class="col-3"><div class="h-5 bg-gray-lightest rounded"></div></div>
-</div>
-
-
-
-
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/docs/index.html b/dist/docs/index.html deleted file mode 100644 index 8dee58832..000000000 --- a/dist/docs/index.html +++ /dev/null @@ -1,316 +0,0 @@ - - - - - - - - - - - - - - - - - - Introduction - Documentation - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
- -
- -
-
-
-
-

Introduction

-

We’ve created this admin panel for everyone who wants to create any templates based on our ready components. Our mission is to deliver a user-friendly, clear and easy administration panel, that can be used by both, simple websites and sophisticated systems. The only requirement is a basic HTML and CSS knowledge—as a reward, you’ll be able to manage and visualize different types of data in the easiest possible way!

-

Setup environment

-

To use our build system and run our documentation locally, you’ll need a copy of Tabler’s source files and Node. Follow these steps:

-
    -
  1. Download and install Node.js, which we use to manage our dependencies.
  2. -
  3. Navigate to the root /tabler directory and run npm install to install our local dependencies listed in package.json.
  4. -
  5. -

    Install Ruby, install Bundler with gem install bundler, and finally run bundle install. This will install all Ruby dependencies, such as Jekyll and plugins.

    -

    Windows users: Read this guide to get Jekyll up and running without problems.

    -
  6. -
-

When completed, you’ll be able to run the various commands provided from the command line.

-

Build Tabler locally

-
    -
  1. From the root /tabler directory, run npm run serve in the command line.
  2. -
  3. Open http://localhost:4000 in your browser, and voilà.
  4. -
  5. Any change in /src directory will build application and refresh the page.
  6. -
-
- Warning! all changes made in _site/ folder would be overwriten on application build. -
-

Bugs and feature requests

-

Have a bug or a feature request? Please open a new issue.

-
-
-
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/docs/tags.html b/dist/docs/tags.html deleted file mode 100644 index bd405d17e..000000000 --- a/dist/docs/tags.html +++ /dev/null @@ -1,584 +0,0 @@ - - - - - - - - - - - - - - - - - - Tags - Documentation - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
- -
- -
-
-
-
-

Tags

-

Small tag labels to insert anywhere

-

Default tag

-
-
- First tag - Second tag - Third tag -
-
-
-
<span class="tag">First tag</span>
-<span class="tag">Second tag</span>
-<span class="tag">Third tag</span>
-
- - -
-
<a href="#" class="tag">First tag</a>
-<a href="#" class="tag">Second tag</a>
-<a href="#" class="tag">Third tag</a>
-
-

Rounded tag

-
-
- First tag - Second tag - Third tag -
-
-
-
<span class="tag tag-rounded">First tag</span>
-<span class="tag tag-rounded">Second tag</span>
-<span class="tag tag-rounded">Third tag</span>
-
-

Color tag

-
-
- Blue tag - Azure tag - Indigo tag - Purple tag - Pink tag - Red tag - Orange tag - Yellow tag - Lime tag - Green tag - Teal tag - Cyan tag - Gray tag - Dark gray tag -
-
-
-
<span class="tag tag-blue">Blue tag</span>
-<span class="tag tag-azure">Azure tag</span>
-<span class="tag tag-indigo">Indigo tag</span>
-<span class="tag tag-purple">Purple tag</span>
-<span class="tag tag-pink">Pink tag</span>
-<span class="tag tag-red">Red tag</span>
-<span class="tag tag-orange">Orange tag</span>
-<span class="tag tag-yellow">Yellow tag</span>
-<span class="tag tag-lime">Lime tag</span>
-<span class="tag tag-green">Green tag</span>
-<span class="tag tag-teal">Teal tag</span>
-<span class="tag tag-cyan">Cyan tag</span>
-<span class="tag tag-gray">Gray tag</span>
-<span class="tag tag-gray-dark">Dark gray tag</span>
-
-

Avatar tag

-
-
- - - Victoria - - - - Nathan - - - - Alice - - - - Rose - - - - Peter - - - - Wayne - - - - Michelle - - - - Debra - -
-
-
-
<span class="tag">
-  <span class="tag-avatar avatar" style="background-image: url(./demo/faces/female/16.jpg)"></span>
-  Victoria
-</span>
-<span class="tag">
-  <span class="tag-avatar avatar" style="background-image: url(./demo/faces/male/41.jpg)"></span>
-  Nathan
-</span>
-<span class="tag">
-  <span class="tag-avatar avatar" style="background-image: url(./demo/faces/female/1.jpg)"></span>
-  Alice
-</span>
-<span class="tag">
-  <span class="tag-avatar avatar" style="background-image: url(./demo/faces/female/18.jpg)"></span>
-  Rose
-</span>
-<span class="tag">
-  <span class="tag-avatar avatar" style="background-image: url(./demo/faces/male/16.jpg)"></span>
-  Peter
-</span>
-<span class="tag">
-  <span class="tag-avatar avatar" style="background-image: url(./demo/faces/male/26.jpg)"></span>
-  Wayne
-</span>
-<span class="tag">
-  <span class="tag-avatar avatar" style="background-image: url(./demo/faces/female/7.jpg)"></span>
-  Michelle
-</span>
-<span class="tag">
-  <span class="tag-avatar avatar" style="background-image: url(./demo/faces/female/17.jpg)"></span>
-  Debra
-</span>
-
-

List of tags

-

You can create a list of tags with the .tags container.

-
-
- First tag - Second tag - Third tag -
-
-
-
<div class="tags">
-  <span class="tag">First tag</span>
-  <span class="tag">Second tag</span>
-  <span class="tag">Third tag</span>
-</div>
-
-

If the list is very long, it will automatically wrap on multiple lines, while keeping all tags evenly spaced.

-
-
- One - Two - Three - Four - Five - Six - Seven - Eight - Nine - Ten - Eleven - Twelve - Thirteen - Fourteen - Fifteen - Sixteen - Seventeen - Eighteen - Nineteen - Twenty -
-
-
-
<div class="tags">
-  <span class="tag">One</span>
-  <span class="tag">Two</span>
-  <span class="tag">Three</span>
-  <span class="tag">Four</span>
-  <span class="tag">Five</span>
-  <span class="tag">Six</span>
-  <span class="tag">Seven</span>
-  <span class="tag">Eight</span>
-  <span class="tag">Nine</span>
-  <span class="tag">Ten</span>
-  <span class="tag">Eleven</span>
-  <span class="tag">Twelve</span>
-  <span class="tag">Thirteen</span>
-  <span class="tag">Fourteen</span>
-  <span class="tag">Fifteen</span>
-  <span class="tag">Sixteen</span>
-  <span class="tag">Seventeen</span>
-  <span class="tag">Eighteen</span>
-  <span class="tag">Nineteen</span>
-  <span class="tag">Twenty</span>
-</div>
-
-

Tag remove

-
-
- - One - - - - Two - - - - Three - - - - Four - - -
-
-
-
<div class="tags">
-  <span class="tag">
-    One 
-    <a href="#" class="tag-addon"><i class="fe fe-x"></i></a>
-  </span>
-  <span class="tag">
-    Two 
-    <a href="#" class="tag-addon"><i class="fe fe-x"></i></a>
-  </span>
-  <span class="tag">
-    Three 
-    <a href="#" class="tag-addon"><i class="fe fe-x"></i></a>
-  </span>
-  <span class="tag">
-    Four 
-    <a href="#" class="tag-addon"><i class="fe fe-x"></i></a>
-  </span>
-</div>
-
-

Tag addons

-
-
-
- npm - -
-
- npm - -
-
- bundle - passing -
- - CSS gzip size - 20.9 kB - -
-
-
-
<div class="tag">
-  npm
-  <a href="#" class="tag-addon"><i class="fe fe-x"></i></a>
-</div>
-<div class="tag tag-danger">
-  npm
-  <span class="tag-addon"><i class="fe fe-activity"></i></span>
-</div>
-<div class="tag">
-  bundle
-  <span class="tag-addon tag-success">passing</span>
-</div>
-<span class="tag tag-dark">
-  CSS gzip size
-  <span class="tag-addon tag-warning">20.9 kB</span>
-</span>
-
-
-
-
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/docs/typography.html b/dist/docs/typography.html deleted file mode 100644 index b39a0ce7d..000000000 --- a/dist/docs/typography.html +++ /dev/null @@ -1,380 +0,0 @@ - - - - - - - - - - - - - - - - - - Typography - Documentation - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
- -
- -
-
-
-
-

Typography

-

Documentation and examples for common text utilities to control alignment, wrapping, weight, and more.

-

Text alignment

-

Easily realign text to components with text alignment classes.

-
-

Left aligned text on all viewport sizes.

-

Center aligned text on all viewport sizes.

-

Right aligned text on all viewport sizes.

-

Both aligned text on all viewport sizes. Ambitioni dedisse scripsisse iudicaretur. Cras mattis iudicium purus sit amet fermentum. Donec sed odio operae, eu vulputate felis rhoncus.

-
-
-
<p class="text-left">Left aligned text on all viewport sizes.</p>
-<p class="text-center">Center aligned text on all viewport sizes.</p>
-<p class="text-right">Right aligned text on all viewport sizes.</p>
-<p class="text-justify">Both aligned text on all viewport sizes. Ambitioni dedisse scripsisse iudicaretur. Cras mattis iudicium purus sit amet fermentum. Donec sed odio operae, eu vulputate felis rhoncus.</p>
-
-

Text transform

-

Transform text in components with text capitalization classes.

-
-

Lowercased text.

-

Uppercased text.

-

Capitalized text.

-
-
-
<p class="text-lowercase">Lowercased text.</p>
-<p class="text-uppercase">Uppercased text.</p>
-<p class="text-capitalize">Capitalized text.</p>
-
-

Letter spacing

-

Utilities for controlling the tracking (letter spacing) of an element.

-
-

Lorem ipsum dolor sit amet. Tight letter spacing.

-

Lorem ipsum dolor sit amet. Normal letter spacing.

-

Lorem ipsum dolor sit amet. Wide letter spacing.

-
-
-
<p class="tracking-tight">Lorem ipsum dolor sit amet. Tight letter spacing.</p>
-<p class="tracking-normal">Lorem ipsum dolor sit amet. Normal letter spacing.</p>
-<p class="tracking-wide">Lorem ipsum dolor sit amet. Wide letter spacing.</p>
-
-

Line Height

-

Utilities for controlling the leading (line height) of an element.

-
-

Lorem ipsum dolor sit amet.
- Dolor sit amet.

-

Lorem ipsum dolor sit amet.
- Dolor sit amet.

-

Lorem ipsum dolor sit amet.
- Dolor sit amet.

-

Lorem ipsum dolor sit amet.
- Dolor sit amet.

-
-
-
<p class="leading-none">Lorem ipsum dolor sit amet.<br>Dolor sit amet.</p>
-<p class="leading-tight">Lorem ipsum dolor sit amet.<br>Dolor sit amet.</p>
-<p class="leading-normal">Lorem ipsum dolor sit amet.<br>Dolor sit amet.</p>
-<p class="leading-loose">Lorem ipsum dolor sit amet.<br>Dolor sit amet.</p>
-
-

Basic elements

-

When you can’t use the CSS classes you want, or when you just want to directly use HTML tags, use .text-wrap as container. It can handle almost any HTML tag.

-
-
-

Hello World

-

Lorem ipsum[1] dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Subscript works as well!

-

Second level

-

Curabitur accumsan turpis pharetra augue tincidunt blandit. Quisque condimentum maximus mi, sit amet commodo arcu rutrum id. Proin pretium urna vel cursus venenatis. Suspendisse potenti. Etiam mattis sem rhoncus lacus dapibus facilisis. Donec at dignissim dui. Ut et neque nisl.

-
    -
  • In fermentum leo eu lectus mollis, quis dictum mi aliquet.
  • -
  • Morbi eu nulla lobortis, lobortis est in, fringilla felis.
  • -
  • Aliquam nec felis in sapien venenatis viverra fermentum nec lectus.
  • -
  • Ut non enim metus.
  • -
-
-
-
-
<div class="text-wrap">
-  <h1>Hello World</h1>
-  <p>Lorem ipsum<sup><a>[1]</a></sup> dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque. Sub<sub>script</sub> works as well!</p>
-  <h2>Second level</h2>
-  <p>Curabitur accumsan turpis pharetra <strong>augue tincidunt</strong> blandit. Quisque condimentum maximus mi, sit amet commodo arcu rutrum id. Proin pretium urna vel cursus venenatis. Suspendisse potenti. Etiam mattis sem rhoncus lacus dapibus facilisis. Donec at dignissim dui. Ut et neque nisl.</p>
-  <ul>
-    <li>In fermentum leo eu lectus mollis, quis dictum mi aliquet.</li>
-    <li>Morbi eu nulla lobortis, lobortis est in, fringilla felis.</li>
-    <li>Aliquam nec felis in sapien venenatis viverra fermentum nec lectus.</li>
-    <li>Ut non enim metus.</li>
-  </ul>
-</div>
-
-
-
-
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/email.html b/dist/email.html deleted file mode 100644 index b2ea7cd3c..000000000 --- a/dist/email.html +++ /dev/null @@ -1,318 +0,0 @@ - - - - - - - - - - - - - - - - - - Email - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
- - - -
- - \ No newline at end of file diff --git a/dist/empty.html b/dist/empty.html deleted file mode 100644 index b2df05ba1..000000000 --- a/dist/empty.html +++ /dev/null @@ -1,251 +0,0 @@ - - - - - - - - - - - - - - - - - - Empty page - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/dist/forgot-password.html b/dist/forgot-password.html deleted file mode 100644 index 1ce44aa5b..000000000 --- a/dist/forgot-password.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - Forgot password - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
-
-
- -
-
-
-
- - \ No newline at end of file diff --git a/dist/form-elements.html b/dist/form-elements.html deleted file mode 100644 index c8648a1d7..000000000 --- a/dist/form-elements.html +++ /dev/null @@ -1,1507 +0,0 @@ - - - - - - - - - - - - - - - - - - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
-
-
-
-
-

Form elements

-
-
-
-
-
- -
Username
-
-
- - -
-
- - -
-
- - -
-
- - -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
-
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
-
-
- -
- - - - -
-
-
- -
- - -
-
-
- -
- - - - -
-
- - - - -
-
-
- -
-
- -
- - - -
-
-
- -
-
- -
- - ? - -
-
-
-
-
- - -
-
- - - -
-
- - -
Invalid feedback
- -
-
- - -
-
- -
-
- -
-
- -
-
-
-
- -
- - - - -
-
-
- -
- - - - -
-
-
- -
- - - - -
-
-
- -
- - - - - - - -
-
-
-
Toggle switches
-
- - - -
-
-
-
Toggle switch single
- -
-
-
- - -
-
- - -
-
- - -
-
- - -
-
-
-
-
-
Radios
-
- - - - -
-
-
-
Inline Radios
-
- - - -
-
-
-
Checkboxes
-
- - - - -
-
-
-
Inline Checkboxes
-
- - - -
-
-
-
Bootstrap's Custom File Input
-
- - -
-
-
- -
-
- -
-
- -
-
- -
-
-
-
- -
- - @ - - -
-
-
- -
- - - .example.com - -
-
-
- -
- - https://example.com/users/ - - -
-
-
- -
- - $ - - - - .00 - -
-
-
- -
- - -
-
-
- - -
-
- - -
-
- - -
-
- - -
-
-
-
- -
- -
-
-
-
-

Input mask

-
-
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
-
- -
-
-

My Profile

-
-
-
-
-
- -
-
-
- - -
-
-
-
- - -
-
- - -
-
- - -
- -
-
-
-
-
-
-
-

Edit Profile

-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- -
-
-
-

HTTP Request

-
-
-
-
- - -
-
- - -
-
-
Assertions
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SourcePropertyComparisonTarget
- - - - - - -
- - - - - - - -
- - - - - - -
- - - - - - - -
-
-
- -
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/gallery.html b/dist/gallery.html deleted file mode 100644 index 7f64b7614..000000000 --- a/dist/gallery.html +++ /dev/null @@ -1,489 +0,0 @@ - - - - - - - - - - - - - - - - - - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
- -
-
-
- - Photo by Nathan Guerrero - -
-
-
-
Nathan Guerrero
- 12 days ago -
-
- 112 - 42 -
-
-
-
-
-
- - Photo by Alice Mason - -
-
-
-
Alice Mason
- 12 days ago -
-
- 70 - 0 -
-
-
-
-
-
- - Photo by Rose Bradley - -
-
-
-
Rose Bradley
- 4 days ago -
-
- 166 - 96 -
-
-
-
-
-
- - Photo by Peter Richards - -
-
-
-
Peter Richards
- 18 days ago -
-
- 76 - 6 -
-
-
-
-
-
- - Photo by Wayne Holland - -
-
-
-
Wayne Holland
- 16 days ago -
-
- 106 - 36 -
-
-
-
-
-
- - Photo by Michelle Ross - -
-
-
-
Michelle Ross
- 4 days ago -
-
- 77 - 7 -
-
-
-
-
-
- - Photo by Debra Beck - -
-
-
-
Debra Beck
- 6 days ago -
-
- 150 - 80 -
-
-
-
-
-
- - Photo by Phillip Peters - -
-
-
-
Phillip Peters
- 17 days ago -
-
- 153 - 83 -
-
-
-
-
-
- - Photo by Jack Ruiz - -
-
-
-
Jack Ruiz
- 15 days ago -
-
- 143 - 73 -
-
-
-
-
-
- - Photo by Ronald Bradley - -
-
-
-
Ronald Bradley
- 11 days ago -
-
- 149 - 79 -
-
-
-
-
-
- - Photo by Kathleen Harper - -
-
-
-
Kathleen Harper
- 16 days ago -
-
- 164 - 94 -
-
-
-
-
-
- - Photo by Bobby Knight - -
-
-
-
Bobby Knight
- 6 days ago -
-
- 160 - 90 -
-
-
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/icons.html b/dist/icons.html deleted file mode 100644 index 235b2d25c..000000000 --- a/dist/icons.html +++ /dev/null @@ -1,1834 +0,0 @@ - - - - - - - - - - - - - - - - - - Icons - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
- -
-
-
-
-
Feather Icons
-
-
-
-
-

Simply beautiful open source icons. For more info click here.

-

<i class="fe fe-ICON_NAME"></i>

-
-
-
-
    -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
-
-
-
-
-
-
-
-
Font Awesome
-
-
-
-
-

Powered by Font Awesome set. For more info click here.

-

<i class="fa fa-ICON_NAME"></i>

-
-
-
-
    -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
-
-
-
-
-
-
-
-
Flags
-
-
-
-
-

For more info click here.

-

<i class="flag flag-ICON_NAME"></i>

-
-
-
-
    -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
-
-
-
-
-
-
-
-
Payments
-
-
-
-
-

For more info click here.

-

<i class="payment payment-ICON_NAME"></i>

-
-
-
-
    -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
  • -
-
-
-
-
-
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/index.html b/dist/index.html deleted file mode 100644 index 5463bd52c..000000000 --- a/dist/index.html +++ /dev/null @@ -1,1835 +0,0 @@ - - - - - - - - - - - - - - - - - - Homepage - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
- -
-
-
-
-
- 6% - -
-
43
-
New Tickets
-
-
-
-
-
-
-
- -3% - -
-
17
-
Closed Today
-
-
-
-
-
-
-
- 9% - -
-
7
-
New Replies
-
-
-
-
-
-
-
- 3% - -
-
27.3K
-
Followers
-
-
-
-
-
-
-
- -2% - -
-
$95
-
Daily Earnings
-
-
-
-
-
-
-
- -1% - -
-
621
-
Products
-
-
-
-
-
-
-

Development Activity

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
UserCommitDate
Ronald BradleyInitial commitMay 6, 2018
BMRussell GibsonMain structureApril 22, 2018
Beverly ArmstrongLeft sidebar adjustmentsApril 15, 2018
Bobby KnightTopbar dropdown styleApril 8, 2018
Sharon WellsFixes #625April 9, 2018
-
-
- -
-
-
Are you in trouble? Read our documentation with code samples.
-
-
-
-
-

Chart title

-
-
-
-
-
- -
-
-
-
-

Chart title

-
-
-
-
-
- -
-
-
-
-
New feedback
-
62
-
-
-
-
-
-
-
-
-
-
Today profit
-
$652
-
-
-
-
-
-
-
-
-
-
-
- - - -
-

132 Sales

- 12 waiting payments -
-
-
-
-
-
-
- - - -
-

78 Orders

- 32 shipped -
-
-
-
-
-
-
- - - -
-

1,352 Members

- 163 registered today -
-
-
-
-
-
-
- - - -
-

132 Comments

- 16 waiting -
-
-
-
-
-
-
-
- -
-

And this isn't my nose. This is a false one.

-
Look, my liege! The Knights Who Say Ni demand a sacrifice! …Are you suggesting that coconuts migr...
-
-
-
- Rose Bradley - 3 days ago -
-
- -
-
-
-
-
-
-
- -
-

Well, I didn't vote for you.

-
Well, we did do the nose. Why? Shut up! Will you shut up?! You don't frighten us, English pig-dog...
-
-
-
- Peter Richards - 3 days ago -
-
- -
-
-
-
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
UserUsagePaymentActivitySatisfaction
-
- -
-
-
Elizabeth Martin
-
- Registered: Mar 19, 2018 -
-
-
-
- 42% -
-
- Jun 11, 2015 - Jul 10, 2015 -
-
-
-
-
-
- - -
Last login
-
4 minutes ago
-
-
-
42%
-
-
- -
-
- -
-
-
Michelle Schultz
-
- Registered: Mar 2, 2018 -
-
-
-
- 0% -
-
- Jun 11, 2015 - Jul 10, 2015 -
-
-
-
-
-
- - -
Last login
-
5 minutes ago
-
-
-
0%
-
-
- -
-
- -
-
-
Crystal Austin
-
- Registered: Apr 7, 2018 -
-
-
-
- 96% -
-
- Jun 11, 2015 - Jul 10, 2015 -
-
-
-
-
-
- - -
Last login
-
a minute ago
-
-
-
96%
-
-
- -
-
- -
-
-
Douglas Ray
-
- Registered: Jan 15, 2018 -
-
-
-
- 6% -
-
- Jun 11, 2015 - Jul 10, 2015 -
-
-
-
-
-
- - -
Last login
-
a minute ago
-
-
-
6%
-
-
- -
-
- -
-
-
Teresa Reyes
-
- Registered: Mar 4, 2018 -
-
-
-
- 36% -
-
- Jun 11, 2015 - Jul 10, 2015 -
-
-
-
-
-
- - -
Last login
-
2 minutes ago
-
-
-
36%
-
-
- -
-
- -
-
-
Emma Wade
-
- Registered: Mar 20, 2018 -
-
-
-
- 7% -
-
- Jun 11, 2015 - Jul 10, 2015 -
-
-
-
-
-
- - -
Last login
-
a minute ago
-
-
-
7%
-
-
- -
-
- -
-
-
Carol Henderson
-
- Registered: Feb 22, 2018 -
-
-
-
- 80% -
-
- Jun 11, 2015 - Jul 10, 2015 -
-
-
-
-
-
- - -
Last login
-
9 minutes ago
-
-
-
80%
-
-
- -
-
- -
-
-
Christopher Harvey
-
- Registered: Jan 22, 2018 -
-
-
-
- 83% -
-
- Jun 11, 2015 - Jul 10, 2015 -
-
-
-
-
-
- - -
Last login
-
8 minutes ago
-
-
-
83%
-
-
- -
-
-
-
-
-
-
-

Browser Stats

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Google Chrome23%
Mozila Firefox15%
Apple Safari7%
Internet Explorer9%
Opera mini23%
Microsoft edge9%
-
-
-
-
-
-

Projects

-
- - - - - - - - - - - - - - - - - - - - - - - - - -
Admin Template - 65% -
Landing Page - Finished -
Backend UI - Rejected -
Personal Blog - 40% -
E-mail Templates - 13% -
Corporate Website - Pending -
-
-
-
-
-
-

Members

-
-
- -
-
-
-
-
-
-
-
-
+5%
-

423

-
Users online
-
-
-
-
-
- -
-
-
-
-
-3%
-

423

-
Users online
-
-
-
-
-
- -
-
-
-
-
-3%
-

423

-
Users online
-
-
-
-
-
- -
-
-
-
-
9%
-

423

-
Users online
-
-
-
-
-
- -
-
-
-
-
-
-

Invoices

-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
No.Invoice SubjectClientVAT No.CreatedStatusPrice
001401Design Works - Carlson Limited - - 87956621 - - 15 Dec 2017 - - Paid - $887 - Manage - - - - - -
001402UX Wireframes - Adobe - - 87956421 - - 12 Apr 2017 - - Pending - $1200 - Manage - - - - - -
001403New Dashboard - Bluewolf - - 87952621 - - 23 Oct 2017 - - Pending - $534 - Manage - - - - - -
001404Landing Page - Salesforce - - 87953421 - - 2 Sep 2017 - - Due in 2 Weeks - $1500 - Manage - - - - - -
001405Marketing Templates - Printic - - 87956621 - - 29 Jan 2018 - - Paid Today - $648 - Manage - - - - - -
001406Sales Presentation - Tabdaq - - 87956621 - - 4 Feb 2018 - - Due in 3 Weeks - $300 - Manage - - - - - -
-
-
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/invoice.html b/dist/invoice.html deleted file mode 100644 index 0ee390477..000000000 --- a/dist/invoice.html +++ /dev/null @@ -1,347 +0,0 @@ - - - - - - - - - - - - - - - - - - Invoice - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
-
-
-

#INV0015

-
- -
-
-
-
-
-

Company

-
- Street Address
- State, City
- Region, Postal Code
- ltd@example.com -
-
-
-

Client

-
- Street Address
- State, City
- Region, Postal Code
- ctr@example.com -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ProductQntUnitAmount
1 -

Logo Creation

-
Logo and business cards design
-
- 1 - $1.800,00$1.800,00
2 -

Online Store Design & Development

-
Design/Development for all popular modern browsers
-
- 1 - $20.000,00$20.000,00
3 -

App Design

-
Promotional mobile application
-
- 1 - $3.200,00$3.200,00
Subtotal$25.000,00
Vat Rate20%
Vat Due$5.000,00
Total Due$30.000,00
-
-

Thank you very much for doing business with us. We look forward to working with you again!

-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/login.html b/dist/login.html deleted file mode 100644 index 13550a1df..000000000 --- a/dist/login.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - - - - - - - - - - Login - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
-
-
- -
-
-
-
- - \ No newline at end of file diff --git a/dist/lookup.html b/dist/lookup.html deleted file mode 100644 index b91b720bd..000000000 --- a/dist/lookup.html +++ /dev/null @@ -1,456 +0,0 @@ - - - - - - - - - - - - - - - - - - Lookup company - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
- -
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium alias consequuntur cum dicta doloremque, enim eos illo ipsam labore laboriosam laborum perspiciatis quibusdam repudiandae sed sequi sit temporibus veniam, voluptatum. -
-
-
-
-
-
-
-
-
-
amazon.com
-
-
-
-
-
Name
-
Amazon.com
-
-
-
Legal Name
-
Amazon.com, Inc.
-
-
-
Ticker
-
AMZN
-
-
-
Founded Year
-
1995
-
-
-
Type
-
Public
-
-
-
Employees
-
341,400
-
-
-
Annual Revenue
-
$135B
-
-
-
-
-
-
-
-
-
Location
-
207 Boren Ave, Seattle, WA 98109, USA
-
-
-
Timezone
-
America/Los_Angeles
-
-
-
-
-
Recent News
- -
-
-
    -
  • -
    Description
    -
    - Online shopping from the earth's biggest selection of books, magazines, music, DVDs, videos, electronics, computers, software, apparel & acc… -
    -
  • -
  • -
    Tags
    -
    - E-Commerce & Marketplaces - E-commerce - B2C - Internet - Consumer Discretionary - Technology -
    -
  • -
  • -
    Industry
    -
    Internet Software & Services
    -
  • -
  • -
    Sector
    -
    Information Technology
    -
  • -
  • -
    SIC Code
    -
    59
    -
  • -
  • -
    NAICS Code
    -
    45
    -
  • -
  • -
    EIN
    -
    911646860
    -
  • -
  • -
    Technologies
    -
    - amazon associates - amazon ses - dyn dns - omniture adobe analytics - typekit by adobe -
    -
  • -
  • -
    Alexa US Rank
    -
    5
    -
  • -
  • -
    Alexa Global Rank
    -
    10
    -
  • -
  • -
    Fiscal Year End
    -
    End of December
    -
  • -
  • -
    Phone
    - -
  • -
  • -
    Crunchbase
    - -
  • -
  • -
    Twitter
    - -
  • -
  • -
    Facebook
    - -
  • -
-
-
-
-
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/maps.html b/dist/maps.html deleted file mode 100644 index be677cc57..000000000 --- a/dist/maps.html +++ /dev/null @@ -1,567 +0,0 @@ - - - - - - - - - - - - - - - - - - Maps - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
-
-
- -
-
-
-
-
-

Client card

- -
-
-
-
- Generic placeholder image -
-
Axa Global Group
-
- 1290 Avenua of The Americas
- New York, NY 101040105 -
-
-
-
-
-
Relationship
-

Client

-
-
-
Business Type
-

Insurance Company

-
-
-
Website
-

http://www.axa.com

-
-
-
Office Phone
-

+123456789

-
-
-
Description
-

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consectetur dignissimos doloribus eum fugiat itaque laboriosam maiores nisi nostrum perspiciatis vero.

-
-
-
-
-

Germany map

-
-
-
-
-
-
-
- -
-
-
-
-

Visitors map

-
-
-
-
-
-
-
- -
-
-
-
-

Map of Warsaw metro

-
-
L2
-
-
-
-
-
    -
  • -
    - Rondo Daszyńskiego -
    2 min. ago
    -
  • -
  • -
    - Rondo ONZ -
    1 min ago
    -
  • -
  • -
    -
    - Świętokrzyska - Lorem ipsum dolor sit amet, consectetur adipisicing elit. -
    -
    now
    -
  • -
  • -
    - Nowy Świat-Uniwersytet -
    2 min.
    -
  • -
  • -
    - Centrum Nauki Kopernik -
    3 min.
    -
  • -
  • -
    - Stadion Narodowy -
    5 min.
    -
  • -
  • -
    - Dworzec Wileński -
    7 min.
    -
  • -
-
-
- -
-
-
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/pagination.html b/dist/pagination.html deleted file mode 100644 index 7bceaa876..000000000 --- a/dist/pagination.html +++ /dev/null @@ -1,423 +0,0 @@ - - - - - - - - - - - - - - - - - - Pagination - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
- - - -
- - \ No newline at end of file diff --git a/dist/pricing-cards.html b/dist/pricing-cards.html deleted file mode 100644 index d93d1238b..000000000 --- a/dist/pricing-cards.html +++ /dev/null @@ -1,333 +0,0 @@ - - - - - - - - - - - - - - - - - - Pricing cards - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
- -
-
-
-
-
Free
-
$0
-
    -
  • 3 Users
  • -
  • Sharing Tools
  • -
  • Design Tools
  • -
  • Private Messages
  • -
  • Twitter API
  • -
- -
-
-
-
-
-
-
-
Premium
-
$49
-
    -
  • 10 Users
  • -
  • Sharing Tools
  • -
  • Design Tools
  • -
  • Private Messages
  • -
  • Twitter API
  • -
- -
-
-
-
-
-
-
Enterprise
-
$99
-
    -
  • 100 Users
  • -
  • Sharing Tools
  • -
  • Design Tools
  • -
  • Private Messages
  • -
  • Twitter API
  • -
- -
-
-
-
-
-
-
Unlimited
-
$139
-
    -
  • Unlimited Users
  • -
  • Sharing Tools
  • -
  • Design Tools
  • -
  • Private Messages
  • -
  • Twitter API
  • -
- -
-
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/profile.html b/dist/profile.html deleted file mode 100644 index 167c9b46f..000000000 --- a/dist/profile.html +++ /dev/null @@ -1,495 +0,0 @@ - - - - - - - - - - - - - - - - - - Profile - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
-
-
-
-
-
- -

Peter Richards

-

- Big belly rude boy, million dollar hustler. Unemployed. -

- -
-
-
-
-
- -
-

Juan Hernandez

-

Webdeveloper

- -
-
-
-
-
-
-

My Profile

-
-
-
-
-
- -
-
-
- - -
-
-
-
- - -
-
- - -
-
- - -
- -
-
-
-
-
-
-
-
- -
- -
-
-
-
    -
  • -
    -
    -
    -
    - 4 min -
    Peter Richards
    -
    -
    - Aenean lacinia bibendum nulla sed consectetur. Vestibulum id ligula porta felis euismod semper. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras - justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Cum sociis natoque penatibus et magnis dis parturient montes, - nascetur ridiculus mus. -
    -
      -
    • -
      -
      - Debra Beck: - Donec id elit non mi porta gravida at eget metus. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Donec ullamcorper nulla non metus - auctor fringilla. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Sed posuere consectetur est at lobortis. -
      -
    • -
    • -
      -
      - Jack Ruiz: - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit - amet risus. -
      -
    • -
    -
    -
    -
  • -
  • -
    -
    -
    -
    - 12 min -
    Peter Richards
    -
    -
    - Donec id elit non mi porta gravida at eget metus. Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Cum sociis natoque penatibus et magnis dis - parturient montes, nascetur ridiculus mus. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Lorem ipsum dolor sit amet, consectetur adipiscing elit. -
    -
    -
    -
  • -
  • -
    -
    -
    -
    - 34 min -
    Peter Richards
    -
    -
    - Donec ullamcorper nulla non metus auctor fringilla. Vestibulum id ligula porta felis euismod semper. Aenean eu leo quam. Pellentesque ornare sem lacinia quam - venenatis vestibulum. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. -
    -
      -
    • -
      -
      - Wayne Holland: - Donec id elit non mi porta gravida at eget metus. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Donec ullamcorper nulla non metus - auctor fringilla. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Sed posuere consectetur est at lobortis. -
      -
    • -
    -
    -
    -
  • -
-
-
-
-

Edit Profile

-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- -
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/register.html b/dist/register.html deleted file mode 100644 index 7d620ec7a..000000000 --- a/dist/register.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - - - - - Register - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
-
-
- -
-
-
-
- - \ No newline at end of file diff --git a/dist/rtl.html b/dist/rtl.html deleted file mode 100644 index 9215a49c6..000000000 --- a/dist/rtl.html +++ /dev/null @@ -1,351 +0,0 @@ - - - - - - - - - - - - - - - - - - RTL mode - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
- -
-
-
-
-

عنوان البطاقة

-
- - -
-
-
- لكن لا بد أن أوضح لك أن كل هذه الأفكار المغلوطة حول استنكار النشوة وتمجيد الألم نشأت بالفعل، وسأعرض لك التفاصيل لتكتشف حقيقة وأساس تلك السعادة البشرية، فلا أحد يرفض أو يكره أو يتجنب الشعور بالسعادة، ولكن بفضل هؤلاء الأشخاص الذين لا يدركون بأن السعادة لا بد أن نستشعرها بصورة أكثر عقلانية ومنطقية فيعرضهم هذا لمواجهة الظروف الأليمة، وأكرر بأنه لا يوجد من يرغب في الحب ونيل المنال ويتلذذ بالآلام، الألم هو الألم ولكن نتيجة لظروف ما قد تكمن السعاده فيما نتحمله من كد وأسي. - و سأعرض مثال حي لهذا، من منا لم يتحمل جهد بدني شاق إلا من أجل الحصول على ميزة أو فائدة؟ ولكن من لديه الحق أن ينتقد شخص ما أراد أن يشعر بالسعادة التي لا تشوبها عواقب أليمة أو آخر أراد أن يتجنب الألم الذي ربما تنجم عنه بعض المتعة ؟ - علي الجانب الآخر نشجب ونستنكر هؤلاء الرجال المفتونون بنشوة اللحظة الهائمون في رغباتهم فلا يدركون ما يعقبها من الألم والأسي المحتم، واللوم كذلك يشمل هؤلاء الذين أخفقوا في واجباتهم نتيجة لضعف إرادتهم فيتساوي مع هؤلاء الذين يتجنبون وينأون عن تحمل الكدح والألم . -
-
-
-
-
-
-
-
-
- 6% - -
-
43
-
تذاكر جديدة
-
-
-
-
-
-
-
- -3% - -
-
17
-
مغلق اليوم
-
-
-
-
-
-
-
- 2% - -
-
27.3K
-
متابعون
-
-
-
-
-
-
-
-
-
-
-
-
-

- John Smith @johnsmith 31 minutes ago -

-

- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean efficitur sit amet massa fringilla egestas. Nullam condimentum luctus turpis. -

-
- -
-
-
-
-
-
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/sample-cards.html b/dist/sample-cards.html deleted file mode 100644 index 210ebc536..000000000 --- a/dist/sample-cards.html +++ /dev/null @@ -1,3326 +0,0 @@ - - - - - - - - - - - - - - - - - - Homepage - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
- - - - - - -
- -
-
-
-
-
-
-
-
-
-
-

- John Smith @johnsmith 31 minutes ago -

-

- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean efficitur sit amet massa fringilla egestas. Nullam condimentum luctus turpis. -

-
- -
-
-
-
-
-
-
-
-
-
-
-
-

- John Smith @johnsmith 31 minutes ago -

-

- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean efficitur sit amet massa fringilla egestas. Nullam condimentum luctus turpis. -

-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-

- John Smith @johnsmith 31 minutes ago -

-

- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean efficitur sit amet massa fringilla egestas. Nullam condimentum luctus turpis. -

-
- -
-
- -
-
-
-
-
-
-
-
-

HTTP Request

-
-
-
-
- - -
-
- - -
-
-
Assertions
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SourcePropertyComparisonTarget
- - - - - - -
- - - - - - - -
- - - - - - -
- - - - - - - -
-
-
- -
-
-
-
-
-
- - - -
-

132 Sales

- 12 waiting payments -
-
-
-
-
-
-
- - - -
-

78 Orders

- 32 shipped -
-
-
-
-
-
-
- - - -
-

1,352 Members

- 163 registered today -
-
-
-
-
-
-
- - - -
-

132 Comments

- 16 waiting -
-
-
-
-
-
-
- Total revenue -
-
$14,320
-
- Income -
- - 4% -
-
-
-
-
-
-
- Order status -
-
738
-
- New order -
- - 10% -
-
-
-
-
-
-
- Income status -
-
$3,205
-
- New income -
- 0% -
-
-
-
-
-
-
- Customer status -
-
118
-
- New users -
- - 3% -
-
-
-
-
-
-
-
-
-
- -
-
-
-
Capacity
-
105GB
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
Revenue
-
$1,345
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
Errors
-
23
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
Followers
-
1685
-
-
-
-
-
-
-
-
-
-
-
-

HTML & CSS lessons

-
-
-
6 Dec 2017
-
-
-
Warsaw, Poland
-
-
-
-
-
-
-
-

HTML & CSS lessons

-
-
-
5 Jun 2019
-
-
-
London, UK
-
-
-
-
-
-
-
-

HTML & CSS lessons

-
-
-
22 Oct 2018
-
-
-
Barcelona, Spain
-
-
-
-
-
-
-
-

Smashing Magazine Conference

-
-
-
11 Dec 2018
-
-
-
Santa Crus, Spain
-
-
-
-
-
-
-
-
-
-
-

Create new classroom

-
-
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- -
- - -
-
-
-
-
- -
-
-
-
-
-

- Colors -

-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-

December 2017

-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MoTuWeThFrSaSu
27282930123
45678910
11121314151617
18192021222324
2526272829301
-
- -
-
-
-
-
-

Browsers traffic

-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Google Chrome23%
Mozila Firefox15%
Apple Safari7%
Opera mini23%
Microsoft edge9%
-
- -
-
-
-
-

Email Statistics

-
-
- require(['c3', 'jquery'], function (c3, $) { - $(document).ready(function() { - var chart = c3.generate({ - bindto: '#chart-emails', - padding: { - bottom: 24, - top: 0 - }, - data: { - type: 'donut', - names: { - data1: 'Open', - data2: 'Bounce', - data3: 'Unsubscribe', - }, - columns: [ - ['data1', 30], - ['data2', 50], - ['data3', 25], - ], - colors: { - data1: tabler.colors.blue, - data2: tabler.colors.red, - data3: tabler.colors.yellow, - } - }, - donut: { - label: { - show: false - } - }, - legend: { - show: true - }, - }); - }); - }); -
-
- -
-
-
-
-
-

Invoices

-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
No.Invoice SubjectClientVAT No.CreatedStatusPrice
001401Design Works - Carlson Limited - - 87956621 - - 15 Dec 2017 - - Paid - $887 - Manage - - - - - -
001402UX Wireframes - Adobe - - 87956421 - - 12 Apr 2017 - - Pending - $1200 - Manage - - - - - -
001403New Dashboard - Bluewolf - - 87952621 - - 23 Oct 2017 - - Pending - $534 - Manage - - - - - -
001404Landing Page - Salesforce - - 87953421 - - 2 Sep 2017 - - Due in 2 Weeks - $1500 - Manage - - - - - -
001405Marketing Templates - Printic - - 87956621 - - 29 Jan 2018 - - Paid Today - $648 - Manage - - - - - -
001406Sales Presentation - Tabdaq - - 87956621 - - 4 Feb 2018 - - Due in 3 Weeks - $300 - Manage - - - - - -
-
-
-
-
-
-
-
-
-
-
-
Projects
-
11,164
-
-
-
-
-
-
-
-
-
-
Calls
-
986
-
-
-
-
-
-
-
-
-
-
Referrals
-
1,986
-
-
-
-
-
-
-
-
-
-
Revenue
-
$640
-
-
-
-
-
-
-
-
- -
-
- -
-
-
-
-
-
1800 users
-
-
-
-
"#f8b700", "name"=>"Warning"}"> -
1350 tasks
-
-
-
-
-
-
-
-
Missing Success URL
-
Waiting in queue
-
Everything is ready
-
Unknown status
-
-
-
-
-

Content loader

-
-
-
-
-
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. -
-
-
-
-
-
-

Progress bars

-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-

Girl & Lake

-
-
- ISO 200 -
-
- 1/1000 -
-
3780 x 2984
-
9.54 MB
-
-
-
Created:
-
09 Jun 2017 11:32AM
-
Updated:
-
19 Jun 2017 9:43PM
-
Bit Depth:
-
16 bit
-
Creator:
-
Nathan Guerrero
-
Used colors:
-
-
- - - - - - - -
-
-
-
-
-
Privacy
-
- -
-
-
-
Collaborators
-
-
    -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
-
-
-
-
-
- - - - - - - - - - -
- uglify-js - 3.0.10
- moment - 2.18.1
-
-
-
-

Germany map

-
-
-
-
-
-
-
- -
-
-
Portfolio
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
AAPL - 115.52 - (0.34%) -
GOOG - 635.3 - (-1.15%) -
MSFT - 46.74 - (0.26%) -
LNKD - 190.04 - (0.28%) -
TSLA - 181.47 - (-0.23%) -
YA - 37.75 - (-0.74%) -
-
-
-
-

Match results

-
-
-
-
- -
-
-
2:4
-
Today, 20:45
-
-
- -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Match stats
19Fouls12
6Yellow Cards2
0Red Cards0
0Offsides0
3Corner Kicks4
5Saves3
-
-
-
-

My Profile

-
-
-
-
-
- -
-
-
- - -
-
-
-
- - -
-
- - -
-
- - -
- -
-
-
-
-
-
-
"#467fcf", "name"=>"Blue"}" data-sparkline-type="bar">
-
-

$10M

-
Profit for this month
-
-
-
-
-
-
"#e74c3c", "name"=>"Red"}" data-sparkline-type="line">
-
-

$10M

-
Profit for this month
-
-
-
-
-

Card with options

- -
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eligendi fugiat fugit numquam quae rerum sed ut! Ad, blanditiis consequatur corporis cumque deserunt dolorem id perferendis recusandae repellendus sed, suscipit vitae. -
-
-
-
-
+5%
-

423

-
Users online
-
-
-
-
-
- -
-
-

New users

- -
-
-
- -
-
-
-
-
-
20%
-

1530

-
Total Leads
-
-
-
-
-
-
-
-
-
-
0%
-

$8,530

-
Total Payment
-
-
-
-
-

Best Pictures for Today

-
-
- -
-
-
-
-
-

16°C

-
Warsaw, Poland
-
-
-
-
-
-

Card with aside

-

- Lorem ipsum dolor sit amet. -

-
-
-
-
-

Card title

-
Card subtitle
-

Some quick example text to build on the card title and make up the bulk of the card's content.

- -
-
-
-
-
- Apple iPhone 7 128GB -
-

-
-
-
-
- -
- -
-
-
-
-
-

- Success card title -

-

Some quick example text to build on the card title and make up the bulk of the card's content.

-
-
-
-
-

Follow

-
- - - - - - - - - - - - - - - - -
- - - Jacob Thornton - @fat - - -
- - - Dave Gamache - @dhg - - -
- - - Mark Otto - @mdo - - -
-
-
-
-
- -

Peter Richards

-

- Big belly rude boy, million dollar hustler. Unemployed. -

- -
-
-
-
-

Special title treatment

-

With supporting text below as a natural lead-in to additional content.

- Go somewhere -
-
-
-
- -
-
-

Special title treatment

-

With supporting text below as a natural lead-in to additional content.

- Go somewhere -
-
-
-
-

- Danger card title -

-

Some quick example text to build on the card title and make up the bulk of the card's content.

-
-
-
-
-
-
-

Tasks activity

-
- -
-
-
-
-
- -
- -
-
-

Visitors map

-
-
-
-
-
-
-
- -
-
-
-
-

25563

-
Total tickets
-
-
-

6952

-
Pending Tickets
-
-
-

18361

-
Closed Tickets
-
-
-
-
-
-
-
-
-
- -
-

Juan Hernandez

-

Webdeveloper

- -
-
-
-
-
-
-

Client card

- -
-
-
-
- Generic placeholder image -
-
Axa Global Group
-
- 1290 Avenua of The Americas
- New York, NY 101040105 -
-
-
-
-
-
Relationship
-

Client

-
-
-
Business Type
-

Insurance Company

-
-
-
Website
-

http://www.axa.com

-
-
-
Office Phone
-

+123456789

-
-
-
Description
-

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consectetur dignissimos doloribus eum fugiat itaque laboriosam maiores nisi nostrum perspiciatis vero.

-
-
-
-
-
Today Expenses
-
$8500
-
-
-
-
-
-
-
-
-
-
New feedback
-
62
-
-
-
-
-
-
-
-
-
-
Users online
-
76
-
-
-
-
-
-
-
-
-
-
Profit for this month
-
$65,256
-
-
-
-
-
-
-
-
-3%
-

$5255

-
Revenue
-
-
-
-
-
- -
-
-
- Server params -
- -
-
-
-
- 10/200 GB -
Memory
-
-
-
-
-
- 20 GB -
Bandwidth
-
-
-
-
-
- 73% -
Activity
-
-
-
-
-
- 400 GB -
FTP
-
-
-
-
-
-
-
-
-
-
-1%
-

935

-
Total Sales
-
-
-
-
-
-
-
-
-
-
60%
-

5324

-
New Orders
-
-
-
- Card image cap -
-

Card title

-
Lorem ipsum dolor sit amet.
-

Some quick example text to build on the card title and make up the bulk of the card's content.

- Go somewhere -
-
-
-
-
- Card with header content -
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus aliquid architecto commodi dolorum nam odio perspiciatis quo sapiente vitae voluptatem? Accusamus beatae distinctio dolores laborum nobis, obcaecati odio quia reprehenderit. -
-
-
-
-

- Danger card title -

-

Some quick example text to build on the card title and make up the bulk of the card's content.

-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Animi asperiores atque beatae commodi, deserunt dolores eligendi esse est harum maxime nesciunt non nostrum quibusdam quisquam ratione repudiandae saepe soluta sunt. - Lorem ipsum dolor sit amet, consectetur adipisicing elit. Animi asperiores atque beatae commodi, deserunt dolores eligendi esse est harum maxime nesciunt non nostrum quibusdam quisquam ratione repudiandae saepe soluta sunt. -
-
-
-
-

- Warning card title -

-

Some quick example text to build on the card title and make up the bulk of the card's content.

-
-
-
-
-

Top Countries

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- USA -
-
-
-
$6425
- Poland -
-
-
-
$5582
- Germany -
-
-
-
$4587
- Russia -
-
-
-
$2520
- Australia -
-
-
-
$1899
- Great Britain -
-
-
-
$1056
-
-
- Card image cap -
-

Card title

-

Some quick example text to build on the card title and make up the bulk of the card's content.

-
-
    -
  • Cras justo odio
  • -
  • Dapibus ac facilisis in
  • -
  • Vestibulum at eros
  • -
- -
-
-
-
Create new account
-
- - -
-
- - -
-
- - -
-
- -
- -
-
-
- Already have account? Sign in -
-
-
-
-
- - -
-
- -
-
- -
-
- -
-
-
-
- -
- - - -
-
-
- -
- - - - -
-
-
- - -
-
- - -
- -
-
-
-
-
- -
-
-

- Finance Stats -

-
-
-
    -
  • -
    -
    -
    - IPO Margin -
    - Awerage IPO Margin -
    -
    - +24% -
    -
    -
  • -
  • -
    -
    -
    - Payments -
    - Yearly Expenses -
    -
    - +$560,800 -
    -
    -
  • -
  • -
    -
    -
    - Logistics -
    - Overall Regional Logistics -
    -
    - -10% -
    -
    -
  • -
  • -
    -
    -
    - Expenses -
    - Balance -
    -
    - $345,000 -
    -
    -
  • -
-
-
-
-
-

- Sales Stats -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Scheduled - - Count - - Amount -
- 13.06.2017 - - 67 - - $14,740 -
- 28.02.2017 - - 120 - - $11,002 -
- 06.03.2017 - - 32 - - $10,900 -
- 21.10.2017 - - 130 - - $14,740 -
- 02.01.2017 - - 5 - - $18,540 -
- 06.03.2017 - - 32 - - $10,900 -
- 31.12.2017 - - 201 - - $25,609 -
- -
-
-
-

Pie chart

-
-
-
-
-
-
-
-

Radar chart

-
-
- -
-
-
-
-

Private message

-
Send private message to Olivia Wenscombe
-
-
- - -
-
- - -
- -
-
-
-
- Card image -
-

Card title

-

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

-
-
-
-
-

Browser Stats

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Google Chrome23%
Mozila Firefox15%
Apple Safari7%
Internet Explorer9%
Opera mini23%
Microsoft edge9%
-
-
-
-

- Dark card title -

-

Some quick example text to build on the card title and make up the bulk of the card's content.

-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus aliquid architecto commodi dolorum nam odio perspiciatis quo sapiente vitae voluptatem? Accusamus beatae distinctio dolores laborum nobis, obcaecati odio quia reprehenderit. -
- -
- -
- Card image cap -
    -
  • Cras justo odio
  • -
  • Dapibus ac facilisis in
  • -
  • Vestibulum at eros
  • -
-
-
-
- -
-
-

Special title treatment

-

With supporting text below as a natural lead-in to additional content.

- Go somewhere -
-
-
-
-

- Primary card title -

-

Some quick example text to build on the card title and make up the bulk of the card's content.

-
-
-
-
-
Login to your account
-
- - -
-
- - -
-
- -
- -
-
-
- Don't have account yet? Sign up -
-
-
-
Forgot password
-

Enter your email address and your password will be reset and emailed to you.

-
- - -
- -
-
-
- Forget it, send me back to the sign in screen. -
-
-
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/store.html b/dist/store.html deleted file mode 100644 index 0ed15e81a..000000000 --- a/dist/store.html +++ /dev/null @@ -1,415 +0,0 @@ - - - - - - - - - - - - - - - - - - Store components - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
- -
-
-
-
-
-
-
- Apple iPhone 7 128GB -
-

Apple iPhone 7 Plus 256GB Red Special Edition

-
- Apple -
-
-
- $499 -
- -
-
-
-
-
-
-
-
- Apple iPhone 7 128GB -
-

GoPro HERO6 Black

-
- GoPro -
-
-
- $599 -
- -
-
-
-
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Apple iPhone 7 Plus 256GB Red Special Edition - 98 reviews38 offers - $499 -
- Apple MacBook Pro i7 3,1GHz/16/512/Radeon 560 Space Gray -
New
-
97 reviews13 offers - $1499 -
- Apple iPhone 7 32GB Jet Black - 48 reviews38 offers - $499 -
- GoPro HERO6 Black -
New
-
66 reviews47 offers - $599 -
- MSI GV62 i5-7300HQ/8GB/1TB/Win10X GTX1050 - 59 reviews26 offers - $1599 -
- Xiaomi Mi A1 64GB Black -
New
-
63 reviews43 offers - $269 -
- Huawei Mate 10 Pro Dual SIM Gray - 71 reviews12 offers - $999 -
- Sony KD-49XE7005 -
New
-
54 reviews14 offers - $799 -
- Samsung Galaxy A5 A520F 2017 LTE Black Sky - 37 reviews40 offers - $399 -
-
-
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/dist/users-list.html b/dist/users-list.html deleted file mode 100644 index de3d82f2b..000000000 --- a/dist/users-list.html +++ /dev/null @@ -1,581 +0,0 @@ - - - - - - - - - - - - - - - - - - tabler.github.io - a responsive, flat and full featured admin template - - - - - - - - - - - - - - - - - -
-
- - -
-
- -
-
-
-
-
-
Filter
- -
-
-
Calendar
- -
-
-
Group
-
- - - - -
-
-
-
Country
- -
-
- -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameDateAmount
- - Jane PearsonFebruary 10, 1994$1616.70
- - Jason PorterNovember 14, 1983$1397.56
- - Teresa WoodFebruary 02, 1988$675.89
- - Mary ButlerNovember 12, 1982$600.25
- - Janice LaneDecember 07, 1983$1142.12
- - Anthony MillerDecember 17, 1994$1476.28
- - Denise ElliottMarch 01, 1994$867.54
- - Rose CookFebruary 10, 1983$656.43
- - Terry TuckerFebruary 06, 1993$1556.50
- - Grace KnightAugust 26, 1989$768.76
- - Elizabeth MartinOctober 16, 1992$787.89
- - Michelle SchultzMarch 19, 1995$1123.95
- - Crystal AustinFebruary 01, 1985$846.57
- - Douglas RayJuly 11, 1983$1548.11
- - Teresa ReyesMay 28, 1995$1323.14
- - Emma WadeNovember 03, 1988$1398.82
- - Carol HendersonMarch 02, 1994$737.54
- - Christopher HarveyDecember 09, 1984$1699.24
- - Deborah AlvaradoApril 02, 1993$1936.02
- - Gregory HuntJune 30, 1991$689.86
-
- -
-
-
-
-
- - -
- - \ No newline at end of file diff --git a/gh-pages.sh b/gh-pages.sh deleted file mode 100755 index 1bd253289..000000000 --- a/gh-pages.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -git checkout master - -exists=`git show-ref refs/heads/gh-pages` -if [ -n "$exists" ]; then - git branch -D gh-pages -fi - -echo "check out branch gh-pages ..." -git checkout -b gh-pages - -echo "add dist folder" -git add -f dist - -echo "commit changes" -git commit -m "deploy to gh-pages" - -echo "push to remote gh-pages" -git push origin `git subtree split --prefix dist`:gh-pages --force - -echo "checkout branch master" -git checkout master - -echo "delete branch gh-pages" -git branch -D gh-pages - -echo "All done!" \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index 24c93005d..7bd980d79 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,49 +1,249 @@ -var gulp = require('gulp'), +const gulp = require('gulp'), sass = require('gulp-sass'), - rename = require('gulp-rename'), + minifycss = require('gulp-clean-css'), + uglify = require('gulp-uglify'), + htmlmin = require('gulp-htmlmin'), + htmlclean = require('gulp-htmlclean'), + imagemin = require('gulp-imagemin'), autoprefixer = require('gulp-autoprefixer'), - rtlcss = require('gulp-rtlcss'), - pckg = require('./package.json'); + child = require('child_process'), + clean = require('gulp-clean'), + del = require('del'), + concat = require('gulp-concat'), + banner = require('gulp-banner'), + gs = require('gulp-selectors'), + rename = require('gulp-rename'), + replace = require('gulp-replace'), + useref = require('gulp-useref'), + gulpif = require('gulp-if'), -gulp.task('styles', function () { - return gulp.src('src/assets/scss/bundle.scss', { base: '.' }) + browserSync = require('browser-sync').create(), + pkg = require('./package.json'); + +const comment = '/*!\n' + + ' * <%= pkg.name %> <%= pkg.version %>\n' + + ' * <%= pkg.description %>\n' + + ' * <%= pkg.homepage %>\n' + + ' *\n' + + ' * Copyright 2018, <%= pkg.author %>\n' + + ' * Released under the <%= pkg.license %> license.\n' + + '*/\n\n'; + +const baseJsFile = 'ui-kit.js'; + +let BUILD = false; + +let getDistDir = function () { + if (BUILD) { + return './dist'; + } + + return './tmp'; +}; + +gulp.task('clean', function () { + return del('dist/**', {force:true}); +}); + +gulp.task('clean:libs', function () { + return del('libs/**', {force:true}); +}); + +gulp.task('banner', function (fn) { + fn(); + + return true; + return gulp.src('./dist/{js,css}/**/*') + .pipe(banner(comment, { + pkg: pkg + })) + .pipe(gulp.dest('./dist')); +}); + +gulp.task('obfuscate', function () { + const ignores = { + ids: '*', + classes: [ + 'dropdown', 'dropdown-menu', 'dropdown-menu-right', 'dropdown-toggle', 'dropdown-item', + 'active', 'disabled', 'show', + 'list-group', 'list-group-item', + 'nav', 'nav-link', 'nav-item', + 'popover', 'popover-header', 'popover-body', + 'tooltip' + ] + }; + + return gulp.src(['./dist/**/*.css', './dist/**/*.html']) + .pipe(gs.run({ + 'css': ['css'], + 'html': ['html'] + }, ignores)) + .pipe(gulp.dest('./dist')); +}); + +gulp.task('sass', function () { + return gulp.src('./scss/**/*.scss') .pipe(sass({ precision: 8, outputStyle: 'expanded' }).on('error', sass.logError)) .pipe(autoprefixer({ - browsers: pckg.browserslist, - cascade: false + browsers: ['last 2 versions'] })) - .pipe(rename('dashboard.css')) - .pipe(gulp.dest('src/assets/css/')) - - .pipe(rtlcss()) - .pipe(rename('dashboard.rtl.css')) - .pipe(gulp.dest('src/assets/css/')); + .pipe(gulp.dest(getDistDir() + '/css')); }); -gulp.task('styles-plugins', function () { - return gulp.src('src/assets/plugins/**/plugin.scss', { base: '.' }) - .pipe(sass({ - precision: 6, - outputStyle: 'expanded' - }).on('error', sass.logError)) - .pipe(autoprefixer({ - browsers: pckg.browserslist, - cascade: false - })) - .pipe(rename(function(path) { - path.extname = '.css'; - })) - .pipe(gulp.dest('.')); +gulp.task('js', function () { + return gulp.src(['./js/vendor/*.js', './js/' + baseJsFile]) + .pipe(concat(baseJsFile)) + .pipe(gulp.dest(getDistDir() + '/js')); }); -gulp.task('watch', ['styles', 'styles-plugins'], function() { - gulp.watch('src/assets/scss/**/*.scss', ['styles']); - gulp.watch('src/assets/plugins/**/*.scss', ['styles-plugins']); +gulp.task('minify-css', function () { + return gulp.src('./dist/**/*.css') + .pipe(minifycss({level: {1: {specialComments: 0}}})) + .pipe(gulp.dest('./dist')); }); -gulp.task('build', ['styles', 'styles-plugins']); +gulp.task('minify-html', function () { + return gulp.src('./dist/**/*.html') + .pipe(htmlclean()) + .pipe(htmlmin({ + removeComments: true, + minifyJS: true, + minifyCSS: true, + minifyURLs: true + })) + .pipe(gulp.dest('./dist')); +}); -gulp.task('default', ['build']); \ No newline at end of file +gulp.task('fix-html', function () { + return gulp.src('./dist/**/*.html') + .pipe(replace('href="#"', 'href="javascript:void(0)"')) + .pipe(replace(' class=""', '')) + .pipe(replace(/^\s*[\r\n]/gm, '')) + .pipe(gulp.dest('./dist')); +}); + +gulp.task('minify-js', function () { + return gulp.src('./dist/**/*.js') + .pipe(uglify()) + .pipe(gulp.dest('./dist')); +}); + +gulp.task('babel-js', () => + gulp.src('./dist/**/*.js') + .pipe(babel({ + presets: ['@babel/env'] + })) + .pipe(gulp.dest('dist')) +); + +gulp.task('minify-img', function () { + return gulp.src('./dist/img/*') + .pipe(imagemin()) + .pipe(gulp.dest('./dist/img')); +}); + +gulp.task('copy-images', function () { + return gulp.src('./img/**/*') + .pipe(gulp.dest('./dist/img')); +}); + +gulp.task('copy-js', function (fn) { + gulp.src('./js/**/*') + .pipe(gulp.dest('./dist/js')); + gulp.src('./libs/**/*') + .pipe(gulp.dest('./dist/libs')); + + return fn(); +}); + +gulp.task('jekyll', function (done) { + let productionEnv = process.env; + + if (BUILD) { + productionEnv.JEKYLL_ENV = 'production'; + } + + child.spawn('bundle', ['exec', 'jekyll', 'build', '--destination', getDistDir()], {stdio: 'inherit', env: productionEnv}) + .on('close', function () { + done(); + }); +}); + +// TODO: we need to improve it +// gulp.task('icon-sprite', function () { +// return gulp.src('icons/*.svg') +// .pipe(svgSprite({ +// svgId: 'svg-%f', +// sprite: 'icons-sprite.svg', +// mode: 'symbol', +// preview: false +// })) +// .pipe(rename('icons-sprite.svg')) +// .pipe(gulp.dest('./pages/_includes')); +// }); + +gulp.task('copy', gulp.series(function (cb) { + const scripts = { + 'bootstrap': 'bootstrap/dist/**/*.{js,min.js}', + 'apexcharts': 'apexcharts/dist/**/*.{js,min.js}', + 'jquery': 'jquery/dist/**/jquery.{js,min.js}', + 'peity': 'peity/jquery.peity.min.js', + 'jqvmap': 'jqvmap/dist/**/*.{js,css}', + 'selectize': 'selectize/dist/**/*.{js,css}', + }; + + for (let destinationDir in scripts) { + gulp.src('./node_modules/' + scripts[destinationDir]) + .pipe(gulp.dest('./libs/' + destinationDir)); + } + + cb(); +})); + +gulp.task('useref', function () { + return gulp.src('./dist/**/*.html') + .pipe(useref({ + searchPath: ['./dist'], + allowEmpty: true + })) + .pipe(gulp.dest('./dist')); +}); + +gulp.task('serve', function () { + browserSync.init({ + files: ['tmp/**'], + port: 4567, + watch: true, + open: 'local', + notify: false, + server: { + baseDir: 'tmp/', + routes: { + '/img': './img', + '/libs': './libs', + '/js': './js', + } + } + }); +}); + +gulp.task('watch', function () { + gulp.watch('pages/**/*', gulp.series('jekyll')); + gulp.watch('_config.yml', gulp.series('jekyll')); + gulp.watch('scss/**/*', gulp.series('sass')); + gulp.watch('js/**/*', gulp.series('js')); + gulp.watch('libs/**/*', gulp.series('js')); +}); + +gulp.task('set-production', function (cb) { + BUILD = true; + cb(); +}); + +gulp.task('compress', gulp.series(gulp.series('fix-html', /*'minify-html',*/ 'minify-css', /*'babel-js',*/ 'minify-js', 'minify-img'), 'banner')); +gulp.task('build', gulp.series('set-production', 'clean', 'jekyll', 'sass', 'copy-js', 'copy-images'/*, 'useref'*/, 'compress')); + +gulp.task('default', gulp.series('sass', 'copy', /*'js',*/ 'jekyll', gulp.parallel('watch', 'serve'))); diff --git a/icons/activity.svg b/icons/activity.svg new file mode 100644 index 000000000..669a57a77 --- /dev/null +++ b/icons/activity.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/airplay.svg b/icons/airplay.svg new file mode 100644 index 000000000..7ce730225 --- /dev/null +++ b/icons/airplay.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/alert-circle.svg b/icons/alert-circle.svg new file mode 100644 index 000000000..6b41c0b95 --- /dev/null +++ b/icons/alert-circle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/alert-octagon.svg b/icons/alert-octagon.svg new file mode 100644 index 000000000..6943b6d02 --- /dev/null +++ b/icons/alert-octagon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/alert-triangle.svg b/icons/alert-triangle.svg new file mode 100644 index 000000000..59e65b15b --- /dev/null +++ b/icons/alert-triangle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/align-center.svg b/icons/align-center.svg new file mode 100644 index 000000000..5b8842ea7 --- /dev/null +++ b/icons/align-center.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/align-justify.svg b/icons/align-justify.svg new file mode 100644 index 000000000..0539876ff --- /dev/null +++ b/icons/align-justify.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/align-left.svg b/icons/align-left.svg new file mode 100644 index 000000000..9ac852a51 --- /dev/null +++ b/icons/align-left.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/align-right.svg b/icons/align-right.svg new file mode 100644 index 000000000..ef139ffab --- /dev/null +++ b/icons/align-right.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/anchor.svg b/icons/anchor.svg new file mode 100644 index 000000000..e01627a3d --- /dev/null +++ b/icons/anchor.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/aperture.svg b/icons/aperture.svg new file mode 100644 index 000000000..9936e8688 --- /dev/null +++ b/icons/aperture.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/archive.svg b/icons/archive.svg new file mode 100644 index 000000000..428882c87 --- /dev/null +++ b/icons/archive.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/arrow-down-circle.svg b/icons/arrow-down-circle.svg new file mode 100644 index 000000000..3238091b9 --- /dev/null +++ b/icons/arrow-down-circle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/arrow-down-left.svg b/icons/arrow-down-left.svg new file mode 100644 index 000000000..724835842 --- /dev/null +++ b/icons/arrow-down-left.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/arrow-down-right.svg b/icons/arrow-down-right.svg new file mode 100644 index 000000000..81d9822ba --- /dev/null +++ b/icons/arrow-down-right.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/arrow-down.svg b/icons/arrow-down.svg new file mode 100644 index 000000000..4f84f627b --- /dev/null +++ b/icons/arrow-down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/arrow-left-circle.svg b/icons/arrow-left-circle.svg new file mode 100644 index 000000000..3b19ff8a5 --- /dev/null +++ b/icons/arrow-left-circle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/arrow-left.svg b/icons/arrow-left.svg new file mode 100644 index 000000000..a5058fc73 --- /dev/null +++ b/icons/arrow-left.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/arrow-right-circle.svg b/icons/arrow-right-circle.svg new file mode 100644 index 000000000..ff01dd587 --- /dev/null +++ b/icons/arrow-right-circle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/arrow-right.svg b/icons/arrow-right.svg new file mode 100644 index 000000000..939b57c5b --- /dev/null +++ b/icons/arrow-right.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/arrow-up-circle.svg b/icons/arrow-up-circle.svg new file mode 100644 index 000000000..044a75d39 --- /dev/null +++ b/icons/arrow-up-circle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/arrow-up-left.svg b/icons/arrow-up-left.svg new file mode 100644 index 000000000..cea55e87a --- /dev/null +++ b/icons/arrow-up-left.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/arrow-up-right.svg b/icons/arrow-up-right.svg new file mode 100644 index 000000000..95678e00b --- /dev/null +++ b/icons/arrow-up-right.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/arrow-up.svg b/icons/arrow-up.svg new file mode 100644 index 000000000..16b13aba8 --- /dev/null +++ b/icons/arrow-up.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/at-sign.svg b/icons/at-sign.svg new file mode 100644 index 000000000..5a5e5d0d8 --- /dev/null +++ b/icons/at-sign.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/award.svg b/icons/award.svg new file mode 100644 index 000000000..be70d5a13 --- /dev/null +++ b/icons/award.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/bar-chart-2.svg b/icons/bar-chart-2.svg new file mode 100644 index 000000000..864167a6c --- /dev/null +++ b/icons/bar-chart-2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/bar-chart.svg b/icons/bar-chart.svg new file mode 100644 index 000000000..074d7c1a4 --- /dev/null +++ b/icons/bar-chart.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/battery-charging.svg b/icons/battery-charging.svg new file mode 100644 index 000000000..644cb59cb --- /dev/null +++ b/icons/battery-charging.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/battery.svg b/icons/battery.svg new file mode 100644 index 000000000..7fe87710b --- /dev/null +++ b/icons/battery.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/bell-off.svg b/icons/bell-off.svg new file mode 100644 index 000000000..b73bcb2d6 --- /dev/null +++ b/icons/bell-off.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/bell.svg b/icons/bell.svg new file mode 100644 index 000000000..94c5d207b --- /dev/null +++ b/icons/bell.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/bluetooth.svg b/icons/bluetooth.svg new file mode 100644 index 000000000..cebed7b18 --- /dev/null +++ b/icons/bluetooth.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/bold.svg b/icons/bold.svg new file mode 100644 index 000000000..d1a4efd3a --- /dev/null +++ b/icons/bold.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/book-open.svg b/icons/book-open.svg new file mode 100644 index 000000000..5e0ca0ab7 --- /dev/null +++ b/icons/book-open.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/book.svg b/icons/book.svg new file mode 100644 index 000000000..12ffcbc46 --- /dev/null +++ b/icons/book.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/bookmark.svg b/icons/bookmark.svg new file mode 100644 index 000000000..2239cc580 --- /dev/null +++ b/icons/bookmark.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/box.svg b/icons/box.svg new file mode 100644 index 000000000..6711535ba --- /dev/null +++ b/icons/box.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/briefcase.svg b/icons/briefcase.svg new file mode 100644 index 000000000..e3af05060 --- /dev/null +++ b/icons/briefcase.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/calendar.svg b/icons/calendar.svg new file mode 100644 index 000000000..6c7fd870d --- /dev/null +++ b/icons/calendar.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/camera-off.svg b/icons/camera-off.svg new file mode 100644 index 000000000..daa3e25f0 --- /dev/null +++ b/icons/camera-off.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/camera.svg b/icons/camera.svg new file mode 100644 index 000000000..0e7f06037 --- /dev/null +++ b/icons/camera.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/cast.svg b/icons/cast.svg new file mode 100644 index 000000000..9e27cb487 --- /dev/null +++ b/icons/cast.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/check-circle.svg b/icons/check-circle.svg new file mode 100644 index 000000000..f2f4fd1af --- /dev/null +++ b/icons/check-circle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/check-square.svg b/icons/check-square.svg new file mode 100644 index 000000000..72ab7a806 --- /dev/null +++ b/icons/check-square.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/check.svg b/icons/check.svg new file mode 100644 index 000000000..1c209899d --- /dev/null +++ b/icons/check.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/chevron-down.svg b/icons/chevron-down.svg new file mode 100644 index 000000000..278c6a315 --- /dev/null +++ b/icons/chevron-down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/chevron-left.svg b/icons/chevron-left.svg new file mode 100644 index 000000000..747d46d90 --- /dev/null +++ b/icons/chevron-left.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/chevron-right.svg b/icons/chevron-right.svg new file mode 100644 index 000000000..258de414a --- /dev/null +++ b/icons/chevron-right.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/chevron-up.svg b/icons/chevron-up.svg new file mode 100644 index 000000000..4eb5ecc33 --- /dev/null +++ b/icons/chevron-up.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/chevrons-down.svg b/icons/chevrons-down.svg new file mode 100644 index 000000000..e67ef2fb0 --- /dev/null +++ b/icons/chevrons-down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/chevrons-left.svg b/icons/chevrons-left.svg new file mode 100644 index 000000000..c32e39836 --- /dev/null +++ b/icons/chevrons-left.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/chevrons-right.svg b/icons/chevrons-right.svg new file mode 100644 index 000000000..f50681454 --- /dev/null +++ b/icons/chevrons-right.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/chevrons-up.svg b/icons/chevrons-up.svg new file mode 100644 index 000000000..0eaf5183a --- /dev/null +++ b/icons/chevrons-up.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/chrome.svg b/icons/chrome.svg new file mode 100644 index 000000000..9189815eb --- /dev/null +++ b/icons/chrome.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/circle.svg b/icons/circle.svg new file mode 100644 index 000000000..b0090882b --- /dev/null +++ b/icons/circle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/clipboard.svg b/icons/clipboard.svg new file mode 100644 index 000000000..ccee454d8 --- /dev/null +++ b/icons/clipboard.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/clock.svg b/icons/clock.svg new file mode 100644 index 000000000..ea3f5e507 --- /dev/null +++ b/icons/clock.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/cloud-drizzle.svg b/icons/cloud-drizzle.svg new file mode 100644 index 000000000..13af6bb57 --- /dev/null +++ b/icons/cloud-drizzle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/cloud-lightning.svg b/icons/cloud-lightning.svg new file mode 100644 index 000000000..32d154cc0 --- /dev/null +++ b/icons/cloud-lightning.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/cloud-off.svg b/icons/cloud-off.svg new file mode 100644 index 000000000..1e1e7d60b --- /dev/null +++ b/icons/cloud-off.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/cloud-rain.svg b/icons/cloud-rain.svg new file mode 100644 index 000000000..3e0b85b09 --- /dev/null +++ b/icons/cloud-rain.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/cloud-snow.svg b/icons/cloud-snow.svg new file mode 100644 index 000000000..78e0008b4 --- /dev/null +++ b/icons/cloud-snow.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/cloud.svg b/icons/cloud.svg new file mode 100644 index 000000000..0ee0c6322 --- /dev/null +++ b/icons/cloud.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/code.svg b/icons/code.svg new file mode 100644 index 000000000..c4954b55a --- /dev/null +++ b/icons/code.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/codepen.svg b/icons/codepen.svg new file mode 100644 index 000000000..ab2a815aa --- /dev/null +++ b/icons/codepen.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/command.svg b/icons/command.svg new file mode 100644 index 000000000..93f554c34 --- /dev/null +++ b/icons/command.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/compass.svg b/icons/compass.svg new file mode 100644 index 000000000..329626080 --- /dev/null +++ b/icons/compass.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/copy.svg b/icons/copy.svg new file mode 100644 index 000000000..4e0b09f19 --- /dev/null +++ b/icons/copy.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/corner-down-left.svg b/icons/corner-down-left.svg new file mode 100644 index 000000000..9fffb3e9f --- /dev/null +++ b/icons/corner-down-left.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/corner-down-right.svg b/icons/corner-down-right.svg new file mode 100644 index 000000000..b27d408dd --- /dev/null +++ b/icons/corner-down-right.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/corner-left-down.svg b/icons/corner-left-down.svg new file mode 100644 index 000000000..24b8375c5 --- /dev/null +++ b/icons/corner-left-down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/corner-left-up.svg b/icons/corner-left-up.svg new file mode 100644 index 000000000..e54527cd7 --- /dev/null +++ b/icons/corner-left-up.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/corner-right-down.svg b/icons/corner-right-down.svg new file mode 100644 index 000000000..a49e6d6c0 --- /dev/null +++ b/icons/corner-right-down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/corner-right-up.svg b/icons/corner-right-up.svg new file mode 100644 index 000000000..a5c5dce55 --- /dev/null +++ b/icons/corner-right-up.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/corner-up-left.svg b/icons/corner-up-left.svg new file mode 100644 index 000000000..0a1ffd613 --- /dev/null +++ b/icons/corner-up-left.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/corner-up-right.svg b/icons/corner-up-right.svg new file mode 100644 index 000000000..0b8f961b7 --- /dev/null +++ b/icons/corner-up-right.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/cpu.svg b/icons/cpu.svg new file mode 100644 index 000000000..2ed16ef74 --- /dev/null +++ b/icons/cpu.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/credit-card.svg b/icons/credit-card.svg new file mode 100644 index 000000000..1b7fd029d --- /dev/null +++ b/icons/credit-card.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/crop.svg b/icons/crop.svg new file mode 100644 index 000000000..ffbfd0456 --- /dev/null +++ b/icons/crop.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/crosshair.svg b/icons/crosshair.svg new file mode 100644 index 000000000..ba3940150 --- /dev/null +++ b/icons/crosshair.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/database.svg b/icons/database.svg new file mode 100644 index 000000000..c296fbcfd --- /dev/null +++ b/icons/database.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/delete.svg b/icons/delete.svg new file mode 100644 index 000000000..8c6074b96 --- /dev/null +++ b/icons/delete.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/disc.svg b/icons/disc.svg new file mode 100644 index 000000000..2595b4446 --- /dev/null +++ b/icons/disc.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/dollar-sign.svg b/icons/dollar-sign.svg new file mode 100644 index 000000000..1a124d269 --- /dev/null +++ b/icons/dollar-sign.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/download-cloud.svg b/icons/download-cloud.svg new file mode 100644 index 000000000..f3126fc39 --- /dev/null +++ b/icons/download-cloud.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/download.svg b/icons/download.svg new file mode 100644 index 000000000..76767a924 --- /dev/null +++ b/icons/download.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/droplet.svg b/icons/droplet.svg new file mode 100644 index 000000000..ca093014e --- /dev/null +++ b/icons/droplet.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/edit-2.svg b/icons/edit-2.svg new file mode 100644 index 000000000..867fde42e --- /dev/null +++ b/icons/edit-2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/edit-3.svg b/icons/edit-3.svg new file mode 100644 index 000000000..310732cc4 --- /dev/null +++ b/icons/edit-3.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/edit.svg b/icons/edit.svg new file mode 100644 index 000000000..ed7fdfdd5 --- /dev/null +++ b/icons/edit.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/external-link.svg b/icons/external-link.svg new file mode 100644 index 000000000..6236df3e0 --- /dev/null +++ b/icons/external-link.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/eye-off.svg b/icons/eye-off.svg new file mode 100644 index 000000000..77c54cb41 --- /dev/null +++ b/icons/eye-off.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/eye.svg b/icons/eye.svg new file mode 100644 index 000000000..9cde24372 --- /dev/null +++ b/icons/eye.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/facebook.svg b/icons/facebook.svg new file mode 100644 index 000000000..2570f56a0 --- /dev/null +++ b/icons/facebook.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/fast-forward.svg b/icons/fast-forward.svg new file mode 100644 index 000000000..fa39877aa --- /dev/null +++ b/icons/fast-forward.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/feather.svg b/icons/feather.svg new file mode 100644 index 000000000..3ce3d84ca --- /dev/null +++ b/icons/feather.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/file-minus.svg b/icons/file-minus.svg new file mode 100644 index 000000000..345756ef1 --- /dev/null +++ b/icons/file-minus.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/file-plus.svg b/icons/file-plus.svg new file mode 100644 index 000000000..eed120047 --- /dev/null +++ b/icons/file-plus.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/file-text.svg b/icons/file-text.svg new file mode 100644 index 000000000..4197ddd40 --- /dev/null +++ b/icons/file-text.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/file.svg b/icons/file.svg new file mode 100644 index 000000000..378519ab6 --- /dev/null +++ b/icons/file.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/film.svg b/icons/film.svg new file mode 100644 index 000000000..ac46360d2 --- /dev/null +++ b/icons/film.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/filter.svg b/icons/filter.svg new file mode 100644 index 000000000..38a47e043 --- /dev/null +++ b/icons/filter.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/flag.svg b/icons/flag.svg new file mode 100644 index 000000000..037737cb6 --- /dev/null +++ b/icons/flag.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/folder-minus.svg b/icons/folder-minus.svg new file mode 100644 index 000000000..d5b7af65f --- /dev/null +++ b/icons/folder-minus.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/folder-plus.svg b/icons/folder-plus.svg new file mode 100644 index 000000000..898f2fc98 --- /dev/null +++ b/icons/folder-plus.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/folder.svg b/icons/folder.svg new file mode 100644 index 000000000..134458b98 --- /dev/null +++ b/icons/folder.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/gift.svg b/icons/gift.svg new file mode 100644 index 000000000..d2c14bd69 --- /dev/null +++ b/icons/gift.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/git-branch.svg b/icons/git-branch.svg new file mode 100644 index 000000000..440037264 --- /dev/null +++ b/icons/git-branch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/git-commit.svg b/icons/git-commit.svg new file mode 100644 index 000000000..e959d725a --- /dev/null +++ b/icons/git-commit.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/git-merge.svg b/icons/git-merge.svg new file mode 100644 index 000000000..c65fffddc --- /dev/null +++ b/icons/git-merge.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/git-pull-request.svg b/icons/git-pull-request.svg new file mode 100644 index 000000000..fc80bdfd5 --- /dev/null +++ b/icons/git-pull-request.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/github.svg b/icons/github.svg new file mode 100644 index 000000000..ff0af4811 --- /dev/null +++ b/icons/github.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/gitlab.svg b/icons/gitlab.svg new file mode 100644 index 000000000..85d54a1ea --- /dev/null +++ b/icons/gitlab.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/globe.svg b/icons/globe.svg new file mode 100644 index 000000000..0a0586d36 --- /dev/null +++ b/icons/globe.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/grid.svg b/icons/grid.svg new file mode 100644 index 000000000..8ef2e9d87 --- /dev/null +++ b/icons/grid.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/hard-drive.svg b/icons/hard-drive.svg new file mode 100644 index 000000000..c08131d69 --- /dev/null +++ b/icons/hard-drive.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/hash.svg b/icons/hash.svg new file mode 100644 index 000000000..c9c8d41f6 --- /dev/null +++ b/icons/hash.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/headphones.svg b/icons/headphones.svg new file mode 100644 index 000000000..fd8915b48 --- /dev/null +++ b/icons/headphones.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/heart.svg b/icons/heart.svg new file mode 100644 index 000000000..a083b7e2a --- /dev/null +++ b/icons/heart.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/help-circle.svg b/icons/help-circle.svg new file mode 100644 index 000000000..c9cd11a81 --- /dev/null +++ b/icons/help-circle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/home.svg b/icons/home.svg new file mode 100644 index 000000000..7bb31b23d --- /dev/null +++ b/icons/home.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/image.svg b/icons/image.svg new file mode 100644 index 000000000..a7d84b98c --- /dev/null +++ b/icons/image.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/inbox.svg b/icons/inbox.svg new file mode 100644 index 000000000..03a13b4e4 --- /dev/null +++ b/icons/inbox.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/info.svg b/icons/info.svg new file mode 100644 index 000000000..332616d80 --- /dev/null +++ b/icons/info.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/instagram.svg b/icons/instagram.svg new file mode 100644 index 000000000..c0a956289 --- /dev/null +++ b/icons/instagram.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/italic.svg b/icons/italic.svg new file mode 100644 index 000000000..a123d371a --- /dev/null +++ b/icons/italic.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/layers.svg b/icons/layers.svg new file mode 100644 index 000000000..ea788c226 --- /dev/null +++ b/icons/layers.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/layout.svg b/icons/layout.svg new file mode 100644 index 000000000..28743d928 --- /dev/null +++ b/icons/layout.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/life-buoy.svg b/icons/life-buoy.svg new file mode 100644 index 000000000..54c2bd7dd --- /dev/null +++ b/icons/life-buoy.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/link-2.svg b/icons/link-2.svg new file mode 100644 index 000000000..8cc7f6dda --- /dev/null +++ b/icons/link-2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/link.svg b/icons/link.svg new file mode 100644 index 000000000..c89dd41c2 --- /dev/null +++ b/icons/link.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/linkedin.svg b/icons/linkedin.svg new file mode 100644 index 000000000..395310945 --- /dev/null +++ b/icons/linkedin.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/list.svg b/icons/list.svg new file mode 100644 index 000000000..e7344989f --- /dev/null +++ b/icons/list.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/loader.svg b/icons/loader.svg new file mode 100644 index 000000000..e1a70c127 --- /dev/null +++ b/icons/loader.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/lock.svg b/icons/lock.svg new file mode 100644 index 000000000..de09d9db3 --- /dev/null +++ b/icons/lock.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/log-in.svg b/icons/log-in.svg new file mode 100644 index 000000000..ba0da59a1 --- /dev/null +++ b/icons/log-in.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/log-out.svg b/icons/log-out.svg new file mode 100644 index 000000000..c9002c903 --- /dev/null +++ b/icons/log-out.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/mail.svg b/icons/mail.svg new file mode 100644 index 000000000..2af169e83 --- /dev/null +++ b/icons/mail.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/map-pin.svg b/icons/map-pin.svg new file mode 100644 index 000000000..d5548e92c --- /dev/null +++ b/icons/map-pin.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/map.svg b/icons/map.svg new file mode 100644 index 000000000..ecebd7bf7 --- /dev/null +++ b/icons/map.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/maximize-2.svg b/icons/maximize-2.svg new file mode 100644 index 000000000..e41fc0b73 --- /dev/null +++ b/icons/maximize-2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/maximize.svg b/icons/maximize.svg new file mode 100644 index 000000000..fc3051894 --- /dev/null +++ b/icons/maximize.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/menu.svg b/icons/menu.svg new file mode 100644 index 000000000..e8a84a952 --- /dev/null +++ b/icons/menu.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/message-circle.svg b/icons/message-circle.svg new file mode 100644 index 000000000..4b21b32b6 --- /dev/null +++ b/icons/message-circle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/message-square.svg b/icons/message-square.svg new file mode 100644 index 000000000..6a2e4e596 --- /dev/null +++ b/icons/message-square.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/mic-off.svg b/icons/mic-off.svg new file mode 100644 index 000000000..0786219cb --- /dev/null +++ b/icons/mic-off.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/mic.svg b/icons/mic.svg new file mode 100644 index 000000000..dc5f780ce --- /dev/null +++ b/icons/mic.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/minimize-2.svg b/icons/minimize-2.svg new file mode 100644 index 000000000..a720fa6c3 --- /dev/null +++ b/icons/minimize-2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/minimize.svg b/icons/minimize.svg new file mode 100644 index 000000000..46d611969 --- /dev/null +++ b/icons/minimize.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/minus-circle.svg b/icons/minus-circle.svg new file mode 100644 index 000000000..80c0de1e1 --- /dev/null +++ b/icons/minus-circle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/minus-square.svg b/icons/minus-square.svg new file mode 100644 index 000000000..4862832a8 --- /dev/null +++ b/icons/minus-square.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/minus.svg b/icons/minus.svg new file mode 100644 index 000000000..93cc73401 --- /dev/null +++ b/icons/minus.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/monitor.svg b/icons/monitor.svg new file mode 100644 index 000000000..6c3556db2 --- /dev/null +++ b/icons/monitor.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/moon.svg b/icons/moon.svg new file mode 100644 index 000000000..dbf7c6cf5 --- /dev/null +++ b/icons/moon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/more-horizontal.svg b/icons/more-horizontal.svg new file mode 100644 index 000000000..dc6a85564 --- /dev/null +++ b/icons/more-horizontal.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/more-vertical.svg b/icons/more-vertical.svg new file mode 100644 index 000000000..cba6958f2 --- /dev/null +++ b/icons/more-vertical.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/move.svg b/icons/move.svg new file mode 100644 index 000000000..4e251b562 --- /dev/null +++ b/icons/move.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/music.svg b/icons/music.svg new file mode 100644 index 000000000..2f804f96f --- /dev/null +++ b/icons/music.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/navigation-2.svg b/icons/navigation-2.svg new file mode 100644 index 000000000..ae31db96b --- /dev/null +++ b/icons/navigation-2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/navigation.svg b/icons/navigation.svg new file mode 100644 index 000000000..f600a4145 --- /dev/null +++ b/icons/navigation.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/octagon.svg b/icons/octagon.svg new file mode 100644 index 000000000..124c5483d --- /dev/null +++ b/icons/octagon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/package.svg b/icons/package.svg new file mode 100644 index 000000000..0c9c823eb --- /dev/null +++ b/icons/package.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/paperclip.svg b/icons/paperclip.svg new file mode 100644 index 000000000..b1f69b7a7 --- /dev/null +++ b/icons/paperclip.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/pause-circle.svg b/icons/pause-circle.svg new file mode 100644 index 000000000..f6b1a8dfd --- /dev/null +++ b/icons/pause-circle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/pause.svg b/icons/pause.svg new file mode 100644 index 000000000..4e78038de --- /dev/null +++ b/icons/pause.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/percent.svg b/icons/percent.svg new file mode 100644 index 000000000..2cb9719da --- /dev/null +++ b/icons/percent.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/phone-call.svg b/icons/phone-call.svg new file mode 100644 index 000000000..8b8666026 --- /dev/null +++ b/icons/phone-call.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/phone-forwarded.svg b/icons/phone-forwarded.svg new file mode 100644 index 000000000..aa21befcb --- /dev/null +++ b/icons/phone-forwarded.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/phone-incoming.svg b/icons/phone-incoming.svg new file mode 100644 index 000000000..b2d523a87 --- /dev/null +++ b/icons/phone-incoming.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/phone-missed.svg b/icons/phone-missed.svg new file mode 100644 index 000000000..4950f09fa --- /dev/null +++ b/icons/phone-missed.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/phone-off.svg b/icons/phone-off.svg new file mode 100644 index 000000000..4d00fb3d5 --- /dev/null +++ b/icons/phone-off.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/phone-outgoing.svg b/icons/phone-outgoing.svg new file mode 100644 index 000000000..fea27a37d --- /dev/null +++ b/icons/phone-outgoing.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/phone.svg b/icons/phone.svg new file mode 100644 index 000000000..2a35154a9 --- /dev/null +++ b/icons/phone.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/pie-chart.svg b/icons/pie-chart.svg new file mode 100644 index 000000000..b5bbe67c2 --- /dev/null +++ b/icons/pie-chart.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/play-circle.svg b/icons/play-circle.svg new file mode 100644 index 000000000..8766dc7bf --- /dev/null +++ b/icons/play-circle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/play.svg b/icons/play.svg new file mode 100644 index 000000000..fd76e30d6 --- /dev/null +++ b/icons/play.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/plus-circle.svg b/icons/plus-circle.svg new file mode 100644 index 000000000..4291ff052 --- /dev/null +++ b/icons/plus-circle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/plus-square.svg b/icons/plus-square.svg new file mode 100644 index 000000000..c380e24bd --- /dev/null +++ b/icons/plus-square.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/plus.svg b/icons/plus.svg new file mode 100644 index 000000000..703c5b7b2 --- /dev/null +++ b/icons/plus.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/pocket.svg b/icons/pocket.svg new file mode 100644 index 000000000..a3b256190 --- /dev/null +++ b/icons/pocket.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/power.svg b/icons/power.svg new file mode 100644 index 000000000..598308fce --- /dev/null +++ b/icons/power.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/printer.svg b/icons/printer.svg new file mode 100644 index 000000000..8a9a7ace1 --- /dev/null +++ b/icons/printer.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/radio.svg b/icons/radio.svg new file mode 100644 index 000000000..5abfcd13c --- /dev/null +++ b/icons/radio.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/refresh-ccw.svg b/icons/refresh-ccw.svg new file mode 100644 index 000000000..10cff0eca --- /dev/null +++ b/icons/refresh-ccw.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/refresh-cw.svg b/icons/refresh-cw.svg new file mode 100644 index 000000000..06c358dd0 --- /dev/null +++ b/icons/refresh-cw.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/repeat.svg b/icons/repeat.svg new file mode 100644 index 000000000..c7657b08e --- /dev/null +++ b/icons/repeat.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/rewind.svg b/icons/rewind.svg new file mode 100644 index 000000000..7b0fa3d55 --- /dev/null +++ b/icons/rewind.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/rotate-ccw.svg b/icons/rotate-ccw.svg new file mode 100644 index 000000000..ade5dc426 --- /dev/null +++ b/icons/rotate-ccw.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/rotate-cw.svg b/icons/rotate-cw.svg new file mode 100644 index 000000000..83dca3514 --- /dev/null +++ b/icons/rotate-cw.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/rss.svg b/icons/rss.svg new file mode 100644 index 000000000..c9a136845 --- /dev/null +++ b/icons/rss.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/save.svg b/icons/save.svg new file mode 100644 index 000000000..46c72990d --- /dev/null +++ b/icons/save.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/scissors.svg b/icons/scissors.svg new file mode 100644 index 000000000..fd0647ff6 --- /dev/null +++ b/icons/scissors.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/search.svg b/icons/search.svg new file mode 100644 index 000000000..8710306dd --- /dev/null +++ b/icons/search.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/send.svg b/icons/send.svg new file mode 100644 index 000000000..42ef2a243 --- /dev/null +++ b/icons/send.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/server.svg b/icons/server.svg new file mode 100644 index 000000000..d1f6d4870 --- /dev/null +++ b/icons/server.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/settings.svg b/icons/settings.svg new file mode 100644 index 000000000..19c27265a --- /dev/null +++ b/icons/settings.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/share-2.svg b/icons/share-2.svg new file mode 100644 index 000000000..09b1c7bcd --- /dev/null +++ b/icons/share-2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/share.svg b/icons/share.svg new file mode 100644 index 000000000..df38c14d6 --- /dev/null +++ b/icons/share.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/shield-off.svg b/icons/shield-off.svg new file mode 100644 index 000000000..18692ddd8 --- /dev/null +++ b/icons/shield-off.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/shield.svg b/icons/shield.svg new file mode 100644 index 000000000..c7c484137 --- /dev/null +++ b/icons/shield.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/shopping-bag.svg b/icons/shopping-bag.svg new file mode 100644 index 000000000..eaa39e815 --- /dev/null +++ b/icons/shopping-bag.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/shopping-cart.svg b/icons/shopping-cart.svg new file mode 100644 index 000000000..17a40bf47 --- /dev/null +++ b/icons/shopping-cart.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/shuffle.svg b/icons/shuffle.svg new file mode 100644 index 000000000..8cfb5db5d --- /dev/null +++ b/icons/shuffle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/sidebar.svg b/icons/sidebar.svg new file mode 100644 index 000000000..8ba817e6f --- /dev/null +++ b/icons/sidebar.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/skip-back.svg b/icons/skip-back.svg new file mode 100644 index 000000000..88d024e2f --- /dev/null +++ b/icons/skip-back.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/skip-forward.svg b/icons/skip-forward.svg new file mode 100644 index 000000000..f3fdac3ae --- /dev/null +++ b/icons/skip-forward.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/slack.svg b/icons/slack.svg new file mode 100644 index 000000000..0136cb41b --- /dev/null +++ b/icons/slack.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/slash.svg b/icons/slash.svg new file mode 100644 index 000000000..f4131b85f --- /dev/null +++ b/icons/slash.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/sliders.svg b/icons/sliders.svg new file mode 100644 index 000000000..19c938521 --- /dev/null +++ b/icons/sliders.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/smartphone.svg b/icons/smartphone.svg new file mode 100644 index 000000000..f7d5ba8eb --- /dev/null +++ b/icons/smartphone.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/speaker.svg b/icons/speaker.svg new file mode 100644 index 000000000..8e7ffdaf5 --- /dev/null +++ b/icons/speaker.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/square.svg b/icons/square.svg new file mode 100644 index 000000000..6eabc77db --- /dev/null +++ b/icons/square.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/star.svg b/icons/star.svg new file mode 100644 index 000000000..bcdc31aa4 --- /dev/null +++ b/icons/star.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/stop-circle.svg b/icons/stop-circle.svg new file mode 100644 index 000000000..c10d9d47a --- /dev/null +++ b/icons/stop-circle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/sun.svg b/icons/sun.svg new file mode 100644 index 000000000..7f51b94d1 --- /dev/null +++ b/icons/sun.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/sunrise.svg b/icons/sunrise.svg new file mode 100644 index 000000000..eff4b1e48 --- /dev/null +++ b/icons/sunrise.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/sunset.svg b/icons/sunset.svg new file mode 100644 index 000000000..a5a222154 --- /dev/null +++ b/icons/sunset.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/tablet.svg b/icons/tablet.svg new file mode 100644 index 000000000..76f584949 --- /dev/null +++ b/icons/tablet.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/tag.svg b/icons/tag.svg new file mode 100644 index 000000000..b5e495cbb --- /dev/null +++ b/icons/tag.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/target.svg b/icons/target.svg new file mode 100644 index 000000000..be84b17c8 --- /dev/null +++ b/icons/target.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/terminal.svg b/icons/terminal.svg new file mode 100644 index 000000000..af459c04e --- /dev/null +++ b/icons/terminal.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/thermometer.svg b/icons/thermometer.svg new file mode 100644 index 000000000..33142cccc --- /dev/null +++ b/icons/thermometer.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/thumbs-down.svg b/icons/thumbs-down.svg new file mode 100644 index 000000000..3e7bcd6d9 --- /dev/null +++ b/icons/thumbs-down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/thumbs-up.svg b/icons/thumbs-up.svg new file mode 100644 index 000000000..226c44d85 --- /dev/null +++ b/icons/thumbs-up.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/toggle-left.svg b/icons/toggle-left.svg new file mode 100644 index 000000000..240be290b --- /dev/null +++ b/icons/toggle-left.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/toggle-right.svg b/icons/toggle-right.svg new file mode 100644 index 000000000..fc6e81c19 --- /dev/null +++ b/icons/toggle-right.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/trash-2.svg b/icons/trash-2.svg new file mode 100644 index 000000000..f24d55bf6 --- /dev/null +++ b/icons/trash-2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/trash.svg b/icons/trash.svg new file mode 100644 index 000000000..55650bd44 --- /dev/null +++ b/icons/trash.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/trending-down.svg b/icons/trending-down.svg new file mode 100644 index 000000000..a9d4cfa54 --- /dev/null +++ b/icons/trending-down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/trending-up.svg b/icons/trending-up.svg new file mode 100644 index 000000000..52026a4df --- /dev/null +++ b/icons/trending-up.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/triangle.svg b/icons/triangle.svg new file mode 100644 index 000000000..274b65284 --- /dev/null +++ b/icons/triangle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/truck.svg b/icons/truck.svg new file mode 100644 index 000000000..33898373e --- /dev/null +++ b/icons/truck.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/tv.svg b/icons/tv.svg new file mode 100644 index 000000000..955bbfff0 --- /dev/null +++ b/icons/tv.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/twitter.svg b/icons/twitter.svg new file mode 100644 index 000000000..f8886eca8 --- /dev/null +++ b/icons/twitter.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/type.svg b/icons/type.svg new file mode 100644 index 000000000..c6b2de334 --- /dev/null +++ b/icons/type.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/umbrella.svg b/icons/umbrella.svg new file mode 100644 index 000000000..dc77c0cb0 --- /dev/null +++ b/icons/umbrella.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/underline.svg b/icons/underline.svg new file mode 100644 index 000000000..044945d4a --- /dev/null +++ b/icons/underline.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/unlock.svg b/icons/unlock.svg new file mode 100644 index 000000000..01dc35973 --- /dev/null +++ b/icons/unlock.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/upload-cloud.svg b/icons/upload-cloud.svg new file mode 100644 index 000000000..a1db297c5 --- /dev/null +++ b/icons/upload-cloud.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/upload.svg b/icons/upload.svg new file mode 100644 index 000000000..91eaff755 --- /dev/null +++ b/icons/upload.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/user-check.svg b/icons/user-check.svg new file mode 100644 index 000000000..42f91b29d --- /dev/null +++ b/icons/user-check.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/user-minus.svg b/icons/user-minus.svg new file mode 100644 index 000000000..44b75f5a9 --- /dev/null +++ b/icons/user-minus.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/user-plus.svg b/icons/user-plus.svg new file mode 100644 index 000000000..21460f6ec --- /dev/null +++ b/icons/user-plus.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/user-x.svg b/icons/user-x.svg new file mode 100644 index 000000000..0c41a4819 --- /dev/null +++ b/icons/user-x.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/user.svg b/icons/user.svg new file mode 100644 index 000000000..7bb5f2911 --- /dev/null +++ b/icons/user.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/users.svg b/icons/users.svg new file mode 100644 index 000000000..aacf6b08e --- /dev/null +++ b/icons/users.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/video-off.svg b/icons/video-off.svg new file mode 100644 index 000000000..08ec69738 --- /dev/null +++ b/icons/video-off.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/video.svg b/icons/video.svg new file mode 100644 index 000000000..8ff156aa9 --- /dev/null +++ b/icons/video.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/voicemail.svg b/icons/voicemail.svg new file mode 100644 index 000000000..5d78a8e79 --- /dev/null +++ b/icons/voicemail.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/volume-1.svg b/icons/volume-1.svg new file mode 100644 index 000000000..150e875fc --- /dev/null +++ b/icons/volume-1.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/volume-2.svg b/icons/volume-2.svg new file mode 100644 index 000000000..03d521c7e --- /dev/null +++ b/icons/volume-2.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/volume-x.svg b/icons/volume-x.svg new file mode 100644 index 000000000..be4424069 --- /dev/null +++ b/icons/volume-x.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/volume.svg b/icons/volume.svg new file mode 100644 index 000000000..53bfe15ee --- /dev/null +++ b/icons/volume.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/watch.svg b/icons/watch.svg new file mode 100644 index 000000000..a1099da33 --- /dev/null +++ b/icons/watch.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/wifi-off.svg b/icons/wifi-off.svg new file mode 100644 index 000000000..79430c3c2 --- /dev/null +++ b/icons/wifi-off.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/wifi.svg b/icons/wifi.svg new file mode 100644 index 000000000..2e1a7fda4 --- /dev/null +++ b/icons/wifi.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/wind.svg b/icons/wind.svg new file mode 100644 index 000000000..82b364681 --- /dev/null +++ b/icons/wind.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/x-circle.svg b/icons/x-circle.svg new file mode 100644 index 000000000..94aad5e56 --- /dev/null +++ b/icons/x-circle.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/x-square.svg b/icons/x-square.svg new file mode 100644 index 000000000..7677c3871 --- /dev/null +++ b/icons/x-square.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/x.svg b/icons/x.svg new file mode 100644 index 000000000..7d5875ca8 --- /dev/null +++ b/icons/x.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/youtube.svg b/icons/youtube.svg new file mode 100644 index 000000000..c48243850 --- /dev/null +++ b/icons/youtube.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/zap-off.svg b/icons/zap-off.svg new file mode 100644 index 000000000..c636f8bbd --- /dev/null +++ b/icons/zap-off.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/zap.svg b/icons/zap.svg new file mode 100644 index 000000000..8fdafa934 --- /dev/null +++ b/icons/zap.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/zoom-in.svg b/icons/zoom-in.svg new file mode 100644 index 000000000..da4572d27 --- /dev/null +++ b/icons/zoom-in.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/zoom-out.svg b/icons/zoom-out.svg new file mode 100644 index 000000000..fd678d728 --- /dev/null +++ b/icons/zoom-out.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/img/avatars/000f.jpg b/img/avatars/000f.jpg new file mode 100644 index 000000000..a63f8ce57 Binary files /dev/null and b/img/avatars/000f.jpg differ diff --git a/img/avatars/000m.jpg b/img/avatars/000m.jpg new file mode 100644 index 000000000..62ded4e6a Binary files /dev/null and b/img/avatars/000m.jpg differ diff --git a/img/avatars/001f.jpg b/img/avatars/001f.jpg new file mode 100644 index 000000000..3cab57987 Binary files /dev/null and b/img/avatars/001f.jpg differ diff --git a/img/avatars/001m.jpg b/img/avatars/001m.jpg new file mode 100644 index 000000000..7b1672ff6 Binary files /dev/null and b/img/avatars/001m.jpg differ diff --git a/img/avatars/002f.jpg b/img/avatars/002f.jpg new file mode 100644 index 000000000..339130427 Binary files /dev/null and b/img/avatars/002f.jpg differ diff --git a/img/avatars/002m.jpg b/img/avatars/002m.jpg new file mode 100644 index 000000000..6d9069658 Binary files /dev/null and b/img/avatars/002m.jpg differ diff --git a/img/avatars/003f.jpg b/img/avatars/003f.jpg new file mode 100644 index 000000000..3c40b3c96 Binary files /dev/null and b/img/avatars/003f.jpg differ diff --git a/img/avatars/003m.jpg b/img/avatars/003m.jpg new file mode 100644 index 000000000..a6a39bfc8 Binary files /dev/null and b/img/avatars/003m.jpg differ diff --git a/img/avatars/004f.jpg b/img/avatars/004f.jpg new file mode 100644 index 000000000..96e193445 Binary files /dev/null and b/img/avatars/004f.jpg differ diff --git a/img/avatars/004m.jpg b/img/avatars/004m.jpg new file mode 100644 index 000000000..5e6157e2b Binary files /dev/null and b/img/avatars/004m.jpg differ diff --git a/img/avatars/005f.jpg b/img/avatars/005f.jpg new file mode 100644 index 000000000..482c7fdbd Binary files /dev/null and b/img/avatars/005f.jpg differ diff --git a/img/avatars/005m.jpg b/img/avatars/005m.jpg new file mode 100644 index 000000000..9f0cf1158 Binary files /dev/null and b/img/avatars/005m.jpg differ diff --git a/img/avatars/006f.jpg b/img/avatars/006f.jpg new file mode 100644 index 000000000..97e4885ed Binary files /dev/null and b/img/avatars/006f.jpg differ diff --git a/img/avatars/006m.jpg b/img/avatars/006m.jpg new file mode 100644 index 000000000..5609a0edf Binary files /dev/null and b/img/avatars/006m.jpg differ diff --git a/img/avatars/007f.jpg b/img/avatars/007f.jpg new file mode 100644 index 000000000..7839f26a7 Binary files /dev/null and b/img/avatars/007f.jpg differ diff --git a/img/avatars/007m.jpg b/img/avatars/007m.jpg new file mode 100644 index 000000000..5c3569b62 Binary files /dev/null and b/img/avatars/007m.jpg differ diff --git a/img/avatars/008f.jpg b/img/avatars/008f.jpg new file mode 100644 index 000000000..21e482dc7 Binary files /dev/null and b/img/avatars/008f.jpg differ diff --git a/img/avatars/008m.jpg b/img/avatars/008m.jpg new file mode 100644 index 000000000..9ff133371 Binary files /dev/null and b/img/avatars/008m.jpg differ diff --git a/img/avatars/009f.jpg b/img/avatars/009f.jpg new file mode 100644 index 000000000..5aa1a0e92 Binary files /dev/null and b/img/avatars/009f.jpg differ diff --git a/img/avatars/009m.jpg b/img/avatars/009m.jpg new file mode 100644 index 000000000..af5c8baa2 Binary files /dev/null and b/img/avatars/009m.jpg differ diff --git a/img/avatars/010f.jpg b/img/avatars/010f.jpg new file mode 100644 index 000000000..d4ec655fb Binary files /dev/null and b/img/avatars/010f.jpg differ diff --git a/img/avatars/010m.jpg b/img/avatars/010m.jpg new file mode 100644 index 000000000..49782c95b Binary files /dev/null and b/img/avatars/010m.jpg differ diff --git a/img/avatars/011f.jpg b/img/avatars/011f.jpg new file mode 100644 index 000000000..b37e6b2bc Binary files /dev/null and b/img/avatars/011f.jpg differ diff --git a/img/avatars/011m.jpg b/img/avatars/011m.jpg new file mode 100644 index 000000000..3cdf95a07 Binary files /dev/null and b/img/avatars/011m.jpg differ diff --git a/img/avatars/012f.jpg b/img/avatars/012f.jpg new file mode 100644 index 000000000..78ae148a6 Binary files /dev/null and b/img/avatars/012f.jpg differ diff --git a/img/avatars/012m.jpg b/img/avatars/012m.jpg new file mode 100644 index 000000000..935849110 Binary files /dev/null and b/img/avatars/012m.jpg differ diff --git a/img/avatars/013f.jpg b/img/avatars/013f.jpg new file mode 100644 index 000000000..2b918d51d Binary files /dev/null and b/img/avatars/013f.jpg differ diff --git a/img/avatars/013m.jpg b/img/avatars/013m.jpg new file mode 100644 index 000000000..9ffd98854 Binary files /dev/null and b/img/avatars/013m.jpg differ diff --git a/img/avatars/014f.jpg b/img/avatars/014f.jpg new file mode 100644 index 000000000..6ab25af13 Binary files /dev/null and b/img/avatars/014f.jpg differ diff --git a/img/avatars/014m.jpg b/img/avatars/014m.jpg new file mode 100644 index 000000000..2481114b7 Binary files /dev/null and b/img/avatars/014m.jpg differ diff --git a/img/avatars/015f.jpg b/img/avatars/015f.jpg new file mode 100644 index 000000000..2207bc3fc Binary files /dev/null and b/img/avatars/015f.jpg differ diff --git a/img/avatars/015m.jpg b/img/avatars/015m.jpg new file mode 100644 index 000000000..8c3ac42c4 Binary files /dev/null and b/img/avatars/015m.jpg differ diff --git a/img/avatars/016f.jpg b/img/avatars/016f.jpg new file mode 100644 index 000000000..f17a784d8 Binary files /dev/null and b/img/avatars/016f.jpg differ diff --git a/img/avatars/016m.jpg b/img/avatars/016m.jpg new file mode 100644 index 000000000..54c74a888 Binary files /dev/null and b/img/avatars/016m.jpg differ diff --git a/img/avatars/017f.jpg b/img/avatars/017f.jpg new file mode 100644 index 000000000..209b5c767 Binary files /dev/null and b/img/avatars/017f.jpg differ diff --git a/img/avatars/017m.jpg b/img/avatars/017m.jpg new file mode 100644 index 000000000..ad943c9de Binary files /dev/null and b/img/avatars/017m.jpg differ diff --git a/img/avatars/018f.jpg b/img/avatars/018f.jpg new file mode 100644 index 000000000..e6dbae8e2 Binary files /dev/null and b/img/avatars/018f.jpg differ diff --git a/img/avatars/018m.jpg b/img/avatars/018m.jpg new file mode 100644 index 000000000..8004cc411 Binary files /dev/null and b/img/avatars/018m.jpg differ diff --git a/img/avatars/019f.jpg b/img/avatars/019f.jpg new file mode 100644 index 000000000..7a207ed19 Binary files /dev/null and b/img/avatars/019f.jpg differ diff --git a/img/avatars/019m.jpg b/img/avatars/019m.jpg new file mode 100644 index 000000000..e2a2b579e Binary files /dev/null and b/img/avatars/019m.jpg differ diff --git a/img/avatars/020f.jpg b/img/avatars/020f.jpg new file mode 100644 index 000000000..d665a3d00 Binary files /dev/null and b/img/avatars/020f.jpg differ diff --git a/img/avatars/020m.jpg b/img/avatars/020m.jpg new file mode 100644 index 000000000..6438e80b9 Binary files /dev/null and b/img/avatars/020m.jpg differ diff --git a/img/avatars/021f.jpg b/img/avatars/021f.jpg new file mode 100644 index 000000000..3c89167a0 Binary files /dev/null and b/img/avatars/021f.jpg differ diff --git a/img/avatars/021m.jpg b/img/avatars/021m.jpg new file mode 100644 index 000000000..076529467 Binary files /dev/null and b/img/avatars/021m.jpg differ diff --git a/img/avatars/022f.jpg b/img/avatars/022f.jpg new file mode 100644 index 000000000..fdf962529 Binary files /dev/null and b/img/avatars/022f.jpg differ diff --git a/img/avatars/022m.jpg b/img/avatars/022m.jpg new file mode 100644 index 000000000..3f1fc8379 Binary files /dev/null and b/img/avatars/022m.jpg differ diff --git a/img/avatars/023f.jpg b/img/avatars/023f.jpg new file mode 100644 index 000000000..1c2ea1bc7 Binary files /dev/null and b/img/avatars/023f.jpg differ diff --git a/img/avatars/023m.jpg b/img/avatars/023m.jpg new file mode 100644 index 000000000..40e2da737 Binary files /dev/null and b/img/avatars/023m.jpg differ diff --git a/img/avatars/024f.jpg b/img/avatars/024f.jpg new file mode 100644 index 000000000..834f223e0 Binary files /dev/null and b/img/avatars/024f.jpg differ diff --git a/img/avatars/024m.jpg b/img/avatars/024m.jpg new file mode 100644 index 000000000..45dd15e97 Binary files /dev/null and b/img/avatars/024m.jpg differ diff --git a/img/avatars/025f.jpg b/img/avatars/025f.jpg new file mode 100644 index 000000000..b5cabcd22 Binary files /dev/null and b/img/avatars/025f.jpg differ diff --git a/img/avatars/025m.jpg b/img/avatars/025m.jpg new file mode 100644 index 000000000..62ea75fb8 Binary files /dev/null and b/img/avatars/025m.jpg differ diff --git a/img/avatars/026f.jpg b/img/avatars/026f.jpg new file mode 100644 index 000000000..efca240f9 Binary files /dev/null and b/img/avatars/026f.jpg differ diff --git a/img/avatars/026m.jpg b/img/avatars/026m.jpg new file mode 100644 index 000000000..85197c405 Binary files /dev/null and b/img/avatars/026m.jpg differ diff --git a/img/avatars/027f.jpg b/img/avatars/027f.jpg new file mode 100644 index 000000000..2683f0aba Binary files /dev/null and b/img/avatars/027f.jpg differ diff --git a/img/avatars/027m.jpg b/img/avatars/027m.jpg new file mode 100644 index 000000000..b639e97eb Binary files /dev/null and b/img/avatars/027m.jpg differ diff --git a/img/avatars/028f.jpg b/img/avatars/028f.jpg new file mode 100644 index 000000000..ce66cb96a Binary files /dev/null and b/img/avatars/028f.jpg differ diff --git a/img/avatars/028m.jpg b/img/avatars/028m.jpg new file mode 100644 index 000000000..8a5b63e7d Binary files /dev/null and b/img/avatars/028m.jpg differ diff --git a/img/avatars/029f.jpg b/img/avatars/029f.jpg new file mode 100644 index 000000000..e7d651bba Binary files /dev/null and b/img/avatars/029f.jpg differ diff --git a/img/avatars/029m.jpg b/img/avatars/029m.jpg new file mode 100644 index 000000000..a172515de Binary files /dev/null and b/img/avatars/029m.jpg differ diff --git a/img/avatars/030f.jpg b/img/avatars/030f.jpg new file mode 100644 index 000000000..c6009f9eb Binary files /dev/null and b/img/avatars/030f.jpg differ diff --git a/img/avatars/030m.jpg b/img/avatars/030m.jpg new file mode 100644 index 000000000..a4d844e5d Binary files /dev/null and b/img/avatars/030m.jpg differ diff --git a/img/avatars/031f.jpg b/img/avatars/031f.jpg new file mode 100644 index 000000000..338c20c01 Binary files /dev/null and b/img/avatars/031f.jpg differ diff --git a/img/avatars/031m.jpg b/img/avatars/031m.jpg new file mode 100644 index 000000000..dd24726ef Binary files /dev/null and b/img/avatars/031m.jpg differ diff --git a/img/avatars/032f.jpg b/img/avatars/032f.jpg new file mode 100644 index 000000000..fcd6723d4 Binary files /dev/null and b/img/avatars/032f.jpg differ diff --git a/img/avatars/032m.jpg b/img/avatars/032m.jpg new file mode 100644 index 000000000..dcbaf260c Binary files /dev/null and b/img/avatars/032m.jpg differ diff --git a/img/avatars/033f.jpg b/img/avatars/033f.jpg new file mode 100644 index 000000000..5b3755b4c Binary files /dev/null and b/img/avatars/033f.jpg differ diff --git a/img/avatars/033m.jpg b/img/avatars/033m.jpg new file mode 100644 index 000000000..1de43e925 Binary files /dev/null and b/img/avatars/033m.jpg differ diff --git a/img/avatars/034f.jpg b/img/avatars/034f.jpg new file mode 100644 index 000000000..e37312614 Binary files /dev/null and b/img/avatars/034f.jpg differ diff --git a/img/avatars/034m.jpg b/img/avatars/034m.jpg new file mode 100644 index 000000000..6888bdd2c Binary files /dev/null and b/img/avatars/034m.jpg differ diff --git a/img/avatars/035f.jpg b/img/avatars/035f.jpg new file mode 100644 index 000000000..97466f849 Binary files /dev/null and b/img/avatars/035f.jpg differ diff --git a/img/avatars/035m.jpg b/img/avatars/035m.jpg new file mode 100644 index 000000000..cfc6f311c Binary files /dev/null and b/img/avatars/035m.jpg differ diff --git a/img/avatars/036f.jpg b/img/avatars/036f.jpg new file mode 100644 index 000000000..d3df750ee Binary files /dev/null and b/img/avatars/036f.jpg differ diff --git a/img/avatars/036m.jpg b/img/avatars/036m.jpg new file mode 100644 index 000000000..6cbce1af0 Binary files /dev/null and b/img/avatars/036m.jpg differ diff --git a/img/avatars/037f.jpg b/img/avatars/037f.jpg new file mode 100644 index 000000000..b6dd0668d Binary files /dev/null and b/img/avatars/037f.jpg differ diff --git a/img/avatars/037m.jpg b/img/avatars/037m.jpg new file mode 100644 index 000000000..9cd54d3cf Binary files /dev/null and b/img/avatars/037m.jpg differ diff --git a/img/avatars/038f.jpg b/img/avatars/038f.jpg new file mode 100644 index 000000000..29d53e767 Binary files /dev/null and b/img/avatars/038f.jpg differ diff --git a/img/avatars/038m.jpg b/img/avatars/038m.jpg new file mode 100644 index 000000000..b68991dd7 Binary files /dev/null and b/img/avatars/038m.jpg differ diff --git a/img/avatars/039f.jpg b/img/avatars/039f.jpg new file mode 100644 index 000000000..ff69b7154 Binary files /dev/null and b/img/avatars/039f.jpg differ diff --git a/img/avatars/039m.jpg b/img/avatars/039m.jpg new file mode 100644 index 000000000..0b3226775 Binary files /dev/null and b/img/avatars/039m.jpg differ diff --git a/img/avatars/040f.jpg b/img/avatars/040f.jpg new file mode 100644 index 000000000..502e68474 Binary files /dev/null and b/img/avatars/040f.jpg differ diff --git a/img/avatars/040m.jpg b/img/avatars/040m.jpg new file mode 100644 index 000000000..ac7e28377 Binary files /dev/null and b/img/avatars/040m.jpg differ diff --git a/img/avatars/041f.jpg b/img/avatars/041f.jpg new file mode 100644 index 000000000..ecead1fae Binary files /dev/null and b/img/avatars/041f.jpg differ diff --git a/img/avatars/041m.jpg b/img/avatars/041m.jpg new file mode 100644 index 000000000..6c3e004c1 Binary files /dev/null and b/img/avatars/041m.jpg differ diff --git a/img/avatars/042f.jpg b/img/avatars/042f.jpg new file mode 100644 index 000000000..f2659bd7d Binary files /dev/null and b/img/avatars/042f.jpg differ diff --git a/img/avatars/042m.jpg b/img/avatars/042m.jpg new file mode 100644 index 000000000..d5181650c Binary files /dev/null and b/img/avatars/042m.jpg differ diff --git a/img/avatars/043f.jpg b/img/avatars/043f.jpg new file mode 100644 index 000000000..7e8aaf2b9 Binary files /dev/null and b/img/avatars/043f.jpg differ diff --git a/img/avatars/043m.jpg b/img/avatars/043m.jpg new file mode 100644 index 000000000..087bf93af Binary files /dev/null and b/img/avatars/043m.jpg differ diff --git a/img/avatars/044f.jpg b/img/avatars/044f.jpg new file mode 100644 index 000000000..7ae540d4e Binary files /dev/null and b/img/avatars/044f.jpg differ diff --git a/img/avatars/044m.jpg b/img/avatars/044m.jpg new file mode 100644 index 000000000..5b387afa2 Binary files /dev/null and b/img/avatars/044m.jpg differ diff --git a/img/avatars/045f.jpg b/img/avatars/045f.jpg new file mode 100644 index 000000000..9d5ac5d5d Binary files /dev/null and b/img/avatars/045f.jpg differ diff --git a/img/avatars/045m.jpg b/img/avatars/045m.jpg new file mode 100644 index 000000000..554885e21 Binary files /dev/null and b/img/avatars/045m.jpg differ diff --git a/img/avatars/046f.jpg b/img/avatars/046f.jpg new file mode 100644 index 000000000..213d05c08 Binary files /dev/null and b/img/avatars/046f.jpg differ diff --git a/img/avatars/046m.jpg b/img/avatars/046m.jpg new file mode 100644 index 000000000..e488eab5c Binary files /dev/null and b/img/avatars/046m.jpg differ diff --git a/img/avatars/047f.jpg b/img/avatars/047f.jpg new file mode 100644 index 000000000..fa1a29747 Binary files /dev/null and b/img/avatars/047f.jpg differ diff --git a/img/avatars/047m.jpg b/img/avatars/047m.jpg new file mode 100644 index 000000000..b2d9bcee1 Binary files /dev/null and b/img/avatars/047m.jpg differ diff --git a/img/avatars/048f.jpg b/img/avatars/048f.jpg new file mode 100644 index 000000000..796001b3d Binary files /dev/null and b/img/avatars/048f.jpg differ diff --git a/img/avatars/048m.jpg b/img/avatars/048m.jpg new file mode 100644 index 000000000..45ca18f9e Binary files /dev/null and b/img/avatars/048m.jpg differ diff --git a/img/avatars/049f.jpg b/img/avatars/049f.jpg new file mode 100644 index 000000000..8cbaaae1b Binary files /dev/null and b/img/avatars/049f.jpg differ diff --git a/img/avatars/049m.jpg b/img/avatars/049m.jpg new file mode 100644 index 000000000..0f36081b6 Binary files /dev/null and b/img/avatars/049m.jpg differ diff --git a/img/avatars/050f.jpg b/img/avatars/050f.jpg new file mode 100644 index 000000000..53689bbf0 Binary files /dev/null and b/img/avatars/050f.jpg differ diff --git a/img/avatars/050m.jpg b/img/avatars/050m.jpg new file mode 100644 index 000000000..05d1131fc Binary files /dev/null and b/img/avatars/050m.jpg differ diff --git a/img/avatars/051f.jpg b/img/avatars/051f.jpg new file mode 100644 index 000000000..4c46653c6 Binary files /dev/null and b/img/avatars/051f.jpg differ diff --git a/img/avatars/051m.jpg b/img/avatars/051m.jpg new file mode 100644 index 000000000..c7918d9f9 Binary files /dev/null and b/img/avatars/051m.jpg differ diff --git a/img/avatars/052f.jpg b/img/avatars/052f.jpg new file mode 100644 index 000000000..f39c0d7c1 Binary files /dev/null and b/img/avatars/052f.jpg differ diff --git a/img/avatars/052m.jpg b/img/avatars/052m.jpg new file mode 100644 index 000000000..199d582d3 Binary files /dev/null and b/img/avatars/052m.jpg differ diff --git a/img/avatars/053f.jpg b/img/avatars/053f.jpg new file mode 100644 index 000000000..bfdaa39ee Binary files /dev/null and b/img/avatars/053f.jpg differ diff --git a/img/avatars/053m.jpg b/img/avatars/053m.jpg new file mode 100644 index 000000000..c0ec114ca Binary files /dev/null and b/img/avatars/053m.jpg differ diff --git a/img/avatars/054f.jpg b/img/avatars/054f.jpg new file mode 100644 index 000000000..ea4a22e51 Binary files /dev/null and b/img/avatars/054f.jpg differ diff --git a/img/avatars/054m.jpg b/img/avatars/054m.jpg new file mode 100644 index 000000000..962f326c2 Binary files /dev/null and b/img/avatars/054m.jpg differ diff --git a/img/avatars/055f.jpg b/img/avatars/055f.jpg new file mode 100644 index 000000000..3aeb58e34 Binary files /dev/null and b/img/avatars/055f.jpg differ diff --git a/img/avatars/055m.jpg b/img/avatars/055m.jpg new file mode 100644 index 000000000..fc35980f6 Binary files /dev/null and b/img/avatars/055m.jpg differ diff --git a/img/avatars/056f.jpg b/img/avatars/056f.jpg new file mode 100644 index 000000000..6088a0414 Binary files /dev/null and b/img/avatars/056f.jpg differ diff --git a/img/avatars/056m.jpg b/img/avatars/056m.jpg new file mode 100644 index 000000000..1daa4b8ae Binary files /dev/null and b/img/avatars/056m.jpg differ diff --git a/img/avatars/057f.jpg b/img/avatars/057f.jpg new file mode 100644 index 000000000..f2659bd7d Binary files /dev/null and b/img/avatars/057f.jpg differ diff --git a/img/avatars/057m.jpg b/img/avatars/057m.jpg new file mode 100644 index 000000000..68b8bb441 Binary files /dev/null and b/img/avatars/057m.jpg differ diff --git a/img/avatars/058f.jpg b/img/avatars/058f.jpg new file mode 100644 index 000000000..9945de0cc Binary files /dev/null and b/img/avatars/058f.jpg differ diff --git a/img/avatars/058m.jpg b/img/avatars/058m.jpg new file mode 100644 index 000000000..e0e7201cc Binary files /dev/null and b/img/avatars/058m.jpg differ diff --git a/img/avatars/059f.jpg b/img/avatars/059f.jpg new file mode 100644 index 000000000..eb41bf6e4 Binary files /dev/null and b/img/avatars/059f.jpg differ diff --git a/img/avatars/059m.jpg b/img/avatars/059m.jpg new file mode 100644 index 000000000..6f43d9ac4 Binary files /dev/null and b/img/avatars/059m.jpg differ diff --git a/img/avatars/060f.jpg b/img/avatars/060f.jpg new file mode 100644 index 000000000..39c50260e Binary files /dev/null and b/img/avatars/060f.jpg differ diff --git a/img/avatars/060m.jpg b/img/avatars/060m.jpg new file mode 100644 index 000000000..822503674 Binary files /dev/null and b/img/avatars/060m.jpg differ diff --git a/img/avatars/061f.jpg b/img/avatars/061f.jpg new file mode 100644 index 000000000..502e68474 Binary files /dev/null and b/img/avatars/061f.jpg differ diff --git a/img/avatars/061m.jpg b/img/avatars/061m.jpg new file mode 100644 index 000000000..dcf2608a8 Binary files /dev/null and b/img/avatars/061m.jpg differ diff --git a/img/avatars/062f.jpg b/img/avatars/062f.jpg new file mode 100644 index 000000000..d46f45d6c Binary files /dev/null and b/img/avatars/062f.jpg differ diff --git a/img/avatars/062m.jpg b/img/avatars/062m.jpg new file mode 100644 index 000000000..782d4d860 Binary files /dev/null and b/img/avatars/062m.jpg differ diff --git a/img/avatars/063f.jpg b/img/avatars/063f.jpg new file mode 100644 index 000000000..5c9c852b7 Binary files /dev/null and b/img/avatars/063f.jpg differ diff --git a/img/avatars/063m.jpg b/img/avatars/063m.jpg new file mode 100644 index 000000000..52c1920c6 Binary files /dev/null and b/img/avatars/063m.jpg differ diff --git a/img/avatars/064f.jpg b/img/avatars/064f.jpg new file mode 100644 index 000000000..08b043a4a Binary files /dev/null and b/img/avatars/064f.jpg differ diff --git a/img/avatars/064m.jpg b/img/avatars/064m.jpg new file mode 100644 index 000000000..f8ade9871 Binary files /dev/null and b/img/avatars/064m.jpg differ diff --git a/img/avatars/065f.jpg b/img/avatars/065f.jpg new file mode 100644 index 000000000..3be827194 Binary files /dev/null and b/img/avatars/065f.jpg differ diff --git a/img/avatars/065m.jpg b/img/avatars/065m.jpg new file mode 100644 index 000000000..0025e21ee Binary files /dev/null and b/img/avatars/065m.jpg differ diff --git a/img/avatars/066f.jpg b/img/avatars/066f.jpg new file mode 100644 index 000000000..5c7697280 Binary files /dev/null and b/img/avatars/066f.jpg differ diff --git a/img/avatars/066m.jpg b/img/avatars/066m.jpg new file mode 100644 index 000000000..147bcfe42 Binary files /dev/null and b/img/avatars/066m.jpg differ diff --git a/img/avatars/067f.jpg b/img/avatars/067f.jpg new file mode 100644 index 000000000..ad6ad9ff1 Binary files /dev/null and b/img/avatars/067f.jpg differ diff --git a/img/avatars/067m.jpg b/img/avatars/067m.jpg new file mode 100644 index 000000000..5a2424aa4 Binary files /dev/null and b/img/avatars/067m.jpg differ diff --git a/img/avatars/068f.jpg b/img/avatars/068f.jpg new file mode 100644 index 000000000..6e9181087 Binary files /dev/null and b/img/avatars/068f.jpg differ diff --git a/img/avatars/068m.jpg b/img/avatars/068m.jpg new file mode 100644 index 000000000..8a9edd8d1 Binary files /dev/null and b/img/avatars/068m.jpg differ diff --git a/img/avatars/069f.jpg b/img/avatars/069f.jpg new file mode 100644 index 000000000..cc965fa5d Binary files /dev/null and b/img/avatars/069f.jpg differ diff --git a/img/avatars/069m.jpg b/img/avatars/069m.jpg new file mode 100644 index 000000000..4dea892c8 Binary files /dev/null and b/img/avatars/069m.jpg differ diff --git a/img/avatars/070f.jpg b/img/avatars/070f.jpg new file mode 100644 index 000000000..62d363469 Binary files /dev/null and b/img/avatars/070f.jpg differ diff --git a/img/avatars/070m.jpg b/img/avatars/070m.jpg new file mode 100644 index 000000000..af61ae3e4 Binary files /dev/null and b/img/avatars/070m.jpg differ diff --git a/img/avatars/071f.jpg b/img/avatars/071f.jpg new file mode 100644 index 000000000..f12cd7d4e Binary files /dev/null and b/img/avatars/071f.jpg differ diff --git a/img/avatars/071m.jpg b/img/avatars/071m.jpg new file mode 100644 index 000000000..259d78dd3 Binary files /dev/null and b/img/avatars/071m.jpg differ diff --git a/img/avatars/072f.jpg b/img/avatars/072f.jpg new file mode 100644 index 000000000..9bef78e23 Binary files /dev/null and b/img/avatars/072f.jpg differ diff --git a/img/avatars/072m.jpg b/img/avatars/072m.jpg new file mode 100644 index 000000000..bb7d1e8e8 Binary files /dev/null and b/img/avatars/072m.jpg differ diff --git a/img/avatars/073m.jpg b/img/avatars/073m.jpg new file mode 100644 index 000000000..f16018a3b Binary files /dev/null and b/img/avatars/073m.jpg differ diff --git a/img/avatars/074m.jpg b/img/avatars/074m.jpg new file mode 100644 index 000000000..68b8bb441 Binary files /dev/null and b/img/avatars/074m.jpg differ diff --git a/img/flags/ad.svg b/img/flags/ad.svg new file mode 100755 index 000000000..ff7f05433 --- /dev/null +++ b/img/flags/ad.svg @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/ae.svg b/img/flags/ae.svg new file mode 100755 index 000000000..a5f82e83c --- /dev/null +++ b/img/flags/ae.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/img/flags/af.svg b/img/flags/af.svg new file mode 100755 index 000000000..d722a1345 --- /dev/null +++ b/img/flags/af.svg @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/ag.svg b/img/flags/ag.svg new file mode 100755 index 000000000..775c80a22 --- /dev/null +++ b/img/flags/ag.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/img/flags/ai.svg b/img/flags/ai.svg new file mode 100755 index 000000000..7b49c36c2 --- /dev/null +++ b/img/flags/ai.svg @@ -0,0 +1,767 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/al.svg b/img/flags/al.svg new file mode 100755 index 000000000..6fedeed6d --- /dev/null +++ b/img/flags/al.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/img/flags/am.svg b/img/flags/am.svg new file mode 100755 index 000000000..49f1c508d --- /dev/null +++ b/img/flags/am.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/img/flags/ao.svg b/img/flags/ao.svg new file mode 100755 index 000000000..bf1a403d9 --- /dev/null +++ b/img/flags/ao.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/img/flags/aq.svg b/img/flags/aq.svg new file mode 100755 index 000000000..cc98fc666 --- /dev/null +++ b/img/flags/aq.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/img/flags/ar.svg b/img/flags/ar.svg new file mode 100755 index 000000000..2bd1a609d --- /dev/null +++ b/img/flags/ar.svg @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/as.svg b/img/flags/as.svg new file mode 100755 index 000000000..6c2f65709 --- /dev/null +++ b/img/flags/as.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/at.svg b/img/flags/at.svg new file mode 100755 index 000000000..6ea7dc8a6 --- /dev/null +++ b/img/flags/at.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/img/flags/au.svg b/img/flags/au.svg new file mode 100755 index 000000000..77a940175 --- /dev/null +++ b/img/flags/au.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/img/flags/aw.svg b/img/flags/aw.svg new file mode 100755 index 000000000..2df366b72 --- /dev/null +++ b/img/flags/aw.svg @@ -0,0 +1,186 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/ax.svg b/img/flags/ax.svg new file mode 100755 index 000000000..9cf513174 --- /dev/null +++ b/img/flags/ax.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/img/flags/az.svg b/img/flags/az.svg new file mode 100755 index 000000000..2a1cb6ce5 --- /dev/null +++ b/img/flags/az.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/img/flags/ba.svg b/img/flags/ba.svg new file mode 100755 index 000000000..1a9b6e765 --- /dev/null +++ b/img/flags/ba.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/img/flags/bb.svg b/img/flags/bb.svg new file mode 100755 index 000000000..94b0b0263 --- /dev/null +++ b/img/flags/bb.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/img/flags/bd.svg b/img/flags/bd.svg new file mode 100755 index 000000000..0032605bf --- /dev/null +++ b/img/flags/bd.svg @@ -0,0 +1,4 @@ + + + + diff --git a/img/flags/be.svg b/img/flags/be.svg new file mode 100755 index 000000000..29b3bb2a8 --- /dev/null +++ b/img/flags/be.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/bf.svg b/img/flags/bf.svg new file mode 100755 index 000000000..2126431e9 --- /dev/null +++ b/img/flags/bf.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/bg.svg b/img/flags/bg.svg new file mode 100755 index 000000000..ad5054722 --- /dev/null +++ b/img/flags/bg.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/bh.svg b/img/flags/bh.svg new file mode 100755 index 000000000..eec617d93 --- /dev/null +++ b/img/flags/bh.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/img/flags/bi.svg b/img/flags/bi.svg new file mode 100755 index 000000000..6beb93f09 --- /dev/null +++ b/img/flags/bi.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/img/flags/bj.svg b/img/flags/bj.svg new file mode 100755 index 000000000..c0d4377c9 --- /dev/null +++ b/img/flags/bj.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/img/flags/bl.svg b/img/flags/bl.svg new file mode 100755 index 000000000..b9f5a9107 --- /dev/null +++ b/img/flags/bl.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/bm.svg b/img/flags/bm.svg new file mode 100755 index 000000000..b7e508451 --- /dev/null +++ b/img/flags/bm.svg @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/bn.svg b/img/flags/bn.svg new file mode 100755 index 000000000..55768ba63 --- /dev/null +++ b/img/flags/bn.svg @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/bo.svg b/img/flags/bo.svg new file mode 100755 index 000000000..1c70bf90f --- /dev/null +++ b/img/flags/bo.svg @@ -0,0 +1,676 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/bq.svg b/img/flags/bq.svg new file mode 100755 index 000000000..fc2e5afd7 --- /dev/null +++ b/img/flags/bq.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/img/flags/br.svg b/img/flags/br.svg new file mode 100755 index 000000000..49c94204a --- /dev/null +++ b/img/flags/br.svg @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/bs.svg b/img/flags/bs.svg new file mode 100755 index 000000000..2e2ff41f2 --- /dev/null +++ b/img/flags/bs.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/img/flags/bt.svg b/img/flags/bt.svg new file mode 100755 index 000000000..96327c78b --- /dev/null +++ b/img/flags/bt.svg @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/bv.svg b/img/flags/bv.svg new file mode 100755 index 000000000..ce9d11c35 --- /dev/null +++ b/img/flags/bv.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/img/flags/bw.svg b/img/flags/bw.svg new file mode 100755 index 000000000..ce4925666 --- /dev/null +++ b/img/flags/bw.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/by.svg b/img/flags/by.svg new file mode 100755 index 000000000..a1310c47a --- /dev/null +++ b/img/flags/by.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/bz.svg b/img/flags/bz.svg new file mode 100755 index 000000000..8b4392a70 --- /dev/null +++ b/img/flags/bz.svg @@ -0,0 +1,145 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/ca.svg b/img/flags/ca.svg new file mode 100755 index 000000000..38f5a4ddd --- /dev/null +++ b/img/flags/ca.svg @@ -0,0 +1,4 @@ + + + + diff --git a/img/flags/cc.svg b/img/flags/cc.svg new file mode 100755 index 000000000..abfb11d80 --- /dev/null +++ b/img/flags/cc.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/cd.svg b/img/flags/cd.svg new file mode 100755 index 000000000..fc8a17828 --- /dev/null +++ b/img/flags/cd.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/img/flags/cf.svg b/img/flags/cf.svg new file mode 100755 index 000000000..774b5d90c --- /dev/null +++ b/img/flags/cf.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/img/flags/cg.svg b/img/flags/cg.svg new file mode 100755 index 000000000..90945f8c4 --- /dev/null +++ b/img/flags/cg.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/img/flags/ch.svg b/img/flags/ch.svg new file mode 100755 index 000000000..d8f2846b2 --- /dev/null +++ b/img/flags/ch.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/img/flags/ci.svg b/img/flags/ci.svg new file mode 100755 index 000000000..8cec51941 --- /dev/null +++ b/img/flags/ci.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/ck.svg b/img/flags/ck.svg new file mode 100755 index 000000000..781675e9c --- /dev/null +++ b/img/flags/ck.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/img/flags/cl.svg b/img/flags/cl.svg new file mode 100755 index 000000000..5cf6592cb --- /dev/null +++ b/img/flags/cl.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/img/flags/cm.svg b/img/flags/cm.svg new file mode 100755 index 000000000..073bf4ed1 --- /dev/null +++ b/img/flags/cm.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/img/flags/cn.svg b/img/flags/cn.svg new file mode 100755 index 000000000..59d0ac8b8 --- /dev/null +++ b/img/flags/cn.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/img/flags/co.svg b/img/flags/co.svg new file mode 100755 index 000000000..7ae372c92 --- /dev/null +++ b/img/flags/co.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/cr.svg b/img/flags/cr.svg new file mode 100755 index 000000000..d23e7751a --- /dev/null +++ b/img/flags/cr.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/cu.svg b/img/flags/cu.svg new file mode 100755 index 000000000..30cef2760 --- /dev/null +++ b/img/flags/cu.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/img/flags/cv.svg b/img/flags/cv.svg new file mode 100755 index 000000000..f70dfeb27 --- /dev/null +++ b/img/flags/cv.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/img/flags/cw.svg b/img/flags/cw.svg new file mode 100755 index 000000000..f5a810ea0 --- /dev/null +++ b/img/flags/cw.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/img/flags/cx.svg b/img/flags/cx.svg new file mode 100755 index 000000000..d9e788cd1 --- /dev/null +++ b/img/flags/cx.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/img/flags/cy.svg b/img/flags/cy.svg new file mode 100755 index 000000000..e803cc348 --- /dev/null +++ b/img/flags/cy.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/img/flags/cz.svg b/img/flags/cz.svg new file mode 100755 index 000000000..1e201d46d --- /dev/null +++ b/img/flags/cz.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/img/flags/de.svg b/img/flags/de.svg new file mode 100755 index 000000000..2ac5ff341 --- /dev/null +++ b/img/flags/de.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/img/flags/dj.svg b/img/flags/dj.svg new file mode 100755 index 000000000..4b5d72b48 --- /dev/null +++ b/img/flags/dj.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/img/flags/dk.svg b/img/flags/dk.svg new file mode 100755 index 000000000..662c2072b --- /dev/null +++ b/img/flags/dk.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/img/flags/dm.svg b/img/flags/dm.svg new file mode 100755 index 000000000..a5c68d0ab --- /dev/null +++ b/img/flags/dm.svg @@ -0,0 +1,152 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/do.svg b/img/flags/do.svg new file mode 100755 index 000000000..241324483 --- /dev/null +++ b/img/flags/do.svg @@ -0,0 +1,6745 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/dz.svg b/img/flags/dz.svg new file mode 100755 index 000000000..e79788984 --- /dev/null +++ b/img/flags/dz.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/img/flags/ec.svg b/img/flags/ec.svg new file mode 100755 index 000000000..028c59de4 --- /dev/null +++ b/img/flags/ec.svg @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/ee.svg b/img/flags/ee.svg new file mode 100755 index 000000000..edfc19fd8 --- /dev/null +++ b/img/flags/ee.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/eg.svg b/img/flags/eg.svg new file mode 100755 index 000000000..b89d63c57 --- /dev/null +++ b/img/flags/eg.svg @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/eh.svg b/img/flags/eh.svg new file mode 100755 index 000000000..a657bd388 --- /dev/null +++ b/img/flags/eh.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/img/flags/er.svg b/img/flags/er.svg new file mode 100755 index 000000000..1a0854b31 --- /dev/null +++ b/img/flags/er.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/img/flags/es-ct.svg b/img/flags/es-ct.svg new file mode 100755 index 000000000..848e56125 --- /dev/null +++ b/img/flags/es-ct.svg @@ -0,0 +1,4 @@ + + + + diff --git a/img/flags/es.svg b/img/flags/es.svg new file mode 100755 index 000000000..4e0197c1f --- /dev/null +++ b/img/flags/es.svg @@ -0,0 +1,544 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/et.svg b/img/flags/et.svg new file mode 100755 index 000000000..761451494 --- /dev/null +++ b/img/flags/et.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/img/flags/eu.svg b/img/flags/eu.svg new file mode 100755 index 000000000..ebc50cee1 --- /dev/null +++ b/img/flags/eu.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/fi.svg b/img/flags/fi.svg new file mode 100755 index 000000000..e7e1d1afa --- /dev/null +++ b/img/flags/fi.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/img/flags/fj.svg b/img/flags/fj.svg new file mode 100755 index 000000000..99c86eb13 --- /dev/null +++ b/img/flags/fj.svg @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/fk.svg b/img/flags/fk.svg new file mode 100755 index 000000000..f00946471 --- /dev/null +++ b/img/flags/fk.svg @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/fm.svg b/img/flags/fm.svg new file mode 100755 index 000000000..e6962fb32 --- /dev/null +++ b/img/flags/fm.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/img/flags/fo.svg b/img/flags/fo.svg new file mode 100755 index 000000000..4b1125b90 --- /dev/null +++ b/img/flags/fo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/img/flags/fr.svg b/img/flags/fr.svg new file mode 100755 index 000000000..361090ca4 --- /dev/null +++ b/img/flags/fr.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/ga.svg b/img/flags/ga.svg new file mode 100755 index 000000000..c33c59c78 --- /dev/null +++ b/img/flags/ga.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/gb-eng.svg b/img/flags/gb-eng.svg new file mode 100755 index 000000000..af12af70e --- /dev/null +++ b/img/flags/gb-eng.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/img/flags/gb-nir.svg b/img/flags/gb-nir.svg new file mode 100755 index 000000000..b42995a7a --- /dev/null +++ b/img/flags/gb-nir.svg @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/gb-sct.svg b/img/flags/gb-sct.svg new file mode 100755 index 000000000..fce408ceb --- /dev/null +++ b/img/flags/gb-sct.svg @@ -0,0 +1,4 @@ + + + + diff --git a/img/flags/gb-wls.svg b/img/flags/gb-wls.svg new file mode 100755 index 000000000..8c94c56ef --- /dev/null +++ b/img/flags/gb-wls.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/img/flags/gb.svg b/img/flags/gb.svg new file mode 100755 index 000000000..81e1a0d18 --- /dev/null +++ b/img/flags/gb.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/img/flags/gd.svg b/img/flags/gd.svg new file mode 100755 index 000000000..4f636ee98 --- /dev/null +++ b/img/flags/gd.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/ge.svg b/img/flags/ge.svg new file mode 100755 index 000000000..1f787a596 --- /dev/null +++ b/img/flags/ge.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/img/flags/gf.svg b/img/flags/gf.svg new file mode 100755 index 000000000..d19818542 --- /dev/null +++ b/img/flags/gf.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/img/flags/gg.svg b/img/flags/gg.svg new file mode 100755 index 000000000..203f17975 --- /dev/null +++ b/img/flags/gg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/img/flags/gh.svg b/img/flags/gh.svg new file mode 100755 index 000000000..bf9b0db0e --- /dev/null +++ b/img/flags/gh.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/img/flags/gi.svg b/img/flags/gi.svg new file mode 100755 index 000000000..9b007fe0f --- /dev/null +++ b/img/flags/gi.svg @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/gl.svg b/img/flags/gl.svg new file mode 100755 index 000000000..ae17dfd1d --- /dev/null +++ b/img/flags/gl.svg @@ -0,0 +1,4 @@ + + + + diff --git a/img/flags/gm.svg b/img/flags/gm.svg new file mode 100755 index 000000000..b44c37e3f --- /dev/null +++ b/img/flags/gm.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/img/flags/gn.svg b/img/flags/gn.svg new file mode 100755 index 000000000..e23db99d6 --- /dev/null +++ b/img/flags/gn.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/gp.svg b/img/flags/gp.svg new file mode 100755 index 000000000..50208f65a --- /dev/null +++ b/img/flags/gp.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/gq.svg b/img/flags/gq.svg new file mode 100755 index 000000000..d74c39360 --- /dev/null +++ b/img/flags/gq.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/gr.svg b/img/flags/gr.svg new file mode 100755 index 000000000..8388bc751 --- /dev/null +++ b/img/flags/gr.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/gs.svg b/img/flags/gs.svg new file mode 100755 index 000000000..7f3366567 --- /dev/null +++ b/img/flags/gs.svg @@ -0,0 +1,201 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + L + + + E + + + O + + + T + + + E + + + R + + + R + + + R + + + R + + + R + + + E + + + O + + + O + + + A + + + A + + + A + + + M + + + P + + + P + + + P + + + I + + + T + + + T + + + M + + + G + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/gt.svg b/img/flags/gt.svg new file mode 100755 index 000000000..30a591dfa --- /dev/null +++ b/img/flags/gt.svg @@ -0,0 +1,204 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/gu.svg b/img/flags/gu.svg new file mode 100755 index 000000000..870d935b1 --- /dev/null +++ b/img/flags/gu.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + G + + + U + + + A + + + M + + + + + + + + G + + + U + + + A + + + M + + diff --git a/img/flags/gw.svg b/img/flags/gw.svg new file mode 100755 index 000000000..88b38f36c --- /dev/null +++ b/img/flags/gw.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/img/flags/gy.svg b/img/flags/gy.svg new file mode 100755 index 000000000..2a940142c --- /dev/null +++ b/img/flags/gy.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/img/flags/hk.svg b/img/flags/hk.svg new file mode 100755 index 000000000..81ca02e5f --- /dev/null +++ b/img/flags/hk.svg @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/hm.svg b/img/flags/hm.svg new file mode 100755 index 000000000..2dedded39 --- /dev/null +++ b/img/flags/hm.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/img/flags/hn.svg b/img/flags/hn.svg new file mode 100755 index 000000000..b02d4eb52 --- /dev/null +++ b/img/flags/hn.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/img/flags/hr.svg b/img/flags/hr.svg new file mode 100755 index 000000000..396383b00 --- /dev/null +++ b/img/flags/hr.svg @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/ht.svg b/img/flags/ht.svg new file mode 100755 index 000000000..dc753aa8f --- /dev/null +++ b/img/flags/ht.svg @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/hu.svg b/img/flags/hu.svg new file mode 100755 index 000000000..edb49c7fd --- /dev/null +++ b/img/flags/hu.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/id.svg b/img/flags/id.svg new file mode 100755 index 000000000..e4838998f --- /dev/null +++ b/img/flags/id.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/img/flags/ie.svg b/img/flags/ie.svg new file mode 100755 index 000000000..107627ea1 --- /dev/null +++ b/img/flags/ie.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/il.svg b/img/flags/il.svg new file mode 100755 index 000000000..5d61cf8f3 --- /dev/null +++ b/img/flags/il.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/img/flags/im.svg b/img/flags/im.svg new file mode 100755 index 000000000..80613ab45 --- /dev/null +++ b/img/flags/im.svg @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/in.svg b/img/flags/in.svg new file mode 100755 index 000000000..f9edeb7a0 --- /dev/null +++ b/img/flags/in.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/io.svg b/img/flags/io.svg new file mode 100755 index 000000000..ab814d896 --- /dev/null +++ b/img/flags/io.svg @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/iq.svg b/img/flags/iq.svg new file mode 100755 index 000000000..137fbc20a --- /dev/null +++ b/img/flags/iq.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/img/flags/ir.svg b/img/flags/ir.svg new file mode 100755 index 000000000..78dc3335f --- /dev/null +++ b/img/flags/ir.svg @@ -0,0 +1,219 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/is.svg b/img/flags/is.svg new file mode 100755 index 000000000..1cb9f89a0 --- /dev/null +++ b/img/flags/is.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/img/flags/it.svg b/img/flags/it.svg new file mode 100755 index 000000000..f772003da --- /dev/null +++ b/img/flags/it.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/je.svg b/img/flags/je.svg new file mode 100755 index 000000000..57ce8a982 --- /dev/null +++ b/img/flags/je.svg @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/jm.svg b/img/flags/jm.svg new file mode 100755 index 000000000..820f1b8e0 --- /dev/null +++ b/img/flags/jm.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/img/flags/jo.svg b/img/flags/jo.svg new file mode 100755 index 000000000..eae42a1c3 --- /dev/null +++ b/img/flags/jo.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/img/flags/jp.svg b/img/flags/jp.svg new file mode 100755 index 000000000..97981329d --- /dev/null +++ b/img/flags/jp.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/img/flags/ke.svg b/img/flags/ke.svg new file mode 100755 index 000000000..456a3352c --- /dev/null +++ b/img/flags/ke.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/kg.svg b/img/flags/kg.svg new file mode 100755 index 000000000..c91738820 --- /dev/null +++ b/img/flags/kg.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/img/flags/kh.svg b/img/flags/kh.svg new file mode 100755 index 000000000..5a6a68af8 --- /dev/null +++ b/img/flags/kh.svg @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/ki.svg b/img/flags/ki.svg new file mode 100755 index 000000000..a57db48f1 --- /dev/null +++ b/img/flags/ki.svg @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/km.svg b/img/flags/km.svg new file mode 100755 index 000000000..724eec862 --- /dev/null +++ b/img/flags/km.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/img/flags/kn.svg b/img/flags/kn.svg new file mode 100755 index 000000000..bc0f05cbc --- /dev/null +++ b/img/flags/kn.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/img/flags/kp.svg b/img/flags/kp.svg new file mode 100755 index 000000000..587d469f9 --- /dev/null +++ b/img/flags/kp.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/img/flags/kr.svg b/img/flags/kr.svg new file mode 100755 index 000000000..ff3335004 --- /dev/null +++ b/img/flags/kr.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/kw.svg b/img/flags/kw.svg new file mode 100755 index 000000000..3f043d901 --- /dev/null +++ b/img/flags/kw.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/img/flags/ky.svg b/img/flags/ky.svg new file mode 100755 index 000000000..87b37b2ba --- /dev/null +++ b/img/flags/ky.svg @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/kz.svg b/img/flags/kz.svg new file mode 100755 index 000000000..95ae50ddc --- /dev/null +++ b/img/flags/kz.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/la.svg b/img/flags/la.svg new file mode 100755 index 000000000..c4e66b13f --- /dev/null +++ b/img/flags/la.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/img/flags/lb.svg b/img/flags/lb.svg new file mode 100755 index 000000000..a2ac7dcca --- /dev/null +++ b/img/flags/lb.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/img/flags/lc.svg b/img/flags/lc.svg new file mode 100755 index 000000000..b69318766 --- /dev/null +++ b/img/flags/lc.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/img/flags/li.svg b/img/flags/li.svg new file mode 100755 index 000000000..853cf2dd7 --- /dev/null +++ b/img/flags/li.svg @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/lk.svg b/img/flags/lk.svg new file mode 100755 index 000000000..9930ab0b9 --- /dev/null +++ b/img/flags/lk.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/lr.svg b/img/flags/lr.svg new file mode 100755 index 000000000..86449cf9b --- /dev/null +++ b/img/flags/lr.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/img/flags/ls.svg b/img/flags/ls.svg new file mode 100755 index 000000000..3c2181f56 --- /dev/null +++ b/img/flags/ls.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/img/flags/lt.svg b/img/flags/lt.svg new file mode 100755 index 000000000..37b354425 --- /dev/null +++ b/img/flags/lt.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/lu.svg b/img/flags/lu.svg new file mode 100755 index 000000000..382901c54 --- /dev/null +++ b/img/flags/lu.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/img/flags/lv.svg b/img/flags/lv.svg new file mode 100755 index 000000000..d42e8ddb1 --- /dev/null +++ b/img/flags/lv.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/img/flags/ly.svg b/img/flags/ly.svg new file mode 100755 index 000000000..e877dc5d5 --- /dev/null +++ b/img/flags/ly.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/img/flags/ma.svg b/img/flags/ma.svg new file mode 100755 index 000000000..a05405695 --- /dev/null +++ b/img/flags/ma.svg @@ -0,0 +1,4 @@ + + + + diff --git a/img/flags/mc.svg b/img/flags/mc.svg new file mode 100755 index 000000000..3e0d70692 --- /dev/null +++ b/img/flags/mc.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/img/flags/md.svg b/img/flags/md.svg new file mode 100755 index 000000000..bde1c75e3 --- /dev/null +++ b/img/flags/md.svg @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/me.svg b/img/flags/me.svg new file mode 100755 index 000000000..d967b8a57 --- /dev/null +++ b/img/flags/me.svg @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/mf.svg b/img/flags/mf.svg new file mode 100755 index 000000000..cf3e2cf19 --- /dev/null +++ b/img/flags/mf.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/mg.svg b/img/flags/mg.svg new file mode 100755 index 000000000..b7099b93f --- /dev/null +++ b/img/flags/mg.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/mh.svg b/img/flags/mh.svg new file mode 100755 index 000000000..94dbf9ab2 --- /dev/null +++ b/img/flags/mh.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/mk.svg b/img/flags/mk.svg new file mode 100755 index 000000000..a708e4527 --- /dev/null +++ b/img/flags/mk.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/img/flags/ml.svg b/img/flags/ml.svg new file mode 100755 index 000000000..e731e5a2a --- /dev/null +++ b/img/flags/ml.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/mm.svg b/img/flags/mm.svg new file mode 100755 index 000000000..36c34de89 --- /dev/null +++ b/img/flags/mm.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/img/flags/mn.svg b/img/flags/mn.svg new file mode 100755 index 000000000..dd06f4173 --- /dev/null +++ b/img/flags/mn.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/img/flags/mo.svg b/img/flags/mo.svg new file mode 100755 index 000000000..b17edd3aa --- /dev/null +++ b/img/flags/mo.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/img/flags/mp.svg b/img/flags/mp.svg new file mode 100755 index 000000000..6ffddd832 --- /dev/null +++ b/img/flags/mp.svg @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/mq.svg b/img/flags/mq.svg new file mode 100755 index 000000000..67b7895e9 --- /dev/null +++ b/img/flags/mq.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/mr.svg b/img/flags/mr.svg new file mode 100755 index 000000000..461fd5eba --- /dev/null +++ b/img/flags/mr.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/img/flags/ms.svg b/img/flags/ms.svg new file mode 100755 index 000000000..118e56167 --- /dev/null +++ b/img/flags/ms.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/mt.svg b/img/flags/mt.svg new file mode 100755 index 000000000..0c70689d2 --- /dev/null +++ b/img/flags/mt.svg @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/mu.svg b/img/flags/mu.svg new file mode 100755 index 000000000..30338a352 --- /dev/null +++ b/img/flags/mu.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/img/flags/mv.svg b/img/flags/mv.svg new file mode 100755 index 000000000..86efe8466 --- /dev/null +++ b/img/flags/mv.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/img/flags/mw.svg b/img/flags/mw.svg new file mode 100755 index 000000000..7b0a29f8a --- /dev/null +++ b/img/flags/mw.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/img/flags/mx.svg b/img/flags/mx.svg new file mode 100755 index 000000000..80f284601 --- /dev/null +++ b/img/flags/mx.svg @@ -0,0 +1,382 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/my.svg b/img/flags/my.svg new file mode 100755 index 000000000..1f6724a2c --- /dev/null +++ b/img/flags/my.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/img/flags/mz.svg b/img/flags/mz.svg new file mode 100755 index 000000000..0da4ea5b9 --- /dev/null +++ b/img/flags/mz.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/na.svg b/img/flags/na.svg new file mode 100755 index 000000000..95adc7cee --- /dev/null +++ b/img/flags/na.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/img/flags/nc.svg b/img/flags/nc.svg new file mode 100755 index 000000000..993967c94 --- /dev/null +++ b/img/flags/nc.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/ne.svg b/img/flags/ne.svg new file mode 100755 index 000000000..e5c52e98d --- /dev/null +++ b/img/flags/ne.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/img/flags/nf.svg b/img/flags/nf.svg new file mode 100755 index 000000000..138beef2b --- /dev/null +++ b/img/flags/nf.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/img/flags/ng.svg b/img/flags/ng.svg new file mode 100755 index 000000000..0c5b70214 --- /dev/null +++ b/img/flags/ng.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/img/flags/ni.svg b/img/flags/ni.svg new file mode 100755 index 000000000..f21e97cc9 --- /dev/null +++ b/img/flags/ni.svg @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/nl.svg b/img/flags/nl.svg new file mode 100755 index 000000000..69f4d92d3 --- /dev/null +++ b/img/flags/nl.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/no.svg b/img/flags/no.svg new file mode 100755 index 000000000..8b6ee34c7 --- /dev/null +++ b/img/flags/no.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/np.svg b/img/flags/np.svg new file mode 100755 index 000000000..d2005644d --- /dev/null +++ b/img/flags/np.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/img/flags/nr.svg b/img/flags/nr.svg new file mode 100755 index 000000000..e82e9f544 --- /dev/null +++ b/img/flags/nr.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/img/flags/nu.svg b/img/flags/nu.svg new file mode 100755 index 000000000..6851c325f --- /dev/null +++ b/img/flags/nu.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/nz.svg b/img/flags/nz.svg new file mode 100755 index 000000000..24f22d3b6 --- /dev/null +++ b/img/flags/nz.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/om.svg b/img/flags/om.svg new file mode 100755 index 000000000..110a4fbc7 --- /dev/null +++ b/img/flags/om.svg @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/pa.svg b/img/flags/pa.svg new file mode 100755 index 000000000..9d581faa0 --- /dev/null +++ b/img/flags/pa.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/img/flags/pe.svg b/img/flags/pe.svg new file mode 100755 index 000000000..b4db03b6d --- /dev/null +++ b/img/flags/pe.svg @@ -0,0 +1,244 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/pf.svg b/img/flags/pf.svg new file mode 100755 index 000000000..a6fbb651d --- /dev/null +++ b/img/flags/pf.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/pg.svg b/img/flags/pg.svg new file mode 100755 index 000000000..7bceb3d8c --- /dev/null +++ b/img/flags/pg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/img/flags/ph.svg b/img/flags/ph.svg new file mode 100755 index 000000000..7ef87eeaa --- /dev/null +++ b/img/flags/ph.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/img/flags/pk.svg b/img/flags/pk.svg new file mode 100755 index 000000000..e3049f8bc --- /dev/null +++ b/img/flags/pk.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/img/flags/pl.svg b/img/flags/pl.svg new file mode 100755 index 000000000..bf66be6a8 --- /dev/null +++ b/img/flags/pl.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/img/flags/pm.svg b/img/flags/pm.svg new file mode 100755 index 000000000..5cfbdde1e --- /dev/null +++ b/img/flags/pm.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/pn.svg b/img/flags/pn.svg new file mode 100755 index 000000000..e442da59f --- /dev/null +++ b/img/flags/pn.svg @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/pr.svg b/img/flags/pr.svg new file mode 100755 index 000000000..ab22f288a --- /dev/null +++ b/img/flags/pr.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/img/flags/ps.svg b/img/flags/ps.svg new file mode 100755 index 000000000..540371086 --- /dev/null +++ b/img/flags/ps.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/img/flags/pt.svg b/img/flags/pt.svg new file mode 100755 index 000000000..3dd98b1cc --- /dev/null +++ b/img/flags/pt.svg @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/pw.svg b/img/flags/pw.svg new file mode 100755 index 000000000..082b3a747 --- /dev/null +++ b/img/flags/pw.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/img/flags/py.svg b/img/flags/py.svg new file mode 100755 index 000000000..7f2691fe3 --- /dev/null +++ b/img/flags/py.svg @@ -0,0 +1,157 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/qa.svg b/img/flags/qa.svg new file mode 100755 index 000000000..a00d38059 --- /dev/null +++ b/img/flags/qa.svg @@ -0,0 +1,4 @@ + + + + diff --git a/img/flags/re.svg b/img/flags/re.svg new file mode 100755 index 000000000..4d93d0940 --- /dev/null +++ b/img/flags/re.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/ro.svg b/img/flags/ro.svg new file mode 100755 index 000000000..6c02ecd59 --- /dev/null +++ b/img/flags/ro.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/rs.svg b/img/flags/rs.svg new file mode 100755 index 000000000..6e6ed34d4 --- /dev/null +++ b/img/flags/rs.svg @@ -0,0 +1,292 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/ru.svg b/img/flags/ru.svg new file mode 100755 index 000000000..38d8fa490 --- /dev/null +++ b/img/flags/ru.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/rw.svg b/img/flags/rw.svg new file mode 100755 index 000000000..ed0239a87 --- /dev/null +++ b/img/flags/rw.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/img/flags/sa.svg b/img/flags/sa.svg new file mode 100755 index 000000000..ec2d2b40d --- /dev/null +++ b/img/flags/sa.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/sb.svg b/img/flags/sb.svg new file mode 100755 index 000000000..d6143ef9c --- /dev/null +++ b/img/flags/sb.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/img/flags/sc.svg b/img/flags/sc.svg new file mode 100755 index 000000000..76d11160c --- /dev/null +++ b/img/flags/sc.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/img/flags/sd.svg b/img/flags/sd.svg new file mode 100755 index 000000000..08d9d0171 --- /dev/null +++ b/img/flags/sd.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/img/flags/se.svg b/img/flags/se.svg new file mode 100755 index 000000000..c88a59b83 --- /dev/null +++ b/img/flags/se.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/img/flags/sg.svg b/img/flags/sg.svg new file mode 100755 index 000000000..182d46aad --- /dev/null +++ b/img/flags/sg.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/img/flags/sh.svg b/img/flags/sh.svg new file mode 100755 index 000000000..ecb6c87e3 --- /dev/null +++ b/img/flags/sh.svg @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/si.svg b/img/flags/si.svg new file mode 100755 index 000000000..0e72c589a --- /dev/null +++ b/img/flags/si.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/img/flags/sj.svg b/img/flags/sj.svg new file mode 100755 index 000000000..d3a0d4eed --- /dev/null +++ b/img/flags/sj.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/sk.svg b/img/flags/sk.svg new file mode 100755 index 000000000..73b32df8b --- /dev/null +++ b/img/flags/sk.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/img/flags/sl.svg b/img/flags/sl.svg new file mode 100755 index 000000000..902138534 --- /dev/null +++ b/img/flags/sl.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/sm.svg b/img/flags/sm.svg new file mode 100755 index 000000000..11dfd78a3 --- /dev/null +++ b/img/flags/sm.svg @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + L + + + I + + + B + + + E + + + R + + + T + + + A + + + S + + + + diff --git a/img/flags/sn.svg b/img/flags/sn.svg new file mode 100755 index 000000000..679a6b200 --- /dev/null +++ b/img/flags/sn.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/img/flags/so.svg b/img/flags/so.svg new file mode 100755 index 000000000..f3d2e977f --- /dev/null +++ b/img/flags/so.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/img/flags/sr.svg b/img/flags/sr.svg new file mode 100755 index 000000000..ac3268c7b --- /dev/null +++ b/img/flags/sr.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/img/flags/ss.svg b/img/flags/ss.svg new file mode 100755 index 000000000..4fa533684 --- /dev/null +++ b/img/flags/ss.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/img/flags/st.svg b/img/flags/st.svg new file mode 100755 index 000000000..81df50f5d --- /dev/null +++ b/img/flags/st.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/img/flags/sv.svg b/img/flags/sv.svg new file mode 100755 index 000000000..edf739dd1 --- /dev/null +++ b/img/flags/sv.svg @@ -0,0 +1,606 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/sx.svg b/img/flags/sx.svg new file mode 100755 index 000000000..d4e20bfff --- /dev/null +++ b/img/flags/sx.svg @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/sy.svg b/img/flags/sy.svg new file mode 100755 index 000000000..de171bc35 --- /dev/null +++ b/img/flags/sy.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/img/flags/sz.svg b/img/flags/sz.svg new file mode 100755 index 000000000..2ad451199 --- /dev/null +++ b/img/flags/sz.svg @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/tc.svg b/img/flags/tc.svg new file mode 100755 index 000000000..102aceed9 --- /dev/null +++ b/img/flags/tc.svg @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/td.svg b/img/flags/td.svg new file mode 100755 index 000000000..cfc963ed5 --- /dev/null +++ b/img/flags/td.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/tf.svg b/img/flags/tf.svg new file mode 100755 index 000000000..1cb5298e4 --- /dev/null +++ b/img/flags/tf.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/img/flags/tg.svg b/img/flags/tg.svg new file mode 100755 index 000000000..66565b121 --- /dev/null +++ b/img/flags/tg.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/img/flags/th.svg b/img/flags/th.svg new file mode 100755 index 000000000..2272ba6c9 --- /dev/null +++ b/img/flags/th.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/tj.svg b/img/flags/tj.svg new file mode 100755 index 000000000..4fab9cbcf --- /dev/null +++ b/img/flags/tj.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/tk.svg b/img/flags/tk.svg new file mode 100755 index 000000000..0f4c03932 --- /dev/null +++ b/img/flags/tk.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/img/flags/tl.svg b/img/flags/tl.svg new file mode 100755 index 000000000..0734bd01f --- /dev/null +++ b/img/flags/tl.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/img/flags/tm.svg b/img/flags/tm.svg new file mode 100755 index 000000000..c1d5b335c --- /dev/null +++ b/img/flags/tm.svg @@ -0,0 +1,206 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/tn.svg b/img/flags/tn.svg new file mode 100755 index 000000000..cbdaf2969 --- /dev/null +++ b/img/flags/tn.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/img/flags/to.svg b/img/flags/to.svg new file mode 100755 index 000000000..82f418fd1 --- /dev/null +++ b/img/flags/to.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/img/flags/tr.svg b/img/flags/tr.svg new file mode 100755 index 000000000..805a40998 --- /dev/null +++ b/img/flags/tr.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/img/flags/tt.svg b/img/flags/tt.svg new file mode 100755 index 000000000..6c0dcb3ac --- /dev/null +++ b/img/flags/tt.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/img/flags/tv.svg b/img/flags/tv.svg new file mode 100755 index 000000000..49358d4ef --- /dev/null +++ b/img/flags/tv.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/tw.svg b/img/flags/tw.svg new file mode 100755 index 000000000..5a22ecba5 --- /dev/null +++ b/img/flags/tw.svg @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/img/flags/tz.svg b/img/flags/tz.svg new file mode 100755 index 000000000..6369b0235 --- /dev/null +++ b/img/flags/tz.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/img/flags/ua.svg b/img/flags/ua.svg new file mode 100755 index 000000000..d3781073a --- /dev/null +++ b/img/flags/ua.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/img/flags/ug.svg b/img/flags/ug.svg new file mode 100755 index 000000000..56ca77f2f --- /dev/null +++ b/img/flags/ug.svg @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/um.svg b/img/flags/um.svg new file mode 100755 index 000000000..f5655e2c1 --- /dev/null +++ b/img/flags/um.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/img/flags/un.svg b/img/flags/un.svg new file mode 100755 index 000000000..05995aee2 --- /dev/null +++ b/img/flags/un.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/img/flags/us.svg b/img/flags/us.svg new file mode 100755 index 000000000..6b019767e --- /dev/null +++ b/img/flags/us.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/img/flags/uy.svg b/img/flags/uy.svg new file mode 100755 index 000000000..d4fd4df84 --- /dev/null +++ b/img/flags/uy.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/uz.svg b/img/flags/uz.svg new file mode 100755 index 000000000..a378ad390 --- /dev/null +++ b/img/flags/uz.svg @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/va.svg b/img/flags/va.svg new file mode 100755 index 000000000..38a4ce0cf --- /dev/null +++ b/img/flags/va.svg @@ -0,0 +1,479 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/vc.svg b/img/flags/vc.svg new file mode 100755 index 000000000..1a10dd7a7 --- /dev/null +++ b/img/flags/vc.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/img/flags/ve.svg b/img/flags/ve.svg new file mode 100755 index 000000000..631535697 --- /dev/null +++ b/img/flags/ve.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/vg.svg b/img/flags/vg.svg new file mode 100755 index 000000000..c5db32aed --- /dev/null +++ b/img/flags/vg.svg @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/vi.svg b/img/flags/vi.svg new file mode 100755 index 000000000..c01701e03 --- /dev/null +++ b/img/flags/vi.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/vn.svg b/img/flags/vn.svg new file mode 100755 index 000000000..e109c8395 --- /dev/null +++ b/img/flags/vn.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/img/flags/vu.svg b/img/flags/vu.svg new file mode 100755 index 000000000..8ca86a2c9 --- /dev/null +++ b/img/flags/vu.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/img/flags/wf.svg b/img/flags/wf.svg new file mode 100755 index 000000000..03401dfc2 --- /dev/null +++ b/img/flags/wf.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/ws.svg b/img/flags/ws.svg new file mode 100755 index 000000000..0e2556c0b --- /dev/null +++ b/img/flags/ws.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/ye.svg b/img/flags/ye.svg new file mode 100755 index 000000000..fbab60ddf --- /dev/null +++ b/img/flags/ye.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/yt.svg b/img/flags/yt.svg new file mode 100755 index 000000000..0f56a5934 --- /dev/null +++ b/img/flags/yt.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/img/flags/za.svg b/img/flags/za.svg new file mode 100755 index 000000000..6f3ac3dce --- /dev/null +++ b/img/flags/za.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/img/flags/zm.svg b/img/flags/zm.svg new file mode 100755 index 000000000..3cfb93ee1 --- /dev/null +++ b/img/flags/zm.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/flags/zw.svg b/img/flags/zw.svg new file mode 100755 index 000000000..1d0b30b40 --- /dev/null +++ b/img/flags/zw.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/img/illustrations/undraw_medicine_b1ol.svg b/img/illustrations/undraw_medicine_b1ol.svg new file mode 100644 index 000000000..9cf293ed2 --- /dev/null +++ b/img/illustrations/undraw_medicine_b1ol.svg @@ -0,0 +1 @@ +medicine \ No newline at end of file diff --git a/img/illustrations/undraw_posting_photo_v65l.svg b/img/illustrations/undraw_posting_photo_v65l.svg new file mode 100644 index 000000000..47cb4fca8 --- /dev/null +++ b/img/illustrations/undraw_posting_photo_v65l.svg @@ -0,0 +1 @@ +posting photo \ No newline at end of file diff --git a/img/illustrations/undraw_printing_invoices_5r4r.svg b/img/illustrations/undraw_printing_invoices_5r4r.svg new file mode 100644 index 000000000..3c7a0b6d3 --- /dev/null +++ b/img/illustrations/undraw_printing_invoices_5r4r.svg @@ -0,0 +1 @@ +printing invoices \ No newline at end of file diff --git a/img/illustrations/undraw_quitting_time_dm8t.svg b/img/illustrations/undraw_quitting_time_dm8t.svg new file mode 100644 index 000000000..6209538f6 --- /dev/null +++ b/img/illustrations/undraw_quitting_time_dm8t.svg @@ -0,0 +1 @@ +quitting time \ No newline at end of file diff --git a/img/photos/06c56bb2dfad556b.jpg b/img/photos/06c56bb2dfad556b.jpg new file mode 100644 index 000000000..df5c9633e Binary files /dev/null and b/img/photos/06c56bb2dfad556b.jpg differ diff --git a/img/photos/0986f97be719fb9a.jpg b/img/photos/0986f97be719fb9a.jpg new file mode 100644 index 000000000..62f0b1884 Binary files /dev/null and b/img/photos/0986f97be719fb9a.jpg differ diff --git a/img/photos/1194d63fe36a8670.jpg b/img/photos/1194d63fe36a8670.jpg new file mode 100644 index 000000000..8c5665577 Binary files /dev/null and b/img/photos/1194d63fe36a8670.jpg differ diff --git a/img/photos/1366fdc9b9b277e4.jpg b/img/photos/1366fdc9b9b277e4.jpg new file mode 100644 index 000000000..028e30112 Binary files /dev/null and b/img/photos/1366fdc9b9b277e4.jpg differ diff --git a/img/photos/1b73704b282a8ec6.jpg b/img/photos/1b73704b282a8ec6.jpg new file mode 100644 index 000000000..68d735a2f Binary files /dev/null and b/img/photos/1b73704b282a8ec6.jpg differ diff --git a/img/photos/2492baa9758df1e4.jpg b/img/photos/2492baa9758df1e4.jpg new file mode 100644 index 000000000..f9d315988 Binary files /dev/null and b/img/photos/2492baa9758df1e4.jpg differ diff --git a/img/photos/2854fd67ddbd6217.jpg b/img/photos/2854fd67ddbd6217.jpg new file mode 100644 index 000000000..40c3642b0 Binary files /dev/null and b/img/photos/2854fd67ddbd6217.jpg differ diff --git a/img/photos/35b88fc04a518c1b.jpg b/img/photos/35b88fc04a518c1b.jpg new file mode 100644 index 000000000..3cde6401a Binary files /dev/null and b/img/photos/35b88fc04a518c1b.jpg differ diff --git a/img/photos/3664593f945f0d8d.jpg b/img/photos/3664593f945f0d8d.jpg new file mode 100644 index 000000000..b66d68e83 Binary files /dev/null and b/img/photos/3664593f945f0d8d.jpg differ diff --git a/img/photos/36e273986ed577b8.jpg b/img/photos/36e273986ed577b8.jpg new file mode 100644 index 000000000..47130b735 Binary files /dev/null and b/img/photos/36e273986ed577b8.jpg differ diff --git a/img/photos/3b05a157d2edde04.jpg b/img/photos/3b05a157d2edde04.jpg new file mode 100644 index 000000000..713611464 Binary files /dev/null and b/img/photos/3b05a157d2edde04.jpg differ diff --git a/img/photos/3d2998219313cd37.jpg b/img/photos/3d2998219313cd37.jpg new file mode 100644 index 000000000..bb14b9432 Binary files /dev/null and b/img/photos/3d2998219313cd37.jpg differ diff --git a/img/photos/446fb2d04445c2d9.jpg b/img/photos/446fb2d04445c2d9.jpg new file mode 100644 index 000000000..bcb0ce0c6 Binary files /dev/null and b/img/photos/446fb2d04445c2d9.jpg differ diff --git a/img/photos/4f668538bdd3fd7f.jpg b/img/photos/4f668538bdd3fd7f.jpg new file mode 100644 index 000000000..c20c848e0 Binary files /dev/null and b/img/photos/4f668538bdd3fd7f.jpg differ diff --git a/img/photos/529078594c496ec5.jpg b/img/photos/529078594c496ec5.jpg new file mode 100644 index 000000000..93ab62927 Binary files /dev/null and b/img/photos/529078594c496ec5.jpg differ diff --git a/img/photos/5358d787242861c4.jpg b/img/photos/5358d787242861c4.jpg new file mode 100644 index 000000000..66961a789 Binary files /dev/null and b/img/photos/5358d787242861c4.jpg differ diff --git a/img/photos/546fd146c83f428c.jpg b/img/photos/546fd146c83f428c.jpg new file mode 100644 index 000000000..e9e8d6372 Binary files /dev/null and b/img/photos/546fd146c83f428c.jpg differ diff --git a/img/photos/552683cc4e5f0e11.jpg b/img/photos/552683cc4e5f0e11.jpg new file mode 100644 index 000000000..8c5822665 Binary files /dev/null and b/img/photos/552683cc4e5f0e11.jpg differ diff --git a/img/photos/5614ec7eb9034d04.jpg b/img/photos/5614ec7eb9034d04.jpg new file mode 100644 index 000000000..2a695cb58 Binary files /dev/null and b/img/photos/5614ec7eb9034d04.jpg differ diff --git a/img/photos/56614e12b2a7bd68.jpg b/img/photos/56614e12b2a7bd68.jpg new file mode 100644 index 000000000..f34c18e3a Binary files /dev/null and b/img/photos/56614e12b2a7bd68.jpg differ diff --git a/img/photos/5749e5c54a61a45e.jpg b/img/photos/5749e5c54a61a45e.jpg new file mode 100644 index 000000000..572f7fc42 Binary files /dev/null and b/img/photos/5749e5c54a61a45e.jpg differ diff --git a/img/photos/6ab3200b14549f8a.jpg b/img/photos/6ab3200b14549f8a.jpg new file mode 100644 index 000000000..8124c47e8 Binary files /dev/null and b/img/photos/6ab3200b14549f8a.jpg differ diff --git a/img/photos/6d35d9a2bd6c63c2.jpg b/img/photos/6d35d9a2bd6c63c2.jpg new file mode 100644 index 000000000..a8815c753 Binary files /dev/null and b/img/photos/6d35d9a2bd6c63c2.jpg differ diff --git a/img/photos/6f6e2ef709fef97a.jpg b/img/photos/6f6e2ef709fef97a.jpg new file mode 100644 index 000000000..3eb5f8d39 Binary files /dev/null and b/img/photos/6f6e2ef709fef97a.jpg differ diff --git a/img/photos/6fe407b4b13bbcde.jpg b/img/photos/6fe407b4b13bbcde.jpg new file mode 100644 index 000000000..00e0cbb50 Binary files /dev/null and b/img/photos/6fe407b4b13bbcde.jpg differ diff --git a/img/photos/75b555b99d5b38c4.jpg b/img/photos/75b555b99d5b38c4.jpg new file mode 100644 index 000000000..255508ed3 Binary files /dev/null and b/img/photos/75b555b99d5b38c4.jpg differ diff --git a/img/photos/77586f6ffa9fbc5e.jpg b/img/photos/77586f6ffa9fbc5e.jpg new file mode 100644 index 000000000..b2dad9d86 Binary files /dev/null and b/img/photos/77586f6ffa9fbc5e.jpg differ diff --git a/img/photos/7ce612d952e536b2.jpg b/img/photos/7ce612d952e536b2.jpg new file mode 100644 index 000000000..e2e5837ad Binary files /dev/null and b/img/photos/7ce612d952e536b2.jpg differ diff --git a/img/photos/802a16cdf5ce3551.jpg b/img/photos/802a16cdf5ce3551.jpg new file mode 100644 index 000000000..e0cf45cfc Binary files /dev/null and b/img/photos/802a16cdf5ce3551.jpg differ diff --git a/img/photos/8a26974ee6444acd.jpg b/img/photos/8a26974ee6444acd.jpg new file mode 100644 index 000000000..8a8685f49 Binary files /dev/null and b/img/photos/8a26974ee6444acd.jpg differ diff --git a/img/photos/8c13ad59f739558c.jpg b/img/photos/8c13ad59f739558c.jpg new file mode 100644 index 000000000..8d1e94d7f Binary files /dev/null and b/img/photos/8c13ad59f739558c.jpg differ diff --git a/img/photos/8d49f9c47fa68d5a.jpg b/img/photos/8d49f9c47fa68d5a.jpg new file mode 100644 index 000000000..d04ad229b Binary files /dev/null and b/img/photos/8d49f9c47fa68d5a.jpg differ diff --git a/img/photos/8fdeb4785d2b82ef.jpg b/img/photos/8fdeb4785d2b82ef.jpg new file mode 100644 index 000000000..93f804b87 Binary files /dev/null and b/img/photos/8fdeb4785d2b82ef.jpg differ diff --git a/img/photos/9f36332564ca271d.jpg b/img/photos/9f36332564ca271d.jpg new file mode 100644 index 000000000..c82b0cbc2 Binary files /dev/null and b/img/photos/9f36332564ca271d.jpg differ diff --git a/img/photos/a12804818c417ea3.jpg b/img/photos/a12804818c417ea3.jpg new file mode 100644 index 000000000..466f8baf4 Binary files /dev/null and b/img/photos/a12804818c417ea3.jpg differ diff --git a/img/photos/a159fb2bff29fda4.jpg b/img/photos/a159fb2bff29fda4.jpg new file mode 100644 index 000000000..cfdc09f83 Binary files /dev/null and b/img/photos/a159fb2bff29fda4.jpg differ diff --git a/img/photos/a4792dcce57ee13d.jpg b/img/photos/a4792dcce57ee13d.jpg new file mode 100644 index 000000000..2a23539d1 Binary files /dev/null and b/img/photos/a4792dcce57ee13d.jpg differ diff --git a/img/photos/a74c41b6fb7fdf34.jpg b/img/photos/a74c41b6fb7fdf34.jpg new file mode 100644 index 000000000..43d116326 Binary files /dev/null and b/img/photos/a74c41b6fb7fdf34.jpg differ diff --git a/img/photos/abb0721ac43820f9.jpg b/img/photos/abb0721ac43820f9.jpg new file mode 100644 index 000000000..65716b278 Binary files /dev/null and b/img/photos/abb0721ac43820f9.jpg differ diff --git a/img/photos/c86352559904d222.jpg b/img/photos/c86352559904d222.jpg new file mode 100644 index 000000000..dfa6ca351 Binary files /dev/null and b/img/photos/c86352559904d222.jpg differ diff --git a/img/photos/cfb1041b0e366b9d.jpg b/img/photos/cfb1041b0e366b9d.jpg new file mode 100644 index 000000000..2a4abe29c Binary files /dev/null and b/img/photos/cfb1041b0e366b9d.jpg differ diff --git a/img/photos/d366fc3df37fe65b.jpg b/img/photos/d366fc3df37fe65b.jpg new file mode 100644 index 000000000..219cee6ba Binary files /dev/null and b/img/photos/d366fc3df37fe65b.jpg differ diff --git a/img/photos/da6119936bd7f566.jpg b/img/photos/da6119936bd7f566.jpg new file mode 100644 index 000000000..0706b9ca5 Binary files /dev/null and b/img/photos/da6119936bd7f566.jpg differ diff --git a/img/photos/de6d0fd1feebb6a2.jpg b/img/photos/de6d0fd1feebb6a2.jpg new file mode 100644 index 000000000..1b38c321c Binary files /dev/null and b/img/photos/de6d0fd1feebb6a2.jpg differ diff --git a/img/photos/e8f47263360d96af.jpg b/img/photos/e8f47263360d96af.jpg new file mode 100644 index 000000000..f6297db69 Binary files /dev/null and b/img/photos/e8f47263360d96af.jpg differ diff --git a/img/photos/ecfed9fbf8a58836.jpg b/img/photos/ecfed9fbf8a58836.jpg new file mode 100644 index 000000000..a2d879b0d Binary files /dev/null and b/img/photos/ecfed9fbf8a58836.jpg differ diff --git a/img/photos/f61b5f865012f200.jpg b/img/photos/f61b5f865012f200.jpg new file mode 100644 index 000000000..41f5d5966 Binary files /dev/null and b/img/photos/f61b5f865012f200.jpg differ diff --git a/img/photos/f746d9f7fa60be79.jpg b/img/photos/f746d9f7fa60be79.jpg new file mode 100644 index 000000000..6465b0328 Binary files /dev/null and b/img/photos/f746d9f7fa60be79.jpg differ diff --git a/img/photos/f7f04e6a834b1959.jpg b/img/photos/f7f04e6a834b1959.jpg new file mode 100644 index 000000000..ae3c1bdac Binary files /dev/null and b/img/photos/f7f04e6a834b1959.jpg differ diff --git a/img/photos/f94e788e72666bfd.jpg b/img/photos/f94e788e72666bfd.jpg new file mode 100644 index 000000000..d2c476040 Binary files /dev/null and b/img/photos/f94e788e72666bfd.jpg differ diff --git a/img/photos/ff23569f1a45865d.jpg b/img/photos/ff23569f1a45865d.jpg new file mode 100644 index 000000000..56e992714 Binary files /dev/null and b/img/photos/ff23569f1a45865d.jpg differ diff --git a/img/photos/ff54b43b56632883.jpg b/img/photos/ff54b43b56632883.jpg new file mode 100644 index 000000000..68fa4626c Binary files /dev/null and b/img/photos/ff54b43b56632883.jpg differ diff --git a/dist/demo/products/apple-iphone7-special.jpg b/img/products/apple-iphone7-special.jpg similarity index 100% rename from dist/demo/products/apple-iphone7-special.jpg rename to img/products/apple-iphone7-special.jpg diff --git a/dist/demo/products/apple-iphone7.jpg b/img/products/apple-iphone7.jpg similarity index 100% rename from dist/demo/products/apple-iphone7.jpg rename to img/products/apple-iphone7.jpg diff --git a/dist/demo/products/apple-macbook-pro.jpg b/img/products/apple-macbook-pro.jpg similarity index 100% rename from dist/demo/products/apple-macbook-pro.jpg rename to img/products/apple-macbook-pro.jpg diff --git a/dist/demo/products/gopro-hero.jpg b/img/products/gopro-hero.jpg similarity index 100% rename from dist/demo/products/gopro-hero.jpg rename to img/products/gopro-hero.jpg diff --git a/dist/demo/products/huawei-mate.jpg b/img/products/huawei-mate.jpg similarity index 100% rename from dist/demo/products/huawei-mate.jpg rename to img/products/huawei-mate.jpg diff --git a/dist/demo/products/lenovo-tab.jpg b/img/products/lenovo-tab.jpg similarity index 100% rename from dist/demo/products/lenovo-tab.jpg rename to img/products/lenovo-tab.jpg diff --git a/dist/demo/products/lg-g6.jpg b/img/products/lg-g6.jpg similarity index 100% rename from dist/demo/products/lg-g6.jpg rename to img/products/lg-g6.jpg diff --git a/dist/demo/products/msi.jpg b/img/products/msi.jpg similarity index 100% rename from dist/demo/products/msi.jpg rename to img/products/msi.jpg diff --git a/dist/demo/products/samsung-galaxy.jpg b/img/products/samsung-galaxy.jpg similarity index 100% rename from dist/demo/products/samsung-galaxy.jpg rename to img/products/samsung-galaxy.jpg diff --git a/dist/demo/products/sony-kd.jpg b/img/products/sony-kd.jpg similarity index 100% rename from dist/demo/products/sony-kd.jpg rename to img/products/sony-kd.jpg diff --git a/dist/demo/products/xiaomi-mi.jpg b/img/products/xiaomi-mi.jpg similarity index 100% rename from dist/demo/products/xiaomi-mi.jpg rename to img/products/xiaomi-mi.jpg diff --git a/img/sample.jpg b/img/sample.jpg new file mode 100644 index 000000000..2a5ce3792 Binary files /dev/null and b/img/sample.jpg differ diff --git a/dist/demo/brand/tabler.svg b/img/tabler.svg similarity index 100% rename from dist/demo/brand/tabler.svg rename to img/tabler.svg diff --git a/js/app/charts.js b/js/app/charts.js new file mode 100644 index 000000000..12e1167f7 --- /dev/null +++ b/js/app/charts.js @@ -0,0 +1,40 @@ +(function ($) { + $(document).ready(function () { + + $('[data-spark]').each(function () { + var $this = $(this), + data = $this.attr('data-spark'), + color = $this.attr('data-spark-color') || 'blue', + type = $this.attr('data-spark-type') || 'line'; + + var $div = $('
').html(data); + $this.append($div); + + var strokeColor = uikit.colors[color], + fillColor = uikit.colors[color]; + + if (type === 'donut' || type === 'pie') { + fillColor = [fillColor, 'rgba(0, 0, 0, .064)']; + } else if (type === 'bar') { + fillColor = [fillColor]; + } else if (type === 'line') { + fillColor = uikit.hexToRgbA(fillColor, .1); + } + + $div.peity(type, { + width: $this.width(), + height: $this.height(), + // max: 100, + // min: 0, + stroke: strokeColor, + strokeWidth: 2, + fill: fillColor, + padding: .2, + innerRadius: (type === 'donut') ? 17 : 0 + }); + + + }); + + }); +})(jQuery); diff --git a/js/ui-kit.js b/js/ui-kit.js new file mode 100644 index 000000000..479964603 --- /dev/null +++ b/js/ui-kit.js @@ -0,0 +1,115 @@ +var uikit = { + colorVariation: function (color, variation) { + var colorValue = this.colors[color]; + + + if (colorValue) { + switch (variation) { + case 'light': + return this.mixColors(colorValue, '#ffffff', 70); + case 'lighten': + return this.mixColors(colorValue, '#ffffff', 30); + case 'lightest': + return this.mixColors(colorValue, '#ffffff', 10); + case 'dark': + return this.mixColors(colorValue, '#000000', 80); + case 'darken': + return this.mixColors(colorValue, '#000000', 40); + case 'darkest': + return this.mixColors(colorValue, '#000000', 20); + } + + return colorValue; + } + + throw new Error('Wrong color: ' + color); + }, + + hexToRgbA: function (hex, opacity) { + var c; + + opacity = opacity || 1; + + if (/^#([A-Fa-f0-9]{3}){1,2}$/.test(hex)) { + c = hex.substring(1).split(''); + if (c.length === 3) { + c = [c[0], c[0], c[1], c[1], c[2], c[2]]; + } + c = '0x' + c.join(''); + return 'rgba(' + [(c >> 16) & 255, (c >> 8) & 255, c & 255].join(',') + ',' + opacity + ')'; + } + throw new Error('Bad Hex'); + }, + + mixColors: function (color_1, color_2, weight) { + color_1 = color_1.substr(1); + color_2 = color_2.substr(1); + + function d2h(d) { + return d.toString(16); + } + + function h2d(h) { + return parseInt(h, 16); + } + + weight = (typeof(weight) !== 'undefined') ? weight : 50; + + var color = '#'; + + for (var i = 0; i <= 5; i += 2) { + var v1 = h2d(color_1.substr(i, 2)), + v2 = h2d(color_2.substr(i, 2)); + + var val = d2h(Math.floor(v2 + (v1 - v2) * (weight / 100.0))); + + while (val.length < 2) { + val = '0' + val; + } + + color += val; + } + + return color; + }, + + toggleFullscreen: function (elem) { + elem = elem || document.documentElement; + if (!document.fullscreenElement && !document.mozFullScreenElement && + !document.webkitFullscreenElement && !document.msFullscreenElement) { + if (elem.requestFullscreen) { + elem.requestFullscreen(); + } else if (elem.msRequestFullscreen) { + elem.msRequestFullscreen(); + } else if (elem.mozRequestFullScreen) { + elem.mozRequestFullScreen(); + } else if (elem.webkitRequestFullscreen) { + elem.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT); + } + } else { + if (document.exitFullscreen) { + document.exitFullscreen(); + } else if (document.msExitFullscreen) { + document.msExitFullscreen(); + } else if (document.mozCancelFullScreen) { + document.mozCancelFullScreen(); + } else if (document.webkitExitFullscreen) { + document.webkitExitFullscreen(); + } + } + } +}; + + +$(document).ready(function () { + var $body = $('body'); + + $body.on('click', '[data-toggle="sidebar"]', function (e) { + $body.toggleClass('sidebar-opened'); + + e.preventDefault(); + return false; + }); +}); + +window.uikit = uikit; diff --git a/libs/apexcharts/apexcharts.common.js b/libs/apexcharts/apexcharts.common.js new file mode 100644 index 000000000..bbcf8aec1 --- /dev/null +++ b/libs/apexcharts/apexcharts.common.js @@ -0,0 +1,27543 @@ +/*! + * ApexCharts v3.6.2 + * (c) 2018-2019 Juned Chhipa + * Released under the MIT License. + */ +'use strict'; + +function _typeof(obj) { + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function (obj) { + return typeof obj; + }; + } else { + _typeof = function (obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + + return _typeof(obj); +} + +function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +} + +function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } +} + +function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; +} + +function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + + return obj; +} + +function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + var ownKeys = Object.keys(source); + + if (typeof Object.getOwnPropertySymbols === 'function') { + ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + })); + } + + ownKeys.forEach(function (key) { + _defineProperty(target, key, source[key]); + }); + } + + return target; +} + +function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function"); + } + + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + writable: true, + configurable: true + } + }); + if (superClass) _setPrototypeOf(subClass, superClass); +} + +function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); +} + +function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + + return _setPrototypeOf(o, p); +} + +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; +} + +function _possibleConstructorReturn(self, call) { + if (call && (typeof call === "object" || typeof call === "function")) { + return call; + } + + return _assertThisInitialized(self); +} + +function _toConsumableArray(arr) { + return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); +} + +function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) { + for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; + + return arr2; + } +} + +function _iterableToArray(iter) { + if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); +} + +function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance"); +} + +/* + ** Generic functions which are not dependent on ApexCharts + */ +var Utils = +/*#__PURE__*/ +function () { + function Utils() { + _classCallCheck(this, Utils); + } + + _createClass(Utils, [{ + key: "shadeRGBColor", + value: function shadeRGBColor(percent, color) { + var f = color.split(','), + t = percent < 0 ? 0 : 255, + p = percent < 0 ? percent * -1 : percent, + R = parseInt(f[0].slice(4)), + G = parseInt(f[1]), + B = parseInt(f[2]); + return 'rgb(' + (Math.round((t - R) * p) + R) + ',' + (Math.round((t - G) * p) + G) + ',' + (Math.round((t - B) * p) + B) + ')'; + } + }, { + key: "shadeHexColor", + value: function shadeHexColor(percent, color) { + var f = parseInt(color.slice(1), 16), + t = percent < 0 ? 0 : 255, + p = percent < 0 ? percent * -1 : percent, + R = f >> 16, + G = f >> 8 & 0x00ff, + B = f & 0x0000ff; + return '#' + (0x1000000 + (Math.round((t - R) * p) + R) * 0x10000 + (Math.round((t - G) * p) + G) * 0x100 + (Math.round((t - B) * p) + B)).toString(16).slice(1); + } // beautiful color shading blending code + // http://stackoverflow.com/questions/5560248/programmatically-lighten-or-darken-a-hex-color-or-rgb-and-blend-colors + + }, { + key: "shadeColor", + value: function shadeColor(p, color) { + if (color.length > 7) return this.shadeRGBColor(p, color);else return this.shadeHexColor(p, color); + } + }], [{ + key: "bind", + value: function bind(fn, me) { + return function () { + return fn.apply(me, arguments); + }; + } + }, { + key: "isObject", + value: function isObject(item) { + return item && _typeof(item) === 'object' && !Array.isArray(item) && item != null; + } // to extend defaults with user options + // credit: http://stackoverflow.com/questions/27936772/deep-object-merging-in-es6-es7#answer-34749873 + + }, { + key: "extend", + value: function extend(target, source) { + var _this = this; + + if (typeof Object.assign !== 'function') { + + (function () { + Object.assign = function (target) { + + if (target === undefined || target === null) { + throw new TypeError('Cannot convert undefined or null to object'); + } + + var output = Object(target); + + for (var index = 1; index < arguments.length; index++) { + var _source = arguments[index]; + + if (_source !== undefined && _source !== null) { + for (var nextKey in _source) { + if (_source.hasOwnProperty(nextKey)) { + output[nextKey] = _source[nextKey]; + } + } + } + } + + return output; + }; + })(); + } + + var output = Object.assign({}, target); + + if (this.isObject(target) && this.isObject(source)) { + Object.keys(source).forEach(function (key) { + if (_this.isObject(source[key])) { + if (!(key in target)) { + Object.assign(output, _defineProperty({}, key, source[key])); + } else { + output[key] = _this.extend(target[key], source[key]); + } + } else { + Object.assign(output, _defineProperty({}, key, source[key])); + } + }); + } + + return output; + } + }, { + key: "extendArray", + value: function extendArray(arrToExtend, resultArr) { + var extendedArr = []; + arrToExtend.map(function (item) { + extendedArr.push(Utils.extend(resultArr, item)); + }); + arrToExtend = extendedArr; + return arrToExtend; + } // If month counter exceeds 12, it starts again from 1 + + }, { + key: "monthMod", + value: function monthMod(month) { + return month % 12; + } + }, { + key: "addProps", + value: function addProps(obj, arr, val) { + if (typeof arr === 'string') { + arr = arr.split('.'); + } + + obj[arr[0]] = obj[arr[0]] || {}; + var tmpObj = obj[arr[0]]; + + if (arr.length > 1) { + arr.shift(); + this.addProps(tmpObj, arr, val); + } else { + obj[arr[0]] = val; + } + + return obj; + } + }, { + key: "clone", + value: function clone(source) { + if (Object.prototype.toString.call(source) === '[object Array]') { + var cloneResult = []; + + for (var i = 0; i < source.length; i++) { + cloneResult[i] = this.clone(source[i]); + } + + return cloneResult; + } else if (_typeof(source) === 'object') { + var _cloneResult = {}; + + for (var prop in source) { + if (source.hasOwnProperty(prop)) { + _cloneResult[prop] = this.clone(source[prop]); + } + } + + return _cloneResult; + } else { + return source; + } + } + }, { + key: "log10", + value: function log10(x) { + return Math.log(x) / Math.LN10; + } + }, { + key: "roundToBase10", + value: function roundToBase10(x) { + return Math.pow(10, Math.floor(Math.log10(x))); + } + }, { + key: "roundToBase", + value: function roundToBase(x, base) { + return Math.pow(base, Math.floor(Math.log(x) / Math.log(base))); + } + }, { + key: "parseNumber", + value: function parseNumber(val) { + if (val === null) return val; + return parseFloat(val); + } + }, { + key: "getDimensions", + value: function getDimensions(el) { + var computedStyle = getComputedStyle(el); + var ret = []; + var elementHeight = el.clientHeight; + var elementWidth = el.clientWidth; + elementHeight -= parseFloat(computedStyle.paddingTop) + parseFloat(computedStyle.paddingBottom); + elementWidth -= parseFloat(computedStyle.paddingLeft) + parseFloat(computedStyle.paddingRight); + ret.push(elementWidth); + ret.push(elementHeight); + return ret; + } + }, { + key: "getBoundingClientRect", + value: function getBoundingClientRect(element) { + var rect = element.getBoundingClientRect(); + return { + top: rect.top, + right: rect.right, + bottom: rect.bottom, + left: rect.left, + width: rect.width, + height: rect.height, + x: rect.x, + y: rect.y + }; + } // http://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb#answer-12342275 + + }, { + key: "hexToRgba", + value: function hexToRgba() { + var hex = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '#999999'; + var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.6; + + if (hex.substring(0, 1) !== '#') { + hex = '#999999'; + } + + var h = hex.replace('#', ''); + h = h.match(new RegExp('(.{' + h.length / 3 + '})', 'g')); + + for (var i = 0; i < h.length; i++) { + h[i] = parseInt(h[i].length === 1 ? h[i] + h[i] : h[i], 16); + } + + if (typeof opacity !== 'undefined') h.push(opacity); + return 'rgba(' + h.join(',') + ')'; + } + }, { + key: "getOpacityFromRGBA", + value: function getOpacityFromRGBA(rgba) { + rgba = rgba.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i); + return rgba[3]; + } + }, { + key: "rgb2hex", + value: function rgb2hex(rgb) { + rgb = rgb.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i); + return rgb && rgb.length === 4 ? '#' + ('0' + parseInt(rgb[1], 10).toString(16)).slice(-2) + ('0' + parseInt(rgb[2], 10).toString(16)).slice(-2) + ('0' + parseInt(rgb[3], 10).toString(16)).slice(-2) : ''; + } + }, { + key: "isColorHex", + value: function isColorHex(color) { + return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(color); + } + }, { + key: "polarToCartesian", + value: function polarToCartesian(centerX, centerY, radius, angleInDegrees) { + var angleInRadians = (angleInDegrees - 90) * Math.PI / 180.0; + return { + x: centerX + radius * Math.cos(angleInRadians), + y: centerY + radius * Math.sin(angleInRadians) + }; + } + }, { + key: "escapeString", + value: function escapeString(str) { + var escapeWith = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'x'; + var newStr = str.toString().slice(); + newStr = newStr.replace(/[` ~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi, escapeWith); + return newStr; + } + }, { + key: "negToZero", + value: function negToZero(val) { + return val < 0 ? 0 : val; + } + }, { + key: "moveIndexInArray", + value: function moveIndexInArray(arr, old_index, new_index) { + if (new_index >= arr.length) { + var k = new_index - arr.length + 1; + + while (k--) { + arr.push(undefined); + } + } + + arr.splice(new_index, 0, arr.splice(old_index, 1)[0]); + return arr; + } + }, { + key: "extractNumber", + value: function extractNumber(s) { + return parseFloat(s.replace(/[^\d\.]*/g, '')); + } + }, { + key: "randomString", + value: function randomString(len) { + var text = ''; + var possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; + + for (var i = 0; i < len; i++) { + text += possible.charAt(Math.floor(Math.random() * possible.length)); + } + + return text; + } + }, { + key: "findAncestor", + value: function findAncestor(el, cls) { + while ((el = el.parentElement) && !el.classList.contains(cls)) { + } + + return el; + } + }, { + key: "setELstyles", + value: function setELstyles(el, styles) { + for (var key in styles) { + if (styles.hasOwnProperty(key)) { + el.style.key = styles[key]; + } + } + } + }, { + key: "isNumber", + value: function isNumber(value) { + return !isNaN(value) && parseFloat(Number(value)) === value && !isNaN(parseInt(value, 10)); + } + }, { + key: "isFloat", + value: function isFloat(n) { + return Number(n) === n && n % 1 !== 0; + } + }, { + key: "isSafari", + value: function isSafari() { + return /^((?!chrome|android).)*safari/i.test(navigator.userAgent); + } + }, { + key: "isFirefox", + value: function isFirefox() { + return navigator.userAgent.toLowerCase().indexOf('firefox') > -1; + } + }, { + key: "isIE11", + value: function isIE11() { + if (window.navigator.userAgent.indexOf('MSIE') !== -1 || window.navigator.appVersion.indexOf('Trident/') > -1) { + return true; + } + } + }, { + key: "isIE", + value: function isIE() { + var ua = window.navigator.userAgent; + var msie = ua.indexOf('MSIE '); + + if (msie > 0) { + // IE 10 or older => return version number + return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10); + } + + var trident = ua.indexOf('Trident/'); + + if (trident > 0) { + // IE 11 => return version number + var rv = ua.indexOf('rv:'); + return parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10); + } + + var edge = ua.indexOf('Edge/'); + + if (edge > 0) { + // Edge (IE 12+) => return version number + return parseInt(ua.substring(edge + 5, ua.indexOf('.', edge)), 10); + } // other browser + + + return false; + } + }]); + + return Utils; +}(); + +/** + * ApexCharts Filters Class for setting hover/active states on the paths. + * + * @module Formatters + **/ + +var Filters = +/*#__PURE__*/ +function () { + function Filters(ctx) { + _classCallCheck(this, Filters); + + this.ctx = ctx; + this.w = ctx.w; + } // create a re-usable filter which can be appended other filter effects and applied to multiple elements + + + _createClass(Filters, [{ + key: "getDefaultFilter", + value: function getDefaultFilter(el) { + var w = this.w; + el.unfilter(true); + var filter = new window.SVG.Filter(); + filter.size('120%', '180%', '-5%', '-40%'); + + if (w.config.states.normal.filter !== 'none') { + this.applyFilter(el, w.config.states.normal.filter.type, w.config.states.normal.filter.value); + } else { + if (w.config.chart.dropShadow.enabled) { + this.dropShadow(el, w.config.chart.dropShadow); + } + } + } + }, { + key: "addNormalFilter", + value: function addNormalFilter(el) { + var w = this.w; + + if (w.config.chart.dropShadow.enabled) { + this.dropShadow(el, w.config.chart.dropShadow); + } + } + }, { + key: "addDesaturateFilter", + value: function addDesaturateFilter(el) { + var _this = this; + + var w = this.w; + el.unfilter(true); + var filter = new window.SVG.Filter(); + filter.size('120%', '180%', '-5%', '-40%'); + el.filter(function (add) { + var shadowAttr = w.config.chart.dropShadow; + + if (shadowAttr.enabled) { + filter = _this.addShadow(add, shadowAttr); + } else { + filter = add; + } + + filter.colorMatrix('matrix', [0, 0, 0, 0, 0.5, 0, 0, 0, 0, 0.5, 0, 0, 0, 0, 0.5, 0, 0, 0, 1.0, 0]).colorMatrix('saturate', 0); + }); + el.filterer.node.setAttribute('filterUnits', 'userSpaceOnUse'); + } // appends dropShadow to the filter object which can be chained with other filter effects + + }, { + key: "addLightenFilter", + value: function addLightenFilter(el, attrs) { + var _this2 = this; + + var w = this.w; + var intensity = attrs.intensity; + + if (Utils.isFirefox()) { + return; + } + + el.unfilter(true); + var filter = new window.SVG.Filter(); + filter.size('120%', '180%', '-5%', '-40%'); + el.filter(function (add) { + var shadowAttr = w.config.chart.dropShadow; + + if (shadowAttr.enabled) { + filter = _this2.addShadow(add, shadowAttr); + } else { + filter = add; + } + + filter.componentTransfer({ + rgb: { + type: 'linear', + slope: 1.5, + intercept: intensity + } + }); + }); + el.filterer.node.setAttribute('filterUnits', 'userSpaceOnUse'); + } // appends dropShadow to the filter object which can be chained with other filter effects + + }, { + key: "addDarkenFilter", + value: function addDarkenFilter(el, attrs) { + var _this3 = this; + + var w = this.w; + var intensity = attrs.intensity; + + if (Utils.isFirefox()) { + return; + } + + el.unfilter(true); + var filter = new window.SVG.Filter(); + filter.size('120%', '180%', '-5%', '-40%'); + el.filter(function (add) { + var shadowAttr = w.config.chart.dropShadow; + + if (shadowAttr.enabled) { + filter = _this3.addShadow(add, shadowAttr); + } else { + filter = add; + } + + filter.componentTransfer({ + rgb: { + type: 'linear', + slope: intensity + } + }); + }); + el.filterer.node.setAttribute('filterUnits', 'userSpaceOnUse'); + } + }, { + key: "applyFilter", + value: function applyFilter(el, filter) { + var intensity = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0.5; + + switch (filter) { + case 'none': + { + this.addNormalFilter(el); + break; + } + + case 'lighten': + { + this.addLightenFilter(el, { + intensity: intensity + }); + break; + } + + case 'darken': + { + this.addDarkenFilter(el, { + intensity: intensity + }); + break; + } + + case 'desaturate': + { + this.addDesaturateFilter(el); + break; + } + + default: + // do nothing + break; + } + } // appends dropShadow to the filter object which can be chained with other filter effects + + }, { + key: "addShadow", + value: function addShadow(add, attrs) { + var blur = attrs.blur, + top = attrs.top, + left = attrs.left, + color = attrs.color, + opacity = attrs.opacity; + var shadowBlur = add.flood(color, opacity).composite(add.sourceAlpha, 'in').offset(left, top).gaussianBlur(blur).merge(add.source); + return add.blend(add.source, shadowBlur); + } // directly adds dropShadow to the element and returns the same element. + // the only way it is different from the addShadow() function is that addShadow is chainable to other filters, while this function discards all filters and add dropShadow + + }, { + key: "dropShadow", + value: function dropShadow(el, attrs) { + var top = attrs.top, + left = attrs.left, + blur = attrs.blur, + color = attrs.color, + opacity = attrs.opacity, + noUserSpaceOnUse = attrs.noUserSpaceOnUse; + el.unfilter(true); + var filter = new window.SVG.Filter(); + filter.size('120%', '180%', '-5%', '-40%'); + el.filter(function (add) { + var shadowBlur = null; + + if (Utils.isSafari() || Utils.isFirefox() || Utils.isIE()) { + // safari/firefox has some alternative way to use this filter + shadowBlur = add.flood(color, opacity).composite(add.sourceAlpha, 'in').offset(left, top).gaussianBlur(blur); + } else { + shadowBlur = add.flood(color, opacity).composite(add.sourceAlpha, 'in').offset(left, top).gaussianBlur(blur).merge(add.source); + } + + add.blend(add.source, shadowBlur); + }); + + if (!noUserSpaceOnUse) { + el.filterer.node.setAttribute('filterUnits', 'userSpaceOnUse'); + } + + return el; + } + }, { + key: "setSelectionFilter", + value: function setSelectionFilter(el, realIndex, dataPointIndex) { + var w = this.w; + + if (typeof w.globals.selectedDataPoints[realIndex] !== 'undefined') { + if (w.globals.selectedDataPoints[realIndex].indexOf(dataPointIndex) > -1) { + el.node.setAttribute('selected', true); + var activeFilter = w.config.states.active.filter; + + if (activeFilter !== 'none') { + this.applyFilter(el, activeFilter.type, activeFilter.value); + } + } + } + } + }]); + + return Filters; +}(); + +/** + * ApexCharts Animation Class. + * + * @module Animations + **/ + +var Animations = +/*#__PURE__*/ +function () { + function Animations(ctx) { + _classCallCheck(this, Animations); + + this.ctx = ctx; + this.w = ctx.w; + this.setEasingFunctions(); + } + + _createClass(Animations, [{ + key: "setEasingFunctions", + value: function setEasingFunctions() { + var easing; + var userDefinedEasing = this.w.config.chart.animations.easing; + + switch (userDefinedEasing) { + case 'linear': + { + easing = '-'; + break; + } + + case 'easein': + { + easing = '<'; + break; + } + + case 'easeout': + { + easing = '>'; + break; + } + + case 'easeinout': + { + easing = '<>'; + break; + } + + case 'swing': + { + easing = function easing(pos) { + var s = 1.70158; + return (pos -= 1) * pos * ((s + 1) * pos + s) + 1; + }; + + break; + } + + case 'bounce': + { + easing = function easing(pos) { + if (pos < 1 / 2.75) { + return 7.5625 * pos * pos; + } else if (pos < 2 / 2.75) { + return 7.5625 * (pos -= 1.5 / 2.75) * pos + 0.75; + } else if (pos < 2.5 / 2.75) { + return 7.5625 * (pos -= 2.25 / 2.75) * pos + 0.9375; + } else { + return 7.5625 * (pos -= 2.625 / 2.75) * pos + 0.984375; + } + }; + + break; + } + + case 'elastic': + { + easing = function easing(pos) { + if (pos === !!pos) return pos; + return Math.pow(2, -10 * pos) * Math.sin((pos - 0.075) * (2 * Math.PI) / 0.3) + 1; + }; + + break; + } + + default: + { + easing = '<>'; + } + } + + this.w.globals.easing = easing; + } + }, { + key: "animateLine", + value: function animateLine(el, from, to, speed) { + el.attr(from).animate(speed).attr(to); + } + /* + ** Animate radius of a circle element + */ + + }, { + key: "animateCircleRadius", + value: function animateCircleRadius(el, from, to, speed, easing) { + if (!from) from = 0; + el.attr({ + r: from + }).animate(speed, easing).attr({ + r: to + }); + } + /* + ** Animate radius and position of a circle element + */ + + }, { + key: "animateCircle", + value: function animateCircle(el, from, to, speed, easing) { + el.attr({ + r: from.r, + cx: from.cx, + cy: from.cy + }).animate(speed, easing).attr({ + r: to.r, + cx: to.cx, + cy: to.cy + }); + } + /* + ** Animate rect properties + */ + + }, { + key: "animateRect", + value: function animateRect(el, from, to, speed, fn) { + el.attr(from).animate(speed).attr(to).afterAll(function () { + fn(); + }); + } + }, { + key: "animatePathsGradually", + value: function animatePathsGradually(params) { + var el = params.el, + j = params.j, + pathFrom = params.pathFrom, + pathTo = params.pathTo, + speed = params.speed, + delay = params.delay, + strokeWidth = params.strokeWidth; + var me = this; + var w = this.w; + var delayFactor = 0; + + if (w.config.chart.animations.animateGradually.enabled) { + delayFactor = w.config.chart.animations.animateGradually.delay; + } + + if (w.config.chart.animations.dynamicAnimation.enabled && w.globals.dataChanged) { + delayFactor = 0; + } + + me.morphSVG(el, j, pathFrom, pathTo, speed, strokeWidth, delay * delayFactor); + } + }, { + key: "showDelayedElements", + value: function showDelayedElements() { + this.w.globals.delayedElements.forEach(function (d) { + var ele = d.el; + ele.classList.remove('hidden'); + }); + } // SVG.js animation for morphing one path to another + + }, { + key: "morphSVG", + value: function morphSVG(el, j, pathFrom, pathTo, speed, strokeWidth, delay) { + var _this = this; + + var w = this.w; + + if (!pathFrom) { + pathFrom = el.attr('pathFrom'); + } + + if (!pathTo) { + pathTo = el.attr('pathTo'); + } + + if (!pathFrom || pathFrom.indexOf('undefined') > -1 || pathFrom.indexOf('NaN') > -1) { + pathFrom = "M 0 ".concat(w.globals.gridHeight); + speed = 1; + } + + if (pathTo.indexOf('undefined') > -1 || pathTo.indexOf('NaN') > -1) { + pathTo = "M 0 ".concat(w.globals.gridHeight); + speed = 1; + } + + if (!w.globals.shouldAnimate) { + speed = 1; + } + + el.plot(pathFrom).animate(1, w.globals.easing, delay).plot(pathFrom).animate(speed, w.globals.easing, delay).plot(pathTo).afterAll(function () { + // a flag to indicate that the original mount function can return true now as animation finished here + if (Utils.isNumber(j)) { + if (j === w.globals.series[w.globals.maxValsInArrayIndex].length - 2 && w.globals.shouldAnimate) { + w.globals.animationEnded = true; + } + } else if (w.globals.shouldAnimate) { + w.globals.animationEnded = true; + + if (typeof w.config.chart.events.animationEnd === 'function') { + w.config.chart.events.animationEnd(_this.ctx, w); + } + } + + _this.showDelayedElements(); + }); + } + }]); + + return Animations; +}(); + +/** + * ApexCharts Graphics Class for all drawing operations. + * + * @module Graphics + **/ + +var Graphics = +/*#__PURE__*/ +function () { + function Graphics(ctx) { + _classCallCheck(this, Graphics); + + this.ctx = ctx; + this.w = ctx.w; + } + + _createClass(Graphics, [{ + key: "drawLine", + value: function drawLine(x1, y1, x2, y2) { + var lineColor = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '#a8a8a8'; + var dashArray = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0; + var strokeWidth = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null; + var w = this.w; + var line = w.globals.dom.Paper.line().attr({ + x1: x1, + y1: y1, + x2: x2, + y2: y2, + stroke: lineColor, + 'stroke-dasharray': dashArray, + 'stroke-width': strokeWidth + }); + return line; + } + }, { + key: "drawRect", + value: function drawRect() { + var x1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; + var y1 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + var x2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; + var y2 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0; + var radius = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0; + var color = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '#fefefe'; + var opacity = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : 1; + var strokeWidth = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : null; + var strokeColor = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : null; + var strokeDashArray = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : 0; + var w = this.w; + var rect = w.globals.dom.Paper.rect(); + rect.attr({ + x: x1, + y: y1, + width: x2 > 0 ? x2 : 0, + height: y2 > 0 ? y2 : 0, + rx: radius, + ry: radius, + fill: color, + opacity: opacity, + 'stroke-width': strokeWidth !== null ? strokeWidth : 0, + stroke: strokeColor !== null ? strokeColor : 'none', + 'stroke-dasharray': strokeDashArray + }); + return rect; + } + }, { + key: "drawPolygon", + value: function drawPolygon(polygonString) { + var stroke = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '#e1e1e1'; + var fill = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'none'; + var w = this.w; + var polygon = w.globals.dom.Paper.polygon(polygonString).attr({ + fill: fill, + stroke: stroke + }); + return polygon; + } + }, { + key: "drawCircle", + value: function drawCircle(radius) { + var attrs = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + var w = this.w; + var c = w.globals.dom.Paper.circle(radius * 2); + + if (attrs !== null) { + c.attr(attrs); + } + + return c; + } + }, { + key: "drawPath", + value: function drawPath(_ref) { + var _ref$d = _ref.d, + d = _ref$d === void 0 ? '' : _ref$d, + _ref$stroke = _ref.stroke, + stroke = _ref$stroke === void 0 ? '#a8a8a8' : _ref$stroke, + _ref$strokeWidth = _ref.strokeWidth, + strokeWidth = _ref$strokeWidth === void 0 ? 1 : _ref$strokeWidth, + fill = _ref.fill, + _ref$fillOpacity = _ref.fillOpacity, + fillOpacity = _ref$fillOpacity === void 0 ? 1 : _ref$fillOpacity, + _ref$strokeOpacity = _ref.strokeOpacity, + strokeOpacity = _ref$strokeOpacity === void 0 ? 1 : _ref$strokeOpacity, + classes = _ref.classes, + _ref$strokeLinecap = _ref.strokeLinecap, + strokeLinecap = _ref$strokeLinecap === void 0 ? null : _ref$strokeLinecap, + _ref$strokeDashArray = _ref.strokeDashArray, + strokeDashArray = _ref$strokeDashArray === void 0 ? 0 : _ref$strokeDashArray; + var w = this.w; + + if (strokeLinecap === null) { + strokeLinecap = w.config.stroke.lineCap; + } + + if (d.indexOf('undefined') > -1 || d.indexOf('NaN') > -1) { + d = "M 0 ".concat(w.globals.gridHeight); + } + + var p = w.globals.dom.Paper.path(d).attr({ + fill: fill, + 'fill-opacity': fillOpacity, + stroke: stroke, + 'stroke-opacity': strokeOpacity, + 'stroke-linecap': strokeLinecap, + 'stroke-width': strokeWidth, + 'stroke-dasharray': strokeDashArray, + class: classes + }); + return p; + } + }, { + key: "group", + value: function group() { + var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + var w = this.w; + var g = w.globals.dom.Paper.group(); + + if (attrs !== null) { + g.attr(attrs); + } + + return g; + } + }, { + key: "move", + value: function move(x, y) { + var move = ['M', x, y].join(' '); + return move; + } + }, { + key: "line", + value: function line(x, y) { + var hORv = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + var line = null; + + if (hORv === null) { + line = ['L', x, y].join(' '); + } else if (hORv === 'H') { + line = ['H', x].join(' '); + } else if (hORv === 'V') { + line = ['V', y].join(' '); + } + + return line; + } + }, { + key: "curve", + value: function curve(x1, y1, x2, y2, x, y) { + var curve = ['C', x1, y1, x2, y2, x, y].join(' '); + return curve; + } + }, { + key: "quadraticCurve", + value: function quadraticCurve(x1, y1, x, y) { + var curve = ['Q', x1, y1, x, y].join(' '); + return curve; + } + }, { + key: "arc", + value: function arc(rx, ry, axisRotation, largeArcFlag, sweepFlag, x, y) { + var relative = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : false; + var coord = 'A'; + if (relative) coord = 'a'; + var arc = [coord, rx, ry, axisRotation, largeArcFlag, sweepFlag, x, y].join(' '); + return arc; + } + /** + * @memberof Graphics + * @param {object} + * i = series's index + * realIndex = realIndex is series's actual index when it was drawn time. After several redraws, the iterating "i" may change in loops, but realIndex doesn't + * pathFrom = existing pathFrom to animateTo + * pathTo = new Path to which d attr will be animated from pathFrom to pathTo + * stroke = line Color + * strokeWidth = width of path Line + * fill = it can be gradient, single color, pattern or image + * animationDelay = how much to delay when starting animation (in milliseconds) + * dataChangeSpeed = for dynamic animations, when data changes + * className = class attribute to add + * @return {object} svg.js path object + **/ + + }, { + key: "renderPaths", + value: function renderPaths(_ref2) { + var i = _ref2.i, + j = _ref2.j, + realIndex = _ref2.realIndex, + pathFrom = _ref2.pathFrom, + pathTo = _ref2.pathTo, + stroke = _ref2.stroke, + strokeWidth = _ref2.strokeWidth, + strokeLinecap = _ref2.strokeLinecap, + fill = _ref2.fill, + animationDelay = _ref2.animationDelay, + initialSpeed = _ref2.initialSpeed, + dataChangeSpeed = _ref2.dataChangeSpeed, + className = _ref2.className, + id = _ref2.id, + _ref2$shouldClipToGri = _ref2.shouldClipToGrid, + shouldClipToGrid = _ref2$shouldClipToGri === void 0 ? true : _ref2$shouldClipToGri, + _ref2$bindEventsOnPat = _ref2.bindEventsOnPaths, + bindEventsOnPaths = _ref2$bindEventsOnPat === void 0 ? true : _ref2$bindEventsOnPat; + var w = this.w; + var filters = new Filters(this.ctx); + var anim = new Animations(this.ctx); + var initialAnim = this.w.config.chart.animations.enabled; + var dynamicAnim = initialAnim && this.w.config.chart.animations.dynamicAnimation.enabled; + var d; + var shouldAnimate = !!(initialAnim && !w.globals.resized || dynamicAnim && w.globals.dataChanged && w.globals.shouldAnimate); + + if (shouldAnimate) { + d = pathFrom; + } else { + d = pathTo; + this.w.globals.animationEnded = true; + } + + var strokeDashArrayOpt = w.config.stroke.dashArray; + var strokeDashArray = 0; + + if (Array.isArray(strokeDashArrayOpt)) { + strokeDashArray = strokeDashArrayOpt[realIndex]; + } else { + strokeDashArray = w.config.stroke.dashArray; + } + + var el = this.drawPath({ + d: d, + stroke: stroke, + strokeWidth: strokeWidth, + fill: fill, + fillOpacity: 1, + classes: className, + strokeLinecap: strokeLinecap, + strokeDashArray: strokeDashArray + }); + el.attr('id', "".concat(id, "-").concat(i)); + el.attr('index', realIndex); + + if (shouldClipToGrid) { + el.attr({ + 'clip-path': "url(#gridRectMask".concat(w.globals.cuid, ")") + }); + } // const defaultFilter = el.filterer + + + if (w.config.states.normal.filter.type !== 'none') { + filters.getDefaultFilter(el, w.config.states.normal.filter.type, w.config.states.normal.filter.value); + } else { + if (w.config.chart.dropShadow.enabled) { + if (!w.config.chart.dropShadow.enabledSeries || w.config.chart.dropShadow.enabledSeries && w.config.chart.dropShadow.enabledSeries.indexOf(realIndex) !== -1) { + var shadow = w.config.chart.dropShadow; + filters.dropShadow(el, shadow); + } + } + } + + if (bindEventsOnPaths) { + el.node.addEventListener('mouseenter', this.pathMouseEnter.bind(this, el)); + el.node.addEventListener('mouseleave', this.pathMouseLeave.bind(this, el)); + el.node.addEventListener('mousedown', this.pathMouseDown.bind(this, el)); + } + + el.attr({ + pathTo: pathTo, + pathFrom: pathFrom + }); + var defaultAnimateOpts = { + el: el, + j: j, + pathFrom: pathFrom, + pathTo: pathTo, + strokeWidth: strokeWidth + }; + + if (initialAnim && !w.globals.resized && !w.globals.dataChanged) { + anim.animatePathsGradually(_objectSpread({}, defaultAnimateOpts, { + speed: initialSpeed, + delay: animationDelay + })); + } else { + if (w.globals.resized || !w.globals.dataChanged) { + anim.showDelayedElements(); + } + } + + if (w.globals.dataChanged && dynamicAnim && shouldAnimate) { + anim.animatePathsGradually(_objectSpread({}, defaultAnimateOpts, { + speed: dataChangeSpeed + })); + } + + return el; + } + }, { + key: "drawPattern", + value: function drawPattern(style, width, height) { + var stroke = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '#a8a8a8'; + var strokeWidth = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0; + var w = this.w; + var p = w.globals.dom.Paper.pattern(width, height, function (add) { + if (style === 'horizontalLines') { + add.line(0, 0, height, 0).stroke({ + color: stroke, + width: strokeWidth + 1 + }); + } else if (style === 'verticalLines') { + add.line(0, 0, 0, width).stroke({ + color: stroke, + width: strokeWidth + 1 + }); + } else if (style === 'slantedLines') { + add.line(0, 0, width, height).stroke({ + color: stroke, + width: strokeWidth + }); + } else if (style === 'squares') { + add.rect(width, height).fill('none').stroke({ + color: stroke, + width: strokeWidth + }); + } else if (style === 'circles') { + add.circle(width).fill('none').stroke({ + color: stroke, + width: strokeWidth + }); + } + }); + return p; + } + }, { + key: "drawGradient", + value: function drawGradient(style, gfrom, gto, opacityFrom, opacityTo) { + var size = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null; + var stops = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null; + var colorStops = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : null; + var i = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 0; + var w = this.w; + var g; + gfrom = Utils.hexToRgba(gfrom, opacityFrom); + gto = Utils.hexToRgba(gto, opacityTo); + var stop1 = 0; + var stop2 = 1; + var stop3 = 1; + var stop4 = null; + + if (stops !== null) { + stop1 = typeof stops[0] !== 'undefined' ? stops[0] / 100 : 0; + stop2 = typeof stops[1] !== 'undefined' ? stops[1] / 100 : 1; + stop3 = typeof stops[2] !== 'undefined' ? stops[2] / 100 : 1; + stop4 = typeof stops[3] !== 'undefined' ? stops[3] / 100 : null; + } + + var radial = !!(w.config.chart.type === 'donut' || w.config.chart.type === 'pie' || w.config.chart.type === 'bubble'); + + if (colorStops === null || colorStops.length === 0) { + g = w.globals.dom.Paper.gradient(radial ? 'radial' : 'linear', function (stop) { + stop.at(stop1, gfrom, opacityFrom); + stop.at(stop2, gto, opacityTo); + stop.at(stop3, gto, opacityTo); + + if (stop4 !== null) { + stop.at(stop4, gfrom, opacityFrom); + } + }); + } else { + g = w.globals.dom.Paper.gradient(radial ? 'radial' : 'linear', function (stop) { + var stops = Array.isArray(colorStops[i]) ? colorStops[i] : colorStops; + stops.forEach(function (s) { + stop.at(s.offset / 100, s.color, s.opacity); + }); + }); + } + + if (!radial) { + if (style === 'vertical') { + g.from(0, 0).to(0, 1); + } else if (style === 'diagonal') { + g.from(0, 0).to(1, 1); + } else if (style === 'horizontal') { + g.from(0, 1).to(1, 1); + } else if (style === 'diagonal2') { + g.from(0, 1).to(2, 2); + } + } else { + var offx = w.globals.gridWidth / 2; + var offy = w.globals.gridHeight / 2; + + if (w.config.chart.type !== 'bubble') { + g.attr({ + gradientUnits: 'userSpaceOnUse', + cx: offx, + cy: offy, + r: size + }); + } else { + g.attr({ + cx: 0.5, + cy: 0.5, + r: 0.8, + fx: 0.2, + fy: 0.2 + }); + } + } + + return g; + } + }, { + key: "drawText", + value: function drawText(opts) { + var w = this.w; + var x = opts.x, + y = opts.y, + text = opts.text, + textAnchor = opts.textAnchor, + fontSize = opts.fontSize, + fontFamily = opts.fontFamily, + foreColor = opts.foreColor, + opacity = opts.opacity; + + if (!textAnchor) { + textAnchor = 'start'; + } + + if (!foreColor) { + foreColor = w.config.chart.foreColor; + } + + fontFamily = fontFamily || w.config.chart.fontFamily; + var elText; + + if (Array.isArray(text)) { + elText = w.globals.dom.Paper.text(function (add) { + for (var i = 0; i < text.length; i++) { + add.tspan(text[i]); + } + }); + } else { + elText = w.globals.dom.Paper.plain(text); + } + + elText.attr({ + x: x, + y: y, + 'text-anchor': textAnchor, + 'dominant-baseline': 'central', + 'font-size': fontSize, + 'font-family': fontFamily, + fill: foreColor, + class: 'apexcharts-text ' + opts.cssClass ? opts.cssClass : '' + }); + elText.node.style.fontFamily = fontFamily; + elText.node.style.opacity = opacity; + return elText; + } + }, { + key: "addTspan", + value: function addTspan(textEl, text, fontFamily) { + var tspan = textEl.tspan(text); + + if (!fontFamily) { + fontFamily = this.w.config.chart.fontFamily; + } + + tspan.node.style.fontFamily = fontFamily; + } + }, { + key: "drawMarker", + value: function drawMarker(x, y, opts) { + x = x || 0; + var size = opts.pSize || 0; + var elPoint = null; + + if (opts.shape === 'square') { + var radius = opts.pRadius === undefined ? size / 2 : opts.pRadius; + + if (y === null) { + size = 0; + radius = 0; + } + + var nSize = size * 1.2 + radius; + var p = this.drawRect(nSize, nSize, nSize, nSize, radius); + p.attr({ + x: x - nSize / 2, + y: y - nSize / 2, + cx: x, + cy: y, + class: opts.class ? opts.class : '', + fill: opts.pointFillColor, + 'fill-opacity': opts.pointFillOpacity ? opts.pointFillOpacity : 1, + stroke: opts.pointStrokeColor, + 'stroke-width': opts.pWidth ? opts.pWidth : 0, + 'stroke-opacity': opts.pointStrokeOpacity ? opts.pointStrokeOpacity : 1 + }); + elPoint = p; + } else if (opts.shape === 'circle') { + if (!Utils.isNumber(y)) { + size = 0; + y = 0; + } // let nSize = size - opts.pRadius / 2 < 0 ? 0 : size - opts.pRadius / 2 + + + elPoint = this.drawCircle(size, { + cx: x, + cy: y, + class: opts.class ? opts.class : '', + stroke: opts.pointStrokeColor, + fill: opts.pointFillColor, + 'fill-opacity': opts.pointFillOpacity ? opts.pointFillOpacity : 1, + 'stroke-width': opts.pWidth ? opts.pWidth : 0, + 'stroke-opacity': opts.pointStrokeOpacity ? opts.pointStrokeOpacity : 1 + }); + } + + return elPoint; + } + }, { + key: "pathMouseEnter", + value: function pathMouseEnter(path, e) { + var w = this.w; + var filters = new Filters(this.ctx); + var i = parseInt(path.node.getAttribute('index')); + var j = parseInt(path.node.getAttribute('j')); + + if (typeof w.config.chart.events.dataPointMouseEnter === 'function') { + w.config.chart.events.dataPointMouseEnter(e, this.ctx, { + seriesIndex: i, + dataPointIndex: j, + w: w + }); + } + + this.ctx.fireEvent('dataPointMouseEnter', [e, this.ctx, { + seriesIndex: i, + dataPointIndex: j, + w: w + }]); + + if (w.config.states.active.filter.type !== 'none') { + if (path.node.getAttribute('selected') === 'true') { + return; + } + } + + if (w.config.states.hover.filter.type !== 'none') { + if (w.config.states.active.filter.type !== 'none' && !w.globals.isTouchDevice) { + var hoverFilter = w.config.states.hover.filter; + filters.applyFilter(path, hoverFilter.type, hoverFilter.value); + } + } + } + }, { + key: "pathMouseLeave", + value: function pathMouseLeave(path, e) { + var w = this.w; + var filters = new Filters(this.ctx); + var i = parseInt(path.node.getAttribute('index')); + var j = parseInt(path.node.getAttribute('j')); + + if (typeof w.config.chart.events.dataPointMouseLeave === 'function') { + w.config.chart.events.dataPointMouseLeave(e, this.ctx, { + seriesIndex: i, + dataPointIndex: j, + w: w + }); + } + + this.ctx.fireEvent('dataPointMouseLeave', [e, this.ctx, { + seriesIndex: i, + dataPointIndex: j, + w: w + }]); + + if (w.config.states.active.filter.type !== 'none') { + if (path.node.getAttribute('selected') === 'true') { + return; + } + } + + if (w.config.states.hover.filter.type !== 'none') { + filters.getDefaultFilter(path); + } + } + }, { + key: "pathMouseDown", + value: function pathMouseDown(path, e) { + var w = this.w; + var filters = new Filters(this.ctx); + var i = parseInt(path.node.getAttribute('index')); + var j = parseInt(path.node.getAttribute('j')); + var selected = 'false'; + + if (path.node.getAttribute('selected') === 'true') { + path.node.setAttribute('selected', 'false'); + + if (w.globals.selectedDataPoints[i].indexOf(j) > -1) { + var index = w.globals.selectedDataPoints[i].indexOf(j); + w.globals.selectedDataPoints[i].splice(index, 1); + } + } else { + if (!w.config.states.active.allowMultipleDataPointsSelection && w.globals.selectedDataPoints.length > 0) { + w.globals.selectedDataPoints = []; + var elPaths = w.globals.dom.Paper.select('.apexcharts-series path').members; + var elCircles = w.globals.dom.Paper.select('.apexcharts-series circle, .apexcharts-series rect').members; + elPaths.forEach(function (elPath) { + elPath.node.setAttribute('selected', 'false'); + filters.getDefaultFilter(elPath); + }); + elCircles.forEach(function (circle) { + circle.node.setAttribute('selected', 'false'); + filters.getDefaultFilter(circle); + }); + } + + path.node.setAttribute('selected', 'true'); + selected = 'true'; + + if (typeof w.globals.selectedDataPoints[i] === 'undefined') { + w.globals.selectedDataPoints[i] = []; + } + + w.globals.selectedDataPoints[i].push(j); + } + + if (selected === 'true') { + var activeFilter = w.config.states.active.filter; + + if (activeFilter !== 'none') { + filters.applyFilter(path, activeFilter.type, activeFilter.value); + } + } else { + if (w.config.states.active.filter.type !== 'none') { + filters.getDefaultFilter(path); + } + } + + if (typeof w.config.chart.events.dataPointSelection === 'function') { + w.config.chart.events.dataPointSelection(e, this.ctx, { + selectedDataPoints: w.globals.selectedDataPoints, + seriesIndex: i, + dataPointIndex: j, + w: w + }); + } + + this.ctx.fireEvent('dataPointSelection', [e, this.ctx, { + selectedDataPoints: w.globals.selectedDataPoints, + seriesIndex: i, + dataPointIndex: j, + w: w + }]); // if (this.w.config.chart.selection.selectedPoints !== undefined) { + // this.w.config.chart.selection.selectedPoints(w.globals.selectedDataPoints) + // } + } + }, { + key: "rotateAroundCenter", + value: function rotateAroundCenter(el) { + var coord = el.getBBox(); + var x = coord.x + coord.width / 2; + var y = coord.y + coord.height / 2; + return { + x: x, + y: y + }; + } + }, { + key: "getTextRects", + value: function getTextRects(text, fontSize, fontFamily, transform) { + var useBBox = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true; + var w = this.w; + var virtualText = this.drawText({ + x: -200, + y: -200, + text: text, + textAnchor: 'start', + fontSize: fontSize, + fontFamily: fontFamily, + foreColor: '#fff', + opacity: 0 + }); + + if (transform) { + virtualText.attr('transform', transform); + } + + w.globals.dom.Paper.add(virtualText); + var rect = virtualText.bbox(); + + if (!useBBox) { + rect = virtualText.node.getBoundingClientRect(); + } + + virtualText.remove(); + return { + width: rect.width, + height: rect.height + }; + } + /** + * append ... to long text + * http://stackoverflow.com/questions/9241315/trimming-text-to-a-given-pixel-width-in-svg + * @memberof Graphics + **/ + + }, { + key: "placeTextWithEllipsis", + value: function placeTextWithEllipsis(textObj, textString, width) { + textObj.textContent = textString; + + if (textString.length > 0) { + // ellipsis is needed + if (textObj.getSubStringLength(0, textString.length) >= width) { + for (var x = textString.length - 3; x > 0; x -= 3) { + if (textObj.getSubStringLength(0, x) <= width) { + textObj.textContent = textString.substring(0, x) + '...'; + return; + } + } + + textObj.textContent = '...'; // can't place at all + } + } + } + }], [{ + key: "setAttrs", + value: function setAttrs(el, attrs) { + for (var key in attrs) { + if (attrs.hasOwnProperty(key)) { + el.setAttribute(key, attrs[key]); + } + } + } + }]); + + return Graphics; +}(); + +const name = "en"; +const options = { + months: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + shortMonths: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + days: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + shortDays: [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + toolbar: { + exportToSVG: "Download SVG", + exportToPNG: "Download PNG", + menu: "Menu", + selection: "Selection", + selectionZoom: "Selection Zoom", + zoomIn: "Zoom In", + zoomOut: "Zoom Out", + pan: "Panning", + reset: "Reset Zoom" + } +}; +var en = { + name: name, + options: options +}; + +var Options = +/*#__PURE__*/ +function () { + function Options() { + _classCallCheck(this, Options); + + this.yAxis = { + show: true, + showAlways: false, + seriesName: undefined, + opposite: false, + reversed: false, + logarithmic: false, + tickAmount: undefined, + forceNiceScale: false, + max: undefined, + min: undefined, + floating: false, + decimalsInFloat: 2, + labels: { + show: true, + minWidth: 0, + maxWidth: 160, + offsetX: 0, + offsetY: 0, + rotate: 0, + padding: 20, + style: { + colors: [], + fontSize: '11px', + fontFamily: undefined, + cssClass: '' + }, + formatter: undefined + }, + axisBorder: { + show: false, + color: '#78909C', + offsetX: 0, + offsetY: 0 + }, + axisTicks: { + show: false, + color: '#78909C', + width: 6, + offsetX: 0, + offsetY: 0 + }, + title: { + text: undefined, + rotate: 90, + offsetY: 0, + offsetX: 0, + style: { + color: undefined, + fontSize: '11px', + fontFamily: undefined, + cssClass: '' + } + }, + tooltip: { + enabled: false, + offsetX: 0 + }, + crosshairs: { + show: true, + position: 'front', + stroke: { + color: '#b6b6b6', + width: 1, + dashArray: 0 + } + } + }; + this.xAxisAnnotation = { + x: 0, + x2: null, + strokeDashArray: 1, + fillColor: '#c2c2c2', + borderColor: '#c2c2c2', + opacity: 0.3, + offsetX: 0, + offsetY: 0, + label: { + borderColor: '#c2c2c2', + borderWidth: 1, + text: undefined, + textAnchor: 'middle', + orientation: 'vertical', + position: 'top', + offsetX: 0, + offsetY: 0, + style: { + background: '#fff', + color: undefined, + fontSize: '11px', + fontFamily: undefined, + cssClass: '', + padding: { + left: 5, + right: 5, + top: 2, + bottom: 2 + } + } + } + }; + this.yAxisAnnotation = { + y: 0, + y2: null, + strokeDashArray: 1, + fillColor: '#c2c2c2', + borderColor: '#c2c2c2', + opacity: 0.3, + offsetX: 0, + offsetY: 0, + yAxisIndex: 0, + label: { + borderColor: '#c2c2c2', + borderWidth: 1, + text: undefined, + textAnchor: 'end', + position: 'right', + offsetX: 0, + offsetY: -3, + style: { + background: '#fff', + color: undefined, + fontSize: '11px', + fontFamily: undefined, + cssClass: '', + padding: { + left: 5, + right: 5, + top: 0, + bottom: 2 + } + } + } + }; + this.pointAnnotation = { + x: 0, + y: null, + yAxisIndex: 0, + seriesIndex: 0, + marker: { + size: 0, + fillColor: '#fff', + strokeWidth: 2, + strokeColor: '#333', + shape: 'circle', + offsetX: 0, + offsetY: 0, + radius: 2, + cssClass: '' + }, + label: { + borderColor: '#c2c2c2', + borderWidth: 1, + text: undefined, + textAnchor: 'middle', + offsetX: 0, + offsetY: -15, + style: { + background: '#fff', + color: undefined, + fontSize: '11px', + fontFamily: undefined, + cssClass: '', + padding: { + left: 5, + right: 5, + top: 0, + bottom: 2 + } + } + }, + customSVG: { + SVG: undefined, + cssClass: undefined, + offsetX: 0, + offsetY: 0 + } + }; + } + + _createClass(Options, [{ + key: "init", + value: function init() { + return { + annotations: { + position: 'front', + yaxis: [this.yAxisAnnotation], + xaxis: [this.xAxisAnnotation], + points: [this.pointAnnotation] + }, + chart: { + animations: { + enabled: true, + easing: 'easeinout', + // linear, easeout, easein, easeinout, swing, bounce, elastic + speed: 800, + animateGradually: { + delay: 150, + enabled: true + }, + dynamicAnimation: { + enabled: true, + speed: 350 + } + }, + background: 'transparent', + locales: [en], + defaultLocale: 'en', + dropShadow: { + enabled: false, + enabledSeries: undefined, + top: 2, + left: 2, + blur: 4, + color: '#000', + opacity: 0.35 + }, + events: { + animationEnd: undefined, + beforeMount: undefined, + mounted: undefined, + updated: undefined, + click: undefined, + legendClick: undefined, + selection: undefined, + dataPointSelection: undefined, + dataPointMouseEnter: undefined, + dataPointMouseLeave: undefined, + beforeZoom: undefined, + zoomed: undefined, + scrolled: undefined + }, + foreColor: '#373d3f', + fontFamily: 'Helvetica, Arial, sans-serif', + height: 'auto', + id: undefined, + group: undefined, + offsetX: 0, + offsetY: 0, + selection: { + enabled: false, + type: 'x', + // selectedPoints: undefined, // default datapoints that should be selected automatically + fill: { + color: '#24292e', + opacity: 0.1 + }, + stroke: { + width: 1, + color: '#24292e', + opacity: 0.4, + dashArray: 3 + }, + xaxis: { + min: undefined, + max: undefined + }, + yaxis: { + min: undefined, + max: undefined + } + }, + sparkline: { + enabled: false + }, + brush: { + enabled: false, + autoScaleYaxis: false, + target: undefined + }, + stacked: false, + stackType: 'normal', + toolbar: { + show: true, + tools: { + download: true, + selection: true, + zoom: true, + zoomin: true, + zoomout: true, + pan: true, + reset: true, + customIcons: [] + }, + autoSelected: 'zoom' // accepts -> zoom, pan, selection + + }, + type: 'line', + width: '100%', + zoom: { + enabled: true, + type: 'x', + // autoScaleYaxis: false, // TODO: rewrite the autoScaleY function + zoomedArea: { + fill: { + color: '#90CAF9', + opacity: 0.4 + }, + stroke: { + color: '#0D47A1', + opacity: 0.4, + width: 1 + } + } + } + }, + plotOptions: { + bar: { + horizontal: false, + endingShape: 'flat', + // TODO: deprecate in 4.0 + columnWidth: '70%', + // should be in percent 0 - 100 + barHeight: '70%', + // should be in percent 0 - 100 + distributed: false, + colors: { + ranges: [], + backgroundBarColors: [], + backgroundBarOpacity: 1 + }, + dataLabels: { + position: 'top' // top, center, bottom + // TODO: provide stackedLabels for stacked charts which gives additions of values + + } + }, + candlestick: { + colors: { + upward: '#00B746', + downward: '#EF403C' + }, + wick: { + useFillColor: true + } + }, + heatmap: { + radius: 2, + enableShades: true, + shadeIntensity: 0.5, + distributed: false, + colorScale: { + inverse: false, + ranges: [], + min: undefined, + max: undefined + } + }, + radialBar: { + size: undefined, + inverseOrder: false, + startAngle: 0, + endAngle: 360, + offsetX: 0, + offsetY: 0, + hollow: { + margin: 5, + size: '50%', + background: 'transparent', + image: undefined, + imageWidth: 150, + imageHeight: 150, + imageOffsetX: 0, + imageOffsetY: 0, + imageClipped: true, + position: 'front', + dropShadow: { + enabled: false, + top: 0, + left: 0, + blur: 3, + color: '#000', + opacity: 0.5 + } + }, + track: { + show: true, + startAngle: undefined, + endAngle: undefined, + background: '#f2f2f2', + strokeWidth: '97%', + opacity: 1, + margin: 5, + // margin is in pixels + dropShadow: { + enabled: false, + top: 0, + left: 0, + blur: 3, + color: '#000', + opacity: 0.5 + } + }, + dataLabels: { + show: true, + name: { + show: true, + fontSize: '16px', + fontFamily: undefined, + color: undefined, + offsetY: 0 + }, + value: { + show: true, + fontSize: '14px', + fontFamily: undefined, + color: undefined, + offsetY: 16, + formatter: function formatter(val) { + return val + '%'; + } + }, + total: { + show: false, + label: 'Total', + color: '#373d3f', + formatter: function formatter(w) { + return w.globals.seriesTotals.reduce(function (a, b) { + return a + b; + }, 0) / w.globals.series.length + '%'; + } + } + } + }, + pie: { + size: undefined, + customScale: 1, + offsetX: 0, + offsetY: 0, + expandOnClick: true, + dataLabels: { + // These are the percentage values which are displayed on slice + offset: 0 // offset by which labels will move outside + + }, + donut: { + size: '65%', + background: 'transparent', + labels: { + // These are the inner labels appearing inside donut + show: false, + name: { + show: true, + fontSize: '16px', + fontFamily: undefined, + color: undefined, + offsetY: -10 + }, + value: { + show: true, + fontSize: '20px', + fontFamily: undefined, + color: undefined, + offsetY: 10, + formatter: function formatter(val) { + return val; + } + }, + total: { + show: false, + label: 'Total', + color: '#373d3f', + formatter: function formatter(w) { + return w.globals.seriesTotals.reduce(function (a, b) { + return a + b; + }, 0); + } + } + } + } + }, + radar: { + size: undefined, + offsetX: 0, + offsetY: 0, + polygons: { + // strokeColor: '#e8e8e8', // should be deprecated in the minor version i.e 3.2 + strokeColors: '#e8e8e8', + connectorColors: '#e8e8e8', + fill: { + colors: undefined + } + } + } + }, + colors: undefined, + dataLabels: { + enabled: true, + enabledOnSeries: undefined, + formatter: function formatter(val) { + return val; + }, + textAnchor: 'middle', + offsetX: 0, + offsetY: 0, + style: { + fontSize: '12px', + fontFamily: undefined, + colors: undefined + }, + dropShadow: { + enabled: false, + top: 1, + left: 1, + blur: 1, + color: '#000', + opacity: 0.45 + } + }, + fill: { + type: 'solid', + colors: undefined, + // array of colors + opacity: 0.85, + gradient: { + shade: 'dark', + type: 'horizontal', + shadeIntensity: 0.5, + gradientToColors: undefined, + inverseColors: true, + opacityFrom: 1, + opacityTo: 1, + stops: [0, 50, 100], + colorStops: [] + }, + image: { + src: [], + width: undefined, + // optional + height: undefined // optional + + }, + pattern: { + style: 'sqaures', + // String | Array of Strings + width: 6, + height: 6, + strokeWidth: 2 + } + }, + grid: { + show: true, + borderColor: '#e0e0e0', + strokeDashArray: 0, + position: 'back', + xaxis: { + lines: { + show: false, + animate: false + } + }, + yaxis: { + lines: { + show: true, + animate: true + } + }, + row: { + colors: undefined, + // takes as array which will be repeated on rows + opacity: 0.5 + }, + column: { + colors: undefined, + // takes an array which will be repeated on columns + opacity: 0.5 + }, + padding: { + top: 0, + right: 10, + bottom: 0, + left: 12 + } + }, + labels: [], + legend: { + show: true, + showForSingleSeries: false, + showForNullSeries: true, + showForZeroSeries: true, + floating: false, + position: 'bottom', + // whether to position legends in 1 of 4 + // direction - top, bottom, left, right + horizontalAlign: 'center', + // when position top/bottom, you can specify whether to align legends left, right or center + fontSize: '12px', + fontFamily: undefined, + width: undefined, + height: undefined, + formatter: undefined, + offsetX: -20, + offsetY: 0, + labels: { + colors: undefined, + useSeriesColors: false + }, + markers: { + width: 12, + height: 12, + strokeWidth: 0, + strokeColor: '#fff', + radius: 12, + customHTML: undefined, + offsetX: 0, + offsetY: 0, + onClick: undefined + }, + itemMargin: { + horizontal: 0, + vertical: 5 + }, + onItemClick: { + toggleDataSeries: true + }, + onItemHover: { + highlightDataSeries: true + } + }, + markers: { + discrete: [], + size: 0, + colors: undefined, + //strokeColor: '#fff', // TODO: deprecate in major version 4.0 + strokeColors: '#fff', + strokeWidth: 2, + strokeOpacity: 0.9, + fillOpacity: 1, + shape: 'circle', + radius: 2, + offsetX: 0, + offsetY: 0, + hover: { + size: undefined, + sizeOffset: 3 + } + }, + noData: { + text: undefined, + align: 'center', + verticalAlign: 'middle', + offsetX: 0, + offsetY: 0, + style: { + color: undefined, + fontSize: '14px', + fontFamily: undefined + } + }, + responsive: [], + // breakpoints should follow ascending order 400, then 700, then 1000 + series: undefined, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'lighten', + value: 0.15 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'darken', + value: 0.65 + } + } + }, + title: { + text: undefined, + align: 'left', + margin: 10, + offsetX: 0, + offsetY: 0, + floating: false, + style: { + fontSize: '14px', + fontFamily: undefined, + color: undefined + } + }, + subtitle: { + text: undefined, + align: 'left', + margin: 10, + offsetX: 0, + offsetY: 30, + floating: false, + style: { + fontSize: '12px', + fontFamily: undefined, + color: undefined + } + }, + stroke: { + show: true, + curve: 'smooth', + // "smooth" / "straight" / "stepline" + lineCap: 'butt', + // round, butt , square + width: 2, + colors: undefined, + // array of colors + dashArray: 0 // single value or array of values + + }, + tooltip: { + enabled: true, + shared: true, + followCursor: false, + // when disabled, the tooltip will show on top of the series instead of mouse position + intersect: false, + // when enabled, tooltip will only show when user directly hovers over point + inverseOrder: false, + custom: undefined, + fillSeriesColor: false, + theme: 'light', + style: { + fontSize: '12px', + fontFamily: undefined + }, + onDatasetHover: { + highlightDataSeries: false + }, + x: { + // x value + show: true, + format: 'dd MMM', + // dd/MM, dd MMM yy, dd MMM yyyy + formatter: undefined // a custom user supplied formatter function + + }, + y: { + formatter: undefined, + title: { + formatter: function formatter(seriesName) { + return seriesName; + } + } + }, + z: { + formatter: undefined, + title: 'Size: ' + }, + marker: { + show: true + }, + items: { + display: 'flex' + }, + fixed: { + enabled: false, + position: 'topRight', + // topRight, topLeft, bottomRight, bottomLeft + offsetX: 0, + offsetY: 0 + } + }, + xaxis: { + type: 'category', + categories: [], + offsetX: 0, + offsetY: 0, + labels: { + show: true, + rotate: -45, + rotateAlways: false, + hideOverlappingLabels: true, + trim: true, + minHeight: undefined, + maxHeight: 120, + showDuplicates: true, + style: { + colors: [], + fontSize: '12px', + fontFamily: undefined, + cssClass: '' + }, + offsetX: 0, + offsetY: 0, + format: undefined, + formatter: undefined, + // custom formatter function which will override format + datetimeFormatter: { + year: 'yyyy', + month: "MMM 'yy", + day: 'dd MMM', + hour: 'HH:mm', + minute: 'HH:mm:ss' + } + }, + axisBorder: { + show: true, + color: '#78909C', + width: '100%', + height: 1, + offsetX: 0, + offsetY: 0 + }, + axisTicks: { + show: true, + color: '#78909C', + height: 6, + offsetX: 0, + offsetY: 0 + }, + tickAmount: undefined, + tickPlacement: 'on', + min: undefined, + max: undefined, + range: undefined, + floating: false, + position: 'bottom', + title: { + text: undefined, + offsetX: 0, + offsetY: 0, + style: { + color: undefined, + fontSize: '12px', + fontFamily: undefined, + cssClass: '' + } + }, + crosshairs: { + show: true, + width: 1, + // tickWidth/barWidth or an integer + position: 'back', + opacity: 0.9, + stroke: { + color: '#b6b6b6', + width: 1, + dashArray: 3 + }, + fill: { + type: 'solid', + // solid, gradient + color: '#B1B9C4', + gradient: { + colorFrom: '#D8E3F0', + colorTo: '#BED1E6', + stops: [0, 100], + opacityFrom: 0.4, + opacityTo: 0.5 + } + }, + dropShadow: { + enabled: false, + left: 0, + top: 0, + blur: 1, + opacity: 0.4 + } + }, + tooltip: { + enabled: true, + offsetY: 0, + formatter: undefined, + style: { + fontSize: '12px', + fontFamily: undefined + } + } + }, + yaxis: this.yAxis, + theme: { + palette: 'palette1', + // If defined, it will overwrite globals.colors variable + monochrome: { + // monochrome allows you to select just 1 color and fill out the rest with light/dark shade (intensity can be selected) + enabled: false, + color: '#008FFB', + shadeTo: 'light', + shadeIntensity: 0.65 + } + } + }; + } + }]); + + return Options; +}(); + +/** + * ApexCharts Annotations Class for drawing lines/rects on both xaxis and yaxis. + * + * @module Annotations + **/ + +var Annotations = +/*#__PURE__*/ +function () { + function Annotations(ctx) { + _classCallCheck(this, Annotations); + + this.ctx = ctx; + this.w = ctx.w; + this.graphics = new Graphics(this.ctx); + + if (this.w.config.chart.type === 'bar' && this.w.config.plotOptions.bar.horizontal) { + this.invertAxis = true; + } + + this.xDivision = this.w.globals.gridWidth / this.w.globals.dataPoints; + } + + _createClass(Annotations, [{ + key: "drawAnnotations", + value: function drawAnnotations() { + var w = this.w; + + if (w.globals.axisCharts) { + var yAnnotations = this.drawYAxisAnnotations(); + var xAnnotations = this.drawXAxisAnnotations(); + var pointAnnotations = this.drawPointAnnotations(); + var initialAnim = w.config.chart.animations.enabled; + var annoArray = [yAnnotations, xAnnotations, pointAnnotations]; + var annoElArray = [xAnnotations.node, yAnnotations.node, pointAnnotations.node]; + + for (var i = 0; i < 3; i++) { + w.globals.dom.elGraphical.add(annoArray[i]); + + if (initialAnim && !w.globals.resized && !w.globals.dataChanged) { + annoElArray[i].classList.add('hidden'); + } + + w.globals.delayedElements.push({ + el: annoElArray[i], + index: 0 + }); + } // after placing the annotations on svg, set any vertically placed annotations + + + this.setOrientations(w.config.annotations.xaxis); // background sizes needs to be calculated after text is drawn, so calling them last + + this.annotationsBackground(); + } + } + }, { + key: "addXaxisAnnotation", + value: function addXaxisAnnotation(anno, parent, index) { + var w = this.w; + var min = this.invertAxis ? w.globals.minY : w.globals.minX; + var range = this.invertAxis ? w.globals.yRange[0] : w.globals.xRange; + var x1 = (anno.x - min) / (range / w.globals.gridWidth); + + if (w.config.xaxis.type === 'category' || w.config.xaxis.convertedCatToNumeric) { + var catIndex = w.globals.labels.indexOf(anno.x); + var xLabel = w.globals.dom.baseEl.querySelector('.apexcharts-xaxis-texts-g text:nth-child(' + (catIndex + 1) + ')'); + x1 = parseFloat(xLabel.getAttribute('x')); + } + + var strokeDashArray = anno.strokeDashArray; + if (x1 < 0 || x1 > w.globals.gridWidth) return; + + if (anno.x2 === null) { + var line = this.graphics.drawLine(x1 + anno.offsetX, // x1 + 0 + anno.offsetY, // y1 + x1 + anno.offsetX, // x2 + w.globals.gridHeight + anno.offsetY, // y2 + anno.borderColor, // lineColor + strokeDashArray //dashArray + ); + parent.appendChild(line.node); + } else { + var x2 = (anno.x2 - min) / (range / w.globals.gridWidth); + + if (x2 < x1) { + var temp = x1; + x1 = x2; + x2 = temp; + } + + var rect = this.graphics.drawRect(x1 + anno.offsetX, // x1 + 0 + anno.offsetY, // y1 + x2 - x1, // x2 + w.globals.gridHeight + anno.offsetY, // y2 + 0, // radius + anno.fillColor, // color + anno.opacity, // opacity, + 1, // strokeWidth + anno.borderColor, // strokeColor + strokeDashArray // stokeDashArray + ); + parent.appendChild(rect.node); + } + + var textY = anno.label.position === 'top' ? -3 : w.globals.gridHeight; + var text = anno.label.text ? anno.label.text : ''; + var elText = this.graphics.drawText({ + x: x1 + anno.label.offsetX, + y: textY + anno.label.offsetY, + text: text, + textAnchor: anno.label.textAnchor, + fontSize: anno.label.style.fontSize, + fontFamily: anno.label.style.fontFamily, + foreColor: anno.label.style.color, + cssClass: 'apexcharts-xaxis-annotation-label ' + anno.label.style.cssClass + }); + elText.attr({ + rel: index + }); + parent.appendChild(elText.node); + } + }, { + key: "drawXAxisAnnotations", + value: function drawXAxisAnnotations() { + var _this = this; + + var w = this.w; + var elg = this.graphics.group({ + class: 'apexcharts-xaxis-annotations' + }); + w.config.annotations.xaxis.map(function (anno, index) { + _this.addXaxisAnnotation(anno, elg.node, index); + }); + return elg; + } + }, { + key: "addYaxisAnnotation", + value: function addYaxisAnnotation(anno, parent, index) { + var w = this.w; + var strokeDashArray = anno.strokeDashArray; + var y1; + var y2; + + if (this.invertAxis) { + var catIndex = w.globals.labels.indexOf(anno.y); + var xLabel = w.globals.dom.baseEl.querySelector('.apexcharts-yaxis-texts-g text:nth-child(' + (catIndex + 1) + ')'); + y1 = parseFloat(xLabel.getAttribute('y')); + } else { + y1 = w.globals.gridHeight - (anno.y - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); + + if (w.config.yaxis[anno.yAxisIndex].reversed) { + y1 = (anno.y - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); + } + } + + var text = anno.label.text ? anno.label.text : ''; + + if (anno.y2 === null) { + var line = this.graphics.drawLine(0 + anno.offsetX, // x1 + y1 + anno.offsetY, // y1 + w.globals.gridWidth + anno.offsetX, // x2 + y1 + anno.offsetY, // y2 + anno.borderColor, // lineColor + strokeDashArray // dashArray + ); + parent.appendChild(line.node); + } else { + if (this.invertAxis) { + var _catIndex = w.globals.labels.indexOf(anno.y2); + + var _xLabel = w.globals.dom.baseEl.querySelector('.apexcharts-yaxis-texts-g text:nth-child(' + (_catIndex + 1) + ')'); + + y2 = parseFloat(_xLabel.getAttribute('y')); + } else { + y2 = w.globals.gridHeight - (anno.y2 - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); + + if (w.config.yaxis[anno.yAxisIndex].reversed) { + y2 = (anno.y2 - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); + } + } + + if (y2 > y1) { + var temp = y1; + y1 = y2; + y2 = temp; + } + + var rect = this.graphics.drawRect(0 + anno.offsetX, // x1 + y2 + anno.offsetY, // y1 + w.globals.gridWidth + anno.offsetX, // x2 + y1 - y2, // y2 + 0, // radius + anno.fillColor, // color + anno.opacity, // opacity, + 1, // strokeWidth + anno.borderColor, // strokeColor + strokeDashArray // stokeDashArray + ); + parent.appendChild(rect.node); + } + + var textX = anno.label.position === 'right' ? w.globals.gridWidth : 0; + var elText = this.graphics.drawText({ + x: textX + anno.label.offsetX, + y: (y2 || y1) + anno.label.offsetY - 3, + text: text, + textAnchor: anno.label.textAnchor, + fontSize: anno.label.style.fontSize, + fontFamily: anno.label.style.fontFamily, + foreColor: anno.label.style.color, + cssClass: 'apexcharts-yaxis-annotation-label ' + anno.label.style.cssClass + }); + elText.attr({ + rel: index + }); + parent.appendChild(elText.node); + } + }, { + key: "drawYAxisAnnotations", + value: function drawYAxisAnnotations() { + var _this2 = this; + + var w = this.w; + var elg = this.graphics.group({ + class: 'apexcharts-yaxis-annotations' + }); + w.config.annotations.yaxis.map(function (anno, index) { + _this2.addYaxisAnnotation(anno, elg.node, index); + }); + return elg; + } + }, { + key: "clearAnnotations", + value: function clearAnnotations(ctx) { + var w = ctx.w; + var annos = w.globals.dom.baseEl.querySelectorAll('.apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations'); + annos.forEach(function (a) { + while (a.firstChild) { + a.removeChild(a.firstChild); + } + }); + } + }, { + key: "addPointAnnotation", + value: function addPointAnnotation(anno, parent, index) { + var w = this.w; + var x = 0; + var y = 0; + var pointY = 0; + + if (this.invertAxis) { + console.warn('Point annotation is not supported in horizontal bar charts.'); + } + + if (typeof anno.x === 'string') { + var catIndex = w.globals.labels.indexOf(anno.x); + var xLabel = w.globals.dom.baseEl.querySelector('.apexcharts-xaxis-texts-g text:nth-child(' + (catIndex + 1) + ')'); + var xPos = parseFloat(xLabel.getAttribute('x')); + x = xPos; + var annoY = anno.y; + + if (anno.y === null) { + annoY = w.globals.series[anno.seriesIndex][catIndex]; + } + + y = w.globals.gridHeight - (annoY - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight) - parseInt(anno.label.style.fontSize) - anno.marker.size; + pointY = w.globals.gridHeight - (annoY - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); + + if (w.config.yaxis[anno.yAxisIndex].reversed) { + y = (annoY - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight) + parseInt(anno.label.style.fontSize) + anno.marker.size; + pointY = (annoY - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); + } + } else { + x = (anno.x - w.globals.minX) / (w.globals.xRange / w.globals.gridWidth); + y = w.globals.gridHeight - (parseFloat(anno.y) - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight) - parseInt(anno.label.style.fontSize) - anno.marker.size; + pointY = w.globals.gridHeight - (anno.y - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); + + if (w.config.yaxis[anno.yAxisIndex].reversed) { + y = (parseFloat(anno.y) - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight) - parseInt(anno.label.style.fontSize) - anno.marker.size; + pointY = (anno.y - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); + } + } + + if (x < 0 || x > w.globals.gridWidth) return; + var optsPoints = { + pSize: anno.marker.size, + pWidth: anno.marker.strokeWidth, + pointFillColor: anno.marker.fillColor, + pointStrokeColor: anno.marker.strokeColor, + shape: anno.marker.shape, + radius: anno.marker.radius, + class: 'apexcharts-point-annotation-marker ' + anno.marker.cssClass + }; + var point = this.graphics.drawMarker(x + anno.marker.offsetX, pointY + anno.marker.offsetY, optsPoints); + parent.appendChild(point.node); + var text = anno.label.text ? anno.label.text : ''; + var elText = this.graphics.drawText({ + x: x + anno.label.offsetX, + y: y + anno.label.offsetY, + text: text, + textAnchor: anno.label.textAnchor, + fontSize: anno.label.style.fontSize, + fontFamily: anno.label.style.fontFamily, + foreColor: anno.label.style.color, + cssClass: 'apexcharts-point-annotation-label ' + anno.label.style.cssClass + }); + elText.attr({ + rel: index + }); + parent.appendChild(elText.node); + + if (anno.customSVG.SVG) { + var g = this.graphics.group({ + class: 'apexcharts-point-annotations-custom-svg ' + anno.customSVG.cssClass + }); + g.attr({ + transform: "translate(".concat(x + anno.customSVG.offsetX, ", ").concat(y + anno.customSVG.offsetY, ")") + }); + g.node.innerHTML = anno.customSVG.SVG; + parent.appendChild(g.node); + } + } + }, { + key: "drawPointAnnotations", + value: function drawPointAnnotations() { + var _this3 = this; + + var w = this.w; + var elg = this.graphics.group({ + class: 'apexcharts-point-annotations' + }); + w.config.annotations.points.map(function (anno, index) { + _this3.addPointAnnotation(anno, elg.node, index); + }); + return elg; + } + }, { + key: "setOrientations", + value: function setOrientations(annos) { + var _this4 = this; + + var annoIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + var w = this.w; + annos.map(function (anno, index) { + if (anno.label.orientation === 'vertical') { + var i = annoIndex !== null ? annoIndex : index; + var xAnno = w.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(i, "']")); + + if (xAnno !== null) { + var xAnnoCoord = xAnno.getBoundingClientRect(); + xAnno.setAttribute('x', parseFloat(xAnno.getAttribute('x')) - xAnnoCoord.height + 4); + + if (anno.label.position === 'top') { + xAnno.setAttribute('y', parseFloat(xAnno.getAttribute('y')) + xAnnoCoord.width); + } else { + xAnno.setAttribute('y', parseFloat(xAnno.getAttribute('y')) - xAnnoCoord.width); + } + + var annoRotatingCenter = _this4.graphics.rotateAroundCenter(xAnno); + + var x = annoRotatingCenter.x; + var y = annoRotatingCenter.y; + xAnno.setAttribute('transform', "rotate(-90 ".concat(x, " ").concat(y, ")")); + } + } + }); + } + }, { + key: "addBackgroundToAnno", + value: function addBackgroundToAnno(annoEl, anno) { + var w = this.w; + var elGridRect = w.globals.dom.baseEl.querySelector('.apexcharts-grid').getBoundingClientRect(); + var coords = annoEl.getBoundingClientRect(); + var pleft = anno.label.style.padding.left; + var pright = anno.label.style.padding.right; + var ptop = anno.label.style.padding.top; + var pbottom = anno.label.style.padding.bottom; + + if (anno.label.orientation === 'vertical') { + ptop = anno.label.style.padding.left; + pbottom = anno.label.style.padding.right; + pleft = anno.label.style.padding.top; + pright = anno.label.style.padding.bottom; + } + + var x1 = coords.left - elGridRect.left - pleft; + var y1 = coords.top - elGridRect.top - ptop; + var elRect = this.graphics.drawRect(x1, y1, coords.width + pleft + pright, coords.height + ptop + pbottom, 0, anno.label.style.background, 1, anno.label.borderWidth, anno.label.borderColor, 0); + return elRect; + } + }, { + key: "annotationsBackground", + value: function annotationsBackground() { + var _this5 = this; + + var w = this.w; + + var add = function add(anno, i, type) { + var annoLabel = w.globals.dom.baseEl.querySelector(".apexcharts-".concat(type, "-annotations .apexcharts-").concat(type, "-annotation-label[rel='").concat(i, "']")); + + if (annoLabel) { + var parent = annoLabel.parentNode; + + var elRect = _this5.addBackgroundToAnno(annoLabel, anno); + + parent.insertBefore(elRect.node, annoLabel); + } + }; + + w.config.annotations.xaxis.map(function (anno, i) { + add(anno, i, 'xaxis'); + }); + w.config.annotations.yaxis.map(function (anno, i) { + add(anno, i, 'yaxis'); + }); + w.config.annotations.points.map(function (anno, i) { + add(anno, i, 'point'); + }); + } + }, { + key: "addText", + value: function addText(params, pushToMemory, context) { + var x = params.x, + y = params.y, + text = params.text, + textAnchor = params.textAnchor, + _params$appendTo = params.appendTo, + appendTo = _params$appendTo === void 0 ? '.apexcharts-inner' : _params$appendTo, + foreColor = params.foreColor, + fontSize = params.fontSize, + fontFamily = params.fontFamily, + cssClass = params.cssClass, + backgroundColor = params.backgroundColor, + borderWidth = params.borderWidth, + strokeDashArray = params.strokeDashArray, + radius = params.radius, + borderColor = params.borderColor, + _params$paddingLeft = params.paddingLeft, + paddingLeft = _params$paddingLeft === void 0 ? 4 : _params$paddingLeft, + _params$paddingRight = params.paddingRight, + paddingRight = _params$paddingRight === void 0 ? 4 : _params$paddingRight, + _params$paddingBottom = params.paddingBottom, + paddingBottom = _params$paddingBottom === void 0 ? 2 : _params$paddingBottom, + _params$paddingTop = params.paddingTop, + paddingTop = _params$paddingTop === void 0 ? 2 : _params$paddingTop; + var me = context; + var w = me.w; + var parentNode = w.globals.dom.baseEl.querySelector(appendTo); + var elText = this.graphics.drawText({ + x: x, + y: y, + text: text, + textAnchor: textAnchor || 'start', + fontSize: fontSize || '12px', + fontFamily: fontFamily || w.config.chart.fontFamily, + foreColor: foreColor || w.config.chart.foreColor, + cssClass: 'apexcharts-text ' + cssClass ? cssClass : '' + }); + parentNode.appendChild(elText.node); + var textRect = elText.bbox(); + var elRect = this.graphics.drawRect(textRect.x - paddingLeft, textRect.y - paddingTop, textRect.width + paddingLeft + paddingRight, textRect.height + paddingBottom + paddingTop, radius, backgroundColor, 1, borderWidth, borderColor, strokeDashArray); + elText.before(elRect); + + if (pushToMemory) { + w.globals.memory.methodsToExec.push({ + context: me, + method: me.addText, + params: { + x: x, + y: y, + text: text, + textAnchor: textAnchor, + appendTo: appendTo, + foreColor: foreColor, + fontSize: fontSize, + cssClass: cssClass, + backgroundColor: backgroundColor, + borderWidth: borderWidth, + strokeDashArray: strokeDashArray, + radius: radius, + borderColor: borderColor, + paddingLeft: paddingLeft, + paddingRight: paddingRight, + paddingBottom: paddingBottom, + paddingTop: paddingTop + } + }); + } + + return context; + } + }, { + key: "addPointAnnotationExternal", + value: function addPointAnnotationExternal(params, pushToMemory, context) { + this.addAnnotationExternal({ + params: params, + pushToMemory: pushToMemory, + context: context, + type: 'point', + contextMethod: context.addPointAnnotation + }); + return context; + } + }, { + key: "addYaxisAnnotationExternal", + value: function addYaxisAnnotationExternal(params, pushToMemory, context) { + this.addAnnotationExternal({ + params: params, + pushToMemory: pushToMemory, + context: context, + type: 'yaxis', + contextMethod: context.addYaxisAnnotation + }); + return context; + } // The addXaxisAnnotation method requires a parent class, and user calling this method externally on the chart instance may not specify parent, hence a different method + + }, { + key: "addXaxisAnnotationExternal", + value: function addXaxisAnnotationExternal(params, pushToMemory, context) { + this.addAnnotationExternal({ + params: params, + pushToMemory: pushToMemory, + context: context, + type: 'xaxis', + contextMethod: context.addXaxisAnnotation + }); + return context; + } + }, { + key: "addAnnotationExternal", + value: function addAnnotationExternal(_ref) { + var params = _ref.params, + pushToMemory = _ref.pushToMemory, + context = _ref.context, + type = _ref.type, + contextMethod = _ref.contextMethod; + var me = context; + var w = me.w; + var parent = w.globals.dom.baseEl.querySelector(".apexcharts-".concat(type, "-annotations")); + var index = parent.childNodes.length + 1; + var opt = new Options(); + var axesAnno = Object.assign({}, type === 'xaxis' ? opt.xAxisAnnotation : type === 'yaxis' ? opt.yAxisAnnotation : opt.pointAnnotation); + var anno = Utils.extend(axesAnno, params); + + switch (type) { + case 'xaxis': + this.addXaxisAnnotation(anno, parent, index); + break; + + case 'yaxis': + this.addYaxisAnnotation(anno, parent, index); + break; + + case 'point': + this.addPointAnnotation(anno, parent, index); + break; + } // add background + + + var axesAnnoLabel = w.globals.dom.baseEl.querySelector(".apexcharts-".concat(type, "-annotations .apexcharts-").concat(type, "-annotation-label[rel='").concat(index, "']")); + var elRect = this.addBackgroundToAnno(axesAnnoLabel, anno); + parent.insertBefore(elRect.node, axesAnnoLabel); + + if (pushToMemory) { + w.globals.memory.methodsToExec.push({ + context: me, + method: contextMethod, + params: params + }); + } + + return context; + } + }]); + + return Annotations; +}(); + +/** + * ApexCharts Default Class for setting default options for all chart types. + * + * @module Defaults + **/ + +var Defaults = +/*#__PURE__*/ +function () { + function Defaults(opts) { + _classCallCheck(this, Defaults); + + this.opts = opts; + } + + _createClass(Defaults, [{ + key: "line", + value: function line() { + return { + chart: { + animations: { + easing: 'swing' + } + }, + dataLabels: { + enabled: false + }, + stroke: { + width: 5, + curve: 'straight' + }, + markers: { + size: 0, + hover: { + sizeOffset: 6 + } + }, + xaxis: { + crosshairs: { + width: 1 + } + } + }; + } + }, { + key: "sparkline", + value: function sparkline(defaults) { + this.opts.yaxis[0].labels.show = false; + this.opts.yaxis[0].floating = true; + var ret = { + grid: { + show: false, + padding: { + left: 0, + right: 0, + top: 0, + bottom: 0 + } + }, + legend: { + show: false + }, + xaxis: { + labels: { + show: false + }, + tooltip: { + enabled: false + }, + axisBorder: { + show: false + } + }, + chart: { + toolbar: { + show: false + }, + zoom: { + enabled: false + } + }, + dataLabels: { + enabled: false + } + }; + return Utils.extend(defaults, ret); + } + }, { + key: "bar", + value: function bar() { + return { + chart: { + stacked: false, + animations: { + easing: 'swing' + } + }, + plotOptions: { + bar: { + dataLabels: { + position: 'center' + } + } + }, + dataLabels: { + style: { + colors: ['#fff'] + } + }, + stroke: { + width: 0 + }, + fill: { + opacity: 0.85 + }, + legend: { + markers: { + shape: 'square', + radius: 2, + size: 8 + } + }, + tooltip: { + shared: false + }, + xaxis: { + tooltip: { + enabled: false + }, + crosshairs: { + width: 'barWidth', + position: 'back', + fill: { + type: 'gradient' + }, + dropShadow: { + enabled: false + }, + stroke: { + width: 0 + } + } + } + }; + } + }, { + key: "candlestick", + value: function candlestick() { + return { + stroke: { + width: 1, + colors: ['#333'] + }, + dataLabels: { + enabled: false + }, + tooltip: { + shared: true, + custom: function custom(_ref) { + var seriesIndex = _ref.seriesIndex, + dataPointIndex = _ref.dataPointIndex, + w = _ref.w; + var o = w.globals.seriesCandleO[seriesIndex][dataPointIndex]; + var h = w.globals.seriesCandleH[seriesIndex][dataPointIndex]; + var l = w.globals.seriesCandleL[seriesIndex][dataPointIndex]; + var c = w.globals.seriesCandleC[seriesIndex][dataPointIndex]; + return '
' + '
Open: ' + o + '
' + '
High: ' + h + '
' + '
Low: ' + l + '
' + '
Close: ' + c + '
' + '
'; + } + }, + states: { + active: { + filter: { + type: 'none' + } + } + }, + xaxis: { + crosshairs: { + width: 1 + } + } + }; + } + }, { + key: "area", + value: function area() { + return { + stroke: { + width: 4 + }, + fill: { + type: 'gradient', + gradient: { + inverseColors: false, + shade: 'light', + type: 'vertical', + opacityFrom: 0.65, + opacityTo: 0.5, + stops: [0, 100, 100] + } + }, + markers: { + size: 0, + hover: { + sizeOffset: 6 + } + }, + tooltip: { + followCursor: false + } + }; + } + }, { + key: "brush", + value: function brush(defaults) { + var ret = { + chart: { + toolbar: { + autoSelected: 'selection', + show: false + }, + zoom: { + enabled: false + } + }, + dataLabels: { + enabled: false + }, + stroke: { + width: 1 + }, + tooltip: { + enabled: false + }, + xaxis: { + tooltip: { + enabled: false + } + } + }; + return Utils.extend(defaults, ret); + } + }, { + key: "stacked100", + value: function stacked100() { + var _this = this; + + this.opts.dataLabels = this.opts.dataLabels || {}; + this.opts.dataLabels.formatter = this.opts.dataLabels.formatter || undefined; + var existingDataLabelFormatter = this.opts.dataLabels.formatter; + this.opts.yaxis.forEach(function (yaxe, index) { + _this.opts.yaxis[index].min = 0; + _this.opts.yaxis[index].max = 100; + }); + var isBar = this.opts.chart.type === 'bar'; + + if (isBar) { + this.opts.dataLabels.formatter = existingDataLabelFormatter || function (val) { + if (typeof val === 'number') { + return val ? val.toFixed(0) + '%' : val; + } + + return val; + }; + } + } // This function removes the left and right spacing in chart for line/area/scatter if xaxis type = category for those charts by converting xaxis = numeric. Numeric/Datetime xaxis prevents the unnecessary spacing in the left/right of the chart area + + }, { + key: "bubble", + value: function bubble() { + return { + dataLabels: { + style: { + colors: ['#fff'] + } + }, + tooltip: { + shared: false, + intersect: true + }, + xaxis: { + crosshairs: { + width: 0 + } + }, + fill: { + type: 'solid', + gradient: { + shade: 'light', + inverse: true, + shadeIntensity: 0.55, + opacityFrom: 0.4, + opacityTo: 0.8 + } + } + }; + } + }, { + key: "scatter", + value: function scatter() { + return { + dataLabels: { + enabled: false + }, + tooltip: { + shared: false, + intersect: true + }, + markers: { + size: 6, + strokeWidth: 2, + hover: { + sizeOffset: 2 + } + } + }; + } + }, { + key: "heatmap", + value: function heatmap() { + return { + chart: { + stacked: false, + zoom: { + enabled: false + } + }, + fill: { + opacity: 1 + }, + dataLabels: { + style: { + colors: ['#fff'] + } + }, + stroke: { + colors: ['#fff'] + }, + tooltip: { + followCursor: true, + marker: { + show: false + }, + x: { + show: false + } + }, + legend: { + position: 'top', + markers: { + shape: 'square', + size: 10, + offsetY: 2 + } + }, + grid: { + padding: { + right: 20 + } + } + }; + } + }, { + key: "pie", + value: function pie() { + return { + chart: { + toolbar: { + show: false + } + }, + plotOptions: { + pie: { + donut: { + labels: { + show: false + } + } + } + }, + dataLabels: { + formatter: function formatter(val) { + return val.toFixed(1) + '%'; + }, + style: { + colors: ['#fff'] + }, + dropShadow: { + enabled: true + } + }, + stroke: { + colors: ['#fff'] + }, + fill: { + opacity: 1, + gradient: { + shade: 'dark', + shadeIntensity: 0.35, + inverseColors: false, + stops: [0, 100, 100] + } + }, + padding: { + right: 0, + left: 0 + }, + tooltip: { + theme: 'dark', + fillSeriesColor: true + }, + legend: { + position: 'right' + } + }; + } + }, { + key: "donut", + value: function donut() { + return { + chart: { + toolbar: { + show: false + } + }, + dataLabels: { + formatter: function formatter(val) { + return val.toFixed(1) + '%'; + }, + style: { + colors: ['#fff'] + }, + dropShadow: { + enabled: true + } + }, + stroke: { + colors: ['#fff'] + }, + fill: { + opacity: 1, + gradient: { + shade: 'dark', + shadeIntensity: 0.4, + inverseColors: false, + type: 'vertical', + opacityFrom: 1, + opacityTo: 1, + stops: [70, 98, 100] + } + }, + padding: { + right: 0, + left: 0 + }, + tooltip: { + theme: 'dark', + fillSeriesColor: true + }, + legend: { + position: 'right' + } + }; + } + }, { + key: "radar", + value: function radar() { + this.opts.yaxis[0].labels.style.fontSize = '13px'; + this.opts.yaxis[0].labels.offsetY = 6; + return { + dataLabels: { + enabled: true, + style: { + colors: ['#a8a8a8'], + fontSize: '11px' + } + }, + stroke: { + width: 2 + }, + markers: { + size: 3, + strokeWidth: 1, + strokeOpacity: 1 + }, + fill: { + opacity: 0.2 + }, + tooltip: { + shared: false, + intersect: true, + followCursor: true + }, + grid: { + show: false + }, + xaxis: { + tooltip: { + enabled: false + }, + crosshairs: { + show: false + } + } + }; + } + }, { + key: "radialBar", + value: function radialBar() { + return { + chart: { + animations: { + dynamicAnimation: { + enabled: true, + speed: 800 + } + }, + toolbar: { + show: false + } + }, + fill: { + gradient: { + shade: 'dark', + shadeIntensity: 0.4, + inverseColors: false, + type: 'diagonal2', + opacityFrom: 1, + opacityTo: 1, + stops: [70, 98, 100] + } + }, + padding: { + right: 0, + left: 0 + }, + legend: { + show: false, + position: 'right' + }, + tooltip: { + enabled: false, + fillSeriesColor: true + } + }; + } + }], [{ + key: "convertCatToNumeric", + value: function convertCatToNumeric(opts) { + opts.xaxis.type = 'numeric'; + opts.xaxis.convertedCatToNumeric = true; + opts.xaxis.labels = opts.xaxis.labels || {}; + + opts.xaxis.labels.formatter = opts.xaxis.labels.formatter || function (val) { + return val; + }; + + opts.chart = opts.chart || {}; + opts.chart.zoom = opts.chart.zoom || window.Apex.chart && window.Apex.chart.zoom || {}; + var defaultFormatter = opts.xaxis.labels.formatter; + var labels = opts.xaxis.categories && opts.xaxis.categories.length ? opts.xaxis.categories : opts.labels; + + if (labels && labels.length) { + opts.xaxis.labels.formatter = function (val) { + return defaultFormatter(labels[val - 1]); + }; + } + + opts.xaxis.categories = []; + opts.labels = []; + opts.chart.zoom.enabled = false; + return opts; + } + }]); + + return Defaults; +}(); + +/* + ** Util functions which are dependent on ApexCharts instance + */ +var CoreUtils = +/*#__PURE__*/ +function () { + function CoreUtils(ctx) { + _classCallCheck(this, CoreUtils); + + this.ctx = ctx; + this.w = ctx.w; + } + + _createClass(CoreUtils, [{ + key: "getStackedSeriesTotals", + + /** + * @memberof CoreUtils + * returns the sum of all individual values in a multiple stacked series + * Eg. w.globals.series = [[32,33,43,12], [2,3,5,1]] + * @return [34,36,48,13] + **/ + value: function getStackedSeriesTotals() { + var w = this.w; + var total = []; + + for (var i = 0; i < w.globals.series[w.globals.maxValsInArrayIndex].length; i++) { + var t = 0; + + for (var j = 0; j < w.globals.series.length; j++) { + t += w.globals.series[j][i]; + } + + total.push(t); + } + + w.globals.stackedSeriesTotals = total; + return total; + } // get total of the all values inside all series + + }, { + key: "getSeriesTotalByIndex", + value: function getSeriesTotalByIndex() { + var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + + if (index === null) { + // non-plot chart types - pie / donut / circle + return this.w.config.series.reduce(function (acc, cur) { + return acc + cur; + }, 0); + } else { + // axis charts - supporting multiple series + return this.w.globals.series[index].reduce(function (acc, cur) { + return acc + cur; + }, 0); + } + } + }, { + key: "isSeriesNull", + value: function isSeriesNull() { + var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + var r = []; + + if (index === null) { + // non-plot chart types - pie / donut / circle + r = this.w.config.series.filter(function (d) { + return d !== null; + }); + } else { + // axis charts - supporting multiple series + r = this.w.globals.series[index].filter(function (d) { + return d !== null; + }); + } + + return r.length === 0; + } + }, { + key: "seriesHaveSameValues", + value: function seriesHaveSameValues(index) { + return this.w.globals.series[index].every(function (val, i, arr) { + return val === arr[0]; + }); + } // maxValsInArrayIndex is the index of series[] which has the largest number of items + + }, { + key: "getLargestSeries", + value: function getLargestSeries() { + var w = this.w; + w.globals.maxValsInArrayIndex = w.globals.series.map(function (a) { + return a.length; + }).indexOf(Math.max.apply(Math, w.globals.series.map(function (a) { + return a.length; + }))); + } + }, { + key: "getLargestMarkerSize", + value: function getLargestMarkerSize() { + var w = this.w; + var size = 0; + w.globals.markers.size.forEach(function (m) { + size = Math.max(size, m); + }); + w.globals.markers.largestSize = size; + return size; + } + /** + * @memberof Core + * returns the sum of all values in a series + * Eg. w.globals.series = [[32,33,43,12], [2,3,5,1]] + * @return [120, 11] + **/ + + }, { + key: "getSeriesTotals", + value: function getSeriesTotals() { + var w = this.w; + w.globals.seriesTotals = w.globals.series.map(function (ser, index) { + var total = 0; + + if (Array.isArray(ser)) { + for (var j = 0; j < ser.length; j++) { + total += ser[j]; + } + } else { + // for pie/donuts/gauges + total += ser; + } + + return total; + }); + } + }, { + key: "getSeriesTotalsXRange", + value: function getSeriesTotalsXRange(minX, maxX) { + var w = this.w; + var seriesTotalsXRange = w.globals.series.map(function (ser, index) { + var total = 0; + + for (var j = 0; j < ser.length; j++) { + if (w.globals.seriesX[index][j] > minX && w.globals.seriesX[index][j] < maxX) { + total += ser[j]; + } + } + + return total; + }); + return seriesTotalsXRange; + } + /** + * @memberof CoreUtils + * returns the percentage value of all individual values which can be used in a 100% stacked series + * Eg. w.globals.series = [[32, 33, 43, 12], [2, 3, 5, 1]] + * @return [[94.11, 91.66, 89.58, 92.30], [5.88, 8.33, 10.41, 7.7]] + **/ + + }, { + key: "getPercentSeries", + value: function getPercentSeries() { + var w = this.w; + w.globals.seriesPercent = w.globals.series.map(function (ser, index) { + var seriesPercent = []; + + if (Array.isArray(ser)) { + for (var j = 0; j < ser.length; j++) { + var total = w.globals.stackedSeriesTotals[j]; + var percent = 100 * ser[j] / total; + seriesPercent.push(percent); + } + } else { + var _total = w.globals.seriesTotals.reduce(function (acc, val) { + return acc + val; + }, 0); + + var _percent = 100 * ser / _total; + + seriesPercent.push(_percent); + } + + return seriesPercent; + }); + } + }, { + key: "getCalculatedRatios", + value: function getCalculatedRatios() { + var gl = this.w.globals; + var yRatio = []; + var invertedYRatio = 0; + var xRatio = 0; + var initialXRatio = 0; + var invertedXRatio = 0; + var zRatio = 0; + var baseLineY = []; + var baseLineInvertedY = 0.1; + var baseLineX = 0; + gl.yRange = []; + + if (gl.isMultipleYAxis) { + for (var i = 0; i < gl.minYArr.length; i++) { + gl.yRange.push(Math.abs(gl.minYArr[i] - gl.maxYArr[i])); + baseLineY.push(0); + } + } else { + gl.yRange.push(Math.abs(gl.minY - gl.maxY)); + } + + gl.xRange = Math.abs(gl.maxX - gl.minX); + gl.zRange = Math.abs(gl.maxZ - gl.minZ); // multiple y axis + + for (var _i = 0; _i < gl.yRange.length; _i++) { + yRatio.push(gl.yRange[_i] / gl.gridHeight); + } + + xRatio = gl.xRange / gl.gridWidth; + initialXRatio = Math.abs(gl.initialmaxX - gl.initialminX) / gl.gridWidth; + invertedYRatio = gl.yRange / gl.gridWidth; + invertedXRatio = gl.xRange / gl.gridHeight; + zRatio = gl.zRange / gl.gridHeight * 16; + + if (gl.minY !== Number.MIN_VALUE && Math.abs(gl.minY) !== 0) { + // Negative numbers present in series + gl.hasNegs = true; + baseLineY = []; // baseline variables is the 0 of the yaxis which will be needed when there are negatives + + if (gl.isMultipleYAxis) { + for (var _i2 = 0; _i2 < yRatio.length; _i2++) { + baseLineY.push(-gl.minYArr[_i2] / yRatio[_i2]); + } + } else { + baseLineY.push(-gl.minY / yRatio[0]); + } + + baseLineInvertedY = -gl.minY / invertedYRatio; // this is for bar chart + + baseLineX = gl.minX / xRatio; + } else { + baseLineY.push(0); + } + + return { + yRatio: yRatio, + invertedYRatio: invertedYRatio, + zRatio: zRatio, + xRatio: xRatio, + initialXRatio: initialXRatio, + invertedXRatio: invertedXRatio, + baseLineInvertedY: baseLineInvertedY, + baseLineY: baseLineY, + baseLineX: baseLineX + }; + } + }, { + key: "getLogSeries", + value: function getLogSeries(series) { + var w = this.w; + w.globals.seriesLog = series.map(function (s, i) { + if (w.config.yaxis[i] && w.config.yaxis[i].logarithmic) { + return s.map(function (d) { + if (d === null) return null; + var logVal = (Math.log(d) - Math.log(w.globals.minYArr[i])) / (Math.log(w.globals.maxYArr[i]) - Math.log(w.globals.minYArr[i])); + return logVal; + }); + } else { + return s; + } + }); + return w.globals.seriesLog; + } + }, { + key: "getLogYRatios", + value: function getLogYRatios(yRatio) { + var _this = this; + + var w = this.w; + var gl = this.w.globals; + gl.yLogRatio = yRatio.slice(); + gl.logYRange = gl.yRange.map(function (yRange, i) { + if (w.config.yaxis[i] && _this.w.config.yaxis[i].logarithmic) { + var maxY = -Number.MAX_VALUE; + var minY = Number.MIN_VALUE; + var range = 1; + gl.seriesLog.forEach(function (s, si) { + s.forEach(function (v) { + if (w.config.yaxis[si] && w.config.yaxis[si].logarithmic) { + maxY = Math.max(v, maxY); + minY = Math.min(v, minY); + } + }); + }); + range = Math.pow(gl.yRange[i], Math.abs(minY - maxY) / gl.yRange[i]); + gl.yLogRatio[i] = range / gl.gridHeight; + return range; + } + }); + return gl.yLogRatio; + } // Some config objects can be array - and we need to extend them correctly + + }], [{ + key: "checkComboSeries", + value: function checkComboSeries(series) { + var comboCharts = false; + var comboChartsHasBars = false; // if user specified a type in series too, turn on comboCharts flag + + if (series.length && typeof series[0].type !== 'undefined') { + comboCharts = true; + series.forEach(function (s) { + if (s.type === 'bar' || s.type === 'column') { + comboChartsHasBars = true; + } + }); + } + + return { + comboCharts: comboCharts, + comboChartsHasBars: comboChartsHasBars + }; + } + }, { + key: "extendArrayProps", + value: function extendArrayProps(configInstance, options) { + if (options.yaxis) { + options = configInstance.extendYAxis(options); + } + + if (options.annotations) { + if (options.annotations.yaxis) { + options = configInstance.extendYAxisAnnotations(options); + } + + if (options.annotations.xaxis) { + options = configInstance.extendXAxisAnnotations(options); + } + + if (options.annotations.points) { + options = configInstance.extendPointAnnotations(options); + } + } + + return options; + } + }]); + + return CoreUtils; +}(); + +/** + * ApexCharts Config Class for extending user options with pre-defined ApexCharts config. + * + * @module Config + **/ + +var Config = +/*#__PURE__*/ +function () { + function Config(opts) { + _classCallCheck(this, Config); + + this.opts = opts; + } + + _createClass(Config, [{ + key: "init", + value: function init() { + var opts = this.opts; + var options = new Options(); + var defaults = new Defaults(opts); + this.chartType = opts.chart.type; + + if (this.chartType === 'histogram') { + // technically, a histogram can be drawn by a column chart with no spaces in between + opts.chart.type = 'bar'; + opts = Utils.extend({ + plotOptions: { + bar: { + columnWidth: '99.99%' + } + } + }, opts); + } + + opts.series = this.checkEmptySeries(opts.series); + opts = this.extendYAxis(opts); + opts = this.extendAnnotations(opts); + var config = options.init(); + var newDefaults = {}; + + if (opts && _typeof(opts) === 'object') { + var chartDefaults = {}; + + switch (this.chartType) { + case 'line': + chartDefaults = defaults.line(); + break; + + case 'area': + chartDefaults = defaults.area(); + break; + + case 'bar': + chartDefaults = defaults.bar(); + break; + + case 'candlestick': + chartDefaults = defaults.candlestick(); + break; + + case 'histogram': + chartDefaults = defaults.bar(); + break; + + case 'bubble': + chartDefaults = defaults.bubble(); + break; + + case 'scatter': + chartDefaults = defaults.scatter(); + break; + + case 'heatmap': + chartDefaults = defaults.heatmap(); + break; + + case 'pie': + chartDefaults = defaults.pie(); + break; + + case 'donut': + chartDefaults = defaults.donut(); + break; + + case 'radar': + chartDefaults = defaults.radar(); + break; + + case 'radialBar': + chartDefaults = defaults.radialBar(); + break; + + default: + chartDefaults = defaults.line(); + } + + if (opts.chart.brush && opts.chart.brush.enabled) { + chartDefaults = defaults.brush(chartDefaults); + } + + if (opts.chart.stacked && opts.chart.stackType === '100%') { + defaults.stacked100(); + } + + opts.xaxis = opts.xaxis || window.Apex.xaxis || {}; + var combo = CoreUtils.checkComboSeries(opts.series); + + if ((opts.chart.type === 'line' || opts.chart.type === 'area' || opts.chart.type === 'scatter') && !combo.comboChartsHasBars && opts.xaxis.type !== 'datetime' && opts.xaxis.tickPlacement !== 'between') { + opts = Defaults.convertCatToNumeric(opts); + } + + if (opts.chart.sparkline && opts.chart.sparkline.enabled || window.Apex.chart && window.Apex.chart.sparkline && window.Apex.chart.sparkline.enabled) { + chartDefaults = defaults.sparkline(chartDefaults); + } + + newDefaults = Utils.extend(config, chartDefaults); + } // config should cascade in this fashion + // default-config < global-apex-variable-config < user-defined-config + // get GLOBALLY defined options and merge with the default config + + + var mergedWithDefaultConfig = Utils.extend(newDefaults, window.Apex); // get the merged config and extend with user defined config + + config = Utils.extend(mergedWithDefaultConfig, opts); // some features are not supported. those mismatches should be handled + + config = this.handleUserInputErrors(config); + return config; + } + }, { + key: "extendYAxis", + value: function extendYAxis(opts) { + var options = new Options(); + + if (typeof opts.yaxis === 'undefined') { + opts.yaxis = {}; + } // extend global yaxis config (only if object is provided / not an array) + + + if (opts.yaxis.constructor !== Array && window.Apex.yaxis && window.Apex.yaxis.constructor !== Array) { + opts.yaxis = Utils.extend(opts.yaxis, window.Apex.yaxis); + } // as we can't extend nested object's array with extend, we need to do it first + // user can provide either an array or object in yaxis config + + + if (opts.yaxis.constructor !== Array) { + // convert the yaxis to array if user supplied object + opts.yaxis = [Utils.extend(options.yAxis, opts.yaxis)]; + } else { + opts.yaxis = Utils.extendArray(opts.yaxis, options.yAxis); + } + + return opts; + } // annotations also accepts array, so we need to extend them manually + + }, { + key: "extendAnnotations", + value: function extendAnnotations(opts) { + if (typeof opts.annotations === 'undefined') { + opts.annotations = {}; + opts.annotations.yaxis = []; + opts.annotations.xaxis = []; + opts.annotations.points = []; + } + + opts = this.extendYAxisAnnotations(opts); + opts = this.extendXAxisAnnotations(opts); + opts = this.extendPointAnnotations(opts); + return opts; + } + }, { + key: "extendYAxisAnnotations", + value: function extendYAxisAnnotations(opts) { + var options = new Options(); + opts.annotations.yaxis = Utils.extendArray(typeof opts.annotations.yaxis !== 'undefined' ? opts.annotations.yaxis : [], options.yAxisAnnotation); + return opts; + } + }, { + key: "extendXAxisAnnotations", + value: function extendXAxisAnnotations(opts) { + var options = new Options(); + opts.annotations.xaxis = Utils.extendArray(typeof opts.annotations.xaxis !== 'undefined' ? opts.annotations.xaxis : [], options.xAxisAnnotation); + return opts; + } + }, { + key: "extendPointAnnotations", + value: function extendPointAnnotations(opts) { + var options = new Options(); + opts.annotations.points = Utils.extendArray(typeof opts.annotations.points !== 'undefined' ? opts.annotations.points : [], options.pointAnnotation); + return opts; + } + }, { + key: "checkEmptySeries", + value: function checkEmptySeries(ser) { + if (ser.length === 0) { + return [{ + data: [] + }]; + } + + return ser; + } + }, { + key: "handleUserInputErrors", + value: function handleUserInputErrors(opts) { + var config = opts; // conflicting tooltip option. intersect makes sure to focus on 1 point at a time. Shared cannot be used along with it + + if (config.tooltip.shared && config.tooltip.intersect) { + throw new Error('tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.'); + } + + if (config.chart.scroller) { + console.warn('Scroller has been deprecated since v2.0.0. Please remove the configuration for chart.scroller'); + } + + if (config.chart.type === 'bar' && config.plotOptions.bar.horizontal) { + // No time series for horizontal bars + if (config.xaxis.type === 'datetime') { + throw new Error('Timelines on bars are not supported yet. Switch to column chart by setting plotOptions.bar.horizontal=false'); + } // No multiple yaxis for bars + + + if (config.yaxis.length > 1) { + throw new Error('Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false'); + } + + if (config.yaxis[0].reversed) { + config.yaxis[0].opposite = true; + } + + config.xaxis.tooltip.enabled = false; // no xaxis tooltip for horizontal bar + + config.yaxis[0].tooltip.enabled = false; // no xaxis tooltip for horizontal bar + + config.chart.zoom.enabled = false; // no zooming for horz bars + } + + if (config.chart.type === 'bar') { + if (config.tooltip.shared) { + if (config.xaxis.crosshairs.width === 'barWidth' && config.series.length > 1) { + console.warn('crosshairs.width = "barWidth" is only supported in single series, not in a multi-series barChart.'); + config.xaxis.crosshairs.width = 'tickWidth'; + } + + if (config.plotOptions.bar.horizontal) { + config.states.hover.type = 'none'; + } + + if (!config.tooltip.followCursor) { + console.warn('followCursor option in shared columns cannot be turned off.'); + config.tooltip.followCursor = true; + } + } + } + + if (config.chart.type === 'candlestick') { + if (config.yaxis[0].reversed) { + console.warn('Reversed y-axis in candlestick chart is not supported.'); + config.yaxis[0].reversed = false; + } + } + + if (config.chart.group && config.yaxis[0].labels.minWidth === 0) { + console.warn('It looks like you have multiple charts in synchronization. You must provide yaxis.labels.minWidth which must be EQUAL for all grouped charts to prevent incorrect behaviour.'); + } // if user supplied array for stroke width, it will only be applicable to line/area charts, for any other charts, revert back to Number + + + if (Array.isArray(config.stroke.width)) { + if (config.chart.type !== 'line' && config.chart.type !== 'area') { + console.warn('stroke.width option accepts array only for line and area charts. Reverted back to Number'); + config.stroke.width = config.stroke.width[0]; + } + } + + return config; + } + }]); + + return Config; +}(); + +var Globals = +/*#__PURE__*/ +function () { + function Globals() { + _classCallCheck(this, Globals); + } + + _createClass(Globals, [{ + key: "globalVars", + value: function globalVars(config) { + return { + chartID: null, + // chart ID - apexcharts-cuid + cuid: null, + // chart ID - random numbers excluding "apexcharts" part + events: { + beforeMount: [], + mounted: [], + updated: [], + clicked: [], + selection: [], + dataPointSelection: [], + zoomed: [], + scrolled: [] + }, + colors: [], + fill: { + colors: [] + }, + stroke: { + colors: [] + }, + dataLabels: { + style: { + colors: [] + } + }, + radarPolygons: { + fill: { + colors: [] + } + }, + markers: { + colors: [], + size: config.markers.size, + largestSize: 0 + }, + animationEnded: false, + isTouchDevice: 'ontouchstart' in window || navigator.msMaxTouchPoints, + isDirty: false, + // chart has been updated after the initial render. This is different than dataChanged property. isDirty means user manually called some method to update + initialConfig: null, + // we will store the first config user has set to go back when user finishes interactions like zooming and come out of it + lastXAxis: [], + lastYAxis: [], + series: [], + // the MAIN series array (y values) + seriesPercent: [], + // the percentage values of the given series + seriesTotals: [], + stackedSeriesTotals: [], + seriesX: [], + // store the numeric x values in this array (x values) + seriesZ: [], + // The 3rd "Z" dimension for bubbles chart (z values) + labels: [], + // store the text to draw on x axis + // Don't mutate the labels, many things including tooltips depends on it! + timelineLabels: [], + // store the timeline Labels in another variable + seriesNames: [], + // same as labels, used in non axis charts + noLabelsProvided: false, + // if user didn't provide any categories/labels or x values, fallback to 1,2,3,4... + allSeriesCollapsed: false, + collapsedSeries: [], + // when user collapses a series, it goes into this array + collapsedSeriesIndices: [], + // this stores the index of the collapsedSeries instead of whole object for quick access + ancillaryCollapsedSeries: [], + // when user collapses an "alwaysVisible" series, it goes into this array + ancillaryCollapsedSeriesIndices: [], + // this stores the index of the collapsedSeries whose y-axis is always visible + risingSeries: [], + // when user re-opens a collapsed series, it goes here + selectedDataPoints: [], + ignoreYAxisIndexes: [], + // when series are being collapsed in multiple y axes, ignore certain index + padHorizontal: 0, + maxValsInArrayIndex: 0, + zoomEnabled: config.chart.toolbar.autoSelected === 'zoom' && config.chart.toolbar.tools.zoom && config.chart.zoom.enabled, + panEnabled: config.chart.toolbar.autoSelected === 'pan' && config.chart.toolbar.tools.pan, + selectionEnabled: config.chart.toolbar.autoSelected === 'selection' && config.chart.toolbar.tools.selection, + yaxis: null, + minY: Number.MIN_VALUE, + // is 5e-324, i.e. the smallest positive number + // NOTE: If there are multiple y axis, the first yaxis array element will be considered for all y values calculations. Rest all will be calculated based on that + maxY: -Number.MAX_VALUE, + // is -1.7976931348623157e+308 + // NOTE: The above note for minY applies here as well + minYArr: [], + maxYArr: [], + maxX: -Number.MAX_VALUE, + // is -1.7976931348623157e+308 + initialmaxX: -Number.MAX_VALUE, + minX: Number.MIN_VALUE, + // is 5e-324, i.e. the smallest positive number + initialminX: Number.MIN_VALUE, + minZ: Number.MIN_VALUE, + // Max Z value in charts with Z axis + maxZ: -Number.MAX_VALUE, + // Max Z value in charts with Z axis + mousedown: false, + lastClientPosition: {}, + // don't reset this variable this the chart is destroyed. It is used to detect right or left mousemove in panning + visibleXRange: undefined, + yRange: [], + // this property is the absolute sum of positive and negative values [eg (-100 + 200 = 300)] - yAxis + zRange: 0, + // zAxis Range (for bubble charts) + xRange: 0, + // xAxis range + yValueDecimal: 0, + // are there floating numbers in the series. If yes, this represent the len of the decimals + total: 0, + SVGNS: 'http://www.w3.org/2000/svg', + // svg namespace + svgWidth: 0, + // the whole svg width + svgHeight: 0, + // the whole svg height + noData: false, + // whether there is any data to display or not + locale: {}, + // the current locale values will be preserved here for global access + dom: {}, + // for storing all dom nodes in this particular property + // elWrap: null, // the element that wraps everything + // elGraphical: null, // this contains lines/areas/bars/pies + // elGridRect: null, // paths going outside this area will be clipped + // elGridRectMask: null, // clipping will happen with this mask + // elGridRectMarkerMask: null, // clipping will happen with this mask + // elLegendWrap: null, // the whole legend area + // elDefs: null, // [defs] element + memory: { + methodsToExec: [] + }, + shouldAnimate: true, + delayedElements: [], + // element which appear after animation has finished + axisCharts: true, + // chart type = line or area or bar + // (refer them also as plot charts in the code) + isXNumeric: false, + // bool: data was provided in a {[x,y], [x,y]} pattern + isDataXYZ: false, + // bool: data was provided in a {[x,y,z]} pattern + resized: false, + // bool: user has resized + resizeTimer: null, + // timeout function to make a small delay before + // drawing when user resized + comboCharts: false, + // bool: whether it's a combination of line/column + comboChartsHasBars: false, + // bool: whether it's a combination of line/column + dataChanged: false, + // bool: has data changed dynamically + previousPaths: [], + // array: when data is changed, it will animate from + // previous paths + seriesXvalues: [], + // we will need this in tooltip (it's x position) + // when we will have unequal x values, we will need + // some way to get x value depending on mouse pointer + seriesYvalues: [], + // we will need this when deciding which series + // user hovered on + seriesCandleO: [], + // candle stick open values + seriesCandleH: [], + // candle stick high values + seriesCandleL: [], + // candle stick low values + seriesCandleC: [], + // candle stick close values + allSeriesHasEqualX: true, + dataPoints: 0, + // the longest series length + pointsArray: [], + // store the points positions here to draw later on hover + // format is - [[x,y],[x,y]... [x,y]] + dataLabelsRects: [], + // store the positions of datalabels to prevent collision + lastDrawnDataLabelsIndexes: [], + hasNullValues: false, + // bool: whether series contains null values + easing: null, + // function: animation effect to apply + zoomed: false, + // whether user has zoomed or not + gridWidth: 0, + // drawable width of actual graphs (series paths) + gridHeight: 0, + // drawable height of actual graphs (series paths) + yAxisScale: [], + xAxisScale: null, + xAxisTicksPositions: [], + timescaleTicks: [], + rotateXLabels: false, + defaultLabels: false, + xLabelFormatter: undefined, + // formatter for x axis labels + yLabelFormatters: [], + xaxisTooltipFormatter: undefined, + // formatter for x axis tooltip + ttKeyFormatter: undefined, + ttVal: undefined, + ttZFormatter: undefined, + LINE_HEIGHT_RATIO: 1.618, + xAxisLabelsHeight: 0, + yAxisLabelsWidth: 0, + scaleX: 1, + scaleY: 1, + translateX: 0, + translateY: 0, + translateYAxisX: [], + yLabelsCoords: [], + yTitleCoords: [], + yAxisWidths: [], + translateXAxisY: 0, + translateXAxisX: 0, + tooltip: null, + tooltipOpts: null + }; + } + }, { + key: "init", + value: function init(config) { + var globals = this.globalVars(config); + globals.initialConfig = Utils.extend({}, config); + globals.initialSeries = JSON.parse(JSON.stringify(globals.initialConfig.series)); + globals.lastXAxis = JSON.parse(JSON.stringify(globals.initialConfig.xaxis)); + globals.lastYAxis = JSON.parse(JSON.stringify(globals.initialConfig.yaxis)); + return globals; + } + }]); + + return Globals; +}(); + +/** + * ApexCharts Base Class for extending user options with pre-defined ApexCharts config. + * + * @module Base + **/ + +var Base = +/*#__PURE__*/ +function () { + function Base(opts) { + _classCallCheck(this, Base); + + this.opts = opts; + } + + _createClass(Base, [{ + key: "init", + value: function init() { + var config = new Config(this.opts).init(); + var globals = new Globals().init(config); + var w = { + config: config, + globals: globals + }; + return w; + } + }]); + + return Base; +}(); + +/** + * ApexCharts Fill Class for setting fill options of the paths. + * + * @module Fill + **/ + +var Fill = +/*#__PURE__*/ +function () { + function Fill(ctx) { + _classCallCheck(this, Fill); + + this.ctx = ctx; + this.w = ctx.w; + this.opts = null; + this.seriesIndex = 0; + } + + _createClass(Fill, [{ + key: "clippedImgArea", + value: function clippedImgArea(params) { + var w = this.w; + var cnf = w.config; + var svgW = parseInt(w.globals.gridWidth); + var svgH = parseInt(w.globals.gridHeight); + var size = svgW > svgH ? svgW : svgH; + var fillImg = params.image; + var imgWidth = 0; + var imgHeight = 0; + + if (typeof params.width === 'undefined' && typeof params.height === 'undefined') { + if (cnf.fill.image.width !== undefined && cnf.fill.image.height !== undefined) { + imgWidth = cnf.fill.image.width + 1; + imgHeight = cnf.fill.image.height; + } else { + imgWidth = size + 1; + imgHeight = size; + } + } else { + imgWidth = params.width; + imgHeight = params.height; + } + + var elPattern = document.createElementNS(w.globals.SVGNS, 'pattern'); + Graphics.setAttrs(elPattern, { + id: params.patternID, + patternUnits: params.patternUnits ? params.patternUnits : 'userSpaceOnUse', + width: imgWidth + 'px', + height: imgHeight + 'px' + }); + var elImage = document.createElementNS(w.globals.SVGNS, 'image'); + elPattern.appendChild(elImage); + elImage.setAttributeNS('http://www.w3.org/1999/xlink', 'href', fillImg); + Graphics.setAttrs(elImage, { + x: 0, + y: 0, + preserveAspectRatio: 'none', + width: imgWidth + 'px', + height: imgHeight + 'px' + }); + elImage.style.opacity = params.opacity; + w.globals.dom.elDefs.node.appendChild(elPattern); + } + }, { + key: "getSeriesIndex", + value: function getSeriesIndex(opts) { + var w = this.w; + + if (w.config.chart.type === 'bar' && w.config.plotOptions.bar.distributed || w.config.chart.type === 'heatmap') { + this.seriesIndex = opts.seriesNumber; + } else { + this.seriesIndex = opts.seriesNumber % w.globals.series.length; + } + + return this.seriesIndex; + } + }, { + key: "fillPath", + value: function fillPath(opts) { + var w = this.w; + this.opts = opts; + var cnf = this.w.config; + var pathFill; + var patternFill, gradientFill; + this.seriesIndex = this.getSeriesIndex(opts); + var fillColors = this.getFillColors(); + var fillColor = fillColors[this.seriesIndex]; + var fillType = this.getFillType(this.seriesIndex); + var fillOpacity = Array.isArray(cnf.fill.opacity) ? cnf.fill.opacity[this.seriesIndex] : cnf.fill.opacity; + var defaultColor = fillColor; + + if (opts.color) { + fillColor = opts.color; + } + + if (fillColor.indexOf('rgb') === -1) { + defaultColor = Utils.hexToRgba(fillColor, fillOpacity); + } else { + if (fillColor.indexOf('rgba') > -1) { + fillOpacity = 0 + '.' + Utils.getOpacityFromRGBA(fillColors[this.seriesIndex]); + } + } + + if (fillType === 'pattern') { + patternFill = this.handlePatternFill(patternFill, fillColor, fillOpacity, defaultColor); + } + + if (fillType === 'gradient') { + gradientFill = this.handleGradientFill(gradientFill, fillColor, fillOpacity, this.seriesIndex); + } + + if (cnf.fill.image.src.length > 0 && fillType === 'image') { + if (opts.seriesNumber < cnf.fill.image.src.length) { + this.clippedImgArea({ + opacity: fillOpacity, + image: cnf.fill.image.src[opts.seriesNumber], + patternUnits: opts.patternUnits, + patternID: "pattern".concat(w.globals.cuid).concat(opts.seriesNumber + 1) + }); + pathFill = "url(#pattern".concat(w.globals.cuid).concat(opts.seriesNumber + 1, ")"); + } else { + pathFill = defaultColor; + } + } else if (fillType === 'gradient') { + pathFill = gradientFill; + } else if (fillType === 'pattern') { + pathFill = patternFill; + } else { + pathFill = defaultColor; + } // override pattern/gradient if opts.solid is true + + + if (opts.solid) { + pathFill = defaultColor; + } + + return pathFill; + } + }, { + key: "getFillType", + value: function getFillType(seriesIndex) { + var w = this.w; + + if (Array.isArray(w.config.fill.type)) { + return w.config.fill.type[seriesIndex]; + } else { + return w.config.fill.type; + } + } + }, { + key: "getFillColors", + value: function getFillColors() { + var w = this.w; + var cnf = w.config; + var opts = this.opts; + var fillColors = []; + + if (w.globals.comboCharts) { + if (w.config.series[this.seriesIndex].type === 'line') { + if (w.globals.stroke.colors instanceof Array) { + fillColors = w.globals.stroke.colors; + } else { + fillColors.push(w.globals.stroke.colors); + } + } else { + if (w.globals.fill.colors instanceof Array) { + fillColors = w.globals.fill.colors; + } else { + fillColors.push(w.globals.fill.colors); + } + } + } else { + if (cnf.chart.type === 'line') { + if (w.globals.stroke.colors instanceof Array) { + fillColors = w.globals.stroke.colors; + } else { + fillColors.push(w.globals.stroke.colors); + } + } else { + if (w.globals.fill.colors instanceof Array) { + fillColors = w.globals.fill.colors; + } else { + fillColors.push(w.globals.fill.colors); + } + } + } // colors passed in arguments + + + if (typeof opts.fillColors !== 'undefined') { + fillColors = []; + + if (opts.fillColors instanceof Array) { + fillColors = opts.fillColors.slice(); + } else { + fillColors.push(opts.fillColors); + } + } + + return fillColors; + } + }, { + key: "handlePatternFill", + value: function handlePatternFill(patternFill, fillColor, fillOpacity, defaultColor) { + var cnf = this.w.config; + var opts = this.opts; + var graphics = new Graphics(this.ctx); + var patternStrokeWidth = cnf.fill.pattern.strokeWidth === undefined ? Array.isArray(cnf.stroke.width) ? cnf.stroke.width[this.seriesIndex] : cnf.stroke.width : Array.isArray(cnf.fill.pattern.strokeWidth) ? cnf.fill.pattern.strokeWidth[this.seriesIndex] : cnf.fill.pattern.strokeWidth; + var patternLineColor = fillColor; + + if (cnf.fill.pattern.style instanceof Array) { + if (typeof cnf.fill.pattern.style[opts.seriesNumber] !== 'undefined') { + var pf = graphics.drawPattern(cnf.fill.pattern.style[opts.seriesNumber], cnf.fill.pattern.width, cnf.fill.pattern.height, patternLineColor, patternStrokeWidth, fillOpacity); + patternFill = pf; + } else { + patternFill = defaultColor; + } + } else { + patternFill = graphics.drawPattern(cnf.fill.pattern.style, cnf.fill.pattern.width, cnf.fill.pattern.height, patternLineColor, patternStrokeWidth, fillOpacity); + } + + return patternFill; + } + }, { + key: "handleGradientFill", + value: function handleGradientFill(gradientFill, fillColor, fillOpacity, i) { + var cnf = this.w.config; + var opts = this.opts; + var graphics = new Graphics(this.ctx); + var utils = new Utils(); + var type = cnf.fill.gradient.type; + var gradientFrom, gradientTo; + var opacityFrom = cnf.fill.gradient.opacityFrom === undefined ? fillOpacity : Array.isArray(cnf.fill.gradient.opacityFrom) ? cnf.fill.gradient.opacityFrom[i] : cnf.fill.gradient.opacityFrom; + var opacityTo = cnf.fill.gradient.opacityTo === undefined ? fillOpacity : Array.isArray(cnf.fill.gradient.opacityTo) ? cnf.fill.gradient.opacityTo[i] : cnf.fill.gradient.opacityTo; + gradientFrom = fillColor; + + if (cnf.fill.gradient.gradientToColors === undefined || cnf.fill.gradient.gradientToColors.length === 0) { + if (cnf.fill.gradient.shade === 'dark') { + gradientTo = utils.shadeColor(parseFloat(cnf.fill.gradient.shadeIntensity) * -1, fillColor); + } else { + gradientTo = utils.shadeColor(parseFloat(cnf.fill.gradient.shadeIntensity), fillColor); + } + } else { + gradientTo = cnf.fill.gradient.gradientToColors[opts.seriesNumber]; + } + + if (cnf.fill.gradient.inverseColors) { + var t = gradientFrom; + gradientFrom = gradientTo; + gradientTo = t; + } + + gradientFill = graphics.drawGradient(type, gradientFrom, gradientTo, opacityFrom, opacityTo, opts.size, cnf.fill.gradient.stops, cnf.fill.gradient.colorStops, i); + return gradientFill; + } + }]); + + return Fill; +}(); + +/** + * ApexCharts Markers Class for drawing points on y values in axes charts. + * + * @module Markers + **/ + +var Markers = +/*#__PURE__*/ +function () { + function Markers(ctx, opts) { + _classCallCheck(this, Markers); + + this.ctx = ctx; + this.w = ctx.w; + } + + _createClass(Markers, [{ + key: "setGlobalMarkerSize", + value: function setGlobalMarkerSize() { + var w = this.w; + w.globals.markers.size = Array.isArray(w.config.markers.size) ? w.config.markers.size : [w.config.markers.size]; + + if (w.globals.markers.size.length > 0) { + if (w.globals.markers.size.length < w.globals.series.length + 1) { + for (var i = 0; i <= w.globals.series.length; i++) { + if (typeof w.globals.markers.size[i] === 'undefined') { + w.globals.markers.size.push(w.globals.markers.size[0]); + } + } + } + } else { + w.globals.markers.size = w.config.series.map(function (s) { + return w.config.markers.size; + }); + } + } + }, { + key: "plotChartMarkers", + value: function plotChartMarkers(pointsPos, seriesIndex, j) { + var _this = this; + + var w = this.w; + var p = pointsPos; + var elPointsWrap = null; + var graphics = new Graphics(this.ctx); + var point; + + if (w.globals.markers.size[seriesIndex] > 0) { + elPointsWrap = graphics.group({ + class: 'apexcharts-series-markers' + }); + elPointsWrap.attr('clip-path', "url(#gridRectMarkerMask".concat(w.globals.cuid, ")")); + } + + if (p.x instanceof Array) { + var _loop = function _loop(q) { + var dataPointIndex = j; // a small hack as we have 2 points for the first val to connect it + + if (j === 1 && q === 0) dataPointIndex = 0; + if (j === 1 && q === 1) dataPointIndex = 1; + var PointClasses = 'apexcharts-marker'; + + if ((w.config.chart.type === 'line' || w.config.chart.type === 'area') && !w.globals.comboCharts && !w.config.tooltip.intersect) { + PointClasses += ' no-pointer-events'; + } + + var shouldMarkerDraw = Array.isArray(w.config.markers.size) ? w.globals.markers.size[seriesIndex] > 0 : w.config.markers.size > 0; + + if (shouldMarkerDraw) { + if (Utils.isNumber(p.y[q])) { + PointClasses += " w".concat((Math.random() + 1).toString(36).substring(4)); + } else { + PointClasses = 'apexcharts-nullpoint'; + } + + var opts = _this.getMarkerConfig(PointClasses, seriesIndex); // discrete markers is an option where user can specify a particular marker with different size and color + + + w.config.markers.discrete.map(function (marker) { + if (marker.seriesIndex === seriesIndex && marker.dataPointIndex === dataPointIndex) { + opts.pointStrokeColor = marker.strokeColor; + opts.pointFillColor = marker.fillColor; + opts.pSize = marker.size; + } + }); + point = graphics.drawMarker(p.x[q], p.y[q], opts); + point.attr('rel', dataPointIndex); + point.attr('j', dataPointIndex); + point.attr('index', seriesIndex); + point.node.setAttribute('default-marker-size', opts.pSize); + var filters = new Filters(_this.ctx); + filters.setSelectionFilter(point, seriesIndex, dataPointIndex); + + _this.addEvents(point); + + if (elPointsWrap) { + elPointsWrap.add(point); + } + } else { + // dynamic array creation - multidimensional + if (typeof w.globals.pointsArray[seriesIndex] === 'undefined') w.globals.pointsArray[seriesIndex] = []; + w.globals.pointsArray[seriesIndex].push([p.x[q], p.y[q]]); + } + }; + + for (var q = 0; q < p.x.length; q++) { + _loop(q); + } + } + + return elPointsWrap; + } + }, { + key: "getMarkerConfig", + value: function getMarkerConfig(cssClass, seriesIndex) { + var w = this.w; + var pStyle = this.getMarkerStyle(seriesIndex); + var pSize = w.globals.markers.size[seriesIndex]; + return { + pSize: pSize, + pRadius: w.config.markers.radius, + pWidth: w.config.markers.strokeWidth, + pointStrokeColor: pStyle.pointStrokeColor, + pointFillColor: pStyle.pointFillColor, + shape: w.config.markers.shape instanceof Array ? w.config.markers.shape[seriesIndex] : w.config.markers.shape, + class: cssClass, + pointStrokeOpacity: w.config.markers.strokeOpacity, + pointFillOpacity: w.config.markers.fillOpacity, + seriesIndex: seriesIndex + }; + } + }, { + key: "addEvents", + value: function addEvents(circle) { + var graphics = new Graphics(this.ctx); + circle.node.addEventListener('mouseenter', graphics.pathMouseEnter.bind(this.ctx, circle)); + circle.node.addEventListener('mouseleave', graphics.pathMouseLeave.bind(this.ctx, circle)); + circle.node.addEventListener('mousedown', graphics.pathMouseDown.bind(this.ctx, circle)); + circle.node.addEventListener('touchstart', graphics.pathMouseDown.bind(this.ctx, circle), { + passive: true + }); + } + }, { + key: "getMarkerStyle", + value: function getMarkerStyle(seriesIndex) { + var w = this.w; + var colors = w.globals.markers.colors; + var strokeColors = w.config.markers.strokeColor || w.config.markers.strokeColors; + var pointStrokeColor = strokeColors instanceof Array ? strokeColors[seriesIndex] : strokeColors; + var pointFillColor = colors instanceof Array ? colors[seriesIndex] : colors; + return { + pointStrokeColor: pointStrokeColor, + pointFillColor: pointFillColor + }; + } + }]); + + return Markers; +}(); + +/** + * ApexCharts Scatter Class. + * This Class also handles bubbles chart as currently there is no major difference in drawing them, + * @module Scatter + **/ + +var Scatter = +/*#__PURE__*/ +function () { + function Scatter(ctx) { + _classCallCheck(this, Scatter); + + this.ctx = ctx; + this.w = ctx.w; + this.initialAnim = this.w.config.chart.animations.enabled; + this.dynamicAnim = this.initialAnim && this.w.config.chart.animations.dynamicAnimation.enabled; // this array will help in centering the label in bubbles + + this.radiusSizes = []; + } + + _createClass(Scatter, [{ + key: "draw", + value: function draw(elSeries, j, opts) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var realIndex = opts.realIndex; + var pointsPos = opts.pointsPos; + var zRatio = opts.zRatio; + var elPointsMain = opts.elParent; + var elPointsWrap = graphics.group({ + class: "apexcharts-series-markers apexcharts-series-".concat(w.config.chart.type) + }); + elPointsWrap.attr('clip-path', "url(#gridRectMarkerMask".concat(w.globals.cuid, ")")); + + if (pointsPos.x instanceof Array) { + for (var q = 0; q < pointsPos.x.length; q++) { + var dataPointIndex = j + 1; + var shouldDraw = true; // a small hack as we have 2 points for the first val to connect it + + if (j === 0 && q === 0) dataPointIndex = 0; + if (j === 0 && q === 1) dataPointIndex = 1; + var radius = 0; + var finishRadius = w.globals.markers.size[realIndex]; + + if (zRatio !== Infinity) { + // means we have a bubble + finishRadius = w.globals.seriesZ[realIndex][dataPointIndex] / zRatio; + + if (typeof this.radiusSizes[realIndex] === 'undefined') { + this.radiusSizes.push([]); + } + + this.radiusSizes[realIndex].push(finishRadius); + } + + if (!w.config.chart.animations.enabled) { + radius = finishRadius; + } + + var x = pointsPos.x[q]; + var y = pointsPos.y[q]; + radius = radius || 0; + + if (x === 0 && y === 0 || y === null || typeof w.globals.series[realIndex][dataPointIndex] === 'undefined') { + shouldDraw = false; + } + + if (shouldDraw) { + var circle = this.drawPoint(x, y, radius, finishRadius, realIndex, dataPointIndex, j); + elPointsWrap.add(circle); + } + + elPointsMain.add(elPointsWrap); + } + } + } + }, { + key: "drawPoint", + value: function drawPoint(x, y, radius, finishRadius, realIndex, dataPointIndex, j) { + var w = this.w; + var anim = new Animations(this.ctx); + var filters = new Filters(this.ctx); + var fill = new Fill(this.ctx); + var graphics = new Graphics(this.ctx); + var pathFillCircle = fill.fillPath({ + seriesNumber: realIndex, + patternUnits: 'objectBoundingBox' + }); + var circle = graphics.drawCircle(radius); + circle.attr({ + cx: x, + cy: y, + fill: pathFillCircle + }); + + if (w.config.chart.dropShadow.enabled) { + filters.dropShadow(circle, { + top: w.config.chart.dropShadow.top, + left: w.config.chart.dropShadow.left, + blur: w.config.chart.dropShadow.blur, + color: w.config.chart.dropShadow.color, + opacity: w.config.chart.dropShadow.opacity + }); + } + + if (this.initialAnim && !w.globals.dataChanged) { + var speed = 1; + + if (!w.globals.resized) { + speed = w.config.chart.animations.speed; + } + + anim.animateCircleRadius(circle, 0, finishRadius, speed, w.globals.easing); + } + + if (w.globals.dataChanged) { + if (this.dynamicAnim) { + var _speed = w.config.chart.animations.dynamicAnimation.speed; + var prevX, prevY, prevR; + var prevPathJ = null; + prevPathJ = w.globals.previousPaths[realIndex] && w.globals.previousPaths[realIndex][j]; + + if (typeof prevPathJ !== 'undefined' && prevPathJ !== null) { + // series containing less elements will ignore these values and revert to 0 + prevX = prevPathJ.x; + prevY = prevPathJ.y; + prevR = typeof prevPathJ.r !== 'undefined' ? prevPathJ.r : finishRadius; + } + + for (var cs = 0; cs < w.globals.collapsedSeries.length; cs++) { + if (w.globals.collapsedSeries[cs].index === realIndex) { + _speed = 1; + finishRadius = 0; + } + } + + if (x === 0 && y === 0) finishRadius = 0; + anim.animateCircle(circle, { + cx: prevX, + cy: prevY, + r: prevR + }, { + cx: x, + cy: y, + r: finishRadius + }, _speed, w.globals.easing); + } else { + circle.attr({ + r: finishRadius + }); + } + } + + circle.attr({ + rel: dataPointIndex, + j: dataPointIndex, + index: realIndex, + 'default-marker-size': finishRadius + }); + var markers = new Markers(this.ctx); + filters.setSelectionFilter(circle, realIndex, dataPointIndex); + markers.addEvents(circle); + circle.node.classList.add('apexcharts-marker'); + return circle; + } + }, { + key: "centerTextInBubble", + value: function centerTextInBubble(y) { + var w = this.w; + y = y + parseInt(w.config.dataLabels.style.fontSize) / 4; + return { + y: y + }; + } + }]); + + return Scatter; +}(); + +/** + * ApexCharts DataLabels Class for drawing dataLabels on Axes based Charts. + * + * @module DataLabels + **/ + +var DataLabels = +/*#__PURE__*/ +function () { + function DataLabels(ctx) { + _classCallCheck(this, DataLabels); + + this.ctx = ctx; + this.w = ctx.w; + } // When there are many datalabels to be printed, and some of them overlaps each other in the same series, this method will take care of that + // Also, when datalabels exceeds the drawable area and get clipped off, we need to adjust and move some pixels to make them visible again + + + _createClass(DataLabels, [{ + key: "dataLabelsCorrection", + value: function dataLabelsCorrection(x, y, val, i, dataPointIndex, alwaysDrawDataLabel, fontSize) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var drawnextLabel = false; // + + var textRects = graphics.getTextRects(val, fontSize); + var width = textRects.width; + var height = textRects.height; // first value in series, so push an empty array + + if (typeof w.globals.dataLabelsRects[i] === 'undefined') w.globals.dataLabelsRects[i] = []; // then start pushing actual rects in that sub-array + + w.globals.dataLabelsRects[i].push({ + x: x, + y: y, + width: width, + height: height + }); + var len = w.globals.dataLabelsRects[i].length - 2; + var lastDrawnIndex = typeof w.globals.lastDrawnDataLabelsIndexes[i] !== 'undefined' ? w.globals.lastDrawnDataLabelsIndexes[i][w.globals.lastDrawnDataLabelsIndexes[i].length - 1] : 0; + + if (typeof w.globals.dataLabelsRects[i][len] !== 'undefined') { + var lastDataLabelRect = w.globals.dataLabelsRects[i][lastDrawnIndex]; + + if ( // next label forward and x not intersecting + x > lastDataLabelRect.x + lastDataLabelRect.width + 2 || y > lastDataLabelRect.y + lastDataLabelRect.height + 2 || x + width < lastDataLabelRect.x // next label is going to be drawn backwards + ) { + // the 2 indexes don't override, so OK to draw next label + drawnextLabel = true; + } + } + + if (dataPointIndex === 0 || alwaysDrawDataLabel) { + drawnextLabel = true; + } + + return { + x: x, + y: y, + drawnextLabel: drawnextLabel + }; + } + }, { + key: "drawDataLabel", + value: function drawDataLabel(pos, i, j) { + // this method handles line, area, bubble, scatter charts as those charts contains markers/points which have pre-defined x/y positions + // all other charts like bars / heatmaps will define their own drawDataLabel routine + var w = this.w; + var graphics = new Graphics(this.ctx); + var dataLabelsConfig = w.config.dataLabels; + var x = 0; + var y = 0; + var dataPointIndex = j; + var elDataLabelsWrap = null; + + if (!dataLabelsConfig.enabled || pos.x instanceof Array !== true) { + return elDataLabelsWrap; + } + + elDataLabelsWrap = graphics.group({ + class: 'apexcharts-data-labels' + }); + elDataLabelsWrap.attr('clip-path', "url(#gridRectMarkerMask".concat(w.globals.cuid, ")")); + + for (var q = 0; q < pos.x.length; q++) { + x = pos.x[q] + dataLabelsConfig.offsetX; + y = pos.y[q] + dataLabelsConfig.offsetY - w.globals.markers.size[i] - 5; + + if (!isNaN(x)) { + // a small hack as we have 2 points for the first val to connect it + if (j === 1 && q === 0) dataPointIndex = 0; + if (j === 1 && q === 1) dataPointIndex = 1; + var val = w.globals.series[i][dataPointIndex]; + var text = ''; + + if (w.config.chart.type === 'bubble') { + text = w.globals.seriesZ[i][dataPointIndex]; + y = pos.y[q] + w.config.dataLabels.offsetY; + var scatter = new Scatter(this.ctx); + var centerTextInBubbleCoords = scatter.centerTextInBubble(y, i, dataPointIndex); + y = centerTextInBubbleCoords.y; + } else { + if (typeof val !== 'undefined') { + text = w.config.dataLabels.formatter(val, { + seriesIndex: i, + dataPointIndex: dataPointIndex, + w: w + }); + } + } + + this.plotDataLabelsText({ + x: x, + y: y, + text: text, + i: i, + j: dataPointIndex, + parent: elDataLabelsWrap, + offsetCorrection: true, + dataLabelsConfig: w.config.dataLabels + }); + } + } + + return elDataLabelsWrap; + } + }, { + key: "plotDataLabelsText", + value: function plotDataLabelsText(opts) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var x = opts.x, + y = opts.y, + i = opts.i, + j = opts.j, + text = opts.text, + textAnchor = opts.textAnchor, + parent = opts.parent, + dataLabelsConfig = opts.dataLabelsConfig, + alwaysDrawDataLabel = opts.alwaysDrawDataLabel, + offsetCorrection = opts.offsetCorrection; + + if (Array.isArray(w.config.dataLabels.enabledOnSeries)) { + if (w.config.dataLabels.enabledOnSeries.indexOf(i) > -1) { + return; + } + } + + var correctedLabels = { + x: x, + y: y, + drawnextLabel: true + }; + + if (offsetCorrection) { + correctedLabels = this.dataLabelsCorrection(x, y, text, i, j, alwaysDrawDataLabel, parseInt(dataLabelsConfig.style.fontSize)); + } // when zoomed, we don't need to correct labels offsets, + // but if normally, labels get cropped, correct them + + + if (!w.globals.zoomed) { + x = correctedLabels.x; + y = correctedLabels.y; + } + + if (correctedLabels.drawnextLabel) { + var dataLabelText = graphics.drawText({ + width: 100, + height: parseInt(dataLabelsConfig.style.fontSize), + x: x, + y: y, + foreColor: w.globals.dataLabels.style.colors[i], + textAnchor: textAnchor || dataLabelsConfig.textAnchor, + text: text, + fontSize: dataLabelsConfig.style.fontSize, + fontFamily: dataLabelsConfig.style.fontFamily + }); + dataLabelText.attr({ + class: 'apexcharts-datalabel', + cx: x, + cy: y + }); + + if (dataLabelsConfig.dropShadow.enabled) { + var textShadow = dataLabelsConfig.dropShadow; + var filters = new Filters(this.ctx); + filters.dropShadow(dataLabelText, textShadow); + } + + parent.add(dataLabelText); + + if (typeof w.globals.lastDrawnDataLabelsIndexes[i] === 'undefined') { + w.globals.lastDrawnDataLabelsIndexes[i] = []; + } + + w.globals.lastDrawnDataLabelsIndexes[i].push(j); + } + } + }]); + + return DataLabels; +}(); + +/** + * ApexCharts Bar Class responsible for drawing both Columns and Bars. + * + * @module Bar + **/ + +var DATA_LABELS_WARNING_THRESHOLD = 50; + +var Bar = +/*#__PURE__*/ +function () { + function Bar(ctx, xyRatios) { + _classCallCheck(this, Bar); + + this.ctx = ctx; + this.w = ctx.w; + var w = this.w; + this.barOptions = w.config.plotOptions.bar; + this.isHorizontal = this.barOptions.horizontal; + this.strokeWidth = w.config.stroke.width; + this.isNullValue = false; + this.xyRatios = xyRatios; + + if (this.xyRatios !== null) { + this.xRatio = xyRatios.xRatio; + this.yRatio = xyRatios.yRatio; + this.invertedXRatio = xyRatios.invertedXRatio; + this.invertedYRatio = xyRatios.invertedYRatio; + this.baseLineY = xyRatios.baseLineY; + this.baseLineInvertedY = xyRatios.baseLineInvertedY; + } + + this.minXDiff = Number.MAX_VALUE; + this.yaxisIndex = 0; + this.seriesLen = 0; + } + /** primary draw method which is called on bar object + * @memberof Bar + * @param {array} series - user supplied series values + * @param {int} seriesIndex - the index by which series will be drawn on the svg + * @return {node} element which is supplied to parent chart draw method for appending + **/ + + + _createClass(Bar, [{ + key: "draw", + value: function draw(series, seriesIndex) { + var _this = this; + + var w = this.w; + var graphics = new Graphics(this.ctx); + var fill = new Fill(this.ctx); + var coreUtils = new CoreUtils(this.ctx, w); + this.series = coreUtils.getLogSeries(series); + series = this.series; + this.yRatio = coreUtils.getLogYRatios(this.yRatio); + this.initVariables(series); + var ret = graphics.group({ + class: 'apexcharts-bar-series apexcharts-plot-series' + }); + ret.attr('clip-path', "url(#gridRectMask".concat(w.globals.cuid, ")")); + + if (w.config.dataLabels.enabled) { + if (this.totalItems > DATA_LABELS_WARNING_THRESHOLD) { + console.warn('WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering.'); + } + } + + var _loop = function _loop(i, bc) { + var pathTo = void 0, + pathFrom = void 0; + var x = void 0, + y = void 0, + xDivision = void 0, + // xDivision is the GRIDWIDTH divided by number of datapoints (columns) + yDivision = void 0, + // yDivision is the GRIDHEIGHT divided by number of datapoints (bars) + zeroH = void 0, + // zeroH is the baseline where 0 meets y axis + zeroW = void 0; // zeroW is the baseline where 0 meets x axis + + var yArrj = []; // hold y values of current iterating series + + var xArrj = []; // hold x values of current iterating series + + var realIndex = w.globals.comboCharts ? seriesIndex[i] : i; // el to which series will be drawn + + var elSeries = graphics.group({ + class: "apexcharts-series ".concat(Utils.escapeString(w.globals.seriesNames[realIndex])), + rel: i + 1, + 'data:realIndex': realIndex + }); + + _this.ctx.series.addCollapsedClassToSeries(elSeries, realIndex); + + if (series[i].length > 0) { + _this.visibleI = _this.visibleI + 1; + } + + var strokeWidth = 0; + var barHeight = 0; + var barWidth = 0; + + if (_this.yRatio.length > 1) { + _this.yaxisIndex = realIndex; + } + + _this.isReversed = w.config.yaxis[_this.yaxisIndex] && w.config.yaxis[_this.yaxisIndex].reversed; + + var initPositions = _this.initialPositions(); + + y = initPositions.y; + barHeight = initPositions.barHeight; + yDivision = initPositions.yDivision; + zeroW = initPositions.zeroW; + x = initPositions.x; + barWidth = initPositions.barWidth; + xDivision = initPositions.xDivision; + zeroH = initPositions.zeroH; + + if (!_this.horizontal) { + xArrj.push(x + barWidth / 2); + } // eldatalabels + + + var elDataLabelsWrap = graphics.group({ + class: 'apexcharts-datalabels' + }); + + var _loop2 = function _loop2(j, tj) { + if (typeof _this.series[i][j] === 'undefined' || series[i][j] === null) { + _this.isNullValue = true; + } else { + _this.isNullValue = false; + } + + if (w.config.stroke.show) { + if (_this.isNullValue) { + strokeWidth = 0; + } else { + strokeWidth = Array.isArray(_this.strokeWidth) ? _this.strokeWidth[realIndex] : _this.strokeWidth; + } + } + + var paths = null; + + if (_this.isHorizontal) { + paths = _this.drawBarPaths({ + indexes: { + i: i, + j: j, + realIndex: realIndex, + bc: bc + }, + barHeight: barHeight, + strokeWidth: strokeWidth, + pathTo: pathTo, + pathFrom: pathFrom, + zeroW: zeroW, + x: x, + y: y, + yDivision: yDivision, + elSeries: elSeries + }); + } else { + paths = _this.drawColumnPaths({ + indexes: { + i: i, + j: j, + realIndex: realIndex, + bc: bc + }, + x: x, + y: y, + xDivision: xDivision, + pathTo: pathTo, + pathFrom: pathFrom, + barWidth: barWidth, + zeroH: zeroH, + strokeWidth: strokeWidth, + elSeries: elSeries + }); + } + + pathTo = paths.pathTo; + pathFrom = paths.pathFrom; + y = paths.y; + x = paths.x; // push current X + + if (j > 0) { + xArrj.push(x + barWidth / 2); + } + + yArrj.push(y); + var seriesNumber = _this.barOptions.distributed ? j : i; + var fillColor = null; + + if (_this.barOptions.colors.ranges.length > 0) { + var colorRange = _this.barOptions.colors.ranges; + colorRange.map(function (range) { + if (series[i][j] >= range.from && series[i][j] <= range.to) { + fillColor = range.color; + } + }); + } + + var pathFill = fill.fillPath({ + seriesNumber: _this.barOptions.distributed ? seriesNumber : realIndex, + color: fillColor + }); + elSeries = _this.renderSeries({ + realIndex: realIndex, + pathFill: pathFill, + j: j, + i: i, + pathFrom: pathFrom, + pathTo: pathTo, + strokeWidth: strokeWidth, + elSeries: elSeries, + x: x, + y: y, + series: series, + barHeight: barHeight, + barWidth: barWidth, + elDataLabelsWrap: elDataLabelsWrap, + visibleSeries: _this.visibleI, + type: 'bar' + }); + }; + + for (var j = 0, tj = w.globals.dataPoints; j < w.globals.dataPoints; j++, tj--) { + _loop2(j, tj); + } // push all x val arrays into main xArr + + + w.globals.seriesXvalues[realIndex] = xArrj; + w.globals.seriesYvalues[realIndex] = yArrj; + ret.add(elSeries); + }; + + for (var i = 0, bc = 0; i < series.length; i++, bc++) { + _loop(i, bc); + } + + return ret; + } + }, { + key: "renderSeries", + value: function renderSeries(_ref) { + var realIndex = _ref.realIndex, + pathFill = _ref.pathFill, + lineFill = _ref.lineFill, + j = _ref.j, + i = _ref.i, + pathFrom = _ref.pathFrom, + pathTo = _ref.pathTo, + strokeWidth = _ref.strokeWidth, + elSeries = _ref.elSeries, + x = _ref.x, + y = _ref.y, + series = _ref.series, + barHeight = _ref.barHeight, + barWidth = _ref.barWidth, + elDataLabelsWrap = _ref.elDataLabelsWrap, + visibleSeries = _ref.visibleSeries, + type = _ref.type; + var w = this.w; + var graphics = new Graphics(this.ctx); + + if (!lineFill) { + /* fix apexcharts#341 */ + lineFill = this.barOptions.distributed ? w.globals.stroke.colors[j] : w.globals.stroke.colors[realIndex]; + } + + if (this.isNullValue) { + pathFill = 'none'; + } + + var delay = j / w.config.chart.animations.animateGradually.delay * (w.config.chart.animations.speed / w.globals.dataPoints) / 2.4; + var renderedPath = graphics.renderPaths({ + i: i, + j: j, + realIndex: realIndex, + pathFrom: pathFrom, + pathTo: pathTo, + stroke: lineFill, + strokeWidth: strokeWidth, + strokeLineCap: w.config.stroke.lineCap, + fill: pathFill, + animationDelay: delay, + initialSpeed: w.config.chart.animations.speed, + dataChangeSpeed: w.config.chart.animations.dynamicAnimation.speed, + className: "apexcharts-".concat(type, "-area"), + id: "apexcharts-".concat(type, "-area") + }); + var filters = new Filters(this.ctx); + filters.setSelectionFilter(renderedPath, realIndex, j); + elSeries.add(renderedPath); + var dataLabels = this.calculateDataLabelsPos({ + x: x, + y: y, + i: i, + j: j, + series: series, + realIndex: realIndex, + barHeight: barHeight, + barWidth: barWidth, + renderedPath: renderedPath, + visibleSeries: visibleSeries + }); + + if (dataLabels !== null) { + elDataLabelsWrap.add(dataLabels); + } + + elSeries.add(elDataLabelsWrap); + return elSeries; + } + }, { + key: "initVariables", + value: function initVariables(series) { + var _this2 = this; + + var w = this.w; + this.series = series; + this.totalItems = 0; + this.seriesLen = 0; + this.visibleI = -1; + this.visibleItems = 1; // number of visible bars after user zoomed in/out + + for (var sl = 0; sl < series.length; sl++) { + if (series[sl].length > 0) { + this.seriesLen = this.seriesLen + 1; + this.totalItems += series[sl].length; + } + + if (w.globals.isXNumeric) { + // get the least x diff if numeric x axis is present + w.globals.seriesX.forEach(function (sX, i) { + sX.forEach(function (s, j) { + if (j > 0) { + var xDiff = s - w.globals.seriesX[i][j - 1]; + _this2.minXDiff = Math.min(xDiff, _this2.minXDiff); + } + }); + }); // get max visible items + + for (var j = 0; j < series[sl].length; j++) { + if (w.globals.seriesX[sl][j] > w.globals.minX && w.globals.seriesX[sl][j] < w.globals.maxX) { + this.visibleItems++; + } + } + } else { + this.visibleItems = w.globals.dataPoints; + } + } + + if (this.seriesLen === 0) { + // A small adjustment when combo charts are used + this.seriesLen = 1; + } + } + }, { + key: "initialPositions", + value: function initialPositions() { + var w = this.w; + var x, y, yDivision, xDivision, barHeight, barWidth, zeroH, zeroW; + + if (this.isHorizontal) { + // height divided into equal parts + yDivision = w.globals.gridHeight / w.globals.dataPoints; + barHeight = yDivision / this.seriesLen; + + if (w.globals.isXNumeric) { + yDivision = w.globals.gridHeight / this.totalItems; + barHeight = yDivision / this.seriesLen; + } + + barHeight = barHeight * parseInt(this.barOptions.barHeight) / 100; + zeroW = this.baseLineInvertedY + w.globals.padHorizontal + (this.isReversed ? w.globals.gridWidth : 0) - (this.isReversed ? this.baseLineInvertedY * 2 : 0); + y = (yDivision - barHeight * this.seriesLen) / 2; + } else { + // width divided into equal parts + xDivision = w.globals.gridWidth / this.visibleItems; + barWidth = xDivision / this.seriesLen * parseInt(this.barOptions.columnWidth) / 100; + + if (w.globals.isXNumeric) { + // max barwidth should be equal to minXDiff to avoid overlap + if (this.minXDiff === Number.MAX_VALUE) { + // possibly a single dataPoint (fixes react-apexcharts/issue#34) + var len = w.globals.labels.length; + + if (w.globals.timelineLabels.length > 0) { + len = w.globals.timelineLabels.length; + } + + if (len < 3) { + len = 3; + } + + this.minXDiff = (w.globals.maxX - w.globals.minX) / len; + } + + xDivision = this.minXDiff / this.xRatio; + barWidth = xDivision / this.seriesLen * parseInt(this.barOptions.columnWidth) / 100; + } + + zeroH = w.globals.gridHeight - this.baseLineY[this.yaxisIndex] - (this.isReversed ? w.globals.gridHeight : 0) + (this.isReversed ? this.baseLineY[this.yaxisIndex] * 2 : 0); + x = w.globals.padHorizontal + (xDivision - barWidth * this.seriesLen) / 2; + } + + return { + x: x, + y: y, + yDivision: yDivision, + xDivision: xDivision, + barHeight: barHeight, + barWidth: barWidth, + zeroH: zeroH, + zeroW: zeroW + }; + } + }, { + key: "drawBarPaths", + value: function drawBarPaths(_ref2) { + var indexes = _ref2.indexes, + barHeight = _ref2.barHeight, + strokeWidth = _ref2.strokeWidth, + pathTo = _ref2.pathTo, + pathFrom = _ref2.pathFrom, + zeroW = _ref2.zeroW, + x = _ref2.x, + y = _ref2.y, + yDivision = _ref2.yDivision, + elSeries = _ref2.elSeries; + var w = this.w; + var graphics = new Graphics(this.ctx); + var i = indexes.i; + var j = indexes.j; + var realIndex = indexes.realIndex; + var bc = indexes.bc; + + if (w.globals.isXNumeric) { + y = (w.globals.seriesX[i][j] - w.globals.minX) / this.invertedXRatio - barHeight; + } + + var barYPosition = y + barHeight * this.visibleI; + pathTo = graphics.move(zeroW, barYPosition); + pathFrom = graphics.move(zeroW, barYPosition); + + if (w.globals.previousPaths.length > 0) { + pathFrom = this.getPathFrom(realIndex, j); + } + + if (typeof this.series[i][j] === 'undefined' || this.series[i][j] === null) { + x = zeroW; + } else { + x = zeroW + this.series[i][j] / this.invertedYRatio - (this.isReversed ? this.series[i][j] / this.invertedYRatio : 0) * 2; + } + + pathTo = pathTo + graphics.line(x, barYPosition) + graphics.line(x, barYPosition + barHeight - strokeWidth) + graphics.line(zeroW, barYPosition + barHeight - strokeWidth) + graphics.line(zeroW, barYPosition); + pathFrom = pathFrom + graphics.line(zeroW, barYPosition) + graphics.line(zeroW, barYPosition + barHeight - strokeWidth) + graphics.line(zeroW, barYPosition + barHeight - strokeWidth) + graphics.line(zeroW, barYPosition); + + if (!w.globals.isXNumeric) { + y = y + yDivision; + } + + if (this.barOptions.colors.backgroundBarColors.length > 0 && i === 0) { + if (bc >= this.barOptions.colors.backgroundBarColors.length) { + bc = 0; + } + + var bcolor = this.barOptions.colors.backgroundBarColors[bc]; + var rect = graphics.drawRect(0, barYPosition - barHeight * this.visibleI, w.globals.gridWidth, barHeight * this.seriesLen, 0, bcolor, this.barOptions.colors.backgroundBarOpacity); + elSeries.add(rect); + rect.node.classList.add('apexcharts-backgroundBar'); + } + + return { + pathTo: pathTo, + pathFrom: pathFrom, + x: x, + y: y, + barYPosition: barYPosition + }; + } + }, { + key: "drawColumnPaths", + value: function drawColumnPaths(_ref3) { + var indexes = _ref3.indexes, + x = _ref3.x, + y = _ref3.y, + xDivision = _ref3.xDivision, + pathTo = _ref3.pathTo, + pathFrom = _ref3.pathFrom, + barWidth = _ref3.barWidth, + zeroH = _ref3.zeroH, + strokeWidth = _ref3.strokeWidth, + elSeries = _ref3.elSeries; + var w = this.w; + var graphics = new Graphics(this.ctx); + var i = indexes.i; + var j = indexes.j; + var realIndex = indexes.realIndex; + var bc = indexes.bc; + + if (w.globals.isXNumeric) { + x = (w.globals.seriesX[i][j] - w.globals.minX) / this.xRatio - barWidth / 2; + } + + var barXPosition = x + barWidth * this.visibleI; + pathTo = graphics.move(barXPosition, zeroH); + pathFrom = graphics.move(barXPosition, zeroH); + + if (w.globals.previousPaths.length > 0) { + pathFrom = this.getPathFrom(realIndex, j); + } + + if (typeof this.series[i][j] === 'undefined' || this.series[i][j] === null) { + y = zeroH; + } else { + y = zeroH - this.series[i][j] / this.yRatio[this.yaxisIndex] + (this.isReversed ? this.series[i][j] / this.yRatio[this.yaxisIndex] : 0) * 2; + } + + pathTo = pathTo + graphics.line(barXPosition, y) + graphics.line(barXPosition + barWidth - strokeWidth, y) + graphics.line(barXPosition + barWidth - strokeWidth, zeroH) + graphics.line(barXPosition, zeroH); + pathFrom = pathFrom + graphics.line(barXPosition, zeroH) + graphics.line(barXPosition + barWidth - strokeWidth, zeroH) + graphics.line(barXPosition + barWidth - strokeWidth, zeroH) + graphics.line(barXPosition, zeroH); + + if (!w.globals.isXNumeric) { + x = x + xDivision; + } + + if (this.barOptions.colors.backgroundBarColors.length > 0 && i === 0) { + if (bc >= this.barOptions.colors.backgroundBarColors.length) { + bc = 0; + } + + var bcolor = this.barOptions.colors.backgroundBarColors[bc]; + var rect = graphics.drawRect(barXPosition - barWidth * this.visibleI, 0, barWidth * this.seriesLen, w.globals.gridHeight, 0, bcolor, this.barOptions.colors.backgroundBarOpacity); + elSeries.add(rect); + rect.node.classList.add('apexcharts-backgroundBar'); + } + + return { + pathTo: pathTo, + pathFrom: pathFrom, + x: x, + y: y, + barXPosition: barXPosition + }; + } + /** getPathFrom is a common function for bars/columns which is used to get previous paths when data changes. + * @memberof Bar + * @param {int} realIndex - current iterating i + * @param {int} j - current iterating series's j index + * @return {string} pathFrom is the string which will be appended in animations + **/ + + }, { + key: "getPathFrom", + value: function getPathFrom(realIndex, j) { + var w = this.w; + var pathFrom; + + for (var pp = 0; pp < w.globals.previousPaths.length; pp++) { + var gpp = w.globals.previousPaths[pp]; + + if (gpp.paths.length > 0 && parseInt(gpp.realIndex) === parseInt(realIndex)) { + if (typeof w.globals.previousPaths[pp].paths[j] !== 'undefined') { + pathFrom = w.globals.previousPaths[pp].paths[j].d; + } + } + } + + return pathFrom; + } + /** calculateBarDataLabels is used to calculate the positions for the data-labels + * It also sets the element's data attr for bars and calls drawCalculatedBarDataLabels() + * @memberof Bar + * @param {object} {barProps} most of the bar properties used throughout the bar + * drawing function + * @return {object} dataLabels node-element which you can append later + **/ + + }, { + key: "calculateDataLabelsPos", + value: function calculateDataLabelsPos(_ref4) { + var x = _ref4.x, + y = _ref4.y, + i = _ref4.i, + j = _ref4.j, + realIndex = _ref4.realIndex, + series = _ref4.series, + barHeight = _ref4.barHeight, + barWidth = _ref4.barWidth, + visibleSeries = _ref4.visibleSeries, + renderedPath = _ref4.renderedPath; + var w = this.w; + var graphics = new Graphics(this.ctx); + var strokeWidth = Array.isArray(this.strokeWidth) ? this.strokeWidth[realIndex] : this.strokeWidth; + var bcx = x + parseFloat(barWidth * visibleSeries); + var bcy = y + parseFloat(barHeight * visibleSeries); + + if (w.globals.isXNumeric) { + bcx = x + parseFloat(barWidth * (visibleSeries + 1)) - strokeWidth; + bcy = y + parseFloat(barHeight * (visibleSeries + 1)) - strokeWidth; + } + + var dataLabels = null; + var dataLabelsX = x; + var dataLabelsY = y; + var dataLabelsPos = {}; + var dataLabelsConfig = w.config.dataLabels; + var barDataLabelsConfig = this.barOptions.dataLabels; + var offX = dataLabelsConfig.offsetX; + var offY = dataLabelsConfig.offsetY; + var textRects = { + width: 0, + height: 0 + }; + + if (w.config.dataLabels.enabled) { + textRects = graphics.getTextRects(w.globals.yLabelFormatters[0](w.globals.maxY), parseInt(dataLabelsConfig.style.fontSize)); + } + + if (this.isHorizontal) { + dataLabelsPos = this.calculateBarsDataLabelsPosition({ + x: x, + y: y, + i: i, + j: j, + renderedPath: renderedPath, + bcy: bcy, + barHeight: barHeight, + textRects: textRects, + strokeWidth: strokeWidth, + dataLabelsX: dataLabelsX, + dataLabelsY: dataLabelsY, + barDataLabelsConfig: barDataLabelsConfig, + offX: offX, + offY: offY + }); + } else { + dataLabelsPos = this.calculateColumnsDataLabelsPosition({ + x: x, + y: y, + i: i, + j: j, + renderedPath: renderedPath, + realIndex: realIndex, + bcx: bcx, + bcy: bcy, + barHeight: barHeight, + barWidth: barWidth, + textRects: textRects, + strokeWidth: strokeWidth, + dataLabelsY: dataLabelsY, + barDataLabelsConfig: barDataLabelsConfig, + offX: offX, + offY: offY + }); + } + + renderedPath.attr({ + cy: dataLabelsPos.bcy, + cx: dataLabelsPos.bcx, + j: j, + val: series[i][j], + barHeight: barHeight, + barWidth: barWidth + }); + dataLabels = this.drawCalculatedDataLabels({ + x: dataLabelsPos.dataLabelsX, + y: dataLabelsPos.dataLabelsY, + val: series[i][j], + i: realIndex, + j: j, + dataLabelsConfig: dataLabelsConfig + }); + return dataLabels; + } + }, { + key: "calculateColumnsDataLabelsPosition", + value: function calculateColumnsDataLabelsPosition(opts) { + var w = this.w; + var i = opts.i, + j = opts.j, + realIndex = opts.realIndex, + y = opts.y, + bcx = opts.bcx, + barWidth = opts.barWidth, + textRects = opts.textRects, + dataLabelsY = opts.dataLabelsY, + barDataLabelsConfig = opts.barDataLabelsConfig, + strokeWidth = opts.strokeWidth, + offX = opts.offX, + offY = opts.offY; + var dataLabelsX; + var barHeight = this.series[i][j] / this.yRatio[this.yaxisIndex]; + var dataPointsDividedWidth = w.globals.gridWidth / w.globals.dataPoints; + bcx = bcx - strokeWidth / 2; + + if (w.globals.isXNumeric) { + dataLabelsX = bcx - barWidth / 2 + offX; + } else { + dataLabelsX = bcx - dataPointsDividedWidth + barWidth / 2 + offX; + } + + var valIsNegative = this.series[i][j] <= 0; + + if (w.config.yaxis[this.yaxisIndex].reversed) { + y = y - barHeight; + } + + switch (barDataLabelsConfig.position) { + case 'center': + if (valIsNegative) { + dataLabelsY = y + barHeight / 2 + textRects.height / 2 + offY; + } else { + dataLabelsY = y + barHeight / 2 + textRects.height / 2 - offY; + } + + break; + + case 'bottom': + if (valIsNegative) { + dataLabelsY = y + barHeight + textRects.height + strokeWidth + offY; + } else { + dataLabelsY = y + barHeight - textRects.height / 2 + strokeWidth - offY; + } + + break; + + case 'top': + if (valIsNegative) { + dataLabelsY = y - textRects.height / 2 - offY; + } else { + dataLabelsY = y + textRects.height + offY; + } + + break; + } + + return { + bcx: bcx, + bcy: y, + dataLabelsX: dataLabelsX, + dataLabelsY: dataLabelsY + }; + } + }, { + key: "calculateBarsDataLabelsPosition", + value: function calculateBarsDataLabelsPosition(opts) { + var w = this.w; + var x = opts.x, + i = opts.i, + j = opts.j, + bcy = opts.bcy, + barHeight = opts.barHeight, + textRects = opts.textRects, + dataLabelsX = opts.dataLabelsX, + strokeWidth = opts.strokeWidth, + barDataLabelsConfig = opts.barDataLabelsConfig, + offX = opts.offX, + offY = opts.offY; + var dataPointsDividedHeight = w.globals.gridHeight / w.globals.dataPoints; + var dataLabelsY = bcy - dataPointsDividedHeight + barHeight / 2 + textRects.height / 2 + offY - 3; + var barWidth = this.series[i][j] / this.invertedYRatio; + var valIsNegative = this.series[i][j] <= 0; + + if (w.config.yaxis[this.yaxisIndex].reversed) { + x = x + barWidth; + } + + switch (barDataLabelsConfig.position) { + case 'center': + if (valIsNegative) { + dataLabelsX = x - barWidth / 2 - offX; + } else { + dataLabelsX = x - barWidth / 2 + offX; + } + + break; + + case 'bottom': + if (valIsNegative) { + dataLabelsX = x - barWidth - strokeWidth - Math.round(textRects.width / 2) - offX; + } else { + dataLabelsX = x - barWidth + strokeWidth + Math.round(textRects.width / 2) + offX; + } + + break; + + case 'top': + if (valIsNegative) { + dataLabelsX = x - strokeWidth + Math.round(textRects.width / 2) - offX; + } else { + dataLabelsX = x - strokeWidth - Math.round(textRects.width / 2) + offX; + } + + break; + } + + if (dataLabelsX < 0) { + dataLabelsX = textRects.width + strokeWidth; + } else if (dataLabelsX + textRects.width / 2 > w.globals.gridWidth) { + dataLabelsX = dataLabelsX - textRects.width - strokeWidth; + } + + return { + bcx: x, + bcy: bcy, + dataLabelsX: dataLabelsX, + dataLabelsY: dataLabelsY + }; + } + }, { + key: "drawCalculatedDataLabels", + value: function drawCalculatedDataLabels(_ref5) { + var x = _ref5.x, + y = _ref5.y, + val = _ref5.val, + i = _ref5.i, + j = _ref5.j, + dataLabelsConfig = _ref5.dataLabelsConfig; + var w = this.w; + var dataLabels = new DataLabels(this.ctx); + var graphics = new Graphics(this.ctx); + var formatter = dataLabelsConfig.formatter; + var elDataLabelsWrap = null; + var isSeriesNotCollapsed = w.globals.collapsedSeriesIndices.indexOf(i) > -1; + + if (dataLabelsConfig.enabled && !isSeriesNotCollapsed) { + elDataLabelsWrap = graphics.group({ + class: 'apexcharts-data-labels' + }); + var text = ''; + + if (typeof val !== 'undefined' && val !== null) { + text = formatter(val, { + seriesIndex: i, + dataPointIndex: j, + w: w + }); + } + + dataLabels.plotDataLabelsText({ + x: x, + y: y, + text: text, + i: i, + j: j, + parent: elDataLabelsWrap, + dataLabelsConfig: dataLabelsConfig, + alwaysDrawDataLabel: true, + offsetCorrection: true + }); + } + + return elDataLabelsWrap; + } + }]); + + return Bar; +}(); + +/** + * ApexCharts BarStacked Class responsible for drawing both Stacked Columns and Bars. + * + * @module BarStacked + * The whole calculation for stacked bar/column is different from normal bar/column, + * hence it makes sense to derive a new class for it extending most of the props of Parent Bar + **/ + +var BarStacked = +/*#__PURE__*/ +function (_Bar) { + _inherits(BarStacked, _Bar); + + function BarStacked() { + _classCallCheck(this, BarStacked); + + return _possibleConstructorReturn(this, _getPrototypeOf(BarStacked).apply(this, arguments)); + } + + _createClass(BarStacked, [{ + key: "draw", + value: function draw(series, seriesIndex) { + var _this = this; + + var w = this.w; + this.graphics = new Graphics(this.ctx); + this.fill = new Fill(this.ctx); + this.bar = new Bar(this.ctx, this.xyRatios); + var coreUtils = new CoreUtils(this.ctx, w); + this.series = coreUtils.getLogSeries(series); + series = this.series; + this.yRatio = coreUtils.getLogYRatios(this.yRatio); + this.series = series; + this.initVariables(series); + + if (w.config.chart.stackType === '100%') { + this.series = w.globals.seriesPercent.slice(); + series = this.series; + } + + this.totalItems = 0; + this.prevY = []; // y position on chart + + this.prevX = []; // x position on chart + + this.prevYF = []; // y position including shapes on chart + + this.prevXF = []; // x position including shapes on chart + + this.prevYVal = []; // y values (series[i][j]) in columns + + this.prevXVal = []; // x values (series[i][j]) in bars + + this.xArrj = []; // xj indicates x position on graph in bars + + this.xArrjF = []; // xjF indicates bar's x position + endingshape's positions in bars + + this.xArrjVal = []; // x val means the actual series's y values in horizontal/bars + + this.yArrj = []; // yj indicates y position on graph in columns + + this.yArrjF = []; // yjF indicates bar's y position + endingshape's positions in columns + + this.yArrjVal = []; // y val means the actual series's y values in columns + + for (var sl = 0; sl < series.length; sl++) { + if (series[sl].length > 0) { + this.totalItems += series[sl].length; + } + } + + var ret = this.graphics.group({ + class: 'apexcharts-bar-series apexcharts-plot-series' + }); + ret.attr('clip-path', "url(#gridRectMask".concat(w.globals.cuid, ")")); + var x = 0; + var y = 0; + + var _loop = function _loop(i, bc) { + var pathTo = void 0, + pathFrom = void 0; + var xDivision = void 0; // xDivision is the GRIDWIDTH divided by number of datapoints (columns) + + var yDivision = void 0; // yDivision is the GRIDHEIGHT divided by number of datapoints (bars) + + var zeroH = void 0; // zeroH is the baseline where 0 meets y axis + + var zeroW = void 0; // zeroW is the baseline where 0 meets x axis + + var xArrValues = []; + var yArrValues = []; + var realIndex = w.globals.comboCharts ? seriesIndex[i] : i; + + if (_this.yRatio.length > 1) { + _this.yaxisIndex = realIndex; + } + + _this.isReversed = w.config.yaxis[_this.yaxisIndex] && w.config.yaxis[_this.yaxisIndex].reversed; // el to which series will be drawn + + var elSeries = _this.graphics.group({ + class: "apexcharts-series ".concat(Utils.escapeString(w.globals.seriesNames[realIndex])), + rel: i + 1, + 'data:realIndex': realIndex + }); // eldatalabels + + + var elDataLabelsWrap = _this.graphics.group({ + class: 'apexcharts-datalabels' + }); + + var strokeWidth = 0; + var barHeight = 0; + var barWidth = 0; + + var initPositions = _this.initialPositions(x, y, xDivision, yDivision, zeroH, zeroW); + + y = initPositions.y; + barHeight = initPositions.barHeight; + yDivision = initPositions.yDivision; + zeroW = initPositions.zeroW; + x = initPositions.x; + barWidth = initPositions.barWidth; + xDivision = initPositions.xDivision; + zeroH = initPositions.zeroH; + _this.yArrj = []; + _this.yArrjF = []; + _this.yArrjVal = []; + _this.xArrj = []; + _this.xArrjF = []; + _this.xArrjVal = []; // if (!this.horizontal) { + // this.xArrj.push(x + barWidth / 2) + // } + + var _loop2 = function _loop2(j) { + if (w.config.stroke.show) { + if (_this.isNullValue) { + strokeWidth = 0; + } else { + strokeWidth = Array.isArray(_this.strokeWidth) ? _this.strokeWidth[realIndex] : _this.strokeWidth; + } + } + + var paths = null; + + if (_this.isHorizontal) { + paths = _this.drawBarPaths({ + indexes: { + i: i, + j: j, + realIndex: realIndex, + bc: bc + }, + barHeight: barHeight, + strokeWidth: strokeWidth, + pathTo: pathTo, + pathFrom: pathFrom, + zeroW: zeroW, + x: x, + y: y, + yDivision: yDivision, + elSeries: elSeries + }); + } else { + paths = _this.drawColumnPaths({ + indexes: { + i: i, + j: j, + realIndex: realIndex, + bc: bc + }, + x: x, + y: y, + xDivision: xDivision, + pathTo: pathTo, + pathFrom: pathFrom, + barWidth: barWidth, + zeroH: zeroH, + strokeWidth: strokeWidth, + elSeries: elSeries + }); + } + + pathTo = paths.pathTo; + pathFrom = paths.pathFrom; + y = paths.y; + x = paths.x; + xArrValues.push(x); + yArrValues.push(y); + var seriesNumber = w.config.plotOptions.bar.distributed ? j : i; + var fillColor = null; + + if (_this.barOptions.colors.ranges.length > 0) { + var colorRange = _this.barOptions.colors.ranges; + colorRange.map(function (range, index) { + if (series[i][j] >= range.from && series[i][j] <= range.to) { + fillColor = range.color; + } + }); + } + + var pathFill = _this.fill.fillPath({ + seriesNumber: _this.barOptions.distributed ? seriesNumber : realIndex, + color: fillColor + }); + + elSeries = _this.renderSeries({ + realIndex: realIndex, + pathFill: pathFill, + j: j, + i: i, + pathFrom: pathFrom, + pathTo: pathTo, + strokeWidth: strokeWidth, + elSeries: elSeries, + x: x, + y: y, + series: series, + barHeight: barHeight, + barWidth: barWidth, + elDataLabelsWrap: elDataLabelsWrap, + type: 'bar', + visibleSeries: 0 + }); + }; + + for (var j = 0; j < w.globals.dataPoints; j++) { + _loop2(j); + } // push all x val arrays into main xArr + + + w.globals.seriesXvalues[realIndex] = xArrValues; + w.globals.seriesYvalues[realIndex] = yArrValues; // push all current y values array to main PrevY Array + + _this.prevY.push(_this.yArrj); + + _this.prevYF.push(_this.yArrjF); + + _this.prevYVal.push(_this.yArrjVal); + + _this.prevX.push(_this.xArrj); + + _this.prevXF.push(_this.xArrjF); + + _this.prevXVal.push(_this.xArrjVal); + + ret.add(elSeries); + }; + + for (var i = 0, bc = 0; i < series.length; i++, bc++) { + _loop(i, bc); + } + + return ret; + } + }, { + key: "initialPositions", + value: function initialPositions(x, y, xDivision, yDivision, zeroH, zeroW) { + var w = this.w; + var barHeight, barWidth; + + if (this.isHorizontal) { + // height divided into equal parts + yDivision = w.globals.gridHeight / w.globals.dataPoints; + barHeight = yDivision; + barHeight = barHeight * parseInt(w.config.plotOptions.bar.barHeight) / 100; + zeroW = this.baseLineInvertedY + w.globals.padHorizontal + (this.isReversed ? w.globals.gridWidth : 0) - (this.isReversed ? this.baseLineInvertedY * 2 : 0); // initial y position is half of barHeight * half of number of Bars + + y = (yDivision - barHeight) / 2; + } else { + // width divided into equal parts + xDivision = w.globals.gridWidth / w.globals.dataPoints; + barWidth = xDivision; + + if (w.globals.isXNumeric) { + // max barwidth should be equal to minXDiff to avoid overlap + xDivision = this.minXDiff / this.xRatio; + barWidth = xDivision * parseInt(this.barOptions.columnWidth) / 100; + } else { + barWidth = barWidth * parseInt(w.config.plotOptions.bar.columnWidth) / 100; + } + + zeroH = this.baseLineY[this.yaxisIndex] + (this.isReversed ? w.globals.gridHeight : 0) - (this.isReversed ? this.baseLineY[this.yaxisIndex] * 2 : 0); // initial x position is one third of barWidth + + x = w.globals.padHorizontal + (xDivision - barWidth) / 2; + } + + return { + x: x, + y: y, + yDivision: yDivision, + xDivision: xDivision, + barHeight: barHeight, + barWidth: barWidth, + zeroH: zeroH, + zeroW: zeroW + }; + } + }, { + key: "drawBarPaths", + value: function drawBarPaths(_ref) { + var indexes = _ref.indexes, + barHeight = _ref.barHeight, + strokeWidth = _ref.strokeWidth, + pathTo = _ref.pathTo, + pathFrom = _ref.pathFrom, + zeroW = _ref.zeroW, + x = _ref.x, + y = _ref.y, + yDivision = _ref.yDivision, + elSeries = _ref.elSeries; + var w = this.w; + var barYPosition = y; + var barXPosition; + var i = indexes.i; + var j = indexes.j; + var realIndex = indexes.realIndex; + var bc = indexes.bc; + var prevBarW = 0; + + for (var k = 0; k < this.prevXF.length; k++) { + prevBarW = prevBarW + this.prevXF[k][j]; + } + + if (i > 0) { + var bXP = zeroW; + + if (this.prevXVal[i - 1][j] < 0) { + if (this.series[i][j] >= 0) { + bXP = this.prevX[i - 1][j] + prevBarW - (this.isReversed ? prevBarW : 0) * 2; + } else { + bXP = this.prevX[i - 1][j]; + } + } else if (this.prevXVal[i - 1][j] >= 0) { + if (this.series[i][j] >= 0) { + bXP = this.prevX[i - 1][j]; + } else { + bXP = this.prevX[i - 1][j] - prevBarW + (this.isReversed ? prevBarW : 0) * 2; + } + } + + barXPosition = bXP; + } else { + // the first series will not have prevX values + barXPosition = zeroW; + } + + if (this.series[i][j] === null) { + x = barXPosition; + } else { + x = barXPosition + this.series[i][j] / this.invertedYRatio - (this.isReversed ? this.series[i][j] / this.invertedYRatio : 0) * 2; + } + + this.xArrj.push(x); + this.xArrjF.push(Math.abs(barXPosition - x)); + this.xArrjVal.push(this.series[i][j]); + pathTo = this.graphics.move(barXPosition, barYPosition); + pathFrom = this.graphics.move(barXPosition, barYPosition); + + if (w.globals.previousPaths.length > 0) { + pathFrom = this.bar.getPathFrom(realIndex, j, false); + } + + pathTo = pathTo + this.graphics.line(x, barYPosition) + this.graphics.line(x, barYPosition + barHeight - strokeWidth) + this.graphics.line(barXPosition, barYPosition + barHeight - strokeWidth) + this.graphics.line(barXPosition, barYPosition); + pathFrom = pathFrom + this.graphics.line(barXPosition, barYPosition) + this.graphics.line(barXPosition, barYPosition + barHeight - strokeWidth) + this.graphics.line(barXPosition, barYPosition + barHeight - strokeWidth) + this.graphics.line(barXPosition, barYPosition + barHeight - strokeWidth) + this.graphics.line(barXPosition, barYPosition); + + if (w.config.plotOptions.bar.colors.backgroundBarColors.length > 0 && i === 0) { + if (bc >= w.config.plotOptions.bar.colors.backgroundBarColors.length) { + bc = 0; + } + + var bcolor = w.config.plotOptions.bar.colors.backgroundBarColors[bc]; + var rect = this.graphics.drawRect(0, barYPosition, w.globals.gridWidth, barHeight, 0, bcolor, w.config.plotOptions.bar.colors.backgroundBarOpacity); + elSeries.add(rect); + rect.node.classList.add('apexcharts-backgroundBar'); + } + + y = y + yDivision; + return { + pathTo: pathTo, + pathFrom: pathFrom, + x: x, + y: y + }; + } + }, { + key: "drawColumnPaths", + value: function drawColumnPaths(_ref2) { + var indexes = _ref2.indexes, + x = _ref2.x, + y = _ref2.y, + xDivision = _ref2.xDivision, + pathTo = _ref2.pathTo, + pathFrom = _ref2.pathFrom, + barWidth = _ref2.barWidth, + zeroH = _ref2.zeroH, + strokeWidth = _ref2.strokeWidth, + elSeries = _ref2.elSeries; + var w = this.w; + var i = indexes.i; + var j = indexes.j; + var realIndex = indexes.realIndex; + var bc = indexes.bc; + + if (w.globals.isXNumeric) { + var seriesVal = w.globals.seriesX[i][j]; + if (!seriesVal) seriesVal = 0; + x = (seriesVal - w.globals.minX) / this.xRatio - barWidth / 2; + } + + var barXPosition = x; + var barYPosition; + var prevBarH = 0; + + for (var k = 0; k < this.prevYF.length; k++) { + prevBarH = prevBarH + this.prevYF[k][j]; + } + + if (i > 0 && !w.globals.isXNumeric || i > 0 && w.globals.isXNumeric && w.globals.seriesX[i - 1][j] === w.globals.seriesX[i][j]) { + var bYP; + var prevYValue = this.prevY[i - 1][j]; + + if (this.prevYVal[i - 1][j] < 0) { + if (this.series[i][j] >= 0) { + bYP = prevYValue - prevBarH + (this.isReversed ? prevBarH : 0) * 2; + } else { + bYP = prevYValue; + } + } else { + if (this.series[i][j] >= 0) { + bYP = prevYValue; + } else { + bYP = prevYValue + prevBarH - (this.isReversed ? prevBarH : 0) * 2; + } + } + + barYPosition = bYP; + } else { + // the first series will not have prevY values, also if the prev index's series X doesn't matches the current index's series X, then start from zero + barYPosition = w.globals.gridHeight - zeroH; + } + + y = barYPosition - this.series[i][j] / this.yRatio[this.yaxisIndex] + (this.isReversed ? this.series[i][j] / this.yRatio[this.yaxisIndex] : 0) * 2; + this.yArrj.push(y); + this.yArrjF.push(Math.abs(barYPosition - y)); + this.yArrjVal.push(this.series[i][j]); + pathTo = this.graphics.move(barXPosition, barYPosition); + pathFrom = this.graphics.move(barXPosition, barYPosition); + + if (w.globals.previousPaths.length > 0) { + pathFrom = this.bar.getPathFrom(realIndex, j, false); + } + + pathTo = pathTo + this.graphics.line(barXPosition, y) + this.graphics.line(barXPosition + barWidth - strokeWidth, y) + this.graphics.line(barXPosition + barWidth - strokeWidth, barYPosition) + this.graphics.line(barXPosition, barYPosition); + pathFrom = pathFrom + this.graphics.line(barXPosition, barYPosition) + this.graphics.line(barXPosition + barWidth - strokeWidth, barYPosition) + this.graphics.line(barXPosition + barWidth - strokeWidth, barYPosition) + this.graphics.line(barXPosition + barWidth - strokeWidth, barYPosition) + this.graphics.line(barXPosition, barYPosition); + + if (w.config.plotOptions.bar.colors.backgroundBarColors.length > 0 && i === 0) { + if (bc >= w.config.plotOptions.bar.colors.backgroundBarColors.length) { + bc = 0; + } + + var bcolor = w.config.plotOptions.bar.colors.backgroundBarColors[bc]; + var rect = this.graphics.drawRect(barXPosition, 0, barWidth, w.globals.gridHeight, 0, bcolor, w.config.plotOptions.bar.colors.backgroundBarOpacity); + elSeries.add(rect); + rect.node.classList.add('apexcharts-backgroundBar'); + } + + x = x + xDivision; + return { + pathTo: pathTo, + pathFrom: pathFrom, + x: w.globals.isXNumeric ? x - xDivision : x, + y: y + }; + } + }]); + + return BarStacked; +}(Bar); + +/** + * ApexCharts CandleStick Class responsible for drawing both Stacked Columns and Bars. + * + * @module CandleStick + * The whole calculation for stacked bar/column is different from normal bar/column, + * hence it makes sense to derive a new class for it extending most of the props of Parent Bar + **/ + +var CandleStick = +/*#__PURE__*/ +function (_Bar) { + _inherits(CandleStick, _Bar); + + function CandleStick() { + _classCallCheck(this, CandleStick); + + return _possibleConstructorReturn(this, _getPrototypeOf(CandleStick).apply(this, arguments)); + } + + _createClass(CandleStick, [{ + key: "draw", + value: function draw(series, seriesIndex) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var fill = new Fill(this.ctx); + this.candlestickOptions = this.w.config.plotOptions.candlestick; + var coreUtils = new CoreUtils(this.ctx, w); + this.series = coreUtils.getLogSeries(series); + series = this.series; + this.yRatio = coreUtils.getLogYRatios(this.yRatio); + this.initVariables(series); + var ret = graphics.group({ + class: 'apexcharts-candlestick-series apexcharts-plot-series' + }); + ret.attr('clip-path', "url(#gridRectMask".concat(w.globals.cuid, ")")); + + for (var i = 0, bc = 0; i < series.length; i++, bc++) { + var pathTo = void 0, + pathFrom = void 0; + var x = void 0, + y = void 0, + xDivision = void 0, + // xDivision is the GRIDWIDTH divided by number of datapoints (columns) + zeroH = void 0; // zeroH is the baseline where 0 meets y axis + + var yArrj = []; // hold y values of current iterating series + + var xArrj = []; // hold x values of current iterating series + + var realIndex = w.globals.comboCharts ? seriesIndex[i] : i; // el to which series will be drawn + + var elSeries = graphics.group({ + class: "apexcharts-series ".concat(Utils.escapeString(w.globals.seriesNames[realIndex])), + rel: i + 1, + 'data:realIndex': realIndex + }); + + if (series[i].length > 0) { + this.visibleI = this.visibleI + 1; + } + + var strokeWidth = 0; + var barHeight = 0; + var barWidth = 0; + + if (this.yRatio.length > 1) { + this.yaxisIndex = realIndex; + } + + var initPositions = this.initialPositions(); + y = initPositions.y; + barHeight = initPositions.barHeight; + x = initPositions.x; + barWidth = initPositions.barWidth; + xDivision = initPositions.xDivision; + zeroH = initPositions.zeroH; + xArrj.push(x + barWidth / 2); // eldatalabels + + var elDataLabelsWrap = graphics.group({ + class: 'apexcharts-datalabels' + }); + + for (var j = 0, tj = w.globals.dataPoints; j < w.globals.dataPoints; j++, tj--) { + if (typeof this.series[i][j] === 'undefined' || series[i][j] === null) { + this.isNullValue = true; + } else { + this.isNullValue = false; + } + + if (w.config.stroke.show) { + if (this.isNullValue) { + strokeWidth = 0; + } else { + strokeWidth = Array.isArray(this.strokeWidth) ? this.strokeWidth[realIndex] : this.strokeWidth; + } + } + + var color = void 0; + var paths = this.drawCandleStickPaths({ + indexes: { + i: i, + j: j, + realIndex: realIndex, + bc: bc + }, + x: x, + y: y, + xDivision: xDivision, + pathTo: pathTo, + pathFrom: pathFrom, + barWidth: barWidth, + zeroH: zeroH, + strokeWidth: strokeWidth, + elSeries: elSeries + }); + pathTo = paths.pathTo; + pathFrom = paths.pathFrom; + y = paths.y; + x = paths.x; + color = paths.color; // push current X + + if (j > 0) { + xArrj.push(x + barWidth / 2); + } + + yArrj.push(y); + var pathFill = fill.fillPath({ + seriesNumber: realIndex, + color: color + }); + var lineFill = this.candlestickOptions.wick.useFillColor ? color : undefined; + elSeries = this.renderSeries({ + realIndex: realIndex, + pathFill: pathFill, + lineFill: lineFill, + j: j, + i: i, + pathFrom: pathFrom, + pathTo: pathTo, + strokeWidth: strokeWidth, + elSeries: elSeries, + x: x, + y: y, + series: series, + barHeight: barHeight, + barWidth: barWidth, + elDataLabelsWrap: elDataLabelsWrap, + visibleSeries: this.visibleI, + type: 'candlestick' + }); + } // push all x val arrays into main xArr + + + w.globals.seriesXvalues[realIndex] = xArrj; + w.globals.seriesYvalues[realIndex] = yArrj; + ret.add(elSeries); + } + + return ret; + } + }, { + key: "drawCandleStickPaths", + value: function drawCandleStickPaths(_ref) { + var indexes = _ref.indexes, + x = _ref.x, + y = _ref.y, + xDivision = _ref.xDivision, + pathTo = _ref.pathTo, + pathFrom = _ref.pathFrom, + barWidth = _ref.barWidth, + zeroH = _ref.zeroH, + strokeWidth = _ref.strokeWidth; + var w = this.w; + var graphics = new Graphics(this.ctx); + var i = indexes.i; + var j = indexes.j; + var isPositive = true; + var colorPos = w.config.plotOptions.candlestick.colors.upward; + var colorNeg = w.config.plotOptions.candlestick.colors.downward; + var yRatio = this.yRatio[this.yaxisIndex]; + var realIndex = indexes.realIndex; + var ohlc = this.getOHLCValue(realIndex, j); + var l1 = zeroH; + var l2 = zeroH; + + if (ohlc.o > ohlc.c) { + isPositive = false; + } + + var y1 = Math.min(ohlc.o, ohlc.c); + var y2 = Math.max(ohlc.o, ohlc.c); + + if (w.globals.isXNumeric) { + x = (w.globals.seriesX[i][j] - w.globals.minX) / this.xRatio - barWidth / 2; + } + + var barXPosition = x + barWidth * this.visibleI; + pathTo = graphics.move(barXPosition, zeroH); + pathFrom = graphics.move(barXPosition, zeroH); + + if (w.globals.previousPaths.length > 0) { + pathFrom = this.getPathFrom(realIndex, j, true); + } + + if (typeof this.series[i][j] === 'undefined' || this.series[i][j] === null) { + y1 = zeroH; + } else { + y1 = zeroH - y1 / yRatio; + y2 = zeroH - y2 / yRatio; + l1 = zeroH - ohlc.h / yRatio; + l2 = zeroH - ohlc.l / yRatio; + } + + pathTo = graphics.move(barXPosition, y2) + graphics.line(barXPosition + barWidth / 2, y2) + graphics.line(barXPosition + barWidth / 2, l1) + graphics.line(barXPosition + barWidth / 2, y2) + graphics.line(barXPosition + barWidth, y2) + graphics.line(barXPosition + barWidth, y1) + graphics.line(barXPosition + barWidth / 2, y1) + graphics.line(barXPosition + barWidth / 2, l2) + graphics.line(barXPosition + barWidth / 2, y1) + graphics.line(barXPosition, y1) + graphics.line(barXPosition, y2 - strokeWidth / 2); + + if (!w.globals.isXNumeric) { + x = x + xDivision; + } + + return { + pathTo: pathTo, + pathFrom: pathFrom, + x: x, + y: y2, + barXPosition: barXPosition, + color: isPositive ? colorPos : colorNeg + }; + } + }, { + key: "getOHLCValue", + value: function getOHLCValue(i, j) { + var w = this.w; + return { + o: w.globals.seriesCandleO[i][j], + h: w.globals.seriesCandleH[i][j], + l: w.globals.seriesCandleL[i][j], + c: w.globals.seriesCandleC[i][j] + }; + } + }]); + + return CandleStick; +}(Bar); + +var Crosshairs = +/*#__PURE__*/ +function () { + function Crosshairs(ctx) { + _classCallCheck(this, Crosshairs); + + this.ctx = ctx; + this.w = ctx.w; + } + + _createClass(Crosshairs, [{ + key: "drawXCrosshairs", + value: function drawXCrosshairs() { + var w = this.w; + var graphics = new Graphics(this.ctx); + var filters = new Filters(this.ctx); + var crosshairGradient = w.config.xaxis.crosshairs.fill.gradient; + var crosshairShadow = w.config.xaxis.crosshairs.dropShadow; + var fillType = w.config.xaxis.crosshairs.fill.type; + var gradientFrom = crosshairGradient.colorFrom; + var gradientTo = crosshairGradient.colorTo; + var opacityFrom = crosshairGradient.opacityFrom; + var opacityTo = crosshairGradient.opacityTo; + var stops = crosshairGradient.stops; + var shadow = 'none'; + var dropShadow = crosshairShadow.enabled; + var shadowLeft = crosshairShadow.left; + var shadowTop = crosshairShadow.top; + var shadowBlur = crosshairShadow.blur; + var shadowColor = crosshairShadow.color; + var shadowOpacity = crosshairShadow.opacity; + var xcrosshairsFill = w.config.xaxis.crosshairs.fill.color; + + if (w.config.xaxis.crosshairs.show) { + if (fillType === 'gradient') { + xcrosshairsFill = graphics.drawGradient('vertical', gradientFrom, gradientTo, opacityFrom, opacityTo, null, stops, null); + } + + var xcrosshairs = graphics.drawRect(); + + if (w.config.xaxis.crosshairs.width === 1) { + // to prevent drawing 2 lines, convert rect to line + xcrosshairs = graphics.drawLine(); + } + + xcrosshairs.attr({ + class: 'apexcharts-xcrosshairs', + x: 0, + y: 0, + y2: w.globals.gridHeight, + width: Utils.isNumber(w.config.xaxis.crosshairs.width) ? w.config.xaxis.crosshairs.width : 0, + height: w.globals.gridHeight, + fill: xcrosshairsFill, + filter: shadow, + 'fill-opacity': w.config.xaxis.crosshairs.opacity, + stroke: w.config.xaxis.crosshairs.stroke.color, + 'stroke-width': w.config.xaxis.crosshairs.stroke.width, + 'stroke-dasharray': w.config.xaxis.crosshairs.stroke.dashArray + }); + + if (dropShadow) { + xcrosshairs = filters.dropShadow(xcrosshairs, { + left: shadowLeft, + top: shadowTop, + blur: shadowBlur, + color: shadowColor, + opacity: shadowOpacity + }); + } + + w.globals.dom.elGraphical.add(xcrosshairs); + } + } + }, { + key: "drawYCrosshairs", + value: function drawYCrosshairs() { + var w = this.w; + var graphics = new Graphics(this.ctx); + var crosshair = w.config.yaxis[0].crosshairs; + + if (w.config.yaxis[0].crosshairs.show) { + var ycrosshairs = graphics.drawLine(0, 0, w.globals.gridWidth, 0, crosshair.stroke.color, crosshair.stroke.dashArray, crosshair.stroke.width); + ycrosshairs.attr({ + class: 'apexcharts-ycrosshairs' + }); + w.globals.dom.elGraphical.add(ycrosshairs); + } // draw an invisible crosshair to help in positioning the yaxis tooltip + + + var ycrosshairsHidden = graphics.drawLine(0, 0, w.globals.gridWidth, 0, crosshair.stroke.color, 0, 0); + ycrosshairsHidden.attr({ + class: 'apexcharts-ycrosshairs-hidden' + }); + w.globals.dom.elGraphical.add(ycrosshairsHidden); + } + }]); + + return Crosshairs; +}(); + +/** + * DateTime Class to manipulate datetime values. + * + * @module DateTime + **/ + +var DateTime = +/*#__PURE__*/ +function () { + function DateTime(ctx) { + _classCallCheck(this, DateTime); + + this.ctx = ctx; + this.w = ctx.w; + this.months31 = [1, 3, 5, 7, 8, 10, 12]; + this.months30 = [2, 4, 6, 9, 11]; + this.daysCntOfYear = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334]; + } + + _createClass(DateTime, [{ + key: "isValidDate", + value: function isValidDate(date) { + return !isNaN(this.parseDate(date)); + } + }, { + key: "getUTCTimeStamp", + value: function getUTCTimeStamp(dateStr) { + if (!Date.parse(dateStr)) { + return dateStr; + } + + return new Date(new Date(dateStr).toISOString().substr(0, 25)).getTime(); + } + }, { + key: "parseDate", + value: function parseDate(dateStr) { + var parsed = Date.parse(dateStr); + + if (!isNaN(parsed)) { + return this.getUTCTimeStamp(dateStr); + } + + var output = Date.parse(dateStr.replace(/-/g, '/').replace(/[a-z]+/gi, ' ')); + output = this.getUTCTimeStamp(output); + return output; + } // https://stackoverflow.com/a/11252167/6495043 + + }, { + key: "treatAsUtc", + value: function treatAsUtc(dateStr) { + var result = new Date(dateStr); + result.setMinutes(result.getMinutes() - result.getTimezoneOffset()); + return result; + } // http://stackoverflow.com/questions/14638018/current-time-formatting-with-javascript#answer-14638191 + + }, { + key: "formatDate", + value: function formatDate(date, format) { + var utc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + var convertToUTC = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true; + var locale = this.w.globals.locale; + var MMMM = ['\x00'].concat(_toConsumableArray(locale.months)); + var MMM = ['\x01'].concat(_toConsumableArray(locale.shortMonths)); + var dddd = ['\x02'].concat(_toConsumableArray(locale.days)); + var ddd = ['\x03'].concat(_toConsumableArray(locale.shortDays)); + + function ii(i, len) { + var s = i + ''; + len = len || 2; + + while (s.length < len) { + s = '0' + s; + } + + return s; + } + + if (convertToUTC) { + date = this.treatAsUtc(date); + } + + var y = utc ? date.getUTCFullYear() : date.getFullYear(); + format = format.replace(/(^|[^\\])yyyy+/g, '$1' + y); + format = format.replace(/(^|[^\\])yy/g, '$1' + y.toString().substr(2, 2)); + format = format.replace(/(^|[^\\])y/g, '$1' + y); + var M = (utc ? date.getUTCMonth() : date.getMonth()) + 1; + format = format.replace(/(^|[^\\])MMMM+/g, '$1' + MMMM[0]); + format = format.replace(/(^|[^\\])MMM/g, '$1' + MMM[0]); + format = format.replace(/(^|[^\\])MM/g, '$1' + ii(M)); + format = format.replace(/(^|[^\\])M/g, '$1' + M); + var d = utc ? date.getUTCDate() : date.getDate(); + format = format.replace(/(^|[^\\])dddd+/g, '$1' + dddd[0]); + format = format.replace(/(^|[^\\])ddd/g, '$1' + ddd[0]); + format = format.replace(/(^|[^\\])dd/g, '$1' + ii(d)); + format = format.replace(/(^|[^\\])d/g, '$1' + d); + var H = utc ? date.getUTCHours() : date.getHours(); + format = format.replace(/(^|[^\\])HH+/g, '$1' + ii(H)); + format = format.replace(/(^|[^\\])H/g, '$1' + H); + var h = H > 12 ? H - 12 : H === 0 ? 12 : H; + format = format.replace(/(^|[^\\])hh+/g, '$1' + ii(h)); + format = format.replace(/(^|[^\\])h/g, '$1' + h); + var m = utc ? date.getUTCMinutes() : date.getMinutes(); + format = format.replace(/(^|[^\\])mm+/g, '$1' + ii(m)); + format = format.replace(/(^|[^\\])m/g, '$1' + m); + var s = utc ? date.getUTCSeconds() : date.getSeconds(); + format = format.replace(/(^|[^\\])ss+/g, '$1' + ii(s)); + format = format.replace(/(^|[^\\])s/g, '$1' + s); + var f = utc ? date.getUTCMilliseconds() : date.getMilliseconds(); + format = format.replace(/(^|[^\\])fff+/g, '$1' + ii(f, 3)); + f = Math.round(f / 10); + format = format.replace(/(^|[^\\])ff/g, '$1' + ii(f)); + f = Math.round(f / 10); + format = format.replace(/(^|[^\\])f/g, '$1' + f); + var T = H < 12 ? 'AM' : 'PM'; + format = format.replace(/(^|[^\\])TT+/g, '$1' + T); + format = format.replace(/(^|[^\\])T/g, '$1' + T.charAt(0)); + var t = T.toLowerCase(); + format = format.replace(/(^|[^\\])tt+/g, '$1' + t); + format = format.replace(/(^|[^\\])t/g, '$1' + t.charAt(0)); + var tz = -date.getTimezoneOffset(); + var K = utc || !tz ? 'Z' : tz > 0 ? '+' : '-'; + + if (!utc) { + tz = Math.abs(tz); + var tzHrs = Math.floor(tz / 60); + var tzMin = tz % 60; + K += ii(tzHrs) + ':' + ii(tzMin); + } + + format = format.replace(/(^|[^\\])K/g, '$1' + K); + var day = (utc ? date.getUTCDay() : date.getDay()) + 1; + format = format.replace(new RegExp(dddd[0], 'g'), dddd[day]); + format = format.replace(new RegExp(ddd[0], 'g'), ddd[day]); + format = format.replace(new RegExp(MMMM[0], 'g'), MMMM[M]); + format = format.replace(new RegExp(MMM[0], 'g'), MMM[M]); + format = format.replace(/\\(.)/g, '$1'); + return format; + } + }, { + key: "getTimeUnitsfromTimestamp", + value: function getTimeUnitsfromTimestamp(minX, maxX) { + var w = this.w; + + if (w.config.xaxis.min !== undefined) { + minX = w.config.xaxis.min; + } + + if (w.config.xaxis.max !== undefined) { + maxX = w.config.xaxis.max; + } + + var minYear = new Date(minX).getFullYear(); + var maxYear = new Date(maxX).getFullYear(); + var minMonth = new Date(minX).getMonth(); + var maxMonth = new Date(maxX).getMonth(); + var minDate = new Date(minX).getDate(); + var maxDate = new Date(maxX).getDate(); + var minHour = new Date(minX).getHours(); + var maxHour = new Date(maxX).getHours(); + var minMinute = new Date(minX).getMinutes(); + var maxMinute = new Date(maxX).getMinutes(); + return { + minMinute: minMinute, + maxMinute: maxMinute, + minHour: minHour, + maxHour: maxHour, + minDate: minDate, + maxDate: maxDate, + minMonth: minMonth, + maxMonth: maxMonth, + minYear: minYear, + maxYear: maxYear + }; + } + }, { + key: "isLeapYear", + value: function isLeapYear(year) { + return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0; + } + }, { + key: "calculcateLastDaysOfMonth", + value: function calculcateLastDaysOfMonth(month, year, subtract) { + var days = this.determineDaysOfMonths(month, year); // whatever days we get, subtract the number of days asked + + return days - subtract; + } + }, { + key: "determineDaysOfYear", + value: function determineDaysOfYear(year) { + var days = 365; + + if (this.isLeapYear(year)) { + days = 366; + } + + return days; + } + }, { + key: "determineRemainingDaysOfYear", + value: function determineRemainingDaysOfYear(year, month, date) { + var dayOfYear = this.daysCntOfYear[month] + date; + if (month > 1 && this.isLeapYear()) dayOfYear++; + return dayOfYear; + } + }, { + key: "determineDaysOfMonths", + value: function determineDaysOfMonths(month, year) { + var days = 30; + month = Utils.monthMod(month); + + switch (true) { + case this.months30.indexOf(month) > -1: + if (month === 2) { + if (this.isLeapYear(year)) { + days = 29; + } else { + days = 28; + } + } + + break; + + case this.months31.indexOf(month) > -1: + days = 31; + break; + + default: + days = 31; + break; + } + + return days; + } + }]); + + return DateTime; +}(); + +/** + * ApexCharts HeatMap Class. + * @module HeatMap + **/ + +var HeatMap = +/*#__PURE__*/ +function () { + function HeatMap(ctx, xyRatios) { + _classCallCheck(this, HeatMap); + + this.ctx = ctx; + this.w = ctx.w; + this.xRatio = xyRatios.xRatio; + this.yRatio = xyRatios.yRatio; + this.dynamicAnim = this.w.config.chart.animations.dynamicAnimation; + this.rectRadius = this.w.config.plotOptions.heatmap.radius; + this.strokeWidth = this.w.config.stroke.width; + } + + _createClass(HeatMap, [{ + key: "draw", + value: function draw(series) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var ret = graphics.group({ + class: 'apexcharts-heatmap' + }); + ret.attr('clip-path', "url(#gridRectMask".concat(w.globals.cuid, ")")); // width divided into equal parts + + var xDivision = w.globals.gridWidth / w.globals.dataPoints; + var yDivision = w.globals.gridHeight / w.globals.series.length; + var y1 = 0; + var rev = false; + var heatSeries = series.slice(); + + if (w.config.yaxis[0].reversed) { + rev = true; + heatSeries.reverse(); + } + + for (var i = rev ? 0 : heatSeries.length - 1; rev ? i < heatSeries.length : i >= 0; rev ? i++ : i--) { + // el to which series will be drawn + var elSeries = graphics.group({ + class: "apexcharts-series apexcharts-heatmap-series ".concat(Utils.escapeString(w.globals.seriesNames[i])), + rel: i + 1, + 'data:realIndex': i + }); + + if (w.config.chart.dropShadow.enabled) { + var shadow = w.config.chart.dropShadow; + var filters = new Filters(this.ctx); + filters.dropShadow(elSeries, shadow); + } + + var x1 = 0; + + for (var j = 0; j < heatSeries[i].length; j++) { + var colorShadePercent = 1; + var heatColorProps = this.determineHeatColor(i, j); + + if (w.globals.hasNegs) { + var shadeIntensity = w.config.plotOptions.heatmap.shadeIntensity; + + if (heatColorProps.percent < 0) { + colorShadePercent = 1 - (1 + heatColorProps.percent / 100) * shadeIntensity; + } else { + colorShadePercent = (1 - heatColorProps.percent / 100) * shadeIntensity; + } + } else { + colorShadePercent = 1 - heatColorProps.percent / 100; + } + + var color = heatColorProps.color; + + if (w.config.plotOptions.heatmap.enableShades) { + var utils = new Utils(); + color = Utils.hexToRgba(utils.shadeColor(colorShadePercent, heatColorProps.color), w.config.fill.opacity); + } + + var radius = this.rectRadius; + var rect = graphics.drawRect(x1, y1, xDivision, yDivision, radius); + rect.attr({ + cx: x1, + cy: y1 + }); + rect.node.classList.add('apexcharts-heatmap-rect'); + elSeries.add(rect); + rect.attr({ + fill: color, + i: i, + index: i, + j: j, + val: heatSeries[i][j], + 'stroke-width': this.strokeWidth, + stroke: w.globals.stroke.colors[0], + color: color + }); + rect.node.addEventListener('mouseenter', graphics.pathMouseEnter.bind(this, rect)); + rect.node.addEventListener('mouseleave', graphics.pathMouseLeave.bind(this, rect)); + rect.node.addEventListener('mousedown', graphics.pathMouseDown.bind(this, rect)); + + if (w.config.chart.animations.enabled && !w.globals.dataChanged) { + var speed = 1; + + if (!w.globals.resized) { + speed = w.config.chart.animations.speed; + } + + this.animateHeatMap(rect, x1, y1, xDivision, yDivision, speed); + } + + if (w.globals.dataChanged) { + var _speed = 1; + + if (this.dynamicAnim.enabled && w.globals.shouldAnimate) { + _speed = this.dynamicAnim.speed; + var colorFrom = w.globals.previousPaths[i] && w.globals.previousPaths[i][j] && w.globals.previousPaths[i][j].color; + if (!colorFrom) colorFrom = 'rgba(255, 255, 255, 0)'; + this.animateHeatColor(rect, Utils.isColorHex(colorFrom) ? colorFrom : Utils.rgb2hex(colorFrom), Utils.isColorHex(color) ? color : Utils.rgb2hex(color), _speed); + } + } + + var dataLabels = this.calculateHeatmapDataLabels({ + x: x1, + y: y1, + i: i, + j: j, + series: heatSeries, + rectHeight: yDivision, + rectWidth: xDivision + }); + + if (dataLabels !== null) { + elSeries.add(dataLabels); + } + + x1 = x1 + xDivision; + } + + y1 = y1 + yDivision; + ret.add(elSeries); + } // adjust yaxis labels for heatmap + + + var yAxisScale = w.globals.yAxisScale[0].result.slice(); + + if (w.config.yaxis[0].reversed) { + yAxisScale.unshift(''); + } else { + yAxisScale.push(''); + } + + w.globals.yAxisScale[0].result = yAxisScale; + var divisor = w.globals.gridHeight / w.globals.series.length; + w.config.yaxis[0].labels.offsetY = -(divisor / 2); + return ret; + } + }, { + key: "determineHeatColor", + value: function determineHeatColor(i, j) { + var w = this.w; + var val = w.globals.series[i][j]; + var heatmap = w.config.plotOptions.heatmap; + var seriesNumber = heatmap.colorScale.inverse ? j : i; + var color = w.globals.colors[seriesNumber]; + var min = Math.min.apply(Math, _toConsumableArray(w.globals.series[i])); + var max = Math.max.apply(Math, _toConsumableArray(w.globals.series[i])); + + if (!heatmap.distributed) { + min = w.globals.minY; + max = w.globals.maxY; + } + + if (typeof heatmap.colorScale.min !== 'undefined') { + min = heatmap.colorScale.min < w.globals.minY ? heatmap.colorScale.min : w.globals.minY; + max = heatmap.colorScale.max > w.globals.maxY ? heatmap.colorScale.max : w.globals.maxY; + } + + var total = Math.abs(max) + Math.abs(min); + var percent = 100 * val / (total === 0 ? total - 0.000001 : total); + + if (heatmap.colorScale.ranges.length > 0) { + var colorRange = heatmap.colorScale.ranges; + colorRange.map(function (range, index) { + if (val >= range.from && val <= range.to) { + color = range.color; + min = range.from; + max = range.to; + total = Math.abs(max) + Math.abs(min); + percent = 100 * val / total; + } + }); + } + + return { + color: color, + percent: percent + }; + } + }, { + key: "calculateHeatmapDataLabels", + value: function calculateHeatmapDataLabels(_ref) { + var x = _ref.x, + y = _ref.y, + i = _ref.i, + j = _ref.j, + series = _ref.series, + rectHeight = _ref.rectHeight, + rectWidth = _ref.rectWidth; + var w = this.w; // let graphics = new Graphics(this.ctx) + + var dataLabelsConfig = w.config.dataLabels; + var graphics = new Graphics(this.ctx); + var dataLabels = new DataLabels(this.ctx); + var formatter = dataLabelsConfig.formatter; + var elDataLabelsWrap = null; + + if (dataLabelsConfig.enabled) { + elDataLabelsWrap = graphics.group({ + class: 'apexcharts-data-labels' + }); + var offX = dataLabelsConfig.offsetX; + var offY = dataLabelsConfig.offsetY; + var dataLabelsX = x + rectWidth / 2 + offX; + var dataLabelsY = y + rectHeight / 2 + parseInt(dataLabelsConfig.style.fontSize) / 3 + offY; + var text = formatter(w.globals.series[i][j], { + seriesIndex: i, + dataPointIndex: j, + w: w + }); + dataLabels.plotDataLabelsText({ + x: dataLabelsX, + y: dataLabelsY, + text: text, + i: i, + j: j, + parent: elDataLabelsWrap, + dataLabelsConfig: dataLabelsConfig + }); + } + + return elDataLabelsWrap; + } + }, { + key: "animateHeatMap", + value: function animateHeatMap(el, x, y, width, height, speed) { + var _this = this; + + var animations = new Animations(this.ctx); + animations.animateRect(el, { + x: x + width / 2, + y: y + height / 2, + width: 0, + height: 0 + }, { + x: x, + y: y, + width: width, + height: height + }, speed, function () { + _this.w.globals.animationEnded = true; + }); + } + }, { + key: "animateHeatColor", + value: function animateHeatColor(el, colorFrom, colorTo, speed) { + el.attr({ + fill: colorFrom + }).animate(speed).attr({ + fill: colorTo + }); + } + }]); + + return HeatMap; +}(); + +/** + * ApexCharts Pie Class for drawing Pie / Donut Charts. + * @module Pie + **/ + +var Pie = +/*#__PURE__*/ +function () { + function Pie(ctx) { + _classCallCheck(this, Pie); + + this.ctx = ctx; + this.w = ctx.w; + this.chartType = this.w.config.chart.type; + this.initialAnim = this.w.config.chart.animations.enabled; + this.dynamicAnim = this.initialAnim && this.w.config.chart.animations.dynamicAnimation.enabled; + this.animBeginArr = [0]; + this.animDur = 0; + this.donutDataLabels = this.w.config.plotOptions.pie.donut.labels; + var w = this.w; + this.lineColorArr = w.globals.stroke.colors !== undefined ? w.globals.stroke.colors : w.globals.colors; + this.defaultSize = w.globals.svgHeight < w.globals.svgWidth ? w.globals.svgHeight - 35 : w.globals.gridWidth; + this.centerY = this.defaultSize / 2; + this.centerX = w.globals.gridWidth / 2; + this.fullAngle = 360; + this.size = 0; + this.donutSize = 0; + this.sliceLabels = []; + this.prevSectorAngleArr = []; // for dynamic animations + } + + _createClass(Pie, [{ + key: "draw", + value: function draw(series) { + var self = this; + var w = this.w; + var graphics = new Graphics(this.ctx); + var ret = graphics.group({ + class: 'apexcharts-pie' + }); + var total = 0; + + for (var k = 0; k < series.length; k++) { + // CALCULATE THE TOTAL + total += Utils.negToZero(series[k]); + } + + var sectorAngleArr = []; // el to which series will be drawn + + var elSeries = graphics.group(); // prevent division by zero error if there is no data + + if (total === 0) { + total = 0.00001; + } + + for (var i = 0; i < series.length; i++) { + // CALCULATE THE ANGLES + var angle = this.fullAngle * Utils.negToZero(series[i]) / total; + sectorAngleArr.push(angle); + } + + if (w.globals.dataChanged) { + var prevTotal = 0; + + for (var _k = 0; _k < w.globals.previousPaths.length; _k++) { + // CALCULATE THE PREV TOTAL + prevTotal += Utils.negToZero(w.globals.previousPaths[_k]); + } + + var previousAngle; + + for (var _i = 0; _i < w.globals.previousPaths.length; _i++) { + // CALCULATE THE PREVIOUS ANGLES + previousAngle = this.fullAngle * Utils.negToZero(w.globals.previousPaths[_i]) / prevTotal; + this.prevSectorAngleArr.push(previousAngle); + } + } + + this.size = this.defaultSize / 2.05 - w.config.stroke.width - w.config.chart.dropShadow.blur; + + if (w.config.plotOptions.pie.size !== undefined) { + this.size = w.config.plotOptions.pie.size; + } + + this.donutSize = this.size * parseInt(w.config.plotOptions.pie.donut.size) / 100; + var scaleSize = w.config.plotOptions.pie.customScale; + var halfW = w.globals.gridWidth / 2; + var halfH = w.globals.gridHeight / 2; + var translateX = halfW - w.globals.gridWidth / 2 * scaleSize; + var translateY = halfH - w.globals.gridHeight / 2 * scaleSize; + + if (this.donutDataLabels.show) { + var dataLabels = this.renderInnerDataLabels(this.donutDataLabels, { + hollowSize: this.donutSize, + centerX: this.centerX, + centerY: this.centerY, + opacity: this.donutDataLabels.show, + translateX: translateX, + translateY: translateY + }); + ret.add(dataLabels); + } + + if (w.config.chart.type === 'donut') { + // draw the inner circle and add some text to it + var circle = graphics.drawCircle(this.donutSize); + circle.attr({ + cx: this.centerX, + cy: this.centerY, + fill: w.config.plotOptions.pie.donut.background + }); + elSeries.add(circle); + } + + var elG = self.drawArcs(sectorAngleArr, series); // add slice dataLabels at the end + + this.sliceLabels.forEach(function (s) { + elG.add(s); + }); + elSeries.attr({ + transform: "translate(".concat(translateX, ", ").concat(translateY - 5, ") scale(").concat(scaleSize, ")") + }); + ret.attr({ + 'data:innerTranslateX': translateX, + 'data:innerTranslateY': translateY - 25 + }); + elSeries.add(elG); + ret.add(elSeries); + return ret; + } // core function for drawing pie arcs + + }, { + key: "drawArcs", + value: function drawArcs(sectorAngleArr, series) { + var w = this.w; + var filters = new Filters(this.ctx); + var graphics = new Graphics(this.ctx); + var fill = new Fill(this.ctx); + var g = graphics.group(); + var startAngle = 0; + var prevStartAngle = 0; + var endAngle = 0; + var prevEndAngle = 0; + this.strokeWidth = w.config.stroke.show ? w.config.stroke.width : 0; + + for (var i = 0; i < sectorAngleArr.length; i++) { + // if(sectorAngleArr[i]>0) { + var elPieArc = graphics.group({ + class: "apexcharts-series apexcharts-pie-series ".concat(Utils.escapeString(w.globals.seriesNames[i])), + id: 'apexcharts-series-' + i, + rel: i + 1 + }); + g.add(elPieArc); + startAngle = endAngle; + prevStartAngle = prevEndAngle; + endAngle = startAngle + sectorAngleArr[i]; + prevEndAngle = prevStartAngle + this.prevSectorAngleArr[i]; + var angle = endAngle - startAngle; + var pathFill = fill.fillPath({ + seriesNumber: i, + size: this.size + }); // additionaly, pass size for gradient drawing in the fillPath function + + var path = this.getChangedPath(prevStartAngle, prevEndAngle); + var elPath = graphics.drawPath({ + d: path, + stroke: this.lineColorArr instanceof Array ? this.lineColorArr[i] : this.lineColorArr, + strokeWidth: this.strokeWidth, + fill: pathFill, + fillOpacity: w.config.fill.opacity, + classes: 'apexcharts-pie-area' + }); + elPath.attr({ + id: 'apexcharts-pie-slice-' + i, + index: 0, + j: i + }); + + if (w.config.chart.dropShadow.enabled) { + var shadow = w.config.chart.dropShadow; + filters.dropShadow(elPath, shadow); + } + + this.addListeners(elPath, this.donutDataLabels); + Graphics.setAttrs(elPath.node, { + 'data:angle': angle, + 'data:startAngle': startAngle, + 'data:strokeWidth': this.strokeWidth, + 'data:value': series[i] + }); + var labelPosition = { + x: 0, + y: 0 + }; + + if (w.config.chart.type === 'pie') { + labelPosition = Utils.polarToCartesian(this.centerX, this.centerY, this.size / 1.25 + w.config.plotOptions.pie.dataLabels.offset, startAngle + (endAngle - startAngle) / 2); + } else if (w.config.chart.type === 'donut') { + labelPosition = Utils.polarToCartesian(this.centerX, this.centerY, (this.size + this.donutSize) / 2 + w.config.plotOptions.pie.dataLabels.offset, startAngle + (endAngle - startAngle) / 2); + } + + elPieArc.add(elPath); // Animation code starts + + var dur = 0; + + if (this.initialAnim && !w.globals.resized && !w.globals.dataChanged) { + dur = (endAngle - startAngle) / this.fullAngle * w.config.chart.animations.speed; + this.animDur = dur + this.animDur; + this.animBeginArr.push(this.animDur); + } else { + this.animBeginArr.push(0); + } + + if (this.dynamicAnim && w.globals.dataChanged) { + this.animatePaths(elPath, { + endAngle: endAngle, + startAngle: startAngle, + prevStartAngle: prevStartAngle, + prevEndAngle: prevEndAngle, + animateStartingPos: true, + i: i, + animBeginArr: this.animBeginArr, + dur: w.config.chart.animations.dynamicAnimation.speed + }); + } else { + this.animatePaths(elPath, { + endAngle: endAngle, + startAngle: startAngle, + i: i, + totalItems: sectorAngleArr.length - 1, + animBeginArr: this.animBeginArr, + dur: dur + }); + } // animation code ends + + + if (w.config.plotOptions.pie.expandOnClick) { + elPath.click(this.pieClicked.bind(this, i)); + } + + if (w.config.dataLabels.enabled) { + var xPos = labelPosition.x; + var yPos = labelPosition.y; + var text = 100 * (endAngle - startAngle) / 360 + '%'; + + if (angle !== 0) { + var formatter = w.config.dataLabels.formatter; + + if (formatter !== undefined) { + text = formatter(w.globals.seriesPercent[i][0], { + seriesIndex: i, + w: w + }); + } + + var foreColor = w.globals.dataLabels.style.colors[i]; + var elPieLabel = graphics.drawText({ + x: xPos, + y: yPos, + text: text, + textAnchor: 'middle', + fontSize: w.config.dataLabels.style.fontSize, + fontFamily: w.config.dataLabels.style.fontFamily, + foreColor: foreColor + }); + + if (w.config.dataLabels.dropShadow.enabled) { + var textShadow = w.config.dataLabels.dropShadow; + + var _filters = new Filters(this.ctx); + + _filters.dropShadow(elPieLabel, textShadow); + } + + elPieLabel.node.classList.add('apexcharts-pie-label'); + + if (w.config.chart.animations.animate && w.globals.resized === false) { + elPieLabel.node.classList.add('apexcharts-pie-label-delay'); + elPieLabel.node.style.animationDelay = w.config.chart.animations.speed / 940 + 's'; + } + + this.sliceLabels.push(elPieLabel); + } + } // } + + } + + return g; + } + }, { + key: "addListeners", + value: function addListeners(elPath, dataLabels) { + var graphics = new Graphics(this.ctx); // append filters on mouseenter and mouseleave + + elPath.node.addEventListener('mouseenter', graphics.pathMouseEnter.bind(this, elPath)); + elPath.node.addEventListener('mouseenter', this.printDataLabelsInner.bind(this, elPath.node, dataLabels)); + elPath.node.addEventListener('mouseleave', graphics.pathMouseLeave.bind(this, elPath)); + elPath.node.addEventListener('mouseleave', this.revertDataLabelsInner.bind(this, elPath.node, dataLabels)); + elPath.node.addEventListener('mousedown', graphics.pathMouseDown.bind(this, elPath)); + elPath.node.addEventListener('mousedown', this.printDataLabelsInner.bind(this, elPath.node, dataLabels)); + } // This function can be used for other circle charts too + + }, { + key: "animatePaths", + value: function animatePaths(el, opts) { + var w = this.w; + var me = this; + var angle = opts.endAngle - opts.startAngle; + var prevAngle = angle; + var fromStartAngle = opts.startAngle; + var toStartAngle = opts.startAngle; + + if (opts.prevStartAngle !== undefined && opts.prevEndAngle !== undefined) { + fromStartAngle = opts.prevEndAngle; + prevAngle = opts.prevEndAngle - opts.prevStartAngle; + } + + if (opts.i === w.config.series.length - 1) { + // some adjustments for the last overlapping paths + if (angle + toStartAngle > this.fullAngle) { + opts.endAngle = opts.endAngle - (angle + toStartAngle); + } else if (angle + toStartAngle < this.fullAngle) { + opts.endAngle = opts.endAngle + (this.fullAngle - (angle + toStartAngle)); + } + } + + if (angle === this.fullAngle) angle = this.fullAngle - 0.01; + me.animateArc(el, fromStartAngle, toStartAngle, angle, prevAngle, opts); + } + }, { + key: "animateArc", + value: function animateArc(el, fromStartAngle, toStartAngle, angle, prevAngle, opts) { + var me = this; + var w = this.w; + var size = me.size; + + if (!size) { + size = opts.size; + } + + var path; + + if (isNaN(fromStartAngle) || isNaN(prevAngle)) { + fromStartAngle = toStartAngle; + prevAngle = angle; + opts.dur = 0; + } + + var currAngle = angle; + var startAngle = toStartAngle; + var fromAngle = fromStartAngle - toStartAngle; + + if (w.globals.dataChanged && opts.shouldSetPrevPaths) { + // to avoid flickering, set prev path first and then we will animate from there + path = me.getPiePath({ + me: me, + startAngle: startAngle, + angle: prevAngle, + size: size + }); + el.attr({ + d: path + }); + } + + if (opts.dur !== 0) { + el.animate(opts.dur, w.globals.easing, opts.animBeginArr[opts.i]).afterAll(function () { + if (w.config.chart.type === 'pie' || w.config.chart.type === 'donut') { + this.animate(300).attr({ + 'stroke-width': w.config.stroke.width + }); + } + + w.globals.animationEnded = true; + }).during(function (pos) { + currAngle = fromAngle + (angle - fromAngle) * pos; + + if (opts.animateStartingPos) { + currAngle = prevAngle + (angle - prevAngle) * pos; + startAngle = fromStartAngle - prevAngle + (toStartAngle - (fromStartAngle - prevAngle)) * pos; + } + + path = me.getPiePath({ + me: me, + startAngle: startAngle, + angle: currAngle, + size: size + }); + el.node.setAttribute('data:pathOrig', path); + el.attr({ + d: path + }); + }); + } else { + path = me.getPiePath({ + me: me, + startAngle: startAngle, + angle: angle, + size: size + }); + + if (!opts.isTrack) { + w.globals.animationEnded = true; + } + + el.node.setAttribute('data:pathOrig', path); + el.attr({ + d: path + }); + } + } + }, { + key: "pieClicked", + value: function pieClicked(i) { + var w = this.w; + var me = this; + var path; + var size = me.size + 3; + var elPath = w.globals.dom.Paper.select('#apexcharts-pie-slice-' + i).members[0]; + var pathFrom = elPath.attr('d'); + + if (elPath.attr('data:pieClicked') === 'true') { + elPath.attr({ + 'data:pieClicked': 'false' + }); + var origPath = elPath.attr('data:pathOrig'); + elPath.attr({ + d: origPath + }); + return; + } else { + // reset all elems + var allEls = w.globals.dom.baseEl.querySelectorAll('.apexcharts-pie-area'); + Array.prototype.forEach.call(allEls, function (pieSlice) { + pieSlice.setAttribute('data:pieClicked', 'false'); + var origPath = pieSlice.getAttribute('data:pathOrig'); + pieSlice.setAttribute('d', origPath); + }); + elPath.attr('data:pieClicked', 'true'); + } + + var startAngle = parseInt(elPath.attr('data:startAngle')); + var angle = parseInt(elPath.attr('data:angle')); + path = me.getPiePath({ + me: me, + startAngle: startAngle, + angle: angle, + size: size + }); + if (angle === 360) return; + elPath.plot(path).animate(1).plot(pathFrom).animate(100).plot(path); + } + }, { + key: "getChangedPath", + value: function getChangedPath(prevStartAngle, prevEndAngle) { + var path = ''; + + if (this.dynamicAnim && this.w.globals.dataChanged) { + path = this.getPiePath({ + me: this, + startAngle: prevStartAngle, + angle: prevEndAngle - prevStartAngle, + size: this.size + }); + } + + return path; + } + }, { + key: "getPiePath", + value: function getPiePath(_ref) { + var me = _ref.me, + startAngle = _ref.startAngle, + angle = _ref.angle, + size = _ref.size; + var w = this.w; + var path; + var startDeg = startAngle; + var startRadians = Math.PI * (startDeg - 90) / 180; + var endDeg = angle + startAngle; + if (Math.ceil(endDeg) >= 360) endDeg = 359.99; + var endRadians = Math.PI * (endDeg - 90) / 180; + var x1 = me.centerX + size * Math.cos(startRadians); + var y1 = me.centerY + size * Math.sin(startRadians); + var x2 = me.centerX + size * Math.cos(endRadians); + var y2 = me.centerY + size * Math.sin(endRadians); + var startInner = Utils.polarToCartesian(me.centerX, me.centerY, me.donutSize, endDeg); + var endInner = Utils.polarToCartesian(me.centerX, me.centerY, me.donutSize, startDeg); + var largeArc = angle > 180 ? 1 : 0; + + if (w.config.chart.type === 'donut') { + path = ['M', x1, y1, 'A', size, size, 0, largeArc, 1, x2, y2, 'L', startInner.x, startInner.y, 'A', me.donutSize, me.donutSize, 0, largeArc, 0, endInner.x, endInner.y, 'L', x1, y1, 'z'].join(' '); + } else if (w.config.chart.type === 'pie') { + path = ['M', x1, y1, 'A', size, size, 0, largeArc, 1, x2, y2, 'L', me.centerX, me.centerY, 'L', x1, y1].join(' '); + } else { + path = ['M', x1, y1, 'A', size, size, 0, largeArc, 1, x2, y2].join(' '); + } + + return path; + } + }, { + key: "renderInnerDataLabels", + value: function renderInnerDataLabels(dataLabelsConfig, opts) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var g = graphics.group({ + class: 'apexcharts-datalabels-group', + transform: "translate(".concat(opts.translateX ? opts.translateX : 0, ", ").concat(opts.translateY ? opts.translateY : 0, ")") + }); + var showTotal = dataLabelsConfig.total.show; + g.node.style.opacity = opts.opacity; + var x = opts.centerX; + var y = opts.centerY; + var labelColor, valueColor; + + if (dataLabelsConfig.name.color === undefined) { + labelColor = w.globals.colors[0]; + } else { + labelColor = dataLabelsConfig.name.color; + } + + if (dataLabelsConfig.value.color === undefined) { + valueColor = w.config.chart.foreColor; + } else { + valueColor = dataLabelsConfig.value.color; + } + + var lbFormatter = dataLabelsConfig.value.formatter; + var val = ''; + var name = ''; + + if (showTotal) { + labelColor = dataLabelsConfig.total.color; + name = dataLabelsConfig.total.label; + val = dataLabelsConfig.total.formatter(w); + } else { + if (w.globals.series.length === 1) { + val = lbFormatter(w.globals.series[0], w); + name = w.globals.seriesNames[0]; + } + } + + if (dataLabelsConfig.name.show) { + var elLabel = graphics.drawText({ + x: x, + y: y + parseInt(dataLabelsConfig.name.offsetY), + text: name, + textAnchor: 'middle', + foreColor: labelColor, + fontSize: dataLabelsConfig.name.fontSize, + fontFamily: dataLabelsConfig.name.fontFamily + }); + elLabel.node.classList.add('apexcharts-datalabel-label'); + g.add(elLabel); + } + + if (dataLabelsConfig.value.show) { + var valOffset = dataLabelsConfig.name.show ? parseInt(dataLabelsConfig.value.offsetY) + 16 : dataLabelsConfig.value.offsetY; + var elValue = graphics.drawText({ + x: x, + y: y + valOffset, + text: val, + textAnchor: 'middle', + foreColor: valueColor, + fontSize: dataLabelsConfig.value.fontSize, + fontFamily: dataLabelsConfig.value.fontFamily + }); + elValue.node.classList.add('apexcharts-datalabel-value'); + g.add(elValue); + } // for a multi-series circle chart, we need to show total value instead of first series labels + + + return g; + } + /** + * + * @param {string} name - The name of the series + * @param {string} val - The value of that series + * @param {object} el - Optional el (indicates which series was hovered/clicked). If this param is not present, means we need to show total + */ + + }, { + key: "printInnerLabels", + value: function printInnerLabels(labelsConfig, name, val, el) { + var w = this.w; + var labelColor; + + if (el) { + if (labelsConfig.name.color === undefined) { + labelColor = w.globals.colors[parseInt(el.parentNode.getAttribute('rel')) - 1]; + } else { + labelColor = labelsConfig.name.color; + } + } else { + if (w.globals.series.length > 1 && labelsConfig.total.show) { + labelColor = labelsConfig.total.color; + } + } + + var elLabel = w.globals.dom.baseEl.querySelector('.apexcharts-datalabel-label'); + var elValue = w.globals.dom.baseEl.querySelector('.apexcharts-datalabel-value'); + var lbFormatter = labelsConfig.value.formatter; + val = lbFormatter(val, w); // we need to show Total Val - so get the formatter of it + + if (!el && typeof labelsConfig.total.formatter === 'function') { + val = labelsConfig.total.formatter(w); + } + + if (elLabel !== null) { + elLabel.textContent = name; + } + + if (elValue !== null) { + elValue.textContent = val; + } + + if (elLabel !== null) { + elLabel.style.fill = labelColor; + } + } + }, { + key: "printDataLabelsInner", + value: function printDataLabelsInner(el, dataLabelsConfig) { + var w = this.w; + var val = el.getAttribute('data:value'); + var name = w.globals.seriesNames[parseInt(el.parentNode.getAttribute('rel')) - 1]; + + if (w.globals.series.length > 1) { + this.printInnerLabels(dataLabelsConfig, name, val, el); + } + + var dataLabelsGroup = w.globals.dom.baseEl.querySelector('.apexcharts-datalabels-group'); + + if (dataLabelsGroup !== null) { + dataLabelsGroup.style.opacity = 1; + } + } + }, { + key: "revertDataLabelsInner", + value: function revertDataLabelsInner(el, dataLabelsConfig) { + var w = this.w; + var dataLabelsGroup = w.globals.dom.baseEl.querySelector('.apexcharts-datalabels-group'); + + if (dataLabelsConfig.total.show && w.globals.series.length > 1) { + var pie = new Pie(this.ctx); + pie.printInnerLabels(dataLabelsConfig, dataLabelsConfig.total.label, dataLabelsConfig.total.formatter(w)); + } else { + if (w.globals.selectedDataPoints.length) { + if (w.globals.selectedDataPoints[0].length > 0) { + var index = w.globals.selectedDataPoints[0]; + + var _el = w.globals.dom.baseEl.querySelector("#apexcharts-pie-slice-".concat(index)); + + this.printDataLabelsInner(_el, dataLabelsConfig); + } else { + dataLabelsGroup.style.opacity = 0; + } + } else if (w.globals.selectedDataPoints.length === 0 || dataLabelsGroup !== null && w.globals.series.length > 1) { + dataLabelsGroup.style.opacity = 0; + } + } + } + }]); + + return Pie; +}(); + +/** + * ApexCharts Radar Class for Spider/Radar Charts. + * @module Radar + **/ + +var Radar = +/*#__PURE__*/ +function () { + function Radar(ctx) { + _classCallCheck(this, Radar); + + this.ctx = ctx; + this.w = ctx.w; + this.chartType = this.w.config.chart.type; + this.initialAnim = this.w.config.chart.animations.enabled; + this.dynamicAnim = this.initialAnim && this.w.config.chart.animations.dynamicAnimation.enabled; + this.animDur = 0; + var w = this.w; + this.graphics = new Graphics(this.ctx); + this.lineColorArr = w.globals.stroke.colors !== undefined ? w.globals.stroke.colors : w.globals.colors; + this.defaultSize = w.globals.svgHeight < w.globals.svgWidth ? w.globals.svgHeight - 35 : w.globals.gridWidth; + this.maxValue = this.w.globals.maxY; + this.polygons = w.config.plotOptions.radar.polygons; + this.maxLabelWidth = 20; + var longestLabel = w.globals.labels.slice().sort(function (a, b) { + return b.length - a.length; + })[0]; + var labelWidth = this.graphics.getTextRects(longestLabel, w.config.dataLabels.style.fontSize); + this.size = this.defaultSize / 2.1 - w.config.stroke.width - w.config.chart.dropShadow.blur - labelWidth.width / 1.75; + + if (w.config.plotOptions.radar.size !== undefined) { + this.size = w.config.plotOptions.radar.size; + } + + this.dataRadiusOfPercent = []; + this.dataRadius = []; + this.angleArr = []; + this.yaxisLabelsTextsPos = []; + } + + _createClass(Radar, [{ + key: "draw", + value: function draw(series) { + var _this = this; + + var w = this.w; + var fill = new Fill(this.ctx); + var allSeries = []; + this.dataPointsLen = series[w.globals.maxValsInArrayIndex].length; + this.disAngle = Math.PI * 2 / this.dataPointsLen; + var halfW = w.globals.gridWidth / 2; + var halfH = w.globals.gridHeight / 2; + var translateX = halfW; + var translateY = halfH; + var ret = this.graphics.group({ + class: 'apexcharts-radar-series', + 'data:innerTranslateX': translateX, + 'data:innerTranslateY': translateY - 25, + transform: "translate(".concat(translateX || 0, ", ").concat(translateY || 0, ")") + }); + var dataPointsPos = []; + var elPointsMain = null; + this.yaxisLabels = this.graphics.group({ + class: 'apexcharts-yaxis' + }); + series.forEach(function (s, i) { + // el to which series will be drawn + var elSeries = _this.graphics.group().attr({ + class: "apexcharts-series ".concat(Utils.escapeString(w.globals.seriesNames[i])), + rel: i + 1, + 'data:realIndex': i + }); + + _this.dataRadiusOfPercent[i] = []; + _this.dataRadius[i] = []; + _this.angleArr[i] = []; + s.forEach(function (dv, j) { + _this.dataRadiusOfPercent[i][j] = dv / _this.maxValue; + _this.dataRadius[i][j] = _this.dataRadiusOfPercent[i][j] * _this.size; + _this.angleArr[i][j] = j * _this.disAngle; + }); + dataPointsPos = _this.getDataPointsPos(_this.dataRadius[i], _this.angleArr[i]); + + var paths = _this.createPaths(dataPointsPos, { + x: 0, + y: 0 + }); // points + + + elPointsMain = _this.graphics.group({ + class: 'apexcharts-series-markers-wrap hidden' + }); + w.globals.delayedElements.push({ + el: elPointsMain.node, + index: i + }); + var defaultRenderedPathOptions = { + i: i, + realIndex: i, + animationDelay: i, + initialSpeed: w.config.chart.animations.speed, + dataChangeSpeed: w.config.chart.animations.dynamicAnimation.speed, + className: "apexcharts-radar", + id: "apexcharts-radar", + shouldClipToGrid: false, + bindEventsOnPaths: false, + stroke: w.globals.stroke.colors[i], + strokeLineCap: w.config.stroke.lineCap + }; + var pathFrom = null; + + if (w.globals.previousPaths.length > 0) { + pathFrom = _this.getPathFrom(i); + } + + for (var p = 0; p < paths.linePathsTo.length; p++) { + var renderedLinePath = _this.graphics.renderPaths(_objectSpread({}, defaultRenderedPathOptions, { + pathFrom: pathFrom === null ? paths.linePathsFrom[p] : pathFrom, + pathTo: paths.linePathsTo[p], + strokeWidth: Array.isArray(w.config.stroke.width) ? w.config.stroke.width[i] : w.config.stroke.width, + fill: 'none' + })); + + elSeries.add(renderedLinePath); + var pathFill = fill.fillPath({ + seriesNumber: i + }); + + var renderedAreaPath = _this.graphics.renderPaths(_objectSpread({}, defaultRenderedPathOptions, { + pathFrom: pathFrom === null ? paths.areaPathsFrom[p] : pathFrom, + pathTo: paths.areaPathsTo[p], + strokeWidth: 0, + fill: pathFill + })); + + if (w.config.chart.dropShadow.enabled) { + var filters = new Filters(_this.ctx); + var shadow = w.config.chart.dropShadow; + filters.dropShadow(renderedAreaPath, _objectSpread({}, shadow, { + noUserSpaceOnUse: true + })); + } + + elSeries.add(renderedAreaPath); + } + + s.forEach(function (sj, j) { + var markers = new Markers(_this.ctx); + var opts = markers.getMarkerConfig('apexcharts-marker', i); + + var point = _this.graphics.drawMarker(dataPointsPos[j].x, dataPointsPos[j].y, opts); + + point.attr('rel', j); + point.attr('j', j); + point.attr('index', i); + point.node.setAttribute('default-marker-size', opts.pSize); + + var elPointsWrap = _this.graphics.group({ + class: 'apexcharts-series-markers' + }); + + if (elPointsWrap) { + elPointsWrap.add(point); + } + + elPointsMain.add(elPointsWrap); + elSeries.add(elPointsMain); + }); + allSeries.push(elSeries); + }); + this.drawPolygons({ + parent: ret + }); + + if (w.config.dataLabels.enabled) { + var dataLabels = this.drawLabels(); + ret.add(dataLabels); + } + + ret.add(this.yaxisLabels); + allSeries.forEach(function (elS) { + ret.add(elS); + }); + return ret; + } + }, { + key: "drawPolygons", + value: function drawPolygons(opts) { + var _this2 = this; + + var w = this.w; + var parent = opts.parent; + var yaxisTexts = w.globals.yAxisScale[0].result.reverse(); + var layers = yaxisTexts.length; + var radiusSizes = []; + var layerDis = this.size / (layers - 1); + + for (var i = 0; i < layers; i++) { + radiusSizes[i] = layerDis * i; + } + + radiusSizes.reverse(); + var polygonStrings = []; + var lines = []; + radiusSizes.forEach(function (radiusSize, r) { + var polygon = _this2.getPolygonPos(radiusSize); + + var string = ''; + polygon.forEach(function (p, i) { + if (r === 0) { + var line = _this2.graphics.drawLine(p.x, p.y, 0, 0, Array.isArray(_this2.polygons.connectorColors) ? _this2.polygons.connectorColors[i] : _this2.polygons.connectorColors); + + lines.push(line); + } + + if (i === 0) { + _this2.yaxisLabelsTextsPos.push({ + x: p.x, + y: p.y + }); + } + + string += p.x + ',' + p.y + ' '; + }); + polygonStrings.push(string); + }); + polygonStrings.forEach(function (p, i) { + var strokeColors = _this2.polygons.strokeColors; + + var polygon = _this2.graphics.drawPolygon(p, Array.isArray(strokeColors) ? strokeColors[i] : strokeColors, w.globals.radarPolygons.fill.colors[i]); + + parent.add(polygon); + }); + lines.forEach(function (l) { + parent.add(l); + }); + + if (w.config.yaxis[0].show) { + this.yaxisLabelsTextsPos.forEach(function (p, i) { + var yText = _this2.drawYAxisText(p.x, p.y, i, yaxisTexts[i]); + + _this2.yaxisLabels.add(yText); + }); + } + } + }, { + key: "drawYAxisText", + value: function drawYAxisText(x, y, i, text) { + var w = this.w; + var yaxisConfig = w.config.yaxis[0]; + var formatter = w.globals.yLabelFormatters[0]; + var yaxisLabel = this.graphics.drawText({ + x: x + yaxisConfig.labels.offsetX, + y: y + yaxisConfig.labels.offsetY, + text: formatter(text, i), + textAnchor: 'middle', + fontSize: yaxisConfig.labels.style.fontSize, + fontFamily: yaxisConfig.labels.style.fontFamily, + foreColor: yaxisConfig.labels.style.color + }); + return yaxisLabel; + } + }, { + key: "drawLabels", + value: function drawLabels() { + var _this3 = this; + + var w = this.w; + var limit = 10; + var textAnchor = 'middle'; + var dataLabelsConfig = w.config.dataLabels; + var elDataLabelsWrap = this.graphics.group({ + class: 'apexcharts-datalabels' + }); + var polygonPos = this.getPolygonPos(this.size); + var currPosX = 0; + var currPosY = 0; + w.globals.labels.forEach(function (label, i) { + var formatter = dataLabelsConfig.formatter; + var dataLabels = new DataLabels(_this3.ctx); + + if (polygonPos[i]) { + currPosX = polygonPos[i].x; + currPosY = polygonPos[i].y; + + if (Math.abs(polygonPos[i].x) >= limit) { + if (polygonPos[i].x > 0) { + textAnchor = 'start'; + currPosX += 10; + } else if (polygonPos[i].x < 0) { + textAnchor = 'end'; + currPosX -= 10; + } + } else { + textAnchor = 'middle'; + } + + if (Math.abs(polygonPos[i].y) >= _this3.size - limit) { + if (polygonPos[i].y < 0) { + currPosY -= 10; + } else if (polygonPos[i].y > 0) { + currPosY += 10; + } + } + + var text = formatter(label, { + seriesIndex: -1, + dataPointIndex: i, + w: w + }); + dataLabels.plotDataLabelsText({ + x: currPosX, + y: currPosY, + text: text, + textAnchor: textAnchor, + i: i, + j: i, + parent: elDataLabelsWrap, + dataLabelsConfig: dataLabelsConfig, + offsetCorrection: false + }); + } + }); + return elDataLabelsWrap; + } + }, { + key: "createPaths", + value: function createPaths(pos, origin) { + var _this4 = this; + + var linePathsTo = []; + var linePathsFrom = []; + var areaPathsTo = []; + var areaPathsFrom = []; + + if (pos.length) { + linePathsFrom = [this.graphics.move(origin.x, origin.y)]; + areaPathsFrom = [this.graphics.move(origin.x, origin.y)]; + var linePathTo = this.graphics.move(pos[0].x, pos[0].y); + var areaPathTo = this.graphics.move(pos[0].x, pos[0].y); + pos.forEach(function (p, i) { + linePathTo += _this4.graphics.line(p.x, p.y); + areaPathTo += _this4.graphics.line(p.x, p.y); + + if (i === pos.length - 1) { + linePathTo += 'Z'; + areaPathTo += 'Z'; + } + }); + linePathsTo.push(linePathTo); + areaPathsTo.push(areaPathTo); + } + + return { + linePathsFrom: linePathsFrom, + linePathsTo: linePathsTo, + areaPathsFrom: areaPathsFrom, + areaPathsTo: areaPathsTo + }; + } + }, { + key: "getPathFrom", + value: function getPathFrom(realIndex) { + var w = this.w; + var pathFrom = null; + + for (var pp = 0; pp < w.globals.previousPaths.length; pp++) { + var gpp = w.globals.previousPaths[pp]; + + if (gpp.paths.length > 0 && parseInt(gpp.realIndex) === parseInt(realIndex)) { + if (typeof w.globals.previousPaths[pp].paths[0] !== 'undefined') { + pathFrom = w.globals.previousPaths[pp].paths[0].d; + } + } + } + + return pathFrom; + } + }, { + key: "getDataPointsPos", + value: function getDataPointsPos(dataRadiusArr, angleArr) { + var dataPointsLen = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.dataPointsLen; + dataRadiusArr = dataRadiusArr || []; + angleArr = angleArr || []; + var dataPointsPosArray = []; + + for (var j = 0; j < dataPointsLen; j++) { + var curPointPos = {}; + curPointPos.x = dataRadiusArr[j] * Math.sin(angleArr[j]); + curPointPos.y = -dataRadiusArr[j] * Math.cos(angleArr[j]); + dataPointsPosArray.push(curPointPos); + } + + return dataPointsPosArray; + } + }, { + key: "getPolygonPos", + value: function getPolygonPos(size) { + var dotsArray = []; + var angle = Math.PI * 2 / this.dataPointsLen; + + for (var i = 0; i < this.dataPointsLen; i++) { + var curPos = {}; + curPos.x = size * Math.sin(i * angle); + curPos.y = -size * Math.cos(i * angle); + dotsArray.push(curPos); + } + + return dotsArray; + } + }]); + + return Radar; +}(); + +/** + * ApexCharts Radial Class for drawing Circle / Semi Circle Charts. + * @module Radial + **/ + +var Radial = +/*#__PURE__*/ +function (_Pie) { + _inherits(Radial, _Pie); + + function Radial(ctx) { + var _this; + + _classCallCheck(this, Radial); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(Radial).call(this, ctx)); + _this.ctx = ctx; + _this.w = ctx.w; + _this.animBeginArr = [0]; + _this.animDur = 0; + var w = _this.w; + _this.startAngle = w.config.plotOptions.radialBar.startAngle; + _this.endAngle = w.config.plotOptions.radialBar.endAngle; + _this.trackStartAngle = w.config.plotOptions.radialBar.track.startAngle; + _this.trackEndAngle = w.config.plotOptions.radialBar.track.endAngle; + _this.radialDataLabels = w.config.plotOptions.radialBar.dataLabels; + if (!_this.trackStartAngle) _this.trackStartAngle = _this.startAngle; + if (!_this.trackEndAngle) _this.trackEndAngle = _this.endAngle; + if (_this.endAngle === 360) _this.endAngle = 359.99; + _this.fullAngle = 360 - w.config.plotOptions.radialBar.endAngle - w.config.plotOptions.radialBar.startAngle; + _this.margin = parseInt(w.config.plotOptions.radialBar.track.margin); + return _this; + } + + _createClass(Radial, [{ + key: "draw", + value: function draw(series) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var ret = graphics.group({ + class: 'apexcharts-radialbar' + }); + var elSeries = graphics.group(); + var centerY = this.defaultSize / 2; + var centerX = w.globals.gridWidth / 2; + var size = this.defaultSize / 2.05 - w.config.stroke.width - w.config.chart.dropShadow.blur; + + if (w.config.plotOptions.radialBar.size !== undefined) { + size = w.config.plotOptions.radialBar.size; + } + + var colorArr = w.globals.fill.colors; + + if (w.config.plotOptions.radialBar.track.show) { + var elTracks = this.drawTracks({ + size: size, + centerX: centerX, + centerY: centerY, + colorArr: colorArr, + series: series + }); + elSeries.add(elTracks); + } + + var elG = this.drawArcs({ + size: size, + centerX: centerX, + centerY: centerY, + colorArr: colorArr, + series: series + }); + elSeries.add(elG.g); + + if (w.config.plotOptions.radialBar.hollow.position === 'front') { + elG.g.add(elG.elHollow); + + if (elG.dataLabels) { + elG.g.add(elG.dataLabels); + } + } + + ret.add(elSeries); + return ret; + } + }, { + key: "drawTracks", + value: function drawTracks(opts) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var g = graphics.group(); + var filters = new Filters(this.ctx); + var fill = new Fill(this.ctx); + var strokeWidth = this.getStrokeWidth(opts); + opts.size = opts.size - strokeWidth / 2; + + for (var i = 0; i < opts.series.length; i++) { + var elRadialBarTrack = graphics.group({ + class: 'apexcharts-radialbar-track apexcharts-track' + }); + g.add(elRadialBarTrack); + elRadialBarTrack.attr({ + id: 'apexcharts-track-' + i, + rel: i + 1 + }); + opts.size = opts.size - strokeWidth - this.margin; + var trackConfig = w.config.plotOptions.radialBar.track; + var pathFill = fill.fillPath({ + seriesNumber: 0, + size: opts.size, + fillColors: Array.isArray(trackConfig.background) ? trackConfig.background[i] : trackConfig.background, + solid: true + }); + var startAngle = this.trackStartAngle; + var endAngle = this.trackEndAngle; + if (Math.abs(endAngle) + Math.abs(startAngle) >= 360) endAngle = 360 - Math.abs(this.startAngle) - 0.1; + var elPath = graphics.drawPath({ + d: '', + stroke: pathFill, + strokeWidth: strokeWidth * parseInt(trackConfig.strokeWidth) / 100, + fill: 'none', + strokeOpacity: trackConfig.opacity, + classes: 'apexcharts-radialbar-area' + }); + + if (trackConfig.dropShadow.enabled) { + var shadow = trackConfig.dropShadow; + filters.dropShadow(elPath, shadow); + } + + elRadialBarTrack.add(elPath); + elPath.attr('id', 'apexcharts-radialbarTrack-' + i); + var pie = new Pie(this.ctx); + pie.animatePaths(elPath, { + centerX: opts.centerX, + centerY: opts.centerY, + endAngle: endAngle, + startAngle: startAngle, + size: opts.size, + i: i, + totalItems: 2, + animBeginArr: 0, + dur: 0, + isTrack: true, + easing: w.globals.easing + }); + } + + return g; + } + }, { + key: "drawArcs", + value: function drawArcs(opts) { + var w = this.w; // size, donutSize, centerX, centerY, colorArr, lineColorArr, sectorAngleArr, series + + var graphics = new Graphics(this.ctx); + var fill = new Fill(this.ctx); + var filters = new Filters(this.ctx); + var g = graphics.group(); + var strokeWidth = this.getStrokeWidth(opts); + opts.size = opts.size - strokeWidth / 2; + var hollowFillID = w.config.plotOptions.radialBar.hollow.background; + var hollowSize = opts.size - strokeWidth * opts.series.length - this.margin * opts.series.length - strokeWidth * parseInt(w.config.plotOptions.radialBar.track.strokeWidth) / 100 / 2; + var hollowRadius = hollowSize - w.config.plotOptions.radialBar.hollow.margin; + + if (w.config.plotOptions.radialBar.hollow.image !== undefined) { + hollowFillID = this.drawHollowImage(opts, g, hollowSize, hollowFillID); + } + + var elHollow = this.drawHollow({ + size: hollowRadius, + centerX: opts.centerX, + centerY: opts.centerY, + fill: hollowFillID + }); + + if (w.config.plotOptions.radialBar.hollow.dropShadow.enabled) { + var shadow = w.config.plotOptions.radialBar.hollow.dropShadow; + filters.dropShadow(elHollow, shadow); + } + + var shown = 1; + + if (!this.radialDataLabels.total.show && w.globals.series.length > 1) { + shown = 0; + } + + var pie = new Pie(this.ctx); + var dataLabels = null; + + if (this.radialDataLabels.show) { + dataLabels = pie.renderInnerDataLabels(this.radialDataLabels, { + hollowSize: hollowSize, + centerX: opts.centerX, + centerY: opts.centerY, + opacity: shown + }); + } + + if (w.config.plotOptions.radialBar.hollow.position === 'back') { + g.add(elHollow); + + if (dataLabels) { + g.add(dataLabels); + } + } + + var reverseLoop = false; + + if (w.config.plotOptions.radialBar.inverseOrder) { + reverseLoop = true; + } + + for (var i = reverseLoop ? opts.series.length - 1 : 0; reverseLoop ? i >= 0 : i < opts.series.length; reverseLoop ? i-- : i++) { + var elRadialBarArc = graphics.group({ + class: "apexcharts-series apexcharts-radial-series ".concat(Utils.escapeString(w.globals.seriesNames[i])) + }); + g.add(elRadialBarArc); + elRadialBarArc.attr({ + id: 'apexcharts-series-' + i, + rel: i + 1 + }); + this.ctx.series.addCollapsedClassToSeries(elRadialBarArc, i); + opts.size = opts.size - strokeWidth - this.margin; + var pathFill = fill.fillPath({ + seriesNumber: i, + size: opts.size + }); + var startAngle = this.startAngle; + var prevStartAngle = void 0; + var totalAngle = Math.abs(w.config.plotOptions.radialBar.endAngle - w.config.plotOptions.radialBar.startAngle); // if data exceeds 100, make it 100 + + var dataValue = Utils.negToZero(opts.series[i] > 100 ? 100 : opts.series[i]) / 100; + var endAngle = Math.round(totalAngle * dataValue) + this.startAngle; + var prevEndAngle = void 0; + + if (w.globals.dataChanged) { + prevStartAngle = this.startAngle; + prevEndAngle = Math.round(totalAngle * Utils.negToZero(w.globals.previousPaths[i]) / 100) + prevStartAngle; + } + + var currFullAngle = Math.abs(endAngle) + Math.abs(startAngle); + + if (currFullAngle >= 360) { + endAngle = endAngle - 0.01; + } + + var prevFullAngle = Math.abs(prevEndAngle) + Math.abs(prevStartAngle); + + if (prevFullAngle >= 360) { + prevEndAngle = prevEndAngle - 0.01; + } + + var angle = endAngle - startAngle; + var dashArray = Array.isArray(w.config.stroke.dashArray) ? w.config.stroke.dashArray[i] : w.config.stroke.dashArray; + var elPath = graphics.drawPath({ + d: '', + stroke: pathFill, + strokeWidth: strokeWidth, + fill: 'none', + fillOpacity: w.config.fill.opacity, + classes: 'apexcharts-radialbar-area', + strokeDashArray: dashArray + }); + Graphics.setAttrs(elPath.node, { + 'data:angle': angle, + 'data:value': opts.series[i] + }); + + if (w.config.chart.dropShadow.enabled) { + var _shadow = w.config.chart.dropShadow; + filters.dropShadow(elPath, _shadow); + } + + this.addListeners(elPath, this.radialDataLabels); + + var _pie = new Pie(this.ctx); + + elRadialBarArc.add(elPath); + elPath.attr({ + id: 'apexcharts-radialArc-' + i, + index: 0, + j: i + }); + var dur = 0; + + if (_pie.initialAnim && !w.globals.resized && !w.globals.dataChanged) { + dur = (endAngle - startAngle) / 360 * w.config.chart.animations.speed; + this.animDur = dur / (opts.series.length * 1.2) + this.animDur; + this.animBeginArr.push(this.animDur); + } + + if (w.globals.dataChanged) { + dur = (endAngle - startAngle) / 360 * w.config.chart.animations.dynamicAnimation.speed; + this.animDur = dur / (opts.series.length * 1.2) + this.animDur; + this.animBeginArr.push(this.animDur); + } + + _pie.animatePaths(elPath, { + centerX: opts.centerX, + centerY: opts.centerY, + endAngle: endAngle, + startAngle: startAngle, + prevEndAngle: prevEndAngle, + prevStartAngle: prevStartAngle, + size: opts.size, + i: i, + totalItems: 2, + animBeginArr: this.animBeginArr, + dur: dur, + shouldSetPrevPaths: true, + easing: w.globals.easing + }); + } + + return { + g: g, + elHollow: elHollow, + dataLabels: dataLabels + }; + } + }, { + key: "drawHollow", + value: function drawHollow(opts) { + var graphics = new Graphics(this.ctx); + var circle = graphics.drawCircle(opts.size * 2); + circle.attr({ + class: 'apexcharts-radialbar-hollow', + cx: opts.centerX, + cy: opts.centerY, + r: opts.size, + fill: opts.fill + }); + return circle; + } + }, { + key: "drawHollowImage", + value: function drawHollowImage(opts, g, hollowSize, hollowFillID) { + var w = this.w; + var fill = new Fill(this.ctx); + var randID = (Math.random() + 1).toString(36).substring(4); + var hollowFillImg = w.config.plotOptions.radialBar.hollow.image; + + if (w.config.plotOptions.radialBar.hollow.imageClipped) { + fill.clippedImgArea({ + width: hollowSize, + height: hollowSize, + image: hollowFillImg, + patternID: "pattern".concat(w.globals.cuid).concat(randID) + }); + hollowFillID = "url(#pattern".concat(w.globals.cuid).concat(randID, ")"); + } else { + var imgWidth = w.config.plotOptions.radialBar.hollow.imageWidth; + var imgHeight = w.config.plotOptions.radialBar.hollow.imageHeight; + + if (imgWidth === undefined && imgHeight === undefined) { + var image = w.globals.dom.Paper.image(hollowFillImg).loaded(function (loader) { + this.move(opts.centerX - loader.width / 2 + w.config.plotOptions.radialBar.hollow.imageOffsetX, opts.centerY - loader.height / 2 + w.config.plotOptions.radialBar.hollow.imageOffsetY); + }); + g.add(image); + } else { + var _image = w.globals.dom.Paper.image(hollowFillImg).loaded(function (loader) { + this.move(opts.centerX - imgWidth / 2 + w.config.plotOptions.radialBar.hollow.imageOffsetX, opts.centerY - imgHeight / 2 + w.config.plotOptions.radialBar.hollow.imageOffsetY); + this.size(imgWidth, imgHeight); + }); + + g.add(_image); + } + } + + return hollowFillID; + } + }, { + key: "getStrokeWidth", + value: function getStrokeWidth(opts) { + var w = this.w; + return opts.size * (100 - parseInt(w.config.plotOptions.radialBar.hollow.size)) / 100 / (opts.series.length + 1) - this.margin; + } + }]); + + return Radial; +}(Pie); + +/** + * ApexCharts Line Class responsible for drawing Line / Area Charts. + * This class is also responsible for generating values for Bubble/Scatter charts, so need to rename it to Axis Charts to avoid confusions + * @module Line + **/ + +var Line = +/*#__PURE__*/ +function () { + function Line(ctx, xyRatios, isPointsChart) { + _classCallCheck(this, Line); + + this.ctx = ctx; + this.w = ctx.w; + this.xyRatios = xyRatios; + this.pointsChart = !(this.w.config.chart.type !== 'bubble' && this.w.config.chart.type !== 'scatter') || isPointsChart; + this.scatter = new Scatter(this.ctx); + this.noNegatives = this.w.globals.minX === Number.MAX_VALUE; + this.yaxisIndex = 0; + } + + _createClass(Line, [{ + key: "draw", + value: function draw(series, ptype, seriesIndex) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var fill = new Fill(this.ctx); + var type = w.globals.comboCharts ? ptype : w.config.chart.type; + var ret = graphics.group({ + class: "apexcharts-".concat(type, "-series apexcharts-plot-series") + }); + var coreUtils = new CoreUtils(this.ctx, w); + series = coreUtils.getLogSeries(series); + var yRatio = this.xyRatios.yRatio; + yRatio = coreUtils.getLogYRatios(yRatio); + var zRatio = this.xyRatios.zRatio; + var xRatio = this.xyRatios.xRatio; + var baseLineY = this.xyRatios.baseLineY; // push all series in an array, so we can draw in reverse order (for stacked charts) + + var allSeries = []; + var prevSeriesY = []; + var categoryAxisCorrection = 0; + + for (var i = 0; i < series.length; i++) { + // width divided into equal parts + var xDivision = w.globals.gridWidth / w.globals.dataPoints; + var realIndex = w.globals.comboCharts ? seriesIndex[i] : i; + + if (yRatio.length > 1) { + this.yaxisIndex = realIndex; + } + + this.isReversed = w.config.yaxis[this.yaxisIndex] && w.config.yaxis[this.yaxisIndex].reversed; + var yArrj = []; // hold y values of current iterating series + + var xArrj = []; // hold x values of current iterating series + // zeroY is the 0 value in y series which can be used in negative charts + + var zeroY = w.globals.gridHeight - baseLineY[this.yaxisIndex] - (this.isReversed ? w.globals.gridHeight : 0) + (this.isReversed ? baseLineY[this.yaxisIndex] * 2 : 0); + var areaBottomY = zeroY; + + if (zeroY > w.globals.gridHeight) { + areaBottomY = w.globals.gridHeight; + } + + categoryAxisCorrection = xDivision / 2; + var x = w.globals.padHorizontal + categoryAxisCorrection; + var y = 1; + + if (w.globals.isXNumeric) { + x = (w.globals.seriesX[realIndex][0] - w.globals.minX) / xRatio; + } + + xArrj.push(x); + var linePath = void 0, + areaPath = void 0, + pathFromLine = void 0, + pathFromArea = void 0; + var linePaths = []; + var areaPaths = []; // el to which series will be drawn + + var elSeries = graphics.group({ + class: "apexcharts-series ".concat(Utils.escapeString(w.globals.seriesNames[realIndex])) + }); // points + + var elPointsMain = graphics.group({ + class: 'apexcharts-series-markers-wrap' + }); // eldatalabels + + var elDataLabelsWrap = graphics.group({ + class: 'apexcharts-datalabels' + }); + this.ctx.series.addCollapsedClassToSeries(elSeries, realIndex); + var longestSeries = series[i].length === w.globals.dataPoints; + elSeries.attr({ + 'data:longestSeries': longestSeries, + rel: i + 1, + 'data:realIndex': realIndex + }); + this.appendPathFrom = true; + var pX = x; + var pY = void 0; + var prevX = pX; + var prevY = zeroY; // w.globals.svgHeight; + + var lineYPosition = 0; // the first value in the current series is not null or undefined + + var firstPrevY = this.determineFirstPrevY({ + i: i, + series: series, + yRatio: yRatio[this.yaxisIndex], + zeroY: zeroY, + prevY: prevY, + prevSeriesY: prevSeriesY, + lineYPosition: lineYPosition + }); + prevY = firstPrevY.prevY; + yArrj.push(prevY); + pY = prevY; + + if (series[i][0] === null) { + // when the first value itself is null, we need to move the pointer to a location where a null value is not found + for (var s = 0; s < series[i].length; s++) { + if (series[i][s] !== null) { + prevX = xDivision * s; + prevY = zeroY - series[i][s] / yRatio[this.yaxisIndex]; + linePath = graphics.move(prevX, prevY); + areaPath = graphics.move(prevX, areaBottomY); + break; + } + } + } else { + linePath = graphics.move(prevX, prevY); + areaPath = graphics.move(prevX, areaBottomY) + graphics.line(prevX, prevY); + } + + pathFromLine = graphics.move(-1, zeroY) + graphics.line(-1, zeroY); + pathFromArea = graphics.move(-1, zeroY) + graphics.line(-1, zeroY); + + if (w.globals.previousPaths.length > 0) { + var pathFrom = this.checkPreviousPaths({ + pathFromLine: pathFromLine, + pathFromArea: pathFromArea, + realIndex: realIndex + }); + pathFromLine = pathFrom.pathFromLine; + pathFromArea = pathFrom.pathFromArea; + } + + var iterations = w.globals.dataPoints > 1 ? w.globals.dataPoints - 1 : w.globals.dataPoints; + + for (var j = 0; j < iterations; j++) { + if (w.globals.isXNumeric) { + var sX = w.globals.seriesX[realIndex][j + 1]; + + if (typeof w.globals.seriesX[realIndex][j + 1] === 'undefined') { + /* fix #374 */ + sX = w.globals.seriesX[realIndex][iterations - 1]; + } + + x = (sX - w.globals.minX) / xRatio; + } else { + x = x + xDivision; + } + + var minY = Utils.isNumber(w.globals.minYArr[realIndex]) ? w.globals.minYArr[realIndex] : w.globals.minY; + + if (w.config.chart.stacked) { + if (i > 0 && w.globals.collapsedSeries.length < w.config.series.length - 1) { + lineYPosition = prevSeriesY[i - 1][j + 1]; + } else { + // the first series will not have prevY values + lineYPosition = zeroY; + } + + if (typeof series[i][j + 1] === 'undefined' || series[i][j + 1] === null) { + y = lineYPosition - minY / yRatio[this.yaxisIndex] + (this.isReversed ? minY / yRatio[this.yaxisIndex] : 0) * 2; + } else { + y = lineYPosition - series[i][j + 1] / yRatio[this.yaxisIndex] + (this.isReversed ? series[i][j + 1] / yRatio[this.yaxisIndex] : 0) * 2; + } + } else { + if (typeof series[i][j + 1] === 'undefined' || series[i][j + 1] === null) { + y = zeroY - minY / yRatio[this.yaxisIndex] + (this.isReversed ? minY / yRatio[this.yaxisIndex] : 0) * 2; + } else { + y = zeroY - series[i][j + 1] / yRatio[this.yaxisIndex] + (this.isReversed ? series[i][j + 1] / yRatio[this.yaxisIndex] : 0) * 2; + } + } // push current X + + + xArrj.push(x); // push current Y that will be used as next series's bottom position + + yArrj.push(y); + var calculatedPaths = this.createPaths({ + series: series, + i: i, + j: j, + x: x, + y: y, + xDivision: xDivision, + pX: pX, + pY: pY, + areaBottomY: areaBottomY, + linePath: linePath, + areaPath: areaPath, + linePaths: linePaths, + areaPaths: areaPaths + }); + areaPaths = calculatedPaths.areaPaths; + linePaths = calculatedPaths.linePaths; + pX = calculatedPaths.pX; + pY = calculatedPaths.pY; + areaPath = calculatedPaths.areaPath; + linePath = calculatedPaths.linePath; + + if (this.appendPathFrom) { + pathFromLine = pathFromLine + graphics.line(x, zeroY); + pathFromArea = pathFromArea + graphics.line(x, zeroY); + } + + var pointsPos = this.calculatePoints({ + series: series, + x: x, + y: y, + realIndex: realIndex, + i: i, + j: j, + prevY: prevY, + categoryAxisCorrection: categoryAxisCorrection, + xRatio: xRatio + }); + + if (!this.pointsChart) { + var markers = new Markers(this.ctx); + + if (w.globals.dataPoints > 1) { + elPointsMain.node.classList.add('hidden'); + } + + var elPointsWrap = markers.plotChartMarkers(pointsPos, realIndex, j + 1); + + if (elPointsWrap !== null) { + elPointsMain.add(elPointsWrap); + } + } else { + // scatter / bubble chart points creation + this.scatter.draw(elSeries, j, { + realIndex: realIndex, + pointsPos: pointsPos, + zRatio: zRatio, + elParent: elPointsMain + }); + } + + var dataLabels = new DataLabels(this.ctx); + var drawnLabels = dataLabels.drawDataLabel(pointsPos, realIndex, j + 1); + + if (drawnLabels !== null) { + elDataLabelsWrap.add(drawnLabels); + } + } // push all current y values array to main PrevY Array + + + prevSeriesY.push(yArrj); // push all x val arrays into main xArr + + w.globals.seriesXvalues[realIndex] = xArrj; + w.globals.seriesYvalues[realIndex] = yArrj; // these elements will be shown after area path animation completes + + if (!this.pointsChart) { + w.globals.delayedElements.push({ + el: elPointsMain.node, + index: realIndex + }); + } + + var defaultRenderedPathOptions = { + i: i, + realIndex: realIndex, + animationDelay: i, + initialSpeed: w.config.chart.animations.speed, + dataChangeSpeed: w.config.chart.animations.dynamicAnimation.speed, + className: "apexcharts-".concat(type), + id: "apexcharts-".concat(type) + }; + + if (w.config.stroke.show && !this.pointsChart) { + var lineFill = null; + + if (type === 'line') { + // fillable lines only for lineChart + lineFill = fill.fillPath({ + seriesNumber: realIndex, + i: i + }); + } else { + lineFill = w.globals.stroke.colors[realIndex]; + } + + for (var p = 0; p < linePaths.length; p++) { + var renderedPath = graphics.renderPaths(_objectSpread({}, defaultRenderedPathOptions, { + pathFrom: pathFromLine, + pathTo: linePaths[p], + stroke: lineFill, + strokeWidth: Array.isArray(w.config.stroke.width) ? w.config.stroke.width[realIndex] : w.config.stroke.width, + strokeLineCap: w.config.stroke.lineCap, + fill: 'none' + })); + elSeries.add(renderedPath); + } + } // we have drawn the lines, now if it is area chart, we need to fill paths + + + if (type === 'area') { + var pathFill = fill.fillPath({ + seriesNumber: realIndex + }); + + for (var _p = 0; _p < areaPaths.length; _p++) { + var _renderedPath = graphics.renderPaths(_objectSpread({}, defaultRenderedPathOptions, { + pathFrom: pathFromArea, + pathTo: areaPaths[_p], + stroke: 'none', + strokeWidth: 0, + strokeLineCap: null, + fill: pathFill + })); + + elSeries.add(_renderedPath); + } + } + + elSeries.add(elPointsMain); + elSeries.add(elDataLabelsWrap); + allSeries.push(elSeries); + } + + for (var _s = allSeries.length; _s > 0; _s--) { + ret.add(allSeries[_s - 1]); + } + + return ret; + } + }, { + key: "createPaths", + value: function createPaths(_ref) { + var series = _ref.series, + i = _ref.i, + j = _ref.j, + x = _ref.x, + y = _ref.y, + pX = _ref.pX, + pY = _ref.pY, + xDivision = _ref.xDivision, + areaBottomY = _ref.areaBottomY, + linePath = _ref.linePath, + areaPath = _ref.areaPath, + linePaths = _ref.linePaths, + areaPaths = _ref.areaPaths; + var w = this.w; + var graphics = new Graphics(this.ctx); + var curve = Array.isArray(w.config.stroke.curve) ? w.config.stroke.curve[i] : w.config.stroke.curve; // logic of smooth curve derived from chartist + // CREDITS: https://gionkunz.github.io/chartist-js/ + + if (curve === 'smooth') { + var length = (x - pX) * 0.35; + + if (w.globals.hasNullValues) { + if (series[i][j] !== null) { + if (series[i][j + 1] !== null) { + linePath = graphics.move(pX, pY) + graphics.curve(pX + length, pY, x - length, y, x + 1, y); + areaPath = graphics.move(pX + 1, pY) + graphics.curve(pX + length, pY, x - length, y, x + 1, y) + graphics.line(x, areaBottomY) + graphics.line(pX, areaBottomY) + 'z'; + } else { + linePath = graphics.move(pX, pY); + areaPath = graphics.move(pX, pY) + 'z'; + } + } + + linePaths.push(linePath); + areaPaths.push(areaPath); + } else { + linePath = linePath + graphics.curve(pX + length, pY, x - length, y, x, y); + areaPath = areaPath + graphics.curve(pX + length, pY, x - length, y, x, y); + } + + pX = x; + pY = y; + + if (j === series[i].length - 2) { + // last loop, close path + areaPath = areaPath + graphics.curve(pX, pY, x, y, x, areaBottomY) + graphics.move(x, y) + 'z'; + + if (!w.globals.hasNullValues) { + linePaths.push(linePath); + areaPaths.push(areaPath); + } + } + } else { + if (series[i][j + 1] === null) { + linePath = linePath + graphics.move(x, y); + areaPath = areaPath + graphics.line(x - xDivision, areaBottomY) + graphics.move(x, y); + } + + if (series[i][j] === null) { + linePath = linePath + graphics.move(x, y); + areaPath = areaPath + graphics.move(x, areaBottomY); + } + + if (curve === 'stepline') { + linePath = linePath + graphics.line(x, null, 'H') + graphics.line(null, y, 'V'); + areaPath = areaPath + graphics.line(x, null, 'H') + graphics.line(null, y, 'V'); + } else if (curve === 'straight') { + linePath = linePath + graphics.line(x, y); + areaPath = areaPath + graphics.line(x, y); + } + + if (j === series[i].length - 2) { + // last loop, close path + areaPath = areaPath + graphics.line(x, areaBottomY) + graphics.move(x, y) + 'z'; + linePaths.push(linePath); + areaPaths.push(areaPath); + } + } + + return { + linePaths: linePaths, + areaPaths: areaPaths, + pX: pX, + pY: pY, + linePath: linePath, + areaPath: areaPath + }; + } + }, { + key: "calculatePoints", + value: function calculatePoints(_ref2) { + var series = _ref2.series, + realIndex = _ref2.realIndex, + x = _ref2.x, + y = _ref2.y, + i = _ref2.i, + j = _ref2.j, + prevY = _ref2.prevY, + categoryAxisCorrection = _ref2.categoryAxisCorrection, + xRatio = _ref2.xRatio; + var w = this.w; + var ptX = []; + var ptY = []; + + if (j === 0) { + var xPT1st = categoryAxisCorrection + w.config.markers.offsetX; // the first point for line series + // we need to check whether it's not a time series, because a time series may + // start from the middle of the x axis + + if (w.globals.isXNumeric) { + xPT1st = (w.globals.seriesX[realIndex][0] - w.globals.minX) / xRatio + w.config.markers.offsetX; + } // push 2 points for the first data values + + + ptX.push(xPT1st); + ptY.push(Utils.isNumber(series[i][0]) ? prevY + w.config.markers.offsetY : null); + ptX.push(x + w.config.markers.offsetX); + ptY.push(Utils.isNumber(series[i][j + 1]) ? y + w.config.markers.offsetY : null); + } else { + ptX.push(x + w.config.markers.offsetX); + ptY.push(Utils.isNumber(series[i][j + 1]) ? y + w.config.markers.offsetY : null); + } + + var pointsPos = { + x: ptX, + y: ptY + }; + return pointsPos; + } + }, { + key: "checkPreviousPaths", + value: function checkPreviousPaths(_ref3) { + var pathFromLine = _ref3.pathFromLine, + pathFromArea = _ref3.pathFromArea, + realIndex = _ref3.realIndex; + var w = this.w; + + for (var pp = 0; pp < w.globals.previousPaths.length; pp++) { + var gpp = w.globals.previousPaths[pp]; + + if ((gpp.type === 'line' || gpp.type === 'area') && gpp.paths.length > 0 && parseInt(gpp.realIndex) === parseInt(realIndex)) { + if (gpp.type === 'line') { + this.appendPathFrom = false; + pathFromLine = w.globals.previousPaths[pp].paths[0].d; + } else if (gpp.type === 'area') { + this.appendPathFrom = false; + + if (w.config.stroke.show) { + pathFromLine = w.globals.previousPaths[pp].paths[0].d; + pathFromArea = w.globals.previousPaths[pp].paths[1].d; + } else { + pathFromArea = w.globals.previousPaths[pp].paths[0].d; + } + } + } + } + + return { + pathFromLine: pathFromLine, + pathFromArea: pathFromArea + }; + } + }, { + key: "determineFirstPrevY", + value: function determineFirstPrevY(_ref4) { + var i = _ref4.i, + series = _ref4.series, + yRatio = _ref4.yRatio, + zeroY = _ref4.zeroY, + prevY = _ref4.prevY, + prevSeriesY = _ref4.prevSeriesY, + lineYPosition = _ref4.lineYPosition; + var w = this.w; + + if (typeof series[i][0] !== 'undefined') { + if (w.config.chart.stacked) { + if (i > 0) { + // 1st y value of previous series + lineYPosition = prevSeriesY[i - 1][0]; + } else { + // the first series will not have prevY values + lineYPosition = zeroY; + } + + prevY = lineYPosition - series[i][0] / yRatio + (this.isReversed ? series[i][0] / yRatio : 0) * 2; + } else { + prevY = zeroY - series[i][0] / yRatio + (this.isReversed ? series[i][0] / yRatio : 0) * 2; + } + } else { + // the first value in the current series is null + if (w.config.chart.stacked && i > 0 && typeof series[i][0] === 'undefined') { + // check for undefined value (undefined value will occur when we clear the series while user clicks on legend to hide serieses) + for (var s = i - 1; s >= 0; s--) { + // for loop to get to 1st previous value until we get it + if (series[s][0] !== null && typeof series[s][0] !== 'undefined') { + lineYPosition = prevSeriesY[s][0]; + prevY = lineYPosition; + break; + } + } + } + } + + return { + prevY: prevY, + lineYPosition: lineYPosition + }; + } + }]); + + return Line; +}(); + +/** + * ApexCharts YAxis Class for drawing Y-Axis. + * + * @module YAxis + **/ + +var YAxis = +/*#__PURE__*/ +function () { + function YAxis(ctx) { + _classCallCheck(this, YAxis); + + this.ctx = ctx; + this.w = ctx.w; + this.xaxisFontSize = this.w.config.xaxis.labels.style.fontSize; + this.axisFontFamily = this.w.config.xaxis.labels.style.fontFamily; + this.isBarHorizontal = !!(this.w.config.chart.type === 'bar' && this.w.config.plotOptions.bar.horizontal); + this.xaxisForeColors = this.w.config.xaxis.labels.style.colors; + this.xAxisoffX = 0; + + if (this.w.config.xaxis.position === 'bottom') { + this.xAxisoffX = this.w.globals.gridHeight; + } + } + + _createClass(YAxis, [{ + key: "drawYaxis", + value: function drawYaxis(realIndex) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var yaxisFontSize = w.config.yaxis[realIndex].labels.style.fontSize; + var yaxisFontFamily = w.config.yaxis[realIndex].labels.style.fontFamily; + var elYaxis = graphics.group({ + class: 'apexcharts-yaxis', + rel: realIndex, + transform: 'translate(' + w.globals.translateYAxisX[realIndex] + ', 0)' + }); + + if (!w.config.yaxis[realIndex].show) { + return elYaxis; + } + + var elYaxisTexts = graphics.group({ + class: 'apexcharts-yaxis-texts-g' + }); + elYaxis.add(elYaxisTexts); + var tickAmount = w.globals.yAxisScale[realIndex].result.length - 1; // labelsDivider is simply svg height/number of ticks + + var labelsDivider = w.globals.gridHeight / tickAmount + 0.1; // initial label position = 0; + + var l = w.globals.translateY; + var lbFormatter = w.globals.yLabelFormatters[realIndex]; + var labels = w.globals.yAxisScale[realIndex].result.slice(); + + if (w.config.yaxis[realIndex].reversed) { + labels.reverse(); + } + + if (w.config.yaxis[realIndex].labels.show) { + for (var i = tickAmount; i >= 0; i--) { + var val = labels[i]; + val = lbFormatter(val, i); + var xPad = w.config.yaxis[realIndex].labels.padding; + + if (w.config.yaxis[realIndex].opposite && w.config.yaxis.length !== 0) { + xPad = xPad * -1; + } + + var label = graphics.drawText({ + x: xPad, + y: l + tickAmount / 10 + w.config.yaxis[realIndex].labels.offsetY + 1, + text: val, + textAnchor: w.config.yaxis[realIndex].opposite ? 'start' : 'end', + fontSize: yaxisFontSize, + fontFamily: yaxisFontFamily, + foreColor: w.config.yaxis[realIndex].labels.style.color, + cssClass: 'apexcharts-yaxis-label ' + w.config.yaxis[realIndex].labels.style.cssClass + }); + elYaxisTexts.add(label); + var labelRotatingCenter = graphics.rotateAroundCenter(label.node); + + if (w.config.yaxis[realIndex].labels.rotate !== 0) { + label.node.setAttribute('transform', "rotate(".concat(w.config.yaxis[realIndex].labels.rotate, " ").concat(labelRotatingCenter.x, " ").concat(labelRotatingCenter.y, ")")); + } + + l = l + labelsDivider; + } + } + + if (w.config.yaxis[realIndex].title.text !== undefined) { + var elYaxisTitle = graphics.group({ + class: 'apexcharts-yaxis-title' + }); + var x = 0; + + if (w.config.yaxis[realIndex].opposite) { + x = w.globals.translateYAxisX[realIndex]; + } + + var elYAxisTitleText = graphics.drawText({ + x: x, + y: w.globals.gridHeight / 2 + w.globals.translateY, + text: w.config.yaxis[realIndex].title.text, + textAnchor: 'end', + foreColor: w.config.yaxis[realIndex].title.style.color, + fontSize: w.config.yaxis[realIndex].title.style.fontSize, + fontFamily: w.config.yaxis[realIndex].title.style.fontFamily, + cssClass: 'apexcharts-yaxis-title-text ' + w.config.yaxis[realIndex].title.style.cssClass + }); + elYaxisTitle.add(elYAxisTitleText); + elYaxis.add(elYaxisTitle); + } + + var axisBorder = w.config.yaxis[realIndex].axisBorder; + + if (axisBorder.show) { + var _x = 31 + axisBorder.offsetX; + + if (w.config.yaxis[realIndex].opposite) { + _x = -31 - axisBorder.offsetX; + } + + var elVerticalLine = graphics.drawLine(_x, w.globals.translateY + axisBorder.offsetY - 2, _x, w.globals.gridHeight + w.globals.translateY + axisBorder.offsetY + 2, axisBorder.color); + elYaxis.add(elVerticalLine); + this.drawAxisTicks(_x, tickAmount, axisBorder, w.config.yaxis[realIndex].axisTicks, realIndex, labelsDivider, elYaxis); + } + + return elYaxis; + } // This actually becomes horizonal axis (for bar charts) + + }, { + key: "drawYaxisInversed", + value: function drawYaxisInversed(realIndex) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var elXaxis = graphics.group({ + class: 'apexcharts-xaxis apexcharts-yaxis-inversed' + }); + var elXaxisTexts = graphics.group({ + class: 'apexcharts-xaxis-texts-g', + transform: "translate(".concat(w.globals.translateXAxisX, ", ").concat(w.globals.translateXAxisY, ")") + }); + elXaxis.add(elXaxisTexts); + var tickAmount = w.globals.yAxisScale[realIndex].result.length - 1; // labelsDivider is simply svg width/number of ticks + + var labelsDivider = w.globals.gridWidth / tickAmount + 0.1; // initial label position; + + var l = labelsDivider + w.config.xaxis.labels.offsetX; + var lbFormatter = w.globals.xLabelFormatter; + var labels = w.globals.yAxisScale[realIndex].result.slice(); + + if (w.config.yaxis[realIndex].reversed) { + labels.reverse(); + } + + if (w.config.xaxis.labels.show) { + for (var i = tickAmount; i >= 0; i--) { + var val = labels[i]; + val = lbFormatter(val, i); + var elTick = graphics.drawText({ + x: w.globals.gridWidth + w.globals.padHorizontal - (l - labelsDivider + w.config.xaxis.labels.offsetX), + y: this.xAxisoffX + w.config.xaxis.labels.offsetY + 30, + text: '', + textAnchor: 'middle', + foreColor: Array.isArray(this.xaxisForeColors) ? this.xaxisForeColors[realIndex] : this.xaxisForeColors, + fontSize: this.xaxisFontSize, + fontFamily: this.xaxisFontFamily, + cssClass: 'apexcharts-xaxis-label ' + w.config.xaxis.labels.style.cssClass + }); + elXaxisTexts.add(elTick); + elTick.tspan(val); + var elTooltipTitle = document.createElementNS(w.globals.SVGNS, 'title'); + elTooltipTitle.textContent = val; + elTick.node.appendChild(elTooltipTitle); + l = l + labelsDivider; + } + } + + if (w.config.xaxis.title.text !== undefined) { + var elYaxisTitle = graphics.group({ + class: 'apexcharts-xaxis-title apexcharts-yaxis-title-inversed' + }); + var elYAxisTitleText = graphics.drawText({ + x: w.globals.gridWidth / 2, + y: this.xAxisoffX + parseInt(this.xaxisFontSize) + parseInt(w.config.xaxis.title.style.fontSize) + 20, + text: w.config.xaxis.title.text, + textAnchor: 'middle', + fontSize: w.config.xaxis.title.style.fontSize, + fontFamily: w.config.xaxis.title.style.fontFamily, + cssClass: 'apexcharts-xaxis-title-text ' + w.config.xaxis.title.style.cssClass + }); + elYaxisTitle.add(elYAxisTitleText); + elXaxis.add(elYaxisTitle); + } + + var axisBorder = w.config.yaxis[realIndex].axisBorder; + + if (axisBorder.show) { + var elVerticalLine = graphics.drawLine(w.globals.padHorizontal + axisBorder.offsetX, 1 + axisBorder.offsetY, w.globals.padHorizontal + axisBorder.offsetX, w.globals.gridHeight + axisBorder.offsetY, axisBorder.color); + elXaxis.add(elVerticalLine); + } + + return elXaxis; + } + }, { + key: "drawAxisTicks", + value: function drawAxisTicks(x, tickAmount, axisBorder, axisTicks, realIndex, labelsDivider, elYaxis) { + var w = this.w; + var graphics = new Graphics(this.ctx); // initial label position = 0; + + var t = w.globals.translateY; + + if (axisTicks.show) { + if (w.config.yaxis[realIndex].opposite === true) x = x + axisTicks.width; + + for (var i = tickAmount; i >= 0; i--) { + var tY = t + tickAmount / 10 + w.config.yaxis[realIndex].labels.offsetY - 1; + + if (this.isBarHorizontal) { + tY = labelsDivider * i; + } + + var elTick = graphics.drawLine(x + axisBorder.offsetX - axisTicks.width + axisTicks.offsetX, tY + axisTicks.offsetY, x + axisBorder.offsetX + axisTicks.offsetX, tY + axisTicks.offsetY, axisBorder.color); + elYaxis.add(elTick); + t = t + labelsDivider; + } + } + } + }, { + key: "yAxisTitleRotate", + value: function yAxisTitleRotate(realIndex, yAxisOpposite) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var yAxisLabelsCoord = { + width: 0, + height: 0 + }; + var yAxisTitleCoord = { + width: 0, + height: 0 + }; + var elYAxisLabelsWrap = w.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(realIndex, "'] .apexcharts-yaxis-texts-g")); + + if (elYAxisLabelsWrap !== null) { + yAxisLabelsCoord = elYAxisLabelsWrap.getBoundingClientRect(); + } + + var yAxisTitle = w.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(realIndex, "'] .apexcharts-yaxis-title text")); + + if (yAxisTitle !== null) { + yAxisTitleCoord = yAxisTitle.getBoundingClientRect(); + } + + if (yAxisTitle !== null) { + var x = this.xPaddingForYAxisTitle(realIndex, yAxisLabelsCoord, yAxisTitleCoord, yAxisOpposite); + yAxisTitle.setAttribute('x', x.xPos - (yAxisOpposite ? 10 : 0)); + } + + if (yAxisTitle !== null) { + var titleRotatingCenter = graphics.rotateAroundCenter(yAxisTitle); + + if (!yAxisOpposite) { + yAxisTitle.setAttribute('transform', "rotate(-".concat(w.config.yaxis[realIndex].title.rotate, " ").concat(titleRotatingCenter.x, " ").concat(titleRotatingCenter.y, ")")); + } else { + yAxisTitle.setAttribute('transform', "rotate(".concat(w.config.yaxis[realIndex].title.rotate, " ").concat(titleRotatingCenter.x, " ").concat(titleRotatingCenter.y, ")")); + } + } + } + }, { + key: "xPaddingForYAxisTitle", + value: function xPaddingForYAxisTitle(realIndex, yAxisLabelsCoord, yAxisTitleCoord, yAxisOpposite) { + var w = this.w; + var oppositeAxisCount = 0; + var x = 0; + var padd = 10; + + if (w.config.yaxis[realIndex].title.text === undefined || realIndex < 0) { + return { + xPos: x, + padd: 0 + }; + } + + if (yAxisOpposite) { + x = yAxisLabelsCoord.width + w.config.yaxis[realIndex].title.offsetX + yAxisTitleCoord.width / 2 + padd / 2; + oppositeAxisCount += 1; + + if (oppositeAxisCount === 0) { + x = x - padd / 2; + } + } else { + x = yAxisLabelsCoord.width * -1 + w.config.yaxis[realIndex].title.offsetX + padd / 2 + yAxisTitleCoord.width / 2; + + if (this.isBarHorizontal) { + padd = 25; + x = yAxisLabelsCoord.width * -1 - w.config.yaxis[realIndex].title.offsetX - padd; + } + } + + return { + xPos: x, + padd: padd + }; + } // sets the x position of the y-axis by counting the labels width, title width and any offset + + }, { + key: "setYAxisXPosition", + value: function setYAxisXPosition(yaxisLabelCoords, yTitleCoords) { + var _this = this; + + var w = this.w; + var xLeft = 0; + var xRight = 0; + var leftOffsetX = 21; + var rightOffsetX = 1; + + if (w.config.yaxis.length > 1) { + this.multipleYs = true; + } + + w.config.yaxis.map(function (yaxe, index) { + var shouldNotDrawAxis = w.globals.ignoreYAxisIndexes.indexOf(index) > -1 || !yaxe.show || yaxe.floating || yaxisLabelCoords[index].width === 0; + var axisWidth = yaxisLabelCoords[index].width + yTitleCoords[index].width; + + if (!yaxe.opposite) { + xLeft = w.globals.translateX - leftOffsetX; + + if (!shouldNotDrawAxis) { + leftOffsetX = leftOffsetX + axisWidth + 20; + } + + w.globals.translateYAxisX[index] = xLeft + yaxe.labels.offsetX; + } else { + if (_this.isBarHorizontal) { + xRight = w.globals.gridWidth + w.globals.translateX - 1; + w.globals.translateYAxisX[index] = xRight - yaxe.labels.offsetX; + } else { + xRight = w.globals.gridWidth + w.globals.translateX + rightOffsetX; + + if (!shouldNotDrawAxis) { + rightOffsetX = rightOffsetX + axisWidth + 20; + } + + w.globals.translateYAxisX[index] = xRight - yaxe.labels.offsetX + 20; + } + } + }); + } + }]); + + return YAxis; +}(); + +/** + * ApexCharts Formatter Class for setting value formatters for axes as well as tooltips. + * + * @module Formatters + **/ + +var Formatters = +/*#__PURE__*/ +function () { + function Formatters(ctx) { + _classCallCheck(this, Formatters); + + this.ctx = ctx; + this.w = ctx.w; + this.tooltipKeyFormat = 'dd MMM'; + } + + _createClass(Formatters, [{ + key: "xLabelFormat", + value: function xLabelFormat(fn, val) { + var w = this.w; + + if (w.config.xaxis.type === 'datetime') { + // if user has not specified a custom formatter, use the default tooltip.x.format + if (w.config.tooltip.x.formatter === undefined) { + var datetimeObj = new DateTime(this.ctx); + return datetimeObj.formatDate(new Date(val), w.config.tooltip.x.format, true, true); + } + } + + return fn(val); + } + }, { + key: "setLabelFormatters", + value: function setLabelFormatters() { + var w = this.w; + + w.globals.xLabelFormatter = function (val) { + return val; + }; + + w.globals.xaxisTooltipFormatter = function (val) { + return val; + }; + + w.globals.ttKeyFormatter = function (val) { + return val; + }; + + w.globals.ttZFormatter = function (val) { + return val; + }; + + w.globals.legendFormatter = function (val) { + return val; + }; + + if (typeof w.config.tooltip.x.formatter === 'function') { + w.globals.ttKeyFormatter = w.config.tooltip.x.formatter; + } + + if (typeof w.config.xaxis.tooltip.formatter === 'function') { + w.globals.xaxisTooltipFormatter = w.config.xaxis.tooltip.formatter; + } + + if (Array.isArray(w.config.tooltip.y)) { + w.globals.ttVal = w.config.tooltip.y; + } else { + if (w.config.tooltip.y.formatter !== undefined) { + w.globals.ttVal = w.config.tooltip.y; + } + } + + if (w.config.tooltip.z.formatter !== undefined) { + w.globals.ttZFormatter = w.config.tooltip.z.formatter; + } // legend formatter - if user wants to append any global values of series to legend text + + + if (w.config.legend.formatter !== undefined) { + w.globals.legendFormatter = w.config.legend.formatter; + } // formatter function will always overwrite format property + + + if (w.config.xaxis.labels.formatter !== undefined) { + w.globals.xLabelFormatter = w.config.xaxis.labels.formatter; + } else { + w.globals.xLabelFormatter = function (val) { + if (Utils.isNumber(val)) { + // numeric xaxis may have smaller range, so defaulting to 1 decimal + if (w.config.xaxis.type === 'numeric' && w.globals.dataPoints < 50) { + return val.toFixed(1); + } + + return val.toFixed(0); + } + + return val; + }; + } // formatter function will always overwrite format property + + + w.config.yaxis.forEach(function (yaxe, i) { + if (yaxe.labels.formatter !== undefined) { + w.globals.yLabelFormatters[i] = yaxe.labels.formatter; + } else { + w.globals.yLabelFormatters[i] = function (val) { + if (Utils.isNumber(val)) { + if (w.globals.yValueDecimal !== 0 || w.globals.maxY - w.globals.minY < 1) { + return val.toFixed(yaxe.decimalsInFloat); + } else { + return val.toFixed(0); + } + } + + return val; + }; + } + }); + return w.globals; + } + }, { + key: "heatmapLabelFormatters", + value: function heatmapLabelFormatters() { + var w = this.w; + + if (w.config.chart.type === 'heatmap') { + w.globals.yAxisScale[0].result = w.globals.seriesNames.slice(); // get the longest string from the labels array and also apply label formatter to it + + var longest = w.globals.seriesNames.reduce(function (a, b) { + return a.length > b.length ? a : b; + }, 0); + w.globals.yAxisScale[0].niceMax = longest; + w.globals.yAxisScale[0].niceMin = longest; + } + } + }]); + + return Formatters; +}(); + +/** + * ApexCharts XAxis Class for drawing X-Axis. + * + * @module XAxis + **/ + +var XAxis = +/*#__PURE__*/ +function () { + function XAxis(ctx) { + _classCallCheck(this, XAxis); + + this.ctx = ctx; + this.w = ctx.w; + var w = this.w; + this.xaxisLabels = w.globals.labels.slice(); + + if (w.globals.timelineLabels.length > 0) { + // timeline labels are there + this.xaxisLabels = w.globals.timelineLabels.slice(); + } + + this.drawnLabels = []; + + if (w.config.xaxis.position === 'top') { + this.offY = 0; + } else { + this.offY = w.globals.gridHeight + 1; + } + + this.offY = this.offY + w.config.xaxis.axisBorder.offsetY; + this.xaxisFontSize = w.config.xaxis.labels.style.fontSize; + this.xaxisFontFamily = w.config.xaxis.labels.style.fontFamily; + this.xaxisForeColors = w.config.xaxis.labels.style.colors; + this.xaxisBorderWidth = w.config.xaxis.axisBorder.width; + + if (this.xaxisBorderWidth.indexOf('%') > -1) { + this.xaxisBorderWidth = w.globals.gridWidth * parseInt(this.xaxisBorderWidth) / 100; + } else { + this.xaxisBorderWidth = parseInt(this.xaxisBorderWidth); + } + + this.xaxisBorderHeight = w.config.xaxis.axisBorder.height; // For bars, we will only consider single y xais, + // as we are not providing multiple yaxis for bar charts + + this.yaxis = w.config.yaxis[0]; + } + + _createClass(XAxis, [{ + key: "drawXaxis", + value: function drawXaxis() { + var w = this.w; + var graphics = new Graphics(this.ctx); + var elXaxis = graphics.group({ + class: 'apexcharts-xaxis', + transform: "translate(".concat(w.config.xaxis.offsetX, ", ").concat(w.config.xaxis.offsetY, ")") + }); + var elXaxisTexts = graphics.group({ + class: 'apexcharts-xaxis-texts-g', + transform: "translate(".concat(w.globals.translateXAxisX, ", ").concat(w.globals.translateXAxisY, ")") + }); + elXaxis.add(elXaxisTexts); + var colWidth; // initial x Position (keep adding column width in the loop) + + var xPos = w.globals.padHorizontal; + var labels = []; + + for (var i = 0; i < this.xaxisLabels.length; i++) { + labels.push(this.xaxisLabels[i]); + } + + if (w.globals.isXNumeric) { + colWidth = w.globals.gridWidth / (labels.length - 1); + xPos = xPos + colWidth / 2 + w.config.xaxis.labels.offsetX; + } else { + colWidth = w.globals.gridWidth / labels.length; + xPos = xPos + colWidth + w.config.xaxis.labels.offsetX; + } + + var xlbFormatter = w.globals.xLabelFormatter; + var customFormatter = w.config.xaxis.labels.formatter; + var labelsLen = labels.length; + + if (w.config.xaxis.labels.show) { + for (var _i = 0; _i <= labelsLen - 1; _i++) { + var rawLabel = typeof labels[_i] === 'undefined' ? '' : labels[_i]; + var label = void 0; + var xFormat = new Formatters(this.ctx); + label = xFormat.xLabelFormat(xlbFormatter, rawLabel); + + if (customFormatter !== undefined) { + label = customFormatter(rawLabel, this.xaxisLabels[_i], _i); + } + + var x = xPos - colWidth / 2 + w.config.xaxis.labels.offsetX; + + if (w.globals.timelineLabels.length > 0) { + x = w.globals.timelineLabels[_i].position; + label = w.globals.timelineLabels[_i].value; + } else { + if (w.config.xaxis.type === 'datetime' && customFormatter === undefined) { + label = ''; + } + } + + label = label.toString(); + + if (label.indexOf('NaN') === 0 || label === 'undefined' || label.toLowerCase().indexOf('invalid') === 0 || label.toLowerCase().indexOf('infinity') >= 0 || this.drawnLabels.indexOf(label) >= 0 && !w.config.xaxis.labels.showDuplicates) { + label = ''; + } + + this.drawnLabels.push(label); + var offsetYCorrection = 28; + + if (w.globals.rotateXLabels) { + offsetYCorrection = 22; + } + + var elTick = graphics.drawText({ + x: x, + y: this.offY + w.config.xaxis.labels.offsetY + offsetYCorrection, + text: '', + textAnchor: 'middle', + fontSize: this.xaxisFontSize, + fontFamily: this.xaxisFontFamily, + foreColor: Array.isArray(this.xaxisForeColors) ? this.xaxisForeColors[_i] : this.xaxisForeColors, + cssClass: 'apexcharts-xaxis-label ' + w.config.xaxis.labels.style.cssClass + }); + elXaxisTexts.add(elTick); + graphics.addTspan(elTick, label, this.xaxisFontFamily); + var elTooltipTitle = document.createElementNS(w.globals.SVGNS, 'title'); + elTooltipTitle.textContent = label; + elTick.node.appendChild(elTooltipTitle); + xPos = xPos + colWidth; + } + } + + if (w.config.xaxis.title.text !== undefined) { + var elXaxisTitle = graphics.group({ + class: 'apexcharts-xaxis-title' + }); + var elXAxisTitleText = graphics.drawText({ + x: w.globals.gridWidth / 2 + w.config.xaxis.title.offsetX, + y: this.offY - parseInt(this.xaxisFontSize) + w.globals.xAxisLabelsHeight + w.config.xaxis.title.offsetY, + text: w.config.xaxis.title.text, + textAnchor: 'middle', + fontSize: w.config.xaxis.title.style.fontSize, + fontFamily: w.config.xaxis.title.style.fontFamily, + foreColor: w.config.xaxis.title.style.color, + cssClass: 'apexcharts-xaxis-title-text ' + w.config.xaxis.title.style.cssClass + }); + elXaxisTitle.add(elXAxisTitleText); + elXaxis.add(elXaxisTitle); + } + + if (w.config.xaxis.axisBorder.show) { + var lineCorrection = 0; + + if (w.config.chart.type === 'bar' && w.globals.isXNumeric) { + lineCorrection = lineCorrection - 15; + } + + var elHorzLine = graphics.drawLine(w.globals.padHorizontal + lineCorrection + w.config.xaxis.axisBorder.offsetX, this.offY, this.xaxisBorderWidth, this.offY, w.config.xaxis.axisBorder.color, 0, this.xaxisBorderHeight); + elXaxis.add(elHorzLine); + } + + return elXaxis; + } // this actually becomes the vertical axis (for bar charts) + + }, { + key: "drawXaxisInversed", + value: function drawXaxisInversed(realIndex) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var translateYAxisX = w.config.yaxis[0].opposite ? w.globals.translateYAxisX[realIndex] : 0; + var elYaxis = graphics.group({ + class: 'apexcharts-yaxis apexcharts-xaxis-inversed', + rel: realIndex + }); + var elYaxisTexts = graphics.group({ + class: 'apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g', + transform: 'translate(' + translateYAxisX + ', 0)' + }); + elYaxis.add(elYaxisTexts); + var colHeight; // initial x Position (keep adding column width in the loop) + + var yPos; + var labels = []; + + for (var i = 0; i < this.xaxisLabels.length; i++) { + labels.push(this.xaxisLabels[i]); + } + + colHeight = w.globals.gridHeight / labels.length; + yPos = -(colHeight / 2.2); + var lbFormatter = w.globals.yLabelFormatters[0]; + var ylabels = w.config.yaxis[0].labels; + + if (ylabels.show) { + for (var _i2 = 0; _i2 <= labels.length - 1; _i2++) { + var label = typeof labels[_i2] === 'undefined' ? '' : labels[_i2]; + label = lbFormatter(label); + var elLabel = graphics.drawText({ + x: ylabels.offsetX - 15, + y: yPos + colHeight + ylabels.offsetY, + text: label, + textAnchor: this.yaxis.opposite ? 'start' : 'end', + foreColor: ylabels.style.color ? ylabels.style.color : ylabels.style.colors[_i2], + fontSize: ylabels.style.fontSize, + fontFamily: ylabels.style.fontFamily, + cssClass: 'apexcharts-yaxis-label ' + ylabels.style.cssClass + }); // let labelRotatingCenter = graphics.rotateAroundCenter(elLabel.node) + // if (ylabels.rotate !== 0) { + // elLabel.node.setAttribute( + // 'transform', + // `rotate(${ylabels.rotate} ${labelRotatingCenter.x} ${labelRotatingCenter.y})` + // ) + // } + + elYaxisTexts.add(elLabel); + yPos = yPos + colHeight; + } + } + + if (w.config.yaxis[0].title.text !== undefined) { + var elXaxisTitle = graphics.group({ + class: 'apexcharts-yaxis-title apexcharts-xaxis-title-inversed', + transform: 'translate(' + translateYAxisX + ', 0)' + }); + var elXAxisTitleText = graphics.drawText({ + x: 0, + y: w.globals.gridHeight / 2, + text: w.config.yaxis[0].title.text, + textAnchor: 'middle', + foreColor: w.config.yaxis[0].title.style.color, + fontSize: w.config.yaxis[0].title.style.fontSize, + fontFamily: w.config.yaxis[0].title.style.fontFamily, + cssClass: 'apexcharts-yaxis-title-text ' + w.config.yaxis[0].title.style.cssClass + }); + elXaxisTitle.add(elXAxisTitleText); + elYaxis.add(elXaxisTitle); + } + + if (w.config.xaxis.axisBorder.show) { + var elHorzLine = graphics.drawLine(w.globals.padHorizontal + w.config.xaxis.axisBorder.offsetX, this.offY, this.xaxisBorderWidth, this.offY, this.yaxis.axisBorder.color, 0, this.xaxisBorderHeight); + elYaxis.add(elHorzLine); // let x = w.globals.yAxisWidths[0] / 2 + // if (w.config.yaxis[0].opposite) { + // x = -w.globals.yAxisWidths[0] / 2 + // } + + var yaxis = new YAxis(this.ctx); + yaxis.drawAxisTicks(0, labels.length, w.config.yaxis[0].axisBorder, w.config.yaxis[0].axisTicks, 0, colHeight, elYaxis); + } + + return elYaxis; + } + }, { + key: "drawXaxisTicks", + value: function drawXaxisTicks(x1, appendToElement) { + var w = this.w; + var x2 = x1; + if (x1 < 0 || x1 > w.globals.gridWidth) return; + var y1 = this.offY + w.config.xaxis.axisTicks.offsetY; + var y2 = y1 + w.config.xaxis.axisTicks.height; + + if (w.config.xaxis.axisTicks.show) { + var graphics = new Graphics(this.ctx); + var line = graphics.drawLine(x1 + w.config.xaxis.axisTicks.offsetX, y1 + w.config.xaxis.offsetY, x2 + w.config.xaxis.axisTicks.offsetX, y2 + w.config.xaxis.offsetY, w.config.xaxis.axisTicks.color); // we are not returning anything, but appending directly to the element pased in param + + appendToElement.add(line); + line.node.classList.add('apexcharts-xaxis-tick'); + } + } + }, { + key: "getXAxisTicksPositions", + value: function getXAxisTicksPositions() { + var w = this.w; + var xAxisTicksPositions = []; + var xCount = this.xaxisLabels.length; + var x1 = w.globals.padHorizontal; + + if (w.globals.timelineLabels.length > 0) { + for (var i = 0; i < xCount; i++) { + x1 = this.xaxisLabels[i].position; + xAxisTicksPositions.push(x1); + } + } else { + var xCountForCategoryCharts = xCount; + + for (var _i3 = 0; _i3 < xCountForCategoryCharts; _i3++) { + var x1Count = xCountForCategoryCharts; + + if (w.globals.isXNumeric && w.config.chart.type !== 'bar') { + x1Count -= 1; + } + + x1 = x1 + w.globals.gridWidth / x1Count; + xAxisTicksPositions.push(x1); + } + } + + return xAxisTicksPositions; + } // to rotate x-axis labels or to put ... for longer text in xaxis + + }, { + key: "xAxisLabelCorrections", + value: function xAxisLabelCorrections() { + var w = this.w; + var graphics = new Graphics(this.ctx); + var xAxis = w.globals.dom.baseEl.querySelector('.apexcharts-xaxis-texts-g'); + var xAxisTexts = w.globals.dom.baseEl.querySelectorAll('.apexcharts-xaxis-texts-g text'); + var yAxisTextsInversed = w.globals.dom.baseEl.querySelectorAll('.apexcharts-yaxis-inversed text'); + var xAxisTextsInversed = w.globals.dom.baseEl.querySelectorAll('.apexcharts-xaxis-inversed-texts-g text'); + + if (w.globals.rotateXLabels || w.config.xaxis.labels.rotateAlways) { + for (var xat = 0; xat < xAxisTexts.length; xat++) { + var textRotatingCenter = graphics.rotateAroundCenter(xAxisTexts[xat]); + textRotatingCenter.y = textRotatingCenter.y - 1; // + tickWidth/4; + + textRotatingCenter.x = textRotatingCenter.x + 1; + xAxisTexts[xat].setAttribute('transform', "rotate(".concat(w.config.xaxis.labels.rotate, " ").concat(textRotatingCenter.x, " ").concat(textRotatingCenter.y, ")")); + xAxisTexts[xat].setAttribute('text-anchor', "end"); + var offsetHeight = 10; + xAxis.setAttribute('transform', "translate(0, ".concat(-offsetHeight, ")")); + var tSpan = xAxisTexts[xat].childNodes; + + if (w.config.xaxis.labels.trim) { + graphics.placeTextWithEllipsis(tSpan[0], tSpan[0].textContent, w.config.xaxis.labels.maxHeight - 40); + } + } + } else { + var width = w.globals.gridWidth / w.globals.labels.length; + + for (var _xat = 0; _xat < xAxisTexts.length; _xat++) { + var _tSpan = xAxisTexts[_xat].childNodes; + + if (w.config.xaxis.labels.trim && w.config.chart.type !== 'bar' && w.config.plotOptions.bar.horizontal) { + graphics.placeTextWithEllipsis(_tSpan[0], _tSpan[0].textContent, width); + } + } + } + + if (yAxisTextsInversed.length > 0) { + // truncate rotated y axis in bar chart (x axis) + var firstLabelPosX = yAxisTextsInversed[yAxisTextsInversed.length - 1].getBBox(); + var lastLabelPosX = yAxisTextsInversed[0].getBBox(); + + if (firstLabelPosX.x < -20) { + yAxisTextsInversed[yAxisTextsInversed.length - 1].parentNode.removeChild(yAxisTextsInversed[yAxisTextsInversed.length - 1]); + } + + if (lastLabelPosX.x + lastLabelPosX.width > w.globals.gridWidth) { + yAxisTextsInversed[0].parentNode.removeChild(yAxisTextsInversed[0]); + } // truncate rotated x axis in bar chart (y axis) + + + for (var _xat2 = 0; _xat2 < xAxisTextsInversed.length; _xat2++) { + graphics.placeTextWithEllipsis(xAxisTextsInversed[_xat2], xAxisTextsInversed[_xat2].textContent, w.config.yaxis[0].labels.maxWidth - parseInt(w.config.yaxis[0].title.style.fontSize) * 2 - 20); + } + } + } // renderXAxisBands() { + // let w = this.w; + // let plotBand = document.createElementNS(w.globals.SVGNS, 'rect') + // w.globals.dom.elGraphical.add(plotBand) + // } + + }]); + + return XAxis; +}(); + +var Range = +/*#__PURE__*/ +function () { + function Range(ctx) { + _classCallCheck(this, Range); + + this.ctx = ctx; + this.w = ctx.w; + this.isBarHorizontal = !!(this.w.config.chart.type === 'bar' && this.w.config.plotOptions.bar.horizontal); + } // http://stackoverflow.com/questions/326679/choosing-an-attractive-linear-scale-for-a-graphs-y-axiss + // This routine creates the Y axis values for a graph. + + + _createClass(Range, [{ + key: "niceScale", + value: function niceScale(yMin, yMax) { + var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; + var ticks = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 10; + + if (yMin === Number.MIN_VALUE && yMax === 0 || !Utils.isNumber(yMin) && !Utils.isNumber(yMax) || yMin === Number.MIN_VALUE && yMax === -Number.MAX_VALUE) { + // when all values are 0 + yMin = 0; + yMax = ticks; + var linearScale = this.linearScale(yMin, yMax, ticks); + return linearScale; + } + + if (yMin > yMax) { + // if somehow due to some wrong config, user sent max less than min, + // adjust the min/max again + console.warn('yaxis.min cannot be greater than yaxis.max'); + yMax = yMin + 0.1; + } else if (yMin === yMax) { + // If yMin and yMax are identical, then + // adjust the yMin and yMax values to actually + // make a graph. Also avoids division by zero errors. + yMin = yMin === 0 ? 0 : yMin - 0.1; // some small value + + yMax = yMax === 0 ? 2 : yMax + 0.1; // some small value + } // Calculate Min amd Max graphical labels and graph + // increments. The number of ticks defaults to + // 10 which is the SUGGESTED value. Any tick value + // entered is used as a suggested value which is + // adjusted to be a 'pretty' value. + // + // Output will be an array of the Y axis values that + // encompass the Y values. + + + var result = []; // Determine Range + + var range = yMax - yMin; + var tiks = ticks + 1; // Adjust ticks if needed + + if (tiks < 2) { + tiks = 2; + } else if (tiks > 2) { + tiks -= 2; + } // Get raw step value + + + var tempStep = range / tiks; // Calculate pretty step value + + var mag = Math.floor(Utils.log10(tempStep)); + var magPow = Math.pow(10, mag); + var magMsd = parseInt(tempStep / magPow); + var stepSize = magMsd * magPow; // build Y label array. + // Lower and upper bounds calculations + + var lb = stepSize * Math.floor(yMin / stepSize); + var ub = stepSize * Math.ceil(yMax / stepSize); // Build array + + var val = lb; + + while (1) { + result.push(val); + val += stepSize; + + if (val > ub) { + break; + } + } // TODO: need to remove this condition below which makes this function tightly coupled with w. + + + if (this.w.config.yaxis[index].max === undefined && this.w.config.yaxis[index].min === undefined || this.w.config.yaxis[index].forceNiceScale) { + return { + result: result, + niceMin: result[0], + niceMax: result[result.length - 1] + }; + } else { + result = []; + var v = yMin; + result.push(v); + var valuesDivider = Math.abs(yMax - yMin) / ticks; + + for (var i = 0; i <= ticks - 1; i++) { + v = v + valuesDivider; + result.push(v); + } + + return { + result: result, + niceMin: result[0], + niceMax: result[result.length - 1] + }; + } + } + }, { + key: "linearScale", + value: function linearScale(yMin, yMax) { + var ticks = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10; + var range = Math.abs(yMax - yMin); + var step = range / ticks; + + if (ticks === Number.MAX_VALUE) { + ticks = 10; + step = 1; + } + + var result = []; + var v = yMin; + + while (ticks >= 0) { + result.push(v); + v = v + step; + ticks -= 1; + } + + return { + result: result, + niceMin: result[0], + niceMax: result[result.length - 1] + }; + } + }, { + key: "logarithmicScale", + value: function logarithmicScale(index, yMin, yMax, ticks) { + if (yMin < 0 || yMin === Number.MIN_VALUE) yMin = 0.01; + var base = 10; + var min = Math.log(yMin) / Math.log(base); + var max = Math.log(yMax) / Math.log(base); + var range = Math.abs(yMax - yMin); + var step = range / ticks; + var result = []; + var v = yMin; + + while (ticks >= 0) { + result.push(v); + v = v + step; + ticks -= 1; + } + + var logs = result.map(function (niceNumber, i) { + if (niceNumber <= 0) { + niceNumber = 0.01; + } // calculate adjustment factor + + + var scale = (max - min) / (yMax - yMin); + var logVal = Math.pow(base, min + scale * (niceNumber - min)); + return Math.round(logVal / Utils.roundToBase(logVal, base)) * Utils.roundToBase(logVal, base); + }); // Math.floor may have rounded the value to 0, revert back to 1 + + if (logs[0] === 0) logs[0] = 1; + return { + result: logs, + niceMin: logs[0], + niceMax: logs[logs.length - 1] + }; + } + }, { + key: "setYScaleForIndex", + value: function setYScaleForIndex(index, minY, maxY) { + var gl = this.w.globals; + var cnf = this.w.config; + var y = this.isBarHorizontal ? cnf.xaxis : cnf.yaxis[index]; + + if (typeof gl.yAxisScale[index] === 'undefined') { + gl.yAxisScale[index] = []; + } + + if (y.logarithmic) { + gl.allSeriesCollapsed = false; + gl.yAxisScale[index] = this.logarithmicScale(index, minY, maxY, y.tickAmount ? y.tickAmount : Math.floor(Math.log10(maxY))); + } else { + if (maxY === -Number.MAX_VALUE || !Utils.isNumber(maxY)) { + // no data in the chart. Either all series collapsed or user passed a blank array + gl.yAxisScale[index] = this.linearScale(0, 5, 5); + } else { + // there is some data. Turn off the allSeriesCollapsed flag + gl.allSeriesCollapsed = false; + gl.yAxisScale[index] = this.niceScale(minY, maxY, index, y.tickAmount ? y.tickAmount : 5); + } + } + } + }, { + key: "setMultipleYScales", + value: function setMultipleYScales() { + var _this = this; + + var gl = this.w.globals; + var cnf = this.w.config; + var minYArr = gl.minYArr.concat([]); + var maxYArr = gl.maxYArr.concat([]); + var scalesIndices = []; // here, we loop through the yaxis array and find the item which has "seriesName" property + + cnf.yaxis.forEach(function (yaxe, i) { + var index = i; + cnf.series.forEach(function (s, si) { + // if seriesName matches and that series is not collapsed, we use that scale + if (s.name === yaxe.seriesName && gl.collapsedSeriesIndices.indexOf(si) === -1) { + index = si; + + if (i !== si) { + scalesIndices.push({ + index: si, + similarIndex: i, + alreadyExists: true + }); + } else { + scalesIndices.push({ + index: si + }); + } + } + }); + var minY = minYArr[index]; + var maxY = maxYArr[index]; + + _this.setYScaleForIndex(i, minY, maxY); + }); + this.sameScaleInMultipleAxes(minYArr, maxYArr, scalesIndices); + } + }, { + key: "sameScaleInMultipleAxes", + value: function sameScaleInMultipleAxes(minYArr, maxYArr, scalesIndices) { + var _this2 = this; + + var cnf = this.w.config; + var gl = this.w.globals; // we got the scalesIndices array in the above code, but we need to filter out the items which doesn't have same scales + + var similarIndices = []; + scalesIndices.forEach(function (scale) { + if (scale.alreadyExists) { + if (typeof similarIndices[scale.index] === 'undefined') { + similarIndices[scale.index] = []; + } + + similarIndices[scale.index].push(scale.index); + similarIndices[scale.index].push(scale.similarIndex); + } + }); + + function intersect(a, b) { + return a.filter(function (value) { + return b.indexOf(value) !== -1; + }); + } + + similarIndices.forEach(function (si, i) { + similarIndices.forEach(function (sj, j) { + if (i !== j) { + if (intersect(si, sj).length > 0) { + similarIndices[i] = similarIndices[i].concat(similarIndices[j]); + } + } + }); + }); // then, we remove duplicates from the similarScale array + + var uniqueSimilarIndices = similarIndices.map(function (item) { + return item.filter(function (i, pos) { + return item.indexOf(i) === pos; + }); + }); // sort further to remove whole duplicate arrays later + + var sortedIndices = uniqueSimilarIndices.map(function (s) { + return s.sort(); + }); // remove undefined items + + similarIndices = similarIndices.filter(function (s) { + return !!s; + }); + var indices = sortedIndices.slice(); + var stringIndices = indices.map(function (ind) { + return JSON.stringify(ind); + }); + indices = indices.filter(function (ind, p) { + return stringIndices.indexOf(JSON.stringify(ind)) === p; + }); + var sameScaleMinYArr = []; + var sameScaleMaxYArr = []; + minYArr.forEach(function (minYValue, yi) { + indices.forEach(function (scale, i) { + // we compare only the yIndex which exists in the indices array + if (scale.indexOf(yi) > -1) { + if (typeof sameScaleMinYArr[i] === 'undefined') { + sameScaleMinYArr[i] = []; + sameScaleMaxYArr[i] = []; + } + + sameScaleMinYArr[i].push({ + key: yi, + value: minYValue + }); + sameScaleMaxYArr[i].push({ + key: yi, + value: maxYArr[yi] + }); + } + }); + }); + var sameScaleMin = Array.apply(null, Array(indices.length)).map(Number.prototype.valueOf, Number.MIN_VALUE); + var sameScaleMax = Array.apply(null, Array(indices.length)).map(Number.prototype.valueOf, -Number.MAX_VALUE); + sameScaleMinYArr.forEach(function (s, i) { + s.forEach(function (sc, j) { + sameScaleMin[i] = Math.min(sc.value, sameScaleMin[i]); + }); + }); + sameScaleMaxYArr.forEach(function (s, i) { + s.forEach(function (sc, j) { + sameScaleMax[i] = Math.max(sc.value, sameScaleMax[i]); + }); + }); + minYArr.forEach(function (min, i) { + sameScaleMaxYArr.forEach(function (s, si) { + var minY = sameScaleMin[si]; + var maxY = sameScaleMax[si]; + s.forEach(function (ind, k) { + if (s[k].key === i) { + if (cnf.yaxis[i].min !== undefined) { + if (typeof cnf.yaxis[i].min === 'function') { + minY = cnf.yaxis[i].min(gl.minY); + } else { + minY = cnf.yaxis[i].min; + } + } + + if (cnf.yaxis[i].max !== undefined) { + if (typeof cnf.yaxis[i].max === 'function') { + maxY = cnf.yaxis[i].max(gl.maxY); + } else { + maxY = cnf.yaxis[i].max; + } + } + + _this2.setYScaleForIndex(i, minY, maxY); + } + }); + }); + }); + } + }, { + key: "autoScaleY", + value: function autoScaleY(ctx, e) { + if (!ctx) { + ctx = this; + } + + var ret = []; + ctx.w.config.series.forEach(function (serie) { + var min, max; + var first = serie.data.find(function (x) { + return x[0] >= e.xaxis.min; + }); + var firstValue = first[1]; + max = min = firstValue; + serie.data.forEach(function (data) { + if (data[0] <= e.xaxis.max && data[0] >= e.xaxis.min) { + if (data[1] > max && data[1] !== null) max = data[1]; + if (data[1] < min && data[1] !== null) min = data[1]; + } + }); + min *= 0.95; + max *= 1.05; + ret.push({ + min: min, + max: max + }); + }); + return ret; + } + }]); + + return Range; +}(); + +/** + * Range is used to generates values between min and max. + * + * @module Range + **/ + +var Range$1 = +/*#__PURE__*/ +function () { + function Range$$1(ctx) { + _classCallCheck(this, Range$$1); + + this.ctx = ctx; + this.w = ctx.w; + this.isBarHorizontal = !!(this.w.config.chart.type === 'bar' && this.w.config.plotOptions.bar.horizontal); + this.scales = new Range(ctx); + } + + _createClass(Range$$1, [{ + key: "init", + value: function init() { + this.setYRange(); + this.setXRange(); + this.setZRange(); + } + }, { + key: "getMinYMaxY", + value: function getMinYMaxY(startingIndex) { + var lowestY = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Number.MAX_VALUE; + var highestY = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -Number.MAX_VALUE; + var len = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; + var gl = this.w.globals; + var maxY = -Number.MAX_VALUE; + var minY = Number.MIN_VALUE; + + if (len === null) { + len = startingIndex + 1; + } + + var series = gl.series; + var seriesMin = series; + var seriesMax = series; + + if (this.w.config.chart.type === 'candlestick') { + seriesMin = gl.seriesCandleL; + seriesMax = gl.seriesCandleH; + } + + for (var i = startingIndex; i < len; i++) { + gl.dataPoints = Math.max(gl.dataPoints, series[i].length); + + for (var j = 0; j < gl.series[i].length; j++) { + if (series[i][j] !== null && Utils.isNumber(series[i][j])) { + maxY = Math.max(maxY, seriesMax[i][j]); + lowestY = Math.min(lowestY, seriesMin[i][j]); + highestY = Math.max(highestY, seriesMin[i][j]); + + if (Utils.isFloat(series[i][j])) { + gl.yValueDecimal = Math.max(gl.yValueDecimal, series[i][j].toString().split('.')[1].length); + } + + if (minY > seriesMin[i][j] && seriesMin[i][j] < 0) { + minY = seriesMin[i][j]; + } + } else { + gl.hasNullValues = true; + } + } + } + + return { + minY: minY, + maxY: maxY, + lowestY: lowestY, + highestY: highestY + }; + } + }, { + key: "setYRange", + value: function setYRange() { + var gl = this.w.globals; + var cnf = this.w.config; + gl.maxY = -Number.MAX_VALUE; + gl.minY = Number.MIN_VALUE; + var lowestYInAllSeries = Number.MAX_VALUE; + + if (gl.isMultipleYAxis) { + // we need to get minY and maxY for multiple y axis + for (var i = 0; i < gl.series.length; i++) { + var minYMaxYArr = this.getMinYMaxY(i, lowestYInAllSeries, null, i + 1); + gl.minYArr.push(minYMaxYArr.minY); + gl.maxYArr.push(minYMaxYArr.maxY); + lowestYInAllSeries = minYMaxYArr.lowestY; + } + } // and then, get the minY and maxY from all series + + + var minYMaxY = this.getMinYMaxY(0, lowestYInAllSeries, null, gl.series.length); + gl.minY = minYMaxY.minY; + gl.maxY = minYMaxY.maxY; + lowestYInAllSeries = minYMaxY.lowestY; + + if (cnf.chart.stacked) { + // for stacked charts, we calculate each series's parallel values. i.e, series[0][j] + series[1][j] .... [series[i.length][j]] and get the max out of it + var stackedPoss = []; + var stackedNegs = []; + + for (var j = 0; j < gl.series[gl.maxValsInArrayIndex].length; j++) { + var poss = 0; + var negs = 0; + + for (var _i = 0; _i < gl.series.length; _i++) { + if (gl.series[_i][j] !== null && Utils.isNumber(gl.series[_i][j])) { + if (gl.series[_i][j] > 0) { + // 0.0001 fixes #185 when values are very small + poss = poss + parseFloat(gl.series[_i][j]) + 0.0001; + } else { + negs = negs + parseFloat(gl.series[_i][j]); + } + } + + if (_i === gl.series.length - 1) { + // push all the totals to the array for future use + stackedPoss.push(poss); + stackedNegs.push(negs); + } + } + } // get the max/min out of the added parallel values + + + for (var z = 0; z < stackedPoss.length; z++) { + gl.maxY = Math.max(gl.maxY, stackedPoss[z]); + gl.minY = Math.min(gl.minY, stackedNegs[z]); + } + } // if the numbers are too big, reduce the range + // for eg, if number is between 100000-110000, putting 0 as the lowest value is not so good idea. So change the gl.minY for line/area/candlesticks + + + if (cnf.chart.type === 'line' || cnf.chart.type === 'area' || cnf.chart.type === 'candlestick') { + if (gl.minY === Number.MIN_VALUE && lowestYInAllSeries !== -Number.MAX_VALUE) { + var diff = gl.maxY - lowestYInAllSeries; + + if (lowestYInAllSeries >= 0 && lowestYInAllSeries <= 10) { + // if minY is already 0/low value, we don't want to go negatives here - so this check is essential. + diff = 0; + } + + gl.minY = lowestYInAllSeries - diff * 5 / 100; + gl.maxY = gl.maxY + diff * 5 / 100 + 0.05; + } + } + + cnf.yaxis.map(function (yaxe, index) { + // override all min/max values by user defined values (y axis) + if (yaxe.max !== undefined) { + if (typeof yaxe.max === 'number') { + gl.maxYArr[index] = yaxe.max; + } else if (typeof yaxe.max === 'function') { + gl.maxYArr[index] = yaxe.max(gl.maxY); + } // gl.maxY is for single y-axis chart, it will be ignored in multi-yaxis + + + gl.maxY = gl.maxYArr[index]; + } + + if (yaxe.min !== undefined) { + if (typeof yaxe.min === 'number') { + gl.minYArr[index] = yaxe.min; + } else if (typeof yaxe.min === 'function') { + gl.minYArr[index] = yaxe.min(gl.minY); + } // gl.minY is for single y-axis chart, it will be ignored in multi-yaxis + + + gl.minY = gl.minYArr[index]; + } + }); // for horizontal bar charts, we need to check xaxis min/max as user may have specified there + + if (this.isBarHorizontal) { + if (cnf.xaxis.min !== undefined && typeof cnf.xaxis.min === 'number') { + gl.minY = cnf.xaxis.min; + } + + if (cnf.xaxis.max !== undefined && typeof cnf.xaxis.max === 'number') { + gl.maxY = cnf.xaxis.max; + } + } // for multi y-axis we need different scales for each + + + if (gl.isMultipleYAxis) { + this.scales.setMultipleYScales(); + gl.minY = lowestYInAllSeries; + gl.yAxisScale.forEach(function (scale, i) { + gl.minYArr[i] = scale.niceMin; + gl.maxYArr[i] = scale.niceMax; + }); + } else { + this.scales.setYScaleForIndex(0, gl.minY, gl.maxY); + gl.minY = gl.yAxisScale[0].niceMin; + gl.maxY = gl.yAxisScale[0].niceMax; + gl.minYArr[0] = gl.yAxisScale[0].niceMin; + gl.maxYArr[0] = gl.yAxisScale[0].niceMax; + } + } + }, { + key: "setXRange", + value: function setXRange() { + var gl = this.w.globals; + var cnf = this.w.config; + var isXNumeric = cnf.xaxis.type === 'numeric' || cnf.xaxis.type === 'datetime' || cnf.xaxis.type === 'category' && !gl.noLabelsProvided; // minX maxX starts here + + if (gl.isXNumeric) { + for (var i = 0; i < gl.series.length; i++) { + if (gl.labels[i]) { + for (var j = 0; j < gl.labels[i].length; j++) { + if (gl.labels[i][j] !== null && Utils.isNumber(gl.labels[i][j])) { + gl.maxX = Math.max(gl.maxX, gl.labels[i][j]); + gl.initialmaxX = Math.max(gl.maxX, gl.labels[i][j]); + gl.minX = Math.min(gl.minX, gl.labels[i][j]); + gl.initialminX = Math.min(gl.minX, gl.labels[i][j]); + } + } + } + } + } + + if (gl.noLabelsProvided) { + if (cnf.xaxis.categories.length === 0) { + gl.maxX = gl.labels[gl.labels.length - 1]; + gl.initialmaxX = gl.labels[gl.labels.length - 1]; + gl.minX = 1; + gl.initialminX = 1; + } + } // for numeric xaxis, we need to adjust some padding left and right for bar charts + + + if (gl.comboChartsHasBars || cnf.chart.type === 'candlestick' || cnf.chart.type === 'bar' && cnf.xaxis.type !== 'category') { + if (cnf.xaxis.type !== 'category') { + var minX = gl.minX - gl.svgWidth / gl.dataPoints * (Math.abs(gl.maxX - gl.minX) / gl.svgWidth) / 2; + gl.minX = minX; + gl.initialminX = minX; + var maxX = gl.maxX + gl.svgWidth / gl.dataPoints * (Math.abs(gl.maxX - gl.minX) / gl.svgWidth) / 2; + gl.maxX = maxX; + gl.initialmaxX = maxX; + } + } + + if (gl.isXNumeric || gl.noLabelsProvided) { + var ticks; + + if (cnf.xaxis.tickAmount === undefined) { + ticks = Math.round(gl.svgWidth / 150); // no labels provided and total number of dataPoints is less than 20 + + if (cnf.xaxis.type === 'numeric' && gl.dataPoints < 20) { + ticks = gl.dataPoints - 1; + } // this check is for when ticks exceeds total datapoints and that would result in duplicate labels + + + if (ticks > gl.dataPoints && gl.dataPoints !== 0) { + ticks = gl.dataPoints - 1; + } + } else if (cnf.xaxis.tickAmount === 'dataPoints') { + ticks = gl.series[gl.maxValsInArrayIndex].length - 1; + } else { + ticks = cnf.xaxis.tickAmount; + } // override all min/max values by user defined values (x axis) + + + if (cnf.xaxis.max !== undefined && typeof cnf.xaxis.max === 'number') { + gl.maxX = cnf.xaxis.max; + } + + if (cnf.xaxis.min !== undefined && typeof cnf.xaxis.min === 'number') { + gl.minX = cnf.xaxis.min; + } // if range is provided, adjust the new minX + + + if (cnf.xaxis.range !== undefined) { + gl.minX = gl.maxX - cnf.xaxis.range; + } + + if (gl.minX !== Number.MAX_VALUE && gl.maxX !== -Number.MAX_VALUE) { + gl.xAxisScale = this.scales.linearScale(gl.minX, gl.maxX, ticks); + } else { + gl.xAxisScale = this.scales.linearScale(1, ticks, ticks); + + if (gl.noLabelsProvided && gl.labels.length > 0) { + gl.xAxisScale = this.scales.linearScale(1, gl.labels.length, ticks - 1); + gl.seriesX = gl.labels.slice(); + } + } // we will still store these labels as the count for this will be different (to draw grid and labels placement) + + + if (isXNumeric) { + gl.labels = gl.xAxisScale.result.slice(); + } + } + + if (gl.minX === gl.maxX) { + // single dataPoint + if (cnf.xaxis.type === 'datetime') { + var newMinX = new Date(gl.minX); + newMinX.setDate(newMinX.getDate() - 2); + gl.minX = new Date(newMinX).getTime(); + var newMaxX = new Date(gl.maxX); + newMaxX.setDate(newMaxX.getDate() + 2); + gl.maxX = new Date(newMaxX).getTime(); + } else if (cnf.xaxis.type === 'numeric' || cnf.xaxis.type === 'category' && !gl.noLabelsProvided) { + gl.minX = gl.minX - 2; + gl.maxX = gl.maxX + 2; + } + } + } + }, { + key: "setZRange", + value: function setZRange() { + var gl = this.w.globals; // minZ, maxZ starts here + + if (gl.isDataXYZ) { + for (var i = 0; i < gl.series.length; i++) { + if (typeof gl.seriesZ[i] !== 'undefined') { + for (var j = 0; j < gl.seriesZ[i].length; j++) { + if (gl.seriesZ[i][j] !== null && Utils.isNumber(gl.seriesZ[i][j])) { + gl.maxZ = Math.max(gl.maxZ, gl.seriesZ[i][j]); + gl.minZ = Math.min(gl.minZ, gl.seriesZ[i][j]); + } + } + } + } + } + } + }]); + + return Range$$1; +}(); + +/** + * ApexCharts Series Class for interation with the Series of the chart. + * + * @module Series + **/ + +var Series = +/*#__PURE__*/ +function () { + function Series(ctx) { + _classCallCheck(this, Series); + + this.ctx = ctx; + this.w = ctx.w; + } + + _createClass(Series, [{ + key: "getAllSeriesEls", + value: function getAllSeriesEls() { + return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series"); + } + }, { + key: "getSeriesByName", + value: function getSeriesByName(seriesName) { + return this.w.globals.dom.baseEl.querySelector(".apexcharts-series.".concat(Utils.escapeString(seriesName))); + } + }, { + key: "addCollapsedClassToSeries", + value: function addCollapsedClassToSeries(elSeries, index) { + var w = this.w; + + for (var cs = 0; cs < w.globals.collapsedSeries.length; cs++) { + if (w.globals.collapsedSeries[cs].index === index) { + elSeries.node.classList.add('apexcharts-series-collapsed'); + } + } + } + }, { + key: "toggleSeriesOnHover", + value: function toggleSeriesOnHover(e, targetElement) { + var w = this.w; + var allSeriesEls = w.globals.dom.baseEl.querySelectorAll(".apexcharts-series"); + + if (e.type === 'mousemove') { + var seriesCnt = parseInt(targetElement.getAttribute('rel')) - 1; + var seriesEl = null; + + if (w.globals.axisCharts || w.config.chart.type === 'radialBar') { + if (w.globals.axisCharts) { + seriesEl = w.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(seriesCnt, "']")); + } else { + seriesEl = w.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(seriesCnt + 1, "']")); + } + } else { + seriesEl = w.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(seriesCnt + 1, "'] path")); + } + + for (var se = 0; se < allSeriesEls.length; se++) { + allSeriesEls[se].classList.add('legend-mouseover-inactive'); + } + + if (seriesEl !== null) { + if (!w.globals.axisCharts) { + seriesEl.parentNode.classList.remove('legend-mouseover-inactive'); + } + + seriesEl.classList.remove('legend-mouseover-inactive'); + } + } else if (e.type === 'mouseout') { + for (var _se = 0; _se < allSeriesEls.length; _se++) { + allSeriesEls[_se].classList.remove('legend-mouseover-inactive'); + } + } + } + }, { + key: "highlightRangeInSeries", + value: function highlightRangeInSeries(e, targetElement) { + var w = this.w; + var allHeatMapElements = w.globals.dom.baseEl.querySelectorAll('.apexcharts-heatmap-rect'); + + var allActive = function allActive() { + for (var i = 0; i < allHeatMapElements.length; i++) { + allHeatMapElements[i].classList.remove('legend-mouseover-inactive'); + } + }; + + var allInactive = function allInactive() { + for (var i = 0; i < allHeatMapElements.length; i++) { + allHeatMapElements[i].classList.add('legend-mouseover-inactive'); + } + }; + + var selectedActive = function selectedActive(range) { + for (var i = 0; i < allHeatMapElements.length; i++) { + var val = parseInt(allHeatMapElements[i].getAttribute('val')); + + if (val >= range.from && val <= range.to) { + allHeatMapElements[i].classList.remove('legend-mouseover-inactive'); + } + } + }; + + if (e.type === 'mousemove') { + var seriesCnt = parseInt(targetElement.getAttribute('rel')) - 1; + allActive(); + allInactive(); + var range = w.config.plotOptions.heatmap.colorScale.ranges[seriesCnt]; + selectedActive(range); + } else if (e.type === 'mouseout') { + allActive(); + } + } + }, { + key: "getActiveSeriesIndex", + value: function getActiveSeriesIndex() { + var w = this.w; + var activeIndex = 0; + + if (w.globals.series.length > 1) { + // active series flag is required to know if user has not deactivated via legend click + var firstActiveSeriesIndex = w.globals.series.map(function (series, index) { + if (series.length > 0 && w.config.series[index].type !== 'bar' && w.config.series[index].type !== 'column') { + return index; + } else { + return -1; + } + }); + + for (var a = 0; a < firstActiveSeriesIndex.length; a++) { + if (firstActiveSeriesIndex[a] !== -1) { + activeIndex = firstActiveSeriesIndex[a]; + break; + } + } + } + + return activeIndex; + } + }, { + key: "getActiveConfigSeriesIndex", + value: function getActiveConfigSeriesIndex() { + var w = this.w; + var activeIndex = 0; + + if (w.config.series.length > 1) { + // active series flag is required to know if user has not deactivated via legend click + var firstActiveSeriesIndex = w.config.series.map(function (series, index) { + if (series.data && series.data.length > 0) { + return index; + } else { + return -1; + } + }); + + for (var a = 0; a < firstActiveSeriesIndex.length; a++) { + if (firstActiveSeriesIndex[a] !== -1) { + activeIndex = firstActiveSeriesIndex[a]; + break; + } + } + } + + return activeIndex; + } + }, { + key: "getPreviousPaths", + value: function getPreviousPaths() { + var w = this.w; + w.globals.previousPaths = []; + + function pushPaths(seriesEls, i, type) { + var paths = seriesEls[i].childNodes; + var dArr = { + type: type, + paths: [], + realIndex: seriesEls[i].getAttribute('data:realIndex') + }; + + for (var j = 0; j < paths.length; j++) { + if (paths[j].hasAttribute('pathTo')) { + var d = paths[j].getAttribute('pathTo'); + dArr.paths.push({ + d: d + }); + } + } + + w.globals.previousPaths.push(dArr); + } + + var linePaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-line-series .apexcharts-series'); + + if (linePaths.length > 0) { + for (var p = linePaths.length - 1; p >= 0; p--) { + pushPaths(linePaths, p, 'line'); + } + } + + var areapaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-area-series .apexcharts-series'); + + if (areapaths.length > 0) { + for (var i = areapaths.length - 1; i >= 0; i--) { + pushPaths(areapaths, i, 'area'); + } + } + + var barPaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-bar-series .apexcharts-series'); + + if (barPaths.length > 0) { + for (var _p = 0; _p < barPaths.length; _p++) { + pushPaths(barPaths, _p, 'bar'); + } + } + + var candlestickPaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-candlestick-series .apexcharts-series'); + + if (candlestickPaths.length > 0) { + for (var _p2 = 0; _p2 < candlestickPaths.length; _p2++) { + pushPaths(candlestickPaths, _p2, 'candlestick'); + } + } + + var radarPaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-radar-series .apexcharts-series'); + + if (radarPaths.length > 0) { + for (var _p3 = 0; _p3 < radarPaths.length; _p3++) { + pushPaths(radarPaths, _p3, 'radar'); + } + } + + var bubblepaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-bubble-series .apexcharts-series'); + + if (bubblepaths.length > 0) { + for (var s = 0; s < bubblepaths.length; s++) { + var seriesEls = w.globals.dom.baseEl.querySelectorAll(".apexcharts-bubble-series .apexcharts-series[data\\:realIndex='".concat(s, "'] circle")); + var dArr = []; + + for (var _i = 0; _i < seriesEls.length; _i++) { + dArr.push({ + x: seriesEls[_i].getAttribute('cx'), + y: seriesEls[_i].getAttribute('cy'), + r: seriesEls[_i].getAttribute('r') + }); + } + + w.globals.previousPaths.push(dArr); + } + } + + var scatterpaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-scatter-series .apexcharts-series'); + + if (scatterpaths.length > 0) { + for (var _s = 0; _s < scatterpaths.length; _s++) { + var _seriesEls = w.globals.dom.baseEl.querySelectorAll(".apexcharts-scatter-series .apexcharts-series[data\\:realIndex='".concat(_s, "'] circle")); + + var _dArr = []; + + for (var _i2 = 0; _i2 < _seriesEls.length; _i2++) { + _dArr.push({ + x: _seriesEls[_i2].getAttribute('cx'), + y: _seriesEls[_i2].getAttribute('cy'), + r: _seriesEls[_i2].getAttribute('r') + }); + } + + w.globals.previousPaths.push(_dArr); + } + } + + var heatmapColors = w.globals.dom.baseEl.querySelectorAll('.apexcharts-heatmap .apexcharts-series'); + + if (heatmapColors.length > 0) { + for (var h = 0; h < heatmapColors.length; h++) { + var _seriesEls2 = w.globals.dom.baseEl.querySelectorAll(".apexcharts-heatmap .apexcharts-series[data\\:realIndex='".concat(h, "'] rect")); + + var _dArr2 = []; + + for (var _i3 = 0; _i3 < _seriesEls2.length; _i3++) { + _dArr2.push({ + color: _seriesEls2[_i3].getAttribute('color') + }); + } + + w.globals.previousPaths.push(_dArr2); + } + } + + if (!w.globals.axisCharts) { + // for non-axis charts (i.e., circular charts, pathFrom is not usable. We need whole series) + w.globals.previousPaths = w.globals.series; + } + } + }, { + key: "handleNoData", + value: function handleNoData() { + var w = this.w; + var me = this; + var noDataOpts = w.config.noData; + var graphics = new Graphics(me.ctx); + var x = w.globals.svgWidth / 2; + var y = w.globals.svgHeight / 2; + var textAnchor = 'middle'; + w.globals.noData = true; + w.globals.animationEnded = true; + + if (noDataOpts.align === 'left') { + x = 10; + textAnchor = 'start'; + } else if (noDataOpts.align === 'right') { + x = w.globals.svgWidth - 10; + textAnchor = 'end'; + } + + if (noDataOpts.verticalAlign === 'top') { + y = 50; + } else if (noDataOpts.verticalAlign === 'bottom') { + y = w.globals.svgHeight - 50; + } + + x = x + noDataOpts.offsetX; + y = y + parseInt(noDataOpts.style.fontSize) + 2; + + if (noDataOpts.text !== undefined && noDataOpts.text !== '') { + var titleText = graphics.drawText({ + x: x, + y: y, + text: noDataOpts.text, + textAnchor: textAnchor, + fontSize: noDataOpts.style.fontSize, + fontFamily: noDataOpts.style.fontFamily, + foreColor: noDataOpts.style.color, + opacity: 1, + class: 'apexcharts-text-nodata' + }); + titleText.node.setAttribute('class', 'apexcharts-title-text'); + w.globals.dom.Paper.add(titleText); + } + } // When user clicks on legends, the collapsed series is filled with [0,0,0,...,0] + // This is because we don't want to alter the series' length as it is used at many places + + }, { + key: "setNullSeriesToZeroValues", + value: function setNullSeriesToZeroValues(series) { + var w = this.w; + + for (var sl = 0; sl < series.length; sl++) { + if (series[sl].length === 0) { + for (var j = 0; j < series[w.globals.maxValsInArrayIndex].length; j++) { + series[sl].push(0); + } + } + } + + return series; + } + }, { + key: "hasAllSeriesEqualX", + value: function hasAllSeriesEqualX() { + var equalLen = true; + var w = this.w; + var filteredSerX = this.filteredSeriesX(); + + for (var i = 0; i < filteredSerX.length - 1; i++) { + if (filteredSerX[i][0] !== filteredSerX[i + 1][0]) { + equalLen = false; + break; + } + } + + w.globals.allSeriesHasEqualX = equalLen; + return equalLen; + } + }, { + key: "filteredSeriesX", + value: function filteredSeriesX() { + var w = this.w; + var filteredSeriesX = w.globals.seriesX.map(function (ser, index) { + if (ser.length > 0) { + return ser; + } else { + return []; + } + }); + return filteredSeriesX; + } + }]); + + return Series; +}(); + +/** + * ApexCharts Dimensions Class for calculating rects of all elements that are drawn and will be drawn. + * + * @module Dimensions + **/ + +var Dimensions = +/*#__PURE__*/ +function () { + function Dimensions(ctx) { + _classCallCheck(this, Dimensions); + + this.ctx = ctx; + this.w = ctx.w; + this.lgRect = {}; + this.yAxisWidth = 0; + this.xAxisHeight = 0; + this.isSparkline = this.w.config.chart.sparkline.enabled; + this.xPadRight = 0; + this.xPadLeft = 0; + this.isBarHorizontal = !!(this.w.config.chart.type === 'bar' && this.w.config.plotOptions.bar.horizontal); + } + /** + * @memberof Dimensions + * @param {object} w - chart context + **/ + + + _createClass(Dimensions, [{ + key: "plotCoords", + value: function plotCoords() { + var w = this.w; + var gl = w.globals; + var lgRect = this.getLegendsRect(); + + if (gl.axisCharts) { + // for line / area / scatter / column + this.setGridCoordsForAxisCharts(lgRect); + } else { + // for pie / donuts / circle + this.setGridCoordsForNonAxisCharts(lgRect); + } + + this.titleSubtitleOffset(); // after calculating everything, apply padding set by user + + gl.gridHeight = gl.gridHeight - w.config.grid.padding.top - w.config.grid.padding.bottom; + gl.gridWidth = gl.gridWidth - w.config.grid.padding.left - w.config.grid.padding.right - this.xPadRight - this.xPadLeft; + gl.translateX = gl.translateX + w.config.grid.padding.left + this.xPadLeft; + gl.translateY = gl.translateY + w.config.grid.padding.top; + } + }, { + key: "conditionalChecksForAxisCoords", + value: function conditionalChecksForAxisCoords(xaxisLabelCoords, xtitleCoords) { + var w = this.w; + this.xAxisHeight = (xaxisLabelCoords.height + xtitleCoords.height) * w.globals.LINE_HEIGHT_RATIO + 15; + this.xAxisWidth = xaxisLabelCoords.width; + + if (this.xAxisHeight - xtitleCoords.height > w.config.xaxis.labels.maxHeight) { + this.xAxisHeight = w.config.xaxis.labels.maxHeight; + } + + if (w.config.xaxis.labels.minHeight && this.xAxisHeight < w.config.xaxis.labels.minHeight) { + this.xAxisHeight = w.config.xaxis.labels.minHeight; + } + + if (w.config.xaxis.floating) { + this.xAxisHeight = 0; + } + + if (!this.isBarHorizontal) { + this.yAxisWidth = this.getTotalYAxisWidth(); + } else { + this.yAxisWidth = w.globals.yLabelsCoords[0].width + w.globals.yTitleCoords[0].width + 15; + } + + if (!w.globals.isMultipleYAxis) { + if (this.yAxisWidth < w.config.yaxis[0].labels.minWidth) { + this.yAxisWidth = w.config.yaxis[0].labels.minWidth; + } + + if (this.yAxisWidth > w.config.yaxis[0].labels.maxWidth) { + this.yAxisWidth = w.config.yaxis[0].labels.maxWidth; + } + } + } + }, { + key: "setGridCoordsForAxisCharts", + value: function setGridCoordsForAxisCharts(lgRect) { + var w = this.w; + var gl = w.globals; + var yaxisLabelCoords = this.getyAxisLabelsCoords(); + var xaxisLabelCoords = this.getxAxisLabelsCoords(); + var yTitleCoords = this.getyAxisTitleCoords(); + var xtitleCoords = this.getxAxisTitleCoords(); + w.globals.yLabelsCoords = []; + w.globals.yTitleCoords = []; + w.config.yaxis.map(function (yaxe, index) { + // store the labels and titles coords in global vars + w.globals.yLabelsCoords.push({ + width: yaxisLabelCoords[index].width, + index: index + }); + w.globals.yTitleCoords.push({ + width: yTitleCoords[index].width, + index: index + }); + }); + this.conditionalChecksForAxisCoords(xaxisLabelCoords, xtitleCoords); + gl.translateXAxisY = w.globals.rotateXLabels ? this.xAxisHeight / 8 : -4; + gl.translateXAxisX = w.globals.rotateXLabels && w.globals.isXNumeric && w.config.xaxis.labels.rotate <= -45 ? -this.xAxisWidth / 4 : 0; + + if (this.isBarHorizontal) { + gl.rotateXLabels = false; + gl.translateXAxisY = -1 * (parseInt(w.config.xaxis.labels.style.fontSize) / 1.5); + } + + gl.translateXAxisY = gl.translateXAxisY + w.config.xaxis.labels.offsetY; + gl.translateXAxisX = gl.translateXAxisX + w.config.xaxis.labels.offsetX; + var yAxisWidth = this.yAxisWidth; + var xAxisHeight = this.xAxisHeight; + gl.xAxisLabelsHeight = this.xAxisHeight; + gl.xAxisHeight = this.xAxisHeight; + var translateY = 10; + + if (!w.config.grid.show || w.config.chart.type === 'radar') { + yAxisWidth = 0; + xAxisHeight = 35; + } + + if (this.isSparkline) { + lgRect = { + height: 0, + width: 0 + }; + xAxisHeight = 0; + yAxisWidth = 0; + translateY = 0; + } + + this.additionalPaddingXLabels(xaxisLabelCoords); + + switch (w.config.legend.position) { + case 'bottom': + gl.translateY = translateY; + gl.translateX = yAxisWidth; + gl.gridHeight = gl.svgHeight - lgRect.height - xAxisHeight - (!this.isSparkline ? w.globals.rotateXLabels ? 10 : 15 : 0); + gl.gridWidth = gl.svgWidth - yAxisWidth; + break; + + case 'top': + gl.translateY = lgRect.height + translateY; + gl.translateX = yAxisWidth; + gl.gridHeight = gl.svgHeight - lgRect.height - xAxisHeight - (!this.isSparkline ? w.globals.rotateXLabels ? 10 : 15 : 0); + gl.gridWidth = gl.svgWidth - yAxisWidth; + break; + + case 'left': + gl.translateY = translateY; + gl.translateX = lgRect.width + yAxisWidth; + gl.gridHeight = gl.svgHeight - xAxisHeight - 12; + gl.gridWidth = gl.svgWidth - lgRect.width - yAxisWidth; + break; + + case 'right': + gl.translateY = translateY; + gl.translateX = yAxisWidth; + gl.gridHeight = gl.svgHeight - xAxisHeight - 12; + gl.gridWidth = gl.svgWidth - lgRect.width - yAxisWidth - 5; + break; + + default: + throw new Error('Legend position not supported'); + } + + this.setGridXPosForDualYAxis(yTitleCoords, yaxisLabelCoords); // after drawing everything, set the Y axis positions + + var objyAxis = new YAxis(this.ctx); + objyAxis.setYAxisXPosition(yaxisLabelCoords, yTitleCoords); + } + }, { + key: "setGridCoordsForNonAxisCharts", + value: function setGridCoordsForNonAxisCharts(lgRect) { + var w = this.w; + var gl = w.globals; + var xPad = 0; + + if (w.config.legend.show && !w.config.legend.floating) { + xPad = 20; + } + + var offY = 10; + var offX = 0; + + if (w.config.chart.type === 'pie' || w.config.chart.type === 'donut') { + offY = offY + w.config.plotOptions.pie.offsetY; + offX = offX + w.config.plotOptions.pie.offsetX; + } else if (w.config.chart.type === 'radialBar') { + offY = offY + w.config.plotOptions.radialBar.offsetY; + offX = offX + w.config.plotOptions.radialBar.offsetX; + } + + if (!w.config.legend.show) { + gl.gridHeight = gl.svgHeight - 35; + gl.gridWidth = gl.gridHeight; + gl.translateY = offY - 10; + gl.translateX = offX + (gl.svgWidth - gl.gridWidth) / 2; + return; + } + + switch (w.config.legend.position) { + case 'bottom': + gl.gridHeight = gl.svgHeight - lgRect.height - 35; + gl.gridWidth = gl.gridHeight; + gl.translateY = offY - 20; + gl.translateX = offX + (gl.svgWidth - gl.gridWidth) / 2; + break; + + case 'top': + gl.gridHeight = gl.svgHeight - lgRect.height - 35; + gl.gridWidth = gl.gridHeight; + gl.translateY = lgRect.height + offY; + gl.translateX = offX + (gl.svgWidth - gl.gridWidth) / 2; + break; + + case 'left': + gl.gridWidth = gl.svgWidth - lgRect.width - xPad; + gl.gridHeight = gl.gridWidth; + gl.translateY = offY; + gl.translateX = offX + lgRect.width + xPad; + break; + + case 'right': + gl.gridWidth = gl.svgWidth - lgRect.width - xPad - 5; + gl.gridHeight = gl.gridWidth; + gl.translateY = offY; + gl.translateX = offX + 10; + break; + + default: + throw new Error('Legend position not supported'); + } + } + }, { + key: "setGridXPosForDualYAxis", + value: function setGridXPosForDualYAxis(yTitleCoords, yaxisLabelCoords) { + var w = this.w; + w.config.yaxis.map(function (yaxe, index) { + if (w.globals.ignoreYAxisIndexes.indexOf(index) === -1 && !w.config.yaxis[index].floating && w.config.yaxis[index].show) { + if (yaxe.opposite) { + w.globals.translateX = w.globals.translateX - (yaxisLabelCoords[index].width + yTitleCoords[index].width) - parseInt(w.config.yaxis[index].labels.style.fontSize) / 1.2 - 12; + } + } + }); + } // Sometimes, the last labels gets cropped in category/numeric xaxis. + // Hence, we add some additional padding based on the label length to avoid the last label being cropped. + // NOTE: datetime x-axis won't have any effect with this as we don't know the label length there due to many constraints. + + }, { + key: "additionalPaddingXLabels", + value: function additionalPaddingXLabels(xaxisLabelCoords) { + var _this = this; + + var w = this.w; + + if (w.config.xaxis.type === 'category' && this.isBarHorizontal || w.config.xaxis.type === 'numeric') { + var rightPad = function rightPad(labels) { + if (w.config.grid.padding.right < labels.width) { + _this.xPadRight = labels.width / 2 + 1; + } + }; + + var leftPad = function leftPad(labels) { + if (w.config.grid.padding.left < labels.width) { + _this.xPadLeft = labels.width / 2 + 1; + } + }; + + var lineArea = w.config.chart.type === 'line' || w.config.chart.type === 'area'; + w.config.yaxis.forEach(function (yaxe, i) { + var shouldPad = !yaxe.show || yaxe.floating || w.globals.collapsedSeriesIndices.indexOf(i) !== -1 || lineArea || yaxe.opposite && _this.isBarHorizontal; + + if (shouldPad) { + if (lineArea && w.globals.isMultipleYAxis && w.globals.collapsedSeriesIndices.indexOf(i) !== -1 || _this.isBarHorizontal && yaxe.opposite) { + leftPad(xaxisLabelCoords); + } + + if (!_this.isBarHorizontal && yaxe.opposite && w.globals.collapsedSeriesIndices.indexOf(i) !== -1 || lineArea && !w.globals.isMultipleYAxis) { + rightPad(xaxisLabelCoords); + } + } + }); + } + } + }, { + key: "titleSubtitleOffset", + value: function titleSubtitleOffset() { + var w = this.w; + var gl = w.globals; + var gridShrinkOffset = this.isSparkline ? 0 : 10; + + if (w.config.title.text !== undefined) { + gridShrinkOffset += w.config.title.margin; + } else { + gridShrinkOffset += this.isSparkline ? 0 : 5; + } + + if (w.config.subtitle.text !== undefined) { + gridShrinkOffset += w.config.subtitle.margin; + } else { + gridShrinkOffset += this.isSparkline ? 0 : 5; + } + + if (w.config.legend.show && w.config.legend.position === 'bottom' && !w.config.legend.floating && w.config.series.length > 1) { + gridShrinkOffset += 10; + } + + var titleCoords = this.getTitleSubtitleCoords('title'); + var subtitleCoords = this.getTitleSubtitleCoords('subtitle'); + gl.gridHeight = gl.gridHeight - titleCoords.height - subtitleCoords.height - gridShrinkOffset; + gl.translateY = gl.translateY + titleCoords.height + subtitleCoords.height + gridShrinkOffset; + } + }, { + key: "getTotalYAxisWidth", + value: function getTotalYAxisWidth() { + var w = this.w; + var yAxisWidth = 0; + var padding = 10; + + var isHiddenYAxis = function isHiddenYAxis(index) { + return w.globals.ignoreYAxisIndexes.indexOf(index) > -1; + }; + + w.globals.yLabelsCoords.map(function (yLabelCoord, index) { + var floating = w.config.yaxis[index].floating; + + if (yLabelCoord.width > 0 && !floating) { + yAxisWidth = yAxisWidth + yLabelCoord.width + padding; + + if (isHiddenYAxis(index)) { + yAxisWidth = yAxisWidth - yLabelCoord.width - padding; + } + } else { + yAxisWidth = yAxisWidth + (floating || !w.config.yaxis[index].show ? 0 : 5); + } + }); + w.globals.yTitleCoords.map(function (yTitleCoord, index) { + var floating = w.config.yaxis[index].floating; + padding = parseInt(w.config.yaxis[index].title.style.fontSize); + + if (yTitleCoord.width > 0 && !floating) { + yAxisWidth = yAxisWidth + yTitleCoord.width + padding; + + if (isHiddenYAxis(index)) { + yAxisWidth = yAxisWidth - yTitleCoord.width - padding; + } + } else { + yAxisWidth = yAxisWidth + (floating || !w.config.yaxis[index].show ? 0 : 5); + } + }); + return yAxisWidth; + } + }, { + key: "getxAxisTimeScaleLabelsCoords", + value: function getxAxisTimeScaleLabelsCoords() { + var w = this.w; + var rect; + var timescaleLabels = w.globals.timelineLabels.slice(); + var labels = timescaleLabels.map(function (label) { + return label.value; + }); // get the longest string from the labels array and also apply label formatter to it + + var val = labels.reduce(function (a, b) { + // if undefined, maybe user didn't pass the datetime(x) values + if (typeof a === 'undefined') { + console.error('You have possibly supplied invalid Date format. Please supply a valid JavaScript Date'); + return 0; + } else { + return a.length > b.length ? a : b; + } + }, 0); + var graphics = new Graphics(this.ctx); + rect = graphics.getTextRects(val, w.config.xaxis.labels.style.fontSize); + var totalWidthRotated = rect.width * 1.05 * labels.length; + + if (totalWidthRotated > w.globals.gridWidth && w.config.xaxis.labels.rotate !== 0) { + w.globals.overlappingXLabels = true; + } + + return rect; + } + /** + * Get X Axis Dimensions + * @memberof Dimensions + * @return {{width, height}} + **/ + + }, { + key: "getxAxisLabelsCoords", + value: function getxAxisLabelsCoords() { + var w = this.w; + var xaxisLabels = w.globals.labels.slice(); + var rect; + + if (w.globals.timelineLabels.length > 0) { + var coords = this.getxAxisTimeScaleLabelsCoords(); + rect = { + width: coords.width, + height: coords.height + }; + } else { + var lgWidthForSideLegends = w.config.legend.position === 'left' && w.config.legend.position === 'right' && !w.config.legend.floating ? this.lgRect.width : 0; // get the longest string from the labels array and also apply label formatter to it + + var val = xaxisLabels.reduce(function (a, b) { + return a.length > b.length ? a : b; + }, 0); // the labels gets changed for bar charts + + if (this.isBarHorizontal) { + val = w.globals.yAxisScale[0].result.reduce(function (a, b) { + return a.length > b.length ? a : b; + }, 0); + } + + var xlbFormatter = w.globals.xLabelFormatter; + var xFormat = new Formatters(this.ctx); + val = xFormat.xLabelFormat(xlbFormatter, val); + var graphics = new Graphics(this.ctx); + var xLabelrect = graphics.getTextRects(val, w.config.xaxis.labels.style.fontSize); + rect = { + width: xLabelrect.width, + height: xLabelrect.height + }; + + if (rect.width * xaxisLabels.length > w.globals.svgWidth - lgWidthForSideLegends - this.yAxisWidth && w.config.xaxis.labels.rotate !== 0) { + if (!this.isBarHorizontal) { + w.globals.rotateXLabels = true; + xLabelrect = graphics.getTextRects(val, w.config.xaxis.labels.style.fontSize, w.config.xaxis.labels.style.fontFamily, "rotate(".concat(w.config.xaxis.labels.rotate, " 0 0)"), false); + rect.height = xLabelrect.height / 1.66; + } + } else { + w.globals.rotateXLabels = false; + } + } + + if (!w.config.xaxis.labels.show) { + rect = { + width: 0, + height: 0 + }; + } + + return { + width: rect.width, + height: rect.height + }; + } + /** + * Get Y Axis Dimensions + * @memberof Dimensions + * @return {{width, height}} + **/ + + }, { + key: "getyAxisLabelsCoords", + value: function getyAxisLabelsCoords() { + var _this2 = this; + + var w = this.w; + var width = 0; + var height = 0; + var ret = []; + var labelPad = 10; + w.config.yaxis.map(function (yaxe, index) { + if (yaxe.show && yaxe.labels.show && w.globals.yAxisScale[index].result.length) { + var lbFormatter = w.globals.yLabelFormatters[index]; // the second parameter -1 is the index of tick which user can use in the formatter + + var val = lbFormatter(w.globals.yAxisScale[index].niceMax, -1); // if user has specified a custom formatter, and the result is null or empty, we need to discard the formatter and take the value as it is. + + if (typeof val === 'undefined' || val.length === 0) { + val = w.globals.yAxisScale[index].niceMax; + } + + if (_this2.isBarHorizontal) { + labelPad = 0; + var barYaxisLabels = w.globals.labels.slice(); // get the longest string from the labels array and also apply label formatter to it + + val = barYaxisLabels.reduce(function (a, b) { + return a.length > b.length ? a : b; + }, 0); + val = lbFormatter(val, -1); + } + + var graphics = new Graphics(_this2.ctx); + var rect = graphics.getTextRects(val, yaxe.labels.style.fontSize); + ret.push({ + width: rect.width + labelPad, + height: rect.height + }); + } else { + ret.push({ + width: width, + height: height + }); + } + }); + return ret; + } + /** + * Get X Axis Title Dimensions + * @memberof Dimensions + * @return {{width, height}} + **/ + + }, { + key: "getxAxisTitleCoords", + value: function getxAxisTitleCoords() { + var w = this.w; + var width = 0; + var height = 0; + + if (w.config.xaxis.title.text !== undefined) { + var graphics = new Graphics(this.ctx); + var rect = graphics.getTextRects(w.config.xaxis.title.text, w.config.xaxis.title.style.fontSize); + width = rect.width; + height = rect.height; + } + + return { + width: width, + height: height + }; + } + /** + * Get Y Axis Dimensions + * @memberof Dimensions + * @return {{width, height}} + **/ + + }, { + key: "getyAxisTitleCoords", + value: function getyAxisTitleCoords() { + var _this3 = this; + + var w = this.w; + var ret = []; + w.config.yaxis.map(function (yaxe, index) { + if (yaxe.show && yaxe.title.text !== undefined) { + var graphics = new Graphics(_this3.ctx); + var rect = graphics.getTextRects(yaxe.title.text, yaxe.title.style.fontSize, yaxe.title.style.fontFamily, 'rotate(-90 0 0)', false); + ret.push({ + width: rect.width, + height: rect.height + }); + } else { + ret.push({ + width: 0, + height: 0 + }); + } + }); + return ret; + } + /** + * Get Chart Title/Subtitle Dimensions + * @memberof Dimensions + * @return {{width, height}} + **/ + + }, { + key: "getTitleSubtitleCoords", + value: function getTitleSubtitleCoords(type) { + var w = this.w; + var width = 0; + var height = 0; + var floating = type === 'title' ? w.config.title.floating : w.config.subtitle.floating; + var el = w.globals.dom.baseEl.querySelector(".apexcharts-".concat(type, "-text")); + + if (el !== null && !floating) { + var coord = el.getBoundingClientRect(); + width = coord.width; + height = w.globals.axisCharts ? coord.height + 5 : coord.height; + } + + return { + width: width, + height: height + }; + } + }, { + key: "getLegendsRect", + value: function getLegendsRect() { + var w = this.w; + var elLegendWrap = w.globals.dom.baseEl.querySelector('.apexcharts-legend'); + var lgRect = Object.assign({}, Utils.getBoundingClientRect(elLegendWrap)); + + if (elLegendWrap !== null && !w.config.legend.floating && w.config.legend.show) { + this.lgRect = { + x: lgRect.x, + y: lgRect.y, + height: lgRect.height, + width: lgRect.height === 0 ? 0 : lgRect.width + }; + } else { + this.lgRect = { + x: 0, + y: 0, + height: 0, + width: 0 + }; + } + + return this.lgRect; + } + }]); + + return Dimensions; +}(); + +/** + * ApexCharts TimeScale Class for generating time ticks for x-axis. + * + * @module TimeScale + **/ + +var TimeScale = +/*#__PURE__*/ +function () { + function TimeScale(ctx) { + _classCallCheck(this, TimeScale); + + this.ctx = ctx; + this.w = ctx.w; + this.timeScaleArray = []; + } + + _createClass(TimeScale, [{ + key: "calculateTimeScaleTicks", + value: function calculateTimeScaleTicks(minX, maxX) { + var _this = this; + + var w = this.w; // null check when no series to show + + if (w.globals.allSeriesCollapsed) { + w.globals.labels = []; + w.globals.timelineLabels = []; + return []; + } + + var dt = new DateTime(this.ctx); + var daysDiff = (maxX - minX) / (1000 * 60 * 60 * 24); + this.determineInterval(daysDiff); + w.globals.disableZoomIn = false; + w.globals.disableZoomOut = false; + + if (daysDiff < 0.005) { + w.globals.disableZoomIn = true; + } else if (daysDiff > 50000) { + w.globals.disableZoomOut = true; + } + + var timeIntervals = dt.getTimeUnitsfromTimestamp(minX, maxX); + var daysWidthOnXAxis = w.globals.gridWidth / daysDiff; + var hoursWidthOnXAxis = daysWidthOnXAxis / 24; + var minutesWidthOnXAxis = hoursWidthOnXAxis / 60; + var numberOfHours = Math.floor(daysDiff * 24); + var numberOfMinutes = Math.floor(daysDiff * 24 * 60); + var numberOfDays = Math.floor(daysDiff); + var numberOfMonths = Math.floor(daysDiff / 30); + var numberOfYears = Math.floor(daysDiff / 365); + var firstVal = { + minMinute: timeIntervals.minMinute, + minHour: timeIntervals.minHour, + minDate: timeIntervals.minDate, + minMonth: timeIntervals.minMonth, + minYear: timeIntervals.minYear + }; + var currentMinute = firstVal.minMinute; + var currentHour = firstVal.minHour; + var currentMonthDate = firstVal.minDate; + var currentDate = firstVal.minDate; + var currentMonth = firstVal.minMonth; + var currentYear = firstVal.minYear; + var params = { + firstVal: firstVal, + currentMinute: currentMinute, + currentHour: currentHour, + currentMonthDate: currentMonthDate, + currentDate: currentDate, + currentMonth: currentMonth, + currentYear: currentYear, + daysWidthOnXAxis: daysWidthOnXAxis, + hoursWidthOnXAxis: hoursWidthOnXAxis, + minutesWidthOnXAxis: minutesWidthOnXAxis, + numberOfMinutes: numberOfMinutes, + numberOfHours: numberOfHours, + numberOfDays: numberOfDays, + numberOfMonths: numberOfMonths, + numberOfYears: numberOfYears + }; + + switch (this.tickInterval) { + case 'years': + { + this.generateYearScale(params); + break; + } + + case 'months': + case 'half_year': + { + this.generateMonthScale(params); + break; + } + + case 'months_days': + case 'months_fortnight': + case 'days': + case 'week_days': + { + this.generateDayScale(params); + break; + } + + case 'hours': + { + this.generateHourScale(params); + break; + } + + case 'minutes': + this.generateMinuteScale(params); + break; + } // first, we will adjust the month values index + // as in the upper function, it is starting from 0 + // we will start them from 1 + + + var adjustedMonthInTimeScaleArray = this.timeScaleArray.map(function (ts) { + var defaultReturn = { + position: ts.position, + unit: ts.unit, + year: ts.year, + day: ts.day ? ts.day : 1, + hour: ts.hour ? ts.hour : 0, + month: ts.month + 1 + }; + + if (ts.unit === 'month') { + return _objectSpread({}, defaultReturn, { + value: ts.value + 1 + }); + } else if (ts.unit === 'day' || ts.unit === 'hour') { + return _objectSpread({}, defaultReturn, { + value: ts.value + }); + } else if (ts.unit === 'minute') { + return _objectSpread({}, defaultReturn, { + value: ts.value, + minute: ts.value + }); + } + + return ts; + }); + var filteredTimeScale = adjustedMonthInTimeScaleArray.filter(function (ts) { + var modulo = 1; + var ticks = Math.ceil(w.globals.gridWidth / 120); + var value = ts.value; + + if (w.config.xaxis.tickAmount !== undefined) { + ticks = w.config.xaxis.tickAmount; + } + + if (adjustedMonthInTimeScaleArray.length > ticks) { + modulo = Math.floor(adjustedMonthInTimeScaleArray.length / ticks); + } + + var shouldNotSkipUnit = false; // there is a big change in unit i.e days to months + + var shouldNotPrint = false; // should skip these values + + switch (_this.tickInterval) { + case 'half_year': + modulo = 7; + + if (ts.unit === 'year') { + shouldNotSkipUnit = true; + } + + break; + + case 'months': + modulo = 1; + + if (ts.unit === 'year') { + shouldNotSkipUnit = true; + } + + break; + + case 'months_fortnight': + modulo = 15; + + if (ts.unit === 'year' || ts.unit === 'month') { + shouldNotSkipUnit = true; + } + + if (value === 30) { + shouldNotPrint = true; + } + + break; + + case 'months_days': + modulo = 10; + + if (ts.unit === 'month') { + shouldNotSkipUnit = true; + } + + if (value === 30) { + shouldNotPrint = true; + } + + break; + + case 'week_days': + modulo = 8; + + if (ts.unit === 'month') { + shouldNotSkipUnit = true; + } + + break; + + case 'days': + modulo = 1; + + if (ts.unit === 'month') { + shouldNotSkipUnit = true; + } + + break; + + case 'hours': + if (ts.unit === 'day') { + shouldNotSkipUnit = true; + } + + break; + + case 'minutes': + if (value % 5 !== 0) { + shouldNotPrint = true; + } + + break; + } + + if (_this.tickInterval === 'minutes' || _this.tickInterval === 'hours') { + if (!shouldNotPrint) { + return true; + } + } else { + if ((value % modulo === 0 || shouldNotSkipUnit) && !shouldNotPrint) { + return true; + } + } + }); + return filteredTimeScale; + } + }, { + key: "recalcDimensionsBasedOnFormat", + value: function recalcDimensionsBasedOnFormat(filteredTimeScale) { + var w = this.w; + var reformattedTimescaleArray = this.formatDates(filteredTimeScale); + var removedOverlappingTS = this.removeOverlappingTS(reformattedTimescaleArray); + w.globals.timelineLabels = removedOverlappingTS.slice(); // at this stage, we need to re-calculate coords of the grid as timeline labels may have altered the xaxis labels coords + // The reason we can't do this prior to this stage is because timeline labels depends on gridWidth, and as the ticks are calculated based on available gridWidth, there can be unknown number of ticks generated for different minX and maxX + // Dependency on Dimensions(), need to refactor correctly + // TODO - find an alternate way to avoid calling this Heavy method twice + + var dimensions = new Dimensions(this.ctx); + dimensions.plotCoords(); + } + }, { + key: "determineInterval", + value: function determineInterval(daysDiff) { + switch (true) { + case daysDiff > 1825: + // difference is more than 5 years + this.tickInterval = 'years'; + break; + + case daysDiff > 800 && daysDiff <= 1825: + this.tickInterval = 'half_year'; + break; + + case daysDiff > 180 && daysDiff <= 800: + this.tickInterval = 'months'; + break; + + case daysDiff > 90 && daysDiff <= 180: + this.tickInterval = 'months_fortnight'; + break; + + case daysDiff > 60 && daysDiff <= 90: + this.tickInterval = 'months_days'; + break; + + case daysDiff > 30 && daysDiff <= 60: + this.tickInterval = 'week_days'; + break; + + case daysDiff > 2 && daysDiff <= 30: + this.tickInterval = 'days'; + break; + + case daysDiff > 0.1 && daysDiff <= 2: + // less than 2 days + this.tickInterval = 'hours'; + break; + + case daysDiff < 0.1: + this.tickInterval = 'minutes'; + break; + + default: + this.tickInterval = 'days'; + break; + } + } + }, { + key: "generateYearScale", + value: function generateYearScale(params) { + var firstVal = params.firstVal, + currentMonth = params.currentMonth, + currentYear = params.currentYear, + daysWidthOnXAxis = params.daysWidthOnXAxis, + numberOfYears = params.numberOfYears; + var firstTickValue = firstVal.minYear; + var firstTickPosition = 0; + var dt = new DateTime(this.ctx); + var unit = 'year'; + + if (firstVal.minDate > 1 && firstVal.minMonth > 0) { + var remainingDays = dt.determineRemainingDaysOfYear(firstVal.minYear, firstVal.minMonth, firstVal.minDate); // remainingDaysofFirstMonth is used to reacht the 2nd tick position + + var remainingDaysOfFirstYear = dt.determineDaysOfYear(firstVal.minYear) - remainingDays + 1; // calculate the first tick position + + firstTickPosition = remainingDaysOfFirstYear * daysWidthOnXAxis; + firstTickValue = firstVal.minYear + 1; // push the first tick in the array + + this.timeScaleArray.push({ + position: firstTickPosition, + value: firstTickValue, + unit: unit, + year: firstTickValue, + month: Utils.monthMod(currentMonth + 1) + }); + } else if (firstVal.minDate === 1 && firstVal.minMonth === 0) { + // push the first tick in the array + this.timeScaleArray.push({ + position: firstTickPosition, + value: firstTickValue, + unit: unit, + year: currentYear, + month: Utils.monthMod(currentMonth + 1) + }); + } + + var year = firstTickValue; + var pos = firstTickPosition; // keep drawing rest of the ticks + + for (var i = 0; i < numberOfYears; i++) { + year++; + pos = dt.determineDaysOfYear(year - 1) * daysWidthOnXAxis + pos; + this.timeScaleArray.push({ + position: pos, + value: year, + unit: unit, + year: year, + month: 1 + }); + } + } + }, { + key: "generateMonthScale", + value: function generateMonthScale(params) { + var firstVal = params.firstVal, + currentMonthDate = params.currentMonthDate, + currentMonth = params.currentMonth, + currentYear = params.currentYear, + daysWidthOnXAxis = params.daysWidthOnXAxis, + numberOfMonths = params.numberOfMonths; + var firstTickValue = currentMonth; + var firstTickPosition = 0; + var dt = new DateTime(this.ctx); + var unit = 'month'; + var yrCounter = 0; + + if (firstVal.minDate > 1) { + // remainingDaysofFirstMonth is used to reacht the 2nd tick position + var remainingDaysOfFirstMonth = dt.determineDaysOfMonths(currentMonth + 1, firstVal.minYear) - currentMonthDate + 1; // calculate the first tick position + + firstTickPosition = remainingDaysOfFirstMonth * daysWidthOnXAxis; + firstTickValue = Utils.monthMod(currentMonth + 1); + var year = currentYear + yrCounter; + + var _month = Utils.monthMod(firstTickValue); + + var value = firstTickValue; // it's Jan, so update the year + + if (firstTickValue === 0) { + unit = 'year'; + value = year; + _month = 1; + yrCounter += 1; + year = year + yrCounter; + } // push the first tick in the array + + + this.timeScaleArray.push({ + position: firstTickPosition, + value: value, + unit: unit, + year: year, + month: _month + }); + } else { + // push the first tick in the array + this.timeScaleArray.push({ + position: firstTickPosition, + value: firstTickValue, + unit: unit, + year: currentYear, + month: Utils.monthMod(currentMonth) + }); + } + + var month = firstTickValue + 1; + var pos = firstTickPosition; // keep drawing rest of the ticks + + for (var i = 0, j = 1; i < numberOfMonths; i++, j++) { + month = Utils.monthMod(month); + + if (month === 0) { + unit = 'year'; + yrCounter += 1; + } else { + unit = 'month'; + } + + var _year = currentYear + Math.floor(month / 12) + yrCounter; + + pos = dt.determineDaysOfMonths(month, _year) * daysWidthOnXAxis + pos; + var monthVal = month === 0 ? _year : month; + this.timeScaleArray.push({ + position: pos, + value: monthVal, + unit: unit, + year: _year, + month: month === 0 ? 1 : month + }); + month++; + } + } + }, { + key: "generateDayScale", + value: function generateDayScale(params) { + var firstVal = params.firstVal, + currentMonth = params.currentMonth, + currentYear = params.currentYear, + hoursWidthOnXAxis = params.hoursWidthOnXAxis, + numberOfDays = params.numberOfDays; + var dt = new DateTime(this.ctx); + var unit = 'day'; + var remainingHours = 24 - firstVal.minHour; + var yrCounter = 0; // calculate the first tick position + + var firstTickPosition = remainingHours * hoursWidthOnXAxis; + var firstTickValue = firstVal.minDate + 1; + var val = firstTickValue; + + var changeMonth = function changeMonth(dateVal, month, year) { + var monthdays = dt.determineDaysOfMonths(month + 1, year); + + if (dateVal > monthdays) { + month = month + 1; + date = 1; + unit = 'month'; + val = month; + return month; + } + + return month; + }; + + var date = firstTickValue; + var month = changeMonth(date, currentMonth, currentYear); // push the first tick in the array + + this.timeScaleArray.push({ + position: firstTickPosition, + value: val, + unit: unit, + year: currentYear, + month: Utils.monthMod(month), + day: date + }); + var pos = firstTickPosition; // keep drawing rest of the ticks + + for (var i = 0; i < numberOfDays; i++) { + date += 1; + unit = 'day'; + month = changeMonth(date, month, currentYear + Math.floor(month / 12) + yrCounter); + var year = currentYear + Math.floor(month / 12) + yrCounter; + pos = 24 * hoursWidthOnXAxis + pos; + + var _val = date === 1 ? Utils.monthMod(month) : date; + + this.timeScaleArray.push({ + position: pos, + value: _val, + unit: unit, + year: year, + month: Utils.monthMod(month), + day: _val + }); + } + } + }, { + key: "generateHourScale", + value: function generateHourScale(params) { + var firstVal = params.firstVal, + currentDate = params.currentDate, + currentMonth = params.currentMonth, + currentYear = params.currentYear, + minutesWidthOnXAxis = params.minutesWidthOnXAxis, + numberOfHours = params.numberOfHours; + var dt = new DateTime(this.ctx); + var yrCounter = 0; + var unit = 'hour'; + + var changeDate = function changeDate(dateVal, month) { + var monthdays = dt.determineDaysOfMonths(month + 1, currentYear); + + if (dateVal > monthdays) { + date = 1; + month = month + 1; + } + + return { + month: month, + date: date + }; + }; + + var changeMonth = function changeMonth(dateVal, month) { + var monthdays = dt.determineDaysOfMonths(month + 1, currentYear); + + if (dateVal > monthdays) { + month = month + 1; + return month; + } + + return month; + }; + + var remainingMins = 60 - firstVal.minMinute; + var firstTickPosition = remainingMins * minutesWidthOnXAxis; + var firstTickValue = firstVal.minHour + 1; + var hour = firstTickValue + 1; + + if (remainingMins === 60) { + firstTickPosition = 0; + firstTickValue = firstVal.minHour; + hour = firstTickValue + 1; + } + + var date = currentDate; + var month = changeMonth(date, currentMonth); // push the first tick in the array + + this.timeScaleArray.push({ + position: firstTickPosition, + value: firstTickValue, + unit: unit, + day: date, + hour: hour, + year: currentYear, + month: Utils.monthMod(month) + }); + var pos = firstTickPosition; // keep drawing rest of the ticks + + for (var i = 0; i < numberOfHours; i++) { + unit = 'hour'; + + if (hour >= 24) { + hour = 0; + date += 1; + unit = 'day'; + var checkNextMonth = changeDate(date, month); + month = checkNextMonth.month; + month = changeMonth(date, month); + } + + var year = currentYear + Math.floor(month / 12) + yrCounter; + pos = hour === 0 && i === 0 ? remainingMins * minutesWidthOnXAxis : 60 * minutesWidthOnXAxis + pos; + var val = hour === 0 ? date : hour; + this.timeScaleArray.push({ + position: pos, + value: val, + unit: unit, + hour: hour, + day: date, + year: year, + month: Utils.monthMod(month) + }); + hour++; + } + } + }, { + key: "generateMinuteScale", + value: function generateMinuteScale(params) { + var firstVal = params.firstVal, + currentMinute = params.currentMinute, + currentHour = params.currentHour, + currentDate = params.currentDate, + currentMonth = params.currentMonth, + currentYear = params.currentYear, + minutesWidthOnXAxis = params.minutesWidthOnXAxis, + numberOfMinutes = params.numberOfMinutes; + var yrCounter = 0; + var unit = 'minute'; + var remainingMins = currentMinute - firstVal.minMinute; + var firstTickPosition = minutesWidthOnXAxis - remainingMins; + var firstTickValue = firstVal.minMinute + 1; + var minute = firstTickValue + 1; + var date = currentDate; + var month = currentMonth; + var year = currentYear; + var hour = currentHour; // push the first tick in the array + + this.timeScaleArray.push({ + position: firstTickPosition, + value: firstTickValue, + unit: unit, + day: date, + hour: hour, + minute: minute, + year: year, + month: Utils.monthMod(month) + }); + var pos = firstTickPosition; // keep drawing rest of the ticks + + for (var i = 0; i < numberOfMinutes; i++) { + if (minute >= 60) { + minute = 0; + hour += 1; + + if (hour === 24) { + hour = 0; + } + } + + var _year2 = currentYear + Math.floor(month / 12) + yrCounter; + + pos = minutesWidthOnXAxis + pos; + var val = minute; + this.timeScaleArray.push({ + position: pos, + value: val, + unit: unit, + hour: hour, + minute: minute, + day: date, + year: _year2, + month: Utils.monthMod(month) + }); + minute++; + } + } + }, { + key: "createRawDateString", + value: function createRawDateString(ts, value) { + var raw = ts.year; + raw += '-' + ('0' + ts.month.toString()).slice(-2); // unit is day + + if (ts.unit === 'day') { + raw += ts.unit === 'day' ? '-' + ('0' + value).slice(-2) : '-01'; + } else { + raw += '-' + ('0' + (ts.day ? ts.day : '1')).slice(-2); + } // unit is hour + + + if (ts.unit === 'hour') { + raw += ts.unit === 'hour' ? 'T' + ('0' + value).slice(-2) : 'T00'; + } else { + raw += 'T' + ('0' + (ts.hour ? ts.hour : '0')).slice(-2); + } // unit is minute + + + raw += ts.unit === 'minute' ? ':' + ('0' + value).slice(-2) + ':00.000Z' : ':00:00.000Z'; + return raw; + } + }, { + key: "formatDates", + value: function formatDates(filteredTimeScale) { + var _this2 = this; + + var w = this.w; + var reformattedTimescaleArray = filteredTimeScale.map(function (ts) { + var value = ts.value.toString(); + var dt = new DateTime(_this2.ctx); + + var raw = _this2.createRawDateString(ts, value); // parse the whole ISO datestring + + + var dateString = new Date(Date.parse(raw)); + + if (w.config.xaxis.labels.format === undefined) { + var customFormat = 'dd MMM'; + var dtFormatter = w.config.xaxis.labels.datetimeFormatter; + if (ts.unit === 'year') customFormat = dtFormatter.year; + if (ts.unit === 'month') customFormat = dtFormatter.month; + if (ts.unit === 'day') customFormat = dtFormatter.day; + if (ts.unit === 'hour') customFormat = dtFormatter.hour; + if (ts.unit === 'minute') customFormat = dtFormatter.minute; + value = dt.formatDate(dateString, customFormat, true, false); + } else { + value = dt.formatDate(dateString, w.config.xaxis.labels.format); + } + + return { + dateString: raw, + position: ts.position, + value: value, + unit: ts.unit, + year: ts.year, + month: ts.month + }; + }); + return reformattedTimescaleArray; + } + }, { + key: "removeOverlappingTS", + value: function removeOverlappingTS(arr) { + var _this3 = this; + + var graphics = new Graphics(this.ctx); + var lastDrawnIndex = 0; + var filteredArray = arr.map(function (item, index) { + if (index > 0 && _this3.w.config.xaxis.labels.hideOverlappingLabels) { + var prevLabelWidth = graphics.getTextRects(arr[lastDrawnIndex].value).width; + var prevPos = arr[lastDrawnIndex].position; + var pos = item.position; + + if (pos > prevPos + prevLabelWidth + 10) { + lastDrawnIndex = index; + return item; + } else { + return null; + } + } else { + return item; + } + }); + filteredArray = filteredArray.filter(function (f) { + return f !== null; + }); + return filteredArray; + } + }]); + + return TimeScale; +}(); + +/** + * ApexCharts Core Class responsible for major calculations and creating elements. + * + * @module Core + **/ + +var Core = +/*#__PURE__*/ +function () { + function Core(el, ctx) { + _classCallCheck(this, Core); + + this.ctx = ctx; + this.w = ctx.w; + this.el = el; + this.coreUtils = new CoreUtils(this.ctx); + this.twoDSeries = []; + this.threeDSeries = []; + this.twoDSeriesX = []; + } // get data and store into appropriate vars + + + _createClass(Core, [{ + key: "setupElements", + value: function setupElements() { + var gl = this.w.globals; + var cnf = this.w.config; // const graphics = new Graphics(this.ctx) + + var ct = cnf.chart.type; + var axisChartsArrTypes = ['line', 'area', 'bar', 'candlestick', 'radar', 'scatter', 'bubble', 'heatmap']; + var xyChartsArrTypes = ['line', 'area', 'bar', 'candlestick', 'scatter', 'bubble']; + gl.axisCharts = axisChartsArrTypes.indexOf(ct) > -1; + gl.xyCharts = xyChartsArrTypes.indexOf(ct) > -1; + gl.chartClass = '.apexcharts' + gl.cuid; + gl.dom.baseEl = this.el; + gl.dom.elWrap = document.createElement('div'); + Graphics.setAttrs(gl.dom.elWrap, { + id: gl.chartClass.substring(1), + class: 'apexcharts-canvas ' + gl.chartClass.substring(1) + }); + this.el.appendChild(gl.dom.elWrap); + gl.dom.Paper = new window.SVG.Doc(gl.dom.elWrap); + gl.dom.Paper.attr({ + class: 'apexcharts-svg', + 'xmlns:data': 'ApexChartsNS', + transform: "translate(".concat(cnf.chart.offsetX, ", ").concat(cnf.chart.offsetY, ")") + }); + gl.dom.Paper.node.style.background = cnf.chart.background; + this.setSVGDimensions(); + gl.dom.elGraphical = gl.dom.Paper.group().attr({ + class: 'apexcharts-inner apexcharts-graphical' + }); + gl.dom.elDefs = gl.dom.Paper.defs(); + gl.dom.elLegendWrap = document.createElement('div'); + gl.dom.elLegendWrap.classList.add('apexcharts-legend'); + gl.dom.elWrap.appendChild(gl.dom.elLegendWrap); // gl.dom.Paper.add(gl.dom.elLegendWrap) + + gl.dom.Paper.add(gl.dom.elGraphical); + gl.dom.elGraphical.add(gl.dom.elDefs); + } + }, { + key: "plotChartType", + value: function plotChartType(ser, xyRatios) { + var w = this.w; + var cnf = w.config; + var gl = w.globals; + var lineSeries = { + series: [], + i: [] + }; + var areaSeries = { + series: [], + i: [] + }; + var scatterSeries = { + series: [], + i: [] + }; + var columnSeries = { + series: [], + i: [] + }; + var candlestickSeries = { + series: [], + i: [] + }; + gl.series.map(function (series, st) { + // if user has specified a particular type for particular series + if (typeof ser[st].type !== 'undefined') { + if (ser[st].type === 'column' || ser[st].type === 'bar') { + w.config.plotOptions.bar.horizontal = false; // bar not supported in mixed charts + + columnSeries.series.push(series); + columnSeries.i.push(st); + } else if (ser[st].type === 'area') { + areaSeries.series.push(series); + areaSeries.i.push(st); + } else if (ser[st].type === 'line') { + lineSeries.series.push(series); + lineSeries.i.push(st); + } else if (ser[st].type === 'scatter') { + scatterSeries.series.push(series); + scatterSeries.i.push(st); + } else if (ser[st].type === 'bubble') ; else if (ser[st].type === 'candlestick') { + candlestickSeries.series.push(series); + candlestickSeries.i.push(st); + } else { + // user has specified type, but it is not valid (other than line/area/column) + console.warn('You have specified an unrecognized chart type. Available types for this propery are line/area/column/bar/scatter/bubble'); + } + + gl.comboCharts = true; + } else { + lineSeries.series.push(series); + lineSeries.i.push(st); + } + }); + var line = new Line(this.ctx, xyRatios); + var candlestick = new CandleStick(this.ctx, xyRatios); + var pie = new Pie(this.ctx); + var radialBar = new Radial(this.ctx); + var radar = new Radar(this.ctx); + var elGraph = []; + + if (gl.comboCharts) { + if (areaSeries.series.length > 0) { + elGraph.push(line.draw(areaSeries.series, 'area', areaSeries.i)); + } + + if (columnSeries.series.length > 0) { + if (w.config.chart.stacked) { + var barStacked = new BarStacked(this.ctx, xyRatios); + elGraph.push(barStacked.draw(columnSeries.series, columnSeries.i)); + } else { + var bar = new Bar(this.ctx, xyRatios); + elGraph.push(bar.draw(columnSeries.series, columnSeries.i)); + } + } + + if (lineSeries.series.length > 0) { + elGraph.push(line.draw(lineSeries.series, 'line', lineSeries.i)); + } + + if (candlestickSeries.series.length > 0) { + elGraph.push(candlestick.draw(candlestickSeries.series, candlestickSeries.i)); + } + + if (scatterSeries.series.length > 0) { + var scatterLine = new Line(this.ctx, xyRatios, true); + elGraph.push(scatterLine.draw(scatterSeries.series, 'scatter', scatterSeries.i)); + } // TODO: allow bubble series in a combo chart + // if (bubbleSeries.series.length > 0) { + // const bubbleLine = new Line(this.ctx, xyRatios, true) + // elGraph.push( + // bubbleLine.draw(bubbleSeries.series, 'bubble', bubbleSeries.i) + // ) + // } + + } else { + switch (cnf.chart.type) { + case 'line': + elGraph = line.draw(gl.series, 'line'); + break; + + case 'area': + elGraph = line.draw(gl.series, 'area'); + break; + + case 'bar': + if (cnf.chart.stacked) { + var _barStacked = new BarStacked(this.ctx, xyRatios); + + elGraph = _barStacked.draw(gl.series); + } else { + var _bar = new Bar(this.ctx, xyRatios); + + elGraph = _bar.draw(gl.series); + } + + break; + + case 'candlestick': + var candleStick = new CandleStick(this.ctx, xyRatios); + elGraph = candleStick.draw(gl.series); + break; + + case 'heatmap': + var heatmap = new HeatMap(this.ctx, xyRatios); + elGraph = heatmap.draw(gl.series); + break; + + case 'pie': + case 'donut': + elGraph = pie.draw(gl.series); + break; + + case 'radialBar': + elGraph = radialBar.draw(gl.series); + break; + + case 'radar': + elGraph = radar.draw(gl.series); + break; + + default: + elGraph = line.draw(gl.series); + } + } + + return elGraph; + } + }, { + key: "setSVGDimensions", + value: function setSVGDimensions() { + var gl = this.w.globals; + var cnf = this.w.config; + gl.svgWidth = cnf.chart.width; + gl.svgHeight = cnf.chart.height; + var elDim = Utils.getDimensions(this.el); + var widthUnit = cnf.chart.width.toString().split(/[0-9]+/g).pop(); + + if (widthUnit === '%') { + if (Utils.isNumber(elDim[0])) { + if (elDim[0].width === 0) { + elDim = Utils.getDimensions(this.el.parentNode); + } + + gl.svgWidth = elDim[0] * parseInt(cnf.chart.width) / 100; + } + } else if (widthUnit === 'px' || widthUnit === '') { + gl.svgWidth = parseInt(cnf.chart.width); + } + + if (gl.svgHeight !== 'auto' && gl.svgHeight !== '') { + var heightUnit = cnf.chart.height.toString().split(/[0-9]+/g).pop(); + + if (heightUnit === '%') { + var elParentDim = Utils.getDimensions(this.el.parentNode); + gl.svgHeight = elParentDim[1] * parseInt(cnf.chart.height) / 100; + } else { + gl.svgHeight = parseInt(cnf.chart.height); + } + } else { + if (gl.axisCharts) { + gl.svgHeight = gl.svgWidth / 1.61; + } else { + gl.svgHeight = gl.svgWidth; + } + } + + Graphics.setAttrs(gl.dom.Paper.node, { + width: gl.svgWidth, + height: gl.svgHeight + }); // gl.dom.Paper.node.parentNode.parentNode.style.minWidth = gl.svgWidth + "px"; + + var offsetY = cnf.chart.sparkline.enabled ? 0 : gl.axisCharts ? 14 : 5; + gl.dom.Paper.node.parentNode.parentNode.style.minHeight = gl.svgHeight + offsetY + 'px'; + gl.dom.elWrap.style.width = gl.svgWidth + 'px'; + gl.dom.elWrap.style.height = gl.svgHeight + 'px'; + } + }, { + key: "shiftGraphPosition", + value: function shiftGraphPosition() { + var gl = this.w.globals; + var tY = gl.translateY; + var tX = gl.translateX; + var scalingAttrs = { + transform: 'translate(' + tX + ', ' + tY + ')' + }; + Graphics.setAttrs(gl.dom.elGraphical.node, scalingAttrs); + } + /* + ** All the calculations for setting range in charts will be done here + */ + + }, { + key: "coreCalculations", + value: function coreCalculations() { + var range = new Range$1(this.ctx); + range.init(); + } + }, { + key: "resetGlobals", + value: function resetGlobals() { + var _this = this; + + var gl = this.w.globals; + gl.series = []; + gl.seriesCandleO = []; + gl.seriesCandleH = []; + gl.seriesCandleL = []; + gl.seriesCandleC = []; + gl.seriesPercent = []; + gl.seriesX = []; + gl.seriesZ = []; + gl.seriesNames = []; + gl.seriesTotals = []; + gl.stackedSeriesTotals = []; + gl.labels = []; + gl.timelineLabels = []; + gl.noLabelsProvided = false; + gl.timescaleTicks = []; + gl.resizeTimer = null; + gl.selectionResizeTimer = null; + + gl.seriesXvalues = function () { + return _this.w.config.series.map(function (s) { + return []; + }); + }(); + + gl.seriesYvalues = function () { + return _this.w.config.series.map(function (s) { + return []; + }); + }(); + + gl.delayedElements = []; + gl.pointsArray = []; + gl.dataLabelsRects = []; + gl.isXNumeric = false; + gl.isDataXYZ = false; + gl.maxY = -Number.MAX_VALUE; + gl.minY = Number.MIN_VALUE; + gl.minYArr = []; + gl.maxYArr = []; + gl.maxX = -Number.MAX_VALUE; + gl.minX = Number.MAX_VALUE; + gl.initialmaxX = -Number.MAX_VALUE; + gl.initialminX = Number.MAX_VALUE; + gl.maxDate = 0; + gl.minDate = Number.MAX_VALUE; + gl.minZ = Number.MAX_VALUE; + gl.maxZ = -Number.MAX_VALUE; + gl.yAxisScale = []; + gl.xAxisScale = null; + gl.xAxisTicksPositions = []; + gl.yLabelsCoords = []; + gl.yTitleCoords = []; + gl.xRange = 0; + gl.yRange = []; + gl.zRange = 0; + gl.dataPoints = 0; + } + }, { + key: "isMultipleY", + value: function isMultipleY() { + // user has supplied an array in yaxis property. So, turn on multipleYAxis flag + if (this.w.config.yaxis.constructor === Array && this.w.config.yaxis.length > 1) { + // first, turn off stacking if multiple y axis + this.w.config.chart.stacked = false; + this.w.globals.isMultipleYAxis = true; + return true; + } + } + }, { + key: "excludeCollapsedSeriesInYAxis", + value: function excludeCollapsedSeriesInYAxis() { + var _this2 = this; + + var w = this.w; + w.globals.ignoreYAxisIndexes = w.globals.collapsedSeries.map(function (collapsed, i) { + if (_this2.w.globals.isMultipleYAxis) { + return collapsed.index; + } + }); + } + }, { + key: "isMultiFormat", + value: function isMultiFormat() { + return this.isFormatXY() || this.isFormat2DArray(); + } // given format is [{x, y}, {x, y}] + + }, { + key: "isFormatXY", + value: function isFormatXY() { + var series = this.w.config.series.slice(); + var sr = new Series(this.ctx); + this.activeSeriesIndex = sr.getActiveConfigSeriesIndex(); + + if (typeof series[this.activeSeriesIndex].data !== 'undefined' && series[this.activeSeriesIndex].data.length > 0 && series[this.activeSeriesIndex].data[0] !== null && typeof series[this.activeSeriesIndex].data[0].x !== 'undefined' && series[this.activeSeriesIndex].data[0] !== null) { + return true; + } + } // given format is [[x, y], [x, y]] + + }, { + key: "isFormat2DArray", + value: function isFormat2DArray() { + var series = this.w.config.series.slice(); + var sr = new Series(this.ctx); + this.activeSeriesIndex = sr.getActiveConfigSeriesIndex(); + + if (typeof series[this.activeSeriesIndex].data !== 'undefined' && series[this.activeSeriesIndex].data.length > 0 && typeof series[this.activeSeriesIndex].data[0] !== 'undefined' && series[this.activeSeriesIndex].data[0] !== null && series[this.activeSeriesIndex].data[0].constructor === Array) { + return true; + } + } + }, { + key: "handleFormat2DArray", + value: function handleFormat2DArray(ser, i) { + var cnf = this.w.config; + var gl = this.w.globals; + + for (var j = 0; j < ser[i].data.length; j++) { + if (typeof ser[i].data[j][1] !== 'undefined') { + if (Array.isArray(ser[i].data[j][1]) && ser[i].data[j][1].length === 4) { + this.twoDSeries.push(Utils.parseNumber(ser[i].data[j][1][3])); + } else { + this.twoDSeries.push(Utils.parseNumber(ser[i].data[j][1])); + } + } + + if (cnf.xaxis.type === 'datetime') { + // if timestamps are provided and xaxis type is datettime, + var ts = new Date(ser[i].data[j][0]); + ts = new Date(ts).getTime(); + this.twoDSeriesX.push(ts); + } else { + this.twoDSeriesX.push(ser[i].data[j][0]); + } + } + + for (var _j = 0; _j < ser[i].data.length; _j++) { + if (typeof ser[i].data[_j][2] !== 'undefined') { + this.threeDSeries.push(ser[i].data[_j][2]); + gl.isDataXYZ = true; + } + } + } + }, { + key: "handleFormatXY", + value: function handleFormatXY(ser, i) { + var cnf = this.w.config; + var gl = this.w.globals; + var dt = new DateTime(this.ctx); + var activeI = i; + + if (gl.collapsedSeriesIndices.indexOf(i) > -1) { + // fix #368 + activeI = this.activeSeriesIndex; + } // get series + + + for (var j = 0; j < ser[i].data.length; j++) { + if (typeof ser[i].data[j].y !== 'undefined') { + if (Array.isArray(ser[i].data[j].y) && ser[i].data[j].y.length === 4) { + this.twoDSeries.push(Utils.parseNumber(ser[i].data[j].y[3])); + } else { + this.twoDSeries.push(Utils.parseNumber(ser[i].data[j].y)); + } + } + } // get seriesX + + + for (var _j2 = 0; _j2 < ser[activeI].data.length; _j2++) { + var isXString = typeof ser[activeI].data[_j2].x === 'string'; + var isXDate = !!dt.isValidDate(ser[activeI].data[_j2].x.toString()); + + if (isXString || isXDate) { + // user supplied '01/01/2017' or a date string (a JS date object is not supported) + if (isXString) { + if (cnf.xaxis.type === 'datetime') { + this.twoDSeriesX.push(dt.parseDate(ser[activeI].data[_j2].x)); + } else { + // a category and not a numeric x value + this.fallbackToCategory = true; + this.twoDSeriesX.push(ser[activeI].data[_j2].x); + } + } else { + if (cnf.xaxis.type === 'datetime') { + this.twoDSeriesX.push(dt.parseDate(ser[activeI].data[_j2].x.toString())); + } else { + this.twoDSeriesX.push(parseFloat(ser[activeI].data[_j2].x)); + } + } + } else { + // a numeric value in x property + this.twoDSeriesX.push(ser[activeI].data[_j2].x); + } + } + + if (ser[i].data[0] && typeof ser[i].data[0].z !== 'undefined') { + for (var t = 0; t < ser[i].data.length; t++) { + this.threeDSeries.push(ser[i].data[t].z); + } + + gl.isDataXYZ = true; + } + } + }, { + key: "handleCandleStickData", + value: function handleCandleStickData(ser, i) { + var gl = this.w.globals; + var ohlc = {}; + + if (this.isFormat2DArray()) { + ohlc = this.handleCandleStickDataFormat('array', ser, i); + } else if (this.isFormatXY()) { + ohlc = this.handleCandleStickDataFormat('xy', ser, i); + } + + gl.seriesCandleO.push(ohlc.o); + gl.seriesCandleH.push(ohlc.h); + gl.seriesCandleL.push(ohlc.l); + gl.seriesCandleC.push(ohlc.c); + return ohlc; + } + }, { + key: "handleCandleStickDataFormat", + value: function handleCandleStickDataFormat(format, ser, i) { + var serO = []; + var serH = []; + var serL = []; + var serC = []; + var err = 'Please provide [Open, High, Low and Close] values in valid format. Read more https://apexcharts.com/docs/series/#candlestick'; + + if (format === 'array') { + if (ser[i].data[0][1].length !== 4) { + throw new Error(err); + } + + for (var j = 0; j < ser[i].data.length; j++) { + serO.push(ser[i].data[j][1][0]); + serH.push(ser[i].data[j][1][1]); + serL.push(ser[i].data[j][1][2]); + serC.push(ser[i].data[j][1][3]); + } + } else if (format === 'xy') { + if (ser[i].data[0].y.length !== 4) { + throw new Error(err); + } + + for (var _j3 = 0; _j3 < ser[i].data.length; _j3++) { + serO.push(ser[i].data[_j3].y[0]); + serH.push(ser[i].data[_j3].y[1]); + serL.push(ser[i].data[_j3].y[2]); + serC.push(ser[i].data[_j3].y[3]); + } + } + + return { + o: serO, + h: serH, + l: serL, + c: serC + }; + } + }, { + key: "parseDataAxisCharts", + value: function parseDataAxisCharts(ser) { + var ctx = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.ctx; + var cnf = this.w.config; + var gl = this.w.globals; + var dt = new DateTime(ctx); + + for (var i = 0; i < ser.length; i++) { + this.twoDSeries = []; + this.twoDSeriesX = []; + this.threeDSeries = []; + + if (typeof ser[i].data === 'undefined') { + console.error("It is a possibility that you may have not included 'data' property in series."); + return; + } + + if (this.isMultiFormat()) { + if (this.isFormat2DArray()) { + this.handleFormat2DArray(ser, i); + } else if (this.isFormatXY()) { + this.handleFormatXY(ser, i); + } + + if (cnf.chart.type === 'candlestick' || ser[i].type === 'candlestick') { + this.handleCandleStickData(ser, i); + } + + gl.series.push(this.twoDSeries); + gl.labels.push(this.twoDSeriesX); + gl.seriesX.push(this.twoDSeriesX); + + if (!this.fallbackToCategory) { + gl.isXNumeric = true; + } + } else { + if (cnf.xaxis.type === 'datetime') { + // user didn't supplied [{x,y}] or [[x,y]], but single array in data. + // Also labels/categories were supplied differently + gl.isXNumeric = true; + var dates = cnf.labels.length > 0 ? cnf.labels.slice() : cnf.xaxis.categories.slice(); + + for (var j = 0; j < dates.length; j++) { + if (typeof dates[j] === 'string') { + var isDate = dt.isValidDate(dates[j]); + + if (isDate) { + this.twoDSeriesX.push(dt.parseDate(dates[j])); + } else { + throw new Error('You have provided invalid Date format. Please provide a valid JavaScript Date'); + } + } + } + + gl.seriesX.push(this.twoDSeriesX); + } else if (cnf.xaxis.type === 'numeric') { + gl.isXNumeric = true; + var x = cnf.labels.length > 0 ? cnf.labels.slice() : cnf.xaxis.categories.slice(); + + if (x.length > 0) { + this.twoDSeriesX = x; + gl.seriesX.push(this.twoDSeriesX); + } + } + + gl.labels.push(this.twoDSeriesX); + var singleArray = ser[i].data.map(function (d) { + return Utils.parseNumber(d); + }); + gl.series.push(singleArray); + } + + gl.seriesZ.push(this.threeDSeries); + + if (ser[i].name !== undefined) { + gl.seriesNames.push(ser[i].name); + } else { + gl.seriesNames.push('series-' + parseInt(i + 1)); + } + } + + return this.w; + } + }, { + key: "parseDataNonAxisCharts", + value: function parseDataNonAxisCharts(ser) { + var gl = this.w.globals; + var cnf = this.w.config; + gl.series = ser.slice(); + gl.seriesNames = cnf.labels.slice(); + + for (var i = 0; i < gl.series.length; i++) { + if (gl.seriesNames[i] === undefined) { + gl.seriesNames.push('series-' + (i + 1)); + } + } + + return this.w; + } + }, { + key: "handleExternalLabelsData", + value: function handleExternalLabelsData(ser) { + var cnf = this.w.config; + var gl = this.w.globals; // user provided labels in category axis + + if (cnf.xaxis.categories.length > 0) { + gl.labels = cnf.xaxis.categories; + } else if (cnf.labels.length > 0) { + gl.labels = cnf.labels.slice(); + } else if (this.fallbackToCategory) { + gl.labels = gl.labels[0]; + } else { + // user didn't provided labels, fallback to 1-2-3-4-5 + var labelArr = []; + + if (gl.axisCharts) { + for (var i = 0; i < gl.series[gl.maxValsInArrayIndex].length; i++) { + labelArr.push(i + 1); + } + + for (var _i = 0; _i < ser.length; _i++) { + gl.seriesX.push(labelArr); + } + + gl.isXNumeric = true; + } // no series to pull labels from, put a 0-10 series + + + if (labelArr.length === 0) { + labelArr = [0, 10]; + + for (var _i2 = 0; _i2 < ser.length; _i2++) { + gl.seriesX.push(labelArr); + } + } + + gl.labels = labelArr; + gl.noLabelsProvided = true; + + if (cnf.xaxis.type === 'category') { + gl.isXNumeric = false; + } + } + } // Segregate user provided data into appropriate vars + + }, { + key: "parseData", + value: function parseData(ser) { + var w = this.w; + var cnf = w.config; + var gl = w.globals; + this.excludeCollapsedSeriesInYAxis(); + this.fallbackToCategory = false; + this.resetGlobals(); + this.isMultipleY(); + + if (gl.axisCharts) { + this.parseDataAxisCharts(ser); + } else { + this.parseDataNonAxisCharts(ser); + } + + this.coreUtils.getLargestSeries(); // set Null values to 0 in all series when user hides/shows some series + + if (cnf.chart.type === 'bar' && cnf.chart.stacked) { + var series = new Series(this.ctx); + gl.series = series.setNullSeriesToZeroValues(gl.series); + } + + this.coreUtils.getSeriesTotals(); + + if (gl.axisCharts) { + this.coreUtils.getStackedSeriesTotals(); + } + + this.coreUtils.getPercentSeries(); // user didn't provide a [[x,y],[x,y]] series, but a named series + + if (!gl.isXNumeric || cnf.xaxis.type === 'numeric' && cnf.labels.length === 0 && cnf.xaxis.categories.length === 0) { + this.handleExternalLabelsData(ser); + } + } + }, { + key: "xySettings", + value: function xySettings() { + var xyRatios = null; + var w = this.w; + + if (w.globals.axisCharts) { + if (w.config.xaxis.crosshairs.position === 'back') { + var crosshairs = new Crosshairs(this.ctx); + crosshairs.drawXCrosshairs(); + } + + if (w.config.yaxis[0].crosshairs.position === 'back') { + var _crosshairs = new Crosshairs(this.ctx); + + _crosshairs.drawYCrosshairs(); + } + + xyRatios = this.coreUtils.getCalculatedRatios(); + + if (w.config.xaxis.type === 'datetime' && w.config.xaxis.labels.formatter === undefined && isFinite(w.globals.minX) && isFinite(w.globals.maxX)) { + var ts = new TimeScale(this.ctx); + var formattedTimeScale = ts.calculateTimeScaleTicks(w.globals.minX, w.globals.maxX); + ts.recalcDimensionsBasedOnFormat(formattedTimeScale); + } + } + + return xyRatios; + } + }, { + key: "drawAxis", + value: function drawAxis(type, xyRatios) { + var gl = this.w.globals; + var cnf = this.w.config; + var xAxis = new XAxis(this.ctx); + var yAxis = new YAxis(this.ctx); + + if (gl.axisCharts && type !== 'radar') { + var elXaxis, elYaxis; + + if (type === 'bar' && cnf.plotOptions.bar.horizontal) { + elYaxis = yAxis.drawYaxisInversed(0); + elXaxis = xAxis.drawXaxisInversed(0); + gl.dom.elGraphical.add(elXaxis); + gl.dom.elGraphical.add(elYaxis); + } else { + elXaxis = xAxis.drawXaxis(); + gl.dom.elGraphical.add(elXaxis); + cnf.yaxis.map(function (yaxe, index) { + if (gl.ignoreYAxisIndexes.indexOf(index) === -1) { + elYaxis = yAxis.drawYaxis(index); + gl.dom.Paper.add(elYaxis); + } + }); + } + } + + cnf.yaxis.map(function (yaxe, index) { + if (gl.ignoreYAxisIndexes.indexOf(index) === -1) { + yAxis.yAxisTitleRotate(index, yaxe.opposite); + } + }); + } + }, { + key: "setupBrushHandler", + value: function setupBrushHandler() { + var _this3 = this; + + var w = this.w; // only for brush charts + + if (!w.config.chart.brush.enabled) { + return; + } // if user has not defined a custom function for selection - we handle the brush chart + // otherwise we leave it to the user to define the functionality for selection + + + if (typeof w.config.chart.events.selection !== 'function') { + var targets = w.config.chart.brush.targets || [w.config.chart.brush.target]; // retro compatibility with single target option + + targets.forEach(function (target) { + var targetChart = ApexCharts.getChartByID(target); + targetChart.w.globals.brushSource = _this3.ctx; + + var updateSourceChart = function updateSourceChart() { + _this3.ctx._updateOptions({ + chart: { + selection: { + xaxis: { + min: targetChart.w.globals.minX, + max: targetChart.w.globals.maxX + } + } + } + }, false, false); + }; + + if (typeof targetChart.w.config.chart.events.zoomed !== 'function') { + targetChart.w.config.chart.events.zoomed = function () { + updateSourceChart(); + }; + } + + if (typeof targetChart.w.config.chart.events.scrolled !== 'function') { + targetChart.w.config.chart.events.scrolled = function () { + updateSourceChart(); + }; + } + + w.config.chart.events.selection = function (chart, e) { + var yaxis = Utils.clone(w.config.yaxis); + + if (w.config.chart.brush.autoScaleYaxis) { + var scale = new Range(targetChart); + yaxis = scale.autoScaleY(targetChart, e); + } + + targetChart._updateOptions({ + xaxis: { + min: e.xaxis.min, + max: e.xaxis.max + }, + yaxis: yaxis + }, false, false, false); + }; + }); + } + } + }]); + + return Core; +}(); + +/** + * @this {Promise} + */ +function finallyConstructor(callback) { + var constructor = this.constructor; + return this.then( + function(value) { + return constructor.resolve(callback()).then(function() { + return value; + }); + }, + function(reason) { + return constructor.resolve(callback()).then(function() { + return constructor.reject(reason); + }); + } + ); +} + +// Store setTimeout reference so promise-polyfill will be unaffected by +// other code modifying setTimeout (like sinon.useFakeTimers()) +var setTimeoutFunc = setTimeout; + +function noop() {} + +// Polyfill for Function.prototype.bind +function bind(fn, thisArg) { + return function() { + fn.apply(thisArg, arguments); + }; +} + +/** + * @constructor + * @param {Function} fn + */ +function Promise$1(fn) { + if (!(this instanceof Promise$1)) + throw new TypeError('Promises must be constructed via new'); + if (typeof fn !== 'function') throw new TypeError('not a function'); + /** @type {!number} */ + this._state = 0; + /** @type {!boolean} */ + this._handled = false; + /** @type {Promise|undefined} */ + this._value = undefined; + /** @type {!Array} */ + this._deferreds = []; + + doResolve(fn, this); +} + +function handle(self, deferred) { + while (self._state === 3) { + self = self._value; + } + if (self._state === 0) { + self._deferreds.push(deferred); + return; + } + self._handled = true; + Promise$1._immediateFn(function() { + var cb = self._state === 1 ? deferred.onFulfilled : deferred.onRejected; + if (cb === null) { + (self._state === 1 ? resolve : reject)(deferred.promise, self._value); + return; + } + var ret; + try { + ret = cb(self._value); + } catch (e) { + reject(deferred.promise, e); + return; + } + resolve(deferred.promise, ret); + }); +} + +function resolve(self, newValue) { + try { + // Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure + if (newValue === self) + throw new TypeError('A promise cannot be resolved with itself.'); + if ( + newValue && + (typeof newValue === 'object' || typeof newValue === 'function') + ) { + var then = newValue.then; + if (newValue instanceof Promise$1) { + self._state = 3; + self._value = newValue; + finale(self); + return; + } else if (typeof then === 'function') { + doResolve(bind(then, newValue), self); + return; + } + } + self._state = 1; + self._value = newValue; + finale(self); + } catch (e) { + reject(self, e); + } +} + +function reject(self, newValue) { + self._state = 2; + self._value = newValue; + finale(self); +} + +function finale(self) { + if (self._state === 2 && self._deferreds.length === 0) { + Promise$1._immediateFn(function() { + if (!self._handled) { + Promise$1._unhandledRejectionFn(self._value); + } + }); + } + + for (var i = 0, len = self._deferreds.length; i < len; i++) { + handle(self, self._deferreds[i]); + } + self._deferreds = null; +} + +/** + * @constructor + */ +function Handler(onFulfilled, onRejected, promise) { + this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null; + this.onRejected = typeof onRejected === 'function' ? onRejected : null; + this.promise = promise; +} + +/** + * Take a potentially misbehaving resolver function and make sure + * onFulfilled and onRejected are only called once. + * + * Makes no guarantees about asynchrony. + */ +function doResolve(fn, self) { + var done = false; + try { + fn( + function(value) { + if (done) return; + done = true; + resolve(self, value); + }, + function(reason) { + if (done) return; + done = true; + reject(self, reason); + } + ); + } catch (ex) { + if (done) return; + done = true; + reject(self, ex); + } +} + +Promise$1.prototype['catch'] = function(onRejected) { + return this.then(null, onRejected); +}; + +Promise$1.prototype.then = function(onFulfilled, onRejected) { + // @ts-ignore + var prom = new this.constructor(noop); + + handle(this, new Handler(onFulfilled, onRejected, prom)); + return prom; +}; + +Promise$1.prototype['finally'] = finallyConstructor; + +Promise$1.all = function(arr) { + return new Promise$1(function(resolve, reject) { + if (!arr || typeof arr.length === 'undefined') + throw new TypeError('Promise.all accepts an array'); + var args = Array.prototype.slice.call(arr); + if (args.length === 0) return resolve([]); + var remaining = args.length; + + function res(i, val) { + try { + if (val && (typeof val === 'object' || typeof val === 'function')) { + var then = val.then; + if (typeof then === 'function') { + then.call( + val, + function(val) { + res(i, val); + }, + reject + ); + return; + } + } + args[i] = val; + if (--remaining === 0) { + resolve(args); + } + } catch (ex) { + reject(ex); + } + } + + for (var i = 0; i < args.length; i++) { + res(i, args[i]); + } + }); +}; + +Promise$1.resolve = function(value) { + if (value && typeof value === 'object' && value.constructor === Promise$1) { + return value; + } + + return new Promise$1(function(resolve) { + resolve(value); + }); +}; + +Promise$1.reject = function(value) { + return new Promise$1(function(resolve, reject) { + reject(value); + }); +}; + +Promise$1.race = function(values) { + return new Promise$1(function(resolve, reject) { + for (var i = 0, len = values.length; i < len; i++) { + values[i].then(resolve, reject); + } + }); +}; + +// Use polyfill for setImmediate for performance gains +Promise$1._immediateFn = + (typeof setImmediate === 'function' && + function(fn) { + setImmediate(fn); + }) || + function(fn) { + setTimeoutFunc(fn, 0); + }; + +Promise$1._unhandledRejectionFn = function _unhandledRejectionFn(err) { + if (typeof console !== 'undefined' && console) { + console.warn('Possible Unhandled Promise Rejection:', err); // eslint-disable-line no-console + } +}; + +var Exports = +/*#__PURE__*/ +function () { + function Exports(ctx) { + _classCallCheck(this, Exports); + + this.ctx = ctx; + this.w = ctx.w; + } + + _createClass(Exports, [{ + key: "getSvgString", + value: function getSvgString() { + return this.w.globals.dom.Paper.svg(); + } + }, { + key: "cleanup", + value: function cleanup() { + var w = this.w; // hide some elements to avoid printing them on exported svg + + var xcrosshairs = w.globals.dom.baseEl.querySelector('.apexcharts-xcrosshairs'); + var ycrosshairs = w.globals.dom.baseEl.querySelector('.apexcharts-ycrosshairs'); + + if (xcrosshairs) { + xcrosshairs.setAttribute('x', -500); + } + + if (ycrosshairs) { + ycrosshairs.setAttribute('y1', -100); + ycrosshairs.setAttribute('y2', -100); + } + } + }, { + key: "svgUrl", + value: function svgUrl() { + this.cleanup(); + var svgData = this.getSvgString(); + var svgBlob = new Blob([svgData], { + type: 'image/svg+xml;charset=utf-8' + }); + return URL.createObjectURL(svgBlob); + } + }, { + key: "dataURI", + value: function dataURI() { + var _this = this; + + return new Promise$1(function (resolve) { + var w = _this.w; + + _this.cleanup(); + + var canvas = document.createElement('canvas'); + canvas.width = w.globals.svgWidth; + canvas.height = w.globals.svgHeight; + var canvasBg = w.config.chart.background === 'transparent' ? '#fff' : w.config.chart.background; + var ctx = canvas.getContext('2d'); + ctx.fillStyle = canvasBg; + ctx.fillRect(0, 0, canvas.width, canvas.height); + var DOMURL = window.URL || window.webkitURL || window; + var img = new Image(); + img.crossOrigin = 'anonymous'; + + var svgData = _this.getSvgString(); + + var svgUrl = 'data:image/svg+xml,' + encodeURIComponent(svgData); + + img.onload = function () { + ctx.drawImage(img, 0, 0); + DOMURL.revokeObjectURL(svgUrl); + var imgURI = canvas.toDataURL('image/png'); + resolve(imgURI); + }; + + img.src = svgUrl; + }); + } + }, { + key: "exportToSVG", + value: function exportToSVG() { + this.triggerDownload(this.svgUrl(), '.svg'); + } + }, { + key: "exportToPng", + value: function exportToPng() { + var _this2 = this; + + this.dataURI().then(function (imgURI) { + _this2.triggerDownload(imgURI, '.png'); + }); + } + }, { + key: "triggerDownload", + value: function triggerDownload(href, ext) { + var downloadLink = document.createElement('a'); + downloadLink.href = href; + downloadLink.download = this.w.globals.chartID + ext; + document.body.appendChild(downloadLink); + downloadLink.click(); + document.body.removeChild(downloadLink); + } + }]); + + return Exports; +}(); + +/** + * ApexCharts Grid Class for drawing Cartesian Grid. + * + * @module Grid + **/ + +var Grid = +/*#__PURE__*/ +function () { + function Grid(ctx) { + _classCallCheck(this, Grid); + + this.ctx = ctx; + this.w = ctx.w; + var w = this.w; + this.anim = new Animations(this.ctx); + this.xaxisLabels = w.globals.labels.slice(); + this.animX = w.config.grid.xaxis.lines.animate && w.config.chart.animations.enabled; + this.animY = w.config.grid.yaxis.lines.animate && w.config.chart.animations.enabled; + + if (w.globals.timelineLabels.length > 0) { + // timeline labels are there + this.xaxisLabels = w.globals.timelineLabels.slice(); + } + } // .when using sparklines or when showing no grid, we need to have a grid area which is reused at many places for other calculations as well + + + _createClass(Grid, [{ + key: "drawGridArea", + value: function drawGridArea() { + var elGrid = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + var w = this.w; + var graphics = new Graphics(this.ctx); + + if (elGrid === null) { + elGrid = graphics.group({ + class: 'apexcharts-grid' + }); + } + + var elVerticalLine = graphics.drawLine(w.globals.padHorizontal, 1, w.globals.padHorizontal, w.globals.gridHeight, 'transparent'); + var elHorzLine = graphics.drawLine(w.globals.padHorizontal, w.globals.gridHeight, w.globals.gridWidth, w.globals.gridHeight, 'transparent'); + elGrid.add(elHorzLine); + elGrid.add(elVerticalLine); + return elGrid; + } + }, { + key: "drawGrid", + value: function drawGrid() { + var w = this.w; + var xAxis = new XAxis(this.ctx); + var gl = this.w.globals; + var elgrid = null; + + if (gl.axisCharts) { + if (w.config.grid.show) { + // grid is drawn after xaxis and yaxis are drawn + elgrid = this.renderGrid(); + gl.dom.elGraphical.add(elgrid.el); + this.drawGridArea(elgrid.el); + } else { + var elgridArea = this.drawGridArea(); + gl.dom.elGraphical.add(elgridArea); + } + + if (elgrid !== null) { + xAxis.xAxisLabelCorrections(elgrid.xAxisTickWidth); + } + } + } // This mask will clip off overflowing graphics from the drawable area + + }, { + key: "createGridMask", + value: function createGridMask() { + var w = this.w; + var gl = w.globals; + var graphics = new Graphics(this.ctx); + var strokeSize = Array.isArray(w.config.stroke.width) ? 0 : w.config.stroke.width; + + if (Array.isArray(w.config.stroke.width)) { + var strokeMaxSize = 0; + w.config.stroke.width.forEach(function (m) { + strokeMaxSize = Math.max(strokeMaxSize, m); + }); + strokeSize = strokeMaxSize; + } + + gl.dom.elGridRectMask = document.createElementNS(gl.SVGNS, 'clipPath'); + gl.dom.elGridRectMask.setAttribute('id', "gridRectMask".concat(gl.cuid)); + gl.dom.elGridRectMarkerMask = document.createElementNS(gl.SVGNS, 'clipPath'); + gl.dom.elGridRectMarkerMask.setAttribute('id', "gridRectMarkerMask".concat(gl.cuid)); + gl.dom.elGridRect = graphics.drawRect(-strokeSize / 2, -strokeSize / 2, gl.gridWidth + strokeSize, gl.gridHeight + strokeSize, 0, '#fff'); + var coreUtils = new CoreUtils(this); + coreUtils.getLargestMarkerSize(); + var markerSize = w.globals.markers.largestSize + w.config.markers.hover.sizeOffset + 1; + gl.dom.elGridRectMarker = graphics.drawRect(-markerSize, -markerSize, gl.gridWidth + markerSize * 2, gl.gridHeight + markerSize * 2, 0, '#fff'); + gl.dom.elGridRectMask.appendChild(gl.dom.elGridRect.node); + gl.dom.elGridRectMarkerMask.appendChild(gl.dom.elGridRectMarker.node); + var defs = gl.dom.baseEl.querySelector('defs'); + defs.appendChild(gl.dom.elGridRectMask); + defs.appendChild(gl.dom.elGridRectMarkerMask); + } // actual grid rendering + + }, { + key: "renderGrid", + value: function renderGrid() { + var w = this.w; + var graphics = new Graphics(this.ctx); + var strokeDashArray = w.config.grid.strokeDashArray; + var elg = graphics.group({ + class: 'apexcharts-grid' + }); + var tickAmount = 8; + + for (var i = 0; i < w.globals.series.length; i++) { + if (typeof w.globals.yAxisScale[i] !== 'undefined') { + tickAmount = w.globals.yAxisScale[i].result.length - 1; + } + + if (tickAmount > 2) break; + } + + var xCount; + var inversedGrid = !!(w.config.plotOptions.bar.horizontal && w.config.chart.type === 'bar'); + + if (!inversedGrid) { + xCount = this.xaxisLabels.length; // draw vertical lines + + if (w.config.grid.xaxis.lines.show || w.config.xaxis.axisTicks.show) { + var x1 = w.globals.padHorizontal; + var y1 = 0; + var x2; + var y2 = w.globals.gridHeight; + + if (w.globals.timelineLabels.length > 0) { + for (var _i = 0; _i < xCount; _i++) { + x1 = this.xaxisLabels[_i].position; + x2 = this.xaxisLabels[_i].position; + + if (w.config.grid.xaxis.lines.show && x1 > 0 && x1 < w.globals.gridWidth) { + var line = graphics.drawLine(x1, y1, x2, y2, w.config.grid.borderColor, strokeDashArray); + line.node.classList.add('apexcharts-gridline'); + elg.add(line); + + if (this.animX) { + this.animateLine(line, { + x1: 0, + x2: 0 + }, { + x1: x1, + x2: x2 + }); + } + } + + var xAxis = new XAxis(this.ctx); + xAxis.drawXaxisTicks(x1, elg); + } + } else { + var xCountForCategoryCharts = xCount; + + for (var _i2 = 0; _i2 < xCountForCategoryCharts; _i2++) { + var x1Count = xCountForCategoryCharts; + + if (w.globals.isXNumeric && w.config.chart.type !== 'bar') { + x1Count -= 1; + } + + x1 = x1 + w.globals.gridWidth / x1Count; + x2 = x1; // skip the last line + + if (_i2 === x1Count - 1) break; + + if (w.config.grid.xaxis.lines.show) { + var _line = graphics.drawLine(x1, y1, x2, y2, w.config.grid.borderColor, strokeDashArray); + + _line.node.classList.add('apexcharts-gridline'); + + elg.add(_line); + + if (this.animX) { + this.animateLine(_line, { + x1: 0, + x2: 0 + }, { + x1: x1, + x2: x2 + }); + } + } + + var _xAxis = new XAxis(this.ctx); + + _xAxis.drawXaxisTicks(x1, elg); + } + } + } // draw horizontal lines + + + if (w.config.grid.yaxis.lines.show) { + var _x = 0; + var _y = 0; + var _y2 = 0; + var _x2 = w.globals.gridWidth; + + for (var _i3 = 0; _i3 < tickAmount + 1; _i3++) { + var _line2 = graphics.drawLine(_x, _y, _x2, _y2, w.config.grid.borderColor, strokeDashArray); + + elg.add(_line2); + + _line2.node.classList.add('apexcharts-gridline'); + + if (this.animY) { + this.animateLine(_line2, { + y1: _y + 20, + y2: _y2 + 20 + }, { + y1: _y, + y2: _y2 + }); + } + + _y = _y + w.globals.gridHeight / tickAmount; + _y2 = _y; + } + } + } else { + xCount = tickAmount; // draw vertical lines + + if (w.config.grid.xaxis.lines.show || w.config.xaxis.axisTicks.show) { + var _x3 = w.globals.padHorizontal; + var _y3 = 0; + + var _x4; + + var _y4 = w.globals.gridHeight; + + for (var _i4 = 0; _i4 < xCount + 1; _i4++) { + _x3 = _x3 + w.globals.gridWidth / xCount + 0.3; + _x4 = _x3; // skip the last vertical line + + if (_i4 === xCount - 1) break; + + if (w.config.grid.xaxis.lines.show) { + var _line3 = graphics.drawLine(_x3, _y3, _x4, _y4, w.config.grid.borderColor, strokeDashArray); + + _line3.node.classList.add('apexcharts-gridline'); + + elg.add(_line3); + + if (this.animX) { + this.animateLine(_line3, { + x1: 0, + x2: 0 + }, { + x1: _x3, + x2: _x4 + }); + } + } // skip the first vertical line + + + var _xAxis2 = new XAxis(this.ctx); + + _xAxis2.drawXaxisTicks(_x3, elg); + } + } // draw horizontal lines + + + if (w.config.grid.yaxis.lines.show) { + var _x5 = 0; + var _y5 = 0; + var _y6 = 0; + var _x6 = w.globals.gridWidth; + + for (var _i5 = 0; _i5 < w.globals.dataPoints + 1; _i5++) { + var _line4 = graphics.drawLine(_x5, _y5, _x6, _y6, w.config.grid.borderColor, strokeDashArray); + + elg.add(_line4); + + _line4.node.classList.add('apexcharts-gridline'); + + if (this.animY) { + this.animateLine(_line4, { + y1: _y5 + 20, + y2: _y6 + 20 + }, { + y1: _y5, + y2: _y6 + }); + } + + _y5 = _y5 + w.globals.gridHeight / w.globals.dataPoints; + _y6 = _y5; + } + } + } + + this.drawGridBands(elg, xCount, tickAmount); + return { + el: elg, + xAxisTickWidth: w.globals.gridWidth / xCount + }; + } + }, { + key: "drawGridBands", + value: function drawGridBands(elg, xCount, tickAmount) { + var w = this.w; + var graphics = new Graphics(this.ctx); // rows background bands + + if (w.config.grid.row.colors !== undefined && w.config.grid.row.colors.length > 0) { + var x1 = 0; + var y1 = 0; + var y2 = w.globals.gridHeight / tickAmount; + var x2 = w.globals.gridWidth; + + for (var i = 0, c = 0; i < tickAmount; i++, c++) { + if (c >= w.config.grid.row.colors.length) { + c = 0; + } + + var color = w.config.grid.row.colors[c]; + var rect = graphics.drawRect(x1, y1, x2, y2, 0, color, w.config.grid.row.opacity); + elg.add(rect); + rect.node.classList.add('apexcharts-gridRow'); + y1 = y1 + w.globals.gridHeight / tickAmount; + } + } // columns background bands + + + if (w.config.grid.column.colors !== undefined && w.config.grid.column.colors.length > 0) { + var _x7 = w.globals.padHorizontal; + var _y7 = 0; + + var _x8 = w.globals.padHorizontal + w.globals.gridWidth / xCount; + + var _y8 = w.globals.gridHeight; + + for (var _i6 = 0, _c = 0; _i6 < xCount; _i6++, _c++) { + if (_c >= w.config.grid.column.colors.length) { + _c = 0; + } + + var _color = w.config.grid.column.colors[_c]; + + var _rect = graphics.drawRect(_x7, _y7, _x8, _y8, 0, _color, w.config.grid.column.opacity); + + _rect.node.classList.add('apexcharts-gridColumn'); + + elg.add(_rect); + _x7 = _x7 + w.globals.gridWidth / xCount; + } + } + } + }, { + key: "animateLine", + value: function animateLine(line, from, to) { + var w = this.w; + var initialAnim = w.config.chart.animations; + + if (initialAnim && !w.globals.resized && !w.globals.dataChanged) { + var speed = initialAnim.speed; + this.anim.animateLine(line, from, to, speed); + } + } + }]); + + return Grid; +}(); + +/** + * ApexCharts Legend Class to draw legend. + * + * @module Legend + **/ + +var Legend = +/*#__PURE__*/ +function () { + function Legend(ctx, opts) { + _classCallCheck(this, Legend); + + this.ctx = ctx; + this.w = ctx.w; + this.onLegendClick = this.onLegendClick.bind(this); + this.onLegendHovered = this.onLegendHovered.bind(this); + } + + _createClass(Legend, [{ + key: "init", + value: function init() { + var w = this.w; + var gl = w.globals; + var cnf = w.config; + var showLegendAlways = cnf.legend.showForSingleSeries && gl.series.length === 1 || gl.series.length > 1; + + if ((showLegendAlways || !gl.axisCharts) && cnf.legend.show) { + while (gl.dom.elLegendWrap.firstChild) { + gl.dom.elLegendWrap.removeChild(gl.dom.elLegendWrap.firstChild); + } + + this.drawLegends(); + + if (!Utils.isIE11()) { + this.appendToForeignObject(); + } else { + // IE11 doesn't supports foreignObject, hence append it to + document.getElementsByTagName('head')[0].appendChild(this.getLegendStyles()); + } + + if (cnf.legend.position === 'bottom' || cnf.legend.position === 'top') { + this.legendAlignHorizontal(); + } else if (cnf.legend.position === 'right' || cnf.legend.position === 'left') { + this.legendAlignVertical(); + } + } + } + }, { + key: "appendToForeignObject", + value: function appendToForeignObject() { + var gl = this.w.globals; + var elForeign = document.createElementNS(gl.SVGNS, 'foreignObject'); + elForeign.setAttribute('x', 0); + elForeign.setAttribute('y', 0); + elForeign.setAttribute('width', gl.svgWidth); + elForeign.setAttribute('height', gl.svgHeight); + gl.dom.elLegendWrap.setAttribute('xmlns', 'http://www.w3.org/1999/xhtml'); + elForeign.appendChild(gl.dom.elLegendWrap); + elForeign.appendChild(this.getLegendStyles()); + gl.dom.Paper.node.insertBefore(elForeign, gl.dom.elGraphical.node); + } + }, { + key: "drawLegends", + value: function drawLegends() { + var self = this; + var w = this.w; + var fontFamily = w.config.legend.fontFamily; + var legendNames = w.globals.seriesNames; + var fillcolor = w.globals.colors.slice(); + + if (w.config.chart.type === 'heatmap') { + var ranges = w.config.plotOptions.heatmap.colorScale.ranges; + legendNames = ranges.map(function (colorScale) { + return colorScale.name ? colorScale.name : colorScale.from + ' - ' + colorScale.to; + }); + fillcolor = ranges.map(function (color) { + return color.color; + }); + } + + var legendFormatter = w.globals.legendFormatter; + + for (var i = 0; i <= legendNames.length - 1; i++) { + var text = legendFormatter(legendNames[i], { + seriesIndex: i, + w: w + }); + var collapsedSeries = false; + var ancillaryCollapsedSeries = false; + + if (w.globals.collapsedSeries.length > 0) { + for (var c = 0; c < w.globals.collapsedSeries.length; c++) { + if (w.globals.collapsedSeries[c].index === i) { + collapsedSeries = true; + } + } + } + + if (w.globals.ancillaryCollapsedSeriesIndices.length > 0) { + for (var _c = 0; _c < w.globals.ancillaryCollapsedSeriesIndices.length; _c++) { + if (w.globals.ancillaryCollapsedSeriesIndices[_c] === i) { + ancillaryCollapsedSeries = true; + } + } + } + + var elMarker = document.createElement('span'); + elMarker.classList.add('apexcharts-legend-marker'); + var mOffsetX = w.config.legend.markers.offsetX; + var mOffsetY = w.config.legend.markers.offsetY; + var mHeight = w.config.legend.markers.height; + var mWidth = w.config.legend.markers.width; + var mBorderWidth = w.config.legend.markers.strokeWidth; + var mBorderColor = w.config.legend.markers.strokeColor; + var mBorderRadius = w.config.legend.markers.radius; + var mStyle = elMarker.style; + mStyle.background = fillcolor[i]; + mStyle.color = fillcolor[i]; + mStyle.height = Array.isArray(mHeight) ? parseFloat(mHeight[i]) + 'px' : parseFloat(mHeight) + 'px'; + mStyle.width = Array.isArray(mWidth) ? parseFloat(mWidth[i]) + 'px' : parseFloat(mWidth) + 'px'; + mStyle.left = Array.isArray(mOffsetX) ? mOffsetX[i] : mOffsetX; + mStyle.top = Array.isArray(mOffsetY) ? mOffsetY[i] : mOffsetY; + mStyle.borderWidth = Array.isArray(mBorderWidth) ? mBorderWidth[i] : mBorderWidth; + mStyle.borderColor = Array.isArray(mBorderColor) ? mBorderColor[i] : mBorderColor; + mStyle.borderRadius = Array.isArray(mBorderRadius) ? parseFloat(mBorderRadius[i]) + 'px' : parseFloat(mBorderRadius) + 'px'; + + if (w.config.legend.markers.customHTML) { + if (Array.isArray(w.config.legend.markers.customHTML)) { + elMarker.innerHTML = w.config.legend.markers.customHTML[i](); + } else { + elMarker.innerHTML = w.config.legend.markers.customHTML(); + } + } + + Graphics.setAttrs(elMarker, { + rel: i + 1, + 'data:collapsed': collapsedSeries || ancillaryCollapsedSeries + }); + + if (collapsedSeries || ancillaryCollapsedSeries) { + elMarker.classList.add('inactive-legend'); + } + + var elLegend = document.createElement('div'); + var elLegendText = document.createElement('span'); + elLegendText.classList.add('apexcharts-legend-text'); + elLegendText.innerHTML = text; + var textColor = w.config.legend.labels.useSeriesColors ? w.globals.colors[i] : w.config.legend.labels.colors; + + if (!textColor) { + textColor = w.config.chart.foreColor; + } + + elLegendText.style.color = textColor; + elLegendText.style.fontSize = parseFloat(w.config.legend.fontSize) + 'px'; + elLegendText.style.fontFamily = fontFamily || w.config.chart.fontFamily; + Graphics.setAttrs(elLegendText, { + rel: i + 1, + 'data:collapsed': collapsedSeries || ancillaryCollapsedSeries + }); + elLegend.appendChild(elMarker); + elLegend.appendChild(elLegendText); + var coreUtils = new CoreUtils(this.ctx); + + if (!w.config.legend.showForZeroSeries) { + var total = coreUtils.getSeriesTotalByIndex(i); + + if (total === 0 && coreUtils.seriesHaveSameValues(i) && !coreUtils.isSeriesNull(i) && w.globals.collapsedSeriesIndices.indexOf(i) === -1 && w.globals.ancillaryCollapsedSeriesIndices.indexOf(i) === -1) { + elLegend.classList.add('apexcharts-hidden-zero-series'); + } + } + + if (!w.config.legend.showForNullSeries) { + if (coreUtils.isSeriesNull(i) && w.globals.collapsedSeriesIndices.indexOf(i) === -1 && w.globals.ancillaryCollapsedSeriesIndices.indexOf(i) === -1) { + elLegend.classList.add('apexcharts-hidden-null-series'); + } + } + + w.globals.dom.elLegendWrap.appendChild(elLegend); + w.globals.dom.elLegendWrap.classList.add(w.config.legend.horizontalAlign); // w.globals.dom.elLegendWrap.classList.add(w.config.legend.verticalAlign) + + w.globals.dom.elLegendWrap.classList.add('position-' + w.config.legend.position); + elLegend.classList.add('apexcharts-legend-series'); + elLegend.style.margin = "".concat(w.config.legend.itemMargin.horizontal, "px ").concat(w.config.legend.itemMargin.vertical, "px"); + w.globals.dom.elLegendWrap.style.width = w.config.legend.width ? w.config.legend.width + 'px' : ''; + w.globals.dom.elLegendWrap.style.height = w.config.legend.height ? w.config.legend.height + 'px' : ''; + Graphics.setAttrs(elLegend, { + rel: i + 1, + 'data:collapsed': collapsedSeries || ancillaryCollapsedSeries + }); + + if (collapsedSeries || ancillaryCollapsedSeries) { + elLegend.classList.add('inactive-legend'); + } + + if (!w.config.legend.onItemClick.toggleDataSeries) { + elLegend.classList.add('no-click'); + } + } // for now - just prevent click on heatmap legend - and allow hover only + + + var clickAllowed = w.config.chart.type !== 'heatmap'; + + if (clickAllowed && w.config.legend.onItemClick.toggleDataSeries) { + w.globals.dom.elWrap.addEventListener('click', self.onLegendClick, true); + } + + if (w.config.legend.onItemHover.highlightDataSeries) { + w.globals.dom.elWrap.addEventListener('mousemove', self.onLegendHovered, true); + w.globals.dom.elWrap.addEventListener('mouseout', self.onLegendHovered, true); + } + } + }, { + key: "getLegendBBox", + value: function getLegendBBox() { + var w = this.w; + var currLegendsWrap = w.globals.dom.baseEl.querySelector('.apexcharts-legend'); + var currLegendsWrapRect = currLegendsWrap.getBoundingClientRect(); + var currLegendsWrapWidth = currLegendsWrapRect.width; + var currLegendsWrapHeight = currLegendsWrapRect.height; + return { + clwh: currLegendsWrapHeight, + clww: currLegendsWrapWidth + }; + } + }, { + key: "setLegendWrapXY", + value: function setLegendWrapXY(offsetX, offsetY) { + var w = this.w; + var elLegendWrap = w.globals.dom.baseEl.querySelector('.apexcharts-legend'); + var legendRect = elLegendWrap.getBoundingClientRect(); + var x = 0; + var y = 0; + + if (w.config.legend.position === 'bottom') { + y = y + (w.globals.svgHeight - legendRect.height / 2); + } else if (w.config.legend.position === 'top') { + var dim = new Dimensions(this.ctx); + var titleH = dim.getTitleSubtitleCoords('title').height; + var subtitleH = dim.getTitleSubtitleCoords('subtitle').height; + y = y + (titleH > 0 ? titleH - 10 : 0) + (subtitleH > 0 ? subtitleH - 10 : 0); + } + + elLegendWrap.style.position = 'absolute'; + x = x + offsetX + w.config.legend.offsetX; + y = y + offsetY + w.config.legend.offsetY; + elLegendWrap.style.left = x + 'px'; + elLegendWrap.style.top = y + 'px'; + + if (w.config.legend.position === 'bottom') { + elLegendWrap.style.top = 'auto'; + elLegendWrap.style.bottom = 10 + w.config.legend.offsetY + 'px'; + } else if (w.config.legend.position === 'right') { + elLegendWrap.style.left = 'auto'; + elLegendWrap.style.right = 25 + w.config.legend.offsetX + 'px'; + } + + if (elLegendWrap.style.width) { + elLegendWrap.style.width = parseInt(w.config.legend.width) + 'px'; + } + + if (elLegendWrap.style.height) { + elLegendWrap.style.height = parseInt(w.config.legend.height) + 'px'; + } + } + }, { + key: "legendAlignHorizontal", + value: function legendAlignHorizontal() { + var w = this.w; + var elLegendWrap = w.globals.dom.baseEl.querySelector('.apexcharts-legend'); + elLegendWrap.style.right = 0; + var lRect = this.getLegendBBox(); + var dimensions = new Dimensions(this.ctx); + var titleRect = dimensions.getTitleSubtitleCoords('title'); + var subtitleRect = dimensions.getTitleSubtitleCoords('subtitle'); + var offsetX = 20; + var offsetY = 0; // the whole legend box is set to bottom + + if (w.config.legend.position === 'bottom') { + offsetY = -lRect.clwh / 1.8; + } else if (w.config.legend.position === 'top') { + offsetY = titleRect.height + subtitleRect.height + w.config.title.margin + w.config.subtitle.margin - 15; + } + + this.setLegendWrapXY(offsetX, offsetY); + } + }, { + key: "legendAlignVertical", + value: function legendAlignVertical() { + var w = this.w; + var lRect = this.getLegendBBox(); + var offsetY = 20; + var offsetX = 0; + + if (w.config.legend.position === 'left') { + offsetX = 20; + } + + if (w.config.legend.position === 'right') { + offsetX = w.globals.svgWidth - lRect.clww - 10; + } + + this.setLegendWrapXY(offsetX, offsetY); + } + }, { + key: "onLegendHovered", + value: function onLegendHovered(e) { + var w = this.w; + var hoverOverLegend = e.target.classList.contains('apexcharts-legend-text') || e.target.classList.contains('apexcharts-legend-marker'); + + if (w.config.chart.type !== 'heatmap') { + if (!e.target.classList.contains('inactive-legend') && hoverOverLegend) { + var series = new Series(this.ctx); + series.toggleSeriesOnHover(e, e.target); + } + } else { + // for heatmap handling + if (hoverOverLegend) { + var seriesCnt = parseInt(e.target.getAttribute('rel')) - 1; + this.ctx.fireEvent('legendHover', [this.ctx, seriesCnt, this.w]); + + var _series = new Series(this.ctx); + + _series.highlightRangeInSeries(e, e.target); + } + } + } + }, { + key: "onLegendClick", + value: function onLegendClick(e) { + if (e.target.classList.contains('apexcharts-legend-text') || e.target.classList.contains('apexcharts-legend-marker')) { + var seriesCnt = parseInt(e.target.getAttribute('rel')) - 1; + var isHidden = e.target.getAttribute('data:collapsed') === 'true'; + var legendClick = this.w.config.chart.events.legendClick; + + if (typeof legendClick === 'function') { + legendClick(this.ctx, seriesCnt, this.w); + } + + this.ctx.fireEvent('legendClick', [this.ctx, seriesCnt, this.w]); + var markerClick = this.w.config.legend.markers.onClick; + + if (typeof markerClick === 'function' && e.target.classList.contains('apexcharts-legend-marker')) { + markerClick(this.ctx, seriesCnt, this.w); + this.ctx.fireEvent('legendMarkerClick', [this.ctx, seriesCnt, this.w]); + } + + this.toggleDataSeries(seriesCnt, isHidden); + } + } + }, { + key: "getLegendStyles", + value: function getLegendStyles() { + var stylesheet = document.createElement('style'); + stylesheet.setAttribute('type', 'text/css'); + var text = "\n \n .apexcharts-legend {\n display: flex;\n overflow: auto;\n padding: 0 10px;\n }\n\n .apexcharts-legend.position-bottom, .apexcharts-legend.position-top {\n flex-wrap: wrap\n }\n .apexcharts-legend.position-right, .apexcharts-legend.position-left {\n flex-direction: column;\n bottom: 0;\n }\n\n .apexcharts-legend.position-bottom.left, .apexcharts-legend.position-top.left, .apexcharts-legend.position-right, .apexcharts-legend.position-left {\n justify-content: flex-start;\n }\n\n .apexcharts-legend.position-bottom.center, .apexcharts-legend.position-top.center {\n justify-content: center; \n }\n\n .apexcharts-legend.position-bottom.right, .apexcharts-legend.position-top.right {\n justify-content: flex-end;\n }\n\n .apexcharts-legend-series {\n cursor: pointer;\n line-height: normal;\n }\n\n .apexcharts-legend.position-bottom .apexcharts-legend-series, .apexcharts-legend.position-top .apexcharts-legend-series{\n display: flex;\n align-items: center;\n }\n\n .apexcharts-legend-text {\n position: relative;\n font-size: 14px;\n }\n\n .apexcharts-legend-text *, .apexcharts-legend-marker * {\n pointer-events: none;\n }\n\n .apexcharts-legend-marker {\n position: relative;\n display: inline-block;\n cursor: pointer;\n margin-right: 3px;\n }\n \n .apexcharts-legend.right .apexcharts-legend-series, .apexcharts-legend.left .apexcharts-legend-series{\n display: inline-block;\n }\n\n .apexcharts-legend-series.no-click {\n cursor: auto;\n }\n\n .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\n display: none !important;\n }\n\n .inactive-legend {\n opacity: 0.45;\n }"; + var rules = document.createTextNode(text); + stylesheet.appendChild(rules); + return stylesheet; + } + }, { + key: "resetToggleDataSeries", + value: function resetToggleDataSeries() { + var w = this.w; + var seriesEls = null; + var realIndexes = []; + + if (w.globals.axisCharts) { + seriesEls = w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex]"); + seriesEls.forEach(function (v) { + realIndexes.push(parseInt(v.getAttribute('data:realIndex'))); + }); + } else { + seriesEls = w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[rel]"); + seriesEls.forEach(function (v) { + realIndexes.push(parseInt(v.getAttribute('rel')) - 1); + }); + } + + realIndexes.sort(); + + if (w.globals.collapsedSeries.length > 0) { + var risingSeries = w.globals.risingSeries.slice(); + var series = w.config.series.slice(); + + for (var c = 0; c < w.globals.collapsedSeries.length; c++) { + var index = realIndexes.indexOf(w.globals.collapsedSeries[c].index); + + if (index !== -1) { + if (w.globals.axisCharts) { + series[index].data = w.globals.collapsedSeries.slice()[c].data.slice(); + } else { + series[index] = w.globals.collapsedSeries.slice()[c].data; + } + + risingSeries.push(index); + } + } + + w.globals.collapsedSeries = []; + w.globals.ancillaryCollapsedSeries = []; + w.globals.collapsedSeriesIndices = []; + w.globals.ancillaryCollapsedSeriesIndices = []; + w.globals.risingSeries = risingSeries; + w.config.series = series; + + this.ctx._updateSeries(w.config.series, w.config.chart.animations.dynamicAnimation.enabled); + } + } + }, { + key: "toggleDataSeries", + value: function toggleDataSeries(seriesCnt, isHidden) { + var w = this.w; + + if (w.globals.axisCharts || w.config.chart.type === 'radialBar') { + w.globals.resized = true; // we don't want initial animations again + + var seriesEl = null; + var realIndex = null; // yes, make it null. 1 series will rise at a time + + w.globals.risingSeries = []; + + if (w.globals.axisCharts) { + seriesEl = w.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(seriesCnt, "']")); + realIndex = parseInt(seriesEl.getAttribute('data:realIndex')); + } else { + seriesEl = w.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(seriesCnt + 1, "']")); + realIndex = parseInt(seriesEl.getAttribute('rel')) - 1; + } + + if (isHidden) { + this.riseCollapsedSeries(w.globals.collapsedSeries, w.globals.collapsedSeriesIndices, realIndex); + this.riseCollapsedSeries(w.globals.ancillaryCollapsedSeries, w.globals.ancillaryCollapsedSeriesIndices, realIndex); + } else { + if (w.globals.axisCharts) { + var shouldNotHideYAxis = false; + + if (w.config.yaxis[realIndex] && w.config.yaxis[realIndex].show && w.config.yaxis[realIndex].showAlways) { + shouldNotHideYAxis = true; + + if (w.globals.ancillaryCollapsedSeriesIndices.indexOf(realIndex) < 0) { + w.globals.ancillaryCollapsedSeries.push({ + index: realIndex, + data: w.config.series[realIndex].data.slice(), + type: seriesEl.parentNode.className.baseVal.split('-')[1] + }); + w.globals.ancillaryCollapsedSeriesIndices.push(realIndex); + } + } + + if (!shouldNotHideYAxis) { + w.globals.collapsedSeries.push({ + index: realIndex, + data: w.config.series[realIndex].data.slice(), + type: seriesEl.parentNode.className.baseVal.split('-')[1] + }); + w.globals.collapsedSeriesIndices.push(realIndex); + var removeIndexOfRising = w.globals.risingSeries.indexOf(realIndex); + w.globals.risingSeries.splice(removeIndexOfRising, 1); + } // TODO: AVOID mutating the user's config object below + + + w.config.series[realIndex].data = []; + } else { + w.globals.collapsedSeries.push({ + index: realIndex, + data: w.config.series[realIndex] + }); + w.globals.collapsedSeriesIndices.push(realIndex); + w.config.series[realIndex] = 0; + } + + var seriesChildren = seriesEl.childNodes; + + for (var sc = 0; sc < seriesChildren.length; sc++) { + if (seriesChildren[sc].classList.contains('apexcharts-series-markers-wrap')) { + if (seriesChildren[sc].classList.contains('apexcharts-hide')) { + seriesChildren[sc].classList.remove('apexcharts-hide'); + } else { + seriesChildren[sc].classList.add('apexcharts-hide'); + } + } + } + + w.globals.allSeriesCollapsed = w.globals.collapsedSeries.length === w.globals.series.length; + + this.ctx._updateSeries(w.config.series, w.config.chart.animations.dynamicAnimation.enabled); + } + } else { + // for non-axis charts i.e pie / donuts + var _seriesEl = w.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(seriesCnt + 1, "'] path")); + + _seriesEl.fire('click'); + } + } + }, { + key: "riseCollapsedSeries", + value: function riseCollapsedSeries(series, seriesIndices, realIndex) { + var w = this.w; + + if (series.length > 0) { + for (var c = 0; c < series.length; c++) { + if (series[c].index === realIndex) { + if (w.globals.axisCharts) { + w.config.series[realIndex].data = series[c].data.slice(); + series.splice(c, 1); + seriesIndices.splice(c, 1); + w.globals.risingSeries.push(realIndex); + } else { + w.config.series[realIndex] = series[c].data; + series.splice(c, 1); + seriesIndices.splice(c, 1); + w.globals.risingSeries.push(realIndex); + } + + this.ctx._updateSeries(w.config.series, w.config.chart.animations.dynamicAnimation.enabled); + } + } + } + } + }]); + + return Legend; +}(); + +/** + * ApexCharts Responsive Class to override options for different screen sizes. + * + * @module Responsive + **/ + +var Responsive = +/*#__PURE__*/ +function () { + function Responsive(ctx) { + _classCallCheck(this, Responsive); + + this.ctx = ctx; + this.w = ctx.w; + } // the opts parameter if not null has to be set overriding everything + // as the opts is set by user externally + + + _createClass(Responsive, [{ + key: "checkResponsiveConfig", + value: function checkResponsiveConfig(opts) { + var _this = this; + + var w = this.w; + var cnf = w.config; // check if responsive config exists + + if (cnf.responsive.length === 0) return; + var res = cnf.responsive.slice(); + res.sort(function (a, b) { + return a.breakpoint > b.breakpoint ? 1 : b.breakpoint > a.breakpoint ? -1 : 0; + }).reverse(); + var config = new Config({}); + + var iterateResponsiveOptions = function iterateResponsiveOptions() { + var newOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var largestBreakpoint = res[0].breakpoint; + var width = window.innerWidth > 0 ? window.innerWidth : screen.width; + + if (width > largestBreakpoint) { + var options = CoreUtils.extendArrayProps(config, w.globals.initialConfig); + newOptions = Utils.extend(options, newOptions); + newOptions = Utils.extend(w.config, newOptions); + + _this.overrideResponsiveOptions(newOptions); + } else { + for (var i = 0; i < res.length; i++) { + if (width < res[i].breakpoint) { + newOptions = Utils.extend(config, newOptions); + newOptions = CoreUtils.extendArrayProps(newOptions, res[i].options); + newOptions = Utils.extend(w.config, newOptions); + + _this.overrideResponsiveOptions(newOptions); + } + } + } + }; + + if (opts) { + var options = CoreUtils.extendArrayProps(config, opts); + options = Utils.extend(w.config, options); + options = Utils.extend(options, opts); + iterateResponsiveOptions(options); + } else { + iterateResponsiveOptions({}); + } + } + }, { + key: "overrideResponsiveOptions", + value: function overrideResponsiveOptions(newOptions) { + var newConfig = new Config(newOptions).init(); + this.w.config = newConfig; + } + }]); + + return Responsive; +}(); + +/** + * ApexCharts Theme Class for setting the colors and palettes. + * + * @module Theme + **/ + +var Theme = +/*#__PURE__*/ +function () { + function Theme(ctx) { + _classCallCheck(this, Theme); + + this.ctx = ctx; + this.w = ctx.w; + this.colors = []; + } + + _createClass(Theme, [{ + key: "init", + value: function init() { + this.setDefaultColors(); + } + }, { + key: "setDefaultColors", + value: function setDefaultColors() { + var w = this.w; + var utils = new Utils(); + + if (w.config.colors === undefined) { + w.globals.colors = this.predefined(); + } else { + w.globals.colors = w.config.colors; + } + + if (w.config.theme.monochrome.enabled) { + var monoArr = []; + var glsCnt = w.globals.series.length; + + if (w.config.plotOptions.bar.distributed && w.config.chart.type === 'bar') { + glsCnt = w.globals.series[0].length * w.globals.series.length; + } + + var mainColor = w.config.theme.monochrome.color; + var part = 1 / (glsCnt / w.config.theme.monochrome.shadeIntensity); + var shade = w.config.theme.monochrome.shadeTo; + var percent = 0; + + for (var gsl = 0; gsl < glsCnt; gsl++) { + var newColor = void 0; + + if (shade === 'dark') { + newColor = utils.shadeColor(percent * -1, mainColor); + percent = percent + part; + } else { + newColor = utils.shadeColor(percent, mainColor); + percent = percent + part; + } + + monoArr.push(newColor); + } + + w.globals.colors = monoArr.slice(); + } + + var defaultColors = w.globals.colors.slice(); // if user specfied less colors than no. of series, push the same colors again + + this.pushExtraColors(w.globals.colors); // The Border colors + + if (w.config.stroke.colors === undefined) { + w.globals.stroke.colors = defaultColors; + } else { + w.globals.stroke.colors = w.config.stroke.colors; + } + + this.pushExtraColors(w.globals.stroke.colors); // The FILL colors + + if (w.config.fill.colors === undefined) { + w.globals.fill.colors = defaultColors; + } else { + w.globals.fill.colors = w.config.fill.colors; + } + + this.pushExtraColors(w.globals.fill.colors); + + if (w.config.dataLabels.style.colors === undefined) { + w.globals.dataLabels.style.colors = defaultColors; + } else { + w.globals.dataLabels.style.colors = w.config.dataLabels.style.colors; + } + + this.pushExtraColors(w.globals.dataLabels.style.colors, 50); + + if (w.config.plotOptions.radar.polygons.fill.colors === undefined) { + w.globals.radarPolygons.fill.colors = ['#fff']; + } else { + w.globals.radarPolygons.fill.colors = w.config.plotOptions.radar.polygons.fill.colors; + } + + this.pushExtraColors(w.globals.radarPolygons.fill.colors, 20); // The point colors + + if (w.config.markers.colors === undefined) { + w.globals.markers.colors = defaultColors; + } else { + w.globals.markers.colors = w.config.markers.colors; + } + + this.pushExtraColors(w.globals.markers.colors); + } // When the number of colors provided is less than the number of series, this method + // will push same colors to the list + // params: + // distributed is only valid for distributed column/bar charts + + }, { + key: "pushExtraColors", + value: function pushExtraColors(colorSeries, length) { + var distributed = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + var w = this.w; + var len = length || w.globals.series.length; + + if (distributed === null) { + distributed = w.config.chart.type === 'bar' && w.config.plotOptions.bar.distributed || w.config.chart.type === 'heatmap' && w.config.plotOptions.heatmap.colorScale.inverse; + } + + if (distributed) { + len = w.globals.series[0].length * w.globals.series.length; + } + + if (colorSeries.length < len) { + var diff = len - colorSeries.length; + + for (var i = 0; i < diff; i++) { + colorSeries.push(colorSeries[i]); + } + } + } + }, { + key: "predefined", + value: function predefined() { + var palette = this.w.config.theme.palette; // D6E3F8, FCEFEF, DCE0D9, A5978B, EDDDD4, D6E3F8, FEF5EF + + switch (palette) { + case 'palette1': + this.colors = ['#008FFB', '#00E396', '#FEB019', '#FF4560', '#775DD0']; + break; + + case 'palette2': + this.colors = ['#3f51b5', '#03a9f4', '#4caf50', '#f9ce1d', '#FF9800']; + break; + + case 'palette3': + this.colors = ['#33b2df', '#546E7A', '#d4526e', '#13d8aa', '#A5978B']; + break; + + case 'palette4': + this.colors = ['#546E7A', '#4ecdc4', '#c7f464', '#81D4FA', '#fd6a6a']; + break; + + case 'palette5': + this.colors = ['#2b908f', '#f9a3a4', '#90ee7e', '#fa4443', '#69d2e7']; + break; + + case 'palette6': + this.colors = ['#449DD1', '#F86624', '#EA3546', '#662E9B', '#C5D86D']; + break; + + case 'palette7': + this.colors = ['#D7263D', '#1B998B', '#2E294E', '#F46036', '#E2C044']; + break; + + case 'palette8': + this.colors = ['#662E9B', '#F86624', '#F9C80E', '#EA3546', '#43BCCD']; + break; + + case 'palette9': + this.colors = ['#5C4742', '#A5978B', '#8D5B4C', '#5A2A27', '#C4BBAF']; + break; + + case 'palette10': + this.colors = ['#A300D6', '#7D02EB', '#5653FE', '#2983FF', '#00B1F2']; + break; + + default: + this.colors = ['#008FFB', '#00E396', '#FEB019', '#FF4560', '#775DD0']; + break; + } + + return this.colors; + } + }]); + + return Theme; +}(); + +var Utils$1 = +/*#__PURE__*/ +function () { + function Utils(tooltipContext) { + _classCallCheck(this, Utils); + + this.w = tooltipContext.w; + this.ttCtx = tooltipContext; + this.ctx = tooltipContext.ctx; + } + /** + ** When hovering over series, you need to capture which series is being hovered on. + ** This function will return both capturedseries index as well as inner index of that series + * @memberof Utils + * @param {object} + * - hoverArea = the rect on which user hovers + * - elGrid = dimensions of the hover rect (it can be different than hoverarea) + */ + + + _createClass(Utils, [{ + key: "getNearestValues", + value: function getNearestValues(_ref) { + var hoverArea = _ref.hoverArea, + elGrid = _ref.elGrid, + clientX = _ref.clientX, + clientY = _ref.clientY, + hasBars = _ref.hasBars; + var w = this.w; + var hoverWidth = w.globals.gridWidth; + var xDivisor = hoverWidth / (w.globals.dataPoints - 1); + var seriesBound = elGrid.getBoundingClientRect(); + + if (hasBars && w.globals.comboCharts || hasBars) { + xDivisor = hoverWidth / w.globals.dataPoints; + } + + var hoverX = clientX - seriesBound.left; + var hoverY = clientY - seriesBound.top; + var inRect = hoverX < 0 || hoverY < 0 || hoverX > w.globals.gridWidth || hoverY > w.globals.gridHeight; + + if (inRect) { + hoverArea.classList.remove('hovering-zoom'); + hoverArea.classList.remove('hovering-pan'); + } else { + if (w.globals.zoomEnabled) { + hoverArea.classList.remove('hovering-pan'); + hoverArea.classList.add('hovering-zoom'); + } else if (w.globals.panEnabled) { + hoverArea.classList.remove('hovering-zoom'); + hoverArea.classList.add('hovering-pan'); + } + } + + var j = Math.round(hoverX / xDivisor); + + if (hasBars) { + j = Math.ceil(hoverX / xDivisor); + j = j - 1; + } + + var capturedSeries = null; + var closest = null; + var seriesXValArr = []; + var seriesYValArr = []; + + for (var s = 0; s < w.globals.seriesXvalues.length; s++) { + seriesXValArr.push([w.globals.seriesXvalues[s][0] - 0.000001].concat(w.globals.seriesXvalues[s])); + } + + seriesXValArr = seriesXValArr.map(function (seriesXVal) { + return seriesXVal.filter(function (s) { + return s; + }); + }); + seriesYValArr = w.globals.seriesYvalues.map(function (seriesYVal) { + return seriesYVal.filter(function (s) { + return s; + }); + }); // if X axis type is not category and tooltip is not shared, then we need to find the cursor position and get the nearest value + + if (w.globals.isXNumeric) { + closest = this.closestInMultiArray(hoverX, hoverY, seriesXValArr, seriesYValArr); + capturedSeries = closest.index; + j = closest.j; + + if (capturedSeries !== null) { + // initial push, it should be a little smaller than the 1st val + seriesXValArr = w.globals.seriesXvalues[capturedSeries]; + closest = this.closestInArray(hoverX, seriesXValArr); + j = closest.index; + } + } + + if (!j || j < 1) j = 0; + return { + capturedSeries: capturedSeries, + j: j, + hoverX: hoverX, + hoverY: hoverY + }; + } + }, { + key: "closestInMultiArray", + value: function closestInMultiArray(hoverX, hoverY, Xarrays, Yarrays) { + var w = this.w; + var activeIndex = 0; + var currIndex = null; + var j = -1; + + if (w.globals.series.length > 1) { + activeIndex = this.getFirstActiveXArray(Xarrays); + } else { + currIndex = 0; + } + + var currY = Yarrays[activeIndex][0]; + var currX = Xarrays[activeIndex][0]; + var diffX = Math.abs(hoverX - currX); + var diffY = Math.abs(hoverY - currY); + var diff = diffY + diffX; + Yarrays.map(function (arrY, arrIndex) { + arrY.map(function (y, innerKey) { + var newdiffY = Math.abs(hoverY - Yarrays[arrIndex][innerKey]); + var newdiffX = Math.abs(hoverX - Xarrays[arrIndex][innerKey]); + var newdiff = newdiffX + newdiffY; + + if (newdiff < diff) { + diff = newdiff; + diffX = newdiffX; + diffY = newdiffY; + currIndex = arrIndex; + j = innerKey; + } + }); + }); + return { + index: currIndex, + j: j + }; + } + }, { + key: "getFirstActiveXArray", + value: function getFirstActiveXArray(Xarrays) { + var activeIndex = 0; + var coreUtils = new CoreUtils(this.ctx); + var firstActiveSeriesIndex = Xarrays.map(function (xarr, index) { + if (xarr.length > 0) { + return index; + } else { + return -1; + } + }); + + for (var a = 0; a < firstActiveSeriesIndex.length; a++) { + var total = coreUtils.getSeriesTotalByIndex(a); + + if (firstActiveSeriesIndex[a] !== -1 && total !== 0 && !coreUtils.seriesHaveSameValues(a)) { + activeIndex = firstActiveSeriesIndex[a]; + break; + } + } + + return activeIndex; + } + }, { + key: "closestInArray", + value: function closestInArray(val, arr) { + var curr = arr[0]; + var currIndex = null; + var diff = Math.abs(val - curr); + + for (var i = 0; i < arr.length; i++) { + var newdiff = Math.abs(val - arr[i]); + + if (newdiff < diff) { + diff = newdiff; + curr = arr[i]; + currIndex = i; + } + } + + return { + index: currIndex + }; + } + /** + * When there are multiple series, it is possible to have different x values for each series. + * But it may be possible in those multiple series, that there is same x value for 2 or more + * series. + * @memberof Utils + * @param {int} + * - j = is the inner index of series -> (series[i][j]) + * @return {bool} + */ + + }, { + key: "isXoverlap", + value: function isXoverlap(j) { + var w = this.w; + var xSameForAllSeriesJArr = []; + var seriesX = w.globals.seriesX.filter(function (s) { + return typeof s[0] !== 'undefined'; + }); + + if (seriesX.length > 0) { + for (var i = 0; i < seriesX.length - 1; i++) { + if (typeof seriesX[i][j] !== 'undefined' && typeof seriesX[i + 1][j] !== 'undefined') { + if (seriesX[i][j] !== seriesX[i + 1][j]) { + xSameForAllSeriesJArr.push('unEqual'); + } + } + } + } + + if (xSameForAllSeriesJArr.length === 0) { + return true; + } + + return false; + } + }, { + key: "isinitialSeriesSameLen", + value: function isinitialSeriesSameLen() { + var sameLen = true; + var initialSeries = this.w.globals.initialSeries; + + for (var i = 0; i < initialSeries.length - 1; i++) { + if (initialSeries[i].data.length !== initialSeries[i + 1].data.length) { + sameLen = false; + break; + } + } + + return sameLen; + } + }, { + key: "getBarsHeight", + value: function getBarsHeight(allbars) { + var bars = _toConsumableArray(allbars); + + var totalHeight = bars.reduce(function (acc, bar) { + return acc + bar.getBBox().height; + }, 0); + return totalHeight; + } + }, { + key: "toggleAllTooltipSeriesGroups", + value: function toggleAllTooltipSeriesGroups(state) { + var w = this.w; + var ttCtx = this.ttCtx; + + if (ttCtx.allTooltipSeriesGroups.length === 0) { + ttCtx.allTooltipSeriesGroups = w.globals.dom.baseEl.querySelectorAll('.apexcharts-tooltip-series-group'); + } + + var allTooltipSeriesGroups = ttCtx.allTooltipSeriesGroups; + + for (var i = 0; i < allTooltipSeriesGroups.length; i++) { + if (state === 'enable') { + allTooltipSeriesGroups[i].classList.add('active'); + allTooltipSeriesGroups[i].style.display = w.config.tooltip.items.display; + } else { + allTooltipSeriesGroups[i].classList.remove('active'); + allTooltipSeriesGroups[i].style.display = 'none'; + } + } + } + }]); + + return Utils; +}(); + +/** + * ApexCharts Tooltip.Labels Class to draw texts on the tooltip. + * + * @module Tooltip.Labels + **/ + +var Labels = +/*#__PURE__*/ +function () { + function Labels(tooltipContext) { + _classCallCheck(this, Labels); + + this.w = tooltipContext.w; + this.ctx = tooltipContext.ctx; + this.ttCtx = tooltipContext; + this.tooltipUtil = new Utils$1(tooltipContext); + } + + _createClass(Labels, [{ + key: "drawSeriesTexts", + value: function drawSeriesTexts(_ref) { + var _ref$shared = _ref.shared, + shared = _ref$shared === void 0 ? true : _ref$shared, + ttItems = _ref.ttItems, + _ref$i = _ref.i, + i = _ref$i === void 0 ? 0 : _ref$i, + _ref$j = _ref.j, + j = _ref$j === void 0 ? null : _ref$j; + var w = this.w; + + if (w.config.tooltip.custom !== undefined) { + this.handleCustomTooltip({ + i: i, + j: j + }); + } else { + this.toggleActiveInactiveSeries(shared); + } + + var values = this.getValuesToPrint({ + i: i, + j: j + }); + this.printLabels({ + i: i, + j: j, + values: values, + ttItems: ttItems, + shared: shared + }); // Re-calculate tooltip dimensions now that we have drawn the text + + var tooltipEl = this.ttCtx.getElTooltip(); + this.ttCtx.tooltipRect.ttWidth = tooltipEl.getBoundingClientRect().width; + this.ttCtx.tooltipRect.ttHeight = tooltipEl.getBoundingClientRect().height; + } + }, { + key: "printLabels", + value: function printLabels(_ref2) { + var i = _ref2.i, + j = _ref2.j, + values = _ref2.values, + ttItems = _ref2.ttItems, + shared = _ref2.shared; + var w = this.w; + var val; + var xVal = values.xVal, + zVal = values.zVal, + xAxisTTVal = values.xAxisTTVal; + var seriesName = ''; + var pColor = w.globals.colors[i]; + + if (j !== null && w.config.plotOptions.bar.distributed) { + pColor = w.globals.colors[j]; + } + + for (var t = 0, inverset = w.globals.series.length - 1; t < w.globals.series.length; t++, inverset--) { + var f = this.getFormatters(i); + seriesName = this.getSeriesName({ + fn: f.yLbTitleFormatter, + index: i, + seriesIndex: i, + j: j + }); + + if (shared) { + var tIndex = w.config.tooltip.inverseOrder ? inverset : t; + f = this.getFormatters(tIndex); + seriesName = this.getSeriesName({ + fn: f.yLbTitleFormatter, + index: tIndex, + seriesIndex: i, + j: j + }); + pColor = w.globals.colors[tIndex]; // for plot charts, not for pie/donuts + + val = f.yLbFormatter(w.globals.series[tIndex][j], { + series: w.globals.series, + seriesIndex: i, + dataPointIndex: j, + w: w + }); // discard 0 values in BARS + + if (this.ttCtx.hasBars() && w.config.chart.stacked && w.globals.series[tIndex][j] === 0 || typeof w.globals.series[tIndex][j] === 'undefined') { + val = undefined; + } + } else { + val = f.yLbFormatter(w.globals.series[i][j], { + series: w.globals.series, + seriesIndex: i, + dataPointIndex: j, + w: w + }); + } // for pie / donuts + + + if (j === null) { + val = f.yLbFormatter(w.globals.series[i], w); + } + + this.DOMHandling({ + t: t, + ttItems: ttItems, + values: { + val: val, + xVal: xVal, + xAxisTTVal: xAxisTTVal, + zVal: zVal + }, + seriesName: seriesName, + shared: shared, + pColor: pColor + }); + } + } + }, { + key: "getFormatters", + value: function getFormatters(i) { + var w = this.w; + var yLbFormatter = w.globals.yLabelFormatters[i]; + var yLbTitleFormatter; + + if (w.globals.ttVal !== undefined) { + if (Array.isArray(w.globals.ttVal)) { + yLbFormatter = w.globals.ttVal[i] && w.globals.ttVal[i].formatter; + yLbTitleFormatter = w.globals.ttVal[i] && w.globals.ttVal[i].title && w.globals.ttVal[i].title.formatter; + } else { + yLbFormatter = w.globals.ttVal.formatter; + + if (typeof w.globals.ttVal.title.formatter === 'function') { + yLbTitleFormatter = w.globals.ttVal.title.formatter; + } + } + } else { + yLbTitleFormatter = w.config.tooltip.y.title.formatter; + } + + if (typeof yLbFormatter !== 'function') { + if (w.globals.yLabelFormatters[0]) { + yLbFormatter = w.globals.yLabelFormatters[0]; + } else { + yLbFormatter = function yLbFormatter(label) { + return label; + }; + } + } + + if (typeof yLbTitleFormatter !== 'function') { + yLbTitleFormatter = function yLbTitleFormatter(label) { + return label; + }; + } + + return { + yLbFormatter: yLbFormatter, + yLbTitleFormatter: yLbTitleFormatter + }; + } + }, { + key: "getSeriesName", + value: function getSeriesName(_ref3) { + var fn = _ref3.fn, + index = _ref3.index, + seriesIndex = _ref3.seriesIndex, + j = _ref3.j; + var w = this.w; + return fn(String(w.globals.seriesNames[index]), { + series: w.globals.series, + seriesIndex: seriesIndex, + dataPointIndex: j, + w: w + }); + } + }, { + key: "DOMHandling", + value: function DOMHandling(_ref4) { + var t = _ref4.t, + ttItems = _ref4.ttItems, + values = _ref4.values, + seriesName = _ref4.seriesName, + shared = _ref4.shared, + pColor = _ref4.pColor; + var w = this.w; + var ttCtx = this.ttCtx; + var val = values.val, + xVal = values.xVal, + xAxisTTVal = values.xAxisTTVal, + zVal = values.zVal; + var ttItemsChildren = null; + ttItemsChildren = ttItems[t].children; + + if (w.config.tooltip.fillSeriesColor) { + // elTooltip.style.backgroundColor = pColor + ttItems[t].style.backgroundColor = pColor; + ttItemsChildren[0].style.display = 'none'; + } + + if (ttCtx.showTooltipTitle) { + if (ttCtx.tooltipTitle === null) { + // get it once if null, and store it in class property + ttCtx.tooltipTitle = w.globals.dom.baseEl.querySelector('.apexcharts-tooltip-title'); + } + + ttCtx.tooltipTitle.innerHTML = xVal; + } // if xaxis tooltip is constructed, we need to replace the innerHTML + + + if (ttCtx.blxaxisTooltip) { + ttCtx.xaxisTooltipText.innerHTML = xAxisTTVal !== '' ? xAxisTTVal : xVal; + } + + var ttYLabel = ttItems[t].querySelector('.apexcharts-tooltip-text-label'); + + if (ttYLabel) { + ttYLabel.innerHTML = seriesName ? seriesName + ': ' : ''; + } + + var ttYVal = ttItems[t].querySelector('.apexcharts-tooltip-text-value'); + + if (ttYVal) { + ttYVal.innerHTML = val; + } + + if (ttItemsChildren[0] && ttItemsChildren[0].classList.contains('apexcharts-tooltip-marker')) { + ttItemsChildren[0].style.backgroundColor = pColor; + } + + if (!w.config.tooltip.marker.show) { + ttItemsChildren[0].style.display = 'none'; + } + + if (zVal !== null) { + var ttZLabel = ttItems[t].querySelector('.apexcharts-tooltip-text-z-label'); + ttZLabel.innerHTML = w.config.tooltip.z.title; + var ttZVal = ttItems[t].querySelector('.apexcharts-tooltip-text-z-value'); + ttZVal.innerHTML = zVal; + } + + if (shared && ttItemsChildren[0]) { + // hide when no Val or series collapsed + if (typeof val === 'undefined' || val === null || w.globals.collapsedSeriesIndices.indexOf(t) > -1) { + ttItemsChildren[0].parentNode.style.display = 'none'; + } else { + ttItemsChildren[0].parentNode.style.display = w.config.tooltip.items.display; + } + } + } + }, { + key: "toggleActiveInactiveSeries", + value: function toggleActiveInactiveSeries(shared) { + var w = this.w; + + if (shared) { + // make all tooltips active + this.tooltipUtil.toggleAllTooltipSeriesGroups('enable'); + } else { + // disable all tooltip text groups + this.tooltipUtil.toggleAllTooltipSeriesGroups('disable'); // enable the first tooltip text group + + var firstTooltipSeriesGroup = w.globals.dom.baseEl.querySelector('.apexcharts-tooltip-series-group'); + + if (firstTooltipSeriesGroup) { + firstTooltipSeriesGroup.classList.add('active'); + firstTooltipSeriesGroup.style.display = w.config.tooltip.items.display; + } + } + } + }, { + key: "getValuesToPrint", + value: function getValuesToPrint(_ref5) { + var i = _ref5.i, + j = _ref5.j; + var w = this.w; + var filteredSeriesX = this.ctx.series.filteredSeriesX(); + var xVal = ''; + var xAxisTTVal = ''; + var zVal = null; + var val = null; + var customFormatterOpts = { + series: w.globals.series, + seriesIndex: i, + dataPointIndex: j, + w: w + }; + var zFormatter = w.globals.ttZFormatter; + + if (j === null) { + val = w.globals.series[i]; + } else { + if (w.globals.isXNumeric) { + xVal = filteredSeriesX[i][j]; + + if (filteredSeriesX[i].length === 0) { + // a series (possibly the first one) might be collapsed, so get the next active index + var firstActiveSeriesIndex = this.tooltipUtil.getFirstActiveXArray(filteredSeriesX); + xVal = filteredSeriesX[firstActiveSeriesIndex][j]; + } + } else { + xVal = typeof w.globals.labels[j] !== 'undefined' ? w.globals.labels[j] : ''; + } + } + + var bufferXVal = xVal; + + if (w.globals.isXNumeric && w.config.xaxis.type === 'datetime') { + var xFormat = new Formatters(this.ctx); + xVal = xFormat.xLabelFormat(w.globals.ttKeyFormatter, bufferXVal); + } else { + xVal = w.globals.xLabelFormatter(bufferXVal, customFormatterOpts); + } // override default x-axis formatter with tooltip formatter + + + if (w.config.tooltip.x.formatter !== undefined) { + xVal = w.globals.ttKeyFormatter(bufferXVal, customFormatterOpts); + } + + if (w.globals.seriesZ.length > 0 && w.globals.seriesZ[0].length > 0) { + zVal = zFormatter(w.globals.seriesZ[i][j], w); + } + + if (typeof w.config.xaxis.tooltip.formatter === 'function') { + xAxisTTVal = w.globals.xaxisTooltipFormatter(bufferXVal, customFormatterOpts); + } else { + xAxisTTVal = xVal; + } + + return { + val: val, + xVal: xVal, + xAxisTTVal: xAxisTTVal, + zVal: zVal + }; + } + }, { + key: "handleCustomTooltip", + value: function handleCustomTooltip(_ref6) { + var i = _ref6.i, + j = _ref6.j; + var w = this.w; + var tooltipEl = this.ttCtx.getElTooltip(); // override everything with a custom html tooltip and replace it + + tooltipEl.innerHTML = w.config.tooltip.custom({ + series: w.globals.series, + seriesIndex: i, + dataPointIndex: j, + w: w + }); + } + }]); + + return Labels; +}(); + +/** + * ApexCharts Tooltip.Position Class to move the tooltip based on x and y position. + * + * @module Tooltip.Position + **/ + +var Position = +/*#__PURE__*/ +function () { + function Position(tooltipContext) { + _classCallCheck(this, Position); + + this.ttCtx = tooltipContext; + this.ctx = tooltipContext.ctx; + this.w = tooltipContext.w; + } + /** + * This will move the crosshair (the vertical/horz line that moves along with mouse) + * Along with this, this function also calls the xaxisMove function + * @memberof Position + * @param {int} - cx = point's x position, wherever point's x is, you need to move crosshair + */ + + + _createClass(Position, [{ + key: "moveXCrosshairs", + value: function moveXCrosshairs(cx) { + var j = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + var ttCtx = this.ttCtx; + var w = this.w; + var xcrosshairs = ttCtx.getElXCrosshairs(); + var x = cx - ttCtx.xcrosshairsWidth / 2; + var tickAmount = w.globals.labels.slice().length; + + if (j !== null) { + x = w.globals.gridWidth / tickAmount * j; + } + + if (w.config.xaxis.crosshairs.width === 'tickWidth' || w.config.xaxis.crosshairs.width === 'barWidth') { + if (x + ttCtx.xcrosshairsWidth > w.globals.gridWidth) { + x = w.globals.gridWidth - ttCtx.xcrosshairsWidth; + } + } else { + if (j !== null) { + x = x + w.globals.gridWidth / tickAmount / 2; + } + } + + if (x < 0) { + x = 0; + } + + if (x > w.globals.gridWidth) { + x = w.globals.gridWidth; + } + + if (xcrosshairs !== null) { + xcrosshairs.setAttribute('x', x); + xcrosshairs.setAttribute('x1', x); + xcrosshairs.setAttribute('x2', x); + xcrosshairs.setAttribute('y2', w.globals.gridHeight); + xcrosshairs.classList.add('active'); + } + + if (ttCtx.blxaxisTooltip) { + var tx = x; + + if (w.config.xaxis.crosshairs.width === 'tickWidth' || w.config.xaxis.crosshairs.width === 'barWidth') { + tx = x + ttCtx.xcrosshairsWidth / 2; + } + + this.moveXAxisTooltip(tx); + } + } + /** + * This will move the crosshair (the vertical/horz line that moves along with mouse) + * Along with this, this function also calls the xaxisMove function + * @memberof Position + * @param {int} - cx = point's x position, wherever point's x is, you need to move crosshair + */ + + }, { + key: "moveYCrosshairs", + value: function moveYCrosshairs(cy) { + var ttCtx = this.ttCtx; + + if (ttCtx.ycrosshairs !== null) { + Graphics.setAttrs(ttCtx.ycrosshairs, { + y1: cy, + y2: cy + }); + Graphics.setAttrs(ttCtx.ycrosshairsHidden, { + y1: cy, + y2: cy + }); + } + } + /** + ** AxisTooltip is the small rectangle which appears on x axis with x value, when user moves + * @memberof Position + * @param {int} - cx = point's x position, wherever point's x is, you need to move + */ + + }, { + key: "moveXAxisTooltip", + value: function moveXAxisTooltip(cx) { + var w = this.w; + var ttCtx = this.ttCtx; + + if (ttCtx.xaxisTooltip !== null) { + ttCtx.xaxisTooltip.classList.add('active'); + var cy = ttCtx.xaxisOffY + w.config.xaxis.tooltip.offsetY + w.globals.translateY + 1 + w.config.xaxis.offsetY; + var xaxisTTText = ttCtx.xaxisTooltip.getBoundingClientRect(); + var xaxisTTTextWidth = xaxisTTText.width; + cx = cx - xaxisTTTextWidth / 2; + + if (!isNaN(cx)) { + cx = cx + w.globals.translateX; + var textRect = 0; + var graphics = new Graphics(this.ctx); + textRect = graphics.getTextRects(ttCtx.xaxisTooltipText.innerHTML); + ttCtx.xaxisTooltipText.style.minWidth = textRect.width + 'px'; + ttCtx.xaxisTooltip.style.left = cx + 'px'; + ttCtx.xaxisTooltip.style.top = cy + 'px'; + } + } + } + }, { + key: "moveYAxisTooltip", + value: function moveYAxisTooltip(index) { + var w = this.w; + var ttCtx = this.ttCtx; + + if (ttCtx.yaxisTTEls === null) { + ttCtx.yaxisTTEls = w.globals.dom.baseEl.querySelectorAll('.apexcharts-yaxistooltip'); + } + + var ycrosshairsHiddenRectY1 = parseInt(ttCtx.ycrosshairsHidden.getAttribute('y1')); + var cy = w.globals.translateY + ycrosshairsHiddenRectY1; + var yAxisTTRect = ttCtx.yaxisTTEls[index].getBoundingClientRect(); + var yAxisTTHeight = yAxisTTRect.height; + var cx = w.globals.translateYAxisX[index] - 2; + + if (w.config.yaxis[index].opposite) { + cx = cx - 26; + } + + cy = cy - yAxisTTHeight / 2; + + if (w.globals.ignoreYAxisIndexes.indexOf(index) === -1) { + ttCtx.yaxisTTEls[index].classList.add('active'); + ttCtx.yaxisTTEls[index].style.top = cy + 'px'; + ttCtx.yaxisTTEls[index].style.left = cx + w.config.yaxis[index].tooltip.offsetX + 'px'; + } else { + ttCtx.yaxisTTEls[index].classList.remove('active'); + } + } + /** + ** moves the whole tooltip by changing x, y attrs + * @memberof Position + * @param {int} - cx = point's x position, wherever point's x is, you need to move tooltip + * @param {int} - cy = point's y position, wherever point's y is, you need to move tooltip + * @param {int} - r = point's radius + */ + + }, { + key: "moveTooltip", + value: function moveTooltip(cx, cy) { + var r = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + var w = this.w; + var ttCtx = this.ttCtx; + var tooltipEl = ttCtx.getElTooltip(); + var tooltipRect = ttCtx.tooltipRect; + var pointR = r !== null ? parseInt(r) : 1; + var x = parseInt(cx) + pointR + 5; + var y = parseInt(cy) + pointR / 2; // - tooltipRect.ttHeight / 2 + + if (x > w.globals.gridWidth / 2) { + x = x - tooltipRect.ttWidth - pointR - 15; + } + + if (x > w.globals.gridWidth - tooltipRect.ttWidth - 10) { + x = w.globals.gridWidth - tooltipRect.ttWidth; + } + + if (x < -20) { + x = -20; + } + + if (w.config.tooltip.followCursor) { + var elGrid = ttCtx.getElGrid(); + var seriesBound = elGrid.getBoundingClientRect(); + y = ttCtx.e.clientY - seriesBound.top - tooltipRect.ttHeight / 2; + } + + var newPositions = this.positionChecks(tooltipRect, x, y); + x = newPositions.x; + y = newPositions.y; + + if (!isNaN(x)) { + x = x + w.globals.translateX; + tooltipEl.style.left = x + 'px'; + tooltipEl.style.top = y + 'px'; + } + } + }, { + key: "positionChecks", + value: function positionChecks(tooltipRect, x, y) { + var w = this.w; + + if (tooltipRect.ttHeight + y > w.globals.gridHeight) { + y = w.globals.gridHeight - tooltipRect.ttHeight + w.globals.translateY; + } + + if (y < 0) { + y = 0; + } + + return { + x: x, + y: y + }; + } + }, { + key: "moveMarkers", + value: function moveMarkers(i, j) { + var w = this.w; + var ttCtx = this.ttCtx; + + if (w.globals.markers.size[i] > 0) { + var allPoints = w.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(i, "'] .apexcharts-marker")); + + for (var p = 0; p < allPoints.length; p++) { + if (parseInt(allPoints[p].getAttribute('rel')) === j) { + ttCtx.marker.resetPointsSize(); + ttCtx.marker.enlargeCurrentPoint(j, allPoints[p]); + } + } + } else { + ttCtx.marker.resetPointsSize(); + this.moveDynamicPointOnHover(j, i); + } + } // This function is used when you need to show markers/points only on hover - + // DIFFERENT X VALUES in multiple series + + }, { + key: "moveDynamicPointOnHover", + value: function moveDynamicPointOnHover(j, capturedSeries) { + var w = this.w; + var ttCtx = this.ttCtx; + var cx = 0; + var cy = 0; + var pointsArr = w.globals.pointsArray; + var hoverSize = w.config.markers.hover.size; + + if (hoverSize === undefined) { + hoverSize = w.globals.markers.size[capturedSeries] + w.config.markers.hover.sizeOffset; + } + + cx = pointsArr[capturedSeries][j][0]; + cy = pointsArr[capturedSeries][j][1] ? pointsArr[capturedSeries][j][1] : 0; + var point = w.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(capturedSeries, "'] .apexcharts-series-markers circle")); + point.setAttribute('r', hoverSize); + point.setAttribute('cx', cx); + point.setAttribute('cy', cy); // point.style.opacity = w.config.markers.hover.opacity + + this.moveXCrosshairs(cx); + + if (!ttCtx.fixedTooltip) { + this.moveTooltip(cx, cy, hoverSize); + } + } // This function is used when you need to show markers/points only on hover - + // SAME X VALUES in multiple series + + }, { + key: "moveDynamicPointsOnHover", + value: function moveDynamicPointsOnHover(j) { + var ttCtx = this.ttCtx; + var w = ttCtx.w; + var cx = 0; + var cy = 0; + var activeSeries = 0; + var pointsArr = w.globals.pointsArray; + var series = new Series(this.ctx); + activeSeries = series.getActiveSeriesIndex(); + var hoverSize = w.config.markers.hover.size; + + if (hoverSize === undefined) { + hoverSize = w.globals.markers.size[activeSeries] + w.config.markers.hover.sizeOffset; + } + + if (pointsArr[activeSeries]) { + cx = pointsArr[activeSeries][j][0]; + cy = pointsArr[activeSeries][j][1]; + } + + var points = null; + var allPoints = ttCtx.getAllMarkers(); + + if (allPoints !== null) { + points = allPoints; + } else { + points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series-markers circle'); + } + + if (points !== null) { + for (var p = 0; p < points.length; p++) { + var pointArr = pointsArr[p]; + + if (pointArr && pointArr.length) { + var pcy = pointsArr[p][j][1]; + points[p].setAttribute('cx', cx); + var realIndex = parseInt(points[p].parentNode.parentNode.parentNode.getAttribute('data:realIndex')); + + if (pcy !== null) { + points[realIndex] && points[realIndex].setAttribute('r', hoverSize); + points[realIndex] && points[realIndex].setAttribute('cy', pcy); + } else { + points[realIndex] && points[realIndex].setAttribute('r', 0); + } + } + } + } + + this.moveXCrosshairs(cx); + + if (!ttCtx.fixedTooltip) { + var tcy = cy || w.globals.gridHeight; + this.moveTooltip(cx, tcy, hoverSize); + } + } + }, { + key: "moveStickyTooltipOverBars", + value: function moveStickyTooltipOverBars(j) { + var w = this.w; + var ttCtx = this.ttCtx; + var jBar = w.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='1'] path[j='".concat(j, "'], .apexcharts-candlestick-series .apexcharts-series[rel='1'] path[j='").concat(j, "']")); + var bcx = jBar ? parseFloat(jBar.getAttribute('cx')) : 0; + var bcy = 0; + var bw = jBar ? parseFloat(jBar.getAttribute('barWidth')) : 0; + + if (w.globals.isXNumeric) { + bcx = bcx - bw / 2; + } else { + bcx = ttCtx.xAxisTicksPositions[j - 1] + ttCtx.dataPointsDividedWidth / 2; + + if (isNaN(bcx)) { + bcx = ttCtx.xAxisTicksPositions[j] - ttCtx.dataPointsDividedWidth / 2; + } + } // tooltip will move vertically along with mouse as it is a shared tooltip + + + var elGrid = ttCtx.getElGrid(); + var seriesBound = elGrid.getBoundingClientRect(); + bcy = ttCtx.e.clientY - seriesBound.top - ttCtx.tooltipRect.ttHeight / 2; + this.moveXCrosshairs(bcx); + + if (!ttCtx.fixedTooltip) { + var tcy = bcy || w.globals.gridHeight; + this.moveTooltip(bcx, tcy); + } + } + }]); + + return Position; +}(); + +/** + * ApexCharts Tooltip.Marker Class to draw texts on the tooltip. + * + * @module Tooltip.Marker + **/ + +var Marker = +/*#__PURE__*/ +function () { + function Marker(tooltipContext) { + _classCallCheck(this, Marker); + + this.w = tooltipContext.w; + this.ttCtx = tooltipContext; + this.ctx = tooltipContext.ctx; + this.tooltipPosition = new Position(tooltipContext); + } + + _createClass(Marker, [{ + key: "drawDynamicPoints", + value: function drawDynamicPoints() { + var w = this.w; + var graphics = new Graphics(this.ctx); + var marker = new Markers(this.ctx); + var elsSeries = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series'); + + for (var i = 0; i < elsSeries.length; i++) { + var seriesIndex = parseInt(elsSeries[i].getAttribute('data:realIndex')); + var pointsMain = w.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(seriesIndex, "'] .apexcharts-series-markers-wrap")); + + if (pointsMain !== null) { + // it can be null as we have tooltips in donut/bar charts + var point = void 0; + var PointClasses = "apexcharts-marker w".concat((Math.random() + 1).toString(36).substring(4)); + + if ((w.config.chart.type === 'line' || w.config.chart.type === 'area') && !w.globals.comboCharts && !w.config.tooltip.intersect) { + PointClasses += ' no-pointer-events'; + } + + var elPointOptions = marker.getMarkerConfig(PointClasses, seriesIndex); + point = graphics.drawMarker(0, 0, elPointOptions); + point.node.setAttribute('default-marker-size', 0); + var elPointsG = document.createElementNS(w.globals.SVGNS, 'g'); + elPointsG.classList.add('apexcharts-series-markers'); + elPointsG.appendChild(point.node); + pointsMain.appendChild(elPointsG); + } + } + } + }, { + key: "enlargeCurrentPoint", + value: function enlargeCurrentPoint(rel, point) { + var w = this.w; + + if (w.config.chart.type !== 'bubble') { + this.newPointSize(rel, point); + } + + var cx = point.getAttribute('cx'); + var cy = point.getAttribute('cy'); + this.tooltipPosition.moveXCrosshairs(cx); + + if (!this.fixedTooltip) { + if (w.config.chart.type === 'radar') { + var elGrid = this.ttCtx.getElGrid(); + var seriesBound = elGrid.getBoundingClientRect(); + cx = this.ttCtx.e.clientX - seriesBound.left; + } + + this.tooltipPosition.moveTooltip(cx, cy, w.config.markers.hover.size); + } + } + }, { + key: "enlargePoints", + value: function enlargePoints(j) { + var w = this.w; + var me = this; + var ttCtx = this.ttCtx; + var col = j; + var points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker'); + var newSize = w.config.markers.hover.size; + + for (var p = 0; p < points.length; p++) { + var rel = points[p].getAttribute('rel'); + var index = points[p].getAttribute('index'); + + if (newSize === undefined) { + newSize = w.globals.markers.size[index] + w.config.markers.hover.sizeOffset; + } + + if (col === parseInt(rel)) { + me.newPointSize(col, points[p]); + var cx = points[p].getAttribute('cx'); + var cy = points[p].getAttribute('cy'); + me.tooltipPosition.moveXCrosshairs(cx); + + if (!ttCtx.fixedTooltip) { + me.tooltipPosition.moveTooltip(cx, cy, newSize); + } + } else { + me.oldPointSize(points[p]); + } + } + } + }, { + key: "newPointSize", + value: function newPointSize(rel, point) { + var w = this.w; + var newSize = w.config.markers.hover.size; + var elPoint = null; + + if (rel === 0) { + elPoint = point.parentNode.firstChild; + } else { + elPoint = point.parentNode.lastChild; + } + + var index = parseInt(elPoint.getAttribute('index')); + + if (newSize === undefined) { + newSize = w.globals.markers.size[index] + w.config.markers.hover.sizeOffset; + } + + elPoint.setAttribute('r', newSize); + } + }, { + key: "oldPointSize", + value: function oldPointSize(point) { + var size = parseInt(point.getAttribute('default-marker-size')); + point.setAttribute('r', size); + } + }, { + key: "resetPointsSize", + value: function resetPointsSize() { + var w = this.w; + var points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker'); + + for (var p = 0; p < points.length; p++) { + var size = parseInt(points[p].getAttribute('default-marker-size')); + + if (Utils.isNumber(size)) { + points[p].setAttribute('r', size); + } else { + points[p].setAttribute('r', 0); + } + } + } + }]); + + return Marker; +}(); + +/** + * ApexCharts Tooltip.Intersect Class. + * + * @module Tooltip.Intersect + **/ + +var Intersect = +/*#__PURE__*/ +function () { + function Intersect(tooltipContext) { + _classCallCheck(this, Intersect); + + this.w = tooltipContext.w; + this.ttCtx = tooltipContext; + } + + _createClass(Intersect, [{ + key: "getAttr", + value: function getAttr(e, attr) { + return parseFloat(e.target.getAttribute(attr)); + } + }, { + key: "handleHeatTooltip", + value: function handleHeatTooltip(_ref) { + var e = _ref.e, + opt = _ref.opt, + x = _ref.x, + y = _ref.y; + var ttCtx = this.ttCtx; + var w = this.w; + + if (e.target.classList.contains('apexcharts-heatmap-rect')) { + var i = this.getAttr(e, 'i'); + var j = this.getAttr(e, 'j'); + var cx = this.getAttr(e, 'cx'); + var cy = this.getAttr(e, 'cy'); + var width = this.getAttr(e, 'width'); + var height = this.getAttr(e, 'height'); + ttCtx.tooltipLabels.drawSeriesTexts({ + ttItems: opt.ttItems, + i: i, + j: j, + shared: false + }); + x = cx + ttCtx.tooltipRect.ttWidth / 2 + width; + y = cy + ttCtx.tooltipRect.ttHeight / 2 - height / 2; + ttCtx.tooltipPosition.moveXCrosshairs(cx + width / 2); + + if (x > w.globals.gridWidth / 2) { + x = cx - ttCtx.tooltipRect.ttWidth / 2 + width; + } + + if (ttCtx.w.config.tooltip.followCursor) { + var elGrid = ttCtx.getElGrid(); + var seriesBound = elGrid.getBoundingClientRect(); // x = ttCtx.e.clientX - seriesBound.left + + y = ttCtx.e.clientY - seriesBound.top + w.globals.translateY / 2 - 10; + } + } + + return { + x: x, + y: y + }; + } + }, { + key: "handleMarkerTooltip", + value: function handleMarkerTooltip(_ref2) { + var e = _ref2.e, + opt = _ref2.opt, + x = _ref2.x, + y = _ref2.y; + var w = this.w; + var ttCtx = this.ttCtx; + var i; + var j; + + if (e.target.classList.contains('apexcharts-marker')) { + var cx = parseInt(opt.paths.getAttribute('cx')); + var cy = parseInt(opt.paths.getAttribute('cy')); + var val = parseFloat(opt.paths.getAttribute('val')); + j = parseInt(opt.paths.getAttribute('rel')); + i = parseInt(opt.paths.parentNode.parentNode.parentNode.getAttribute('rel')) - 1; + + if (ttCtx.intersect) { + var el = Utils.findAncestor(opt.paths, 'apexcharts-series'); + + if (el) { + i = parseInt(el.getAttribute('data:realIndex')); + } + } + + ttCtx.tooltipLabels.drawSeriesTexts({ + ttItems: opt.ttItems, + i: i, + j: j, + shared: ttCtx.intersect ? false : w.config.tooltip.shared + }); + ttCtx.marker.enlargeCurrentPoint(j, opt.paths); + x = cx; + y = cy - ttCtx.tooltipRect.ttHeight * 1.4; + + if (ttCtx.w.config.tooltip.followCursor) { + var elGrid = ttCtx.getElGrid(); + var seriesBound = elGrid.getBoundingClientRect(); + y = ttCtx.e.clientY - seriesBound.top; + } + + if (val < 0) { + y = cy; + } + } + + return { + x: x, + y: y + }; + } + }, { + key: "handleBarTooltip", + value: function handleBarTooltip(_ref3) { + var e = _ref3.e, + opt = _ref3.opt; + var w = this.w; + var ttCtx = this.ttCtx; + var tooltipEl = ttCtx.getElTooltip(); + var bx = 0; + var x = 0; + var y = 0; // let bW = 0 + + var i = 0; + var strokeWidth; + var barXY = this.getBarTooltipXY({ + e: e, + opt: opt + }); + i = barXY.i; + var barHeight = barXY.barHeight; + var j = barXY.j; + + if (ttCtx.isBarHorizontal && ttCtx.hasBars() || !w.config.tooltip.shared) { + x = barXY.x; + y = barXY.y; + strokeWidth = Array.isArray(w.config.stroke.width) ? w.config.stroke.width[i] : w.config.stroke.width; // bW = barXY.barWidth + + bx = x; + } else { + if (!w.globals.comboCharts && !w.config.tooltip.shared) { + bx = bx / 2; + } + } // y is NaN, make it touch the bottom of grid area + + + if (isNaN(y)) { + y = w.globals.svgHeight - ttCtx.tooltipRect.ttHeight; + } // x exceeds gridWidth + + + if (x + ttCtx.tooltipRect.ttWidth > w.globals.gridWidth) { + x = x - ttCtx.tooltipRect.ttWidth; + } else if (x < 0) { + x = x + ttCtx.tooltipRect.ttWidth; + } + + if (ttCtx.w.config.tooltip.followCursor) { + var elGrid = ttCtx.getElGrid(); + var seriesBound = elGrid.getBoundingClientRect(); + y = ttCtx.e.clientY - seriesBound.top; + } // if tooltip is still null, querySelector + + + if (ttCtx.tooltip === null) { + ttCtx.tooltip = w.globals.dom.baseEl.querySelector('.apexcharts-tooltip'); + } + + if (!w.config.tooltip.shared) { + if (w.globals.comboChartsHasBars) { + ttCtx.tooltipPosition.moveXCrosshairs(bx + strokeWidth / 2); + } else { + ttCtx.tooltipPosition.moveXCrosshairs(bx); + } + } // move tooltip here + + + if (!ttCtx.fixedTooltip && (!w.config.tooltip.shared || ttCtx.isBarHorizontal && ttCtx.hasBars())) { + if (isReversed) { + x = w.globals.gridWidth - x; + } + + tooltipEl.style.left = x + w.globals.translateX + 'px'; + var seriesIndex = parseInt(opt.paths.parentNode.getAttribute('data:realIndex')); + var isReversed = w.globals.isMultipleYAxis ? w.config.yaxis[seriesIndex].reversed : w.config.yaxis[0].reversed; + + if (isReversed && !(ttCtx.isBarHorizontal && ttCtx.hasBars())) { + y = y + barHeight - (w.globals.series[i][j] < 0 ? barHeight : 0) * 2; + } + + if (ttCtx.tooltipRect.ttHeight + y > w.globals.gridHeight) { + y = w.globals.gridHeight - ttCtx.tooltipRect.ttHeight + w.globals.translateY; + tooltipEl.style.top = y + 'px'; + } else { + tooltipEl.style.top = y + w.globals.translateY - ttCtx.tooltipRect.ttHeight / 2 + 'px'; + } + } + } + }, { + key: "getBarTooltipXY", + value: function getBarTooltipXY(_ref4) { + var e = _ref4.e, + opt = _ref4.opt; + var w = this.w; + var j = null; + var ttCtx = this.ttCtx; + var i = 0; + var x = 0; + var y = 0; + var barWidth = 0; + var barHeight = 0; + var cl = e.target.classList; + + if (cl.contains('apexcharts-bar-area') || cl.contains('apexcharts-candlestick-area')) { + var bar = e.target; + var barRect = bar.getBoundingClientRect(); + var seriesBound = opt.elGrid.getBoundingClientRect(); + var bh = barRect.height; + barHeight = barRect.height; + var bw = barRect.width; + var cx = parseInt(bar.getAttribute('cx')); + var cy = parseInt(bar.getAttribute('cy')); + barWidth = parseFloat(bar.getAttribute('barWidth')); + var clientX = e.type === 'touchmove' ? e.touches[0].clientX : e.clientX; + j = parseInt(bar.getAttribute('j')); + i = parseInt(bar.parentNode.getAttribute('rel')) - 1; + + if (w.globals.comboCharts) { + i = parseInt(bar.parentNode.getAttribute('data:realIndex')); + } // if (w.config.tooltip.shared) { + // this check not needed at the moment + // const yDivisor = w.globals.gridHeight / (w.globals.series.length) + // const hoverY = ttCtx.clientY - ttCtx.seriesBound.top + // j = Math.ceil(hoverY / yDivisor) + // } + + + ttCtx.tooltipLabels.drawSeriesTexts({ + ttItems: opt.ttItems, + i: i, + j: j, + shared: ttCtx.showOnIntersect ? false : w.config.tooltip.shared + }); + + if (w.config.tooltip.followCursor) { + if (w.config.plotOptions.bar.horizontal) { + x = clientX - seriesBound.left + 15; + y = cy - ttCtx.dataPointsDividedHeight + bh / 2 - ttCtx.tooltipRect.ttHeight / 2; + } else { + if (w.globals.isXNumeric) { + x = cx - bw / 2; + } else { + x = cx - ttCtx.dataPointsDividedWidth + bw / 2; + } + + y = e.clientY - seriesBound.top - ttCtx.tooltipRect.ttHeight / 2 - 15; + } + } else { + if (w.config.plotOptions.bar.horizontal) { + x = cx; + + if (x < ttCtx.xyRatios.baseLineInvertedY) { + x = cx - ttCtx.tooltipRect.ttWidth; + } + + y = cy - ttCtx.dataPointsDividedHeight + bh / 2 - ttCtx.tooltipRect.ttHeight / 2; + } else { + // if columns + if (w.globals.isXNumeric) { + x = cx - bw / 2; + } else { + x = cx - ttCtx.dataPointsDividedWidth + bw / 2; + } + + y = cy; // - ttCtx.tooltipRect.ttHeight / 2 + 10 + } + } + } + + return { + x: x, + y: y, + barHeight: barHeight, + barWidth: barWidth, + i: i, + j: j + }; + } + }]); + + return Intersect; +}(); + +/** + * ApexCharts Tooltip.AxesTooltip Class. + * + * @module Tooltip.AxesTooltip + **/ +var AxesTooltip = +/*#__PURE__*/ +function () { + function AxesTooltip(tooltipContext) { + _classCallCheck(this, AxesTooltip); + + this.w = tooltipContext.w; + this.ttCtx = tooltipContext; + } + /** + * This method adds the secondary tooltip which appears below x axis + * @memberof Tooltip + **/ + + + _createClass(AxesTooltip, [{ + key: "drawXaxisTooltip", + value: function drawXaxisTooltip() { + var w = this.w; + var ttCtx = this.ttCtx; + var isBottom = w.config.xaxis.position === 'bottom'; + ttCtx.xaxisOffY = isBottom ? w.globals.gridHeight + 1 : 1; + var tooltipCssClass = isBottom ? 'apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom' : 'apexcharts-xaxistooltip apexcharts-xaxistooltip-top'; + var renderTo = w.globals.dom.elWrap; + + if (ttCtx.blxaxisTooltip) { + var xaxisTooltip = w.globals.dom.baseEl.querySelector('.apexcharts-xaxistooltip'); + + if (xaxisTooltip === null) { + ttCtx.xaxisTooltip = document.createElement('div'); + ttCtx.xaxisTooltip.setAttribute('class', tooltipCssClass); + renderTo.appendChild(ttCtx.xaxisTooltip); + ttCtx.xaxisTooltipText = document.createElement('div'); + ttCtx.xaxisTooltipText.classList.add('apexcharts-xaxistooltip-text'); + ttCtx.xaxisTooltipText.style.fontFamily = w.config.xaxis.tooltip.style.fontFamily || w.config.chart.fontFamily; + ttCtx.xaxisTooltipText.style.fontSize = w.config.xaxis.tooltip.style.fontSize; + ttCtx.xaxisTooltip.appendChild(ttCtx.xaxisTooltipText); + } + } + } + /** + * This method adds the secondary tooltip which appears below x axis + * @memberof Tooltip + **/ + + }, { + key: "drawYaxisTooltip", + value: function drawYaxisTooltip() { + var w = this.w; + var ttCtx = this.ttCtx; + + for (var i = 0; i < w.config.yaxis.length; i++) { + var isRight = w.config.yaxis[i].opposite || w.config.yaxis[i].crosshairs.opposite; + ttCtx.yaxisOffX = isRight ? w.globals.gridWidth + 1 : 1; + var tooltipCssClass = isRight ? "apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i, " apexcharts-yaxistooltip-right") : "apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i, " apexcharts-yaxistooltip-left"); + var renderTo = w.globals.dom.elWrap; + + if (ttCtx.blyaxisTooltip) { + var yaxisTooltip = w.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i)); + + if (yaxisTooltip === null) { + ttCtx.yaxisTooltip = document.createElement('div'); + ttCtx.yaxisTooltip.setAttribute('class', tooltipCssClass); + renderTo.appendChild(ttCtx.yaxisTooltip); + if (i === 0) ttCtx.yaxisTooltipText = []; + ttCtx.yaxisTooltipText.push(document.createElement('div')); + ttCtx.yaxisTooltipText[i].classList.add('apexcharts-yaxistooltip-text'); + ttCtx.yaxisTooltip.appendChild(ttCtx.yaxisTooltipText[i]); + } + } + } + } + /** + * @memberof Tooltip + **/ + + }, { + key: "setXCrosshairWidth", + value: function setXCrosshairWidth() { + var w = this.w; + var ttCtx = this.ttCtx; // set xcrosshairs width + + var xcrosshairs = ttCtx.getElXCrosshairs(); + ttCtx.xcrosshairsWidth = parseInt(w.config.xaxis.crosshairs.width); + + if (!w.globals.comboCharts) { + if (w.config.xaxis.crosshairs.width === 'tickWidth') { + var count = w.globals.labels.length; + ttCtx.xcrosshairsWidth = w.globals.gridWidth / count; + } else if (w.config.xaxis.crosshairs.width === 'barWidth') { + var bar = w.globals.dom.baseEl.querySelector('.apexcharts-bar-area'); + + if (bar !== null) { + var barWidth = parseFloat(bar.getAttribute('barWidth')); + ttCtx.xcrosshairsWidth = barWidth; + } else { + ttCtx.xcrosshairsWidth = 1; + } + } + } else { + var _bar = w.globals.dom.baseEl.querySelector('.apexcharts-bar-area'); + + if (_bar !== null && w.config.xaxis.crosshairs.width === 'barWidth') { + var _barWidth = parseFloat(_bar.getAttribute('barWidth')); + + ttCtx.xcrosshairsWidth = _barWidth; + } else { + if (w.config.xaxis.crosshairs.width === 'tickWidth') { + var _count = w.globals.labels.length; + ttCtx.xcrosshairsWidth = w.globals.gridWidth / _count; + } + } + } + + if (w.config.chart.type === 'bar' && w.config.plotOptions.bar.horizontal) { + ttCtx.xcrosshairsWidth = 0; + } + + if (xcrosshairs !== null && ttCtx.xcrosshairsWidth > 0) { + xcrosshairs.setAttribute('width', ttCtx.xcrosshairsWidth); + } + } + }, { + key: "handleYCrosshair", + value: function handleYCrosshair() { + var w = this.w; + var ttCtx = this.ttCtx; // set ycrosshairs height + + ttCtx.ycrosshairs = w.globals.dom.baseEl.querySelector('.apexcharts-ycrosshairs'); + ttCtx.ycrosshairsHidden = w.globals.dom.baseEl.querySelector('.apexcharts-ycrosshairs-hidden'); + } + }, { + key: "drawYaxisTooltipText", + value: function drawYaxisTooltipText(index, clientY, xyRatios) { + var ttCtx = this.ttCtx; + var w = this.w; + var lbFormatter = w.globals.yLabelFormatters[index]; + + if (ttCtx.blyaxisTooltip) { + var elGrid = ttCtx.getElGrid(); + var seriesBound = elGrid.getBoundingClientRect(); + var hoverY = (clientY - seriesBound.top) * xyRatios.yRatio[index]; + var height = w.globals.maxYArr[index] - w.globals.minYArr[index]; + var val = w.globals.minYArr[index] + (height - hoverY); + ttCtx.tooltipPosition.moveYCrosshairs(clientY - seriesBound.top); + ttCtx.yaxisTooltipText[index].innerHTML = lbFormatter(val); + ttCtx.tooltipPosition.moveYAxisTooltip(index); + } + } + }]); + + return AxesTooltip; +}(); + +/** + * ApexCharts Core Tooltip Class to handle the tooltip generation. + * + * @module Tooltip + **/ + +var Tooltip = +/*#__PURE__*/ +function () { + function Tooltip(ctx) { + _classCallCheck(this, Tooltip); + + this.ctx = ctx; + this.w = ctx.w; + var w = this.w; + this.tooltipUtil = new Utils$1(this); + this.tooltipLabels = new Labels(this); + this.tooltipPosition = new Position(this); + this.marker = new Marker(this); + this.intersect = new Intersect(this); + this.axesTooltip = new AxesTooltip(this); + this.showOnIntersect = w.config.tooltip.intersect; + this.showTooltipTitle = w.config.tooltip.x.show; + this.fixedTooltip = w.config.tooltip.fixed.enabled; + this.xaxisTooltip = null; + this.yaxisTTEls = null; + this.isBarHorizontal = w.config.plotOptions.bar.horizontal; + this.isBarShared = !w.config.plotOptions.bar.horizontal && w.config.tooltip.shared; + } + + _createClass(Tooltip, [{ + key: "getElTooltip", + value: function getElTooltip(ctx) { + if (!ctx) ctx = this; + return ctx.w.globals.dom.baseEl.querySelector('.apexcharts-tooltip'); + } + }, { + key: "getElXCrosshairs", + value: function getElXCrosshairs() { + return this.w.globals.dom.baseEl.querySelector('.apexcharts-xcrosshairs'); + } + }, { + key: "getElGrid", + value: function getElGrid() { + return this.w.globals.dom.baseEl.querySelector('.apexcharts-grid'); + } + }, { + key: "drawTooltip", + value: function drawTooltip(xyRatios) { + var w = this.w; + this.xyRatios = xyRatios; + this.blxaxisTooltip = w.config.xaxis.tooltip.enabled && w.globals.axisCharts; + this.blyaxisTooltip = w.config.yaxis[0].tooltip.enabled && w.globals.axisCharts; + this.allTooltipSeriesGroups = []; + + if (!w.globals.axisCharts) { + this.showTooltipTitle = false; + } + + var tooltipEl = document.createElement('div'); + tooltipEl.classList.add('apexcharts-tooltip'); + tooltipEl.classList.add(w.config.tooltip.theme); + w.globals.dom.elWrap.appendChild(tooltipEl); + + if (w.globals.axisCharts) { + this.axesTooltip.drawXaxisTooltip(); + this.axesTooltip.drawYaxisTooltip(); + this.axesTooltip.setXCrosshairWidth(); + this.axesTooltip.handleYCrosshair(); + var xAxis = new XAxis(this.ctx); + this.xAxisTicksPositions = xAxis.getXAxisTicksPositions(); + } // we forcefully set intersect true for these conditions + + + if (w.globals.comboCharts && !w.config.tooltip.shared || w.config.tooltip.intersect && !w.config.tooltip.shared || w.config.chart.type === 'bar' && !w.config.tooltip.shared) { + this.showOnIntersect = true; + } + + if (w.config.markers.size === 0 || w.globals.markers.largestSize === 0) { + // when user don't want to show points all the time, but only on when hovering on series + this.marker.drawDynamicPoints(this); + } // no visible series, exit + + + if (w.globals.collapsedSeries.length === w.globals.series.length) return; + this.dataPointsDividedHeight = w.globals.gridHeight / w.globals.dataPoints; + this.dataPointsDividedWidth = w.globals.gridWidth / w.globals.dataPoints; + + if (this.showTooltipTitle) { + this.tooltipTitle = document.createElement('div'); + this.tooltipTitle.classList.add('apexcharts-tooltip-title'); + this.tooltipTitle.style.fontFamily = w.config.tooltip.style.fontFamily || w.config.chart.fontFamily; + this.tooltipTitle.style.fontSize = w.config.tooltip.style.fontSize; + tooltipEl.appendChild(this.tooltipTitle); + } + + var ttItemsCnt = w.globals.series.length; // whether shared or not, default is shared + + if ((w.globals.xyCharts || w.globals.comboCharts) && w.config.tooltip.shared) { + if (!this.showOnIntersect) { + ttItemsCnt = w.globals.series.length; + } else { + ttItemsCnt = 1; + } + } + + this.ttItems = this.createTTElements(ttItemsCnt); + this.addSVGEvents(); + } + }, { + key: "createTTElements", + value: function createTTElements(ttItemsCnt) { + var w = this.w; + var ttItems = []; + var tooltipEl = this.getElTooltip(); + + for (var i = 0; i < ttItemsCnt; i++) { + var gTxt = document.createElement('div'); + gTxt.classList.add('apexcharts-tooltip-series-group'); + var point = document.createElement('span'); + point.classList.add('apexcharts-tooltip-marker'); + point.style.backgroundColor = w.globals.colors[i]; + gTxt.appendChild(point); + var gYZ = document.createElement('div'); + gYZ.classList.add('apexcharts-tooltip-text'); + gYZ.style.fontFamily = w.config.tooltip.style.fontFamily || w.config.chart.fontFamily; + gYZ.style.fontSize = w.config.tooltip.style.fontSize; // y values group + + var gYValText = document.createElement('div'); + gYValText.classList.add('apexcharts-tooltip-y-group'); + var txtLabel = document.createElement('span'); + txtLabel.classList.add('apexcharts-tooltip-text-label'); + gYValText.appendChild(txtLabel); + var txtValue = document.createElement('span'); + txtValue.classList.add('apexcharts-tooltip-text-value'); + gYValText.appendChild(txtValue); // z values group + + var gZValText = document.createElement('div'); + gZValText.classList.add('apexcharts-tooltip-z-group'); + var txtZLabel = document.createElement('span'); + txtZLabel.classList.add('apexcharts-tooltip-text-z-label'); + gZValText.appendChild(txtZLabel); + var txtZValue = document.createElement('span'); + txtZValue.classList.add('apexcharts-tooltip-text-z-value'); + gZValText.appendChild(txtZValue); + gYZ.appendChild(gYValText); + gYZ.appendChild(gZValText); + gTxt.appendChild(gYZ); + tooltipEl.appendChild(gTxt); + ttItems.push(gTxt); + } + + return ttItems; + } + }, { + key: "addSVGEvents", + value: function addSVGEvents() { + var w = this.w; + var type = w.config.chart.type; + var tooltipEl = this.getElTooltip(); + var barOrCandlestick = !!(type === 'bar' || type === 'candlestick'); + var hoverArea = w.globals.dom.Paper.node; + var elGrid = this.getElGrid(); + + if (elGrid) { + this.seriesBound = elGrid.getBoundingClientRect(); + } + + var tooltipY = []; + var tooltipX = []; + var seriesHoverParams = { + hoverArea: hoverArea, + elGrid: elGrid, + tooltipEl: tooltipEl, + tooltipY: tooltipY, + tooltipX: tooltipX, + ttItems: this.ttItems + }; + var points; + + if (w.globals.axisCharts) { + if (type === 'area' || type === 'line' || type === 'scatter' || type === 'bubble') { + points = w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"); + } else if (barOrCandlestick) { + points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series .apexcharts-bar-area', '.apexcharts-series .apexcharts-candlestick-area'); + } else if (type === 'heatmap') { + points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series .apexcharts-heatmap'); + } else if (type === 'radar') { + points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series .apexcharts-marker'); + } + + if (points && points.length) { + for (var p = 0; p < points.length; p++) { + tooltipY.push(points[p].getAttribute('cy')); + tooltipX.push(points[p].getAttribute('cx')); + } + } + } + + var validSharedChartTypes = w.globals.xyCharts && !this.showOnIntersect || w.globals.comboCharts && !this.showOnIntersect || barOrCandlestick && this.hasBars() && w.config.tooltip.shared; + + if (validSharedChartTypes) { + this.addPathsEventListeners([hoverArea], seriesHoverParams); + } else if (barOrCandlestick && !w.globals.comboCharts) { + this.addBarsEventListeners(seriesHoverParams); + } else if (type === 'bubble' || type === 'scatter' || type === 'radar' || this.showOnIntersect && (type === 'area' || type === 'line')) { + this.addPointsEventsListeners(seriesHoverParams); + } else if (!w.globals.axisCharts || type === 'heatmap') { + var seriesAll = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series'); + this.addPathsEventListeners(seriesAll, seriesHoverParams); + } + + if (this.showOnIntersect) { + var linePoints = w.globals.dom.baseEl.querySelectorAll('.apexcharts-line-series .apexcharts-marker'); + + if (linePoints.length > 0) { + // if we find any lineSeries, addEventListeners for them + this.addPathsEventListeners(linePoints, seriesHoverParams); + } + + var areaPoints = w.globals.dom.baseEl.querySelectorAll('.apexcharts-area-series .apexcharts-marker'); + + if (areaPoints.length > 0) { + // if we find any areaSeries, addEventListeners for them + this.addPathsEventListeners(areaPoints, seriesHoverParams); + } // combo charts may have bars, so add event listeners here too + + + if (this.hasBars() && !w.config.tooltip.shared) { + this.addBarsEventListeners(seriesHoverParams); + } + } + } + }, { + key: "drawFixedTooltipRect", + value: function drawFixedTooltipRect() { + var w = this.w; + var tooltipEl = this.getElTooltip(); + var tooltipRect = tooltipEl.getBoundingClientRect(); + var ttWidth = tooltipRect.width + 10; + var ttHeight = tooltipRect.height + 10; + var x = w.config.tooltip.fixed.offsetX; + var y = w.config.tooltip.fixed.offsetY; + + if (w.config.tooltip.fixed.position.toLowerCase().indexOf('right') > -1) { + x = x + w.globals.svgWidth - ttWidth + 10; + } + + if (w.config.tooltip.fixed.position.toLowerCase().indexOf('bottom') > -1) { + y = y + w.globals.svgHeight - ttHeight - 10; + } + + tooltipEl.style.left = x + 'px'; + tooltipEl.style.top = y + 'px'; + return { + x: x, + y: y, + ttWidth: ttWidth, + ttHeight: ttHeight + }; + } + }, { + key: "addPointsEventsListeners", + value: function addPointsEventsListeners(seriesHoverParams) { + var w = this.w; + var points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series-markers .apexcharts-marker'); + this.addPathsEventListeners(points, seriesHoverParams); + } + }, { + key: "addBarsEventListeners", + value: function addBarsEventListeners(seriesHoverParams) { + var w = this.w; + var bars = w.globals.dom.baseEl.querySelectorAll('.apexcharts-bar-area, .apexcharts-candlestick-area'); + this.addPathsEventListeners(bars, seriesHoverParams); + } + }, { + key: "addPathsEventListeners", + value: function addPathsEventListeners(paths, opts) { + var _this = this; + + var self = this; + + var _loop = function _loop(p) { + var extendedOpts = { + paths: paths[p], + tooltipEl: opts.tooltipEl, + tooltipY: opts.tooltipY, + tooltipX: opts.tooltipX, + elGrid: opts.elGrid, + hoverArea: opts.hoverArea, + ttItems: opts.ttItems + }; + _this.w.globals.tooltipOpts = extendedOpts; + var events = ['mousemove', 'touchmove', 'mouseout', 'touchend']; + events.map(function (ev) { + return paths[p].addEventListener(ev, self.seriesHover.bind(self, extendedOpts), { + capture: false, + passive: true + }); + }); + }; + + for (var p = 0; p < paths.length; p++) { + _loop(p); + } + } + /* + ** The actual series hover function + */ + + }, { + key: "seriesHover", + value: function seriesHover(opt, e) { + var _this2 = this; + + var chartGroups = []; + var w = this.w; // if user has more than one charts in group, we need to sync + + if (w.config.chart.group) { + chartGroups = this.ctx.getGroupedCharts(); + } + + if (w.globals.axisCharts && (w.globals.minX === -Infinity && w.globals.maxX === Infinity || w.globals.dataPoints === 0)) { + return; + } + + if (chartGroups.length) { + chartGroups.forEach(function (ch) { + var tooltipEl = _this2.getElTooltip(ch); + + var newOpts = { + paths: opt.paths, + tooltipEl: tooltipEl, + tooltipY: opt.tooltipY, + tooltipX: opt.tooltipX, + elGrid: opt.elGrid, + hoverArea: opt.hoverArea, + ttItems: ch.w.globals.tooltip.ttItems // all the charts should have the same minX and maxX (same xaxis) for multiple tooltips to work correctly + + }; + + if (ch.w.globals.minX === _this2.w.globals.minX && ch.w.globals.maxX === _this2.w.globals.maxX) { + ch.w.globals.tooltip.seriesHoverByContext({ + chartCtx: ch, + ttCtx: ch.w.globals.tooltip, + opt: newOpts, + e: e + }); + } + }); + } else { + this.seriesHoverByContext({ + chartCtx: this.ctx, + ttCtx: this.w.globals.tooltip, + opt: opt, + e: e + }); + } + } + }, { + key: "seriesHoverByContext", + value: function seriesHoverByContext(_ref) { + var chartCtx = _ref.chartCtx, + ttCtx = _ref.ttCtx, + opt = _ref.opt, + e = _ref.e; + var w = chartCtx.w; + var tooltipEl = this.getElTooltip(); // tooltipRect is calculated on every mousemove, because the text is dynamic + + ttCtx.tooltipRect = { + x: 0, + y: 0, + ttWidth: tooltipEl.getBoundingClientRect().width, + ttHeight: tooltipEl.getBoundingClientRect().height + }; + ttCtx.e = e; // highlight the current hovered bars + + if (ttCtx.hasBars() && !w.globals.comboCharts && !ttCtx.isBarShared) { + if (w.config.tooltip.onDatasetHover.highlightDataSeries) { + var series = new Series(chartCtx); + series.toggleSeriesOnHover(e, e.target.parentNode); + } + } + + if (ttCtx.fixedTooltip) { + ttCtx.drawFixedTooltipRect(); + } + + if (w.globals.axisCharts) { + ttCtx.axisChartsTooltips({ + e: e, + opt: opt, + tooltipRect: ttCtx.tooltipRect + }); + } else { + // non-plot charts i.e pie/donut/circle + ttCtx.nonAxisChartsTooltips({ + e: e, + opt: opt, + tooltipRect: ttCtx.tooltipRect + }); + } + } // tooltip handling for line/area/bar/columns/scatter + + }, { + key: "axisChartsTooltips", + value: function axisChartsTooltips(_ref2) { + var e = _ref2.e, + opt = _ref2.opt; + var w = this.w; + var j, x, y; + var self = this; + var capj = null; + var seriesBound = opt.elGrid.getBoundingClientRect(); + var clientX = e.type === 'touchmove' ? e.touches[0].clientX : e.clientX; + var clientY = e.type === 'touchmove' ? e.touches[0].clientY : e.clientY; + this.clientY = clientY; + this.clientX = clientX; + + if (clientY < seriesBound.top || clientY > seriesBound.top + seriesBound.height) { + self.handleMouseOut(opt); + return; + } + + var tooltipEl = this.getElTooltip(); + var xcrosshairs = this.getElXCrosshairs(); + var isStickyTooltip = w.globals.xyCharts || w.config.chart.type === 'bar' && !this.isBarHorizontal && this.hasBars() && w.config.tooltip.shared || w.globals.comboCharts && this.hasBars; + + if (w.config.chart.type === 'bar' && this.isBarHorizontal && this.hasBars()) { + isStickyTooltip = false; + } + + if (e.type === 'mousemove' || e.type === 'touchmove') { + if (xcrosshairs !== null) { + xcrosshairs.classList.add('active'); + } + + if (self.ycrosshairs !== null && self.blyaxisTooltip) { + self.ycrosshairs.classList.add('active'); + } + + if (isStickyTooltip && !self.showOnIntersect) { + capj = self.tooltipUtil.getNearestValues({ + context: self, + hoverArea: opt.hoverArea, + elGrid: opt.elGrid, + clientX: clientX, + clientY: clientY, + hasBars: self.hasBars + }); + j = capj.j; + var capturedSeries = capj.capturedSeries; + + if (capj.hoverX < 0 || capj.hoverX > w.globals.gridWidth) { + self.handleMouseOut(opt); + return; + } + + if (capturedSeries !== null) { + var ignoreNull = w.globals.series[capturedSeries][j] === null; + + if (ignoreNull) { + opt.tooltipEl.classList.remove('active'); + return; + } + + if (typeof w.globals.series[capturedSeries][j] !== 'undefined') { + if (w.config.tooltip.shared && this.tooltipUtil.isXoverlap(j) && this.tooltipUtil.isinitialSeriesSameLen()) { + this.create(self, capturedSeries, j, opt.ttItems); + } else { + this.create(self, capturedSeries, j, opt.ttItems, false); + } + } else { + if (this.tooltipUtil.isXoverlap(j)) { + self.create(self, 0, j, opt.ttItems); + } + } + } else { + // couldn't capture any series. check if shared X is same, + // if yes, draw a grouped tooltip + if (this.tooltipUtil.isXoverlap(j)) { + self.create(self, 0, j, opt.ttItems); + } + } + } else { + if (w.config.chart.type === 'heatmap') { + var markerXY = this.intersect.handleHeatTooltip({ + e: e, + opt: opt, + x: x, + y: y + }); + x = markerXY.x; + y = markerXY.y; + tooltipEl.style.left = x + 'px'; + tooltipEl.style.top = y + 'px'; + } else { + if (this.hasBars) { + this.intersect.handleBarTooltip({ + e: e, + opt: opt + }); + } + + if (this.hasMarkers) { + // intersect - line/area/scatter/bubble + this.intersect.handleMarkerTooltip({ + e: e, + opt: opt, + x: x, + y: y + }); + } + } + } + + if (this.blyaxisTooltip) { + for (var yt = 0; yt < w.config.yaxis.length; yt++) { + self.axesTooltip.drawYaxisTooltipText(yt, clientY, self.xyRatios); + } + } + + opt.tooltipEl.classList.add('active'); + } else if (e.type === 'mouseout' || e.type === 'touchend') { + this.handleMouseOut(opt); + } + } // tooltip handling for pie/donuts + + }, { + key: "nonAxisChartsTooltips", + value: function nonAxisChartsTooltips(_ref3) { + var e = _ref3.e, + opt = _ref3.opt, + tooltipRect = _ref3.tooltipRect; + var w = this.w; + var rel = opt.paths.getAttribute('rel'); + var tooltipEl = this.getElTooltip(); + var trX = 0; + var trY = 0; + var elPie = null; + var clientX = e.type === 'touchmove' ? e.touches[0].clientX : e.clientX; + + if (w.config.chart.type === 'radialBar') { + elPie = w.globals.dom.baseEl.querySelector('.apexcharts-radialbar'); + } else { + elPie = w.globals.dom.baseEl.querySelector('.apexcharts-pie'); + trX = parseInt(elPie.getAttribute('data:innerTranslateX')); + trY = parseInt(elPie.getAttribute('data:innerTranslateY')); + } + + var seriesBound = elPie.getBoundingClientRect(); + + if (e.type === 'mousemove' || e.type === 'touchmove') { + tooltipEl.classList.add('active'); + this.tooltipLabels.drawSeriesTexts({ + ttItems: opt.ttItems, + i: parseInt(rel) - 1, + shared: false + }); + var x = clientX - seriesBound.left - tooltipRect.ttWidth / 2.2 + trX; + var y = e.clientY - seriesBound.top - tooltipRect.ttHeight / 2 - 15 + trY; + + if (x < 0) { + x = 0; + } else if (x + tooltipRect.ttWidth > w.globals.gridWidth) { + x = clientX - seriesBound.left - tooltipRect.ttWidth + trX; + } + + if (y < 0) y = tooltipRect.ttHeight + 20; + tooltipEl.style.left = x + w.globals.translateX + 'px'; + tooltipEl.style.top = y + 'px'; + } else if (e.type === 'mouseout' || e.type === 'touchend') { + tooltipEl.classList.remove('active'); + } + } + }, { + key: "deactivateHoverFilter", + value: function deactivateHoverFilter() { + var w = this.w; + var graphics = new Graphics(this.ctx); + var allPaths = w.globals.dom.Paper.select(".apexcharts-bar-area"); + + for (var b = 0; b < allPaths.length; b++) { + graphics.pathMouseLeave(allPaths[b]); + } + } + }, { + key: "handleMouseOut", + value: function handleMouseOut(opt) { + var w = this.w; + var xcrosshairs = this.getElXCrosshairs(); + opt.tooltipEl.classList.remove('active'); + this.deactivateHoverFilter(); + + if (w.config.chart.type !== 'bubble') { + this.marker.resetPointsSize(); + } + + if (xcrosshairs !== null) { + xcrosshairs.classList.remove('active'); + } + + if (this.ycrosshairs !== null) { + this.ycrosshairs.classList.remove('active'); + } + + if (this.blxaxisTooltip) { + this.xaxisTooltip.classList.remove('active'); + } + + if (this.blyaxisTooltip) { + if (this.yaxisTTEls === null) { + this.yaxisTTEls = w.globals.dom.baseEl.querySelectorAll('.apexcharts-yaxistooltip'); + } + + for (var i = 0; i < this.yaxisTTEls.length; i++) { + this.yaxisTTEls[i].classList.remove('active'); + } + } + } + }, { + key: "getElMarkers", + value: function getElMarkers() { + return this.w.globals.dom.baseEl.querySelectorAll(' .apexcharts-series-markers'); + } + }, { + key: "getAllMarkers", + value: function getAllMarkers() { + return this.w.globals.dom.baseEl.querySelectorAll('.apexcharts-series-markers .apexcharts-marker'); + } + }, { + key: "hasMarkers", + value: function hasMarkers() { + var markers = this.getElMarkers(); + return markers.length > 0; + } + }, { + key: "getElBars", + value: function getElBars() { + return this.w.globals.dom.baseEl.querySelectorAll('.apexcharts-bar-series, .apexcharts-candlestick-series'); + } + }, { + key: "hasBars", + value: function hasBars() { + var bars = this.getElBars(); + return bars.length > 0; + } + }, { + key: "create", + value: function create(context, capturedSeries, j, ttItems) { + var shared = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null; + var w = this.w; + var self = context; + if (shared === null) shared = w.config.tooltip.shared; + var hasMarkers = this.hasMarkers(); + var bars = this.getElBars(); + + if (shared) { + self.tooltipLabels.drawSeriesTexts({ + ttItems: ttItems, + i: capturedSeries, + j: j, + shared: this.showOnIntersect ? false : w.config.tooltip.shared + }); + + if (hasMarkers) { + if (w.globals.markers.largestSize > 0) { + self.marker.enlargePoints(j); + } else { + self.tooltipPosition.moveDynamicPointsOnHover(j); + } + } + + if (this.hasBars()) { + this.barSeriesHeight = this.tooltipUtil.getBarsHeight(bars); + + if (this.barSeriesHeight > 0) { + // hover state, activate snap filter + var graphics = new Graphics(this.ctx); + var paths = w.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(j, "']")); // de-activate first + + this.deactivateHoverFilter(); + this.tooltipPosition.moveStickyTooltipOverBars(j); + + for (var b = 0; b < paths.length; b++) { + graphics.pathMouseEnter(paths[b]); + } + } + } + } else { + self.tooltipLabels.drawSeriesTexts({ + shared: false, + ttItems: ttItems, + i: capturedSeries, + j: j + }); + + if (this.hasBars()) { + self.tooltipPosition.moveStickyTooltipOverBars(j); + } + + if (hasMarkers) { + self.tooltipPosition.moveMarkers(capturedSeries, j); + } + } + } + }]); + + return Tooltip; +}(); + +var icoPan = "\n \n \n \n \n \n \n \n"; + +var icoZoom = "\n \n \n \n"; + +var icoReset = "\n \n \n"; + +var icoZoomIn = "\n \n \n\n"; + +var icoZoomOut = "\n \n \n\n"; + +var icoSelect = "\n \n \n"; + +var icoMenu = ""; + +/** + * ApexCharts Toolbar Class for creating toolbar in axis based charts. + * + * @module Toolbar + **/ + +var Toolbar = +/*#__PURE__*/ +function () { + function Toolbar(ctx) { + _classCallCheck(this, Toolbar); + + this.ctx = ctx; + this.w = ctx.w; + this.ev = this.w.config.chart.events; + this.localeValues = this.w.globals.locale.toolbar; + } + + _createClass(Toolbar, [{ + key: "createToolbar", + value: function createToolbar() { + var w = this.w; + var elToolbarWrap = document.createElement('div'); + elToolbarWrap.setAttribute('class', 'apexcharts-toolbar'); + w.globals.dom.elWrap.appendChild(elToolbarWrap); + this.elZoom = document.createElement('div'); + this.elZoomIn = document.createElement('div'); + this.elZoomOut = document.createElement('div'); + this.elPan = document.createElement('div'); + this.elSelection = document.createElement('div'); + this.elZoomReset = document.createElement('div'); + this.elMenuIcon = document.createElement('div'); + this.elMenu = document.createElement('div'); + this.elCustomIcons = []; + this.t = w.config.chart.toolbar.tools; + + if (Array.isArray(this.t.customIcons)) { + for (var i = 0; i < this.t.customIcons.length; i++) { + this.elCustomIcons.push(document.createElement('div')); + } + } + + this.elMenuItems = []; + var toolbarControls = []; + + if (this.t.zoomin && w.config.chart.zoom.enabled) { + toolbarControls.push({ + el: this.elZoomIn, + icon: typeof this.t.zoomin === 'string' ? this.t.zoomin : icoZoomIn, + title: this.localeValues.zoomIn, + class: 'apexcharts-zoom-in-icon' + }); + } + + if (this.t.zoomout && w.config.chart.zoom.enabled) { + toolbarControls.push({ + el: this.elZoomOut, + icon: typeof this.t.zoomout === 'string' ? this.t.zoomout : icoZoomOut, + title: this.localeValues.zoomOut, + class: 'apexcharts-zoom-out-icon' + }); + } + + if (this.t.zoom && w.config.chart.zoom.enabled) { + toolbarControls.push({ + el: this.elZoom, + icon: typeof this.t.zoom === 'string' ? this.t.zoom : icoZoom, + title: this.localeValues.selectionZoom, + class: w.globals.isTouchDevice ? 'hidden' : 'apexcharts-zoom-icon' + }); + } + + if (this.t.selection && w.config.chart.selection.enabled) { + toolbarControls.push({ + el: this.elSelection, + icon: typeof this.t.selection === 'string' ? this.t.selection : icoSelect, + title: this.localeValues.selection, + class: w.globals.isTouchDevice ? 'hidden' : 'apexcharts-selection-icon' + }); + } + + if (this.t.pan && w.config.chart.zoom.enabled) { + toolbarControls.push({ + el: this.elPan, + icon: typeof this.t.pan === 'string' ? this.t.pan : icoPan, + title: this.localeValues.pan, + class: w.globals.isTouchDevice ? 'hidden' : 'apexcharts-pan-icon' + }); + } + + if (this.t.reset && w.config.chart.zoom.enabled) { + toolbarControls.push({ + el: this.elZoomReset, + icon: typeof this.t.reset === 'string' ? this.t.reset : icoReset, + title: this.localeValues.reset, + class: 'apexcharts-reset-zoom-icon' + }); + } + + if (this.t.download) { + toolbarControls.push({ + el: this.elMenuIcon, + icon: typeof this.t.download === 'string' ? this.t.download : icoMenu, + title: this.localeValues.menu, + class: 'apexcharts-menu-icon' + }); + } + + for (var _i = 0; _i < this.elCustomIcons.length; _i++) { + toolbarControls.push({ + el: this.elCustomIcons[_i], + icon: this.t.customIcons[_i].icon, + title: this.t.customIcons[_i].title, + index: this.t.customIcons[_i].index, + class: 'apexcharts-toolbar-custom-icon ' + this.t.customIcons[_i].class + }); + } + + toolbarControls.forEach(function (t, index) { + if (t.index) { + Utils.moveIndexInArray(toolbarControls, index, t.index); + } + }); + + for (var _i2 = 0; _i2 < toolbarControls.length; _i2++) { + Graphics.setAttrs(toolbarControls[_i2].el, { + class: toolbarControls[_i2].class, + title: toolbarControls[_i2].title + }); + toolbarControls[_i2].el.innerHTML = toolbarControls[_i2].icon; + elToolbarWrap.appendChild(toolbarControls[_i2].el); + } + + elToolbarWrap.appendChild(this.elMenu); + Graphics.setAttrs(this.elMenu, { + class: 'apexcharts-menu' + }); + var menuItems = [{ + name: 'exportSVG', + title: this.localeValues.exportToSVG + }, { + name: 'exportPNG', + title: this.localeValues.exportToPNG + }]; + + for (var _i3 = 0; _i3 < menuItems.length; _i3++) { + this.elMenuItems.push(document.createElement('div')); + this.elMenuItems[_i3].innerHTML = menuItems[_i3].title; + Graphics.setAttrs(this.elMenuItems[_i3], { + class: "apexcharts-menu-item ".concat(menuItems[_i3].name), + title: menuItems[_i3].title + }); + this.elMenu.appendChild(this.elMenuItems[_i3]); + } + + if (w.globals.zoomEnabled) { + this.elZoom.classList.add('selected'); + } else if (w.globals.panEnabled) { + this.elPan.classList.add('selected'); + } else if (w.globals.selectionEnabled) { + this.elSelection.classList.add('selected'); + } + + this.addToolbarEventListeners(); + } + }, { + key: "addToolbarEventListeners", + value: function addToolbarEventListeners() { + var _this = this; + + this.elZoomReset.addEventListener('click', this.handleZoomReset.bind(this)); + this.elSelection.addEventListener('click', this.toggleSelection.bind(this)); + this.elZoom.addEventListener('click', this.toggleZooming.bind(this)); + this.elZoomIn.addEventListener('click', this.handleZoomIn.bind(this)); + this.elZoomOut.addEventListener('click', this.handleZoomOut.bind(this)); + this.elPan.addEventListener('click', this.togglePanning.bind(this)); + this.elMenuIcon.addEventListener('click', this.toggleMenu.bind(this)); + this.elMenuItems.forEach(function (m) { + if (m.classList.contains('exportSVG')) { + m.addEventListener('click', _this.downloadSVG.bind(_this)); + } else if (m.classList.contains('exportPNG')) { + m.addEventListener('click', _this.downloadPNG.bind(_this)); + } + }); + + for (var i = 0; i < this.t.customIcons.length; i++) { + this.elCustomIcons[i].addEventListener('click', this.t.customIcons[i].click); + } + } + }, { + key: "toggleSelection", + value: function toggleSelection() { + this.toggleOtherControls(); + this.w.globals.selectionEnabled = !this.w.globals.selectionEnabled; + + if (!this.elSelection.classList.contains('selected')) { + this.elSelection.classList.add('selected'); + } else { + this.elSelection.classList.remove('selected'); + } + } + }, { + key: "toggleZooming", + value: function toggleZooming() { + this.toggleOtherControls(); + this.w.globals.zoomEnabled = !this.w.globals.zoomEnabled; + + if (!this.elZoom.classList.contains('selected')) { + this.elZoom.classList.add('selected'); + } else { + this.elZoom.classList.remove('selected'); + } + } + }, { + key: "getToolbarIconsReference", + value: function getToolbarIconsReference() { + var w = this.w; + + if (!this.elZoom) { + this.elZoom = w.globals.dom.baseEl.querySelector('.apexcharts-zoom-icon'); + } + + if (!this.elPan) { + this.elPan = w.globals.dom.baseEl.querySelector('.apexcharts-pan-icon'); + } + + if (!this.elSelection) { + this.elSelection = w.globals.dom.baseEl.querySelector('.apexcharts-selection-icon'); + } + } + }, { + key: "enableZooming", + value: function enableZooming() { + this.toggleOtherControls(); + this.w.globals.zoomEnabled = true; + + if (this.elZoom) { + this.elZoom.classList.add('selected'); + } + + if (this.elPan) { + this.elPan.classList.remove('selected'); + } + } + }, { + key: "enablePanning", + value: function enablePanning() { + this.toggleOtherControls(); + this.w.globals.panEnabled = true; + + if (this.elPan) { + this.elPan.classList.add('selected'); + } + + if (this.elZoom) { + this.elZoom.classList.remove('selected'); + } + } + }, { + key: "togglePanning", + value: function togglePanning() { + this.toggleOtherControls(); + this.w.globals.panEnabled = !this.w.globals.panEnabled; + + if (!this.elPan.classList.contains('selected')) { + this.elPan.classList.add('selected'); + } else { + this.elPan.classList.remove('selected'); + } + } + }, { + key: "toggleOtherControls", + value: function toggleOtherControls() { + var w = this.w; + w.globals.panEnabled = false; + w.globals.zoomEnabled = false; + w.globals.selectionEnabled = false; + this.getToolbarIconsReference(); + + if (this.elPan) { + this.elPan.classList.remove('selected'); + } + + if (this.elSelection) { + this.elSelection.classList.remove('selected'); + } + + if (this.elZoom) { + this.elZoom.classList.remove('selected'); + } + } + }, { + key: "handleZoomIn", + value: function handleZoomIn() { + var w = this.w; + var centerX = (w.globals.minX + w.globals.maxX) / 2; + var newMinX = (w.globals.minX + centerX) / 2; + var newMaxX = (w.globals.maxX + centerX) / 2; + + if (!w.globals.disableZoomIn) { + this.zoomUpdateOptions(newMinX, newMaxX); + } + } + }, { + key: "handleZoomOut", + value: function handleZoomOut() { + var w = this.w; // avoid zooming out beyond 1000 which may result in NaN values being printed on x-axis + + if (w.config.xaxis.type === 'datetime' && new Date(w.globals.minX).getUTCFullYear() < 1000) { + return; + } + + var centerX = (w.globals.minX + w.globals.maxX) / 2; + var newMinX = w.globals.minX - (centerX - w.globals.minX); + var newMaxX = w.globals.maxX - (centerX - w.globals.maxX); + + if (!w.globals.disableZoomOut) { + this.zoomUpdateOptions(newMinX, newMaxX); + } + } + }, { + key: "zoomUpdateOptions", + value: function zoomUpdateOptions(newMinX, newMaxX) { + var xaxis = { + min: newMinX, + max: newMaxX + }; + var beforeZoomRange = this.getBeforeZoomRange(xaxis); + + if (beforeZoomRange) { + xaxis = beforeZoomRange.xaxis; + } + + this.w.globals.zoomed = true; + + this.ctx._updateOptions({ + xaxis: xaxis + }, false, this.w.config.chart.animations.dynamicAnimation.enabled); + + this.zoomCallback(xaxis); + } + }, { + key: "zoomCallback", + value: function zoomCallback(xaxis, yaxis) { + if (typeof this.ev.zoomed === 'function') { + this.ev.zoomed(this.ctx, { + xaxis: xaxis, + yaxis: yaxis + }); + } + } + }, { + key: "getBeforeZoomRange", + value: function getBeforeZoomRange(xaxis, yaxis) { + var newRange = null; + + if (typeof this.ev.beforeZoom === 'function') { + newRange = this.ev.beforeZoom(this, { + xaxis: xaxis, + yaxis: yaxis + }); + } + + return newRange; + } + }, { + key: "toggleMenu", + value: function toggleMenu() { + if (this.elMenu.classList.contains('open')) { + this.elMenu.classList.remove('open'); + } else { + this.elMenu.classList.add('open'); + } + } + }, { + key: "downloadPNG", + value: function downloadPNG() { + var downloadPNG = new Exports(this.ctx); + downloadPNG.exportToPng(this.ctx); + this.toggleMenu(); + } + }, { + key: "downloadSVG", + value: function downloadSVG() { + var downloadSVG = new Exports(this.ctx); + downloadSVG.exportToSVG(); + this.toggleMenu(); + } + }, { + key: "handleZoomReset", + value: function handleZoomReset(e) { + var _this2 = this; + + var charts = this.ctx.getSyncedCharts(); + charts.forEach(function (ch) { + var w = ch.w; + + if (w.globals.minX !== w.globals.initialminX && w.globals.maxX !== w.globals.initialmaxX) { + ch.revertDefaultAxisMinMax(); + + if (typeof w.config.chart.events.zoomed === 'function') { + _this2.zoomCallback({ + min: w.config.xaxis.min, + max: w.config.xaxis.max + }); + } + + w.globals.zoomed = false; + + ch._updateSeries(w.globals.initialSeries, w.config.chart.animations.dynamicAnimation.enabled); + } + }); + } + }, { + key: "destroy", + value: function destroy() { + if (this.elZoomReset) { + this.elZoomReset.removeEventListener('click', this.handleZoomReset.bind(this)); + this.elSelection.removeEventListener('click', this.toggleSelection.bind(this)); + this.elZoom.removeEventListener('click', this.toggleZooming.bind(this)); + this.elZoomIn.removeEventListener('click', this.handleZoomIn.bind(this)); + this.elZoomOut.removeEventListener('click', this.handleZoomOut.bind(this)); + this.elPan.removeEventListener('click', this.togglePanning.bind(this)); + this.elMenuIcon.removeEventListener('click', this.toggleMenu.bind(this)); + } + + this.elZoom = null; + this.elZoomIn = null; + this.elZoomOut = null; + this.elPan = null; + this.elSelection = null; + this.elZoomReset = null; + this.elMenuIcon = null; + } + }]); + + return Toolbar; +}(); + +/** + * ApexCharts Zoom Class for handling zooming and panning on axes based charts. + * + * @module ZoomPanSelection + **/ + +var ZoomPanSelection = +/*#__PURE__*/ +function (_Toolbar) { + _inherits(ZoomPanSelection, _Toolbar); + + function ZoomPanSelection(ctx) { + var _this; + + _classCallCheck(this, ZoomPanSelection); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(ZoomPanSelection).call(this, ctx)); + _this.ctx = ctx; + _this.w = ctx.w; + _this.dragged = false; + _this.graphics = new Graphics(_this.ctx); + _this.eventList = ['mousedown', 'mousemove', 'touchstart', 'touchmove', 'mouseup', 'touchend']; + _this.clientX = 0; + _this.clientY = 0; + _this.startX = 0; + _this.endX = 0; + _this.dragX = 0; + _this.startY = 0; + _this.endY = 0; + _this.dragY = 0; + return _this; + } + + _createClass(ZoomPanSelection, [{ + key: "init", + value: function init(_ref) { + var _this2 = this; + + var xyRatios = _ref.xyRatios; + var w = this.w; + var me = this; + this.xyRatios = xyRatios; + this.zoomRect = this.graphics.drawRect(0, 0, 0, 0); + this.selectionRect = this.graphics.drawRect(0, 0, 0, 0); + this.gridRect = w.globals.dom.baseEl.querySelector('.apexcharts-grid'); + this.zoomRect.node.classList.add('apexcharts-zoom-rect'); + this.selectionRect.node.classList.add('apexcharts-selection-rect'); + w.globals.dom.elGraphical.add(this.zoomRect); + w.globals.dom.elGraphical.add(this.selectionRect); + + if (w.config.chart.selection.type === 'x') { + this.slDraggableRect = this.selectionRect.draggable({ + minX: 0, + minY: 0, + maxX: w.globals.gridWidth, + maxY: w.globals.gridHeight + }).on('dragmove', this.selectionDragging.bind(this, 'dragging')); + } else if (w.config.chart.selection.type === 'y') { + this.slDraggableRect = this.selectionRect.draggable({ + minX: 0, + maxX: w.globals.gridWidth + }).on('dragmove', this.selectionDragging.bind(this, 'dragging')); + } else { + this.slDraggableRect = this.selectionRect.draggable().on('dragmove', this.selectionDragging.bind(this, 'dragging')); + } + + this.preselectedSelection(); + this.hoverArea = w.globals.dom.baseEl.querySelector(w.globals.chartClass); + this.hoverArea.classList.add('zoomable'); + this.eventList.forEach(function (event) { + _this2.hoverArea.addEventListener(event, me.svgMouseEvents.bind(me, xyRatios), { + capture: false, + passive: true + }); + }); + } // remove the event listeners which were previously added on hover area + + }, { + key: "destroy", + value: function destroy() { + var _this3 = this; + + var me = this; + this.eventList.forEach(function (event) { + if (_this3.hoverArea) { + _this3.hoverArea.removeEventListener(event, me.svgMouseEvents.bind(me, me.xyRatios), { + capture: false, + passive: true + }); + } + }); + + if (this.slDraggableRect) { + this.slDraggableRect.draggable(false); + this.slDraggableRect.off(); + this.selectionRect.off(); + } + + this.selectionRect = null; + this.zoomRect = null; + this.gridRect = null; + } + }, { + key: "svgMouseEvents", + value: function svgMouseEvents(xyRatios, e) { + var w = this.w; + var me = this; + var toolbar = this.ctx.toolbar; + var zoomtype = w.globals.zoomEnabled ? w.config.chart.zoom.type : w.config.chart.selection.type; + + if (e.shiftKey) { + this.shiftWasPressed = true; + toolbar.enablePanning(); + } else { + if (this.shiftWasPressed) { + toolbar.enableZooming(); + this.shiftWasPressed = false; + } + } + + var falsePositives = e.target.classList.contains('apexcharts-selection-rect') || e.target.parentNode.classList.contains('apexcharts-toolbar'); + if (falsePositives) return; + me.clientX = e.type === 'touchmove' || e.type === 'touchstart' ? e.touches[0].clientX : e.type === 'touchend' ? e.changedTouches[0].clientX : e.clientX; + me.clientY = e.type === 'touchmove' || e.type === 'touchstart' ? e.touches[0].clientY : e.type === 'touchend' ? e.changedTouches[0].clientY : e.clientY; + + if (e.type === 'mousedown' && e.which === 1) { + var gridRectDim = me.gridRect.getBoundingClientRect(); + me.startX = me.clientX - gridRectDim.left; + me.startY = me.clientY - gridRectDim.top; + me.dragged = false; + me.w.globals.mousedown = true; + } + + if (e.type === 'mousemove' && e.which === 1 || e.type === 'touchmove') { + me.dragged = true; + + if (w.globals.panEnabled) { + w.globals.selection = null; + + if (me.w.globals.mousedown) { + me.panDragging({ + context: me, + zoomtype: zoomtype, + xyRatios: xyRatios + }); + } + } else { + if (me.w.globals.mousedown && w.globals.zoomEnabled || me.w.globals.mousedown && w.globals.selectionEnabled) { + me.selection = me.selectionDrawing({ + context: me, + zoomtype: zoomtype + }); + } + } + } + + if (e.type === 'mouseup' || e.type === 'touchend') { + // we will be calling getBoundingClientRect on each mousedown/mousemove/mouseup + var _gridRectDim = me.gridRect.getBoundingClientRect(); + + if (me.w.globals.mousedown) { + // user released the drag, now do all the calculations + me.endX = me.clientX - _gridRectDim.left; + me.endY = me.clientY - _gridRectDim.top; + me.dragX = Math.abs(me.endX - me.startX); + me.dragY = Math.abs(me.endY - me.startY); + + if (w.globals.zoomEnabled || w.globals.selectionEnabled) { + me.selectionDrawn({ + context: me, + zoomtype: zoomtype + }); + } + } + + if (w.globals.zoomEnabled) { + me.hideSelectionRect(this.selectionRect); + } + + me.dragged = false; + me.w.globals.mousedown = false; + } + + this.makeSelectionRectDraggable(); + } + }, { + key: "makeSelectionRectDraggable", + value: function makeSelectionRectDraggable() { + var w = this.w; + if (!this.selectionRect) return; + var rectDim = this.selectionRect.node.getBoundingClientRect(); + + if (rectDim.width > 0 && rectDim.height > 0) { + this.slDraggableRect.selectize().resize({ + constraint: { + minX: 0, + minY: 0, + maxX: w.globals.gridWidth, + maxY: w.globals.gridHeight + } + }).on('resizing', this.selectionDragging.bind(this, 'resizing')); + } + } + }, { + key: "preselectedSelection", + value: function preselectedSelection() { + var w = this.w; + var xyRatios = this.xyRatios; + + if (!w.globals.zoomEnabled) { + if (typeof w.globals.selection !== 'undefined' && w.globals.selection !== null) { + this.drawSelectionRect(w.globals.selection); + } else { + if (w.config.chart.selection.xaxis.min !== undefined && w.config.chart.selection.xaxis.max !== undefined) { + var x = (w.config.chart.selection.xaxis.min - w.globals.minX) / xyRatios.xRatio; + var width = w.globals.gridWidth - (w.globals.maxX - w.config.chart.selection.xaxis.max) / xyRatios.xRatio - x; + var selectionRect = { + x: x, + y: 0, + width: width, + height: w.globals.gridHeight, + translateX: 0, + translateY: 0, + selectionEnabled: true + }; + this.drawSelectionRect(selectionRect); + this.makeSelectionRectDraggable(); + + if (typeof w.config.chart.events.selection === 'function') { + w.config.chart.events.selection(this.ctx, { + xaxis: { + min: w.config.chart.selection.xaxis.min, + max: w.config.chart.selection.xaxis.max + }, + yaxis: {} + }); + } + } + } + } + } + }, { + key: "drawSelectionRect", + value: function drawSelectionRect(_ref2) { + var x = _ref2.x, + y = _ref2.y, + width = _ref2.width, + height = _ref2.height, + translateX = _ref2.translateX, + translateY = _ref2.translateY; + var w = this.w; + var zoomRect = this.zoomRect; + var selectionRect = this.selectionRect; + + if (this.dragged || w.globals.selection !== null) { + var scalingAttrs = { + transform: 'translate(' + translateX + ', ' + translateY + ')' // change styles based on zoom or selection + // zoom is Enabled and user has dragged, so draw blue rect + + }; + + if (w.globals.zoomEnabled && this.dragged) { + zoomRect.attr({ + x: x, + y: y, + width: width, + height: height, + fill: w.config.chart.zoom.zoomedArea.fill.color, + 'fill-opacity': w.config.chart.zoom.zoomedArea.fill.opacity, + stroke: w.config.chart.zoom.zoomedArea.stroke.color, + 'stroke-width': w.config.chart.zoom.zoomedArea.stroke.width, + 'stroke-opacity': w.config.chart.zoom.zoomedArea.stroke.opacity + }); + Graphics.setAttrs(zoomRect.node, scalingAttrs); + } // selection is enabled + + + if (w.globals.selectionEnabled) { + selectionRect.attr({ + x: x, + y: y, + width: width > 0 ? width : 0, + height: height > 0 ? height : 0, + fill: w.config.chart.selection.fill.color, + 'fill-opacity': w.config.chart.selection.fill.opacity, + stroke: w.config.chart.selection.stroke.color, + 'stroke-width': w.config.chart.selection.stroke.width, + 'stroke-dasharray': w.config.chart.selection.stroke.dashArray, + 'stroke-opacity': w.config.chart.selection.stroke.opacity + }); + Graphics.setAttrs(selectionRect.node, scalingAttrs); + } + } + } + }, { + key: "hideSelectionRect", + value: function hideSelectionRect(rect) { + if (rect) { + rect.attr({ + x: 0, + y: 0, + width: 0, + height: 0 + }); + } + } + }, { + key: "selectionDrawing", + value: function selectionDrawing(_ref3) { + var context = _ref3.context, + zoomtype = _ref3.zoomtype; + var w = this.w; + var me = context; + var gridRectDim = this.gridRect.getBoundingClientRect(); + var startX = me.startX - 1; + var startY = me.startY; + var selectionWidth = me.clientX - gridRectDim.left - startX; + var selectionHeight = me.clientY - gridRectDim.top - startY; + var translateX = 0; + var translateY = 0; + var selectionRect = {}; + + if (Math.abs(selectionWidth + startX) > w.globals.gridWidth || me.clientX - gridRectDim.left < 0) { + // user dragged the mouse outside drawing area + // TODO: test the selectionRect and make sure it doesn't crosses drawing area + me.hideSelectionRect(this.zoomRect); + me.dragged = false; + me.w.globals.mousedown = false; + } // inverse selection X + + + if (startX > me.clientX - gridRectDim.left) { + selectionWidth = Math.abs(selectionWidth); + translateX = -selectionWidth; + } // inverse selection Y + + + if (startY > me.clientY - gridRectDim.top) { + selectionHeight = Math.abs(selectionHeight); + translateY = -selectionHeight; + } + + if (zoomtype === 'x') { + selectionRect = { + x: startX, + y: 0, + width: selectionWidth, + height: w.globals.gridHeight, + translateX: translateX, + translateY: 0 + }; + } else if (zoomtype === 'y') { + selectionRect = { + x: 0, + y: startY, + width: w.globals.gridWidth, + height: selectionHeight, + translateX: 0, + translateY: translateY + }; + } else { + selectionRect = { + x: startX, + y: startY, + width: selectionWidth, + height: selectionHeight, + translateX: translateX, + translateY: translateY + }; + } + + me.drawSelectionRect(selectionRect); + return selectionRect; + } + }, { + key: "selectionDragging", + value: function selectionDragging(type, e) { + var _this4 = this; + + var w = this.w; + var xyRatios = this.xyRatios; + var selRect = this.selectionRect; + var timerInterval = 0; + + if (type === 'resizing') { + timerInterval = 30; + } + + if (typeof w.config.chart.events.selection === 'function') { + // a small debouncer is required when resizing to avoid freezing the chart + clearTimeout(this.w.globals.selectionResizeTimer); + this.w.globals.selectionResizeTimer = window.setTimeout(function () { + var gridRectDim = _this4.gridRect.getBoundingClientRect(); + + var selectionRect = selRect.node.getBoundingClientRect(); + var minX = w.globals.xAxisScale.niceMin + (selectionRect.left - gridRectDim.left) * xyRatios.xRatio; + var maxX = w.globals.xAxisScale.niceMin + (selectionRect.right - gridRectDim.left) * xyRatios.xRatio; + var minY = w.globals.yAxisScale[0].niceMin + (gridRectDim.bottom - selectionRect.bottom) * xyRatios.yRatio[0]; + var maxY = w.globals.yAxisScale[0].niceMax - (selectionRect.top - gridRectDim.top) * xyRatios.yRatio[0]; + w.config.chart.events.selection(_this4.ctx, { + xaxis: { + min: minX, + max: maxX + }, + yaxis: { + min: minY, + max: maxY + } + }); + }, timerInterval); + } + } + }, { + key: "selectionDrawn", + value: function selectionDrawn(_ref4) { + var context = _ref4.context, + zoomtype = _ref4.zoomtype; + var w = this.w; + var me = context; + var xyRatios = this.xyRatios; + var toolbar = this.ctx.toolbar; + + if (me.startX > me.endX) { + var tempX = me.startX; + me.startX = me.endX; + me.endX = tempX; + } + + if (me.startY > me.endY) { + var tempY = me.startY; + me.startY = me.endY; + me.endY = tempY; + } + + var xLowestValue = w.globals.xAxisScale.niceMin + me.startX * xyRatios.xRatio; + var xHighestValue = w.globals.xAxisScale.niceMin + me.endX * xyRatios.xRatio; // TODO: we will consider the 1st y axis values here for getting highest and lowest y + + var yHighestValue = []; + var yLowestValue = []; + w.config.yaxis.forEach(function (yaxe, index) { + yHighestValue.push(Math.floor(w.globals.yAxisScale[index].niceMax - xyRatios.yRatio[index] * me.startY)); + yLowestValue.push(Math.floor(w.globals.yAxisScale[index].niceMax - xyRatios.yRatio[index] * me.endY)); + }); + + if (me.dragged && (me.dragX > 10 || me.dragY > 10) && xLowestValue !== xHighestValue) { + if (w.globals.zoomEnabled) { + var yaxis = Utils.clone(w.config.yaxis); // before zooming in/out, store the last yaxis and xaxis range, so that when user hits the RESET button, we get the original range + // also - make sure user is not already zoomed in/out - otherwise we will store zoomed values in lastAxis + + if (!w.globals.zoomed) { + w.globals.lastXAxis = Utils.clone(w.config.xaxis); + w.globals.lastYAxis = Utils.clone(w.config.yaxis); + } + + var xaxis = { + min: xLowestValue, + max: xHighestValue + }; + + if (zoomtype === 'xy' || zoomtype === 'y') { + yaxis.forEach(function (yaxe, index) { + yaxis[index].min = yLowestValue[index]; + yaxis[index].max = yHighestValue[index]; + }); + } + + if (w.config.chart.zoom.autoScaleYaxis) { + var scale = new Range(me.ctx); + yaxis = scale.autoScaleY(me.ctx, { + xaxis: xaxis + }); + } + + if (toolbar) { + var beforeZoomRange = toolbar.getBeforeZoomRange(xaxis, yaxis); + + if (beforeZoomRange) { + xaxis = beforeZoomRange.xaxis ? beforeZoomRange.xaxis : xaxis; + yaxis = beforeZoomRange.yaxis ? beforeZoomRange.yaxe : yaxis; + } + } + + if (zoomtype === 'x') { + me.ctx._updateOptions({ + xaxis: xaxis + }, false, me.w.config.chart.animations.dynamicAnimation.enabled); + } else if (zoomtype === 'y') { + me.ctx._updateOptions({ + yaxis: yaxis + }, false, me.w.config.chart.animations.dynamicAnimation.enabled); + } else { + me.ctx._updateOptions({ + xaxis: xaxis, + yaxis: yaxis + }, false, me.w.config.chart.animations.dynamicAnimation.enabled); + } + + if (typeof w.config.chart.events.zoomed === 'function') { + toolbar.zoomCallback(xaxis, yaxis); + } + + w.globals.zoomed = true; + } else if (w.globals.selectionEnabled) { + var _yaxis = null; + var _xaxis = null; + _xaxis = { + min: xLowestValue, + max: xHighestValue + }; + + if (zoomtype === 'xy' || zoomtype === 'y') { + _yaxis = Utils.clone(w.config.yaxis); + + _yaxis.forEach(function (yaxe, index) { + _yaxis[index].min = yLowestValue[index]; + _yaxis[index].max = yHighestValue[index]; + }); + } + + w.globals.selection = me.selection; + + if (typeof w.config.chart.events.selection === 'function') { + w.config.chart.events.selection(me.ctx, { + xaxis: _xaxis, + yaxis: _yaxis + }); + } + } + } + } + }, { + key: "panDragging", + value: function panDragging(_ref5) { + var context = _ref5.context, + zoomtype = _ref5.zoomtype; + var w = this.w; + var me = context; + var moveDirection; // check to make sure there is data to compare against + + if (typeof w.globals.lastClientPosition.x !== 'undefined') { + // get the change from last position to this position + var deltaX = w.globals.lastClientPosition.x - me.clientX; + var deltaY = w.globals.lastClientPosition.y - me.clientY; // check which direction had the highest amplitude and then figure out direction by checking if the value is greater or less than zero + + if (Math.abs(deltaX) > Math.abs(deltaY) && deltaX > 0) { + moveDirection = 'left'; + } else if (Math.abs(deltaX) > Math.abs(deltaY) && deltaX < 0) { + moveDirection = 'right'; + } else if (Math.abs(deltaY) > Math.abs(deltaX) && deltaY > 0) { + moveDirection = 'up'; + } else if (Math.abs(deltaY) > Math.abs(deltaX) && deltaY < 0) { + moveDirection = 'down'; + } + } // set the new last position to the current for next time (to get the position of drag) + + + w.globals.lastClientPosition = { + x: me.clientX, + y: me.clientY + }; + var xLowestValue = w.globals.minX; + var xHighestValue = w.globals.maxX; + this.panScrolled(moveDirection, xLowestValue, xHighestValue); + } + }, { + key: "panScrolled", + value: function panScrolled(moveDirection, xLowestValue, xHighestValue) { + var w = this.w; + var xyRatios = this.xyRatios; + var yaxis = Utils.clone(w.config.yaxis); + + if (moveDirection === 'left') { + xLowestValue = w.globals.minX + w.globals.gridWidth / 15 * xyRatios.xRatio; + xHighestValue = w.globals.maxX + w.globals.gridWidth / 15 * xyRatios.xRatio; + } else if (moveDirection === 'right') { + xLowestValue = w.globals.minX - w.globals.gridWidth / 15 * xyRatios.xRatio; + xHighestValue = w.globals.maxX - w.globals.gridWidth / 15 * xyRatios.xRatio; + } + + if (xLowestValue < w.globals.initialminX || xHighestValue > w.globals.initialmaxX) { + xLowestValue = w.globals.minX; + xHighestValue = w.globals.maxX; + } + + var xaxis = { + min: xLowestValue, + max: xHighestValue + }; + + if (w.config.chart.zoom.autoScaleYaxis) { + var scale = new Range(me.ctx); + yaxis = scale.autoScaleY(me.ctx, { + xaxis: xaxis + }); + } + + this.ctx._updateOptions({ + xaxis: { + min: xLowestValue, + max: xHighestValue + }, + yaxis: yaxis + }, false, false); + + if (typeof w.config.chart.events.scrolled === 'function') { + w.config.chart.events.scrolled(this.ctx, { + xaxis: { + min: xLowestValue, + max: xHighestValue + } + }); + } + } + }]); + + return ZoomPanSelection; +}(Toolbar); + +var TitleSubtitle = +/*#__PURE__*/ +function () { + function TitleSubtitle(ctx) { + _classCallCheck(this, TitleSubtitle); + + this.ctx = ctx; + this.w = ctx.w; + } + + _createClass(TitleSubtitle, [{ + key: "draw", + value: function draw() { + this.drawTitleSubtitle('title'); + this.drawTitleSubtitle('subtitle'); + } + }, { + key: "drawTitleSubtitle", + value: function drawTitleSubtitle(type) { + var w = this.w; + var tsConfig = type === 'title' ? w.config.title : w.config.subtitle; + var x = w.globals.svgWidth / 2; + var y = tsConfig.offsetY; + var textAnchor = 'middle'; + + if (tsConfig.align === 'left') { + x = 10; + textAnchor = 'start'; + } else if (tsConfig.align === 'right') { + x = w.globals.svgWidth - 10; + textAnchor = 'end'; + } + + x = x + tsConfig.offsetX; + y = y + parseInt(tsConfig.style.fontSize) + 2; + + if (tsConfig.text !== undefined) { + var graphics = new Graphics(this.ctx); + var titleText = graphics.drawText({ + x: x, + y: y, + text: tsConfig.text, + textAnchor: textAnchor, + fontSize: tsConfig.style.fontSize, + fontFamily: tsConfig.style.fontFamily, + foreColor: tsConfig.style.color, + opacity: 1 + }); + titleText.node.setAttribute('class', "apexcharts-".concat(type, "-text")); + w.globals.dom.Paper.add(titleText); + } + } + }]); + + return TitleSubtitle; +}(); + +(function (root, factory) { + /* istanbul ignore next */ + if (typeof define === 'function' && define.amd) { + define(function () { + return factory(root, root.document); + }); + } else if ((typeof exports === "undefined" ? "undefined" : _typeof(exports)) === 'object') { + module.exports = root.document ? factory(root, root.document) : function (w) { + return factory(w, w.document); + }; + } else { + root.SVG = factory(root, root.document); + } +})(typeof window !== 'undefined' ? window : undefined, function (window, document) { + // Find global reference - uses 'this' by default when available, + // falls back to 'window' otherwise (for bundlers like Webpack) + var globalRef = typeof this !== 'undefined' ? this : window; // The main wrapping element + + var SVG = globalRef.SVG = function (element) { + if (SVG.supported) { + element = new SVG.Doc(element); + + if (!SVG.parser.draw) { + SVG.prepare(); + } + + return element; + } + }; // Default namespaces + + + SVG.ns = 'http://www.w3.org/2000/svg'; + SVG.xmlns = 'http://www.w3.org/2000/xmlns/'; + SVG.xlink = 'http://www.w3.org/1999/xlink'; + SVG.svgjs = 'http://svgjs.com/svgjs'; // Svg support test + + SVG.supported = function () { + return true; // !!document.createElementNS && + // !! document.createElementNS(SVG.ns,'svg').createSVGRect + }(); // Don't bother to continue if SVG is not supported + + + if (!SVG.supported) return false; // Element id sequence + + SVG.did = 1000; // Get next named element id + + SVG.eid = function (name) { + return 'Svgjs' + capitalize(name) + SVG.did++; + }; // Method for element creation + + + SVG.create = function (name) { + // create element + var element = document.createElementNS(this.ns, name); // apply unique id + + element.setAttribute('id', this.eid(name)); + return element; + }; // Method for extending objects + + + SVG.extend = function () { + var modules, methods, key, i; // Get list of modules + + modules = [].slice.call(arguments); // Get object with extensions + + methods = modules.pop(); + + for (i = modules.length - 1; i >= 0; i--) { + if (modules[i]) { + for (key in methods) { + modules[i].prototype[key] = methods[key]; + } + } + } // Make sure SVG.Set inherits any newly added methods + + + if (SVG.Set && SVG.Set.inherit) { + SVG.Set.inherit(); + } + }; // Invent new element + + + SVG.invent = function (config) { + // Create element initializer + var initializer = typeof config.create === 'function' ? config.create : function () { + this.constructor.call(this, SVG.create(config.create)); + }; // Inherit prototype + + if (config.inherit) { + initializer.prototype = new config.inherit(); + } // Extend with methods + + + if (config.extend) { + SVG.extend(initializer, config.extend); + } // Attach construct method to parent + + + if (config.construct) { + SVG.extend(config.parent || SVG.Container, config.construct); + } + + return initializer; + }; // Adopt existing svg elements + + + SVG.adopt = function (node) { + // check for presence of node + if (!node) return null; // make sure a node isn't already adopted + + if (node.instance) return node.instance; // initialize variables + + var element; // adopt with element-specific settings + + if (node.nodeName == 'svg') { + element = node.parentNode instanceof window.SVGElement ? new SVG.Nested() : new SVG.Doc(); + } else if (node.nodeName == 'linearGradient') { + element = new SVG.Gradient('linear'); + } else if (node.nodeName == 'radialGradient') { + element = new SVG.Gradient('radial'); + } else if (SVG[capitalize(node.nodeName)]) { + element = new SVG[capitalize(node.nodeName)](); + } else { + element = new SVG.Element(node); + } // ensure references + + + element.type = node.nodeName; + element.node = node; + node.instance = element; // SVG.Class specific preparations + + if (element instanceof SVG.Doc) { + element.namespace().defs(); + } // pull svgjs data from the dom (getAttributeNS doesn't work in html5) + + + element.setData(JSON.parse(node.getAttribute('svgjs:data')) || {}); + return element; + }; // Initialize parsing element + + + SVG.prepare = function () { + // Select document body and create invisible svg element + var body = document.getElementsByTagName('body')[0], + draw = (body ? new SVG.Doc(body) : SVG.adopt(document.documentElement).nested()).size(2, 0); // Create parser object + + SVG.parser = { + body: body || document.documentElement, + draw: draw.style('opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden').node, + poly: draw.polyline().node, + path: draw.path().node, + native: SVG.create('svg') + }; + }; + + SVG.parser = { + native: SVG.create('svg') + }; + document.addEventListener('DOMContentLoaded', function () { + if (!SVG.parser.draw) { + SVG.prepare(); + } + }, false); // Storage for regular expressions + + SVG.regex = { + // Parse unit value + numberAndUnit: /^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i, + // Parse hex value + hex: /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i, + // Parse rgb value + rgb: /rgb\((\d+),(\d+),(\d+)\)/, + // Parse reference id + reference: /#([a-z0-9\-_]+)/i, + // splits a transformation chain + transforms: /\)\s*,?\s*/, + // Whitespace + whitespace: /\s/g, + // Test hex value + isHex: /^#[a-f0-9]{3,6}$/i, + // Test rgb value + isRgb: /^rgb\(/, + // Test css declaration + isCss: /[^:]+:[^;]+;?/, + // Test for blank string + isBlank: /^(\s+)?$/, + // Test for numeric string + isNumber: /^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, + // Test for percent value + isPercent: /^-?[\d\.]+%$/, + // Test for image url + isImage: /\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i, + // split at whitespace and comma + delimiter: /[\s,]+/, + // The following regex are used to parse the d attribute of a path + // Matches all hyphens which are not after an exponent + hyphen: /([^e])\-/gi, + // Replaces and tests for all path letters + pathLetters: /[MLHVCSQTAZ]/gi, + // yes we need this one, too + isPathLetter: /[MLHVCSQTAZ]/i, + // matches 0.154.23.45 + numbersWithDots: /((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi, + // matches . + dots: /\./g + }; + SVG.utils = { + // Map function + map: function map(array, block) { + var i, + il = array.length, + result = []; + + for (i = 0; i < il; i++) { + result.push(block(array[i])); + } + + return result; + }, + // Filter function + filter: function filter(array, block) { + var i, + il = array.length, + result = []; + + for (i = 0; i < il; i++) { + if (block(array[i])) { + result.push(array[i]); + } + } + + return result; + }, + // Degrees to radians + radians: function radians(d) { + return d % 360 * Math.PI / 180; + }, + // Radians to degrees + degrees: function degrees(r) { + return r * 180 / Math.PI % 360; + }, + filterSVGElements: function filterSVGElements(nodes) { + return this.filter(nodes, function (el) { + return el instanceof window.SVGElement; + }); + } + }; + SVG.defaults = { + // Default attribute values + attrs: { + // fill and stroke + 'fill-opacity': 1, + 'stroke-opacity': 1, + 'stroke-width': 0, + 'stroke-linejoin': 'miter', + 'stroke-linecap': 'butt', + fill: '#000000', + stroke: '#000000', + opacity: 1, + // position + x: 0, + y: 0, + cx: 0, + cy: 0, + // size + width: 0, + height: 0, + // radius + r: 0, + rx: 0, + ry: 0, + // gradient + offset: 0, + 'stop-opacity': 1, + 'stop-color': '#000000', + // text + 'font-size': 16, + 'font-family': 'Helvetica, Arial, sans-serif', + 'text-anchor': 'start' + } // Module for color convertions + + }; + + SVG.Color = function (color) { + var match; // initialize defaults + + this.r = 0; + this.g = 0; + this.b = 0; + if (!color) return; // parse color + + if (typeof color === 'string') { + if (SVG.regex.isRgb.test(color)) { + // get rgb values + match = SVG.regex.rgb.exec(color.replace(SVG.regex.whitespace, '')); // parse numeric values + + this.r = parseInt(match[1]); + this.g = parseInt(match[2]); + this.b = parseInt(match[3]); + } else if (SVG.regex.isHex.test(color)) { + // get hex values + match = SVG.regex.hex.exec(fullHex(color)); // parse numeric values + + this.r = parseInt(match[1], 16); + this.g = parseInt(match[2], 16); + this.b = parseInt(match[3], 16); + } + } else if (_typeof(color) === 'object') { + this.r = color.r; + this.g = color.g; + this.b = color.b; + } + }; + + SVG.extend(SVG.Color, { + // Default to hex conversion + toString: function toString() { + return this.toHex(); + }, + // Build hex value + toHex: function toHex() { + return '#' + compToHex(this.r) + compToHex(this.g) + compToHex(this.b); + }, + // Build rgb value + toRgb: function toRgb() { + return 'rgb(' + [this.r, this.g, this.b].join() + ')'; + }, + // Calculate true brightness + brightness: function brightness() { + return this.r / 255 * 0.30 + this.g / 255 * 0.59 + this.b / 255 * 0.11; + }, + // Make color morphable + morph: function morph(color) { + this.destination = new SVG.Color(color); + return this; + }, + // Get morphed color at given position + at: function at(pos) { + // make sure a destination is defined + if (!this.destination) return this; // normalise pos + + pos = pos < 0 ? 0 : pos > 1 ? 1 : pos; // generate morphed color + + return new SVG.Color({ + r: ~~(this.r + (this.destination.r - this.r) * pos), + g: ~~(this.g + (this.destination.g - this.g) * pos), + b: ~~(this.b + (this.destination.b - this.b) * pos) + }); + } + }); // Testers + // Test if given value is a color string + + SVG.Color.test = function (color) { + color += ''; + return SVG.regex.isHex.test(color) || SVG.regex.isRgb.test(color); + }; // Test if given value is a rgb object + + + SVG.Color.isRgb = function (color) { + return color && typeof color.r === 'number' && typeof color.g === 'number' && typeof color.b === 'number'; + }; // Test if given value is a color + + + SVG.Color.isColor = function (color) { + return SVG.Color.isRgb(color) || SVG.Color.test(color); + }; // Module for array conversion + + + SVG.Array = function (array, fallback) { + array = (array || []).valueOf(); // if array is empty and fallback is provided, use fallback + + if (array.length == 0 && fallback) { + array = fallback.valueOf(); + } // parse array + + + this.value = this.parse(array); + }; + + SVG.extend(SVG.Array, { + // Make array morphable + morph: function morph(array) { + this.destination = this.parse(array); // normalize length of arrays + + if (this.value.length != this.destination.length) { + var lastValue = this.value[this.value.length - 1], + lastDestination = this.destination[this.destination.length - 1]; + + while (this.value.length > this.destination.length) { + this.destination.push(lastDestination); + } + + while (this.value.length < this.destination.length) { + this.value.push(lastValue); + } + } + + return this; + }, + // Clean up any duplicate points + settle: function settle() { + // find all unique values + for (var i = 0, il = this.value.length, seen = []; i < il; i++) { + if (seen.indexOf(this.value[i]) == -1) { + seen.push(this.value[i]); + } + } // set new value + + + return this.value = seen; + }, + // Get morphed array at given position + at: function at(pos) { + // make sure a destination is defined + if (!this.destination) return this; // generate morphed array + + for (var i = 0, il = this.value.length, array = []; i < il; i++) { + array.push(this.value[i] + (this.destination[i] - this.value[i]) * pos); + } + + return new SVG.Array(array); + }, + // Convert array to string + toString: function toString() { + return this.value.join(' '); + }, + // Real value + valueOf: function valueOf() { + return this.value; + }, + // Parse whitespace separated string + parse: function parse(array) { + array = array.valueOf(); // if already is an array, no need to parse it + + if (Array.isArray(array)) return array; + return this.split(array); + }, + // Strip unnecessary whitespace + split: function split(string) { + return string.trim().split(SVG.regex.delimiter).map(parseFloat); + }, + // Reverse array + reverse: function reverse() { + this.value.reverse(); + return this; + }, + clone: function clone() { + var clone = new this.constructor(); + clone.value = array_clone(this.value); + return clone; + } + }); // Poly points array + + SVG.PointArray = function (array, fallback) { + SVG.Array.call(this, array, fallback || [[0, 0]]); + }; // Inherit from SVG.Array + + + SVG.PointArray.prototype = new SVG.Array(); + SVG.PointArray.prototype.constructor = SVG.PointArray; + SVG.extend(SVG.PointArray, { + // Convert array to string + toString: function toString() { + // convert to a poly point string + for (var i = 0, il = this.value.length, array = []; i < il; i++) { + array.push(this.value[i].join(',')); + } + + return array.join(' '); + }, + // Convert array to line object + toLine: function toLine() { + return { + x1: this.value[0][0], + y1: this.value[0][1], + x2: this.value[1][0], + y2: this.value[1][1] + }; + }, + // Get morphed array at given position + at: function at(pos) { + // make sure a destination is defined + if (!this.destination) return this; // generate morphed point string + + for (var i = 0, il = this.value.length, array = []; i < il; i++) { + array.push([this.value[i][0] + (this.destination[i][0] - this.value[i][0]) * pos, this.value[i][1] + (this.destination[i][1] - this.value[i][1]) * pos]); + } + + return new SVG.PointArray(array); + }, + // Parse point string and flat array + parse: function parse(array) { + var points = []; + array = array.valueOf(); // if it is an array + + if (Array.isArray(array)) { + // and it is not flat, there is no need to parse it + if (Array.isArray(array[0])) { + // make sure to use a clone + return array.map(function (el) { + return el.slice(); + }); + } else if (array[0].x != null) { + // allow point objects to be passed + return array.map(function (el) { + return [el.x, el.y]; + }); + } + } else { + // Else, it is considered as a string + // parse points + array = array.trim().split(SVG.regex.delimiter).map(parseFloat); + } // validate points - https://svgwg.org/svg2-draft/shapes.html#DataTypePoints + // Odd number of coordinates is an error. In such cases, drop the last odd coordinate. + + + if (array.length % 2 !== 0) array.pop(); // wrap points in two-tuples and parse points as floats + + for (var i = 0, len = array.length; i < len; i = i + 2) { + points.push([array[i], array[i + 1]]); + } + + return points; + }, + // Move point string + move: function move(x, y) { + var box = this.bbox(); // get relative offset + + x -= box.x; + y -= box.y; // move every point + + if (!isNaN(x) && !isNaN(y)) { + for (var i = this.value.length - 1; i >= 0; i--) { + this.value[i] = [this.value[i][0] + x, this.value[i][1] + y]; + } + } + + return this; + }, + // Resize poly string + size: function size(width, height) { + var i, + box = this.bbox(); // recalculate position of all points according to new size + + for (i = this.value.length - 1; i >= 0; i--) { + if (box.width) this.value[i][0] = (this.value[i][0] - box.x) * width / box.width + box.x; + if (box.height) this.value[i][1] = (this.value[i][1] - box.y) * height / box.height + box.y; + } + + return this; + }, + // Get bounding box of points + bbox: function bbox() { + if (!SVG.parser.draw) { + SVG.prepare(); + } + + SVG.parser.poly.setAttribute('points', this.toString()); + return SVG.parser.poly.getBBox(); + } + }); + var pathHandlers = { + M: function M(c, p, p0) { + p.x = p0.x = c[0]; + p.y = p0.y = c[1]; + return ['M', p.x, p.y]; + }, + L: function L(c, p) { + p.x = c[0]; + p.y = c[1]; + return ['L', c[0], c[1]]; + }, + H: function H(c, p) { + p.x = c[0]; + return ['H', c[0]]; + }, + V: function V(c, p) { + p.y = c[0]; + return ['V', c[0]]; + }, + C: function C(c, p) { + p.x = c[4]; + p.y = c[5]; + return ['C', c[0], c[1], c[2], c[3], c[4], c[5]]; + }, + S: function S(c, p) { + p.x = c[2]; + p.y = c[3]; + return ['S', c[0], c[1], c[2], c[3]]; + }, + Q: function Q(c, p) { + p.x = c[2]; + p.y = c[3]; + return ['Q', c[0], c[1], c[2], c[3]]; + }, + T: function T(c, p) { + p.x = c[0]; + p.y = c[1]; + return ['T', c[0], c[1]]; + }, + Z: function Z(c, p, p0) { + p.x = p0.x; + p.y = p0.y; + return ['Z']; + }, + A: function A(c, p) { + p.x = c[5]; + p.y = c[6]; + return ['A', c[0], c[1], c[2], c[3], c[4], c[5], c[6]]; + } + }; + var mlhvqtcsa = 'mlhvqtcsaz'.split(''); + + for (var i = 0, il = mlhvqtcsa.length; i < il; ++i) { + pathHandlers[mlhvqtcsa[i]] = function (i) { + return function (c, p, p0) { + if (i == 'H') c[0] = c[0] + p.x;else if (i == 'V') c[0] = c[0] + p.y;else if (i == 'A') { + c[5] = c[5] + p.x, c[6] = c[6] + p.y; + } else { + for (var j = 0, jl = c.length; j < jl; ++j) { + c[j] = c[j] + (j % 2 ? p.y : p.x); + } + } + return pathHandlers[i](c, p, p0); + }; + }(mlhvqtcsa[i].toUpperCase()); + } // Path points array + + + SVG.PathArray = function (array, fallback) { + SVG.Array.call(this, array, fallback || [['M', 0, 0]]); + }; // Inherit from SVG.Array + + + SVG.PathArray.prototype = new SVG.Array(); + SVG.PathArray.prototype.constructor = SVG.PathArray; + SVG.extend(SVG.PathArray, { + // Convert array to string + toString: function toString() { + return arrayToString(this.value); + }, + // Move path string + move: function move(x, y) { + // get bounding box of current situation + var box = this.bbox(); // get relative offset + + x -= box.x; + y -= box.y; + + if (!isNaN(x) && !isNaN(y)) { + // move every point + for (var l, i = this.value.length - 1; i >= 0; i--) { + l = this.value[i][0]; + + if (l == 'M' || l == 'L' || l == 'T') { + this.value[i][1] += x; + this.value[i][2] += y; + } else if (l == 'H') { + this.value[i][1] += x; + } else if (l == 'V') { + this.value[i][1] += y; + } else if (l == 'C' || l == 'S' || l == 'Q') { + this.value[i][1] += x; + this.value[i][2] += y; + this.value[i][3] += x; + this.value[i][4] += y; + + if (l == 'C') { + this.value[i][5] += x; + this.value[i][6] += y; + } + } else if (l == 'A') { + this.value[i][6] += x; + this.value[i][7] += y; + } + } + } + + return this; + }, + // Resize path string + size: function size(width, height) { + // get bounding box of current situation + var i, + l, + box = this.bbox(); // recalculate position of all points according to new size + + for (i = this.value.length - 1; i >= 0; i--) { + l = this.value[i][0]; + + if (l == 'M' || l == 'L' || l == 'T') { + this.value[i][1] = (this.value[i][1] - box.x) * width / box.width + box.x; + this.value[i][2] = (this.value[i][2] - box.y) * height / box.height + box.y; + } else if (l == 'H') { + this.value[i][1] = (this.value[i][1] - box.x) * width / box.width + box.x; + } else if (l == 'V') { + this.value[i][1] = (this.value[i][1] - box.y) * height / box.height + box.y; + } else if (l == 'C' || l == 'S' || l == 'Q') { + this.value[i][1] = (this.value[i][1] - box.x) * width / box.width + box.x; + this.value[i][2] = (this.value[i][2] - box.y) * height / box.height + box.y; + this.value[i][3] = (this.value[i][3] - box.x) * width / box.width + box.x; + this.value[i][4] = (this.value[i][4] - box.y) * height / box.height + box.y; + + if (l == 'C') { + this.value[i][5] = (this.value[i][5] - box.x) * width / box.width + box.x; + this.value[i][6] = (this.value[i][6] - box.y) * height / box.height + box.y; + } + } else if (l == 'A') { + // resize radii + this.value[i][1] = this.value[i][1] * width / box.width; + this.value[i][2] = this.value[i][2] * height / box.height; // move position values + + this.value[i][6] = (this.value[i][6] - box.x) * width / box.width + box.x; + this.value[i][7] = (this.value[i][7] - box.y) * height / box.height + box.y; + } + } + + return this; + }, + // Test if the passed path array use the same path data commands as this path array + equalCommands: function equalCommands(pathArray) { + var i, il, equalCommands; + pathArray = new SVG.PathArray(pathArray); + equalCommands = this.value.length === pathArray.value.length; + + for (i = 0, il = this.value.length; equalCommands && i < il; i++) { + equalCommands = this.value[i][0] === pathArray.value[i][0]; + } + + return equalCommands; + }, + // Make path array morphable + morph: function morph(pathArray) { + pathArray = new SVG.PathArray(pathArray); + + if (this.equalCommands(pathArray)) { + this.destination = pathArray; + } else { + this.destination = null; + } + + return this; + }, + // Get morphed path array at given position + at: function at(pos) { + // make sure a destination is defined + if (!this.destination) return this; + var sourceArray = this.value, + destinationArray = this.destination.value, + array = [], + pathArray = new SVG.PathArray(), + i, + il, + j, + jl; // Animate has specified in the SVG spec + // See: https://www.w3.org/TR/SVG11/paths.html#PathElement + + for (i = 0, il = sourceArray.length; i < il; i++) { + array[i] = [sourceArray[i][0]]; + + for (j = 1, jl = sourceArray[i].length; j < jl; j++) { + array[i][j] = sourceArray[i][j] + (destinationArray[i][j] - sourceArray[i][j]) * pos; + } // For the two flags of the elliptical arc command, the SVG spec say: + // Flags and booleans are interpolated as fractions between zero and one, with any non-zero value considered to be a value of one/true + // Elliptical arc command as an array followed by corresponding indexes: + // ['A', rx, ry, x-axis-rotation, large-arc-flag, sweep-flag, x, y] + // 0 1 2 3 4 5 6 7 + + + if (array[i][0] === 'A') { + array[i][4] = +(array[i][4] != 0); + array[i][5] = +(array[i][5] != 0); + } + } // Directly modify the value of a path array, this is done this way for performance + + + pathArray.value = array; + return pathArray; + }, + // Absolutize and parse path to array + parse: function parse(array) { + // if it's already a patharray, no need to parse it + if (array instanceof SVG.PathArray) return array.valueOf(); // prepare for parsing + + var s, + arr, + paramCnt = { + 'M': 2, + 'L': 2, + 'H': 1, + 'V': 1, + 'C': 6, + 'S': 4, + 'Q': 4, + 'T': 2, + 'A': 7, + 'Z': 0 + }; + + if (typeof array === 'string') { + array = array.replace(SVG.regex.numbersWithDots, pathRegReplace) // convert 45.123.123 to 45.123 .123 + .replace(SVG.regex.pathLetters, ' $& ') // put some room between letters and numbers + .replace(SVG.regex.hyphen, '$1 -') // add space before hyphen + .trim() // trim + .split(SVG.regex.delimiter); // split into array + } else { + array = array.reduce(function (prev, curr) { + return [].concat.call(prev, curr); + }, []); + } // array now is an array containing all parts of a path e.g. ['M', '0', '0', 'L', '30', '30' ...] + + + var arr = [], + p = new SVG.Point(), + p0 = new SVG.Point(), + index = 0, + len = array.length; + + do { + // Test if we have a path letter + if (SVG.regex.isPathLetter.test(array[index])) { + s = array[index]; + ++index; // If last letter was a move command and we got no new, it defaults to [L]ine + } else if (s == 'M') { + s = 'L'; + } else if (s == 'm') { + s = 'l'; + } + + arr.push(pathHandlers[s].call(null, array.slice(index, index = index + paramCnt[s.toUpperCase()]).map(parseFloat), p, p0)); + } while (len > index); + + return arr; + }, + // Get bounding box of path + bbox: function bbox() { + if (!SVG.parser.draw) { + SVG.prepare(); + } + + SVG.parser.path.setAttribute('d', this.toString()); + return SVG.parser.path.getBBox(); + } + }); // Module for unit convertions + + SVG.Number = SVG.invent({ + // Initialize + create: function create(value, unit) { + // initialize defaults + this.value = 0; + this.unit = unit || ''; // parse value + + if (typeof value === 'number') { + // ensure a valid numeric value + this.value = isNaN(value) ? 0 : !isFinite(value) ? value < 0 ? -3.4e+38 : +3.4e+38 : value; + } else if (typeof value === 'string') { + unit = value.match(SVG.regex.numberAndUnit); + + if (unit) { + // make value numeric + this.value = parseFloat(unit[1]); // normalize + + if (unit[5] == '%') { + this.value /= 100; + } else if (unit[5] == 's') { + this.value *= 1000; + } // store unit + + + this.unit = unit[5]; + } + } else { + if (value instanceof SVG.Number) { + this.value = value.valueOf(); + this.unit = value.unit; + } + } + }, + // Add methods + extend: { + // Stringalize + toString: function toString() { + return (this.unit == '%' ? ~~(this.value * 1e8) / 1e6 : this.unit == 's' ? this.value / 1e3 : this.value) + this.unit; + }, + toJSON: function toJSON() { + return this.toString(); + }, + // Convert to primitive + valueOf: function valueOf() { + return this.value; + }, + // Add number + plus: function plus(number) { + number = new SVG.Number(number); + return new SVG.Number(this + number, this.unit || number.unit); + }, + // Subtract number + minus: function minus(number) { + number = new SVG.Number(number); + return new SVG.Number(this - number, this.unit || number.unit); + }, + // Multiply number + times: function times(number) { + number = new SVG.Number(number); + return new SVG.Number(this * number, this.unit || number.unit); + }, + // Divide number + divide: function divide(number) { + number = new SVG.Number(number); + return new SVG.Number(this / number, this.unit || number.unit); + }, + // Convert to different unit + to: function to(unit) { + var number = new SVG.Number(this); + + if (typeof unit === 'string') { + number.unit = unit; + } + + return number; + }, + // Make number morphable + morph: function morph(number) { + this.destination = new SVG.Number(number); + + if (number.relative) { + this.destination.value += this.value; + } + + return this; + }, + // Get morphed number at given position + at: function at(pos) { + // Make sure a destination is defined + if (!this.destination) return this; // Generate new morphed number + + return new SVG.Number(this.destination).minus(this).times(pos).plus(this); + } + } + }); + SVG.Element = SVG.invent({ + // Initialize node + create: function create(node) { + // make stroke value accessible dynamically + this._stroke = SVG.defaults.attrs.stroke; + this._event = null; // initialize data object + + this.dom = {}; // create circular reference + + if (this.node = node) { + this.type = node.nodeName; + this.node.instance = this; // store current attribute value + + this._stroke = node.getAttribute('stroke') || this._stroke; + } + }, + // Add class methods + extend: { + // Move over x-axis + x: function x(_x) { + return this.attr('x', _x); + }, + // Move over y-axis + y: function y(_y) { + return this.attr('y', _y); + }, + // Move by center over x-axis + cx: function cx(x) { + return x == null ? this.x() + this.width() / 2 : this.x(x - this.width() / 2); + }, + // Move by center over y-axis + cy: function cy(y) { + return y == null ? this.y() + this.height() / 2 : this.y(y - this.height() / 2); + }, + // Move element to given x and y values + move: function move(x, y) { + return this.x(x).y(y); + }, + // Move element by its center + center: function center(x, y) { + return this.cx(x).cy(y); + }, + // Set width of element + width: function width(_width) { + return this.attr('width', _width); + }, + // Set height of element + height: function height(_height) { + return this.attr('height', _height); + }, + // Set element size to given width and height + size: function size(width, height) { + var p = proportionalSize(this, width, height); + return this.width(new SVG.Number(p.width)).height(new SVG.Number(p.height)); + }, + // Clone element + clone: function clone(parent) { + // write dom data to the dom so the clone can pickup the data + this.writeDataToDom(); // clone element and assign new id + + var clone = assignNewId(this.node.cloneNode(true)); // insert the clone in the given parent or after myself + + if (parent) parent.add(clone);else this.after(clone); + return clone; + }, + // Remove element + remove: function remove() { + if (this.parent()) { + this.parent().removeElement(this); + } + + return this; + }, + // Replace element + replace: function replace(element) { + this.after(element).remove(); + return element; + }, + // Add element to given container and return self + addTo: function addTo(parent) { + return parent.put(this); + }, + // Add element to given container and return container + putIn: function putIn(parent) { + return parent.add(this); + }, + // Get / set id + id: function id(_id) { + return this.attr('id', _id); + }, + // Checks whether the given point inside the bounding box of the element + inside: function inside(x, y) { + var box = this.bbox(); + return x > box.x && y > box.y && x < box.x + box.width && y < box.y + box.height; + }, + // Show element + show: function show() { + return this.style('display', ''); + }, + // Hide element + hide: function hide() { + return this.style('display', 'none'); + }, + // Is element visible? + visible: function visible() { + return this.style('display') != 'none'; + }, + // Return id on string conversion + toString: function toString() { + return this.attr('id'); + }, + // Return array of classes on the node + classes: function classes() { + var attr = this.attr('class'); + return attr == null ? [] : attr.trim().split(SVG.regex.delimiter); + }, + // Return true if class exists on the node, false otherwise + hasClass: function hasClass(name) { + return this.classes().indexOf(name) != -1; + }, + // Add class to the node + addClass: function addClass(name) { + if (!this.hasClass(name)) { + var array = this.classes(); + array.push(name); + this.attr('class', array.join(' ')); + } + + return this; + }, + // Remove class from the node + removeClass: function removeClass(name) { + if (this.hasClass(name)) { + this.attr('class', this.classes().filter(function (c) { + return c != name; + }).join(' ')); + } + + return this; + }, + // Toggle the presence of a class on the node + toggleClass: function toggleClass(name) { + return this.hasClass(name) ? this.removeClass(name) : this.addClass(name); + }, + // Get referenced element form attribute value + reference: function reference(attr) { + return SVG.get(this.attr(attr)); + }, + // Returns the parent element instance + parent: function parent(type) { + var parent = this; // check for parent + + if (!parent.node.parentNode) return null; // get parent element + + parent = SVG.adopt(parent.node.parentNode); + if (!type) return parent; // loop trough ancestors if type is given + + while (parent && parent.node instanceof window.SVGElement) { + if (typeof type === 'string' ? parent.matches(type) : parent instanceof type) return parent; + if (!parent.node.parentNode || parent.node.parentNode.nodeName == '#document') return null; // #759, #720 + + parent = SVG.adopt(parent.node.parentNode); + } + }, + // Get parent document + doc: function doc() { + return this instanceof SVG.Doc ? this : this.parent(SVG.Doc); + }, + // return array of all ancestors of given type up to the root svg + parents: function parents(type) { + var parents = [], + parent = this; + + do { + parent = parent.parent(type); + if (!parent || !parent.node) break; + parents.push(parent); + } while (parent.parent); + + return parents; + }, + // matches the element vs a css selector + matches: function matches(selector) { + return _matches(this.node, selector); + }, + // Returns the svg node to call native svg methods on it + native: function native() { + return this.node; + }, + // Import raw svg + svg: function svg(_svg) { + // create temporary holder + var well = document.createElement('svg'); // act as a setter if svg is given + + if (_svg && this instanceof SVG.Parent) { + // dump raw svg + well.innerHTML = '' + _svg.replace(/\n/, '').replace(/<([\w:-]+)([^<]+?)\/>/g, '<$1$2>') + ''; // transplant nodes + + for (var i = 0, il = well.firstChild.childNodes.length; i < il; i++) { + this.node.appendChild(well.firstChild.firstChild); + } // otherwise act as a getter + + } else { + // create a wrapping svg element in case of partial content + well.appendChild(_svg = document.createElement('svg')); // write svgjs data to the dom + + this.writeDataToDom(); // insert a copy of this node + + _svg.appendChild(this.node.cloneNode(true)); // return target element + + + return well.innerHTML.replace(/^/, '').replace(/<\/svg>$/, ''); + } + + return this; + }, + // write svgjs data to the dom + writeDataToDom: function writeDataToDom() { + // dump variables recursively + if (this.each || this.lines) { + var fn = this.each ? this : this.lines(); + fn.each(function () { + this.writeDataToDom(); + }); + } // remove previously set data + + + this.node.removeAttribute('svgjs:data'); + + if (Object.keys(this.dom).length) { + this.node.setAttribute('svgjs:data', JSON.stringify(this.dom)); + } // see #428 + + + return this; + }, + // set given data to the elements data property + setData: function setData(o) { + this.dom = o; + return this; + }, + is: function is(obj) { + return _is(this, obj); + } + } + }); + SVG.easing = { + '-': function _(pos) { + return pos; + }, + '<>': function _(pos) { + return -Math.cos(pos * Math.PI) / 2 + 0.5; + }, + '>': function _(pos) { + return Math.sin(pos * Math.PI / 2); + }, + '<': function _(pos) { + return -Math.cos(pos * Math.PI / 2) + 1; + } + }; + + SVG.morph = function (pos) { + return function (from, to) { + return new SVG.MorphObj(from, to).at(pos); + }; + }; + + SVG.Situation = SVG.invent({ + create: function create(o) { + this.init = false; + this.reversed = false; + this.reversing = false; + this.duration = new SVG.Number(o.duration).valueOf(); + this.delay = new SVG.Number(o.delay).valueOf(); + this.start = +new Date() + this.delay; + this.finish = this.start + this.duration; + this.ease = o.ease; // this.loop is incremented from 0 to this.loops + // it is also incremented when in an infinite loop (when this.loops is true) + + this.loop = 0; + this.loops = false; + this.animations = {// functionToCall: [list of morphable objects] + // e.g. move: [SVG.Number, SVG.Number] + }; + this.attrs = {// holds all attributes which are not represented from a function svg.js provides + // e.g. someAttr: SVG.Number + }; + this.styles = {// holds all styles which should be animated + // e.g. fill-color: SVG.Color + }; + this.transforms = [// holds all transformations as transformation objects + // e.g. [SVG.Rotate, SVG.Translate, SVG.Matrix] + ]; + this.once = {// functions to fire at a specific position + // e.g. "0.5": function foo(){} + }; + } + }); + SVG.FX = SVG.invent({ + create: function create(element) { + this._target = element; + this.situations = []; + this.active = false; + this.situation = null; + this.paused = false; + this.lastPos = 0; + this.pos = 0; // The absolute position of an animation is its position in the context of its complete duration (including delay and loops) + // When performing a delay, absPos is below 0 and when performing a loop, its value is above 1 + + this.absPos = 0; + this._speed = 1; + }, + extend: { + /** + * sets or returns the target of this animation + * @param o object || number In case of Object it holds all parameters. In case of number its the duration of the animation + * @param ease function || string Function which should be used for easing or easing keyword + * @param delay Number indicating the delay before the animation starts + * @return target || this + */ + animate: function animate(o, ease, delay) { + if (_typeof(o) === 'object') { + ease = o.ease; + delay = o.delay; + o = o.duration; + } + + var situation = new SVG.Situation({ + duration: o || 1000, + delay: delay || 0, + ease: SVG.easing[ease || '-'] || ease + }); + this.queue(situation); + return this; + }, + + /** + * sets a delay before the next element of the queue is called + * @param delay Duration of delay in milliseconds + * @return this.target() + */ + delay: function delay(_delay) { + // The delay is performed by an empty situation with its duration + // attribute set to the duration of the delay + var situation = new SVG.Situation({ + duration: _delay, + delay: 0, + ease: SVG.easing['-'] + }); + return this.queue(situation); + }, + + /** + * sets or returns the target of this animation + * @param null || target SVG.Element which should be set as new target + * @return target || this + */ + target: function target(_target) { + if (_target && _target instanceof SVG.Element) { + this._target = _target; + return this; + } + + return this._target; + }, + // returns the absolute position at a given time + timeToAbsPos: function timeToAbsPos(timestamp) { + return (timestamp - this.situation.start) / (this.situation.duration / this._speed); + }, + // returns the timestamp from a given absolute positon + absPosToTime: function absPosToTime(absPos) { + return this.situation.duration / this._speed * absPos + this.situation.start; + }, + // starts the animationloop + startAnimFrame: function startAnimFrame() { + this.stopAnimFrame(); + this.animationFrame = window.requestAnimationFrame(function () { + this.step(); + }.bind(this)); + }, + // cancels the animationframe + stopAnimFrame: function stopAnimFrame() { + window.cancelAnimationFrame(this.animationFrame); + }, + // kicks off the animation - only does something when the queue is currently not active and at least one situation is set + start: function start() { + // dont start if already started + if (!this.active && this.situation) { + this.active = true; + this.startCurrent(); + } + + return this; + }, + // start the current situation + startCurrent: function startCurrent() { + this.situation.start = +new Date() + this.situation.delay / this._speed; + this.situation.finish = this.situation.start + this.situation.duration / this._speed; + return this.initAnimations().step(); + }, + + /** + * adds a function / Situation to the animation queue + * @param fn function / situation to add + * @return this + */ + queue: function queue(fn) { + if (typeof fn === 'function' || fn instanceof SVG.Situation) { + this.situations.push(fn); + } + + if (!this.situation) this.situation = this.situations.shift(); + return this; + }, + + /** + * pulls next element from the queue and execute it + * @return this + */ + dequeue: function dequeue() { + // stop current animation + this.stop(); // get next animation from queue + + this.situation = this.situations.shift(); + + if (this.situation) { + if (this.situation instanceof SVG.Situation) { + this.start(); + } else { + // If it is not a SVG.Situation, then it is a function, we execute it + this.situation.call(this); + } + } + + return this; + }, + // updates all animations to the current state of the element + // this is important when one property could be changed from another property + initAnimations: function initAnimations() { + var i, j, source; + var s = this.situation; + if (s.init) return this; + + for (i in s.animations) { + source = this.target()[i](); + + if (!Array.isArray(source)) { + source = [source]; + } + + if (!Array.isArray(s.animations[i])) { + s.animations[i] = [s.animations[i]]; + } // if(s.animations[i].length > source.length) { + // source.concat = source.concat(s.animations[i].slice(source.length, s.animations[i].length)) + // } + + + for (j = source.length; j--;) { + // The condition is because some methods return a normal number instead + // of a SVG.Number + if (s.animations[i][j] instanceof SVG.Number) { + source[j] = new SVG.Number(source[j]); + } + + s.animations[i][j] = source[j].morph(s.animations[i][j]); + } + } + + for (i in s.attrs) { + s.attrs[i] = new SVG.MorphObj(this.target().attr(i), s.attrs[i]); + } + + for (i in s.styles) { + s.styles[i] = new SVG.MorphObj(this.target().style(i), s.styles[i]); + } + + s.initialTransformation = this.target().matrixify(); + s.init = true; + return this; + }, + clearQueue: function clearQueue() { + this.situations = []; + return this; + }, + clearCurrent: function clearCurrent() { + this.situation = null; + return this; + }, + + /** stops the animation immediately + * @param jumpToEnd A Boolean indicating whether to complete the current animation immediately. + * @param clearQueue A Boolean indicating whether to remove queued animation as well. + * @return this + */ + stop: function stop(jumpToEnd, clearQueue) { + var active = this.active; + this.active = false; + + if (clearQueue) { + this.clearQueue(); + } + + if (jumpToEnd && this.situation) { + // initialize the situation if it was not + !active && this.startCurrent(); + this.atEnd(); + } + + this.stopAnimFrame(); + return this.clearCurrent(); + }, + + /** resets the element to the state where the current element has started + * @return this + */ + reset: function reset() { + if (this.situation) { + var temp = this.situation; + this.stop(); + this.situation = temp; + this.atStart(); + } + + return this; + }, + // Stop the currently-running animation, remove all queued animations, and complete all animations for the element. + finish: function finish() { + this.stop(true, false); + + while (this.dequeue().situation && this.stop(true, false)) { + } + + this.clearQueue().clearCurrent(); + return this; + }, + // set the internal animation pointer at the start position, before any loops, and updates the visualisation + atStart: function atStart() { + return this.at(0, true); + }, + // set the internal animation pointer at the end position, after all the loops, and updates the visualisation + atEnd: function atEnd() { + if (this.situation.loops === true) { + // If in a infinite loop, we end the current iteration + this.situation.loops = this.situation.loop + 1; + } + + if (typeof this.situation.loops === 'number') { + // If performing a finite number of loops, we go after all the loops + return this.at(this.situation.loops, true); + } else { + // If no loops, we just go at the end + return this.at(1, true); + } + }, + // set the internal animation pointer to the specified position and updates the visualisation + // if isAbsPos is true, pos is treated as an absolute position + at: function at(pos, isAbsPos) { + var durDivSpd = this.situation.duration / this._speed; + this.absPos = pos; // If pos is not an absolute position, we convert it into one + + if (!isAbsPos) { + if (this.situation.reversed) this.absPos = 1 - this.absPos; + this.absPos += this.situation.loop; + } + + this.situation.start = +new Date() - this.absPos * durDivSpd; + this.situation.finish = this.situation.start + durDivSpd; + return this.step(true); + }, + + /** + * sets or returns the speed of the animations + * @param speed null || Number The new speed of the animations + * @return Number || this + */ + speed: function speed(_speed) { + if (_speed === 0) return this.pause(); + + if (_speed) { + this._speed = _speed; // We use an absolute position here so that speed can affect the delay before the animation + + return this.at(this.absPos, true); + } else return this._speed; + }, + // Make loopable + loop: function loop(times, reverse) { + var c = this.last(); // store total loops + + c.loops = times != null ? times : true; + c.loop = 0; + if (reverse) c.reversing = true; + return this; + }, + // pauses the animation + pause: function pause() { + this.paused = true; + this.stopAnimFrame(); + return this; + }, + // unpause the animation + play: function play() { + if (!this.paused) return this; + this.paused = false; // We use an absolute position here so that the delay before the animation can be paused + + return this.at(this.absPos, true); + }, + + /** + * toggle or set the direction of the animation + * true sets direction to backwards while false sets it to forwards + * @param reversed Boolean indicating whether to reverse the animation or not (default: toggle the reverse status) + * @return this + */ + reverse: function reverse(reversed) { + var c = this.last(); + if (typeof reversed === 'undefined') c.reversed = !c.reversed;else c.reversed = reversed; + return this; + }, + + /** + * returns a float from 0-1 indicating the progress of the current animation + * @param eased Boolean indicating whether the returned position should be eased or not + * @return number + */ + progress: function progress(easeIt) { + return easeIt ? this.situation.ease(this.pos) : this.pos; + }, + + /** + * adds a callback function which is called when the current animation is finished + * @param fn Function which should be executed as callback + * @return number + */ + after: function after(fn) { + var c = this.last(), + wrapper = function wrapper(e) { + if (e.detail.situation == c) { + fn.call(this, c); + this.off('finished.fx', wrapper); // prevent memory leak + } + }; + + this.target().on('finished.fx', wrapper); + return this._callStart(); + }, + // adds a callback which is called whenever one animation step is performed + during: function during(fn) { + var c = this.last(), + wrapper = function wrapper(e) { + if (e.detail.situation == c) { + fn.call(this, e.detail.pos, SVG.morph(e.detail.pos), e.detail.eased, c); + } + }; // see above + + + this.target().off('during.fx', wrapper).on('during.fx', wrapper); + this.after(function () { + this.off('during.fx', wrapper); + }); + return this._callStart(); + }, + // calls after ALL animations in the queue are finished + afterAll: function afterAll(fn) { + var wrapper = function wrapper(e) { + fn.call(this); + this.off('allfinished.fx', wrapper); + }; // see above + + + this.target().off('allfinished.fx', wrapper).on('allfinished.fx', wrapper); + return this._callStart(); + }, + // calls on every animation step for all animations + duringAll: function duringAll(fn) { + var wrapper = function wrapper(e) { + fn.call(this, e.detail.pos, SVG.morph(e.detail.pos), e.detail.eased, e.detail.situation); + }; + + this.target().off('during.fx', wrapper).on('during.fx', wrapper); + this.afterAll(function () { + this.off('during.fx', wrapper); + }); + return this._callStart(); + }, + last: function last() { + return this.situations.length ? this.situations[this.situations.length - 1] : this.situation; + }, + // adds one property to the animations + add: function add(method, args, type) { + this.last()[type || 'animations'][method] = args; + return this._callStart(); + }, + + /** perform one step of the animation + * @param ignoreTime Boolean indicating whether to ignore time and use position directly or recalculate position based on time + * @return this + */ + step: function step(ignoreTime) { + // convert current time to an absolute position + if (!ignoreTime) this.absPos = this.timeToAbsPos(+new Date()); // This part convert an absolute position to a position + + if (this.situation.loops !== false) { + var absPos, absPosInt, lastLoop; // If the absolute position is below 0, we just treat it as if it was 0 + + absPos = Math.max(this.absPos, 0); + absPosInt = Math.floor(absPos); + + if (this.situation.loops === true || absPosInt < this.situation.loops) { + this.pos = absPos - absPosInt; + lastLoop = this.situation.loop; + this.situation.loop = absPosInt; + } else { + this.absPos = this.situation.loops; + this.pos = 1; // The -1 here is because we don't want to toggle reversed when all the loops have been completed + + lastLoop = this.situation.loop - 1; + this.situation.loop = this.situation.loops; + } + + if (this.situation.reversing) { + // Toggle reversed if an odd number of loops as occured since the last call of step + this.situation.reversed = this.situation.reversed != Boolean((this.situation.loop - lastLoop) % 2); + } + } else { + // If there are no loop, the absolute position must not be above 1 + this.absPos = Math.min(this.absPos, 1); + this.pos = this.absPos; + } // while the absolute position can be below 0, the position must not be below 0 + + + if (this.pos < 0) this.pos = 0; + if (this.situation.reversed) this.pos = 1 - this.pos; // apply easing + + var eased = this.situation.ease(this.pos); // call once-callbacks + + for (var i in this.situation.once) { + if (i > this.lastPos && i <= eased) { + this.situation.once[i].call(this.target(), this.pos, eased); + delete this.situation.once[i]; + } + } // fire during callback with position, eased position and current situation as parameter + + + if (this.active) this.target().fire('during', { + pos: this.pos, + eased: eased, + fx: this, + situation: this.situation + }); // the user may call stop or finish in the during callback + // so make sure that we still have a valid situation + + if (!this.situation) { + return this; + } // apply the actual animation to every property + + + this.eachAt(); // do final code when situation is finished + + if (this.pos == 1 && !this.situation.reversed || this.situation.reversed && this.pos == 0) { + // stop animation callback + this.stopAnimFrame(); // fire finished callback with current situation as parameter + + this.target().fire('finished', { + fx: this, + situation: this.situation + }); + + if (!this.situations.length) { + this.target().fire('allfinished'); // Recheck the length since the user may call animate in the afterAll callback + + if (!this.situations.length) { + this.target().off('.fx'); // there shouldnt be any binding left, but to make sure... + + this.active = false; + } + } // start next animation + + + if (this.active) this.dequeue();else this.clearCurrent(); + } else if (!this.paused && this.active) { + // we continue animating when we are not at the end + this.startAnimFrame(); + } // save last eased position for once callback triggering + + + this.lastPos = eased; + return this; + }, + // calculates the step for every property and calls block with it + eachAt: function eachAt() { + var i, + len, + at, + self = this, + target = this.target(), + s = this.situation; // apply animations which can be called trough a method + + for (i in s.animations) { + at = [].concat(s.animations[i]).map(function (el) { + return typeof el !== 'string' && el.at ? el.at(s.ease(self.pos), self.pos) : el; + }); + target[i].apply(target, at); + } // apply animation which has to be applied with attr() + + + for (i in s.attrs) { + at = [i].concat(s.attrs[i]).map(function (el) { + return typeof el !== 'string' && el.at ? el.at(s.ease(self.pos), self.pos) : el; + }); + target.attr.apply(target, at); + } // apply animation which has to be applied with style() + + + for (i in s.styles) { + at = [i].concat(s.styles[i]).map(function (el) { + return typeof el !== 'string' && el.at ? el.at(s.ease(self.pos), self.pos) : el; + }); + target.style.apply(target, at); + } // animate initialTransformation which has to be chained + + + if (s.transforms.length) { + // get initial initialTransformation + at = s.initialTransformation; + + for (i = 0, len = s.transforms.length; i < len; i++) { + // get next transformation in chain + var a = s.transforms[i]; // multiply matrix directly + + if (a instanceof SVG.Matrix) { + if (a.relative) { + at = at.multiply(new SVG.Matrix().morph(a).at(s.ease(this.pos))); + } else { + at = at.morph(a).at(s.ease(this.pos)); + } + + continue; + } // when transformation is absolute we have to reset the needed transformation first + + + if (!a.relative) { + a.undo(at.extract()); + } // and reapply it after + + + at = at.multiply(a.at(s.ease(this.pos))); + } // set new matrix on element + + + target.matrix(at); + } + + return this; + }, + // adds an once-callback which is called at a specific position and never again + once: function once(pos, fn, isEased) { + var c = this.last(); + if (!isEased) pos = c.ease(pos); + c.once[pos] = fn; + return this; + }, + _callStart: function _callStart() { + setTimeout(function () { + this.start(); + }.bind(this), 0); + return this; + } + }, + parent: SVG.Element, + // Add method to parent elements + construct: { + // Get fx module or create a new one, then animate with given duration and ease + animate: function animate(o, ease, delay) { + return (this.fx || (this.fx = new SVG.FX(this))).animate(o, ease, delay); + }, + delay: function delay(_delay2) { + return (this.fx || (this.fx = new SVG.FX(this))).delay(_delay2); + }, + stop: function stop(jumpToEnd, clearQueue) { + if (this.fx) { + this.fx.stop(jumpToEnd, clearQueue); + } + + return this; + }, + finish: function finish() { + if (this.fx) { + this.fx.finish(); + } + + return this; + }, + // Pause current animation + pause: function pause() { + if (this.fx) { + this.fx.pause(); + } + + return this; + }, + // Play paused current animation + play: function play() { + if (this.fx) { + this.fx.play(); + } + + return this; + }, + // Set/Get the speed of the animations + speed: function speed(_speed2) { + if (this.fx) { + if (_speed2 == null) { + return this.fx.speed(); + } else { + this.fx.speed(_speed2); + } + } + + return this; + } + } + }); // MorphObj is used whenever no morphable object is given + + SVG.MorphObj = SVG.invent({ + create: function create(from, to) { + // prepare color for morphing + if (SVG.Color.isColor(to)) return new SVG.Color(from).morph(to); // check if we have a list of values + + if (SVG.regex.delimiter.test(from)) { + // prepare path for morphing + if (SVG.regex.pathLetters.test(from)) return new SVG.PathArray(from).morph(to); // prepare value list for morphing + else return new SVG.Array(from).morph(to); + } // prepare number for morphing + + + if (SVG.regex.numberAndUnit.test(to)) return new SVG.Number(from).morph(to); // prepare for plain morphing + + this.value = from; + this.destination = to; + }, + extend: { + at: function at(pos, real) { + return real < 1 ? this.value : this.destination; + }, + valueOf: function valueOf() { + return this.value; + } + } + }); + SVG.extend(SVG.FX, { + // Add animatable attributes + attr: function attr(a, v, relative) { + // apply attributes individually + if (_typeof(a) === 'object') { + for (var key in a) { + this.attr(key, a[key]); + } + } else { + this.add(a, v, 'attrs'); + } + + return this; + }, + // Add animatable styles + style: function style(s, v) { + if (_typeof(s) === 'object') { + for (var key in s) { + this.style(key, s[key]); + } + } else { + this.add(s, v, 'styles'); + } + + return this; + }, + // Animatable x-axis + x: function x(_x2, relative) { + if (this.target() instanceof SVG.G) { + this.transform({ + x: _x2 + }, relative); + return this; + } + + var num = new SVG.Number(_x2); + num.relative = relative; + return this.add('x', num); + }, + // Animatable y-axis + y: function y(_y2, relative) { + if (this.target() instanceof SVG.G) { + this.transform({ + y: _y2 + }, relative); + return this; + } + + var num = new SVG.Number(_y2); + num.relative = relative; + return this.add('y', num); + }, + // Animatable center x-axis + cx: function cx(x) { + return this.add('cx', new SVG.Number(x)); + }, + // Animatable center y-axis + cy: function cy(y) { + return this.add('cy', new SVG.Number(y)); + }, + // Add animatable move + move: function move(x, y) { + return this.x(x).y(y); + }, + // Add animatable center + center: function center(x, y) { + return this.cx(x).cy(y); + }, + // Add animatable size + size: function size(width, height) { + if (this.target() instanceof SVG.Text) { + // animate font size for Text elements + this.attr('font-size', width); + } else { + // animate bbox based size for all other elements + var box; + + if (!width || !height) { + box = this.target().bbox(); + } + + if (!width) { + width = box.width / box.height * height; + } + + if (!height) { + height = box.height / box.width * width; + } + + this.add('width', new SVG.Number(width)).add('height', new SVG.Number(height)); + } + + return this; + }, + // Add animatable width + width: function width(_width2) { + return this.add('width', new SVG.Number(_width2)); + }, + // Add animatable height + height: function height(_height2) { + return this.add('height', new SVG.Number(_height2)); + }, + // Add animatable plot + plot: function plot(a, b, c, d) { + // Lines can be plotted with 4 arguments + if (arguments.length == 4) { + return this.plot([a, b, c, d]); + } + + return this.add('plot', new (this.target().morphArray)(a)); + }, + // Add leading method + leading: function leading(value) { + return this.target().leading ? this.add('leading', new SVG.Number(value)) : this; + }, + // Add animatable viewbox + viewbox: function viewbox(x, y, width, height) { + if (this.target() instanceof SVG.Container) { + this.add('viewbox', new SVG.ViewBox(x, y, width, height)); + } + + return this; + }, + update: function update(o) { + if (this.target() instanceof SVG.Stop) { + if (typeof o === 'number' || o instanceof SVG.Number) { + return this.update({ + offset: arguments[0], + color: arguments[1], + opacity: arguments[2] + }); + } + + if (o.opacity != null) this.attr('stop-opacity', o.opacity); + if (o.color != null) this.attr('stop-color', o.color); + if (o.offset != null) this.attr('offset', o.offset); + } + + return this; + } + }); + SVG.Box = SVG.invent({ + create: function create(x, y, width, height) { + if (_typeof(x) === 'object' && !(x instanceof SVG.Element)) { + // chromes getBoundingClientRect has no x and y property + return SVG.Box.call(this, x.left != null ? x.left : x.x, x.top != null ? x.top : x.y, x.width, x.height); + } else if (arguments.length == 4) { + this.x = x; + this.y = y; + this.width = width; + this.height = height; + } // add center, right, bottom... + + + fullBox(this); + }, + extend: { + // Merge rect box with another, return a new instance + merge: function merge(box) { + var b = new this.constructor(); // merge boxes + + b.x = Math.min(this.x, box.x); + b.y = Math.min(this.y, box.y); + b.width = Math.max(this.x + this.width, box.x + box.width) - b.x; + b.height = Math.max(this.y + this.height, box.y + box.height) - b.y; + return fullBox(b); + }, + transform: function transform(m) { + var xMin = Infinity, + xMax = -Infinity, + yMin = Infinity, + yMax = -Infinity, + bbox; + var pts = [new SVG.Point(this.x, this.y), new SVG.Point(this.x2, this.y), new SVG.Point(this.x, this.y2), new SVG.Point(this.x2, this.y2)]; + pts.forEach(function (p) { + p = p.transform(m); + xMin = Math.min(xMin, p.x); + xMax = Math.max(xMax, p.x); + yMin = Math.min(yMin, p.y); + yMax = Math.max(yMax, p.y); + }); + bbox = new this.constructor(); + bbox.x = xMin; + bbox.width = xMax - xMin; + bbox.y = yMin; + bbox.height = yMax - yMin; + fullBox(bbox); + return bbox; + } + } + }); + SVG.BBox = SVG.invent({ + // Initialize + create: function create(element) { + SVG.Box.apply(this, [].slice.call(arguments)); // get values if element is given + + if (element instanceof SVG.Element) { + var box; // yes this is ugly, but Firefox can be a pain when it comes to elements that are not yet rendered + + try { + if (!document.documentElement.contains) { + // This is IE - it does not support contains() for top-level SVGs + var topParent = element.node; + + while (topParent.parentNode) { + topParent = topParent.parentNode; + } + + if (topParent != document) throw new Error('Element not in the dom'); + } // the element is NOT in the dom, throw error + // disabling the check below which fixes issue #76 + // if (!document.documentElement.contains(element.node)) throw new Exception('Element not in the dom') + // find native bbox + + + box = element.node.getBBox(); + } catch (e) { + if (element instanceof SVG.Shape) { + if (!SVG.parser.draw) { + // fixes apexcharts/vue-apexcharts #14 + SVG.prepare(); + } + + var clone = element.clone(SVG.parser.draw.instance).show(); + box = clone.node.getBBox(); + clone.remove(); + } else { + box = { + x: element.node.clientLeft, + y: element.node.clientTop, + width: element.node.clientWidth, + height: element.node.clientHeight + }; + } + } + + SVG.Box.call(this, box); + } + }, + // Define ancestor + inherit: SVG.Box, + // Define Parent + parent: SVG.Element, + // Constructor + construct: { + // Get bounding box + bbox: function bbox() { + return new SVG.BBox(this); + } + } + }); + SVG.BBox.prototype.constructor = SVG.BBox; + SVG.extend(SVG.Element, { + tbox: function tbox() { + console.warn('Use of TBox is deprecated and mapped to RBox. Use .rbox() instead.'); + return this.rbox(this.doc()); + } + }); + SVG.RBox = SVG.invent({ + // Initialize + create: function create(element) { + SVG.Box.apply(this, [].slice.call(arguments)); + + if (element instanceof SVG.Element) { + SVG.Box.call(this, element.node.getBoundingClientRect()); + } + }, + inherit: SVG.Box, + // define Parent + parent: SVG.Element, + extend: { + addOffset: function addOffset() { + // offset by window scroll position, because getBoundingClientRect changes when window is scrolled + this.x += window.pageXOffset; + this.y += window.pageYOffset; + return this; + } + }, + // Constructor + construct: { + // Get rect box + rbox: function rbox(el) { + if (el) return new SVG.RBox(this).transform(el.screenCTM().inverse()); + return new SVG.RBox(this).addOffset(); + } + } + }); + SVG.RBox.prototype.constructor = SVG.RBox; + SVG.Matrix = SVG.invent({ + // Initialize + create: function create(source) { + var i, + base = arrayToMatrix([1, 0, 0, 1, 0, 0]); // ensure source as object + + source = source instanceof SVG.Element ? source.matrixify() : typeof source === 'string' ? arrayToMatrix(source.split(SVG.regex.delimiter).map(parseFloat)) : arguments.length == 6 ? arrayToMatrix([].slice.call(arguments)) : Array.isArray(source) ? arrayToMatrix(source) : _typeof(source) === 'object' ? source : base; // merge source + + for (i = abcdef.length - 1; i >= 0; --i) { + this[abcdef[i]] = source[abcdef[i]] != null ? source[abcdef[i]] : base[abcdef[i]]; + } + }, + // Add methods + extend: { + // Extract individual transformations + extract: function extract() { + // find delta transform points + var px = deltaTransformPoint(this, 0, 1), + py = deltaTransformPoint(this, 1, 0), + skewX = 180 / Math.PI * Math.atan2(px.y, px.x) - 90; + return { + // translation + x: this.e, + y: this.f, + transformedX: (this.e * Math.cos(skewX * Math.PI / 180) + this.f * Math.sin(skewX * Math.PI / 180)) / Math.sqrt(this.a * this.a + this.b * this.b), + transformedY: (this.f * Math.cos(skewX * Math.PI / 180) + this.e * Math.sin(-skewX * Math.PI / 180)) / Math.sqrt(this.c * this.c + this.d * this.d), + // skew + skewX: -skewX, + skewY: 180 / Math.PI * Math.atan2(py.y, py.x), + // scale + scaleX: Math.sqrt(this.a * this.a + this.b * this.b), + scaleY: Math.sqrt(this.c * this.c + this.d * this.d), + // rotation + rotation: skewX, + a: this.a, + b: this.b, + c: this.c, + d: this.d, + e: this.e, + f: this.f, + matrix: new SVG.Matrix(this) + }; + }, + // Clone matrix + clone: function clone() { + return new SVG.Matrix(this); + }, + // Morph one matrix into another + morph: function morph(matrix) { + // store new destination + this.destination = new SVG.Matrix(matrix); + return this; + }, + // Get morphed matrix at a given position + at: function at(pos) { + // make sure a destination is defined + if (!this.destination) return this; // calculate morphed matrix at a given position + + var matrix = new SVG.Matrix({ + a: this.a + (this.destination.a - this.a) * pos, + b: this.b + (this.destination.b - this.b) * pos, + c: this.c + (this.destination.c - this.c) * pos, + d: this.d + (this.destination.d - this.d) * pos, + e: this.e + (this.destination.e - this.e) * pos, + f: this.f + (this.destination.f - this.f) * pos + }); + return matrix; + }, + // Multiplies by given matrix + multiply: function multiply(matrix) { + return new SVG.Matrix(this.native().multiply(parseMatrix(matrix).native())); + }, + // Inverses matrix + inverse: function inverse() { + return new SVG.Matrix(this.native().inverse()); + }, + // Translate matrix + translate: function translate(x, y) { + return new SVG.Matrix(this.native().translate(x || 0, y || 0)); + }, + // Scale matrix + scale: function scale(x, y, cx, cy) { + // support uniformal scale + if (arguments.length == 1) { + y = x; + } else if (arguments.length == 3) { + cy = cx; + cx = y; + y = x; + } + + return this.around(cx, cy, new SVG.Matrix(x, 0, 0, y, 0, 0)); + }, + // Rotate matrix + rotate: function rotate(r, cx, cy) { + // convert degrees to radians + r = SVG.utils.radians(r); + return this.around(cx, cy, new SVG.Matrix(Math.cos(r), Math.sin(r), -Math.sin(r), Math.cos(r), 0, 0)); + }, + // Flip matrix on x or y, at a given offset + flip: function flip(a, o) { + return a == 'x' ? this.scale(-1, 1, o, 0) : a == 'y' ? this.scale(1, -1, 0, o) : this.scale(-1, -1, a, o != null ? o : a); + }, + // Skew + skew: function skew(x, y, cx, cy) { + // support uniformal skew + if (arguments.length == 1) { + y = x; + } else if (arguments.length == 3) { + cy = cx; + cx = y; + y = x; + } // convert degrees to radians + + + x = SVG.utils.radians(x); + y = SVG.utils.radians(y); + return this.around(cx, cy, new SVG.Matrix(1, Math.tan(y), Math.tan(x), 1, 0, 0)); + }, + // SkewX + skewX: function skewX(x, cx, cy) { + return this.skew(x, 0, cx, cy); + }, + // SkewY + skewY: function skewY(y, cx, cy) { + return this.skew(0, y, cx, cy); + }, + // Transform around a center point + around: function around(cx, cy, matrix) { + return this.multiply(new SVG.Matrix(1, 0, 0, 1, cx || 0, cy || 0)).multiply(matrix).multiply(new SVG.Matrix(1, 0, 0, 1, -cx || 0, -cy || 0)); + }, + // Convert to native SVGMatrix + native: function native() { + // create new matrix + var matrix = SVG.parser.native.createSVGMatrix(); // update with current values + + for (var i = abcdef.length - 1; i >= 0; i--) { + matrix[abcdef[i]] = this[abcdef[i]]; + } + + return matrix; + }, + // Convert matrix to string + toString: function toString() { + // Construct the matrix directly, avoid values that are too small + return 'matrix(' + float32String(this.a) + ',' + float32String(this.b) + ',' + float32String(this.c) + ',' + float32String(this.d) + ',' + float32String(this.e) + ',' + float32String(this.f) + ')'; + } + }, + // Define parent + parent: SVG.Element, + // Add parent method + construct: { + // Get current matrix + ctm: function ctm() { + return new SVG.Matrix(this.node.getCTM()); + }, + // Get current screen matrix + screenCTM: function screenCTM() { + /* https://bugzilla.mozilla.org/show_bug.cgi?id=1344537 + This is needed because FF does not return the transformation matrix + for the inner coordinate system when getScreenCTM() is called on nested svgs. + However all other Browsers do that */ + if (this instanceof SVG.Nested) { + var rect = this.rect(1, 1); + var m = rect.node.getScreenCTM(); + rect.remove(); + return new SVG.Matrix(m); + } + + return new SVG.Matrix(this.node.getScreenCTM()); + } + } + }); + SVG.Point = SVG.invent({ + // Initialize + create: function create(x, y) { + var source, + base = { + x: 0, + y: 0 // ensure source as object + + }; + source = Array.isArray(x) ? { + x: x[0], + y: x[1] + } : _typeof(x) === 'object' ? { + x: x.x, + y: x.y + } : x != null ? { + x: x, + y: y != null ? y : x + } : base; // If y has no value, then x is used has its value + // merge source + + this.x = source.x; + this.y = source.y; + }, + // Add methods + extend: { + // Clone point + clone: function clone() { + return new SVG.Point(this); + }, + // Morph one point into another + morph: function morph(x, y) { + // store new destination + this.destination = new SVG.Point(x, y); + return this; + }, + // Get morphed point at a given position + at: function at(pos) { + // make sure a destination is defined + if (!this.destination) return this; // calculate morphed matrix at a given position + + var point = new SVG.Point({ + x: this.x + (this.destination.x - this.x) * pos, + y: this.y + (this.destination.y - this.y) * pos + }); + return point; + }, + // Convert to native SVGPoint + native: function native() { + // create new point + var point = SVG.parser.native.createSVGPoint(); // update with current values + + point.x = this.x; + point.y = this.y; + return point; + }, + // transform point with matrix + transform: function transform(matrix) { + return new SVG.Point(this.native().matrixTransform(matrix.native())); + } + } + }); + SVG.extend(SVG.Element, { + // Get point + point: function point(x, y) { + return new SVG.Point(x, y).transform(this.screenCTM().inverse()); + } + }); + SVG.extend(SVG.Element, { + // Set svg element attribute + attr: function attr(a, v, n) { + // act as full getter + if (a == null) { + // get an object of attributes + a = {}; + v = this.node.attributes; + + for (n = v.length - 1; n >= 0; n--) { + a[v[n].nodeName] = SVG.regex.isNumber.test(v[n].nodeValue) ? parseFloat(v[n].nodeValue) : v[n].nodeValue; + } + + return a; + } else if (_typeof(a) === 'object') { + // apply every attribute individually if an object is passed + for (v in a) { + this.attr(v, a[v]); + } + } else if (v === null) { + // remove value + this.node.removeAttribute(a); + } else if (v == null) { + // act as a getter if the first and only argument is not an object + v = this.node.getAttribute(a); + return v == null ? SVG.defaults.attrs[a] : SVG.regex.isNumber.test(v) ? parseFloat(v) : v; + } else { + // BUG FIX: some browsers will render a stroke if a color is given even though stroke width is 0 + if (a == 'stroke-width') { + this.attr('stroke', parseFloat(v) > 0 ? this._stroke : null); + } else if (a == 'stroke') { + this._stroke = v; + } // convert image fill and stroke to patterns + + + if (a == 'fill' || a == 'stroke') { + if (SVG.regex.isImage.test(v)) { + v = this.doc().defs().image(v, 0, 0); + } + + if (v instanceof SVG.Image) { + v = this.doc().defs().pattern(0, 0, function () { + this.add(v); + }); + } + } // ensure correct numeric values (also accepts NaN and Infinity) + + + if (typeof v === 'number') { + v = new SVG.Number(v); + } // ensure full hex color + else if (SVG.Color.isColor(v)) { + v = new SVG.Color(v); + } // parse array values + else if (Array.isArray(v)) { + v = new SVG.Array(v); + } // if the passed attribute is leading... + + + if (a == 'leading') { + // ... call the leading method instead + if (this.leading) { + this.leading(v); + } + } else { + // set given attribute on node + typeof n === 'string' ? this.node.setAttributeNS(n, a, v.toString()) : this.node.setAttribute(a, v.toString()); + } // rebuild if required + + + if (this.rebuild && (a == 'font-size' || a == 'x')) { + this.rebuild(a, v); + } + } + + return this; + } + }); + SVG.extend(SVG.Element, { + // Add transformations + transform: function transform(o, relative) { + // get target in case of the fx module, otherwise reference this + var target = this, + matrix, + bbox; // act as a getter + + if (_typeof(o) !== 'object') { + // get current matrix + matrix = new SVG.Matrix(target).extract(); + return typeof o === 'string' ? matrix[o] : matrix; + } // get current matrix + + + matrix = new SVG.Matrix(target); // ensure relative flag + + relative = !!relative || !!o.relative; // act on matrix + + if (o.a != null) { + matrix = relative // relative + ? matrix.multiply(new SVG.Matrix(o)) // absolute + : new SVG.Matrix(o); // act on rotation + } else if (o.rotation != null) { + // ensure centre point + ensureCentre(o, target); // apply transformation + + matrix = relative // relative + ? matrix.rotate(o.rotation, o.cx, o.cy) // absolute + : matrix.rotate(o.rotation - matrix.extract().rotation, o.cx, o.cy); // act on scale + } else if (o.scale != null || o.scaleX != null || o.scaleY != null) { + // ensure centre point + ensureCentre(o, target); // ensure scale values on both axes + + o.scaleX = o.scale != null ? o.scale : o.scaleX != null ? o.scaleX : 1; + o.scaleY = o.scale != null ? o.scale : o.scaleY != null ? o.scaleY : 1; + + if (!relative) { + // absolute; multiply inversed values + var e = matrix.extract(); + o.scaleX = o.scaleX * 1 / e.scaleX; + o.scaleY = o.scaleY * 1 / e.scaleY; + } + + matrix = matrix.scale(o.scaleX, o.scaleY, o.cx, o.cy); // act on skew + } else if (o.skew != null || o.skewX != null || o.skewY != null) { + // ensure centre point + ensureCentre(o, target); // ensure skew values on both axes + + o.skewX = o.skew != null ? o.skew : o.skewX != null ? o.skewX : 0; + o.skewY = o.skew != null ? o.skew : o.skewY != null ? o.skewY : 0; + + if (!relative) { + // absolute; reset skew values + var e = matrix.extract(); + matrix = matrix.multiply(new SVG.Matrix().skew(e.skewX, e.skewY, o.cx, o.cy).inverse()); + } + + matrix = matrix.skew(o.skewX, o.skewY, o.cx, o.cy); // act on flip + } else if (o.flip) { + if (o.flip == 'x' || o.flip == 'y') { + o.offset = o.offset == null ? target.bbox()['c' + o.flip] : o.offset; + } else { + if (o.offset == null) { + bbox = target.bbox(); + o.flip = bbox.cx; + o.offset = bbox.cy; + } else { + o.flip = o.offset; + } + } + + matrix = new SVG.Matrix().flip(o.flip, o.offset); // act on translate + } else if (o.x != null || o.y != null) { + if (relative) { + // relative + matrix = matrix.translate(o.x, o.y); + } else { + // absolute + if (o.x != null) matrix.e = o.x; + if (o.y != null) matrix.f = o.y; + } + } + + return this.attr('transform', matrix); + } + }); + SVG.extend(SVG.FX, { + transform: function transform(o, relative) { + // get target in case of the fx module, otherwise reference this + var target = this.target(), + matrix, + bbox; // act as a getter + + if (_typeof(o) !== 'object') { + // get current matrix + matrix = new SVG.Matrix(target).extract(); + return typeof o === 'string' ? matrix[o] : matrix; + } // ensure relative flag + + + relative = !!relative || !!o.relative; // act on matrix + + if (o.a != null) { + matrix = new SVG.Matrix(o); // act on rotation + } else if (o.rotation != null) { + // ensure centre point + ensureCentre(o, target); // apply transformation + + matrix = new SVG.Rotate(o.rotation, o.cx, o.cy); // act on scale + } else if (o.scale != null || o.scaleX != null || o.scaleY != null) { + // ensure centre point + ensureCentre(o, target); // ensure scale values on both axes + + o.scaleX = o.scale != null ? o.scale : o.scaleX != null ? o.scaleX : 1; + o.scaleY = o.scale != null ? o.scale : o.scaleY != null ? o.scaleY : 1; + matrix = new SVG.Scale(o.scaleX, o.scaleY, o.cx, o.cy); // act on skew + } else if (o.skewX != null || o.skewY != null) { + // ensure centre point + ensureCentre(o, target); // ensure skew values on both axes + + o.skewX = o.skewX != null ? o.skewX : 0; + o.skewY = o.skewY != null ? o.skewY : 0; + matrix = new SVG.Skew(o.skewX, o.skewY, o.cx, o.cy); // act on flip + } else if (o.flip) { + if (o.flip == 'x' || o.flip == 'y') { + o.offset = o.offset == null ? target.bbox()['c' + o.flip] : o.offset; + } else { + if (o.offset == null) { + bbox = target.bbox(); + o.flip = bbox.cx; + o.offset = bbox.cy; + } else { + o.flip = o.offset; + } + } + + matrix = new SVG.Matrix().flip(o.flip, o.offset); // act on translate + } else if (o.x != null || o.y != null) { + matrix = new SVG.Translate(o.x, o.y); + } + + if (!matrix) return this; + matrix.relative = relative; + this.last().transforms.push(matrix); + return this._callStart(); + } + }); + SVG.extend(SVG.Element, { + // Reset all transformations + untransform: function untransform() { + return this.attr('transform', null); + }, + // merge the whole transformation chain into one matrix and returns it + matrixify: function matrixify() { + var matrix = (this.attr('transform') || ''). // split transformations + split(SVG.regex.transforms).slice(0, -1).map(function (str) { + // generate key => value pairs + var kv = str.trim().split('('); + return [kv[0], kv[1].split(SVG.regex.delimiter).map(function (str) { + return parseFloat(str); + })]; + }) // merge every transformation into one matrix + .reduce(function (matrix, transform) { + if (transform[0] == 'matrix') return matrix.multiply(arrayToMatrix(transform[1])); + return matrix[transform[0]].apply(matrix, transform[1]); + }, new SVG.Matrix()); + return matrix; + }, + // add an element to another parent without changing the visual representation on the screen + toParent: function toParent(parent) { + if (this == parent) return this; + var ctm = this.screenCTM(); + var pCtm = parent.screenCTM().inverse(); + this.addTo(parent).untransform().transform(pCtm.multiply(ctm)); + return this; + }, + // same as above with parent equals root-svg + toDoc: function toDoc() { + return this.toParent(this.doc()); + } + }); + SVG.Transformation = SVG.invent({ + create: function create(source, inversed) { + if (arguments.length > 1 && typeof inversed !== 'boolean') { + return this.constructor.call(this, [].slice.call(arguments)); + } + + if (Array.isArray(source)) { + for (var i = 0, len = this.arguments.length; i < len; ++i) { + this[this.arguments[i]] = source[i]; + } + } else if (_typeof(source) === 'object') { + for (var i = 0, len = this.arguments.length; i < len; ++i) { + this[this.arguments[i]] = source[this.arguments[i]]; + } + } + + this.inversed = false; + + if (inversed === true) { + this.inversed = true; + } + }, + extend: { + arguments: [], + method: '', + at: function at(pos) { + var params = []; + + for (var i = 0, len = this.arguments.length; i < len; ++i) { + params.push(this[this.arguments[i]]); + } + + var m = this._undo || new SVG.Matrix(); + m = new SVG.Matrix().morph(SVG.Matrix.prototype[this.method].apply(m, params)).at(pos); + return this.inversed ? m.inverse() : m; + }, + undo: function undo(o) { + for (var i = 0, len = this.arguments.length; i < len; ++i) { + o[this.arguments[i]] = typeof this[this.arguments[i]] === 'undefined' ? 0 : o[this.arguments[i]]; + } // The method SVG.Matrix.extract which was used before calling this + // method to obtain a value for the parameter o doesn't return a cx and + // a cy so we use the ones that were provided to this object at its creation + + + o.cx = this.cx; + o.cy = this.cy; + this._undo = new SVG[capitalize(this.method)](o, true).at(1); + return this; + } + } + }); + SVG.Translate = SVG.invent({ + parent: SVG.Matrix, + inherit: SVG.Transformation, + create: function create(source, inversed) { + this.constructor.apply(this, [].slice.call(arguments)); + }, + extend: { + arguments: ['transformedX', 'transformedY'], + method: 'translate' + } + }); + SVG.Rotate = SVG.invent({ + parent: SVG.Matrix, + inherit: SVG.Transformation, + create: function create(source, inversed) { + this.constructor.apply(this, [].slice.call(arguments)); + }, + extend: { + arguments: ['rotation', 'cx', 'cy'], + method: 'rotate', + at: function at(pos) { + var m = new SVG.Matrix().rotate(new SVG.Number().morph(this.rotation - (this._undo ? this._undo.rotation : 0)).at(pos), this.cx, this.cy); + return this.inversed ? m.inverse() : m; + }, + undo: function undo(o) { + this._undo = o; + return this; + } + } + }); + SVG.Scale = SVG.invent({ + parent: SVG.Matrix, + inherit: SVG.Transformation, + create: function create(source, inversed) { + this.constructor.apply(this, [].slice.call(arguments)); + }, + extend: { + arguments: ['scaleX', 'scaleY', 'cx', 'cy'], + method: 'scale' + } + }); + SVG.Skew = SVG.invent({ + parent: SVG.Matrix, + inherit: SVG.Transformation, + create: function create(source, inversed) { + this.constructor.apply(this, [].slice.call(arguments)); + }, + extend: { + arguments: ['skewX', 'skewY', 'cx', 'cy'], + method: 'skew' + } + }); + SVG.extend(SVG.Element, { + // Dynamic style generator + style: function style(s, v) { + if (arguments.length == 0) { + // get full style + return this.node.style.cssText || ''; + } else if (arguments.length < 2) { + // apply every style individually if an object is passed + if (_typeof(s) === 'object') { + for (v in s) { + this.style(v, s[v]); + } + } else if (SVG.regex.isCss.test(s)) { + // parse css string + s = s.split(/\s*;\s*/) // filter out suffix ; and stuff like ;; + .filter(function (e) { + return !!e; + }).map(function (e) { + return e.split(/\s*:\s*/); + }); // apply every definition individually + + while (v = s.pop()) { + this.style(v[0], v[1]); + } + } else { + // act as a getter if the first and only argument is not an object + return this.node.style[camelCase(s)]; + } + } else { + this.node.style[camelCase(s)] = v === null || SVG.regex.isBlank.test(v) ? '' : v; + } + + return this; + } + }); + SVG.Parent = SVG.invent({ + // Initialize node + create: function create(element) { + this.constructor.call(this, element); + }, + // Inherit from + inherit: SVG.Element, + // Add class methods + extend: { + // Returns all child elements + children: function children() { + return SVG.utils.map(SVG.utils.filterSVGElements(this.node.childNodes), function (node) { + return SVG.adopt(node); + }); + }, + // Add given element at a position + add: function add(element, i) { + if (i == null) { + this.node.appendChild(element.node); + } else if (element.node != this.node.childNodes[i]) { + this.node.insertBefore(element.node, this.node.childNodes[i]); + } + + return this; + }, + // Basically does the same as `add()` but returns the added element instead + put: function put(element, i) { + this.add(element, i); + return element; + }, + // Checks if the given element is a child + has: function has(element) { + return this.index(element) >= 0; + }, + // Gets index of given element + index: function index(element) { + return [].slice.call(this.node.childNodes).indexOf(element.node); + }, + // Get a element at the given index + get: function get(i) { + return SVG.adopt(this.node.childNodes[i]); + }, + // Get first child + first: function first() { + return this.get(0); + }, + // Get the last child + last: function last() { + return this.get(this.node.childNodes.length - 1); + }, + // Iterates over all children and invokes a given block + each: function each(block, deep) { + var i, + il, + children = this.children(); + + for (i = 0, il = children.length; i < il; i++) { + if (children[i] instanceof SVG.Element) { + block.apply(children[i], [i, children]); + } + + if (deep && children[i] instanceof SVG.Container) { + children[i].each(block, deep); + } + } + + return this; + }, + // Remove a given child + removeElement: function removeElement(element) { + this.node.removeChild(element.node); + return this; + }, + // Remove all elements in this container + clear: function clear() { + // remove children + while (this.node.hasChildNodes()) { + this.node.removeChild(this.node.lastChild); + } // remove defs reference + + + delete this._defs; + return this; + }, + // Get defs + defs: function defs() { + return this.doc().defs(); + } + } + }); + SVG.extend(SVG.Parent, { + ungroup: function ungroup(parent, depth) { + if (depth === 0 || this instanceof SVG.Defs || this.node == SVG.parser.draw) return this; + parent = parent || (this instanceof SVG.Doc ? this : this.parent(SVG.Parent)); + depth = depth || Infinity; + this.each(function () { + if (this instanceof SVG.Defs) return this; + if (this instanceof SVG.Parent) return this.ungroup(parent, depth - 1); + return this.toParent(parent); + }); + this.node.firstChild || this.remove(); + return this; + }, + flatten: function flatten(parent, depth) { + return this.ungroup(parent, depth); + } + }); + SVG.Container = SVG.invent({ + // Initialize node + create: function create(element) { + this.constructor.call(this, element); + }, + // Inherit from + inherit: SVG.Parent + }); + SVG.ViewBox = SVG.invent({ + create: function create(source) { + var base = [0, 0, 0, 0]; + var x, + y, + width, + height, + box, + view, + we, + he, + wm = 1, + // width multiplier + hm = 1, + // height multiplier + reg = /[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/gi; + + if (source instanceof SVG.Element) { + we = source; + he = source; + view = (source.attr('viewBox') || '').match(reg); + box = source.bbox; // get dimensions of current node + + width = new SVG.Number(source.width()); + height = new SVG.Number(source.height()); // find nearest non-percentual dimensions + + while (width.unit == '%') { + wm *= width.value; + width = new SVG.Number(we instanceof SVG.Doc ? we.parent().offsetWidth : we.parent().width()); + we = we.parent(); + } + + while (height.unit == '%') { + hm *= height.value; + height = new SVG.Number(he instanceof SVG.Doc ? he.parent().offsetHeight : he.parent().height()); + he = he.parent(); + } // ensure defaults + + + this.x = 0; + this.y = 0; + this.width = width * wm; + this.height = height * hm; + this.zoom = 1; + + if (view) { + // get width and height from viewbox + x = parseFloat(view[0]); + y = parseFloat(view[1]); + width = parseFloat(view[2]); + height = parseFloat(view[3]); // calculate zoom accoring to viewbox + + this.zoom = this.width / this.height > width / height ? this.height / height : this.width / width; // calculate real pixel dimensions on parent SVG.Doc element + + this.x = x; + this.y = y; + this.width = width; + this.height = height; + } + } else { + // ensure source as object + source = typeof source === 'string' ? source.match(reg).map(function (el) { + return parseFloat(el); + }) : Array.isArray(source) ? source : _typeof(source) === 'object' ? [source.x, source.y, source.width, source.height] : arguments.length == 4 ? [].slice.call(arguments) : base; + this.x = source[0]; + this.y = source[1]; + this.width = source[2]; + this.height = source[3]; + } + }, + extend: { + toString: function toString() { + return this.x + ' ' + this.y + ' ' + this.width + ' ' + this.height; + }, + morph: function morph(x, y, width, height) { + this.destination = new SVG.ViewBox(x, y, width, height); + return this; + }, + at: function at(pos) { + if (!this.destination) return this; + return new SVG.ViewBox([this.x + (this.destination.x - this.x) * pos, this.y + (this.destination.y - this.y) * pos, this.width + (this.destination.width - this.width) * pos, this.height + (this.destination.height - this.height) * pos]); + } + }, + // Define parent + parent: SVG.Container, + // Add parent method + construct: { + // get/set viewbox + viewbox: function viewbox(x, y, width, height) { + if (arguments.length == 0) // act as a getter if there are no arguments + { + return new SVG.ViewBox(this); + } // otherwise act as a setter + + + return this.attr('viewBox', new SVG.ViewBox(x, y, width, height)); + } + } + }) // Add events to elements + ; + ['click', 'dblclick', 'mousedown', 'mouseup', 'mouseover', 'mouseout', 'mousemove', // , 'mouseenter' -> not supported by IE + // , 'mouseleave' -> not supported by IE + 'touchstart', 'touchmove', 'touchleave', 'touchend', 'touchcancel'].forEach(function (event) { + // add event to SVG.Element + SVG.Element.prototype[event] = function (f) { + // bind event to element rather than element node + SVG.on(this.node, event, f); + return this; + }; + }); // Initialize listeners stack + + SVG.listeners = []; + SVG.handlerMap = []; + SVG.listenerId = 0; // Add event binder in the SVG namespace + + SVG.on = function (node, event, listener, binding, options) { + // create listener, get object-index + var l = listener.bind(binding || node.instance || node), + index = (SVG.handlerMap.indexOf(node) + 1 || SVG.handlerMap.push(node)) - 1, + ev = event.split('.')[0], + ns = event.split('.')[1] || '*'; // ensure valid object + + SVG.listeners[index] = SVG.listeners[index] || {}; + SVG.listeners[index][ev] = SVG.listeners[index][ev] || {}; + SVG.listeners[index][ev][ns] = SVG.listeners[index][ev][ns] || {}; + + if (!listener._svgjsListenerId) { + listener._svgjsListenerId = ++SVG.listenerId; + } // reference listener + + + SVG.listeners[index][ev][ns][listener._svgjsListenerId] = l; // add listener + + node.addEventListener(ev, l, options || false); + }; // Add event unbinder in the SVG namespace + + + SVG.off = function (node, event, listener) { + var index = SVG.handlerMap.indexOf(node), + ev = event && event.split('.')[0], + ns = event && event.split('.')[1], + namespace = ''; + if (index == -1) return; + + if (listener) { + if (typeof listener === 'function') listener = listener._svgjsListenerId; + if (!listener) return; // remove listener reference + + if (SVG.listeners[index][ev] && SVG.listeners[index][ev][ns || '*']) { + // remove listener + node.removeEventListener(ev, SVG.listeners[index][ev][ns || '*'][listener], false); + delete SVG.listeners[index][ev][ns || '*'][listener]; + } + } else if (ns && ev) { + // remove all listeners for a namespaced event + if (SVG.listeners[index][ev] && SVG.listeners[index][ev][ns]) { + for (listener in SVG.listeners[index][ev][ns]) { + SVG.off(node, [ev, ns].join('.'), listener); + } + + delete SVG.listeners[index][ev][ns]; + } + } else if (ns) { + // remove all listeners for a specific namespace + for (event in SVG.listeners[index]) { + for (namespace in SVG.listeners[index][event]) { + if (ns === namespace) { + SVG.off(node, [event, ns].join('.')); + } + } + } + } else if (ev) { + // remove all listeners for the event + if (SVG.listeners[index][ev]) { + for (namespace in SVG.listeners[index][ev]) { + SVG.off(node, [ev, namespace].join('.')); + } + + delete SVG.listeners[index][ev]; + } + } else { + // remove all listeners on a given node + for (event in SVG.listeners[index]) { + SVG.off(node, event); + } + + delete SVG.listeners[index]; + delete SVG.handlerMap[index]; + } + }; // + + + SVG.extend(SVG.Element, { + // Bind given event to listener + on: function on(event, listener, binding, options) { + SVG.on(this.node, event, listener, binding, options); + return this; + }, + // Unbind event from listener + off: function off(event, listener) { + SVG.off(this.node, event, listener); + return this; + }, + // Fire given event + fire: function fire(event, data) { + // Dispatch event + if (event instanceof window.Event) { + this.node.dispatchEvent(event); + } else { + this.node.dispatchEvent(event = new SVG.CustomEvent(event, { + detail: data, + cancelable: true + })); + } + + this._event = event; + return this; + }, + event: function event() { + return this._event; + } + }); + SVG.Defs = SVG.invent({ + // Initialize node + create: 'defs', + // Inherit from + inherit: SVG.Container + }); + SVG.G = SVG.invent({ + // Initialize node + create: 'g', + // Inherit from + inherit: SVG.Container, + // Add class methods + extend: { + // Move over x-axis + x: function x(_x3) { + return _x3 == null ? this.transform('x') : this.transform({ + x: _x3 - this.x() + }, true); + }, + // Move over y-axis + y: function y(_y3) { + return _y3 == null ? this.transform('y') : this.transform({ + y: _y3 - this.y() + }, true); + }, + // Move by center over x-axis + cx: function cx(x) { + return x == null ? this.gbox().cx : this.x(x - this.gbox().width / 2); + }, + // Move by center over y-axis + cy: function cy(y) { + return y == null ? this.gbox().cy : this.y(y - this.gbox().height / 2); + }, + gbox: function gbox() { + var bbox = this.bbox(), + trans = this.transform(); + bbox.x += trans.x; + bbox.x2 += trans.x; + bbox.cx += trans.x; + bbox.y += trans.y; + bbox.y2 += trans.y; + bbox.cy += trans.y; + return bbox; + } + }, + // Add parent method + construct: { + // Create a group element + group: function group() { + return this.put(new SVG.G()); + } + } + }); + SVG.Doc = SVG.invent({ + // Initialize node + create: function create(element) { + if (element) { + // ensure the presence of a dom element + element = typeof element === 'string' ? document.getElementById(element) : element; // If the target is an svg element, use that element as the main wrapper. + // This allows svg.js to work with svg documents as well. + + if (element.nodeName == 'svg') { + this.constructor.call(this, element); + } else { + this.constructor.call(this, SVG.create('svg')); + element.appendChild(this.node); + this.size('100%', '100%'); + } // set svg element attributes and ensure defs node + + + this.namespace().defs(); + } + }, + // Inherit from + inherit: SVG.Container, + // Add class methods + extend: { + // Add namespaces + namespace: function namespace() { + return this.attr({ + xmlns: SVG.ns, + version: '1.1' + }).attr('xmlns:xlink', SVG.xlink, SVG.xmlns).attr('xmlns:svgjs', SVG.svgjs, SVG.xmlns); + }, + // Creates and returns defs element + defs: function defs() { + if (!this._defs) { + var defs; // Find or create a defs element in this instance + + if (defs = this.node.getElementsByTagName('defs')[0]) { + this._defs = SVG.adopt(defs); + } else { + this._defs = new SVG.Defs(); + } // Make sure the defs node is at the end of the stack + + + this.node.appendChild(this._defs.node); + } + + return this._defs; + }, + // custom parent method + parent: function parent() { + if (!this.node.parentNode || this.node.parentNode.nodeName == '#document') return null; + return this.node.parentNode; + }, + // Fix for possible sub-pixel offset. See: + // https://bugzilla.mozilla.org/show_bug.cgi?id=608812 + spof: function spof() { + var pos = this.node.getScreenCTM(); + + if (pos) { + this.style('left', -pos.e % 1 + 'px').style('top', -pos.f % 1 + 'px'); + } + + return this; + }, + // Removes the doc from the DOM + remove: function remove() { + if (this.parent()) { + this.parent().removeChild(this.node); + } + + return this; + }, + clear: function clear() { + // remove children + while (this.node.hasChildNodes()) { + this.node.removeChild(this.node.lastChild); + } // remove defs reference + + + delete this._defs; // add back parser + + if (SVG.parser.draw && !SVG.parser.draw.parentNode) { + this.node.appendChild(SVG.parser.draw); + } + + return this; + }, + clone: function clone(parent) { + // write dom data to the dom so the clone can pickup the data + this.writeDataToDom(); // get reference to node + + var node = this.node; // clone element and assign new id + + var clone = assignNewId(node.cloneNode(true)); // insert the clone in the given parent or after myself + + if (parent) { + (parent.node || parent).appendChild(clone.node); + } else { + node.parentNode.insertBefore(clone.node, node.nextSibling); + } + + return clone; + } + } + }); // ### This module adds backward / forward functionality to elements. + // + + SVG.extend(SVG.Element, { + // Get all siblings, including myself + siblings: function siblings() { + return this.parent().children(); + }, + // Get the curent position siblings + position: function position() { + return this.parent().index(this); + }, + // Get the next element (will return null if there is none) + next: function next() { + return this.siblings()[this.position() + 1]; + }, + // Get the next element (will return null if there is none) + previous: function previous() { + return this.siblings()[this.position() - 1]; + }, + // Send given element one step forward + forward: function forward() { + var i = this.position() + 1, + p = this.parent(); // move node one step forward + + p.removeElement(this).add(this, i); // make sure defs node is always at the top + + if (p instanceof SVG.Doc) { + p.node.appendChild(p.defs().node); + } + + return this; + }, + // Send given element one step backward + backward: function backward() { + var i = this.position(); + + if (i > 0) { + this.parent().removeElement(this).add(this, i - 1); + } + + return this; + }, + // Send given element all the way to the front + front: function front() { + var p = this.parent(); // Move node forward + + p.node.appendChild(this.node); // Make sure defs node is always at the top + + if (p instanceof SVG.Doc) { + p.node.appendChild(p.defs().node); + } + + return this; + }, + // Send given element all the way to the back + back: function back() { + if (this.position() > 0) { + this.parent().removeElement(this).add(this, 0); + } + + return this; + }, + // Inserts a given element before the targeted element + before: function before(element) { + element.remove(); + var i = this.position(); + this.parent().add(element, i); + return this; + }, + // Insters a given element after the targeted element + after: function after(element) { + element.remove(); + var i = this.position(); + this.parent().add(element, i + 1); + return this; + } + }); + SVG.Mask = SVG.invent({ + // Initialize node + create: function create() { + this.constructor.call(this, SVG.create('mask')); // keep references to masked elements + + this.targets = []; + }, + // Inherit from + inherit: SVG.Container, + // Add class methods + extend: { + // Unmask all masked elements and remove itself + remove: function remove() { + // unmask all targets + for (var i = this.targets.length - 1; i >= 0; i--) { + if (this.targets[i]) { + this.targets[i].unmask(); + } + } + + this.targets = []; // remove mask from parent + + SVG.Element.prototype.remove.call(this); + return this; + } + }, + // Add parent method + construct: { + // Create masking element + mask: function mask() { + return this.defs().put(new SVG.Mask()); + } + } + }); + SVG.extend(SVG.Element, { + // Distribute mask to svg element + maskWith: function maskWith(element) { + // use given mask or create a new one + this.masker = element instanceof SVG.Mask ? element : this.parent().mask().add(element); // store reverence on self in mask + + this.masker.targets.push(this); // apply mask + + return this.attr('mask', 'url("#' + this.masker.attr('id') + '")'); + }, + // Unmask element + unmask: function unmask() { + delete this.masker; + return this.attr('mask', null); + } + }); + SVG.ClipPath = SVG.invent({ + // Initialize node + create: function create() { + this.constructor.call(this, SVG.create('clipPath')); // keep references to clipped elements + + this.targets = []; + }, + // Inherit from + inherit: SVG.Container, + // Add class methods + extend: { + // Unclip all clipped elements and remove itself + remove: function remove() { + // unclip all targets + for (var i = this.targets.length - 1; i >= 0; i--) { + if (this.targets[i]) { + this.targets[i].unclip(); + } + } + + this.targets = []; // remove clipPath from parent + + this.parent().removeElement(this); + return this; + } + }, + // Add parent method + construct: { + // Create clipping element + clip: function clip() { + return this.defs().put(new SVG.ClipPath()); + } + } + }); // + + SVG.extend(SVG.Element, { + // Distribute clipPath to svg element + clipWith: function clipWith(element) { + // use given clip or create a new one + this.clipper = element instanceof SVG.ClipPath ? element : this.parent().clip().add(element); // store reverence on self in mask + + this.clipper.targets.push(this); // apply mask + + return this.attr('clip-path', 'url("#' + this.clipper.attr('id') + '")'); + }, + // Unclip element + unclip: function unclip() { + delete this.clipper; + return this.attr('clip-path', null); + } + }); + SVG.Gradient = SVG.invent({ + // Initialize node + create: function create(type) { + this.constructor.call(this, SVG.create(type + 'Gradient')); // store type + + this.type = type; + }, + // Inherit from + inherit: SVG.Container, + // Add class methods + extend: { + // Add a color stop + at: function at(offset, color, opacity) { + return this.put(new SVG.Stop()).update(offset, color, opacity); + }, + // Update gradient + update: function update(block) { + // remove all stops + this.clear(); // invoke passed block + + if (typeof block === 'function') { + block.call(this, this); + } + + return this; + }, + // Return the fill id + fill: function fill() { + return 'url(#' + this.id() + ')'; + }, + // Alias string convertion to fill + toString: function toString() { + return this.fill(); + }, + // custom attr to handle transform + attr: function attr(a, b, c) { + if (a == 'transform') a = 'gradientTransform'; + return SVG.Container.prototype.attr.call(this, a, b, c); + } + }, + // Add parent method + construct: { + // Create gradient element in defs + gradient: function gradient(type, block) { + return this.defs().gradient(type, block); + } + } + }); // Add animatable methods to both gradient and fx module + + SVG.extend(SVG.Gradient, SVG.FX, { + // From position + from: function from(x, y) { + return (this._target || this).type == 'radial' ? this.attr({ + fx: new SVG.Number(x), + fy: new SVG.Number(y) + }) : this.attr({ + x1: new SVG.Number(x), + y1: new SVG.Number(y) + }); + }, + // To position + to: function to(x, y) { + return (this._target || this).type == 'radial' ? this.attr({ + cx: new SVG.Number(x), + cy: new SVG.Number(y) + }) : this.attr({ + x2: new SVG.Number(x), + y2: new SVG.Number(y) + }); + } + }); // Base gradient generation + + SVG.extend(SVG.Defs, { + // define gradient + gradient: function gradient(type, block) { + return this.put(new SVG.Gradient(type)).update(block); + } + }); + SVG.Stop = SVG.invent({ + // Initialize node + create: 'stop', + // Inherit from + inherit: SVG.Element, + // Add class methods + extend: { + // add color stops + update: function update(o) { + if (typeof o === 'number' || o instanceof SVG.Number) { + o = { + offset: arguments[0], + color: arguments[1], + opacity: arguments[2] + }; + } // set attributes + + + if (o.opacity != null) this.attr('stop-opacity', o.opacity); + if (o.color != null) this.attr('stop-color', o.color); + if (o.offset != null) this.attr('offset', new SVG.Number(o.offset)); + return this; + } + } + }); + SVG.Pattern = SVG.invent({ + // Initialize node + create: 'pattern', + // Inherit from + inherit: SVG.Container, + // Add class methods + extend: { + // Return the fill id + fill: function fill() { + return 'url(#' + this.id() + ')'; + }, + // Update pattern by rebuilding + update: function update(block) { + // remove content + this.clear(); // invoke passed block + + if (typeof block === 'function') { + block.call(this, this); + } + + return this; + }, + // Alias string convertion to fill + toString: function toString() { + return this.fill(); + }, + // custom attr to handle transform + attr: function attr(a, b, c) { + if (a == 'transform') a = 'patternTransform'; + return SVG.Container.prototype.attr.call(this, a, b, c); + } + }, + // Add parent method + construct: { + // Create pattern element in defs + pattern: function pattern(width, height, block) { + return this.defs().pattern(width, height, block); + } + } + }); + SVG.extend(SVG.Defs, { + // Define gradient + pattern: function pattern(width, height, block) { + return this.put(new SVG.Pattern()).update(block).attr({ + x: 0, + y: 0, + width: width, + height: height, + patternUnits: 'userSpaceOnUse' + }); + } + }); + SVG.Shape = SVG.invent({ + // Initialize node + create: function create(element) { + this.constructor.call(this, element); + }, + // Inherit from + inherit: SVG.Element + }); + SVG.Bare = SVG.invent({ + // Initialize + create: function create(element, inherit) { + // construct element + this.constructor.call(this, SVG.create(element)); // inherit custom methods + + if (inherit) { + for (var method in inherit.prototype) { + if (typeof inherit.prototype[method] === 'function') { + this[method] = inherit.prototype[method]; + } + } + } + }, + // Inherit from + inherit: SVG.Element, + // Add methods + extend: { + // Insert some plain text + words: function words(text) { + // remove contents + while (this.node.hasChildNodes()) { + this.node.removeChild(this.node.lastChild); + } // create text node + + + this.node.appendChild(document.createTextNode(text)); + return this; + } + } + }); + SVG.extend(SVG.Parent, { + // Create an element that is not described by SVG.js + element: function element(_element, inherit) { + return this.put(new SVG.Bare(_element, inherit)); + } + }); + SVG.Symbol = SVG.invent({ + // Initialize node + create: 'symbol', + // Inherit from + inherit: SVG.Container, + construct: { + // create symbol + symbol: function symbol() { + return this.put(new SVG.Symbol()); + } + } + }); + SVG.Use = SVG.invent({ + // Initialize node + create: 'use', + // Inherit from + inherit: SVG.Shape, + // Add class methods + extend: { + // Use element as a reference + element: function element(_element2, file) { + // Set lined element + return this.attr('href', (file || '') + '#' + _element2, SVG.xlink); + } + }, + // Add parent method + construct: { + // Create a use element + use: function use(element, file) { + return this.put(new SVG.Use()).element(element, file); + } + } + }); + SVG.Rect = SVG.invent({ + // Initialize node + create: 'rect', + // Inherit from + inherit: SVG.Shape, + // Add parent method + construct: { + // Create a rect element + rect: function rect(width, height) { + return this.put(new SVG.Rect()).size(width, height); + } + } + }); + SVG.Circle = SVG.invent({ + // Initialize node + create: 'circle', + // Inherit from + inherit: SVG.Shape, + // Add parent method + construct: { + // Create circle element, based on ellipse + circle: function circle(size) { + return this.put(new SVG.Circle()).rx(new SVG.Number(size).divide(2)).move(0, 0); + } + } + }); + SVG.extend(SVG.Circle, SVG.FX, { + // Radius x value + rx: function rx(_rx) { + return this.attr('r', _rx); + }, + // Alias radius x value + ry: function ry(_ry) { + return this.rx(_ry); + } + }); + SVG.Ellipse = SVG.invent({ + // Initialize node + create: 'ellipse', + // Inherit from + inherit: SVG.Shape, + // Add parent method + construct: { + // Create an ellipse + ellipse: function ellipse(width, height) { + return this.put(new SVG.Ellipse()).size(width, height).move(0, 0); + } + } + }); + SVG.extend(SVG.Ellipse, SVG.Rect, SVG.FX, { + // Radius x value + rx: function rx(_rx2) { + return this.attr('rx', _rx2); + }, + // Radius y value + ry: function ry(_ry2) { + return this.attr('ry', _ry2); + } + }); // Add common method + + SVG.extend(SVG.Circle, SVG.Ellipse, { + // Move over x-axis + x: function x(_x4) { + return _x4 == null ? this.cx() - this.rx() : this.cx(_x4 + this.rx()); + }, + // Move over y-axis + y: function y(_y4) { + return _y4 == null ? this.cy() - this.ry() : this.cy(_y4 + this.ry()); + }, + // Move by center over x-axis + cx: function cx(x) { + return x == null ? this.attr('cx') : this.attr('cx', x); + }, + // Move by center over y-axis + cy: function cy(y) { + return y == null ? this.attr('cy') : this.attr('cy', y); + }, + // Set width of element + width: function width(_width3) { + return _width3 == null ? this.rx() * 2 : this.rx(new SVG.Number(_width3).divide(2)); + }, + // Set height of element + height: function height(_height3) { + return _height3 == null ? this.ry() * 2 : this.ry(new SVG.Number(_height3).divide(2)); + }, + // Custom size function + size: function size(width, height) { + var p = proportionalSize(this, width, height); + return this.rx(new SVG.Number(p.width).divide(2)).ry(new SVG.Number(p.height).divide(2)); + } + }); + SVG.Line = SVG.invent({ + // Initialize node + create: 'line', + // Inherit from + inherit: SVG.Shape, + // Add class methods + extend: { + // Get array + array: function array() { + return new SVG.PointArray([[this.attr('x1'), this.attr('y1')], [this.attr('x2'), this.attr('y2')]]); + }, + // Overwrite native plot() method + plot: function plot(x1, y1, x2, y2) { + if (x1 == null) { + return this.array(); + } else if (typeof y1 !== 'undefined') { + x1 = { + x1: x1, + y1: y1, + x2: x2, + y2: y2 + }; + } else { + x1 = new SVG.PointArray(x1).toLine(); + } + + return this.attr(x1); + }, + // Move by left top corner + move: function move(x, y) { + return this.attr(this.array().move(x, y).toLine()); + }, + // Set element size to given width and height + size: function size(width, height) { + var p = proportionalSize(this, width, height); + return this.attr(this.array().size(p.width, p.height).toLine()); + } + }, + // Add parent method + construct: { + // Create a line element + line: function line(x1, y1, x2, y2) { + // make sure plot is called as a setter + // x1 is not necessarily a number, it can also be an array, a string and a SVG.PointArray + return SVG.Line.prototype.plot.apply(this.put(new SVG.Line()), x1 != null ? [x1, y1, x2, y2] : [0, 0, 0, 0]); + } + } + }); + SVG.Polyline = SVG.invent({ + // Initialize node + create: 'polyline', + // Inherit from + inherit: SVG.Shape, + // Add parent method + construct: { + // Create a wrapped polyline element + polyline: function polyline(p) { + // make sure plot is called as a setter + return this.put(new SVG.Polyline()).plot(p || new SVG.PointArray()); + } + } + }); + SVG.Polygon = SVG.invent({ + // Initialize node + create: 'polygon', + // Inherit from + inherit: SVG.Shape, + // Add parent method + construct: { + // Create a wrapped polygon element + polygon: function polygon(p) { + // make sure plot is called as a setter + return this.put(new SVG.Polygon()).plot(p || new SVG.PointArray()); + } + } + }); // Add polygon-specific functions + + SVG.extend(SVG.Polyline, SVG.Polygon, { + // Get array + array: function array() { + return this._array || (this._array = new SVG.PointArray(this.attr('points'))); + }, + // Plot new path + plot: function plot(p) { + return p == null ? this.array() : this.clear().attr('points', typeof p === 'string' ? p : this._array = new SVG.PointArray(p)); + }, + // Clear array cache + clear: function clear() { + delete this._array; + return this; + }, + // Move by left top corner + move: function move(x, y) { + return this.attr('points', this.array().move(x, y)); + }, + // Set element size to given width and height + size: function size(width, height) { + var p = proportionalSize(this, width, height); + return this.attr('points', this.array().size(p.width, p.height)); + } + }); // unify all point to point elements + + SVG.extend(SVG.Line, SVG.Polyline, SVG.Polygon, { + // Define morphable array + morphArray: SVG.PointArray, + // Move by left top corner over x-axis + x: function x(_x5) { + return _x5 == null ? this.bbox().x : this.move(_x5, this.bbox().y); + }, + // Move by left top corner over y-axis + y: function y(_y5) { + return _y5 == null ? this.bbox().y : this.move(this.bbox().x, _y5); + }, + // Set width of element + width: function width(_width4) { + var b = this.bbox(); + return _width4 == null ? b.width : this.size(_width4, b.height); + }, + // Set height of element + height: function height(_height4) { + var b = this.bbox(); + return _height4 == null ? b.height : this.size(b.width, _height4); + } + }); + SVG.Path = SVG.invent({ + // Initialize node + create: 'path', + // Inherit from + inherit: SVG.Shape, + // Add class methods + extend: { + // Define morphable array + morphArray: SVG.PathArray, + // Get array + array: function array() { + return this._array || (this._array = new SVG.PathArray(this.attr('d'))); + }, + // Plot new path + plot: function plot(d) { + return d == null ? this.array() : this.clear().attr('d', typeof d === 'string' ? d : this._array = new SVG.PathArray(d)); + }, + // Clear array cache + clear: function clear() { + delete this._array; + return this; + }, + // Move by left top corner + move: function move(x, y) { + return this.attr('d', this.array().move(x, y)); + }, + // Move by left top corner over x-axis + x: function x(_x6) { + return _x6 == null ? this.bbox().x : this.move(_x6, this.bbox().y); + }, + // Move by left top corner over y-axis + y: function y(_y6) { + return _y6 == null ? this.bbox().y : this.move(this.bbox().x, _y6); + }, + // Set element size to given width and height + size: function size(width, height) { + var p = proportionalSize(this, width, height); + return this.attr('d', this.array().size(p.width, p.height)); + }, + // Set width of element + width: function width(_width5) { + return _width5 == null ? this.bbox().width : this.size(_width5, this.bbox().height); + }, + // Set height of element + height: function height(_height5) { + return _height5 == null ? this.bbox().height : this.size(this.bbox().width, _height5); + } + }, + // Add parent method + construct: { + // Create a wrapped path element + path: function path(d) { + // make sure plot is called as a setter + return this.put(new SVG.Path()).plot(d || new SVG.PathArray()); + } + } + }); + SVG.Image = SVG.invent({ + // Initialize node + create: 'image', + // Inherit from + inherit: SVG.Shape, + // Add class methods + extend: { + // (re)load image + load: function load(url) { + if (!url) return this; + var self = this, + img = new window.Image(); // preload image + + SVG.on(img, 'load', function () { + SVG.off(img); + var p = self.parent(SVG.Pattern); + if (p === null) return; // ensure image size + + if (self.width() == 0 && self.height() == 0) { + self.size(img.width, img.height); + } // ensure pattern size if not set + + + if (p && p.width() == 0 && p.height() == 0) { + p.size(self.width(), self.height()); + } // callback + + + if (typeof self._loaded === 'function') { + self._loaded.call(self, { + width: img.width, + height: img.height, + ratio: img.width / img.height, + url: url + }); + } + }); + SVG.on(img, 'error', function (e) { + SVG.off(img); + + if (typeof self._error === 'function') { + self._error.call(self, e); + } + }); + return this.attr('href', img.src = this.src = url, SVG.xlink); + }, + // Add loaded callback + loaded: function loaded(_loaded) { + this._loaded = _loaded; + return this; + }, + error: function error(_error) { + this._error = _error; + return this; + } + }, + // Add parent method + construct: { + // create image element, load image and set its size + image: function image(source, width, height) { + return this.put(new SVG.Image()).load(source).size(width || 0, height || width || 0); + } + } + }); + SVG.Text = SVG.invent({ + // Initialize node + create: function create() { + this.constructor.call(this, SVG.create('text')); + this.dom.leading = new SVG.Number(1.3); // store leading value for rebuilding + + this._rebuild = true; // enable automatic updating of dy values + + this._build = false; // disable build mode for adding multiple lines + // set default font + + this.attr('font-family', SVG.defaults.attrs['font-family']); + }, + // Inherit from + inherit: SVG.Shape, + // Add class methods + extend: { + // Move over x-axis + x: function x(_x7) { + // act as getter + if (_x7 == null) { + return this.attr('x'); + } + + return this.attr('x', _x7); + }, + // Move over y-axis + y: function y(_y7) { + var oy = this.attr('y'), + o = typeof oy === 'number' ? oy - this.bbox().y : 0; // act as getter + + if (_y7 == null) { + return typeof oy === 'number' ? oy - o : oy; + } + + return this.attr('y', typeof _y7.valueOf() === 'number' ? _y7 + o : _y7); + }, + // Move center over x-axis + cx: function cx(x) { + return x == null ? this.bbox().cx : this.x(x - this.bbox().width / 2); + }, + // Move center over y-axis + cy: function cy(y) { + return y == null ? this.bbox().cy : this.y(y - this.bbox().height / 2); + }, + // Set the text content + text: function text(_text) { + // act as getter + if (typeof _text === 'undefined') { + var _text = ''; + var children = this.node.childNodes; + + for (var i = 0, len = children.length; i < len; ++i) { + // add newline if its not the first child and newLined is set to true + if (i != 0 && children[i].nodeType != 3 && SVG.adopt(children[i]).dom.newLined == true) { + _text += '\n'; + } // add content of this node + + + _text += children[i].textContent; + } + + return _text; + } // remove existing content + + + this.clear().build(true); + + if (typeof _text === 'function') { + // call block + _text.call(this, this); + } else { + // store text and make sure text is not blank + _text = _text.split('\n'); // build new lines + + for (var i = 0, il = _text.length; i < il; i++) { + this.tspan(_text[i]).newLine(); + } + } // disable build mode and rebuild lines + + + return this.build(false).rebuild(); + }, + // Set font size + size: function size(_size) { + return this.attr('font-size', _size).rebuild(); + }, + // Set / get leading + leading: function leading(value) { + // act as getter + if (value == null) { + return this.dom.leading; + } // act as setter + + + this.dom.leading = new SVG.Number(value); + return this.rebuild(); + }, + // Get all the first level lines + lines: function lines() { + var node = (this.textPath && this.textPath() || this).node; // filter tspans and map them to SVG.js instances + + var lines = SVG.utils.map(SVG.utils.filterSVGElements(node.childNodes), function (el) { + return SVG.adopt(el); + }); // return an instance of SVG.set + + return new SVG.Set(lines); + }, + // Rebuild appearance type + rebuild: function rebuild(_rebuild) { + // store new rebuild flag if given + if (typeof _rebuild === 'boolean') { + this._rebuild = _rebuild; + } // define position of all lines + + + if (this._rebuild) { + var self = this, + blankLineOffset = 0, + dy = this.dom.leading * new SVG.Number(this.attr('font-size')); + this.lines().each(function () { + if (this.dom.newLined) { + if (!self.textPath()) { + this.attr('x', self.attr('x')); + } + + if (this.text() == '\n') { + blankLineOffset += dy; + } else { + this.attr('dy', dy + blankLineOffset); + blankLineOffset = 0; + } + } + }); + this.fire('rebuild'); + } + + return this; + }, + // Enable / disable build mode + build: function build(_build) { + this._build = !!_build; + return this; + }, + // overwrite method from parent to set data properly + setData: function setData(o) { + this.dom = o; + this.dom.leading = new SVG.Number(o.leading || 1.3); + return this; + } + }, + // Add parent method + construct: { + // Create text element + text: function text(_text2) { + return this.put(new SVG.Text()).text(_text2); + }, + // Create plain text element + plain: function plain(text) { + return this.put(new SVG.Text()).plain(text); + } + } + }); + SVG.Tspan = SVG.invent({ + // Initialize node + create: 'tspan', + // Inherit from + inherit: SVG.Shape, + // Add class methods + extend: { + // Set text content + text: function text(_text3) { + if (_text3 == null) return this.node.textContent + (this.dom.newLined ? '\n' : ''); + typeof _text3 === 'function' ? _text3.call(this, this) : this.plain(_text3); + return this; + }, + // Shortcut dx + dx: function dx(_dx) { + return this.attr('dx', _dx); + }, + // Shortcut dy + dy: function dy(_dy) { + return this.attr('dy', _dy); + }, + // Create new line + newLine: function newLine() { + // fetch text parent + var t = this.parent(SVG.Text); // mark new line + + this.dom.newLined = true; // apply new hy¡n + + return this.dy(t.dom.leading * t.attr('font-size')).attr('x', t.x()); + } + } + }); + SVG.extend(SVG.Text, SVG.Tspan, { + // Create plain text node + plain: function plain(text) { + // clear if build mode is disabled + if (this._build === false) { + this.clear(); + } // create text node + + + this.node.appendChild(document.createTextNode(text)); + return this; + }, + // Create a tspan + tspan: function tspan(text) { + var node = (this.textPath && this.textPath() || this).node, + tspan = new SVG.Tspan(); // clear if build mode is disabled + + if (this._build === false) { + this.clear(); + } // add new tspan + + + node.appendChild(tspan.node); + return tspan.text(text); + }, + // Clear all lines + clear: function clear() { + var node = (this.textPath && this.textPath() || this).node; // remove existing child nodes + + while (node.hasChildNodes()) { + node.removeChild(node.lastChild); + } + + return this; + }, + // Get length of text element + length: function length() { + return this.node.getComputedTextLength(); + } + }); + SVG.TextPath = SVG.invent({ + // Initialize node + create: 'textPath', + // Inherit from + inherit: SVG.Parent, + // Define parent class + parent: SVG.Text, + // Add parent method + construct: { + morphArray: SVG.PathArray, + // Create path for text to run on + path: function path(d) { + // create textPath element + var path = new SVG.TextPath(), + track = this.doc().defs().path(d); // move lines to textpath + + while (this.node.hasChildNodes()) { + path.node.appendChild(this.node.firstChild); + } // add textPath element as child node + + + this.node.appendChild(path.node); // link textPath to path and add content + + path.attr('href', '#' + track, SVG.xlink); + return this; + }, + // return the array of the path track element + array: function array() { + var track = this.track(); + return track ? track.array() : null; + }, + // Plot path if any + plot: function plot(d) { + var track = this.track(), + pathArray = null; + + if (track) { + pathArray = track.plot(d); + } + + return d == null ? pathArray : this; + }, + // Get the path track element + track: function track() { + var path = this.textPath(); + + if (path) { + return path.reference('href'); + } + }, + // Get the textPath child + textPath: function textPath() { + if (this.node.firstChild && this.node.firstChild.nodeName == 'textPath') { + return SVG.adopt(this.node.firstChild); + } + } + } + }); + SVG.Nested = SVG.invent({ + // Initialize node + create: function create() { + this.constructor.call(this, SVG.create('svg')); + this.style('overflow', 'visible'); + }, + // Inherit from + inherit: SVG.Container, + // Add parent method + construct: { + // Create nested svg document + nested: function nested() { + return this.put(new SVG.Nested()); + } + } + }); + SVG.A = SVG.invent({ + // Initialize node + create: 'a', + // Inherit from + inherit: SVG.Container, + // Add class methods + extend: { + // Link url + to: function to(url) { + return this.attr('href', url, SVG.xlink); + }, + // Link show attribute + show: function show(target) { + return this.attr('show', target, SVG.xlink); + }, + // Link target attribute + target: function target(_target2) { + return this.attr('target', _target2); + } + }, + // Add parent method + construct: { + // Create a hyperlink element + link: function link(url) { + return this.put(new SVG.A()).to(url); + } + } + }); + SVG.extend(SVG.Element, { + // Create a hyperlink element + linkTo: function linkTo(url) { + var link = new SVG.A(); + + if (typeof url === 'function') { + url.call(link, link); + } else { + link.to(url); + } + + return this.parent().put(link).put(this); + } + }); + SVG.Marker = SVG.invent({ + // Initialize node + create: 'marker', + // Inherit from + inherit: SVG.Container, + // Add class methods + extend: { + // Set width of element + width: function width(_width6) { + return this.attr('markerWidth', _width6); + }, + // Set height of element + height: function height(_height6) { + return this.attr('markerHeight', _height6); + }, + // Set marker refX and refY + ref: function ref(x, y) { + return this.attr('refX', x).attr('refY', y); + }, + // Update marker + update: function update(block) { + // remove all content + this.clear(); // invoke passed block + + if (typeof block === 'function') { + block.call(this, this); + } + + return this; + }, + // Return the fill id + toString: function toString() { + return 'url(#' + this.id() + ')'; + } + }, + // Add parent method + construct: { + marker: function marker(width, height, block) { + // Create marker element in defs + return this.defs().marker(width, height, block); + } + } + }); + SVG.extend(SVG.Defs, { + // Create marker + marker: function marker(width, height, block) { + // Set default viewbox to match the width and height, set ref to cx and cy and set orient to auto + return this.put(new SVG.Marker()).size(width, height).ref(width / 2, height / 2).viewbox(0, 0, width, height).attr('orient', 'auto').update(block); + } + }); + SVG.extend(SVG.Line, SVG.Polyline, SVG.Polygon, SVG.Path, { + // Create and attach markers + marker: function marker(_marker, width, height, block) { + var attr = ['marker']; // Build attribute name + + if (_marker != 'all') attr.push(_marker); + attr = attr.join('-'); // Set marker attribute + + _marker = arguments[1] instanceof SVG.Marker ? arguments[1] : this.doc().marker(width, height, block); + return this.attr(attr, _marker); + } + }); // Define list of available attributes for stroke and fill + + var sugar = { + stroke: ['color', 'width', 'opacity', 'linecap', 'linejoin', 'miterlimit', 'dasharray', 'dashoffset'], + fill: ['color', 'opacity', 'rule'], + prefix: function prefix(t, a) { + return a == 'color' ? t : t + '-' + a; + } // Add sugar for fill and stroke + + }; + ['fill', 'stroke'].forEach(function (m) { + var i, + extension = {}; + + extension[m] = function (o) { + if (typeof o === 'undefined') { + return this; + } + + if (typeof o === 'string' || SVG.Color.isRgb(o) || o && typeof o.fill === 'function') { + this.attr(m, o); + } else // set all attributes from sugar.fill and sugar.stroke list + { + for (i = sugar[m].length - 1; i >= 0; i--) { + if (o[sugar[m][i]] != null) { + this.attr(sugar.prefix(m, sugar[m][i]), o[sugar[m][i]]); + } + } + } + + return this; + }; + + SVG.extend(SVG.Element, SVG.FX, extension); + }); + SVG.extend(SVG.Element, SVG.FX, { + // Map rotation to transform + rotate: function rotate(d, cx, cy) { + return this.transform({ + rotation: d, + cx: cx, + cy: cy + }); + }, + // Map skew to transform + skew: function skew(x, y, cx, cy) { + return arguments.length == 1 || arguments.length == 3 ? this.transform({ + skew: x, + cx: y, + cy: cx + }) : this.transform({ + skewX: x, + skewY: y, + cx: cx, + cy: cy + }); + }, + // Map scale to transform + scale: function scale(x, y, cx, cy) { + return arguments.length == 1 || arguments.length == 3 ? this.transform({ + scale: x, + cx: y, + cy: cx + }) : this.transform({ + scaleX: x, + scaleY: y, + cx: cx, + cy: cy + }); + }, + // Map translate to transform + translate: function translate(x, y) { + return this.transform({ + x: x, + y: y + }); + }, + // Map flip to transform + flip: function flip(a, o) { + o = typeof a === 'number' ? a : o; + return this.transform({ + flip: a || 'both', + offset: o + }); + }, + // Map matrix to transform + matrix: function matrix(m) { + return this.attr('transform', new SVG.Matrix(arguments.length == 6 ? [].slice.call(arguments) : m)); + }, + // Opacity + opacity: function opacity(value) { + return this.attr('opacity', value); + }, + // Relative move over x axis + dx: function dx(x) { + return this.x(new SVG.Number(x).plus(this instanceof SVG.FX ? 0 : this.x()), true); + }, + // Relative move over y axis + dy: function dy(y) { + return this.y(new SVG.Number(y).plus(this instanceof SVG.FX ? 0 : this.y()), true); + }, + // Relative move over x and y axes + dmove: function dmove(x, y) { + return this.dx(x).dy(y); + } + }); + SVG.extend(SVG.Rect, SVG.Ellipse, SVG.Circle, SVG.Gradient, SVG.FX, { + // Add x and y radius + radius: function radius(x, y) { + var type = (this._target || this).type; + return type == 'radial' || type == 'circle' ? this.attr('r', new SVG.Number(x)) : this.rx(x).ry(y == null ? x : y); + } + }); + SVG.extend(SVG.Path, { + // Get path length + length: function length() { + return this.node.getTotalLength(); + }, + // Get point at length + pointAt: function pointAt(length) { + return this.node.getPointAtLength(length); + } + }); + SVG.extend(SVG.Parent, SVG.Text, SVG.Tspan, SVG.FX, { + // Set font + font: function font(a, v) { + if (_typeof(a) === 'object') { + for (v in a) { + this.font(v, a[v]); + } + } + + return a == 'leading' ? this.leading(v) : a == 'anchor' ? this.attr('text-anchor', v) : a == 'size' || a == 'family' || a == 'weight' || a == 'stretch' || a == 'variant' || a == 'style' ? this.attr('font-' + a, v) : this.attr(a, v); + } + }); + SVG.Set = SVG.invent({ + // Initialize + create: function create(members) { + // Set initial state + Array.isArray(members) ? this.members = members : this.clear(); + }, + // Add class methods + extend: { + // Add element to set + add: function add() { + var i, + il, + elements = [].slice.call(arguments); + + for (i = 0, il = elements.length; i < il; i++) { + this.members.push(elements[i]); + } + + return this; + }, + // Remove element from set + remove: function remove(element) { + var i = this.index(element); // remove given child + + if (i > -1) { + this.members.splice(i, 1); + } + + return this; + }, + // Iterate over all members + each: function each(block) { + for (var i = 0, il = this.members.length; i < il; i++) { + block.apply(this.members[i], [i, this.members]); + } + + return this; + }, + // Restore to defaults + clear: function clear() { + // initialize store + this.members = []; + return this; + }, + // Get the length of a set + length: function length() { + return this.members.length; + }, + // Checks if a given element is present in set + has: function has(element) { + return this.index(element) >= 0; + }, + // retuns index of given element in set + index: function index(element) { + return this.members.indexOf(element); + }, + // Get member at given index + get: function get(i) { + return this.members[i]; + }, + // Get first member + first: function first() { + return this.get(0); + }, + // Get last member + last: function last() { + return this.get(this.members.length - 1); + }, + // Default value + valueOf: function valueOf() { + return this.members; + }, + // Get the bounding box of all members included or empty box if set has no items + bbox: function bbox() { + // return an empty box of there are no members + if (this.members.length == 0) { + return new SVG.RBox(); + } // get the first rbox and update the target bbox + + + var rbox = this.members[0].rbox(this.members[0].doc()); + this.each(function () { + // user rbox for correct position and visual representation + rbox = rbox.merge(this.rbox(this.doc())); + }); + return rbox; + } + }, + // Add parent method + construct: { + // Create a new set + set: function set(members) { + return new SVG.Set(members); + } + } + }); + SVG.FX.Set = SVG.invent({ + // Initialize node + create: function create(set) { + // store reference to set + this.set = set; + } + }); // Alias methods + + SVG.Set.inherit = function () { + var m, + methods = []; // gather shape methods + + for (var m in SVG.Shape.prototype) { + if (typeof SVG.Shape.prototype[m] === 'function' && typeof SVG.Set.prototype[m] !== 'function') { + methods.push(m); + } + } // apply shape aliasses + + + methods.forEach(function (method) { + SVG.Set.prototype[method] = function () { + for (var i = 0, il = this.members.length; i < il; i++) { + if (this.members[i] && typeof this.members[i][method] === 'function') { + this.members[i][method].apply(this.members[i], arguments); + } + } + + return method == 'animate' ? this.fx || (this.fx = new SVG.FX.Set(this)) : this; + }; + }); // clear methods for the next round + + methods = []; // gather fx methods + + for (var m in SVG.FX.prototype) { + if (typeof SVG.FX.prototype[m] === 'function' && typeof SVG.FX.Set.prototype[m] !== 'function') { + methods.push(m); + } + } // apply fx aliasses + + + methods.forEach(function (method) { + SVG.FX.Set.prototype[method] = function () { + for (var i = 0, il = this.set.members.length; i < il; i++) { + this.set.members[i].fx[method].apply(this.set.members[i].fx, arguments); + } + + return this; + }; + }); + }; + + SVG.extend(SVG.Element, { + // Store data values on svg nodes + data: function data(a, v, r) { + if (_typeof(a) === 'object') { + for (v in a) { + this.data(v, a[v]); + } + } else if (arguments.length < 2) { + try { + return JSON.parse(this.attr('data-' + a)); + } catch (e) { + return this.attr('data-' + a); + } + } else { + this.attr('data-' + a, v === null ? null : r === true || typeof v === 'string' || typeof v === 'number' ? v : JSON.stringify(v)); + } + + return this; + } + }); + SVG.extend(SVG.Element, { + // Remember arbitrary data + remember: function remember(k, v) { + // remember every item in an object individually + if (_typeof(arguments[0]) === 'object') { + for (var v in k) { + this.remember(v, k[v]); + } + } // retrieve memory + else if (arguments.length == 1) { + return this.memory()[k]; + } // store memory + else { + this.memory()[k] = v; + } + + return this; + }, + // Erase a given memory + forget: function forget() { + if (arguments.length == 0) { + this._memory = {}; + } else { + for (var i = arguments.length - 1; i >= 0; i--) { + delete this.memory()[arguments[i]]; + } + } + + return this; + }, + // Initialize or return local memory object + memory: function memory() { + return this._memory || (this._memory = {}); + } + }); // Method for getting an element by id + + SVG.get = function (id) { + var node = document.getElementById(idFromReference(id) || id); + return SVG.adopt(node); + }; // Select elements by query string + + + SVG.select = function (query, parent) { + return new SVG.Set(SVG.utils.map((parent || document).querySelectorAll(query), function (node) { + return SVG.adopt(node); + })); + }; + + SVG.extend(SVG.Parent, { + // Scoped select method + select: function select(query) { + return SVG.select(query, this.node); + } + }); + + function pathRegReplace(a, b, c, d) { + return c + d.replace(SVG.regex.dots, ' .'); + } // creates deep clone of array + + + function array_clone(arr) { + var clone = arr.slice(0); + + for (var i = clone.length; i--;) { + if (Array.isArray(clone[i])) { + clone[i] = array_clone(clone[i]); + } + } + + return clone; + } // tests if a given element is instance of an object + + + function _is(el, obj) { + return el instanceof obj; + } // tests if a given selector matches an element + + + function _matches(el, selector) { + return (el.matches || el.matchesSelector || el.msMatchesSelector || el.mozMatchesSelector || el.webkitMatchesSelector || el.oMatchesSelector).call(el, selector); + } // Convert dash-separated-string to camelCase + + + function camelCase(s) { + return s.toLowerCase().replace(/-(.)/g, function (m, g) { + return g.toUpperCase(); + }); + } // Capitalize first letter of a string + + + function capitalize(s) { + return s.charAt(0).toUpperCase() + s.slice(1); + } // Ensure to six-based hex + + + function fullHex(hex) { + return hex.length == 4 ? ['#', hex.substring(1, 2), hex.substring(1, 2), hex.substring(2, 3), hex.substring(2, 3), hex.substring(3, 4), hex.substring(3, 4)].join('') : hex; + } // Component to hex value + + + function compToHex(comp) { + var hex = comp.toString(16); + return hex.length == 1 ? '0' + hex : hex; + } // Calculate proportional width and height values when necessary + + + function proportionalSize(element, width, height) { + if (width == null || height == null) { + var box = element.bbox(); + + if (width == null) { + width = box.width / box.height * height; + } else if (height == null) { + height = box.height / box.width * width; + } + } + + return { + width: width, + height: height + }; + } // Delta transform point + + + function deltaTransformPoint(matrix, x, y) { + return { + x: x * matrix.a + y * matrix.c + 0, + y: x * matrix.b + y * matrix.d + 0 + }; + } // Map matrix array to object + + + function arrayToMatrix(a) { + return { + a: a[0], + b: a[1], + c: a[2], + d: a[3], + e: a[4], + f: a[5] + }; + } // Parse matrix if required + + + function parseMatrix(matrix) { + if (!(matrix instanceof SVG.Matrix)) { + matrix = new SVG.Matrix(matrix); + } + + return matrix; + } // Add centre point to transform object + + + function ensureCentre(o, target) { + o.cx = o.cx == null ? target.bbox().cx : o.cx; + o.cy = o.cy == null ? target.bbox().cy : o.cy; + } // PathArray Helpers + + + function arrayToString(a) { + for (var i = 0, il = a.length, s = ''; i < il; i++) { + s += a[i][0]; + + if (a[i][1] != null) { + s += a[i][1]; + + if (a[i][2] != null) { + s += ' '; + s += a[i][2]; + + if (a[i][3] != null) { + s += ' '; + s += a[i][3]; + s += ' '; + s += a[i][4]; + + if (a[i][5] != null) { + s += ' '; + s += a[i][5]; + s += ' '; + s += a[i][6]; + + if (a[i][7] != null) { + s += ' '; + s += a[i][7]; + } + } + } + } + } + } + + return s + ' '; + } // Deep new id assignment + + + function assignNewId(node) { + // do the same for SVG child nodes as well + for (var i = node.childNodes.length - 1; i >= 0; i--) { + if (node.childNodes[i] instanceof window.SVGElement) { + assignNewId(node.childNodes[i]); + } + } + + return SVG.adopt(node).id(SVG.eid(node.nodeName)); + } // Add more bounding box properties + + + function fullBox(b) { + if (b.x == null) { + b.x = 0; + b.y = 0; + b.width = 0; + b.height = 0; + } + + b.w = b.width; + b.h = b.height; + b.x2 = b.x + b.width; + b.y2 = b.y + b.height; + b.cx = b.x + b.width / 2; + b.cy = b.y + b.height / 2; + return b; + } // Get id from reference string + + + function idFromReference(url) { + var m = (url || '').toString().match(SVG.regex.reference); + if (m) return m[1]; + } // If values like 1e-88 are passed, this is not a valid 32 bit float, + // but in those cases, we are so close to 0 that 0 works well! + + + function float32String(v) { + return Math.abs(v) > 1e-37 ? v : 0; + } // Create matrix array for looping + + + var abcdef = 'abcdef'.split(''); // Add CustomEvent to IE9 and IE10 + + if (typeof window.CustomEvent !== 'function') { + // Code from: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent + var CustomEventPoly = function CustomEventPoly(event, options) { + options = options || { + bubbles: false, + cancelable: false, + detail: undefined + }; + var e = document.createEvent('CustomEvent'); + e.initCustomEvent(event, options.bubbles, options.cancelable, options.detail); + return e; + }; + + CustomEventPoly.prototype = window.Event.prototype; + SVG.CustomEvent = CustomEventPoly; + } else { + SVG.CustomEvent = window.CustomEvent; + } // requestAnimationFrame / cancelAnimationFrame Polyfill with fallback based on Paul Irish + + + (function (w) { + var lastTime = 0; + var vendors = ['moz', 'webkit']; + + for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { + w.requestAnimationFrame = w[vendors[x] + 'RequestAnimationFrame']; + w.cancelAnimationFrame = w[vendors[x] + 'CancelAnimationFrame'] || w[vendors[x] + 'CancelRequestAnimationFrame']; + } + + w.requestAnimationFrame = w.requestAnimationFrame || function (callback) { + var currTime = new Date().getTime(); + var timeToCall = Math.max(0, 16 - (currTime - lastTime)); + var id = w.setTimeout(function () { + callback(currTime + timeToCall); + }, timeToCall); + lastTime = currTime + timeToCall; + return id; + }; + + w.cancelAnimationFrame = w.cancelAnimationFrame || w.clearTimeout; + })(window); + + return SVG; +}); + +/*! svg.filter.js - v2.0.2 - 2016-02-24 +* https://github.com/wout/svg.filter.js +* Copyright (c) 2016 Wout Fierens; Licensed MIT */ +(function() { + + // Main filter class + SVG.Filter = SVG.invent({ + create: 'filter', + inherit: SVG.Parent, + extend: { + // Static strings + source: 'SourceGraphic', + sourceAlpha: 'SourceAlpha', + background: 'BackgroundImage', + backgroundAlpha: 'BackgroundAlpha', + fill: 'FillPaint', + stroke: 'StrokePaint', + + autoSetIn: true, + // Custom put method for leaner code + put: function(element, i) { + this.add(element, i); + + if(!element.attr('in') && this.autoSetIn){ + element.attr('in',this.source); + } + if(!element.attr('result')){ + element.attr('result',element); + } + + return element + }, + // Blend effect + blend: function(in1, in2, mode) { + return this.put(new SVG.BlendEffect(in1, in2, mode)) + }, + // ColorMatrix effect + colorMatrix: function(type, values) { + return this.put(new SVG.ColorMatrixEffect(type, values)) + }, + // ConvolveMatrix effect + convolveMatrix: function(matrix) { + return this.put(new SVG.ConvolveMatrixEffect(matrix)) + }, + // ComponentTransfer effect + componentTransfer: function(components) { + return this.put(new SVG.ComponentTransferEffect(components)) + }, + // Composite effect + composite: function(in1, in2, operator) { + return this.put(new SVG.CompositeEffect(in1, in2, operator)) + }, + // Flood effect + flood: function(color, opacity) { + return this.put(new SVG.FloodEffect(color, opacity)) + }, + // Offset effect + offset: function(x, y) { + return this.put(new SVG.OffsetEffect(x,y)) + }, + // Image effect + image: function(src) { + return this.put(new SVG.ImageEffect(src)) + }, + // Merge effect + merge: function() { + //pass the array of arguments to the constructor because we dont know if the user gave us an array as the first arguemnt or wether they listed the effects in the arguments + var args = [undefined]; + for(var i in arguments) args.push(arguments[i]); + return this.put(new (SVG.MergeEffect.bind.apply(SVG.MergeEffect,args))) + }, + // Gaussian Blur effect + gaussianBlur: function(x,y) { + return this.put(new SVG.GaussianBlurEffect(x,y)) + }, + // Morphology effect + morphology: function(operator,radius){ + return this.put(new SVG.MorphologyEffect(operator,radius)) + }, + // DiffuseLighting effect + diffuseLighting: function(surfaceScale,diffuseConstant,kernelUnitLength){ + return this.put(new SVG.DiffuseLightingEffect(surfaceScale,diffuseConstant,kernelUnitLength)) + }, + // DisplacementMap effect + displacementMap: function(in1,in2,scale,xChannelSelector,yChannelSelector){ + return this.put(new SVG.DisplacementMapEffect(in1,in2,scale,xChannelSelector,yChannelSelector)) + }, + // SpecularLighting effect + specularLighting: function(surfaceScale,diffuseConstant,specularExponent,kernelUnitLength){ + return this.put(new SVG.SpecularLightingEffect(surfaceScale,diffuseConstant,specularExponent,kernelUnitLength)) + }, + // Tile effect + tile: function(){ + return this.put(new SVG.TileEffect()); + }, + // Turbulence effect + turbulence: function(baseFrequency,numOctaves,seed,stitchTiles,type){ + return this.put(new SVG.TurbulenceEffect(baseFrequency,numOctaves,seed,stitchTiles,type)) + }, + // Default string value + toString: function() { + return 'url(#' + this.attr('id') + ')' + } + } + }); + + //add .filter function + SVG.extend(SVG.Defs, { + // Define filter + filter: function(block) { + var filter = this.put(new SVG.Filter); + + /* invoke passed block */ + if (typeof block === 'function') + block.call(filter, filter); + + return filter + } + }); + SVG.extend(SVG.Container, { + // Define filter on defs + filter: function(block) { + return this.defs().filter(block) + } + }); + SVG.extend(SVG.Element, SVG.G, SVG.Nested, { + // Create filter element in defs and store reference + filter: function(block) { + this.filterer = block instanceof SVG.Element ? + block : this.doc().filter(block); + + if(this.doc() && this.filterer.doc() !== this.doc()){ + this.doc().defs().add(this.filterer); + } + + this.attr('filter', this.filterer); + + return this.filterer + }, + // Remove filter + unfilter: function(remove) { + /* also remove the filter node */ + if (this.filterer && remove === true) + this.filterer.remove(); + + /* delete reference to filterer */ + delete this.filterer; + + /* remove filter attribute */ + return this.attr('filter', null) + } + }); + + // Create SVG.Effect class + SVG.Effect = SVG.invent({ + create: function(){ + this.constructor.call(this); + }, + inherit: SVG.Element, + extend: { + // Set in attribute + in: function(effect) { + return effect == null? this.parent() && this.parent().select('[result="'+this.attr('in')+'"]').get(0) || this.attr('in') : this.attr('in', effect) + }, + // Named result + result: function(result) { + return result == null? this.attr('result') : this.attr('result',result) + }, + // Stringification + toString: function() { + return this.result() + } + } + }); + + // create class for parent effects like merge + // Inherit from SVG.Parent + SVG.ParentEffect = SVG.invent({ + create: function(){ + this.constructor.call(this); + }, + inherit: SVG.Parent, + extend: { + // Set in attribute + in: function(effect) { + return effect == null? this.parent() && this.parent().select('[result="'+this.attr('in')+'"]').get(0) || this.attr('in') : this.attr('in', effect) + }, + // Named result + result: function(result) { + return result == null? this.attr('result') : this.attr('result',result) + }, + // Stringification + toString: function() { + return this.result() + } + } + }); + + //chaining + var chainingEffects = { + // Blend effect + blend: function(in2, mode) { + return this.parent() && this.parent().blend(this, in2, mode) //pass this as the first input + }, + // ColorMatrix effect + colorMatrix: function(type, values) { + return this.parent() && this.parent().colorMatrix(type, values).in(this) + }, + // ConvolveMatrix effect + convolveMatrix: function(matrix) { + return this.parent() && this.parent().convolveMatrix(matrix).in(this) + }, + // ComponentTransfer effect + componentTransfer: function(components) { + return this.parent() && this.parent().componentTransfer(components).in(this) + }, + // Composite effect + composite: function(in2, operator) { + return this.parent() && this.parent().composite(this, in2, operator) //pass this as the first input + }, + // Flood effect + flood: function(color, opacity) { + return this.parent() && this.parent().flood(color, opacity) //this effect dont have inputs + }, + // Offset effect + offset: function(x, y) { + return this.parent() && this.parent().offset(x,y).in(this) + }, + // Image effect + image: function(src) { + return this.parent() && this.parent().image(src) //this effect dont have inputs + }, + // Merge effect + merge: function() { + return this.parent() && this.parent().merge.apply(this.parent(),[this].concat(arguments)) //pass this as the first argument + }, + // Gaussian Blur effect + gaussianBlur: function(x,y) { + return this.parent() && this.parent().gaussianBlur(x,y).in(this) + }, + // Morphology effect + morphology: function(operator,radius){ + return this.parent() && this.parent().morphology(operator,radius).in(this) + }, + // DiffuseLighting effect + diffuseLighting: function(surfaceScale,diffuseConstant,kernelUnitLength){ + return this.parent() && this.parent().diffuseLighting(surfaceScale,diffuseConstant,kernelUnitLength).in(this) + }, + // DisplacementMap effect + displacementMap: function(in2,scale,xChannelSelector,yChannelSelector){ + return this.parent() && this.parent().displacementMap(this,in2,scale,xChannelSelector,yChannelSelector) //pass this as the first input + }, + // SpecularLighting effect + specularLighting: function(surfaceScale,diffuseConstant,specularExponent,kernelUnitLength){ + return this.parent() && this.parent().specularLighting(surfaceScale,diffuseConstant,specularExponent,kernelUnitLength).in(this) + }, + // Tile effect + tile: function(){ + return this.parent() && this.parent().tile().in(this) + }, + // Turbulence effect + turbulence: function(baseFrequency,numOctaves,seed,stitchTiles,type){ + return this.parent() && this.parent().turbulence(baseFrequency,numOctaves,seed,stitchTiles,type).in(this) + } + }; + SVG.extend(SVG.Effect,chainingEffects); + SVG.extend(SVG.ParentEffect,chainingEffects); + + //crea class for child effects, like MergeNode, FuncR and lights + SVG.ChildEffect = SVG.invent({ + create: function(){ + this.constructor.call(this); + }, + inherit: SVG.Element, + extend: { + in: function(effect){ + this.attr('in',effect); + } + //dont include any "result" functions because these types of nodes dont have them + } + }); + + // Create all different effects + var effects = { + blend: function(in1,in2,mode){ + this.attr({ + in: in1, + in2: in2, + mode: mode || 'normal' + }); + }, + colorMatrix: function(type,values){ + if (type == 'matrix') + values = normaliseMatrix(values); + + this.attr({ + type: type + , values: typeof values == 'undefined' ? null : values + }); + }, + convolveMatrix: function(matrix){ + matrix = normaliseMatrix(matrix); + + this.attr({ + order: Math.sqrt(matrix.split(' ').length) + , kernelMatrix: matrix + }); + }, + composite: function(in1, in2, operator){ + this.attr({ + in: in1, + in2: in2, + operator: operator + }); + }, + flood: function(color,opacity){ + this.attr('flood-color',color); + if(opacity != null) this.attr('flood-opacity',opacity); + }, + offset: function(x,y){ + this.attr({ + dx: x, + dy: y + }); + }, + image: function(src){ + this.attr('href', src, SVG.xlink); + }, + displacementMap: function(in1,in2,scale,xChannelSelector,yChannelSelector){ + this.attr({ + in: in1, + in2: in2, + scale: scale, + xChannelSelector: xChannelSelector, + yChannelSelector: yChannelSelector + }); + }, + gaussianBlur: function(x,y){ + if(x != null || y != null) + this.attr('stdDeviation', listString(Array.prototype.slice.call(arguments))); + else + this.attr('stdDeviation', '0 0'); + }, + morphology: function(operator,radius){ + this.attr({ + operator: operator, + radius: radius + }); + }, + tile: function(){ + + }, + turbulence: function(baseFrequency,numOctaves,seed,stitchTiles,type){ + this.attr({ + numOctaves: numOctaves, + seed: seed, + stitchTiles: stitchTiles, + baseFrequency: baseFrequency, + type: type + }); + } + }; + + // Create all parent effects + var parentEffects = { + merge: function(){ + var children; + + //test to see if we have a set + if(arguments[0] instanceof SVG.Set){ + var that = this; + arguments[0].each(function(i){ + if(this instanceof SVG.MergeNode) + that.put(this); + else if(this instanceof SVG.Effect || this instanceof SVG.ParentEffect) + that.put(new SVG.MergeNode(this)); + }); + } + else{ + //if the first argument is an array use it + if(Array.isArray(arguments[0])) + children = arguments[0]; + else + children = arguments; + + for(var i = 0; i < children.length; i++){ + if(children[i] instanceof SVG.MergeNode){ + this.put(children[i]); + } + else this.put(new SVG.MergeNode(children[i])); + } + } + }, + componentTransfer: function(compontents){ + /* create rgb set */ + this.rgb = new SVG.Set + + /* create components */ + ;(['r', 'g', 'b', 'a']).forEach(function(c) { + /* create component */ + this[c] = new SVG['Func' + c.toUpperCase()]('identity'); + + /* store component in set */ + this.rgb.add(this[c]); + + /* add component node */ + this.node.appendChild(this[c].node); + }.bind(this)); //lost context in foreach + + /* set components */ + if (compontents) { + if (compontents.rgb) { +(['r', 'g', 'b']).forEach(function(c) { + this[c].attr(compontents.rgb); + }.bind(this)); + + delete compontents.rgb; + } + + /* set individual components */ + for (var c in compontents) + this[c].attr(compontents[c]); + } + }, + diffuseLighting: function(surfaceScale,diffuseConstant,kernelUnitLength){ + this.attr({ + surfaceScale: surfaceScale, + diffuseConstant: diffuseConstant, + kernelUnitLength: kernelUnitLength + }); + }, + specularLighting: function(surfaceScale,diffuseConstant,specularExponent,kernelUnitLength){ + this.attr({ + surfaceScale: surfaceScale, + diffuseConstant: diffuseConstant, + specularExponent: specularExponent, + kernelUnitLength: kernelUnitLength + }); + }, + }; + + // Create child effects like PointLight and MergeNode + var childEffects = { + distantLight: function(azimuth, elevation){ + this.attr({ + azimuth: azimuth, + elevation: elevation + }); + }, + pointLight: function(x,y,z){ + this.attr({ + x: x, + y: y, + z: z + }); + }, + spotLight: function(x,y,z,pointsAtX,pointsAtY,pointsAtZ){ + this.attr({ + x: x, + y: y, + z: z, + pointsAtX: pointsAtX, + pointsAtY: pointsAtY, + pointsAtZ: pointsAtZ + }); + }, + mergeNode: function(in1){ + this.attr('in',in1); + } + } + + // Create compontent functions + ;(['r', 'g', 'b', 'a']).forEach(function(c) { + /* create class */ + childEffects['Func' + c.toUpperCase()] = function(type) { + this.attr('type',type); + + // take diffent arguments based on the type + switch(type){ + case 'table': + this.attr('tableValues',arguments[1]); + break + case 'linear': + this.attr('slope',arguments[1]); + this.attr('intercept',arguments[2]); + break + case 'gamma': + this.attr('amplitude',arguments[1]); + this.attr('exponent',arguments[2]); + this.attr('offset',arguments[2]); + break + } + }; + }); + + //create effects + foreach(effects,function(effect,i){ + + /* capitalize name */ + var name = i.charAt(0).toUpperCase() + i.slice(1); + var proto = {}; + + /* create class */ + SVG[name + 'Effect'] = SVG.invent({ + create: function() { + //call super + this.constructor.call(this, SVG.create('fe' + name)); + + //call constructor for this effect + effect.apply(this,arguments); + + //set the result + this.result(this.attr('id') + 'Out'); + }, + inherit: SVG.Effect, + extend: proto + }); + }); + + //create parent effects + foreach(parentEffects,function(effect,i){ + + /* capitalize name */ + var name = i.charAt(0).toUpperCase() + i.slice(1); + var proto = {}; + + /* create class */ + SVG[name + 'Effect'] = SVG.invent({ + create: function() { + //call super + this.constructor.call(this, SVG.create('fe' + name)); + + //call constructor for this effect + effect.apply(this,arguments); + + //set the result + this.result(this.attr('id') + 'Out'); + }, + inherit: SVG.ParentEffect, + extend: proto + }); + }); + + //create child effects + foreach(childEffects,function(effect,i){ + + /* capitalize name */ + var name = i.charAt(0).toUpperCase() + i.slice(1); + var proto = {}; + + /* create class */ + SVG[name] = SVG.invent({ + create: function() { + //call super + this.constructor.call(this, SVG.create('fe' + name)); + + //call constructor for this effect + effect.apply(this,arguments); + }, + inherit: SVG.ChildEffect, + extend: proto + }); + }); + + // Effect-specific extensions + SVG.extend(SVG.MergeEffect,{ + in: function(effect){ + if(effect instanceof SVG.MergeNode) + this.add(effect,0); + else + this.add(new SVG.MergeNode(effect),0); + + return this + } + }); + SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{ + in2: function(effect){ + return effect == null? this.parent() && this.parent().select('[result="'+this.attr('in2')+'"]').get(0) || this.attr('in2') : this.attr('in2', effect) + } + }); + + // Presets + SVG.filter = { + sepiatone: [ .343, .669, .119, 0, 0 + , .249, .626, .130, 0, 0 + , .172, .334, .111, 0, 0 + , .000, .000, .000, 1, 0 ] + }; + + // Helpers + function normaliseMatrix(matrix) { + /* convert possible array value to string */ + if (Array.isArray(matrix)) + matrix = new SVG.Array(matrix); + + /* ensure there are no leading, tailing or double spaces */ + return matrix.toString().replace(/^\s+/, '').replace(/\s+$/, '').replace(/\s+/g, ' ') + } + + function listString(list) { + if (!Array.isArray(list)) + return list + + for (var i = 0, l = list.length, s = []; i < l; i++) + s.push(list[i]); + + return s.join(' ') + } + + function foreach(){ //loops through mutiple objects + var fn = function(){}; + if(typeof arguments[arguments.length-1] == 'function'){ + fn = arguments[arguments.length-1]; + Array.prototype.splice.call(arguments,arguments.length-1,1); + } + for(var k in arguments){ + for(var i in arguments[k]){ + fn(arguments[k][i],i,arguments[k]); + } + } + } + +}).call(undefined); + +(function() { + +SVG.extend(SVG.PathArray, { + morph: function(array) { + + var startArr = this.value + , destArr = this.parse(array); + + var startOffsetM = 0 + , destOffsetM = 0; + + var startOffsetNextM = false + , destOffsetNextM = false; + + while(true){ + // stop if there is no M anymore + if(startOffsetM === false && destOffsetM === false) break + + // find the next M in path array + startOffsetNextM = findNextM(startArr, startOffsetM === false ? false : startOffsetM+1); + destOffsetNextM = findNextM( destArr, destOffsetM === false ? false : destOffsetM+1); + + // We have to add one M to the startArray + if(startOffsetM === false){ + var bbox = new SVG.PathArray(result.start).bbox(); + + // when the last block had no bounding box we simply take the first M we got + if(bbox.height == 0 || bbox.width == 0){ + startOffsetM = startArr.push(startArr[0]) - 1; + }else{ + // we take the middle of the bbox instead when we got one + startOffsetM = startArr.push( ['M', bbox.x + bbox.width/2, bbox.y + bbox.height/2 ] ) - 1; + } + } + + // We have to add one M to the destArray + if( destOffsetM === false){ + var bbox = new SVG.PathArray(result.dest).bbox(); + + if(bbox.height == 0 || bbox.width == 0){ + destOffsetM = destArr.push(destArr[0]) - 1; + }else{ + destOffsetM = destArr.push( ['M', bbox.x + bbox.width/2, bbox.y + bbox.height/2 ] ) - 1; + } + } + + // handle block from M to next M + var result = handleBlock(startArr, startOffsetM, startOffsetNextM, destArr, destOffsetM, destOffsetNextM); + + // update the arrays to their new values + startArr = startArr.slice(0, startOffsetM).concat(result.start, startOffsetNextM === false ? [] : startArr.slice(startOffsetNextM)); + destArr = destArr.slice(0, destOffsetM).concat(result.dest , destOffsetNextM === false ? [] : destArr.slice( destOffsetNextM)); + + // update offsets + startOffsetM = startOffsetNextM === false ? false : startOffsetM + result.start.length; + destOffsetM = destOffsetNextM === false ? false : destOffsetM + result.dest.length; + + } + + // copy back arrays + this.value = startArr; + this.destination = new SVG.PathArray(); + this.destination.value = destArr; + + return this + } +}); + + + +// sorry for the long declaration +// slices out one block (from M to M) and syncronize it so the types and length match +function handleBlock(startArr, startOffsetM, startOffsetNextM, destArr, destOffsetM, destOffsetNextM, undefined){ + + // slice out the block we need + var startArrTemp = startArr.slice(startOffsetM, startOffsetNextM || undefined) + , destArrTemp = destArr.slice( destOffsetM, destOffsetNextM || undefined); + + var i = 0 + , posStart = {pos:[0,0], start:[0,0]} + , posDest = {pos:[0,0], start:[0,0]}; + + do{ + + // convert shorthand types to long form + startArrTemp[i] = simplyfy.call(posStart, startArrTemp[i]); + destArrTemp[i] = simplyfy.call(posDest , destArrTemp[i]); + + // check if both shape types match + // 2 elliptical arc curve commands ('A'), are considered different if the + // flags (large-arc-flag, sweep-flag) don't match + if(startArrTemp[i][0] != destArrTemp[i][0] || startArrTemp[i][0] == 'M' || + (startArrTemp[i][0] == 'A' && + (startArrTemp[i][4] != destArrTemp[i][4] || startArrTemp[i][5] != destArrTemp[i][5]) + ) + ) { + + // if not, convert shapes to beziere + Array.prototype.splice.apply(startArrTemp, [i, 1].concat(toBeziere.call(posStart, startArrTemp[i]))); + Array.prototype.splice.apply(destArrTemp, [i, 1].concat(toBeziere.call(posDest, destArrTemp[i]))); + + } else { + + // only update positions otherwise + startArrTemp[i] = setPosAndReflection.call(posStart, startArrTemp[i]); + destArrTemp[i] = setPosAndReflection.call(posDest , destArrTemp[i]); + + } + + // we are at the end at both arrays. stop here + if(++i == startArrTemp.length && i == destArrTemp.length) break + + // destArray is longer. Add one element + if(i == startArrTemp.length){ + startArrTemp.push([ + 'C', + posStart.pos[0], + posStart.pos[1], + posStart.pos[0], + posStart.pos[1], + posStart.pos[0], + posStart.pos[1], + ]); + } + + // startArr is longer. Add one element + if(i == destArrTemp.length){ + destArrTemp.push([ + 'C', + posDest.pos[0], + posDest.pos[1], + posDest.pos[0], + posDest.pos[1], + posDest.pos[0], + posDest.pos[1] + ]); + } + + + }while(true) + + // return the updated block + return {start:startArrTemp, dest:destArrTemp} +} + +// converts shorthand types to long form +function simplyfy(val){ + + switch(val[0]){ + case 'z': // shorthand line to start + case 'Z': + val[0] = 'L'; + val[1] = this.start[0]; + val[2] = this.start[1]; + break + case 'H': // shorthand horizontal line + val[0] = 'L'; + val[2] = this.pos[1]; + break + case 'V': // shorthand vertical line + val[0] = 'L'; + val[2] = val[1]; + val[1] = this.pos[0]; + break + case 'T': // shorthand quadratic beziere + val[0] = 'Q'; + val[3] = val[1]; + val[4] = val[2]; + val[1] = this.reflection[1]; + val[2] = this.reflection[0]; + break + case 'S': // shorthand cubic beziere + val[0] = 'C'; + val[6] = val[4]; + val[5] = val[3]; + val[4] = val[2]; + val[3] = val[1]; + val[2] = this.reflection[1]; + val[1] = this.reflection[0]; + break + } + + return val + +} + +// updates reflection point and current position +function setPosAndReflection(val){ + + var len = val.length; + + this.pos = [ val[len-2], val[len-1] ]; + + if('SCQT'.indexOf(val[0]) != -1) + this.reflection = [ 2 * this.pos[0] - val[len-4], 2 * this.pos[1] - val[len-3] ]; + + return val +} + +// converts all types to cubic beziere +function toBeziere(val){ + var retVal = [val]; + + switch(val[0]){ + case 'M': // special handling for M + this.pos = this.start = [val[1], val[2]]; + return retVal + case 'L': + val[5] = val[3] = val[1]; + val[6] = val[4] = val[2]; + val[1] = this.pos[0]; + val[2] = this.pos[1]; + break + case 'Q': + val[6] = val[4]; + val[5] = val[3]; + val[4] = val[4] * 1/3 + val[2] * 2/3; + val[3] = val[3] * 1/3 + val[1] * 2/3; + val[2] = this.pos[1] * 1/3 + val[2] * 2/3; + val[1] = this.pos[0] * 1/3 + val[1] * 2/3; + break + case 'A': + retVal = arcToBeziere(this.pos, val); + val = retVal[0]; + break + } + + val[0] = 'C'; + this.pos = [val[5], val[6]]; + this.reflection = [2 * val[5] - val[3], 2 * val[6] - val[4]]; + + return retVal + +} + +// finds the next position of type M +function findNextM(arr, offset){ + + if(offset === false) return false + + for(var i = offset, len = arr.length;i < len;++i){ + + if(arr[i][0] == 'M') return i + + } + + return false +} + + + +// Convert an arc segment into equivalent cubic Bezier curves +// Depending on the arc, up to 4 curves might be used to represent it since a +// curve gives a good approximation for only a quarter of an ellipse +// The curves are returned as an array of SVG curve commands: +// [ ['C', x1, y1, x2, y2, x, y] ... ] +function arcToBeziere(pos, val) { + // Parameters extraction, handle out-of-range parameters as specified in the SVG spec + // See: https://www.w3.org/TR/SVG11/implnote.html#ArcOutOfRangeParameters + var rx = Math.abs(val[1]), ry = Math.abs(val[2]), xAxisRotation = val[3] % 360 + , largeArcFlag = val[4], sweepFlag = val[5], x = val[6], y = val[7] + , A = new SVG.Point(pos), B = new SVG.Point(x, y) + , primedCoord, lambda, mat, k, c, cSquare, t, O, OA, OB, tetaStart, tetaEnd + , deltaTeta, nbSectors, f, arcSegPoints, angle, sinAngle, cosAngle, pt, i, il + , retVal = [], x1, y1, x2, y2; + + // Ensure radii are non-zero + if(rx === 0 || ry === 0 || (A.x === B.x && A.y === B.y)) { + // treat this arc as a straight line segment + return [['C', A.x, A.y, B.x, B.y, B.x, B.y]] + } + + // Ensure radii are large enough using the algorithm provided in the SVG spec + // See: https://www.w3.org/TR/SVG11/implnote.html#ArcCorrectionOutOfRangeRadii + primedCoord = new SVG.Point((A.x-B.x)/2, (A.y-B.y)/2).transform(new SVG.Matrix().rotate(xAxisRotation)); + lambda = (primedCoord.x * primedCoord.x) / (rx * rx) + (primedCoord.y * primedCoord.y) / (ry * ry); + if(lambda > 1) { + lambda = Math.sqrt(lambda); + rx = lambda*rx; + ry = lambda*ry; + } + + // To simplify calculations, we make the arc part of a unit circle (rayon is 1) instead of an ellipse + mat = new SVG.Matrix().rotate(xAxisRotation).scale(1/rx, 1/ry).rotate(-xAxisRotation); + A = A.transform(mat); + B = B.transform(mat); + + // Calculate the horizontal and vertical distance between the initial and final point of the arc + k = [B.x-A.x, B.y-A.y]; + + // Find the length of the chord formed by A and B + cSquare = k[0]*k[0] + k[1]*k[1]; + c = Math.sqrt(cSquare); + + // Calculate the ratios of the horizontal and vertical distance on the length of the chord + k[0] /= c; + k[1] /= c; + + // Calculate the distance between the circle center and the chord midpoint + // using this formula: t = sqrt(r^2 - c^2 / 4) + // where t is the distance between the cirle center and the chord midpoint, + // r is the rayon of the circle and c is the chord length + // From: http://www.ajdesigner.com/phpcircle/circle_segment_chord_t.php + // Because of the imprecision of floating point numbers, cSquare might end + // up being slightly above 4 which would result in a negative radicand + // To prevent that, a test is made before computing the square root + t = (cSquare < 4) ? Math.sqrt(1 - cSquare/4) : 0; + + // For most situations, there are actually two different ellipses that + // satisfy the constraints imposed by the points A and B, the radii rx and ry, + // and the xAxisRotation + // When the flags largeArcFlag and sweepFlag are equal, it means that the + // second ellipse is used as a solution + // See: https://www.w3.org/TR/SVG/paths.html#PathDataEllipticalArcCommands + if(largeArcFlag === sweepFlag) { + t *= -1; + } + + // Calculate the coordinates of the center of the circle from the midpoint of the chord + // This is done by multiplying the ratios calculated previously by the distance between + // the circle center and the chord midpoint and using these values to go from the midpoint + // to the center of the circle + // The negative of the vertical distance ratio is used to modify the x coordinate while + // the horizontal distance ratio is used to modify the y coordinate + // That is because the center of the circle is perpendicular to the chord and perpendicular + // lines are negative reciprocals + O = new SVG.Point((B.x+A.x)/2 + t*-k[1], (B.y+A.y)/2 + t*k[0]); + // Move the center of the circle at the origin + OA = new SVG.Point(A.x-O.x, A.y-O.y); + OB = new SVG.Point(B.x-O.x, B.y-O.y); + + // Calculate the start and end angle + tetaStart = Math.acos(OA.x/Math.sqrt(OA.x*OA.x + OA.y*OA.y)); + if (OA.y < 0) { + tetaStart *= -1; + } + tetaEnd = Math.acos(OB.x/Math.sqrt(OB.x*OB.x + OB.y*OB.y)); + if (OB.y < 0) { + tetaEnd *= -1; + } + + // If sweep-flag is '1', then the arc will be drawn in a "positive-angle" direction, + // make sure that the end angle is above the start angle + if (sweepFlag && tetaStart > tetaEnd) { + tetaEnd += 2*Math.PI; + } + // If sweep-flag is '0', then the arc will be drawn in a "negative-angle" direction, + // make sure that the end angle is below the start angle + if (!sweepFlag && tetaStart < tetaEnd) { + tetaEnd -= 2*Math.PI; + } + + // Find the number of Bezier curves that are required to represent the arc + // A cubic Bezier curve gives a good enough approximation when representing at most a quarter of a circle + nbSectors = Math.ceil(Math.abs(tetaStart-tetaEnd) * 2/Math.PI); + + // Calculate the coordinates of the points of all the Bezier curves required to represent the arc + // For an in-depth explanation of this part see: http://pomax.github.io/bezierinfo/#circles_cubic + arcSegPoints = []; + angle = tetaStart; + deltaTeta = (tetaEnd-tetaStart)/nbSectors; + f = 4*Math.tan(deltaTeta/4)/3; + for (i = 0; i <= nbSectors; i++) { // The <= is because a Bezier curve have a start and a endpoint + cosAngle = Math.cos(angle); + sinAngle = Math.sin(angle); + + pt = new SVG.Point(O.x+cosAngle, O.y+sinAngle); + arcSegPoints[i] = [new SVG.Point(pt.x+f*sinAngle, pt.y-f*cosAngle), pt, new SVG.Point(pt.x-f*sinAngle, pt.y+f*cosAngle)]; + + angle += deltaTeta; + } + + // Remove the first control point of the first segment point and remove the second control point of the last segment point + // These two control points are not used in the approximation of the arc, that is why they are removed + arcSegPoints[0][0] = arcSegPoints[0][1].clone(); + arcSegPoints[arcSegPoints.length-1][2] = arcSegPoints[arcSegPoints.length-1][1].clone(); + + // Revert the transformation that was applied to make the arc part of a unit circle instead of an ellipse + mat = new SVG.Matrix().rotate(xAxisRotation).scale(rx, ry).rotate(-xAxisRotation); + for (i = 0, il = arcSegPoints.length; i < il; i++) { + arcSegPoints[i][0] = arcSegPoints[i][0].transform(mat); + arcSegPoints[i][1] = arcSegPoints[i][1].transform(mat); + arcSegPoints[i][2] = arcSegPoints[i][2].transform(mat); + } + + + // Convert the segments points to SVG curve commands + for (i = 1, il = arcSegPoints.length; i < il; i++) { + pt = arcSegPoints[i-1][2]; + x1 = pt.x; + y1 = pt.y; + + pt = arcSegPoints[i][0]; + x2 = pt.x; + y2 = pt.y; + + pt = arcSegPoints[i][1]; + x = pt.x; + y = pt.y; + + retVal.push(['C', x1, y1, x2, y2, x, y]); + } + + return retVal +} +}()); + +/*! svg.draggable.js - v2.2.1 - 2016-08-25 +* https://github.com/wout/svg.draggable.js +* Copyright (c) 2016 Wout Fierens; Licensed MIT */ +(function() { + + // creates handler, saves it + function DragHandler(el){ + el.remember('_draggable', this); + this.el = el; + } + + + // Sets new parameter, starts dragging + DragHandler.prototype.init = function(constraint, val){ + var _this = this; + this.constraint = constraint; + this.value = val; + this.el.on('mousedown.drag', function(e){ _this.start(e); }); + this.el.on('touchstart.drag', function(e){ _this.start(e); }); + }; + + // transforms one point from screen to user coords + DragHandler.prototype.transformPoint = function(event, offset){ + event = event || window.event; + var touches = event.changedTouches && event.changedTouches[0] || event; + this.p.x = touches.pageX - (offset || 0); + this.p.y = touches.pageY; + return this.p.matrixTransform(this.m) + }; + + // gets elements bounding box with special handling of groups, nested and use + DragHandler.prototype.getBBox = function(){ + + var box = this.el.bbox(); + + if(this.el instanceof SVG.Nested) box = this.el.rbox(); + + if (this.el instanceof SVG.G || this.el instanceof SVG.Use || this.el instanceof SVG.Nested) { + box.x = this.el.x(); + box.y = this.el.y(); + } + + return box + }; + + // start dragging + DragHandler.prototype.start = function(e){ + + // check for left button + if(e.type == 'click'|| e.type == 'mousedown' || e.type == 'mousemove'){ + if((e.which || e.buttons) != 1){ + return + } + } + + var _this = this; + + // fire beforedrag event + this.el.fire('beforedrag', { event: e, handler: this }); + + // search for parent on the fly to make sure we can call + // draggable() even when element is not in the dom currently + this.parent = this.parent || this.el.parent(SVG.Nested) || this.el.parent(SVG.Doc); + this.p = this.parent.node.createSVGPoint(); + + // save current transformation matrix + this.m = this.el.node.getScreenCTM().inverse(); + + var box = this.getBBox(); + + var anchorOffset; + + // fix text-anchor in text-element (#37) + if(this.el instanceof SVG.Text){ + anchorOffset = this.el.node.getComputedTextLength(); + + switch(this.el.attr('text-anchor')){ + case 'middle': + anchorOffset /= 2; + break + case 'start': + anchorOffset = 0; + break; + } + } + + this.startPoints = { + // We take absolute coordinates since we are just using a delta here + point: this.transformPoint(e, anchorOffset), + box: box, + transform: this.el.transform() + }; + + // add drag and end events to window + SVG.on(window, 'mousemove.drag', function(e){ _this.drag(e); }); + SVG.on(window, 'touchmove.drag', function(e){ _this.drag(e); }); + SVG.on(window, 'mouseup.drag', function(e){ _this.end(e); }); + SVG.on(window, 'touchend.drag', function(e){ _this.end(e); }); + + // fire dragstart event + this.el.fire('dragstart', {event: e, p: this.startPoints.point, m: this.m, handler: this}); + + // prevent browser drag behavior + e.preventDefault(); + + // prevent propagation to a parent that might also have dragging enabled + e.stopPropagation(); + }; + + // while dragging + DragHandler.prototype.drag = function(e){ + + var box = this.getBBox() + , p = this.transformPoint(e) + , x = this.startPoints.box.x + p.x - this.startPoints.point.x + , y = this.startPoints.box.y + p.y - this.startPoints.point.y + , c = this.constraint + , gx = p.x - this.startPoints.point.x + , gy = p.y - this.startPoints.point.y; + + var event = new CustomEvent('dragmove', { + detail: { + event: e + , p: p + , m: this.m + , handler: this + } + , cancelable: true + }); + + this.el.fire(event); + + if(event.defaultPrevented) return p + + // move the element to its new position, if possible by constraint + if (typeof c == 'function') { + + var coord = c.call(this.el, x, y, this.m); + + // bool, just show us if movement is allowed or not + if (typeof coord == 'boolean') { + coord = { + x: coord, + y: coord + }; + } + + // if true, we just move. If !false its a number and we move it there + if (coord.x === true) { + this.el.x(x); + } else if (coord.x !== false) { + this.el.x(coord.x); + } + + if (coord.y === true) { + this.el.y(y); + } else if (coord.y !== false) { + this.el.y(coord.y); + } + + } else if (typeof c == 'object') { + + // keep element within constrained box + if (c.minX != null && x < c.minX) + x = c.minX; + else if (c.maxX != null && x > c.maxX - box.width){ + x = c.maxX - box.width; + }if (c.minY != null && y < c.minY) + y = c.minY; + else if (c.maxY != null && y > c.maxY - box.height) + y = c.maxY - box.height; + + if(this.el instanceof SVG.G) + this.el.matrix(this.startPoints.transform).transform({x:gx, y: gy}, true); + else + this.el.move(x, y); + } + + // so we can use it in the end-method, too + return p + }; + + DragHandler.prototype.end = function(e){ + + // final drag + var p = this.drag(e); + + // fire dragend event + this.el.fire('dragend', { event: e, p: p, m: this.m, handler: this }); + + // unbind events + SVG.off(window, 'mousemove.drag'); + SVG.off(window, 'touchmove.drag'); + SVG.off(window, 'mouseup.drag'); + SVG.off(window, 'touchend.drag'); + + }; + + SVG.extend(SVG.Element, { + // Make element draggable + // Constraint might be an object (as described in readme.md) or a function in the form "function (x, y)" that gets called before every move. + // The function can return a boolean or an object of the form {x, y}, to which the element will be moved. "False" skips moving, true moves to raw x, y. + draggable: function(value, constraint) { + + // Check the parameters and reassign if needed + if (typeof value == 'function' || typeof value == 'object') { + constraint = value; + value = true; + } + + var dragHandler = this.remember('_draggable') || new DragHandler(this); + + // When no parameter is given, value is true + value = typeof value === 'undefined' ? true : value; + + if(value) dragHandler.init(constraint || {}, value); + else { + this.off('mousedown.drag'); + this.off('touchstart.drag'); + } + + return this + } + + }); + +}).call(undefined); + +(function() { + +function SelectHandler(el) { + + this.el = el; + el.remember('_selectHandler', this); + this.pointSelection = {isSelected: false}; + this.rectSelection = {isSelected: false}; + +} + +SelectHandler.prototype.init = function (value, options) { + + var bbox = this.el.bbox(); + this.options = {}; + + // Merging the defaults and the options-object together + for (var i in this.el.selectize.defaults) { + this.options[i] = this.el.selectize.defaults[i]; + if (options[i] !== undefined) { + this.options[i] = options[i]; + } + } + + this.parent = this.el.parent(); + this.nested = (this.nested || this.parent.group()); + this.nested.matrix(new SVG.Matrix(this.el).translate(bbox.x, bbox.y)); + + // When deepSelect is enabled and the element is a line/polyline/polygon, draw only points for moving + if (this.options.deepSelect && ['line', 'polyline', 'polygon'].indexOf(this.el.type) !== -1) { + this.selectPoints(value); + } else { + this.selectRect(value); + } + + this.observe(); + this.cleanup(); + +}; + +SelectHandler.prototype.selectPoints = function (value) { + + this.pointSelection.isSelected = value; + + // When set is already there we dont have to create one + if (this.pointSelection.set) { + return this; + } + + // Create our set of elements + this.pointSelection.set = this.parent.set(); + // draw the circles and mark the element as selected + this.drawCircles(); + + return this; + +}; + +// create the point-array which contains the 2 points of a line or simply the points-array of polyline/polygon +SelectHandler.prototype.getPointArray = function () { + var bbox = this.el.bbox(); + + return this.el.array().valueOf().map(function (el) { + return [el[0] - bbox.x, el[1] - bbox.y]; + }); +}; + +// The function to draw the circles +SelectHandler.prototype.drawCircles = function () { + + var _this = this, array = this.getPointArray(); + + // go through the array of points + for (var i = 0, len = array.length; i < len; ++i) { + + var curriedEvent = (function (k) { + return function (ev) { + ev = ev || window.event; + ev.preventDefault ? ev.preventDefault() : ev.returnValue = false; + ev.stopPropagation(); + + var x = ev.pageX || ev.touches[0].pageX; + var y = ev.pageY || ev.touches[0].pageY; + _this.el.fire('point', {x: x, y: y, i: k, event: ev}); + }; + })(i); + + // add every point to the set + this.pointSelection.set.add( + // a circle with our css-classes and a touchstart-event which fires our event for moving points + this.nested.circle(this.options.radius) + .center(array[i][0], array[i][1]) + .addClass(this.options.classPoints) + .addClass(this.options.classPoints + '_point') + .on('touchstart', curriedEvent) + .on('mousedown', curriedEvent) + ); + } + +}; + +// every time a circle is moved, we have to update the positions of our circle +SelectHandler.prototype.updatePointSelection = function () { + var array = this.getPointArray(); + + this.pointSelection.set.each(function (i) { + if (this.cx() === array[i][0] && this.cy() === array[i][1]) { + return; + } + this.center(array[i][0], array[i][1]); + }); +}; + +SelectHandler.prototype.updateRectSelection = function () { + var bbox = this.el.bbox(); + + this.rectSelection.set.get(0).attr({ + width: bbox.width, + height: bbox.height + }); + + // set.get(1) is always in the upper left corner. no need to move it + if (this.options.points) { + this.rectSelection.set.get(2).center(bbox.width, 0); + this.rectSelection.set.get(3).center(bbox.width, bbox.height); + this.rectSelection.set.get(4).center(0, bbox.height); + + this.rectSelection.set.get(5).center(bbox.width / 2, 0); + this.rectSelection.set.get(6).center(bbox.width, bbox.height / 2); + this.rectSelection.set.get(7).center(bbox.width / 2, bbox.height); + this.rectSelection.set.get(8).center(0, bbox.height / 2); + } + + if (this.options.rotationPoint) { + if (this.options.points) { + this.rectSelection.set.get(9).center(bbox.width / 2, 20); + } else { + this.rectSelection.set.get(1).center(bbox.width / 2, 20); + } + } +}; + +SelectHandler.prototype.selectRect = function (value) { + + var _this = this, bbox = this.el.bbox(); + + this.rectSelection.isSelected = value; + + // when set is already p + this.rectSelection.set = this.rectSelection.set || this.parent.set(); + + // helperFunction to create a mouse-down function which triggers the event specified in `eventName` + function getMoseDownFunc(eventName) { + return function (ev) { + ev = ev || window.event; + ev.preventDefault ? ev.preventDefault() : ev.returnValue = false; + ev.stopPropagation(); + + var x = ev.pageX || ev.touches[0].pageX; + var y = ev.pageY || ev.touches[0].pageY; + _this.el.fire(eventName, {x: x, y: y, event: ev}); + }; + } + + // create the selection-rectangle and add the css-class + if (!this.rectSelection.set.get(0)) { + this.rectSelection.set.add(this.nested.rect(bbox.width, bbox.height).addClass(this.options.classRect)); + } + + // Draw Points at the edges, if enabled + if (this.options.points && !this.rectSelection.set.get(1)) { + var ename ="touchstart", mname = "mousedown"; + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(0, 0).attr('class', this.options.classPoints + '_lt').on(mname, getMoseDownFunc('lt')).on(ename, getMoseDownFunc('lt'))); + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(bbox.width, 0).attr('class', this.options.classPoints + '_rt').on(mname, getMoseDownFunc('rt')).on(ename, getMoseDownFunc('rt'))); + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(bbox.width, bbox.height).attr('class', this.options.classPoints + '_rb').on(mname, getMoseDownFunc('rb')).on(ename, getMoseDownFunc('rb'))); + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(0, bbox.height).attr('class', this.options.classPoints + '_lb').on(mname, getMoseDownFunc('lb')).on(ename, getMoseDownFunc('lb'))); + + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(bbox.width / 2, 0).attr('class', this.options.classPoints + '_t').on(mname, getMoseDownFunc('t')).on(ename, getMoseDownFunc('t'))); + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(bbox.width, bbox.height / 2).attr('class', this.options.classPoints + '_r').on(mname, getMoseDownFunc('r')).on(ename, getMoseDownFunc('r'))); + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(bbox.width / 2, bbox.height).attr('class', this.options.classPoints + '_b').on(mname, getMoseDownFunc('b')).on(ename, getMoseDownFunc('b'))); + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(0, bbox.height / 2).attr('class', this.options.classPoints + '_l').on(mname, getMoseDownFunc('l')).on(ename, getMoseDownFunc('l'))); + + this.rectSelection.set.each(function () { + this.addClass(_this.options.classPoints); + }); + } + + // draw rotationPint, if enabled + if (this.options.rotationPoint && ((this.options.points && !this.rectSelection.set.get(9)) || (!this.options.points && !this.rectSelection.set.get(1)))) { + + var curriedEvent = function (ev) { + ev = ev || window.event; + ev.preventDefault ? ev.preventDefault() : ev.returnValue = false; + ev.stopPropagation(); + + var x = ev.pageX || ev.touches[0].pageX; + var y = ev.pageY || ev.touches[0].pageY; + _this.el.fire('rot', {x: x, y: y, event: ev}); + }; + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(bbox.width / 2, 20).attr('class', this.options.classPoints + '_rot') + .on("touchstart", curriedEvent).on("mousedown", curriedEvent)); + + } + +}; + +SelectHandler.prototype.handler = function () { + + var bbox = this.el.bbox(); + this.nested.matrix(new SVG.Matrix(this.el).translate(bbox.x, bbox.y)); + + if (this.rectSelection.isSelected) { + this.updateRectSelection(); + } + + if (this.pointSelection.isSelected) { + this.updatePointSelection(); + } + +}; + +SelectHandler.prototype.observe = function () { + var _this = this; + + if (MutationObserver) { + if (this.rectSelection.isSelected || this.pointSelection.isSelected) { + this.observerInst = this.observerInst || new MutationObserver(function () { + _this.handler(); + }); + this.observerInst.observe(this.el.node, {attributes: true}); + } else { + try { + this.observerInst.disconnect(); + delete this.observerInst; + } catch (e) { + } + } + } else { + this.el.off('DOMAttrModified.select'); + + if (this.rectSelection.isSelected || this.pointSelection.isSelected) { + this.el.on('DOMAttrModified.select', function () { + _this.handler(); + }); + } + } +}; + +SelectHandler.prototype.cleanup = function () { + + //var _this = this; + + if (!this.rectSelection.isSelected && this.rectSelection.set) { + // stop watching the element, remove the selection + this.rectSelection.set.each(function () { + this.remove(); + }); + + this.rectSelection.set.clear(); + delete this.rectSelection.set; + } + + if (!this.pointSelection.isSelected && this.pointSelection.set) { + // Remove all points, clear the set, stop watching the element + this.pointSelection.set.each(function () { + this.remove(); + }); + + this.pointSelection.set.clear(); + delete this.pointSelection.set; + } + + if (!this.pointSelection.isSelected && !this.rectSelection.isSelected) { + this.nested.remove(); + delete this.nested; + + } +}; + + +SVG.extend(SVG.Element, { + // Select element with mouse + selectize: function (value, options) { + + // Check the parameters and reassign if needed + if (typeof value === 'object') { + options = value; + value = true; + } + + var selectHandler = this.remember('_selectHandler') || new SelectHandler(this); + + selectHandler.init(value === undefined ? true : value, options || {}); + + return this; + + } +}); + +SVG.Element.prototype.selectize.defaults = { + points: true, // If true, points at the edges are drawn. Needed for resize! + classRect: 'svg_select_boundingRect', // Css-class added to the rect + classPoints: 'svg_select_points', // Css-class added to the points + radius: 7, // radius of the points + rotationPoint: true, // If true, rotation point is drawn. Needed for rotation! + deepSelect: false // If true, moving of single points is possible (only line, polyline, polyon) +}; +}()); + +(function() { +(function () { + + function ResizeHandler(el) { + + el.remember('_resizeHandler', this); + + this.el = el; + this.parameters = {}; + this.lastUpdateCall = null; + this.p = el.doc().node.createSVGPoint(); + } + + ResizeHandler.prototype.transformPoint = function(x, y, m){ + + this.p.x = x - (this.offset.x - window.pageXOffset); + this.p.y = y - (this.offset.y - window.pageYOffset); + + return this.p.matrixTransform(m || this.m); + + }; + + ResizeHandler.prototype._extractPosition = function(event) { + // Extract a position from a mouse/touch event. + // Returns { x: .., y: .. } + return { + x: event.clientX != null ? event.clientX : event.touches[0].clientX, + y: event.clientY != null ? event.clientY : event.touches[0].clientY + } + }; + + ResizeHandler.prototype.init = function (options) { + + var _this = this; + + this.stop(); + + if (options === 'stop') { + return; + } + + this.options = {}; + + // Merge options and defaults + for (var i in this.el.resize.defaults) { + this.options[i] = this.el.resize.defaults[i]; + if (typeof options[i] !== 'undefined') { + this.options[i] = options[i]; + } + } + + // We listen to all these events which are specifying different edges + this.el.on('lt.resize', function(e){ _this.resize(e || window.event); }); // Left-Top + this.el.on('rt.resize', function(e){ _this.resize(e || window.event); }); // Right-Top + this.el.on('rb.resize', function(e){ _this.resize(e || window.event); }); // Right-Bottom + this.el.on('lb.resize', function(e){ _this.resize(e || window.event); }); // Left-Bottom + + this.el.on('t.resize', function(e){ _this.resize(e || window.event); }); // Top + this.el.on('r.resize', function(e){ _this.resize(e || window.event); }); // Right + this.el.on('b.resize', function(e){ _this.resize(e || window.event); }); // Bottom + this.el.on('l.resize', function(e){ _this.resize(e || window.event); }); // Left + + this.el.on('rot.resize', function(e){ _this.resize(e || window.event); }); // Rotation + + this.el.on('point.resize', function(e){ _this.resize(e || window.event); }); // Point-Moving + + // This call ensures, that the plugin reacts to a change of snapToGrid immediately + this.update(); + + }; + + ResizeHandler.prototype.stop = function(){ + this.el.off('lt.resize'); + this.el.off('rt.resize'); + this.el.off('rb.resize'); + this.el.off('lb.resize'); + + this.el.off('t.resize'); + this.el.off('r.resize'); + this.el.off('b.resize'); + this.el.off('l.resize'); + + this.el.off('rot.resize'); + + this.el.off('point.resize'); + + return this; + }; + + ResizeHandler.prototype.resize = function (event) { + + var _this = this; + + this.m = this.el.node.getScreenCTM().inverse(); + this.offset = { x: window.pageXOffset, y: window.pageYOffset }; + + var txPt = this._extractPosition(event.detail.event); + this.parameters = { + type: this.el.type, // the type of element + p: this.transformPoint(txPt.x, txPt.y), + x: event.detail.x, // x-position of the mouse when resizing started + y: event.detail.y, // y-position of the mouse when resizing started + box: this.el.bbox(), // The bounding-box of the element + rotation: this.el.transform().rotation // The current rotation of the element + }; + + // Add font-size parameter if the element type is text + if (this.el.type === "text") { + this.parameters.fontSize = this.el.attr()["font-size"]; + } + + // the i-param in the event holds the index of the point which is moved, when using `deepSelect` + if (event.detail.i !== undefined) { + + // get the point array + var array = this.el.array().valueOf(); + + // Save the index and the point which is moved + this.parameters.i = event.detail.i; + this.parameters.pointCoords = [array[event.detail.i][0], array[event.detail.i][1]]; + } + + // Lets check which edge of the bounding-box was clicked and resize the this.el according to this + switch (event.type) { + + // Left-Top-Edge + case 'lt': + // We build a calculating function for every case which gives us the new position of the this.el + this.calc = function (diffX, diffY) { + // The procedure is always the same + // First we snap the edge to the given grid (snapping to 1px grid is normal resizing) + var snap = this.snapToGrid(diffX, diffY); + + // Now we check if the new height and width still valid (> 0) + if (this.parameters.box.width - snap[0] > 0 && this.parameters.box.height - snap[1] > 0) { + // ...if valid, we resize the this.el (which can include moving because the coord-system starts at the left-top and this edge is moving sometimes when resized) + + /* + * but first check if the element is text box, so we can change the font size instead of + * the width and height + */ + + if (this.parameters.type === "text") { + this.el.move(this.parameters.box.x + snap[0], this.parameters.box.y); + this.el.attr("font-size", this.parameters.fontSize - snap[0]); + return; + } + + snap = this.checkAspectRatio(snap); + + this.el.move(this.parameters.box.x + snap[0], this.parameters.box.y + snap[1]).size(this.parameters.box.width - snap[0], this.parameters.box.height - snap[1]); + } + }; + break; + + // Right-Top + case 'rt': + // s.a. + this.calc = function (diffX, diffY) { + var snap = this.snapToGrid(diffX, diffY, 1 << 1); + if (this.parameters.box.width + snap[0] > 0 && this.parameters.box.height - snap[1] > 0) { + if (this.parameters.type === "text") { + this.el.move(this.parameters.box.x - snap[0], this.parameters.box.y); + this.el.attr("font-size", this.parameters.fontSize + snap[0]); + return; + } + + snap = this.checkAspectRatio(snap); + + this.el.move(this.parameters.box.x, this.parameters.box.y + snap[1]).size(this.parameters.box.width + snap[0], this.parameters.box.height - snap[1]); + } + }; + break; + + // Right-Bottom + case 'rb': + // s.a. + this.calc = function (diffX, diffY) { + var snap = this.snapToGrid(diffX, diffY, 0); + if (this.parameters.box.width + snap[0] > 0 && this.parameters.box.height + snap[1] > 0) { + if (this.parameters.type === "text") { + this.el.move(this.parameters.box.x - snap[0], this.parameters.box.y); + this.el.attr("font-size", this.parameters.fontSize + snap[0]); + return; + } + + snap = this.checkAspectRatio(snap); + + this.el.move(this.parameters.box.x, this.parameters.box.y).size(this.parameters.box.width + snap[0], this.parameters.box.height + snap[1]); + } + }; + break; + + // Left-Bottom + case 'lb': + // s.a. + this.calc = function (diffX, diffY) { + var snap = this.snapToGrid(diffX, diffY, 1); + if (this.parameters.box.width - snap[0] > 0 && this.parameters.box.height + snap[1] > 0) { + if (this.parameters.type === "text") { + this.el.move(this.parameters.box.x + snap[0], this.parameters.box.y); + this.el.attr("font-size", this.parameters.fontSize - snap[0]); + return; + } + + snap = this.checkAspectRatio(snap); + + this.el.move(this.parameters.box.x + snap[0], this.parameters.box.y).size(this.parameters.box.width - snap[0], this.parameters.box.height + snap[1]); + } + }; + break; + + // Top + case 't': + // s.a. + this.calc = function (diffX, diffY) { + var snap = this.snapToGrid(diffX, diffY, 1 << 1); + if (this.parameters.box.height - snap[1] > 0) { + // Disable the font-resizing if it is not from the corner of bounding-box + if (this.parameters.type === "text") { + return; + } + + this.el.move(this.parameters.box.x, this.parameters.box.y + snap[1]).height(this.parameters.box.height - snap[1]); + } + }; + break; + + // Right + case 'r': + // s.a. + this.calc = function (diffX, diffY) { + var snap = this.snapToGrid(diffX, diffY, 0); + if (this.parameters.box.width + snap[0] > 0) { + if (this.parameters.type === "text") { + return; + } + + this.el.move(this.parameters.box.x, this.parameters.box.y).width(this.parameters.box.width + snap[0]); + } + }; + break; + + // Bottom + case 'b': + // s.a. + this.calc = function (diffX, diffY) { + var snap = this.snapToGrid(diffX, diffY, 0); + if (this.parameters.box.height + snap[1] > 0) { + if (this.parameters.type === "text") { + return; + } + + this.el.move(this.parameters.box.x, this.parameters.box.y).height(this.parameters.box.height + snap[1]); + } + }; + break; + + // Left + case 'l': + // s.a. + this.calc = function (diffX, diffY) { + var snap = this.snapToGrid(diffX, diffY, 1); + if (this.parameters.box.width - snap[0] > 0) { + if (this.parameters.type === "text") { + return; + } + + this.el.move(this.parameters.box.x + snap[0], this.parameters.box.y).width(this.parameters.box.width - snap[0]); + } + }; + break; + + // Rotation + case 'rot': + // s.a. + this.calc = function (diffX, diffY) { + + // yes this is kinda stupid but we need the mouse coords back... + var current = {x: diffX + this.parameters.p.x, y: diffY + this.parameters.p.y}; + + // start minus middle + var sAngle = Math.atan2((this.parameters.p.y - this.parameters.box.y - this.parameters.box.height / 2), (this.parameters.p.x - this.parameters.box.x - this.parameters.box.width / 2)); + + // end minus middle + var pAngle = Math.atan2((current.y - this.parameters.box.y - this.parameters.box.height / 2), (current.x - this.parameters.box.x - this.parameters.box.width / 2)); + + var angle = (pAngle - sAngle) * 180 / Math.PI; + + // We have to move the element to the center of the box first and change the rotation afterwards + // because rotation always works around a rotation-center, which is changed when moving the element + // We also set the new rotation center to the center of the box. + this.el.center(this.parameters.box.cx, this.parameters.box.cy).rotate(this.parameters.rotation + angle - angle % this.options.snapToAngle, this.parameters.box.cx, this.parameters.box.cy); + }; + break; + + // Moving one single Point (needed when an element is deepSelected which means you can move every single point of the object) + case 'point': + this.calc = function (diffX, diffY) { + + // Snapping the point to the grid + var snap = this.snapToGrid(diffX, diffY, this.parameters.pointCoords[0], this.parameters.pointCoords[1]); + + // Get the point array + var array = this.el.array().valueOf(); + + // Changing the moved point in the array + array[this.parameters.i][0] = this.parameters.pointCoords[0] + snap[0]; + array[this.parameters.i][1] = this.parameters.pointCoords[1] + snap[1]; + + // And plot the new this.el + this.el.plot(array); + }; + } + + this.el.fire('resizestart', {dx: this.parameters.x, dy: this.parameters.y, event: event}); + // When resizing started, we have to register events for... + // Touches. + SVG.on(window, 'touchmove.resize', function(e) { + _this.update(e || window.event); + }); + SVG.on(window, 'touchend.resize', function() { + _this.done(); + }); + // Mouse. + SVG.on(window, 'mousemove.resize', function (e) { + _this.update(e || window.event); + }); + SVG.on(window, 'mouseup.resize', function () { + _this.done(); + }); + + }; + + // The update-function redraws the element every time the mouse is moving + ResizeHandler.prototype.update = function (event) { + + if (!event) { + if (this.lastUpdateCall) { + this.calc(this.lastUpdateCall[0], this.lastUpdateCall[1]); + } + return; + } + + // Calculate the difference between the mouseposition at start and now + var txPt = this._extractPosition(event); + var p = this.transformPoint(txPt.x, txPt.y); + + var diffX = p.x - this.parameters.p.x, + diffY = p.y - this.parameters.p.y; + + this.lastUpdateCall = [diffX, diffY]; + + // Calculate the new position and height / width of the element + this.calc(diffX, diffY); + + // Emit an event to say we have changed. + this.el.fire('resizing', {dx: diffX, dy: diffY, event: event}); + }; + + // Is called on mouseup. + // Removes the update-function from the mousemove event + ResizeHandler.prototype.done = function () { + this.lastUpdateCall = null; + SVG.off(window, 'mousemove.resize'); + SVG.off(window, 'mouseup.resize'); + SVG.off(window, 'touchmove.resize'); + SVG.off(window, 'touchend.resize'); + this.el.fire('resizedone'); + }; + + // The flag is used to determine whether the resizing is used with a left-Point (first bit) and top-point (second bit) + // In this cases the temp-values are calculated differently + ResizeHandler.prototype.snapToGrid = function (diffX, diffY, flag, pointCoordsY) { + + var temp; + + // If `pointCoordsY` is given, a single Point has to be snapped (deepSelect). That's why we need a different temp-value + if (typeof pointCoordsY !== 'undefined') { + // Note that flag = pointCoordsX in this case + temp = [(flag + diffX) % this.options.snapToGrid, (pointCoordsY + diffY) % this.options.snapToGrid]; + } else { + // We check if the flag is set and if not we set a default-value (both bits set - which means upper-left-edge) + flag = flag == null ? 1 | 1 << 1 : flag; + temp = [(this.parameters.box.x + diffX + (flag & 1 ? 0 : this.parameters.box.width)) % this.options.snapToGrid, (this.parameters.box.y + diffY + (flag & (1 << 1) ? 0 : this.parameters.box.height)) % this.options.snapToGrid]; + } + + + diffX -= (Math.abs(temp[0]) < this.options.snapToGrid / 2 ? + temp[0] : + temp[0] - (diffX < 0 ? -this.options.snapToGrid : this.options.snapToGrid)); + diffY -= (Math.abs(temp[1]) < this.options.snapToGrid / 2 ? + temp[1] : + temp[1] - (diffY < 0 ? -this.options.snapToGrid : this.options.snapToGrid)); + + return this.constraintToBox(diffX, diffY, flag, pointCoordsY); + + }; + + // keep element within constrained box + ResizeHandler.prototype.constraintToBox = function (diffX, diffY, flag, pointCoordsY) { + //return [diffX, diffY] + var c = this.options.constraint || {}; + var orgX, orgY; + + if (typeof pointCoordsY !== 'undefined') { + orgX = flag; + orgY = pointCoordsY; + } else { + orgX = this.parameters.box.x + (flag & 1 ? 0 : this.parameters.box.width); + orgY = this.parameters.box.y + (flag & (1<<1) ? 0 : this.parameters.box.height); + } + + if (typeof c.minX !== 'undefined' && orgX + diffX < c.minX) { + diffX = c.minX - orgX; + } + + if (typeof c.maxX !== 'undefined' && orgX + diffX > c.maxX) { + diffX = c.maxX - orgX; + } + + if (typeof c.minY !== 'undefined' && orgY + diffY < c.minY) { + diffY = c.minY - orgY; + } + + if (typeof c.maxY !== 'undefined' && orgY + diffY > c.maxY) { + diffY = c.maxY - orgY; + } + + return [diffX, diffY]; + }; + + ResizeHandler.prototype.checkAspectRatio = function (snap) { + if (!this.options.saveAspectRatio) { + return snap; + } + + var updatedSnap = snap.slice(); + var aspectRatio = this.parameters.box.width / this.parameters.box.height; + var newW = this.parameters.box.width + snap[0]; + var newH = this.parameters.box.height - snap[1]; + var newAspectRatio = newW / newH; + + if (newAspectRatio < aspectRatio) { + // Height is too big. Adapt it + updatedSnap[1] = newW / aspectRatio - this.parameters.box.height; + } else if (newAspectRatio > aspectRatio) { + // Width is too big. Adapt it + updatedSnap[0] = this.parameters.box.width - newH * aspectRatio; + } + + return updatedSnap; + + }; + + SVG.extend(SVG.Element, { + // Resize element with mouse + resize: function (options) { + + (this.remember('_resizeHandler') || new ResizeHandler(this)).init(options || {}); + + return this; + + } + + }); + + SVG.Element.prototype.resize.defaults = { + snapToAngle: 0.1, // Specifies the speed the rotation is happening when moving the mouse + snapToGrid: 1, // Snaps to a grid of `snapToGrid` Pixels + constraint: {}, // keep element within constrained box + saveAspectRatio: false // Save aspect ratio when resizing using lt, rt, rb or lb points + }; + +}).call(this); +}()); + +function styleInject(css, ref) { + if ( ref === void 0 ) ref = {}; + var insertAt = ref.insertAt; + + if (!css || typeof document === 'undefined') { return; } + + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.type = 'text/css'; + + if (insertAt === 'top') { + if (head.firstChild) { + head.insertBefore(style, head.firstChild); + } else { + head.appendChild(style); + } + } else { + head.appendChild(style); + } + + if (style.styleSheet) { + style.styleSheet.cssText = css; + } else { + style.appendChild(document.createTextNode(css)); + } +} + +var css = ".apexcharts-canvas {\n position: relative;\n user-select: none;\n /* cannot give overflow: hidden as it will crop tooltips which overflow outside chart area */\n}\n\n/* scrollbar is not visible by default for legend, hence forcing the visibility */\n.apexcharts-canvas ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 6px;\n}\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0,0,0,.5);\n box-shadow: 0 0 1px rgba(255,255,255,.5);\n -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);\n}\n\n.apexcharts-inner {\n position: relative;\n}\n\n.legend-mouseover-inactive {\n transition: 0.15s ease all;\n opacity: 0.20;\n}\n\n.apexcharts-series-collapsed {\n opacity: 0;\n}\n\n.apexcharts-gridline, .apexcharts-text {\n pointer-events: none;\n}\n\n.apexcharts-tooltip {\n border-radius: 5px;\n box-shadow: 2px 2px 6px -4px #999;\n cursor: default;\n font-size: 14px;\n left: 62px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n top: 20px;\n overflow: hidden;\n white-space: nowrap;\n z-index: 12;\n transition: 0.15s ease all;\n}\n.apexcharts-tooltip.light {\n border: 1px solid #e3e3e3;\n background: rgba(255, 255, 255, 0.96);\n}\n.apexcharts-tooltip.dark {\n color: #fff;\n background: rgba(30,30,30, 0.8);\n}\n.apexcharts-tooltip * {\n font-family: inherit;\n}\n\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-line {\n pointer-events: none;\n}\n\n.apexcharts-tooltip.active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-tooltip-title {\n padding: 6px;\n font-size: 15px;\n margin-bottom: 4px;\n}\n.apexcharts-tooltip.light .apexcharts-tooltip-title {\n background: #ECEFF1;\n border-bottom: 1px solid #ddd;\n}\n.apexcharts-tooltip.dark .apexcharts-tooltip-title {\n background: rgba(0, 0, 0, 0.7);\n border-bottom: 1px solid #222;\n}\n\n.apexcharts-tooltip-text-value,\n.apexcharts-tooltip-text-z-value {\n display: inline-block;\n font-weight: 600;\n margin-left: 5px;\n}\n\n.apexcharts-tooltip-text-z-label:empty,\n.apexcharts-tooltip-text-z-value:empty {\n display: none;\n}\n\n.apexcharts-tooltip-text-value, \n.apexcharts-tooltip-text-z-value {\n font-weight: 600;\n}\n\n.apexcharts-tooltip-marker {\n width: 12px;\n height: 12px;\n position: relative;\n top: 0px;\n margin-right: 10px;\n border-radius: 50%;\n}\n\n.apexcharts-tooltip-series-group {\n padding: 0 10px;\n display: none;\n text-align: left;\n justify-content: left;\n align-items: center;\n}\n\n.apexcharts-tooltip-series-group.active .apexcharts-tooltip-marker {\n opacity: 1;\n}\n.apexcharts-tooltip-series-group.active, .apexcharts-tooltip-series-group:last-child {\n padding-bottom: 4px;\n}\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px;\n}\n.apexcharts-tooltip-candlestick {\n padding: 4px 8px;\n}\n.apexcharts-tooltip-candlestick > div {\n margin: 4px 0;\n}\n.apexcharts-tooltip-candlestick span.value {\n font-weight: bold;\n}\n\n.apexcharts-xaxistooltip {\n opacity: 0;\n padding: 9px 10px;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n\tbackground: #ECEFF1;\n border: 1px solid #90A4AE;\n transition: 0.15s ease all;\n}\n\n.apexcharts-xaxistooltip:after, .apexcharts-xaxistooltip:before {\n\tleft: 50%;\n\tborder: solid transparent;\n\tcontent: \" \";\n\theight: 0;\n\twidth: 0;\n\tposition: absolute;\n\tpointer-events: none;\n}\n\n.apexcharts-xaxistooltip:after {\n\tborder-color: rgba(236, 239, 241, 0);\n\tborder-width: 6px;\n\tmargin-left: -6px;\n}\n.apexcharts-xaxistooltip:before {\n\tborder-color: rgba(144, 164, 174, 0);\n\tborder-width: 7px;\n\tmargin-left: -7px;\n}\n\n.apexcharts-xaxistooltip-bottom:after, .apexcharts-xaxistooltip-bottom:before {\n bottom: 100%;\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: #ECEFF1;\n}\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: #90A4AE;\n}\n\n.apexcharts-xaxistooltip-top:after, .apexcharts-xaxistooltip-top:before {\n top: 100%;\n}\n.apexcharts-xaxistooltip-top:after {\n border-top-color: #ECEFF1;\n}\n.apexcharts-xaxistooltip-top:before {\n border-top-color: #90A4AE;\n}\n\n.apexcharts-xaxistooltip.active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-yaxistooltip {\n opacity: 0;\n padding: 4px 10px;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n\tbackground: #ECEFF1;\n border: 1px solid #90A4AE;\n}\n\n.apexcharts-yaxistooltip:after, .apexcharts-yaxistooltip:before {\n\ttop: 50%;\n\tborder: solid transparent;\n\tcontent: \" \";\n\theight: 0;\n\twidth: 0;\n\tposition: absolute;\n\tpointer-events: none;\n}\n.apexcharts-yaxistooltip:after {\n\tborder-color: rgba(236, 239, 241, 0);\n\tborder-width: 6px;\n\tmargin-top: -6px;\n}\n.apexcharts-yaxistooltip:before {\n\tborder-color: rgba(144, 164, 174, 0);\n\tborder-width: 7px;\n\tmargin-top: -7px;\n}\n\n.apexcharts-yaxistooltip-left:after, .apexcharts-yaxistooltip-left:before {\n left: 100%;\n}\n.apexcharts-yaxistooltip-left:after {\n border-left-color: #ECEFF1;\n}\n.apexcharts-yaxistooltip-left:before {\n border-left-color: #90A4AE;\n}\n\n.apexcharts-yaxistooltip-right:after, .apexcharts-yaxistooltip-right:before {\n right: 100%;\n}\n.apexcharts-yaxistooltip-right:after {\n border-right-color: #ECEFF1;\n}\n.apexcharts-yaxistooltip-right:before {\n border-right-color: #90A4AE;\n}\n\n.apexcharts-yaxistooltip.active {\n opacity: 1;\n}\n\n.apexcharts-xcrosshairs, .apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: 0.15s ease all;\n}\n\n.apexcharts-xcrosshairs.active, .apexcharts-ycrosshairs.active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-ycrosshairs-hidden {\n opacity: 0;\n}\n\n.apexcharts-zoom-rect {\n pointer-events: none;\n}\n.apexcharts-selection-rect {\n cursor: move;\n}\n\n.svg_select_points, .svg_select_points_rot {\n opacity: 0;\n visibility: hidden;\n}\n.svg_select_points_l, .svg_select_points_r {\n cursor: ew-resize;\n opacity: 1;\n visibility: visible;\n fill: #888;\n}\n.apexcharts-canvas.zoomable .hovering-zoom {\n cursor: crosshair\n}\n.apexcharts-canvas.zoomable .hovering-pan {\n cursor: move\n}\n\n.apexcharts-xaxis,\n.apexcharts-yaxis {\n pointer-events: none;\n}\n\n.apexcharts-zoom-icon, \n.apexcharts-zoom-in-icon,\n.apexcharts-zoom-out-icon,\n.apexcharts-reset-zoom-icon, \n.apexcharts-pan-icon, \n.apexcharts-selection-icon,\n.apexcharts-menu-icon, \n.apexcharts-toolbar-custom-icon {\n cursor: pointer;\n width: 20px;\n height: 20px;\n line-height: 24px;\n color: #6E8192;\n text-align: center;\n}\n\n.apexcharts-zoom-icon svg, \n.apexcharts-zoom-in-icon svg,\n.apexcharts-zoom-out-icon svg,\n.apexcharts-reset-zoom-icon svg,\n.apexcharts-menu-icon svg {\n fill: #6E8192;\n}\n.apexcharts-selection-icon svg {\n fill: #444;\n transform: scale(0.76)\n}\n.apexcharts-zoom-icon.selected svg, \n.apexcharts-selection-icon.selected svg, \n.apexcharts-reset-zoom-icon.selected svg {\n fill: #008FFB;\n}\n.apexcharts-selection-icon:not(.selected):hover svg,\n.apexcharts-zoom-icon:not(.selected):hover svg, \n.apexcharts-zoom-in-icon:hover svg, \n.apexcharts-zoom-out-icon:hover svg, \n.apexcharts-reset-zoom-icon:hover svg, \n.apexcharts-menu-icon:hover svg {\n fill: #333;\n}\n\n.apexcharts-selection-icon, .apexcharts-menu-icon {\n position: relative;\n}\n.apexcharts-reset-zoom-icon {\n margin-left: 5px;\n}\n.apexcharts-zoom-icon, .apexcharts-reset-zoom-icon, .apexcharts-menu-icon {\n transform: scale(0.85);\n}\n\n.apexcharts-zoom-in-icon, .apexcharts-zoom-out-icon {\n transform: scale(0.7)\n}\n\n.apexcharts-zoom-out-icon {\n margin-right: 3px;\n}\n\n.apexcharts-pan-icon {\n transform: scale(0.62);\n position: relative;\n left: 1px;\n top: 0px;\n}\n.apexcharts-pan-icon svg {\n fill: #fff;\n stroke: #6E8192;\n stroke-width: 2;\n}\n.apexcharts-pan-icon.selected svg {\n stroke: #008FFB;\n}\n.apexcharts-pan-icon:not(.selected):hover svg {\n stroke: #333;\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n top: 0px;\n right: 3px;\n max-width: 176px;\n text-align: right;\n border-radius: 3px;\n padding: 0px 6px 2px 6px;\n display: flex;\n justify-content: space-between;\n align-items: center; \n}\n\n.apexcharts-toolbar svg {\n pointer-events: none;\n}\n\n.apexcharts-menu {\n background: #fff;\n position: absolute;\n top: 100%;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 3px;\n right: 10px;\n opacity: 0;\n min-width: 110px;\n transition: 0.15s ease all;\n pointer-events: none;\n}\n\n.apexcharts-menu.open {\n opacity: 1;\n pointer-events: all;\n transition: 0.15s ease all;\n}\n\n.apexcharts-menu-item {\n padding: 6px 7px;\n font-size: 12px;\n cursor: pointer;\n}\n.apexcharts-menu-item:hover {\n background: #eee;\n}\n\n@media screen and (min-width: 768px) {\n .apexcharts-toolbar {\n /*opacity: 0;*/\n }\n\n .apexcharts-canvas:hover .apexcharts-toolbar {\n opacity: 1;\n } \n}\n\n.apexcharts-datalabel.hidden {\n opacity: 0;\n}\n\n.apexcharts-pie-label,\n.apexcharts-datalabel, .apexcharts-datalabel-label, .apexcharts-datalabel-value {\n cursor: default;\n pointer-events: none;\n}\n\n.apexcharts-pie-label-delay {\n opacity: 0;\n animation-name: opaque;\n animation-duration: 0.3s;\n animation-fill-mode: forwards;\n animation-timing-function: ease;\n}\n\n.apexcharts-canvas .hidden {\n opacity: 0;\n}\n\n.apexcharts-hide .apexcharts-series-points {\n opacity: 0;\n}\n\n.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events, .apexcharts-radar-series path, .apexcharts-radar-series polygon {\n pointer-events: none;\n}\n\n/* markers */\n\n.apexcharts-marker {\n transition: 0.15s ease all;\n}\n\n@keyframes opaque {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}"; +styleInject(css); + +/* + * classList.js: Cross-browser full element.classList implementation. + * 1.2.20171210 + * + * By Eli Grey, http://eligrey.com + * License: Dedicated to the public domain. + * See https://github.com/eligrey/classList.js/blob/master/LICENSE.md + */ + +/*global self, document, DOMException */ + +/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */ +if ("document" in self) { + // Full polyfill for browsers with no classList support + // Including IE < Edge missing SVGElement.classList + if (!("classList" in document.createElement("_")) || document.createElementNS && !("classList" in document.createElementNS("http://www.w3.org/2000/svg", "g"))) { + (function (view) { + + if (!('Element' in view)) return; + + var classListProp = "classList", + protoProp = "prototype", + elemCtrProto = view.Element[protoProp], + objCtr = Object, + strTrim = String[protoProp].trim || function () { + return this.replace(/^\s+|\s+$/g, ""); + }, + arrIndexOf = Array[protoProp].indexOf || function (item) { + var i = 0, + len = this.length; + + for (; i < len; i++) { + if (i in this && this[i] === item) { + return i; + } + } + + return -1; + } // Vendors: please allow content code to instantiate DOMExceptions + , + DOMEx = function DOMEx(type, message) { + this.name = type; + this.code = DOMException[type]; + this.message = message; + }, + checkTokenAndGetIndex = function checkTokenAndGetIndex(classList, token) { + if (token === "") { + throw new DOMEx("SYNTAX_ERR", "The token must not be empty."); + } + + if (/\s/.test(token)) { + throw new DOMEx("INVALID_CHARACTER_ERR", "The token must not contain space characters."); + } + + return arrIndexOf.call(classList, token); + }, + ClassList = function ClassList(elem) { + var trimmedClasses = strTrim.call(elem.getAttribute("class") || ""), + classes = trimmedClasses ? trimmedClasses.split(/\s+/) : [], + i = 0, + len = classes.length; + + for (; i < len; i++) { + this.push(classes[i]); + } + + this._updateClassName = function () { + elem.setAttribute("class", this.toString()); + }; + }, + classListProto = ClassList[protoProp] = [], + classListGetter = function classListGetter() { + return new ClassList(this); + }; // Most DOMException implementations don't allow calling DOMException's toString() + // on non-DOMExceptions. Error's toString() is sufficient here. + + + DOMEx[protoProp] = Error[protoProp]; + + classListProto.item = function (i) { + return this[i] || null; + }; + + classListProto.contains = function (token) { + return ~checkTokenAndGetIndex(this, token + ""); + }; + + classListProto.add = function () { + var tokens = arguments, + i = 0, + l = tokens.length, + token, + updated = false; + + do { + token = tokens[i] + ""; + + if (!~checkTokenAndGetIndex(this, token)) { + this.push(token); + updated = true; + } + } while (++i < l); + + if (updated) { + this._updateClassName(); + } + }; + + classListProto.remove = function () { + var tokens = arguments, + i = 0, + l = tokens.length, + token, + updated = false, + index; + + do { + token = tokens[i] + ""; + index = checkTokenAndGetIndex(this, token); + + while (~index) { + this.splice(index, 1); + updated = true; + index = checkTokenAndGetIndex(this, token); + } + } while (++i < l); + + if (updated) { + this._updateClassName(); + } + }; + + classListProto.toggle = function (token, force) { + var result = this.contains(token), + method = result ? force !== true && "remove" : force !== false && "add"; + + if (method) { + this[method](token); + } + + if (force === true || force === false) { + return force; + } else { + return !result; + } + }; + + classListProto.replace = function (token, replacement_token) { + var index = checkTokenAndGetIndex(token + ""); + + if (~index) { + this.splice(index, 1, replacement_token); + + this._updateClassName(); + } + }; + + classListProto.toString = function () { + return this.join(" "); + }; + + if (objCtr.defineProperty) { + var classListPropDesc = { + get: classListGetter, + enumerable: true, + configurable: true + }; + + try { + objCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc); + } catch (ex) { + // IE 8 doesn't support enumerable:true + // adding undefined to fight this issue https://github.com/eligrey/classList.js/issues/36 + // modernie IE8-MSW7 machine has IE8 8.0.6001.18702 and is affected + if (ex.number === undefined || ex.number === -0x7FF5EC54) { + classListPropDesc.enumerable = false; + objCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc); + } + } + } else if (objCtr[protoProp].__defineGetter__) { + elemCtrProto.__defineGetter__(classListProp, classListGetter); + } + })(self); + } // There is full or partial native classList support, so just check if we need + // to normalize the add/remove and toggle APIs. + + + (function () { + + var testElement = document.createElement("_"); + testElement.classList.add("c1", "c2"); // Polyfill for IE 10/11 and Firefox <26, where classList.add and + // classList.remove exist but support only one argument at a time. + + if (!testElement.classList.contains("c2")) { + var createMethod = function createMethod(method) { + var original = DOMTokenList.prototype[method]; + + DOMTokenList.prototype[method] = function (token) { + var i, + len = arguments.length; + + for (i = 0; i < len; i++) { + token = arguments[i]; + original.call(this, token); + } + }; + }; + + createMethod('add'); + createMethod('remove'); + } + + testElement.classList.toggle("c3", false); // Polyfill for IE 10 and Firefox <24, where classList.toggle does not + // support the second argument. + + if (testElement.classList.contains("c3")) { + var _toggle = DOMTokenList.prototype.toggle; + + DOMTokenList.prototype.toggle = function (token, force) { + if (1 in arguments && !this.contains(token) === !force) { + return force; + } else { + return _toggle.call(this, token); + } + }; + } // replace() polyfill + + + if (!("replace" in document.createElement("_").classList)) { + DOMTokenList.prototype.replace = function (token, replacement_token) { + var tokens = this.toString().split(" "), + index = tokens.indexOf(token + ""); + + if (~index) { + tokens = tokens.slice(index); + this.remove.apply(this, tokens); + this.add(replacement_token); + this.add.apply(this, tokens.slice(1)); + } + }; + } + + testElement = null; + })(); +} + +/** +* Detect Element Resize +* +* https://github.com/sdecima/javascript-detect-element-resize +* Sebastian Decima +* +* version: 0.5.3 +**/ +(function () { + var stylesCreated = false; + + function resetTriggers(element) { + var triggers = element.__resizeTriggers__, + expand = triggers.firstElementChild, + contract = triggers.lastElementChild, + expandChild = expand.firstElementChild; + contract.scrollLeft = contract.scrollWidth; + contract.scrollTop = contract.scrollHeight; + expandChild.style.width = expand.offsetWidth + 1 + 'px'; + expandChild.style.height = expand.offsetHeight + 1 + 'px'; + expand.scrollLeft = expand.scrollWidth; + expand.scrollTop = expand.scrollHeight; + } + + function checkTriggers(element) { + return element.offsetWidth != element.__resizeLast__.width || element.offsetHeight != element.__resizeLast__.height; + } + + function scrollListener(e) { + var element = this; + resetTriggers(this); + if (this.__resizeRAF__) cancelFrame(this.__resizeRAF__); + this.__resizeRAF__ = requestFrame(function () { + if (checkTriggers(element)) { + element.__resizeLast__.width = element.offsetWidth; + element.__resizeLast__.height = element.offsetHeight; + + element.__resizeListeners__.forEach(function (fn) { + fn.call(e); + }); + } + }); + } + + function createStyles() { + if (!stylesCreated) { + // opacity:0 works around a chrome bug https://code.google.com/p/chromium/issues/detail?id=286360 + var css = (animationKeyframes || '') + '.resize-triggers { ' + (animationStyle || '') + 'visibility: hidden; opacity: 0; } ' + '.resize-triggers, .resize-triggers > div, .contract-trigger:before { content: \" \"; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', + head = document.head || document.getElementsByTagName('head')[0], + style = document.createElement('style'); + style.type = 'text/css'; + + if (style.styleSheet) { + style.styleSheet.cssText = css; + } else { + style.appendChild(document.createTextNode(css)); + } + + head.appendChild(style); + stylesCreated = true; + } + } + + var requestFrame = function () { + var raf = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || function (fn) { + return window.setTimeout(fn, 20); + }; + + return function (fn) { + return raf(fn); + }; + }(); + + var cancelFrame = function () { + var cancel = window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || window.clearTimeout; + return function (id) { + return cancel(id); + }; + }(); + /* Detect CSS Animations support to detect element display/re-attach */ + + + var animation = false, + keyframeprefix = '', + animationstartevent = 'animationstart', + domPrefixes = 'Webkit Moz O ms'.split(' '), + startEvents = 'webkitAnimationStart animationstart oAnimationStart MSAnimationStart'.split(' '), + pfx = ''; + { + var elm = document.createElement('fakeelement'); + + if (elm.style.animationName !== undefined) { + animation = true; + } + + if (animation === false) { + for (var i = 0; i < domPrefixes.length; i++) { + if (elm.style[domPrefixes[i] + 'AnimationName'] !== undefined) { + pfx = domPrefixes[i]; + keyframeprefix = '-' + pfx.toLowerCase() + '-'; + animationstartevent = startEvents[i]; + break; + } + } + } + } + var animationName = 'resizeanim'; + var animationKeyframes = '@' + keyframeprefix + 'keyframes ' + animationName + ' { from { opacity: 0; } to { opacity: 0; } } '; + var animationStyle = keyframeprefix + 'animation: 1ms ' + animationName + '; '; + + window.addResizeListener = function (element, fn) { + if (!element.__resizeTriggers__) { + if (getComputedStyle(element).position == 'static') element.style.position = 'relative'; + createStyles(); + element.__resizeLast__ = {}; + element.__resizeListeners__ = []; + (element.__resizeTriggers__ = document.createElement('div')).className = 'resize-triggers'; + element.__resizeTriggers__.innerHTML = '
' + '
'; + element.appendChild(element.__resizeTriggers__); + resetTriggers(element); + element.addEventListener('scroll', scrollListener, true); + /* Listen for a css animation to detect element display/re-attach */ + + animationstartevent && element.__resizeTriggers__.addEventListener(animationstartevent, function (e) { + if (e.animationName == animationName) { + resetTriggers(element); + } + }); + } + + element.__resizeListeners__.push(fn); + }; + + window.removeResizeListener = function (element, fn) { + if (element) { + element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1); + + if (!element.__resizeListeners__.length) { + element.removeEventListener('scroll', scrollListener); + element.__resizeTriggers__ = !element.removeChild(element.__resizeTriggers__); + } + } + }; +})(); + +window.Apex = {}; +/** + * + * @module ApexCharts + **/ + +var ApexCharts$1 = +/*#__PURE__*/ +function () { + function ApexCharts(el, opts) { + _classCallCheck(this, ApexCharts); + + this.opts = opts; + this.ctx = this; // Pass the user supplied options to the Base Class where these options will be extended with defaults. The returned object from Base Class will become the config object in the entire codebase. + + this.w = new Base(opts).init(); + this.el = el; + this.w.globals.cuid = (Math.random() + 1).toString(36).substring(4); + this.w.globals.chartID = this.w.config.chart.id ? this.w.config.chart.id : this.w.globals.cuid; + this.initModules(); + this.create = Utils.bind(this.create, this); + this.windowResizeHandler = this.windowResize.bind(this); + } + /** + * The primary method user will call to render the chart. + */ + + + _createClass(ApexCharts, [{ + key: "render", + value: function render() { + var _this = this; + + // main method + return new Promise$1(function (resolve, reject) { + // only draw chart, if element found + if (_this.el !== null) { + if (typeof Apex._chartInstances === 'undefined') { + Apex._chartInstances = []; + } + + if (_this.w.config.chart.id) { + Apex._chartInstances.push({ + id: _this.w.globals.chartID, + group: _this.w.config.chart.group, + chart: _this + }); + } // set the locale here + + + _this.setLocale(_this.w.config.chart.defaultLocale); + + var beforeMount = _this.w.config.chart.events.beforeMount; + + if (typeof beforeMount === 'function') { + beforeMount(_this, _this.w); + } + + _this.fireEvent('beforeMount', [_this, _this.w]); + + window.addEventListener('resize', _this.windowResizeHandler); + window.addResizeListener(_this.el.parentNode, _this.parentResizeCallback.bind(_this)); + + var graphData = _this.create(_this.w.config.series, {}); + + if (!graphData) return resolve(_this); + + _this.mount(graphData).then(function () { + resolve(graphData); + + if (typeof _this.w.config.chart.events.mounted === 'function') { + _this.w.config.chart.events.mounted(_this, _this.w); + } + + _this.fireEvent('mounted', [_this, _this.w]); + }).catch(function (e) { + reject(e); // handle error in case no data or element not found + }); + } else { + reject(new Error('Element not found')); + } + }); + } + }, { + key: "initModules", + value: function initModules() { + this.animations = new Animations(this.ctx); + this.annotations = new Annotations(this.ctx); + this.core = new Core(this.el, this); + this.grid = new Grid(this); + this.coreUtils = new CoreUtils(this); + this.config = new Config({}); + this.crosshairs = new Crosshairs(this.ctx); + this.options = new Options(); + this.responsive = new Responsive(this.ctx); + this.series = new Series(this.ctx); + this.theme = new Theme(this.ctx); + this.formatters = new Formatters(this.ctx); + this.titleSubtitle = new TitleSubtitle(this.ctx); + this.legend = new Legend(this.ctx); + this.toolbar = new Toolbar(this.ctx); + this.dimensions = new Dimensions(this.ctx); + this.zoomPanSelection = new ZoomPanSelection(this.ctx); + this.w.globals.tooltip = new Tooltip(this.ctx); + } + }, { + key: "addEventListener", + value: function addEventListener(name$$1, handler) { + var w = this.w; + + if (w.globals.events.hasOwnProperty(name$$1)) { + w.globals.events[name$$1].push(handler); + } else { + w.globals.events[name$$1] = [handler]; + } + } + }, { + key: "removeEventListener", + value: function removeEventListener(name$$1, handler) { + var w = this.w; + + if (!w.globals.events.hasOwnProperty(name$$1)) { + return; + } + + var index = w.globals.events[name$$1].indexOf(handler); + + if (index !== -1) { + w.globals.events[name$$1].splice(index, 1); + } + } + }, { + key: "fireEvent", + value: function fireEvent(name$$1, args) { + var w = this.w; + + if (!w.globals.events.hasOwnProperty(name$$1)) { + return; + } + + if (!args || !args.length) { + args = []; + } + + var evs = w.globals.events[name$$1]; + var l = evs.length; + + for (var i = 0; i < l; i++) { + evs[i].apply(null, args); + } + } + }, { + key: "create", + value: function create(ser, opts) { + var w = this.w; + this.initModules(); + var gl = this.w.globals; + gl.noData = false; + gl.animationEnded = false; + this.responsive.checkResponsiveConfig(opts); + + if (this.el === null) { + gl.animationEnded = true; + return null; + } + + this.core.setupElements(); + + if (gl.svgWidth === 0) { + // if the element is hidden, skip drawing + gl.animationEnded = true; + return null; + } + + var combo = CoreUtils.checkComboSeries(ser); + gl.comboCharts = combo.comboCharts; + gl.comboChartsHasBars = combo.comboChartsHasBars; + + if (ser.length === 0 || ser.length === 1 && ser[0].data && ser[0].data.length === 0) { + this.series.handleNoData(); + } + + this.setupEventHandlers(); + this.core.parseData(ser); // this is a good time to set theme colors first + + this.theme.init(); // labelFormatters should be called before dimensions as in dimensions we need text labels width + // as markers accepts array, we need to setup global markers for easier access + + var markers = new Markers(this); + markers.setGlobalMarkerSize(); + this.formatters.setLabelFormatters(); + this.titleSubtitle.draw(); // legend is calculated here before coreCalculations because it affects the plottable area + + this.legend.init(); // check whether in multiple series, all series share the same X + + this.series.hasAllSeriesEqualX(); // coreCalculations will give the min/max range and yaxis/axis values. It should be called here to set series variable from config to globals + + if (gl.axisCharts) { + this.core.coreCalculations(); + + if (w.config.xaxis.type !== 'category') { + // as we have minX and maxX values, determine the default DateTimeFormat for time series + this.formatters.setLabelFormatters(); + } + } // we need to generate yaxis for heatmap separately as we are not showing numerics there, but seriesNames. There are some tweaks which are required for heatmap to align labels correctly which are done in below function + // Also we need to do this before calcuting Dimentions plotCoords() method of Dimensions + + + this.formatters.heatmapLabelFormatters(); // We got plottable area here, next task would be to calculate axis areas + + this.dimensions.plotCoords(); + var xyRatios = this.core.xySettings(); + this.grid.createGridMask(); + var elGraph = this.core.plotChartType(ser, xyRatios); // after all the drawing calculations, shift the graphical area (actual charts/bars) excluding legends + + this.core.shiftGraphPosition(); + var dim = { + plot: { + left: w.globals.translateX, + top: w.globals.translateY, + width: w.globals.gridWidth, + height: w.globals.gridHeight + } + }; + return { + elGraph: elGraph, + xyRatios: xyRatios, + elInner: w.globals.dom.elGraphical, + dimensions: dim + }; + } + }, { + key: "mount", + value: function mount() { + var graphData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + var me = this; + var w = me.w; + return new Promise$1(function (resolve, reject) { + // no data to display + if (me.el === null) { + return reject(new Error('Not enough data to display or target element not found')); + } else if (graphData === null || w.globals.allSeriesCollapsed) { + me.series.handleNoData(); + } + + me.core.drawAxis(w.config.chart.type, graphData.xyRatios); + me.grid = new Grid(me); + + if (w.config.grid.position === 'back') { + me.grid.drawGrid(); + } + + if (w.config.annotations.position === 'back') { + me.annotations.drawAnnotations(); + } + + if (graphData.elGraph instanceof Array) { + for (var g = 0; g < graphData.elGraph.length; g++) { + w.globals.dom.elGraphical.add(graphData.elGraph[g]); + } + } else { + w.globals.dom.elGraphical.add(graphData.elGraph); + } + + if (w.config.grid.position === 'front') { + me.grid.drawGrid(); + } + + if (w.config.xaxis.crosshairs.position === 'front') { + me.crosshairs.drawXCrosshairs(); + } + + if (w.config.yaxis[0].crosshairs.position === 'front') { + me.crosshairs.drawYCrosshairs(); + } + + if (w.config.annotations.position === 'front') { + me.annotations.drawAnnotations(); + } + + if (!w.globals.noData) { + // draw tooltips at the end + if (w.config.tooltip.enabled && !w.globals.noData) { + me.w.globals.tooltip.drawTooltip(graphData.xyRatios); + } + + if (w.globals.axisCharts && w.globals.isXNumeric) { + if (w.config.chart.zoom.enabled || w.config.chart.selection && w.config.chart.selection.enabled || w.config.chart.pan && w.config.chart.pan.enabled) { + me.zoomPanSelection.init({ + xyRatios: graphData.xyRatios + }); + } + } else { + var tools = w.config.chart.toolbar.tools; + tools.zoom = false; + tools.zoomin = false; + tools.zoomout = false; + tools.selection = false; + tools.pan = false; + tools.reset = false; + } + + if (w.config.chart.toolbar.show && !w.globals.allSeriesCollapsed) { + me.toolbar.createToolbar(); + } + } + + if (w.globals.memory.methodsToExec.length > 0) { + w.globals.memory.methodsToExec.forEach(function (fn) { + fn.method(fn.params, false, fn.context); + }); + } + + resolve(me); + }); + } + }, { + key: "clearPreviousPaths", + value: function clearPreviousPaths() { + var w = this.w; + w.globals.previousPaths = []; + w.globals.allSeriesCollapsed = false; + w.globals.collapsedSeries = []; + w.globals.collapsedSeriesIndices = []; + } + /** + * Allows users to update Options after the chart has rendered. + * + * @param {object} options - A new config object can be passed which will be merged with the existing config object + * @param {boolean} redraw - should redraw from beginning or should use existing paths and redraw from there + * @param {boolean} animate - should animate or not on updating Options + */ + + }, { + key: "updateOptions", + value: function updateOptions(options$$1) { + var redraw = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + var animate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + var overwriteInitialConfig = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true; + var w = this.w; + + if (options$$1.series) { + if (options$$1.series[0].data) { + options$$1.series = options$$1.series.map(function (s, i) { + return _objectSpread({}, w.config.series[i], { + name: s.name ? s.name : w.config.series[i].name, + type: s.type, + data: s.data + }); + }); + } // user updated the series via updateOptions() function. + // Hence, we need to reset axis min/max to avoid zooming issues + + + this.revertDefaultAxisMinMax(); + } // user has set x-axis min/max externally - hence we need to forcefully set the xaxis min/max + + + if (options$$1.xaxis) { + if (options$$1.xaxis.min || options$$1.xaxis.max) { + this.forceXAxisUpdate(options$$1); + } + /* fixes apexcharts.js#369 and react-apexcharts#46 */ + + + if (options$$1.xaxis.categories && options$$1.xaxis.categories.length && w.config.xaxis.convertedCatToNumeric) { + options$$1 = Defaults.convertCatToNumeric(options$$1); + } + } + + if (w.globals.collapsedSeriesIndices.length > 0) { + this.clearPreviousPaths(); + } + + return this._updateOptions(options$$1, redraw, animate, overwriteInitialConfig); + } + /** + * private method to update Options. + * + * @param {object} options - A new config object can be passed which will be merged with the existing config object + * @param {boolean} redraw - should redraw from beginning or should use existing paths and redraw from there + * @param {boolean} animate - should animate or not on updating Options + * @param {boolean} overwriteInitialConfig - should update the initial config or not + */ + + }, { + key: "_updateOptions", + value: function _updateOptions(options$$1) { + var redraw = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + var animate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + var overwriteInitialConfig = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; + var charts = this.getSyncedCharts(); + charts.forEach(function (ch) { + var w = ch.w; + w.globals.shouldAnimate = animate; + + if (!redraw) { + w.globals.resized = true; + w.globals.dataChanged = true; + + if (animate) { + ch.series.getPreviousPaths(); + } + } + + if (options$$1 && _typeof(options$$1) === 'object') { + ch.config = new Config(options$$1); + options$$1 = CoreUtils.extendArrayProps(ch.config, options$$1); + w.config = Utils.extend(w.config, options$$1); + + if (overwriteInitialConfig) { + // we need to forget the lastXAxis and lastYAxis is user forcefully overwriteInitialConfig. If we do not do this, and next time when user zooms the chart after setting yaxis.min/max or xaxis.min/max - the stored lastXAxis will never allow the chart to use the updated min/max by user. + w.globals.lastXAxis = []; + w.globals.lastYAxis = []; // After forgetting lastAxes, we need to restore the new config in initialConfig/initialSeries + + w.globals.initialConfig = Utils.extend({}, w.config); + w.globals.initialSeries = JSON.parse(JSON.stringify(w.config.series)); + } + } + + return ch.update(options$$1); + }); + } + /** + * Allows users to update Series after the chart has rendered. + * + * @param {array} series - New series which will override the existing + */ + + }, { + key: "updateSeries", + value: function updateSeries() { + var newSeries = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var animate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var overwriteInitialSeries = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + this.revertDefaultAxisMinMax(); + return this._updateSeries(newSeries, animate, overwriteInitialSeries); + } + /** + * Allows users to append a new series after the chart has rendered. + * + * @param {array} newSerie - New serie which will be appended to the existing series + */ + + }, { + key: "appendSeries", + value: function appendSeries(newSerie) { + var animate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var newSeries = this.w.config.series.slice(); + newSeries.push(newSerie); + this.revertDefaultAxisMinMax(); + return this._updateSeries(newSeries, animate); + } + /** + * Private method to update Series. + * + * @param {array} series - New series which will override the existing + */ + + }, { + key: "_updateSeries", + value: function _updateSeries(newSeries, animate) { + var overwriteInitialSeries = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; + var w = this.w; + this.w.globals.shouldAnimate = animate; + w.globals.dataChanged = true; // if user has collapsed some series with legend, we need to clear those + + if (w.globals.allSeriesCollapsed) { + w.globals.allSeriesCollapsed = false; + } + + if (animate) { + this.series.getPreviousPaths(); + } + + var existingSeries; // axis charts + + if (newSeries[0].data) { + existingSeries = newSeries.map(function (s, i) { + return _objectSpread({}, w.config.series[i], { + name: s.name ? s.name : w.config.series[i].name, + type: s.type, + data: s.data + }); + }); + w.config.series = existingSeries; + } else { + // non-axis chart (pie/radialbar) + w.config.series = newSeries.slice(); + } + + if (overwriteInitialSeries) { + w.globals.initialConfig.series = JSON.parse(JSON.stringify(w.config.series)); + w.globals.initialSeries = JSON.parse(JSON.stringify(w.config.series)); + } + + return this.update(); + } + /** + * Get all charts in the same "group" (including the instance which is called upon) to sync them when user zooms in/out or pan. + */ + + }, { + key: "getSyncedCharts", + value: function getSyncedCharts() { + var chartGroups = this.getGroupedCharts(); + var allCharts = [this]; + + if (chartGroups.length) { + allCharts = []; + chartGroups.forEach(function (ch) { + allCharts.push(ch); + }); + } + + return allCharts; + } + /** + * Get charts in the same "group" (excluding the instance which is called upon) to perform operations on the other charts of the same group (eg., tooltip hovering) + */ + + }, { + key: "getGroupedCharts", + value: function getGroupedCharts() { + var _this2 = this; + + return Apex._chartInstances.filter(function (ch) { + if (ch.group) { + return true; + } + }).map(function (ch) { + return _this2.w.config.chart.group === ch.group ? ch.chart : _this2; + }); + } + /** + * Allows users to append Data to series. + * + * @param {array} newData - New data in the same format as series + */ + + }, { + key: "appendData", + value: function appendData(newData) { + var overwriteInitialSeries = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var me = this; + me.w.globals.dataChanged = true; + me.series.getPreviousPaths(); + var newSeries = me.w.config.series.slice(); + + for (var i = 0; i < newSeries.length; i++) { + if (typeof newData[i] !== 'undefined') { + for (var j = 0; j < newData[i].data.length; j++) { + newSeries[i].data.push(newData[i].data[j]); + } + } + } + + me.w.config.series = newSeries; + + if (overwriteInitialSeries) { + me.w.globals.initialSeries = JSON.parse(JSON.stringify(me.w.config.series)); + } + + return this.update(); + } + }, { + key: "update", + value: function update(options$$1) { + var _this3 = this; + + return new Promise$1(function (resolve, reject) { + _this3.clear(); + + var graphData = _this3.create(_this3.w.config.series, options$$1); + + if (!graphData) return resolve(_this3); + + _this3.mount(graphData).then(function () { + if (typeof _this3.w.config.chart.events.updated === 'function') { + _this3.w.config.chart.events.updated(_this3, _this3.w); + } + + _this3.fireEvent('updated', [_this3, _this3.w]); + + _this3.w.globals.isDirty = true; + resolve(_this3); + }).catch(function (e) { + reject(e); + }); + }); + } + }, { + key: "forceXAxisUpdate", + value: function forceXAxisUpdate(options$$1) { + var w = this.w; + + if (typeof options$$1.xaxis.min !== 'undefined') { + w.config.xaxis.min = options$$1.xaxis.min; + w.globals.lastXAxis.min = options$$1.xaxis.min; + } + + if (typeof options$$1.xaxis.max !== 'undefined') { + w.config.xaxis.max = options$$1.xaxis.max; + w.globals.lastXAxis.max = options$$1.xaxis.max; + } + } + /** + * This function reverts the yaxis and xaxis min/max values to what it was when the chart was defined. + * This function fixes an important bug where a user might load a new series after zooming in/out of previous series which resulted in wrong min/max + * Also, this should never be called internally on zoom/pan - the reset should only happen when user calls the updateSeries() function externally + */ + + }, { + key: "revertDefaultAxisMinMax", + value: function revertDefaultAxisMinMax() { + var w = this.w; + w.config.xaxis.min = w.globals.lastXAxis.min; + w.config.xaxis.max = w.globals.lastXAxis.max; + w.config.yaxis.map(function (yaxe, index) { + if (w.globals.zoomed) { + // if user has zoomed, and this function is called + // then we need to get the lastAxis min and max + if (typeof w.globals.lastYAxis[index] !== 'undefined') { + yaxe.min = w.globals.lastYAxis[index].min; + yaxe.max = w.globals.lastYAxis[index].max; + } + } + }); + } + }, { + key: "clear", + value: function clear() { + if (this.zoomPanSelection) { + this.zoomPanSelection.destroy(); + } + + if (this.toolbar) { + this.toolbar.destroy(); + } + + this.animations = null; + this.annotations = null; + this.core = null; + this.grid = null; + this.series = null; + this.responsive = null; + this.theme = null; + this.formatters = null; + this.titleSubtitle = null; + this.legend = null; + this.dimensions = null; + this.options = null; + this.crosshairs = null; + this.zoomPanSelection = null; + this.toolbar = null; + this.w.globals.tooltip = null; + this.clearDomElements(); + } + }, { + key: "killSVG", + value: function killSVG(draw) { + return new Promise$1(function (resolve, reject) { + draw.each(function (i, children) { + this.removeClass('*'); + this.off(); + this.stop(); + }, true); + draw.ungroup(); + draw.clear(); + resolve('done'); + }); + } + }, { + key: "clearDomElements", + value: function clearDomElements() { + var domEls = this.w.globals.dom; + + if (this.el !== null) { + // remove all child elements - resetting the whole chart + while (this.el.firstChild) { + this.el.removeChild(this.el.firstChild); + } + } + + this.killSVG(domEls.Paper); + domEls.Paper.remove(); + domEls.elWrap = null; + domEls.elGraphical = null; + domEls.elLegendWrap = null; + domEls.baseEl = null; + domEls.elGridRect = null; + domEls.elGridRectMask = null; + domEls.elGridRectMarkerMask = null; + domEls.elDefs = null; + } + /** + * Destroy the chart instance by removing all elements which also clean up event listeners on those elements. + */ + + }, { + key: "destroy", + value: function destroy() { + this.clear(); // remove the chart's instance from the global Apex._chartInstances + + var chartID = this.w.config.chart.id; + + if (chartID) { + Apex._chartInstances.forEach(function (c, i) { + if (c.id === chartID) { + Apex._chartInstances.splice(i, 1); + } + }); + } + + window.removeEventListener('resize', this.windowResizeHandler); + window.removeResizeListener(this.el.parentNode, this.parentResizeCallback.bind(this)); + } + /** + * Allows the user to provide data attrs in the element and the chart will render automatically when this method is called by searching for the elements containing 'data-apexcharts' attribute + */ + + }, { + key: "toggleSeries", + value: function toggleSeries(seriesName) { + var targetElement = this.series.getSeriesByName(seriesName); + var seriesCnt = parseInt(targetElement.getAttribute('data:realIndex')); + var isHidden = targetElement.classList.contains('apexcharts-series-collapsed'); + this.legend.toggleDataSeries(seriesCnt, isHidden); + } + }, { + key: "resetToggleSeries", + value: function resetToggleSeries() { + this.legend.resetToggleDataSeries(); + } + }, { + key: "setupEventHandlers", + value: function setupEventHandlers() { + var w = this.w; + var me = this; + var clickableArea = w.globals.dom.baseEl.querySelector(w.globals.chartClass); + var eventList = ['mousedown', 'mousemove', 'touchstart', 'touchmove', 'mouseup', 'touchend']; + eventList.forEach(function (event) { + clickableArea.addEventListener(event, function (e) { + if (e.type === 'mousedown' && e.which === 1) ; else if (e.type === 'mouseup' && e.which === 1 || e.type === 'touchend') { + if (typeof w.config.chart.events.click === 'function') { + w.config.chart.events.click(e, me, w); + } + + me.fireEvent('click', [e, me, w]); + } + }, { + capture: false, + passive: true + }); + }); + this.core.setupBrushHandler(); + } + }, { + key: "addXaxisAnnotation", + value: function addXaxisAnnotation(opts) { + var pushToMemory = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined; + var me = this; + + if (context) { + me = context; + } + + me.annotations.addXaxisAnnotationExternal(opts, pushToMemory, me); + } + }, { + key: "addYaxisAnnotation", + value: function addYaxisAnnotation(opts) { + var pushToMemory = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined; + var me = this; + + if (context) { + me = context; + } + + me.annotations.addYaxisAnnotationExternal(opts, pushToMemory, me); + } + }, { + key: "addPointAnnotation", + value: function addPointAnnotation(opts) { + var pushToMemory = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined; + var me = this; + + if (context) { + me = context; + } + + me.annotations.addPointAnnotationExternal(opts, pushToMemory, me); + } + }, { + key: "clearAnnotations", + value: function clearAnnotations() { + var context = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined; + var me = this; + + if (context) { + me = context; + } + + me.annotations.clearAnnotations(me); + } // This method is never used internally and will be only called externally on the chart instance. + // Hence, we need to keep all these elements in memory when the chart gets updated and redraw again + + }, { + key: "addText", + value: function addText(options$$1) { + var pushToMemory = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined; + var me = this; + + if (context) { + me = context; + } + + me.annotations.addText(options$$1, pushToMemory, me); + } + }, { + key: "getChartArea", + value: function getChartArea() { + var el = this.w.globals.dom.baseEl.querySelector('.apexcharts-inner'); + return el; + } + }, { + key: "getSeriesTotalXRange", + value: function getSeriesTotalXRange(minX, maxX) { + return this.coreUtils.getSeriesTotalsXRange(minX, maxX); + } + }, { + key: "getHighestValueInSeries", + value: function getHighestValueInSeries() { + var seriesIndex = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; + var range = new Range$1(this.ctx); + var minYmaxY = range.getMinYMaxY(seriesIndex); + return minYmaxY.highestY; + } + }, { + key: "getLowestValueInSeries", + value: function getLowestValueInSeries() { + var seriesIndex = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; + var range = new Range$1(this.ctx); + var minYmaxY = range.getMinYMaxY(seriesIndex); + return minYmaxY.lowestY; + } + }, { + key: "getSeriesTotal", + value: function getSeriesTotal() { + return this.w.globals.seriesTotals; + } + }, { + key: "setLocale", + value: function setLocale(localeName) { + this.setCurrentLocaleValues(localeName); + } + }, { + key: "setCurrentLocaleValues", + value: function setCurrentLocaleValues(localeName) { + var locales = this.w.config.chart.locales; // check if user has specified locales in global Apex variable + // if yes - then extend those with local chart's locale + + if (window.Apex.chart && window.Apex.chart.locales && window.Apex.chart.locales.length > 0) { + locales = this.w.config.chart.locales.concat(window.Apex.chart.locales); + } // find the locale from the array of locales which user has set (either by chart.defaultLocale or by calling setLocale() method.) + + + var selectedLocale = locales.filter(function (c) { + return c.name === localeName; + })[0]; + + if (selectedLocale) { + // create a complete locale object by extending defaults so you don't get undefined errors. + var ret = Utils.extend(en, selectedLocale); // store these locale options in global var for ease access + + this.w.globals.locale = ret.options; + } else { + throw new Error('Wrong locale name provided. Please make sure you set the correct locale name in options'); + } + } + }, { + key: "svgUrl", + value: function svgUrl() { + var exp = new Exports(this.ctx); + return exp.svgUrl(); + } + }, { + key: "dataURI", + value: function dataURI() { + var exp = new Exports(this.ctx); + return exp.dataURI(); + } + }, { + key: "paper", + value: function paper() { + return this.w.globals.dom.Paper; + } + }, { + key: "parentResizeCallback", + value: function parentResizeCallback() { + if (this.w.globals.animationEnded) { + this.windowResize(); + } + } + /** + * Handle window resize and re-draw the whole chart. + */ + + }, { + key: "windowResize", + value: function windowResize() { + var _this4 = this; + + clearTimeout(this.w.globals.resizeTimer); + this.w.globals.resizeTimer = window.setTimeout(function () { + _this4.w.globals.resized = true; + _this4.w.globals.dataChanged = false; // we need to redraw the whole chart on window resize (with a small delay). + + _this4.update(); + }, 150); + } + }], [{ + key: "initOnLoad", + value: function initOnLoad() { + var els = document.querySelectorAll('[data-apexcharts]'); + + for (var i = 0; i < els.length; i++) { + var el = els[i]; + var options$$1 = JSON.parse(els[i].getAttribute('data-options')); + var apexChart = new ApexCharts(el, options$$1); + apexChart.render(); + } + } + /** + * This static method allows users to call chart methods without necessarily from the + * instance of the chart in case user has assigned chartID to the targetted chart. + * The chartID is used for mapping the instance stored in Apex._chartInstances global variable + * + * This is helpful in cases when you don't have reference of the chart instance + * easily and need to call the method from anywhere. + * For eg, in React/Vue applications when you have many parent/child components, + * and need easy reference to other charts for performing dynamic operations + * + * @param {string} chartID - The unique identifier which will be used to call methods + * on that chart instance + * @param {function} fn - The method name to call + * @param {object} opts - The parameters which are accepted in the original method will be passed here in the same order. + */ + + }, { + key: "exec", + value: function exec(chartID, fn) { + var chart = this.getChartByID(chartID); + if (!chart) return; + + for (var _len = arguments.length, opts = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + opts[_key - 2] = arguments[_key]; + } + + switch (fn) { + case 'updateOptions': + { + return chart.updateOptions.apply(chart, opts); + } + + case 'updateSeries': + { + return chart.updateSeries.apply(chart, opts); + } + + case 'appendData': + { + return chart.appendData.apply(chart, opts); + } + + case 'addXaxisAnnotation': + { + return chart.addXaxisAnnotation.apply(chart, opts); + } + + case 'addYaxisAnnotation': + { + return chart.addYaxisAnnotation.apply(chart, opts); + } + + case 'addPointAnnotation': + { + return chart.addPointAnnotation.apply(chart, opts); + } + + case 'clearAnnotations': + { + return chart.clearAnnotations.apply(chart, opts); + } + + case 'destroy': + { + return chart.destroy(); + } + } + } + }, { + key: "merge", + value: function merge(target, source) { + return Utils.extend(target, source); + } + }, { + key: "getChartByID", + value: function getChartByID(chartID) { + var c = Apex._chartInstances.filter(function (ch) { + return ch.id === chartID; + })[0]; + + return c.chart; + } + }]); + + return ApexCharts; +}(); + +module.exports = ApexCharts$1; diff --git a/libs/apexcharts/apexcharts.esm.js b/libs/apexcharts/apexcharts.esm.js new file mode 100644 index 000000000..64990f0e8 --- /dev/null +++ b/libs/apexcharts/apexcharts.esm.js @@ -0,0 +1,27541 @@ +/*! + * ApexCharts v3.6.2 + * (c) 2018-2019 Juned Chhipa + * Released under the MIT License. + */ +function _typeof(obj) { + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function (obj) { + return typeof obj; + }; + } else { + _typeof = function (obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + + return _typeof(obj); +} + +function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +} + +function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } +} + +function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; +} + +function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + + return obj; +} + +function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + var ownKeys = Object.keys(source); + + if (typeof Object.getOwnPropertySymbols === 'function') { + ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + })); + } + + ownKeys.forEach(function (key) { + _defineProperty(target, key, source[key]); + }); + } + + return target; +} + +function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function"); + } + + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + writable: true, + configurable: true + } + }); + if (superClass) _setPrototypeOf(subClass, superClass); +} + +function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); +} + +function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + + return _setPrototypeOf(o, p); +} + +function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; +} + +function _possibleConstructorReturn(self, call) { + if (call && (typeof call === "object" || typeof call === "function")) { + return call; + } + + return _assertThisInitialized(self); +} + +function _toConsumableArray(arr) { + return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); +} + +function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) { + for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; + + return arr2; + } +} + +function _iterableToArray(iter) { + if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); +} + +function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance"); +} + +/* + ** Generic functions which are not dependent on ApexCharts + */ +var Utils = +/*#__PURE__*/ +function () { + function Utils() { + _classCallCheck(this, Utils); + } + + _createClass(Utils, [{ + key: "shadeRGBColor", + value: function shadeRGBColor(percent, color) { + var f = color.split(','), + t = percent < 0 ? 0 : 255, + p = percent < 0 ? percent * -1 : percent, + R = parseInt(f[0].slice(4)), + G = parseInt(f[1]), + B = parseInt(f[2]); + return 'rgb(' + (Math.round((t - R) * p) + R) + ',' + (Math.round((t - G) * p) + G) + ',' + (Math.round((t - B) * p) + B) + ')'; + } + }, { + key: "shadeHexColor", + value: function shadeHexColor(percent, color) { + var f = parseInt(color.slice(1), 16), + t = percent < 0 ? 0 : 255, + p = percent < 0 ? percent * -1 : percent, + R = f >> 16, + G = f >> 8 & 0x00ff, + B = f & 0x0000ff; + return '#' + (0x1000000 + (Math.round((t - R) * p) + R) * 0x10000 + (Math.round((t - G) * p) + G) * 0x100 + (Math.round((t - B) * p) + B)).toString(16).slice(1); + } // beautiful color shading blending code + // http://stackoverflow.com/questions/5560248/programmatically-lighten-or-darken-a-hex-color-or-rgb-and-blend-colors + + }, { + key: "shadeColor", + value: function shadeColor(p, color) { + if (color.length > 7) return this.shadeRGBColor(p, color);else return this.shadeHexColor(p, color); + } + }], [{ + key: "bind", + value: function bind(fn, me) { + return function () { + return fn.apply(me, arguments); + }; + } + }, { + key: "isObject", + value: function isObject(item) { + return item && _typeof(item) === 'object' && !Array.isArray(item) && item != null; + } // to extend defaults with user options + // credit: http://stackoverflow.com/questions/27936772/deep-object-merging-in-es6-es7#answer-34749873 + + }, { + key: "extend", + value: function extend(target, source) { + var _this = this; + + if (typeof Object.assign !== 'function') { + + (function () { + Object.assign = function (target) { + + if (target === undefined || target === null) { + throw new TypeError('Cannot convert undefined or null to object'); + } + + var output = Object(target); + + for (var index = 1; index < arguments.length; index++) { + var _source = arguments[index]; + + if (_source !== undefined && _source !== null) { + for (var nextKey in _source) { + if (_source.hasOwnProperty(nextKey)) { + output[nextKey] = _source[nextKey]; + } + } + } + } + + return output; + }; + })(); + } + + var output = Object.assign({}, target); + + if (this.isObject(target) && this.isObject(source)) { + Object.keys(source).forEach(function (key) { + if (_this.isObject(source[key])) { + if (!(key in target)) { + Object.assign(output, _defineProperty({}, key, source[key])); + } else { + output[key] = _this.extend(target[key], source[key]); + } + } else { + Object.assign(output, _defineProperty({}, key, source[key])); + } + }); + } + + return output; + } + }, { + key: "extendArray", + value: function extendArray(arrToExtend, resultArr) { + var extendedArr = []; + arrToExtend.map(function (item) { + extendedArr.push(Utils.extend(resultArr, item)); + }); + arrToExtend = extendedArr; + return arrToExtend; + } // If month counter exceeds 12, it starts again from 1 + + }, { + key: "monthMod", + value: function monthMod(month) { + return month % 12; + } + }, { + key: "addProps", + value: function addProps(obj, arr, val) { + if (typeof arr === 'string') { + arr = arr.split('.'); + } + + obj[arr[0]] = obj[arr[0]] || {}; + var tmpObj = obj[arr[0]]; + + if (arr.length > 1) { + arr.shift(); + this.addProps(tmpObj, arr, val); + } else { + obj[arr[0]] = val; + } + + return obj; + } + }, { + key: "clone", + value: function clone(source) { + if (Object.prototype.toString.call(source) === '[object Array]') { + var cloneResult = []; + + for (var i = 0; i < source.length; i++) { + cloneResult[i] = this.clone(source[i]); + } + + return cloneResult; + } else if (_typeof(source) === 'object') { + var _cloneResult = {}; + + for (var prop in source) { + if (source.hasOwnProperty(prop)) { + _cloneResult[prop] = this.clone(source[prop]); + } + } + + return _cloneResult; + } else { + return source; + } + } + }, { + key: "log10", + value: function log10(x) { + return Math.log(x) / Math.LN10; + } + }, { + key: "roundToBase10", + value: function roundToBase10(x) { + return Math.pow(10, Math.floor(Math.log10(x))); + } + }, { + key: "roundToBase", + value: function roundToBase(x, base) { + return Math.pow(base, Math.floor(Math.log(x) / Math.log(base))); + } + }, { + key: "parseNumber", + value: function parseNumber(val) { + if (val === null) return val; + return parseFloat(val); + } + }, { + key: "getDimensions", + value: function getDimensions(el) { + var computedStyle = getComputedStyle(el); + var ret = []; + var elementHeight = el.clientHeight; + var elementWidth = el.clientWidth; + elementHeight -= parseFloat(computedStyle.paddingTop) + parseFloat(computedStyle.paddingBottom); + elementWidth -= parseFloat(computedStyle.paddingLeft) + parseFloat(computedStyle.paddingRight); + ret.push(elementWidth); + ret.push(elementHeight); + return ret; + } + }, { + key: "getBoundingClientRect", + value: function getBoundingClientRect(element) { + var rect = element.getBoundingClientRect(); + return { + top: rect.top, + right: rect.right, + bottom: rect.bottom, + left: rect.left, + width: rect.width, + height: rect.height, + x: rect.x, + y: rect.y + }; + } // http://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb#answer-12342275 + + }, { + key: "hexToRgba", + value: function hexToRgba() { + var hex = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '#999999'; + var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.6; + + if (hex.substring(0, 1) !== '#') { + hex = '#999999'; + } + + var h = hex.replace('#', ''); + h = h.match(new RegExp('(.{' + h.length / 3 + '})', 'g')); + + for (var i = 0; i < h.length; i++) { + h[i] = parseInt(h[i].length === 1 ? h[i] + h[i] : h[i], 16); + } + + if (typeof opacity !== 'undefined') h.push(opacity); + return 'rgba(' + h.join(',') + ')'; + } + }, { + key: "getOpacityFromRGBA", + value: function getOpacityFromRGBA(rgba) { + rgba = rgba.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i); + return rgba[3]; + } + }, { + key: "rgb2hex", + value: function rgb2hex(rgb) { + rgb = rgb.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i); + return rgb && rgb.length === 4 ? '#' + ('0' + parseInt(rgb[1], 10).toString(16)).slice(-2) + ('0' + parseInt(rgb[2], 10).toString(16)).slice(-2) + ('0' + parseInt(rgb[3], 10).toString(16)).slice(-2) : ''; + } + }, { + key: "isColorHex", + value: function isColorHex(color) { + return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(color); + } + }, { + key: "polarToCartesian", + value: function polarToCartesian(centerX, centerY, radius, angleInDegrees) { + var angleInRadians = (angleInDegrees - 90) * Math.PI / 180.0; + return { + x: centerX + radius * Math.cos(angleInRadians), + y: centerY + radius * Math.sin(angleInRadians) + }; + } + }, { + key: "escapeString", + value: function escapeString(str) { + var escapeWith = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'x'; + var newStr = str.toString().slice(); + newStr = newStr.replace(/[` ~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi, escapeWith); + return newStr; + } + }, { + key: "negToZero", + value: function negToZero(val) { + return val < 0 ? 0 : val; + } + }, { + key: "moveIndexInArray", + value: function moveIndexInArray(arr, old_index, new_index) { + if (new_index >= arr.length) { + var k = new_index - arr.length + 1; + + while (k--) { + arr.push(undefined); + } + } + + arr.splice(new_index, 0, arr.splice(old_index, 1)[0]); + return arr; + } + }, { + key: "extractNumber", + value: function extractNumber(s) { + return parseFloat(s.replace(/[^\d\.]*/g, '')); + } + }, { + key: "randomString", + value: function randomString(len) { + var text = ''; + var possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; + + for (var i = 0; i < len; i++) { + text += possible.charAt(Math.floor(Math.random() * possible.length)); + } + + return text; + } + }, { + key: "findAncestor", + value: function findAncestor(el, cls) { + while ((el = el.parentElement) && !el.classList.contains(cls)) { + } + + return el; + } + }, { + key: "setELstyles", + value: function setELstyles(el, styles) { + for (var key in styles) { + if (styles.hasOwnProperty(key)) { + el.style.key = styles[key]; + } + } + } + }, { + key: "isNumber", + value: function isNumber(value) { + return !isNaN(value) && parseFloat(Number(value)) === value && !isNaN(parseInt(value, 10)); + } + }, { + key: "isFloat", + value: function isFloat(n) { + return Number(n) === n && n % 1 !== 0; + } + }, { + key: "isSafari", + value: function isSafari() { + return /^((?!chrome|android).)*safari/i.test(navigator.userAgent); + } + }, { + key: "isFirefox", + value: function isFirefox() { + return navigator.userAgent.toLowerCase().indexOf('firefox') > -1; + } + }, { + key: "isIE11", + value: function isIE11() { + if (window.navigator.userAgent.indexOf('MSIE') !== -1 || window.navigator.appVersion.indexOf('Trident/') > -1) { + return true; + } + } + }, { + key: "isIE", + value: function isIE() { + var ua = window.navigator.userAgent; + var msie = ua.indexOf('MSIE '); + + if (msie > 0) { + // IE 10 or older => return version number + return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10); + } + + var trident = ua.indexOf('Trident/'); + + if (trident > 0) { + // IE 11 => return version number + var rv = ua.indexOf('rv:'); + return parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10); + } + + var edge = ua.indexOf('Edge/'); + + if (edge > 0) { + // Edge (IE 12+) => return version number + return parseInt(ua.substring(edge + 5, ua.indexOf('.', edge)), 10); + } // other browser + + + return false; + } + }]); + + return Utils; +}(); + +/** + * ApexCharts Filters Class for setting hover/active states on the paths. + * + * @module Formatters + **/ + +var Filters = +/*#__PURE__*/ +function () { + function Filters(ctx) { + _classCallCheck(this, Filters); + + this.ctx = ctx; + this.w = ctx.w; + } // create a re-usable filter which can be appended other filter effects and applied to multiple elements + + + _createClass(Filters, [{ + key: "getDefaultFilter", + value: function getDefaultFilter(el) { + var w = this.w; + el.unfilter(true); + var filter = new window.SVG.Filter(); + filter.size('120%', '180%', '-5%', '-40%'); + + if (w.config.states.normal.filter !== 'none') { + this.applyFilter(el, w.config.states.normal.filter.type, w.config.states.normal.filter.value); + } else { + if (w.config.chart.dropShadow.enabled) { + this.dropShadow(el, w.config.chart.dropShadow); + } + } + } + }, { + key: "addNormalFilter", + value: function addNormalFilter(el) { + var w = this.w; + + if (w.config.chart.dropShadow.enabled) { + this.dropShadow(el, w.config.chart.dropShadow); + } + } + }, { + key: "addDesaturateFilter", + value: function addDesaturateFilter(el) { + var _this = this; + + var w = this.w; + el.unfilter(true); + var filter = new window.SVG.Filter(); + filter.size('120%', '180%', '-5%', '-40%'); + el.filter(function (add) { + var shadowAttr = w.config.chart.dropShadow; + + if (shadowAttr.enabled) { + filter = _this.addShadow(add, shadowAttr); + } else { + filter = add; + } + + filter.colorMatrix('matrix', [0, 0, 0, 0, 0.5, 0, 0, 0, 0, 0.5, 0, 0, 0, 0, 0.5, 0, 0, 0, 1.0, 0]).colorMatrix('saturate', 0); + }); + el.filterer.node.setAttribute('filterUnits', 'userSpaceOnUse'); + } // appends dropShadow to the filter object which can be chained with other filter effects + + }, { + key: "addLightenFilter", + value: function addLightenFilter(el, attrs) { + var _this2 = this; + + var w = this.w; + var intensity = attrs.intensity; + + if (Utils.isFirefox()) { + return; + } + + el.unfilter(true); + var filter = new window.SVG.Filter(); + filter.size('120%', '180%', '-5%', '-40%'); + el.filter(function (add) { + var shadowAttr = w.config.chart.dropShadow; + + if (shadowAttr.enabled) { + filter = _this2.addShadow(add, shadowAttr); + } else { + filter = add; + } + + filter.componentTransfer({ + rgb: { + type: 'linear', + slope: 1.5, + intercept: intensity + } + }); + }); + el.filterer.node.setAttribute('filterUnits', 'userSpaceOnUse'); + } // appends dropShadow to the filter object which can be chained with other filter effects + + }, { + key: "addDarkenFilter", + value: function addDarkenFilter(el, attrs) { + var _this3 = this; + + var w = this.w; + var intensity = attrs.intensity; + + if (Utils.isFirefox()) { + return; + } + + el.unfilter(true); + var filter = new window.SVG.Filter(); + filter.size('120%', '180%', '-5%', '-40%'); + el.filter(function (add) { + var shadowAttr = w.config.chart.dropShadow; + + if (shadowAttr.enabled) { + filter = _this3.addShadow(add, shadowAttr); + } else { + filter = add; + } + + filter.componentTransfer({ + rgb: { + type: 'linear', + slope: intensity + } + }); + }); + el.filterer.node.setAttribute('filterUnits', 'userSpaceOnUse'); + } + }, { + key: "applyFilter", + value: function applyFilter(el, filter) { + var intensity = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0.5; + + switch (filter) { + case 'none': + { + this.addNormalFilter(el); + break; + } + + case 'lighten': + { + this.addLightenFilter(el, { + intensity: intensity + }); + break; + } + + case 'darken': + { + this.addDarkenFilter(el, { + intensity: intensity + }); + break; + } + + case 'desaturate': + { + this.addDesaturateFilter(el); + break; + } + + default: + // do nothing + break; + } + } // appends dropShadow to the filter object which can be chained with other filter effects + + }, { + key: "addShadow", + value: function addShadow(add, attrs) { + var blur = attrs.blur, + top = attrs.top, + left = attrs.left, + color = attrs.color, + opacity = attrs.opacity; + var shadowBlur = add.flood(color, opacity).composite(add.sourceAlpha, 'in').offset(left, top).gaussianBlur(blur).merge(add.source); + return add.blend(add.source, shadowBlur); + } // directly adds dropShadow to the element and returns the same element. + // the only way it is different from the addShadow() function is that addShadow is chainable to other filters, while this function discards all filters and add dropShadow + + }, { + key: "dropShadow", + value: function dropShadow(el, attrs) { + var top = attrs.top, + left = attrs.left, + blur = attrs.blur, + color = attrs.color, + opacity = attrs.opacity, + noUserSpaceOnUse = attrs.noUserSpaceOnUse; + el.unfilter(true); + var filter = new window.SVG.Filter(); + filter.size('120%', '180%', '-5%', '-40%'); + el.filter(function (add) { + var shadowBlur = null; + + if (Utils.isSafari() || Utils.isFirefox() || Utils.isIE()) { + // safari/firefox has some alternative way to use this filter + shadowBlur = add.flood(color, opacity).composite(add.sourceAlpha, 'in').offset(left, top).gaussianBlur(blur); + } else { + shadowBlur = add.flood(color, opacity).composite(add.sourceAlpha, 'in').offset(left, top).gaussianBlur(blur).merge(add.source); + } + + add.blend(add.source, shadowBlur); + }); + + if (!noUserSpaceOnUse) { + el.filterer.node.setAttribute('filterUnits', 'userSpaceOnUse'); + } + + return el; + } + }, { + key: "setSelectionFilter", + value: function setSelectionFilter(el, realIndex, dataPointIndex) { + var w = this.w; + + if (typeof w.globals.selectedDataPoints[realIndex] !== 'undefined') { + if (w.globals.selectedDataPoints[realIndex].indexOf(dataPointIndex) > -1) { + el.node.setAttribute('selected', true); + var activeFilter = w.config.states.active.filter; + + if (activeFilter !== 'none') { + this.applyFilter(el, activeFilter.type, activeFilter.value); + } + } + } + } + }]); + + return Filters; +}(); + +/** + * ApexCharts Animation Class. + * + * @module Animations + **/ + +var Animations = +/*#__PURE__*/ +function () { + function Animations(ctx) { + _classCallCheck(this, Animations); + + this.ctx = ctx; + this.w = ctx.w; + this.setEasingFunctions(); + } + + _createClass(Animations, [{ + key: "setEasingFunctions", + value: function setEasingFunctions() { + var easing; + var userDefinedEasing = this.w.config.chart.animations.easing; + + switch (userDefinedEasing) { + case 'linear': + { + easing = '-'; + break; + } + + case 'easein': + { + easing = '<'; + break; + } + + case 'easeout': + { + easing = '>'; + break; + } + + case 'easeinout': + { + easing = '<>'; + break; + } + + case 'swing': + { + easing = function easing(pos) { + var s = 1.70158; + return (pos -= 1) * pos * ((s + 1) * pos + s) + 1; + }; + + break; + } + + case 'bounce': + { + easing = function easing(pos) { + if (pos < 1 / 2.75) { + return 7.5625 * pos * pos; + } else if (pos < 2 / 2.75) { + return 7.5625 * (pos -= 1.5 / 2.75) * pos + 0.75; + } else if (pos < 2.5 / 2.75) { + return 7.5625 * (pos -= 2.25 / 2.75) * pos + 0.9375; + } else { + return 7.5625 * (pos -= 2.625 / 2.75) * pos + 0.984375; + } + }; + + break; + } + + case 'elastic': + { + easing = function easing(pos) { + if (pos === !!pos) return pos; + return Math.pow(2, -10 * pos) * Math.sin((pos - 0.075) * (2 * Math.PI) / 0.3) + 1; + }; + + break; + } + + default: + { + easing = '<>'; + } + } + + this.w.globals.easing = easing; + } + }, { + key: "animateLine", + value: function animateLine(el, from, to, speed) { + el.attr(from).animate(speed).attr(to); + } + /* + ** Animate radius of a circle element + */ + + }, { + key: "animateCircleRadius", + value: function animateCircleRadius(el, from, to, speed, easing) { + if (!from) from = 0; + el.attr({ + r: from + }).animate(speed, easing).attr({ + r: to + }); + } + /* + ** Animate radius and position of a circle element + */ + + }, { + key: "animateCircle", + value: function animateCircle(el, from, to, speed, easing) { + el.attr({ + r: from.r, + cx: from.cx, + cy: from.cy + }).animate(speed, easing).attr({ + r: to.r, + cx: to.cx, + cy: to.cy + }); + } + /* + ** Animate rect properties + */ + + }, { + key: "animateRect", + value: function animateRect(el, from, to, speed, fn) { + el.attr(from).animate(speed).attr(to).afterAll(function () { + fn(); + }); + } + }, { + key: "animatePathsGradually", + value: function animatePathsGradually(params) { + var el = params.el, + j = params.j, + pathFrom = params.pathFrom, + pathTo = params.pathTo, + speed = params.speed, + delay = params.delay, + strokeWidth = params.strokeWidth; + var me = this; + var w = this.w; + var delayFactor = 0; + + if (w.config.chart.animations.animateGradually.enabled) { + delayFactor = w.config.chart.animations.animateGradually.delay; + } + + if (w.config.chart.animations.dynamicAnimation.enabled && w.globals.dataChanged) { + delayFactor = 0; + } + + me.morphSVG(el, j, pathFrom, pathTo, speed, strokeWidth, delay * delayFactor); + } + }, { + key: "showDelayedElements", + value: function showDelayedElements() { + this.w.globals.delayedElements.forEach(function (d) { + var ele = d.el; + ele.classList.remove('hidden'); + }); + } // SVG.js animation for morphing one path to another + + }, { + key: "morphSVG", + value: function morphSVG(el, j, pathFrom, pathTo, speed, strokeWidth, delay) { + var _this = this; + + var w = this.w; + + if (!pathFrom) { + pathFrom = el.attr('pathFrom'); + } + + if (!pathTo) { + pathTo = el.attr('pathTo'); + } + + if (!pathFrom || pathFrom.indexOf('undefined') > -1 || pathFrom.indexOf('NaN') > -1) { + pathFrom = "M 0 ".concat(w.globals.gridHeight); + speed = 1; + } + + if (pathTo.indexOf('undefined') > -1 || pathTo.indexOf('NaN') > -1) { + pathTo = "M 0 ".concat(w.globals.gridHeight); + speed = 1; + } + + if (!w.globals.shouldAnimate) { + speed = 1; + } + + el.plot(pathFrom).animate(1, w.globals.easing, delay).plot(pathFrom).animate(speed, w.globals.easing, delay).plot(pathTo).afterAll(function () { + // a flag to indicate that the original mount function can return true now as animation finished here + if (Utils.isNumber(j)) { + if (j === w.globals.series[w.globals.maxValsInArrayIndex].length - 2 && w.globals.shouldAnimate) { + w.globals.animationEnded = true; + } + } else if (w.globals.shouldAnimate) { + w.globals.animationEnded = true; + + if (typeof w.config.chart.events.animationEnd === 'function') { + w.config.chart.events.animationEnd(_this.ctx, w); + } + } + + _this.showDelayedElements(); + }); + } + }]); + + return Animations; +}(); + +/** + * ApexCharts Graphics Class for all drawing operations. + * + * @module Graphics + **/ + +var Graphics = +/*#__PURE__*/ +function () { + function Graphics(ctx) { + _classCallCheck(this, Graphics); + + this.ctx = ctx; + this.w = ctx.w; + } + + _createClass(Graphics, [{ + key: "drawLine", + value: function drawLine(x1, y1, x2, y2) { + var lineColor = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '#a8a8a8'; + var dashArray = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0; + var strokeWidth = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null; + var w = this.w; + var line = w.globals.dom.Paper.line().attr({ + x1: x1, + y1: y1, + x2: x2, + y2: y2, + stroke: lineColor, + 'stroke-dasharray': dashArray, + 'stroke-width': strokeWidth + }); + return line; + } + }, { + key: "drawRect", + value: function drawRect() { + var x1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; + var y1 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + var x2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; + var y2 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0; + var radius = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0; + var color = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '#fefefe'; + var opacity = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : 1; + var strokeWidth = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : null; + var strokeColor = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : null; + var strokeDashArray = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : 0; + var w = this.w; + var rect = w.globals.dom.Paper.rect(); + rect.attr({ + x: x1, + y: y1, + width: x2 > 0 ? x2 : 0, + height: y2 > 0 ? y2 : 0, + rx: radius, + ry: radius, + fill: color, + opacity: opacity, + 'stroke-width': strokeWidth !== null ? strokeWidth : 0, + stroke: strokeColor !== null ? strokeColor : 'none', + 'stroke-dasharray': strokeDashArray + }); + return rect; + } + }, { + key: "drawPolygon", + value: function drawPolygon(polygonString) { + var stroke = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '#e1e1e1'; + var fill = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'none'; + var w = this.w; + var polygon = w.globals.dom.Paper.polygon(polygonString).attr({ + fill: fill, + stroke: stroke + }); + return polygon; + } + }, { + key: "drawCircle", + value: function drawCircle(radius) { + var attrs = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + var w = this.w; + var c = w.globals.dom.Paper.circle(radius * 2); + + if (attrs !== null) { + c.attr(attrs); + } + + return c; + } + }, { + key: "drawPath", + value: function drawPath(_ref) { + var _ref$d = _ref.d, + d = _ref$d === void 0 ? '' : _ref$d, + _ref$stroke = _ref.stroke, + stroke = _ref$stroke === void 0 ? '#a8a8a8' : _ref$stroke, + _ref$strokeWidth = _ref.strokeWidth, + strokeWidth = _ref$strokeWidth === void 0 ? 1 : _ref$strokeWidth, + fill = _ref.fill, + _ref$fillOpacity = _ref.fillOpacity, + fillOpacity = _ref$fillOpacity === void 0 ? 1 : _ref$fillOpacity, + _ref$strokeOpacity = _ref.strokeOpacity, + strokeOpacity = _ref$strokeOpacity === void 0 ? 1 : _ref$strokeOpacity, + classes = _ref.classes, + _ref$strokeLinecap = _ref.strokeLinecap, + strokeLinecap = _ref$strokeLinecap === void 0 ? null : _ref$strokeLinecap, + _ref$strokeDashArray = _ref.strokeDashArray, + strokeDashArray = _ref$strokeDashArray === void 0 ? 0 : _ref$strokeDashArray; + var w = this.w; + + if (strokeLinecap === null) { + strokeLinecap = w.config.stroke.lineCap; + } + + if (d.indexOf('undefined') > -1 || d.indexOf('NaN') > -1) { + d = "M 0 ".concat(w.globals.gridHeight); + } + + var p = w.globals.dom.Paper.path(d).attr({ + fill: fill, + 'fill-opacity': fillOpacity, + stroke: stroke, + 'stroke-opacity': strokeOpacity, + 'stroke-linecap': strokeLinecap, + 'stroke-width': strokeWidth, + 'stroke-dasharray': strokeDashArray, + class: classes + }); + return p; + } + }, { + key: "group", + value: function group() { + var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + var w = this.w; + var g = w.globals.dom.Paper.group(); + + if (attrs !== null) { + g.attr(attrs); + } + + return g; + } + }, { + key: "move", + value: function move(x, y) { + var move = ['M', x, y].join(' '); + return move; + } + }, { + key: "line", + value: function line(x, y) { + var hORv = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + var line = null; + + if (hORv === null) { + line = ['L', x, y].join(' '); + } else if (hORv === 'H') { + line = ['H', x].join(' '); + } else if (hORv === 'V') { + line = ['V', y].join(' '); + } + + return line; + } + }, { + key: "curve", + value: function curve(x1, y1, x2, y2, x, y) { + var curve = ['C', x1, y1, x2, y2, x, y].join(' '); + return curve; + } + }, { + key: "quadraticCurve", + value: function quadraticCurve(x1, y1, x, y) { + var curve = ['Q', x1, y1, x, y].join(' '); + return curve; + } + }, { + key: "arc", + value: function arc(rx, ry, axisRotation, largeArcFlag, sweepFlag, x, y) { + var relative = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : false; + var coord = 'A'; + if (relative) coord = 'a'; + var arc = [coord, rx, ry, axisRotation, largeArcFlag, sweepFlag, x, y].join(' '); + return arc; + } + /** + * @memberof Graphics + * @param {object} + * i = series's index + * realIndex = realIndex is series's actual index when it was drawn time. After several redraws, the iterating "i" may change in loops, but realIndex doesn't + * pathFrom = existing pathFrom to animateTo + * pathTo = new Path to which d attr will be animated from pathFrom to pathTo + * stroke = line Color + * strokeWidth = width of path Line + * fill = it can be gradient, single color, pattern or image + * animationDelay = how much to delay when starting animation (in milliseconds) + * dataChangeSpeed = for dynamic animations, when data changes + * className = class attribute to add + * @return {object} svg.js path object + **/ + + }, { + key: "renderPaths", + value: function renderPaths(_ref2) { + var i = _ref2.i, + j = _ref2.j, + realIndex = _ref2.realIndex, + pathFrom = _ref2.pathFrom, + pathTo = _ref2.pathTo, + stroke = _ref2.stroke, + strokeWidth = _ref2.strokeWidth, + strokeLinecap = _ref2.strokeLinecap, + fill = _ref2.fill, + animationDelay = _ref2.animationDelay, + initialSpeed = _ref2.initialSpeed, + dataChangeSpeed = _ref2.dataChangeSpeed, + className = _ref2.className, + id = _ref2.id, + _ref2$shouldClipToGri = _ref2.shouldClipToGrid, + shouldClipToGrid = _ref2$shouldClipToGri === void 0 ? true : _ref2$shouldClipToGri, + _ref2$bindEventsOnPat = _ref2.bindEventsOnPaths, + bindEventsOnPaths = _ref2$bindEventsOnPat === void 0 ? true : _ref2$bindEventsOnPat; + var w = this.w; + var filters = new Filters(this.ctx); + var anim = new Animations(this.ctx); + var initialAnim = this.w.config.chart.animations.enabled; + var dynamicAnim = initialAnim && this.w.config.chart.animations.dynamicAnimation.enabled; + var d; + var shouldAnimate = !!(initialAnim && !w.globals.resized || dynamicAnim && w.globals.dataChanged && w.globals.shouldAnimate); + + if (shouldAnimate) { + d = pathFrom; + } else { + d = pathTo; + this.w.globals.animationEnded = true; + } + + var strokeDashArrayOpt = w.config.stroke.dashArray; + var strokeDashArray = 0; + + if (Array.isArray(strokeDashArrayOpt)) { + strokeDashArray = strokeDashArrayOpt[realIndex]; + } else { + strokeDashArray = w.config.stroke.dashArray; + } + + var el = this.drawPath({ + d: d, + stroke: stroke, + strokeWidth: strokeWidth, + fill: fill, + fillOpacity: 1, + classes: className, + strokeLinecap: strokeLinecap, + strokeDashArray: strokeDashArray + }); + el.attr('id', "".concat(id, "-").concat(i)); + el.attr('index', realIndex); + + if (shouldClipToGrid) { + el.attr({ + 'clip-path': "url(#gridRectMask".concat(w.globals.cuid, ")") + }); + } // const defaultFilter = el.filterer + + + if (w.config.states.normal.filter.type !== 'none') { + filters.getDefaultFilter(el, w.config.states.normal.filter.type, w.config.states.normal.filter.value); + } else { + if (w.config.chart.dropShadow.enabled) { + if (!w.config.chart.dropShadow.enabledSeries || w.config.chart.dropShadow.enabledSeries && w.config.chart.dropShadow.enabledSeries.indexOf(realIndex) !== -1) { + var shadow = w.config.chart.dropShadow; + filters.dropShadow(el, shadow); + } + } + } + + if (bindEventsOnPaths) { + el.node.addEventListener('mouseenter', this.pathMouseEnter.bind(this, el)); + el.node.addEventListener('mouseleave', this.pathMouseLeave.bind(this, el)); + el.node.addEventListener('mousedown', this.pathMouseDown.bind(this, el)); + } + + el.attr({ + pathTo: pathTo, + pathFrom: pathFrom + }); + var defaultAnimateOpts = { + el: el, + j: j, + pathFrom: pathFrom, + pathTo: pathTo, + strokeWidth: strokeWidth + }; + + if (initialAnim && !w.globals.resized && !w.globals.dataChanged) { + anim.animatePathsGradually(_objectSpread({}, defaultAnimateOpts, { + speed: initialSpeed, + delay: animationDelay + })); + } else { + if (w.globals.resized || !w.globals.dataChanged) { + anim.showDelayedElements(); + } + } + + if (w.globals.dataChanged && dynamicAnim && shouldAnimate) { + anim.animatePathsGradually(_objectSpread({}, defaultAnimateOpts, { + speed: dataChangeSpeed + })); + } + + return el; + } + }, { + key: "drawPattern", + value: function drawPattern(style, width, height) { + var stroke = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '#a8a8a8'; + var strokeWidth = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0; + var w = this.w; + var p = w.globals.dom.Paper.pattern(width, height, function (add) { + if (style === 'horizontalLines') { + add.line(0, 0, height, 0).stroke({ + color: stroke, + width: strokeWidth + 1 + }); + } else if (style === 'verticalLines') { + add.line(0, 0, 0, width).stroke({ + color: stroke, + width: strokeWidth + 1 + }); + } else if (style === 'slantedLines') { + add.line(0, 0, width, height).stroke({ + color: stroke, + width: strokeWidth + }); + } else if (style === 'squares') { + add.rect(width, height).fill('none').stroke({ + color: stroke, + width: strokeWidth + }); + } else if (style === 'circles') { + add.circle(width).fill('none').stroke({ + color: stroke, + width: strokeWidth + }); + } + }); + return p; + } + }, { + key: "drawGradient", + value: function drawGradient(style, gfrom, gto, opacityFrom, opacityTo) { + var size = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null; + var stops = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null; + var colorStops = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : null; + var i = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 0; + var w = this.w; + var g; + gfrom = Utils.hexToRgba(gfrom, opacityFrom); + gto = Utils.hexToRgba(gto, opacityTo); + var stop1 = 0; + var stop2 = 1; + var stop3 = 1; + var stop4 = null; + + if (stops !== null) { + stop1 = typeof stops[0] !== 'undefined' ? stops[0] / 100 : 0; + stop2 = typeof stops[1] !== 'undefined' ? stops[1] / 100 : 1; + stop3 = typeof stops[2] !== 'undefined' ? stops[2] / 100 : 1; + stop4 = typeof stops[3] !== 'undefined' ? stops[3] / 100 : null; + } + + var radial = !!(w.config.chart.type === 'donut' || w.config.chart.type === 'pie' || w.config.chart.type === 'bubble'); + + if (colorStops === null || colorStops.length === 0) { + g = w.globals.dom.Paper.gradient(radial ? 'radial' : 'linear', function (stop) { + stop.at(stop1, gfrom, opacityFrom); + stop.at(stop2, gto, opacityTo); + stop.at(stop3, gto, opacityTo); + + if (stop4 !== null) { + stop.at(stop4, gfrom, opacityFrom); + } + }); + } else { + g = w.globals.dom.Paper.gradient(radial ? 'radial' : 'linear', function (stop) { + var stops = Array.isArray(colorStops[i]) ? colorStops[i] : colorStops; + stops.forEach(function (s) { + stop.at(s.offset / 100, s.color, s.opacity); + }); + }); + } + + if (!radial) { + if (style === 'vertical') { + g.from(0, 0).to(0, 1); + } else if (style === 'diagonal') { + g.from(0, 0).to(1, 1); + } else if (style === 'horizontal') { + g.from(0, 1).to(1, 1); + } else if (style === 'diagonal2') { + g.from(0, 1).to(2, 2); + } + } else { + var offx = w.globals.gridWidth / 2; + var offy = w.globals.gridHeight / 2; + + if (w.config.chart.type !== 'bubble') { + g.attr({ + gradientUnits: 'userSpaceOnUse', + cx: offx, + cy: offy, + r: size + }); + } else { + g.attr({ + cx: 0.5, + cy: 0.5, + r: 0.8, + fx: 0.2, + fy: 0.2 + }); + } + } + + return g; + } + }, { + key: "drawText", + value: function drawText(opts) { + var w = this.w; + var x = opts.x, + y = opts.y, + text = opts.text, + textAnchor = opts.textAnchor, + fontSize = opts.fontSize, + fontFamily = opts.fontFamily, + foreColor = opts.foreColor, + opacity = opts.opacity; + + if (!textAnchor) { + textAnchor = 'start'; + } + + if (!foreColor) { + foreColor = w.config.chart.foreColor; + } + + fontFamily = fontFamily || w.config.chart.fontFamily; + var elText; + + if (Array.isArray(text)) { + elText = w.globals.dom.Paper.text(function (add) { + for (var i = 0; i < text.length; i++) { + add.tspan(text[i]); + } + }); + } else { + elText = w.globals.dom.Paper.plain(text); + } + + elText.attr({ + x: x, + y: y, + 'text-anchor': textAnchor, + 'dominant-baseline': 'central', + 'font-size': fontSize, + 'font-family': fontFamily, + fill: foreColor, + class: 'apexcharts-text ' + opts.cssClass ? opts.cssClass : '' + }); + elText.node.style.fontFamily = fontFamily; + elText.node.style.opacity = opacity; + return elText; + } + }, { + key: "addTspan", + value: function addTspan(textEl, text, fontFamily) { + var tspan = textEl.tspan(text); + + if (!fontFamily) { + fontFamily = this.w.config.chart.fontFamily; + } + + tspan.node.style.fontFamily = fontFamily; + } + }, { + key: "drawMarker", + value: function drawMarker(x, y, opts) { + x = x || 0; + var size = opts.pSize || 0; + var elPoint = null; + + if (opts.shape === 'square') { + var radius = opts.pRadius === undefined ? size / 2 : opts.pRadius; + + if (y === null) { + size = 0; + radius = 0; + } + + var nSize = size * 1.2 + radius; + var p = this.drawRect(nSize, nSize, nSize, nSize, radius); + p.attr({ + x: x - nSize / 2, + y: y - nSize / 2, + cx: x, + cy: y, + class: opts.class ? opts.class : '', + fill: opts.pointFillColor, + 'fill-opacity': opts.pointFillOpacity ? opts.pointFillOpacity : 1, + stroke: opts.pointStrokeColor, + 'stroke-width': opts.pWidth ? opts.pWidth : 0, + 'stroke-opacity': opts.pointStrokeOpacity ? opts.pointStrokeOpacity : 1 + }); + elPoint = p; + } else if (opts.shape === 'circle') { + if (!Utils.isNumber(y)) { + size = 0; + y = 0; + } // let nSize = size - opts.pRadius / 2 < 0 ? 0 : size - opts.pRadius / 2 + + + elPoint = this.drawCircle(size, { + cx: x, + cy: y, + class: opts.class ? opts.class : '', + stroke: opts.pointStrokeColor, + fill: opts.pointFillColor, + 'fill-opacity': opts.pointFillOpacity ? opts.pointFillOpacity : 1, + 'stroke-width': opts.pWidth ? opts.pWidth : 0, + 'stroke-opacity': opts.pointStrokeOpacity ? opts.pointStrokeOpacity : 1 + }); + } + + return elPoint; + } + }, { + key: "pathMouseEnter", + value: function pathMouseEnter(path, e) { + var w = this.w; + var filters = new Filters(this.ctx); + var i = parseInt(path.node.getAttribute('index')); + var j = parseInt(path.node.getAttribute('j')); + + if (typeof w.config.chart.events.dataPointMouseEnter === 'function') { + w.config.chart.events.dataPointMouseEnter(e, this.ctx, { + seriesIndex: i, + dataPointIndex: j, + w: w + }); + } + + this.ctx.fireEvent('dataPointMouseEnter', [e, this.ctx, { + seriesIndex: i, + dataPointIndex: j, + w: w + }]); + + if (w.config.states.active.filter.type !== 'none') { + if (path.node.getAttribute('selected') === 'true') { + return; + } + } + + if (w.config.states.hover.filter.type !== 'none') { + if (w.config.states.active.filter.type !== 'none' && !w.globals.isTouchDevice) { + var hoverFilter = w.config.states.hover.filter; + filters.applyFilter(path, hoverFilter.type, hoverFilter.value); + } + } + } + }, { + key: "pathMouseLeave", + value: function pathMouseLeave(path, e) { + var w = this.w; + var filters = new Filters(this.ctx); + var i = parseInt(path.node.getAttribute('index')); + var j = parseInt(path.node.getAttribute('j')); + + if (typeof w.config.chart.events.dataPointMouseLeave === 'function') { + w.config.chart.events.dataPointMouseLeave(e, this.ctx, { + seriesIndex: i, + dataPointIndex: j, + w: w + }); + } + + this.ctx.fireEvent('dataPointMouseLeave', [e, this.ctx, { + seriesIndex: i, + dataPointIndex: j, + w: w + }]); + + if (w.config.states.active.filter.type !== 'none') { + if (path.node.getAttribute('selected') === 'true') { + return; + } + } + + if (w.config.states.hover.filter.type !== 'none') { + filters.getDefaultFilter(path); + } + } + }, { + key: "pathMouseDown", + value: function pathMouseDown(path, e) { + var w = this.w; + var filters = new Filters(this.ctx); + var i = parseInt(path.node.getAttribute('index')); + var j = parseInt(path.node.getAttribute('j')); + var selected = 'false'; + + if (path.node.getAttribute('selected') === 'true') { + path.node.setAttribute('selected', 'false'); + + if (w.globals.selectedDataPoints[i].indexOf(j) > -1) { + var index = w.globals.selectedDataPoints[i].indexOf(j); + w.globals.selectedDataPoints[i].splice(index, 1); + } + } else { + if (!w.config.states.active.allowMultipleDataPointsSelection && w.globals.selectedDataPoints.length > 0) { + w.globals.selectedDataPoints = []; + var elPaths = w.globals.dom.Paper.select('.apexcharts-series path').members; + var elCircles = w.globals.dom.Paper.select('.apexcharts-series circle, .apexcharts-series rect').members; + elPaths.forEach(function (elPath) { + elPath.node.setAttribute('selected', 'false'); + filters.getDefaultFilter(elPath); + }); + elCircles.forEach(function (circle) { + circle.node.setAttribute('selected', 'false'); + filters.getDefaultFilter(circle); + }); + } + + path.node.setAttribute('selected', 'true'); + selected = 'true'; + + if (typeof w.globals.selectedDataPoints[i] === 'undefined') { + w.globals.selectedDataPoints[i] = []; + } + + w.globals.selectedDataPoints[i].push(j); + } + + if (selected === 'true') { + var activeFilter = w.config.states.active.filter; + + if (activeFilter !== 'none') { + filters.applyFilter(path, activeFilter.type, activeFilter.value); + } + } else { + if (w.config.states.active.filter.type !== 'none') { + filters.getDefaultFilter(path); + } + } + + if (typeof w.config.chart.events.dataPointSelection === 'function') { + w.config.chart.events.dataPointSelection(e, this.ctx, { + selectedDataPoints: w.globals.selectedDataPoints, + seriesIndex: i, + dataPointIndex: j, + w: w + }); + } + + this.ctx.fireEvent('dataPointSelection', [e, this.ctx, { + selectedDataPoints: w.globals.selectedDataPoints, + seriesIndex: i, + dataPointIndex: j, + w: w + }]); // if (this.w.config.chart.selection.selectedPoints !== undefined) { + // this.w.config.chart.selection.selectedPoints(w.globals.selectedDataPoints) + // } + } + }, { + key: "rotateAroundCenter", + value: function rotateAroundCenter(el) { + var coord = el.getBBox(); + var x = coord.x + coord.width / 2; + var y = coord.y + coord.height / 2; + return { + x: x, + y: y + }; + } + }, { + key: "getTextRects", + value: function getTextRects(text, fontSize, fontFamily, transform) { + var useBBox = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true; + var w = this.w; + var virtualText = this.drawText({ + x: -200, + y: -200, + text: text, + textAnchor: 'start', + fontSize: fontSize, + fontFamily: fontFamily, + foreColor: '#fff', + opacity: 0 + }); + + if (transform) { + virtualText.attr('transform', transform); + } + + w.globals.dom.Paper.add(virtualText); + var rect = virtualText.bbox(); + + if (!useBBox) { + rect = virtualText.node.getBoundingClientRect(); + } + + virtualText.remove(); + return { + width: rect.width, + height: rect.height + }; + } + /** + * append ... to long text + * http://stackoverflow.com/questions/9241315/trimming-text-to-a-given-pixel-width-in-svg + * @memberof Graphics + **/ + + }, { + key: "placeTextWithEllipsis", + value: function placeTextWithEllipsis(textObj, textString, width) { + textObj.textContent = textString; + + if (textString.length > 0) { + // ellipsis is needed + if (textObj.getSubStringLength(0, textString.length) >= width) { + for (var x = textString.length - 3; x > 0; x -= 3) { + if (textObj.getSubStringLength(0, x) <= width) { + textObj.textContent = textString.substring(0, x) + '...'; + return; + } + } + + textObj.textContent = '...'; // can't place at all + } + } + } + }], [{ + key: "setAttrs", + value: function setAttrs(el, attrs) { + for (var key in attrs) { + if (attrs.hasOwnProperty(key)) { + el.setAttribute(key, attrs[key]); + } + } + } + }]); + + return Graphics; +}(); + +const name = "en"; +const options = { + months: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + shortMonths: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + days: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + shortDays: [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + toolbar: { + exportToSVG: "Download SVG", + exportToPNG: "Download PNG", + menu: "Menu", + selection: "Selection", + selectionZoom: "Selection Zoom", + zoomIn: "Zoom In", + zoomOut: "Zoom Out", + pan: "Panning", + reset: "Reset Zoom" + } +}; +var en = { + name: name, + options: options +}; + +var Options = +/*#__PURE__*/ +function () { + function Options() { + _classCallCheck(this, Options); + + this.yAxis = { + show: true, + showAlways: false, + seriesName: undefined, + opposite: false, + reversed: false, + logarithmic: false, + tickAmount: undefined, + forceNiceScale: false, + max: undefined, + min: undefined, + floating: false, + decimalsInFloat: 2, + labels: { + show: true, + minWidth: 0, + maxWidth: 160, + offsetX: 0, + offsetY: 0, + rotate: 0, + padding: 20, + style: { + colors: [], + fontSize: '11px', + fontFamily: undefined, + cssClass: '' + }, + formatter: undefined + }, + axisBorder: { + show: false, + color: '#78909C', + offsetX: 0, + offsetY: 0 + }, + axisTicks: { + show: false, + color: '#78909C', + width: 6, + offsetX: 0, + offsetY: 0 + }, + title: { + text: undefined, + rotate: 90, + offsetY: 0, + offsetX: 0, + style: { + color: undefined, + fontSize: '11px', + fontFamily: undefined, + cssClass: '' + } + }, + tooltip: { + enabled: false, + offsetX: 0 + }, + crosshairs: { + show: true, + position: 'front', + stroke: { + color: '#b6b6b6', + width: 1, + dashArray: 0 + } + } + }; + this.xAxisAnnotation = { + x: 0, + x2: null, + strokeDashArray: 1, + fillColor: '#c2c2c2', + borderColor: '#c2c2c2', + opacity: 0.3, + offsetX: 0, + offsetY: 0, + label: { + borderColor: '#c2c2c2', + borderWidth: 1, + text: undefined, + textAnchor: 'middle', + orientation: 'vertical', + position: 'top', + offsetX: 0, + offsetY: 0, + style: { + background: '#fff', + color: undefined, + fontSize: '11px', + fontFamily: undefined, + cssClass: '', + padding: { + left: 5, + right: 5, + top: 2, + bottom: 2 + } + } + } + }; + this.yAxisAnnotation = { + y: 0, + y2: null, + strokeDashArray: 1, + fillColor: '#c2c2c2', + borderColor: '#c2c2c2', + opacity: 0.3, + offsetX: 0, + offsetY: 0, + yAxisIndex: 0, + label: { + borderColor: '#c2c2c2', + borderWidth: 1, + text: undefined, + textAnchor: 'end', + position: 'right', + offsetX: 0, + offsetY: -3, + style: { + background: '#fff', + color: undefined, + fontSize: '11px', + fontFamily: undefined, + cssClass: '', + padding: { + left: 5, + right: 5, + top: 0, + bottom: 2 + } + } + } + }; + this.pointAnnotation = { + x: 0, + y: null, + yAxisIndex: 0, + seriesIndex: 0, + marker: { + size: 0, + fillColor: '#fff', + strokeWidth: 2, + strokeColor: '#333', + shape: 'circle', + offsetX: 0, + offsetY: 0, + radius: 2, + cssClass: '' + }, + label: { + borderColor: '#c2c2c2', + borderWidth: 1, + text: undefined, + textAnchor: 'middle', + offsetX: 0, + offsetY: -15, + style: { + background: '#fff', + color: undefined, + fontSize: '11px', + fontFamily: undefined, + cssClass: '', + padding: { + left: 5, + right: 5, + top: 0, + bottom: 2 + } + } + }, + customSVG: { + SVG: undefined, + cssClass: undefined, + offsetX: 0, + offsetY: 0 + } + }; + } + + _createClass(Options, [{ + key: "init", + value: function init() { + return { + annotations: { + position: 'front', + yaxis: [this.yAxisAnnotation], + xaxis: [this.xAxisAnnotation], + points: [this.pointAnnotation] + }, + chart: { + animations: { + enabled: true, + easing: 'easeinout', + // linear, easeout, easein, easeinout, swing, bounce, elastic + speed: 800, + animateGradually: { + delay: 150, + enabled: true + }, + dynamicAnimation: { + enabled: true, + speed: 350 + } + }, + background: 'transparent', + locales: [en], + defaultLocale: 'en', + dropShadow: { + enabled: false, + enabledSeries: undefined, + top: 2, + left: 2, + blur: 4, + color: '#000', + opacity: 0.35 + }, + events: { + animationEnd: undefined, + beforeMount: undefined, + mounted: undefined, + updated: undefined, + click: undefined, + legendClick: undefined, + selection: undefined, + dataPointSelection: undefined, + dataPointMouseEnter: undefined, + dataPointMouseLeave: undefined, + beforeZoom: undefined, + zoomed: undefined, + scrolled: undefined + }, + foreColor: '#373d3f', + fontFamily: 'Helvetica, Arial, sans-serif', + height: 'auto', + id: undefined, + group: undefined, + offsetX: 0, + offsetY: 0, + selection: { + enabled: false, + type: 'x', + // selectedPoints: undefined, // default datapoints that should be selected automatically + fill: { + color: '#24292e', + opacity: 0.1 + }, + stroke: { + width: 1, + color: '#24292e', + opacity: 0.4, + dashArray: 3 + }, + xaxis: { + min: undefined, + max: undefined + }, + yaxis: { + min: undefined, + max: undefined + } + }, + sparkline: { + enabled: false + }, + brush: { + enabled: false, + autoScaleYaxis: false, + target: undefined + }, + stacked: false, + stackType: 'normal', + toolbar: { + show: true, + tools: { + download: true, + selection: true, + zoom: true, + zoomin: true, + zoomout: true, + pan: true, + reset: true, + customIcons: [] + }, + autoSelected: 'zoom' // accepts -> zoom, pan, selection + + }, + type: 'line', + width: '100%', + zoom: { + enabled: true, + type: 'x', + // autoScaleYaxis: false, // TODO: rewrite the autoScaleY function + zoomedArea: { + fill: { + color: '#90CAF9', + opacity: 0.4 + }, + stroke: { + color: '#0D47A1', + opacity: 0.4, + width: 1 + } + } + } + }, + plotOptions: { + bar: { + horizontal: false, + endingShape: 'flat', + // TODO: deprecate in 4.0 + columnWidth: '70%', + // should be in percent 0 - 100 + barHeight: '70%', + // should be in percent 0 - 100 + distributed: false, + colors: { + ranges: [], + backgroundBarColors: [], + backgroundBarOpacity: 1 + }, + dataLabels: { + position: 'top' // top, center, bottom + // TODO: provide stackedLabels for stacked charts which gives additions of values + + } + }, + candlestick: { + colors: { + upward: '#00B746', + downward: '#EF403C' + }, + wick: { + useFillColor: true + } + }, + heatmap: { + radius: 2, + enableShades: true, + shadeIntensity: 0.5, + distributed: false, + colorScale: { + inverse: false, + ranges: [], + min: undefined, + max: undefined + } + }, + radialBar: { + size: undefined, + inverseOrder: false, + startAngle: 0, + endAngle: 360, + offsetX: 0, + offsetY: 0, + hollow: { + margin: 5, + size: '50%', + background: 'transparent', + image: undefined, + imageWidth: 150, + imageHeight: 150, + imageOffsetX: 0, + imageOffsetY: 0, + imageClipped: true, + position: 'front', + dropShadow: { + enabled: false, + top: 0, + left: 0, + blur: 3, + color: '#000', + opacity: 0.5 + } + }, + track: { + show: true, + startAngle: undefined, + endAngle: undefined, + background: '#f2f2f2', + strokeWidth: '97%', + opacity: 1, + margin: 5, + // margin is in pixels + dropShadow: { + enabled: false, + top: 0, + left: 0, + blur: 3, + color: '#000', + opacity: 0.5 + } + }, + dataLabels: { + show: true, + name: { + show: true, + fontSize: '16px', + fontFamily: undefined, + color: undefined, + offsetY: 0 + }, + value: { + show: true, + fontSize: '14px', + fontFamily: undefined, + color: undefined, + offsetY: 16, + formatter: function formatter(val) { + return val + '%'; + } + }, + total: { + show: false, + label: 'Total', + color: '#373d3f', + formatter: function formatter(w) { + return w.globals.seriesTotals.reduce(function (a, b) { + return a + b; + }, 0) / w.globals.series.length + '%'; + } + } + } + }, + pie: { + size: undefined, + customScale: 1, + offsetX: 0, + offsetY: 0, + expandOnClick: true, + dataLabels: { + // These are the percentage values which are displayed on slice + offset: 0 // offset by which labels will move outside + + }, + donut: { + size: '65%', + background: 'transparent', + labels: { + // These are the inner labels appearing inside donut + show: false, + name: { + show: true, + fontSize: '16px', + fontFamily: undefined, + color: undefined, + offsetY: -10 + }, + value: { + show: true, + fontSize: '20px', + fontFamily: undefined, + color: undefined, + offsetY: 10, + formatter: function formatter(val) { + return val; + } + }, + total: { + show: false, + label: 'Total', + color: '#373d3f', + formatter: function formatter(w) { + return w.globals.seriesTotals.reduce(function (a, b) { + return a + b; + }, 0); + } + } + } + } + }, + radar: { + size: undefined, + offsetX: 0, + offsetY: 0, + polygons: { + // strokeColor: '#e8e8e8', // should be deprecated in the minor version i.e 3.2 + strokeColors: '#e8e8e8', + connectorColors: '#e8e8e8', + fill: { + colors: undefined + } + } + } + }, + colors: undefined, + dataLabels: { + enabled: true, + enabledOnSeries: undefined, + formatter: function formatter(val) { + return val; + }, + textAnchor: 'middle', + offsetX: 0, + offsetY: 0, + style: { + fontSize: '12px', + fontFamily: undefined, + colors: undefined + }, + dropShadow: { + enabled: false, + top: 1, + left: 1, + blur: 1, + color: '#000', + opacity: 0.45 + } + }, + fill: { + type: 'solid', + colors: undefined, + // array of colors + opacity: 0.85, + gradient: { + shade: 'dark', + type: 'horizontal', + shadeIntensity: 0.5, + gradientToColors: undefined, + inverseColors: true, + opacityFrom: 1, + opacityTo: 1, + stops: [0, 50, 100], + colorStops: [] + }, + image: { + src: [], + width: undefined, + // optional + height: undefined // optional + + }, + pattern: { + style: 'sqaures', + // String | Array of Strings + width: 6, + height: 6, + strokeWidth: 2 + } + }, + grid: { + show: true, + borderColor: '#e0e0e0', + strokeDashArray: 0, + position: 'back', + xaxis: { + lines: { + show: false, + animate: false + } + }, + yaxis: { + lines: { + show: true, + animate: true + } + }, + row: { + colors: undefined, + // takes as array which will be repeated on rows + opacity: 0.5 + }, + column: { + colors: undefined, + // takes an array which will be repeated on columns + opacity: 0.5 + }, + padding: { + top: 0, + right: 10, + bottom: 0, + left: 12 + } + }, + labels: [], + legend: { + show: true, + showForSingleSeries: false, + showForNullSeries: true, + showForZeroSeries: true, + floating: false, + position: 'bottom', + // whether to position legends in 1 of 4 + // direction - top, bottom, left, right + horizontalAlign: 'center', + // when position top/bottom, you can specify whether to align legends left, right or center + fontSize: '12px', + fontFamily: undefined, + width: undefined, + height: undefined, + formatter: undefined, + offsetX: -20, + offsetY: 0, + labels: { + colors: undefined, + useSeriesColors: false + }, + markers: { + width: 12, + height: 12, + strokeWidth: 0, + strokeColor: '#fff', + radius: 12, + customHTML: undefined, + offsetX: 0, + offsetY: 0, + onClick: undefined + }, + itemMargin: { + horizontal: 0, + vertical: 5 + }, + onItemClick: { + toggleDataSeries: true + }, + onItemHover: { + highlightDataSeries: true + } + }, + markers: { + discrete: [], + size: 0, + colors: undefined, + //strokeColor: '#fff', // TODO: deprecate in major version 4.0 + strokeColors: '#fff', + strokeWidth: 2, + strokeOpacity: 0.9, + fillOpacity: 1, + shape: 'circle', + radius: 2, + offsetX: 0, + offsetY: 0, + hover: { + size: undefined, + sizeOffset: 3 + } + }, + noData: { + text: undefined, + align: 'center', + verticalAlign: 'middle', + offsetX: 0, + offsetY: 0, + style: { + color: undefined, + fontSize: '14px', + fontFamily: undefined + } + }, + responsive: [], + // breakpoints should follow ascending order 400, then 700, then 1000 + series: undefined, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'lighten', + value: 0.15 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'darken', + value: 0.65 + } + } + }, + title: { + text: undefined, + align: 'left', + margin: 10, + offsetX: 0, + offsetY: 0, + floating: false, + style: { + fontSize: '14px', + fontFamily: undefined, + color: undefined + } + }, + subtitle: { + text: undefined, + align: 'left', + margin: 10, + offsetX: 0, + offsetY: 30, + floating: false, + style: { + fontSize: '12px', + fontFamily: undefined, + color: undefined + } + }, + stroke: { + show: true, + curve: 'smooth', + // "smooth" / "straight" / "stepline" + lineCap: 'butt', + // round, butt , square + width: 2, + colors: undefined, + // array of colors + dashArray: 0 // single value or array of values + + }, + tooltip: { + enabled: true, + shared: true, + followCursor: false, + // when disabled, the tooltip will show on top of the series instead of mouse position + intersect: false, + // when enabled, tooltip will only show when user directly hovers over point + inverseOrder: false, + custom: undefined, + fillSeriesColor: false, + theme: 'light', + style: { + fontSize: '12px', + fontFamily: undefined + }, + onDatasetHover: { + highlightDataSeries: false + }, + x: { + // x value + show: true, + format: 'dd MMM', + // dd/MM, dd MMM yy, dd MMM yyyy + formatter: undefined // a custom user supplied formatter function + + }, + y: { + formatter: undefined, + title: { + formatter: function formatter(seriesName) { + return seriesName; + } + } + }, + z: { + formatter: undefined, + title: 'Size: ' + }, + marker: { + show: true + }, + items: { + display: 'flex' + }, + fixed: { + enabled: false, + position: 'topRight', + // topRight, topLeft, bottomRight, bottomLeft + offsetX: 0, + offsetY: 0 + } + }, + xaxis: { + type: 'category', + categories: [], + offsetX: 0, + offsetY: 0, + labels: { + show: true, + rotate: -45, + rotateAlways: false, + hideOverlappingLabels: true, + trim: true, + minHeight: undefined, + maxHeight: 120, + showDuplicates: true, + style: { + colors: [], + fontSize: '12px', + fontFamily: undefined, + cssClass: '' + }, + offsetX: 0, + offsetY: 0, + format: undefined, + formatter: undefined, + // custom formatter function which will override format + datetimeFormatter: { + year: 'yyyy', + month: "MMM 'yy", + day: 'dd MMM', + hour: 'HH:mm', + minute: 'HH:mm:ss' + } + }, + axisBorder: { + show: true, + color: '#78909C', + width: '100%', + height: 1, + offsetX: 0, + offsetY: 0 + }, + axisTicks: { + show: true, + color: '#78909C', + height: 6, + offsetX: 0, + offsetY: 0 + }, + tickAmount: undefined, + tickPlacement: 'on', + min: undefined, + max: undefined, + range: undefined, + floating: false, + position: 'bottom', + title: { + text: undefined, + offsetX: 0, + offsetY: 0, + style: { + color: undefined, + fontSize: '12px', + fontFamily: undefined, + cssClass: '' + } + }, + crosshairs: { + show: true, + width: 1, + // tickWidth/barWidth or an integer + position: 'back', + opacity: 0.9, + stroke: { + color: '#b6b6b6', + width: 1, + dashArray: 3 + }, + fill: { + type: 'solid', + // solid, gradient + color: '#B1B9C4', + gradient: { + colorFrom: '#D8E3F0', + colorTo: '#BED1E6', + stops: [0, 100], + opacityFrom: 0.4, + opacityTo: 0.5 + } + }, + dropShadow: { + enabled: false, + left: 0, + top: 0, + blur: 1, + opacity: 0.4 + } + }, + tooltip: { + enabled: true, + offsetY: 0, + formatter: undefined, + style: { + fontSize: '12px', + fontFamily: undefined + } + } + }, + yaxis: this.yAxis, + theme: { + palette: 'palette1', + // If defined, it will overwrite globals.colors variable + monochrome: { + // monochrome allows you to select just 1 color and fill out the rest with light/dark shade (intensity can be selected) + enabled: false, + color: '#008FFB', + shadeTo: 'light', + shadeIntensity: 0.65 + } + } + }; + } + }]); + + return Options; +}(); + +/** + * ApexCharts Annotations Class for drawing lines/rects on both xaxis and yaxis. + * + * @module Annotations + **/ + +var Annotations = +/*#__PURE__*/ +function () { + function Annotations(ctx) { + _classCallCheck(this, Annotations); + + this.ctx = ctx; + this.w = ctx.w; + this.graphics = new Graphics(this.ctx); + + if (this.w.config.chart.type === 'bar' && this.w.config.plotOptions.bar.horizontal) { + this.invertAxis = true; + } + + this.xDivision = this.w.globals.gridWidth / this.w.globals.dataPoints; + } + + _createClass(Annotations, [{ + key: "drawAnnotations", + value: function drawAnnotations() { + var w = this.w; + + if (w.globals.axisCharts) { + var yAnnotations = this.drawYAxisAnnotations(); + var xAnnotations = this.drawXAxisAnnotations(); + var pointAnnotations = this.drawPointAnnotations(); + var initialAnim = w.config.chart.animations.enabled; + var annoArray = [yAnnotations, xAnnotations, pointAnnotations]; + var annoElArray = [xAnnotations.node, yAnnotations.node, pointAnnotations.node]; + + for (var i = 0; i < 3; i++) { + w.globals.dom.elGraphical.add(annoArray[i]); + + if (initialAnim && !w.globals.resized && !w.globals.dataChanged) { + annoElArray[i].classList.add('hidden'); + } + + w.globals.delayedElements.push({ + el: annoElArray[i], + index: 0 + }); + } // after placing the annotations on svg, set any vertically placed annotations + + + this.setOrientations(w.config.annotations.xaxis); // background sizes needs to be calculated after text is drawn, so calling them last + + this.annotationsBackground(); + } + } + }, { + key: "addXaxisAnnotation", + value: function addXaxisAnnotation(anno, parent, index) { + var w = this.w; + var min = this.invertAxis ? w.globals.minY : w.globals.minX; + var range = this.invertAxis ? w.globals.yRange[0] : w.globals.xRange; + var x1 = (anno.x - min) / (range / w.globals.gridWidth); + + if (w.config.xaxis.type === 'category' || w.config.xaxis.convertedCatToNumeric) { + var catIndex = w.globals.labels.indexOf(anno.x); + var xLabel = w.globals.dom.baseEl.querySelector('.apexcharts-xaxis-texts-g text:nth-child(' + (catIndex + 1) + ')'); + x1 = parseFloat(xLabel.getAttribute('x')); + } + + var strokeDashArray = anno.strokeDashArray; + if (x1 < 0 || x1 > w.globals.gridWidth) return; + + if (anno.x2 === null) { + var line = this.graphics.drawLine(x1 + anno.offsetX, // x1 + 0 + anno.offsetY, // y1 + x1 + anno.offsetX, // x2 + w.globals.gridHeight + anno.offsetY, // y2 + anno.borderColor, // lineColor + strokeDashArray //dashArray + ); + parent.appendChild(line.node); + } else { + var x2 = (anno.x2 - min) / (range / w.globals.gridWidth); + + if (x2 < x1) { + var temp = x1; + x1 = x2; + x2 = temp; + } + + var rect = this.graphics.drawRect(x1 + anno.offsetX, // x1 + 0 + anno.offsetY, // y1 + x2 - x1, // x2 + w.globals.gridHeight + anno.offsetY, // y2 + 0, // radius + anno.fillColor, // color + anno.opacity, // opacity, + 1, // strokeWidth + anno.borderColor, // strokeColor + strokeDashArray // stokeDashArray + ); + parent.appendChild(rect.node); + } + + var textY = anno.label.position === 'top' ? -3 : w.globals.gridHeight; + var text = anno.label.text ? anno.label.text : ''; + var elText = this.graphics.drawText({ + x: x1 + anno.label.offsetX, + y: textY + anno.label.offsetY, + text: text, + textAnchor: anno.label.textAnchor, + fontSize: anno.label.style.fontSize, + fontFamily: anno.label.style.fontFamily, + foreColor: anno.label.style.color, + cssClass: 'apexcharts-xaxis-annotation-label ' + anno.label.style.cssClass + }); + elText.attr({ + rel: index + }); + parent.appendChild(elText.node); + } + }, { + key: "drawXAxisAnnotations", + value: function drawXAxisAnnotations() { + var _this = this; + + var w = this.w; + var elg = this.graphics.group({ + class: 'apexcharts-xaxis-annotations' + }); + w.config.annotations.xaxis.map(function (anno, index) { + _this.addXaxisAnnotation(anno, elg.node, index); + }); + return elg; + } + }, { + key: "addYaxisAnnotation", + value: function addYaxisAnnotation(anno, parent, index) { + var w = this.w; + var strokeDashArray = anno.strokeDashArray; + var y1; + var y2; + + if (this.invertAxis) { + var catIndex = w.globals.labels.indexOf(anno.y); + var xLabel = w.globals.dom.baseEl.querySelector('.apexcharts-yaxis-texts-g text:nth-child(' + (catIndex + 1) + ')'); + y1 = parseFloat(xLabel.getAttribute('y')); + } else { + y1 = w.globals.gridHeight - (anno.y - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); + + if (w.config.yaxis[anno.yAxisIndex].reversed) { + y1 = (anno.y - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); + } + } + + var text = anno.label.text ? anno.label.text : ''; + + if (anno.y2 === null) { + var line = this.graphics.drawLine(0 + anno.offsetX, // x1 + y1 + anno.offsetY, // y1 + w.globals.gridWidth + anno.offsetX, // x2 + y1 + anno.offsetY, // y2 + anno.borderColor, // lineColor + strokeDashArray // dashArray + ); + parent.appendChild(line.node); + } else { + if (this.invertAxis) { + var _catIndex = w.globals.labels.indexOf(anno.y2); + + var _xLabel = w.globals.dom.baseEl.querySelector('.apexcharts-yaxis-texts-g text:nth-child(' + (_catIndex + 1) + ')'); + + y2 = parseFloat(_xLabel.getAttribute('y')); + } else { + y2 = w.globals.gridHeight - (anno.y2 - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); + + if (w.config.yaxis[anno.yAxisIndex].reversed) { + y2 = (anno.y2 - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); + } + } + + if (y2 > y1) { + var temp = y1; + y1 = y2; + y2 = temp; + } + + var rect = this.graphics.drawRect(0 + anno.offsetX, // x1 + y2 + anno.offsetY, // y1 + w.globals.gridWidth + anno.offsetX, // x2 + y1 - y2, // y2 + 0, // radius + anno.fillColor, // color + anno.opacity, // opacity, + 1, // strokeWidth + anno.borderColor, // strokeColor + strokeDashArray // stokeDashArray + ); + parent.appendChild(rect.node); + } + + var textX = anno.label.position === 'right' ? w.globals.gridWidth : 0; + var elText = this.graphics.drawText({ + x: textX + anno.label.offsetX, + y: (y2 || y1) + anno.label.offsetY - 3, + text: text, + textAnchor: anno.label.textAnchor, + fontSize: anno.label.style.fontSize, + fontFamily: anno.label.style.fontFamily, + foreColor: anno.label.style.color, + cssClass: 'apexcharts-yaxis-annotation-label ' + anno.label.style.cssClass + }); + elText.attr({ + rel: index + }); + parent.appendChild(elText.node); + } + }, { + key: "drawYAxisAnnotations", + value: function drawYAxisAnnotations() { + var _this2 = this; + + var w = this.w; + var elg = this.graphics.group({ + class: 'apexcharts-yaxis-annotations' + }); + w.config.annotations.yaxis.map(function (anno, index) { + _this2.addYaxisAnnotation(anno, elg.node, index); + }); + return elg; + } + }, { + key: "clearAnnotations", + value: function clearAnnotations(ctx) { + var w = ctx.w; + var annos = w.globals.dom.baseEl.querySelectorAll('.apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations'); + annos.forEach(function (a) { + while (a.firstChild) { + a.removeChild(a.firstChild); + } + }); + } + }, { + key: "addPointAnnotation", + value: function addPointAnnotation(anno, parent, index) { + var w = this.w; + var x = 0; + var y = 0; + var pointY = 0; + + if (this.invertAxis) { + console.warn('Point annotation is not supported in horizontal bar charts.'); + } + + if (typeof anno.x === 'string') { + var catIndex = w.globals.labels.indexOf(anno.x); + var xLabel = w.globals.dom.baseEl.querySelector('.apexcharts-xaxis-texts-g text:nth-child(' + (catIndex + 1) + ')'); + var xPos = parseFloat(xLabel.getAttribute('x')); + x = xPos; + var annoY = anno.y; + + if (anno.y === null) { + annoY = w.globals.series[anno.seriesIndex][catIndex]; + } + + y = w.globals.gridHeight - (annoY - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight) - parseInt(anno.label.style.fontSize) - anno.marker.size; + pointY = w.globals.gridHeight - (annoY - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); + + if (w.config.yaxis[anno.yAxisIndex].reversed) { + y = (annoY - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight) + parseInt(anno.label.style.fontSize) + anno.marker.size; + pointY = (annoY - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); + } + } else { + x = (anno.x - w.globals.minX) / (w.globals.xRange / w.globals.gridWidth); + y = w.globals.gridHeight - (parseFloat(anno.y) - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight) - parseInt(anno.label.style.fontSize) - anno.marker.size; + pointY = w.globals.gridHeight - (anno.y - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); + + if (w.config.yaxis[anno.yAxisIndex].reversed) { + y = (parseFloat(anno.y) - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight) - parseInt(anno.label.style.fontSize) - anno.marker.size; + pointY = (anno.y - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); + } + } + + if (x < 0 || x > w.globals.gridWidth) return; + var optsPoints = { + pSize: anno.marker.size, + pWidth: anno.marker.strokeWidth, + pointFillColor: anno.marker.fillColor, + pointStrokeColor: anno.marker.strokeColor, + shape: anno.marker.shape, + radius: anno.marker.radius, + class: 'apexcharts-point-annotation-marker ' + anno.marker.cssClass + }; + var point = this.graphics.drawMarker(x + anno.marker.offsetX, pointY + anno.marker.offsetY, optsPoints); + parent.appendChild(point.node); + var text = anno.label.text ? anno.label.text : ''; + var elText = this.graphics.drawText({ + x: x + anno.label.offsetX, + y: y + anno.label.offsetY, + text: text, + textAnchor: anno.label.textAnchor, + fontSize: anno.label.style.fontSize, + fontFamily: anno.label.style.fontFamily, + foreColor: anno.label.style.color, + cssClass: 'apexcharts-point-annotation-label ' + anno.label.style.cssClass + }); + elText.attr({ + rel: index + }); + parent.appendChild(elText.node); + + if (anno.customSVG.SVG) { + var g = this.graphics.group({ + class: 'apexcharts-point-annotations-custom-svg ' + anno.customSVG.cssClass + }); + g.attr({ + transform: "translate(".concat(x + anno.customSVG.offsetX, ", ").concat(y + anno.customSVG.offsetY, ")") + }); + g.node.innerHTML = anno.customSVG.SVG; + parent.appendChild(g.node); + } + } + }, { + key: "drawPointAnnotations", + value: function drawPointAnnotations() { + var _this3 = this; + + var w = this.w; + var elg = this.graphics.group({ + class: 'apexcharts-point-annotations' + }); + w.config.annotations.points.map(function (anno, index) { + _this3.addPointAnnotation(anno, elg.node, index); + }); + return elg; + } + }, { + key: "setOrientations", + value: function setOrientations(annos) { + var _this4 = this; + + var annoIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + var w = this.w; + annos.map(function (anno, index) { + if (anno.label.orientation === 'vertical') { + var i = annoIndex !== null ? annoIndex : index; + var xAnno = w.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(i, "']")); + + if (xAnno !== null) { + var xAnnoCoord = xAnno.getBoundingClientRect(); + xAnno.setAttribute('x', parseFloat(xAnno.getAttribute('x')) - xAnnoCoord.height + 4); + + if (anno.label.position === 'top') { + xAnno.setAttribute('y', parseFloat(xAnno.getAttribute('y')) + xAnnoCoord.width); + } else { + xAnno.setAttribute('y', parseFloat(xAnno.getAttribute('y')) - xAnnoCoord.width); + } + + var annoRotatingCenter = _this4.graphics.rotateAroundCenter(xAnno); + + var x = annoRotatingCenter.x; + var y = annoRotatingCenter.y; + xAnno.setAttribute('transform', "rotate(-90 ".concat(x, " ").concat(y, ")")); + } + } + }); + } + }, { + key: "addBackgroundToAnno", + value: function addBackgroundToAnno(annoEl, anno) { + var w = this.w; + var elGridRect = w.globals.dom.baseEl.querySelector('.apexcharts-grid').getBoundingClientRect(); + var coords = annoEl.getBoundingClientRect(); + var pleft = anno.label.style.padding.left; + var pright = anno.label.style.padding.right; + var ptop = anno.label.style.padding.top; + var pbottom = anno.label.style.padding.bottom; + + if (anno.label.orientation === 'vertical') { + ptop = anno.label.style.padding.left; + pbottom = anno.label.style.padding.right; + pleft = anno.label.style.padding.top; + pright = anno.label.style.padding.bottom; + } + + var x1 = coords.left - elGridRect.left - pleft; + var y1 = coords.top - elGridRect.top - ptop; + var elRect = this.graphics.drawRect(x1, y1, coords.width + pleft + pright, coords.height + ptop + pbottom, 0, anno.label.style.background, 1, anno.label.borderWidth, anno.label.borderColor, 0); + return elRect; + } + }, { + key: "annotationsBackground", + value: function annotationsBackground() { + var _this5 = this; + + var w = this.w; + + var add = function add(anno, i, type) { + var annoLabel = w.globals.dom.baseEl.querySelector(".apexcharts-".concat(type, "-annotations .apexcharts-").concat(type, "-annotation-label[rel='").concat(i, "']")); + + if (annoLabel) { + var parent = annoLabel.parentNode; + + var elRect = _this5.addBackgroundToAnno(annoLabel, anno); + + parent.insertBefore(elRect.node, annoLabel); + } + }; + + w.config.annotations.xaxis.map(function (anno, i) { + add(anno, i, 'xaxis'); + }); + w.config.annotations.yaxis.map(function (anno, i) { + add(anno, i, 'yaxis'); + }); + w.config.annotations.points.map(function (anno, i) { + add(anno, i, 'point'); + }); + } + }, { + key: "addText", + value: function addText(params, pushToMemory, context) { + var x = params.x, + y = params.y, + text = params.text, + textAnchor = params.textAnchor, + _params$appendTo = params.appendTo, + appendTo = _params$appendTo === void 0 ? '.apexcharts-inner' : _params$appendTo, + foreColor = params.foreColor, + fontSize = params.fontSize, + fontFamily = params.fontFamily, + cssClass = params.cssClass, + backgroundColor = params.backgroundColor, + borderWidth = params.borderWidth, + strokeDashArray = params.strokeDashArray, + radius = params.radius, + borderColor = params.borderColor, + _params$paddingLeft = params.paddingLeft, + paddingLeft = _params$paddingLeft === void 0 ? 4 : _params$paddingLeft, + _params$paddingRight = params.paddingRight, + paddingRight = _params$paddingRight === void 0 ? 4 : _params$paddingRight, + _params$paddingBottom = params.paddingBottom, + paddingBottom = _params$paddingBottom === void 0 ? 2 : _params$paddingBottom, + _params$paddingTop = params.paddingTop, + paddingTop = _params$paddingTop === void 0 ? 2 : _params$paddingTop; + var me = context; + var w = me.w; + var parentNode = w.globals.dom.baseEl.querySelector(appendTo); + var elText = this.graphics.drawText({ + x: x, + y: y, + text: text, + textAnchor: textAnchor || 'start', + fontSize: fontSize || '12px', + fontFamily: fontFamily || w.config.chart.fontFamily, + foreColor: foreColor || w.config.chart.foreColor, + cssClass: 'apexcharts-text ' + cssClass ? cssClass : '' + }); + parentNode.appendChild(elText.node); + var textRect = elText.bbox(); + var elRect = this.graphics.drawRect(textRect.x - paddingLeft, textRect.y - paddingTop, textRect.width + paddingLeft + paddingRight, textRect.height + paddingBottom + paddingTop, radius, backgroundColor, 1, borderWidth, borderColor, strokeDashArray); + elText.before(elRect); + + if (pushToMemory) { + w.globals.memory.methodsToExec.push({ + context: me, + method: me.addText, + params: { + x: x, + y: y, + text: text, + textAnchor: textAnchor, + appendTo: appendTo, + foreColor: foreColor, + fontSize: fontSize, + cssClass: cssClass, + backgroundColor: backgroundColor, + borderWidth: borderWidth, + strokeDashArray: strokeDashArray, + radius: radius, + borderColor: borderColor, + paddingLeft: paddingLeft, + paddingRight: paddingRight, + paddingBottom: paddingBottom, + paddingTop: paddingTop + } + }); + } + + return context; + } + }, { + key: "addPointAnnotationExternal", + value: function addPointAnnotationExternal(params, pushToMemory, context) { + this.addAnnotationExternal({ + params: params, + pushToMemory: pushToMemory, + context: context, + type: 'point', + contextMethod: context.addPointAnnotation + }); + return context; + } + }, { + key: "addYaxisAnnotationExternal", + value: function addYaxisAnnotationExternal(params, pushToMemory, context) { + this.addAnnotationExternal({ + params: params, + pushToMemory: pushToMemory, + context: context, + type: 'yaxis', + contextMethod: context.addYaxisAnnotation + }); + return context; + } // The addXaxisAnnotation method requires a parent class, and user calling this method externally on the chart instance may not specify parent, hence a different method + + }, { + key: "addXaxisAnnotationExternal", + value: function addXaxisAnnotationExternal(params, pushToMemory, context) { + this.addAnnotationExternal({ + params: params, + pushToMemory: pushToMemory, + context: context, + type: 'xaxis', + contextMethod: context.addXaxisAnnotation + }); + return context; + } + }, { + key: "addAnnotationExternal", + value: function addAnnotationExternal(_ref) { + var params = _ref.params, + pushToMemory = _ref.pushToMemory, + context = _ref.context, + type = _ref.type, + contextMethod = _ref.contextMethod; + var me = context; + var w = me.w; + var parent = w.globals.dom.baseEl.querySelector(".apexcharts-".concat(type, "-annotations")); + var index = parent.childNodes.length + 1; + var opt = new Options(); + var axesAnno = Object.assign({}, type === 'xaxis' ? opt.xAxisAnnotation : type === 'yaxis' ? opt.yAxisAnnotation : opt.pointAnnotation); + var anno = Utils.extend(axesAnno, params); + + switch (type) { + case 'xaxis': + this.addXaxisAnnotation(anno, parent, index); + break; + + case 'yaxis': + this.addYaxisAnnotation(anno, parent, index); + break; + + case 'point': + this.addPointAnnotation(anno, parent, index); + break; + } // add background + + + var axesAnnoLabel = w.globals.dom.baseEl.querySelector(".apexcharts-".concat(type, "-annotations .apexcharts-").concat(type, "-annotation-label[rel='").concat(index, "']")); + var elRect = this.addBackgroundToAnno(axesAnnoLabel, anno); + parent.insertBefore(elRect.node, axesAnnoLabel); + + if (pushToMemory) { + w.globals.memory.methodsToExec.push({ + context: me, + method: contextMethod, + params: params + }); + } + + return context; + } + }]); + + return Annotations; +}(); + +/** + * ApexCharts Default Class for setting default options for all chart types. + * + * @module Defaults + **/ + +var Defaults = +/*#__PURE__*/ +function () { + function Defaults(opts) { + _classCallCheck(this, Defaults); + + this.opts = opts; + } + + _createClass(Defaults, [{ + key: "line", + value: function line() { + return { + chart: { + animations: { + easing: 'swing' + } + }, + dataLabels: { + enabled: false + }, + stroke: { + width: 5, + curve: 'straight' + }, + markers: { + size: 0, + hover: { + sizeOffset: 6 + } + }, + xaxis: { + crosshairs: { + width: 1 + } + } + }; + } + }, { + key: "sparkline", + value: function sparkline(defaults) { + this.opts.yaxis[0].labels.show = false; + this.opts.yaxis[0].floating = true; + var ret = { + grid: { + show: false, + padding: { + left: 0, + right: 0, + top: 0, + bottom: 0 + } + }, + legend: { + show: false + }, + xaxis: { + labels: { + show: false + }, + tooltip: { + enabled: false + }, + axisBorder: { + show: false + } + }, + chart: { + toolbar: { + show: false + }, + zoom: { + enabled: false + } + }, + dataLabels: { + enabled: false + } + }; + return Utils.extend(defaults, ret); + } + }, { + key: "bar", + value: function bar() { + return { + chart: { + stacked: false, + animations: { + easing: 'swing' + } + }, + plotOptions: { + bar: { + dataLabels: { + position: 'center' + } + } + }, + dataLabels: { + style: { + colors: ['#fff'] + } + }, + stroke: { + width: 0 + }, + fill: { + opacity: 0.85 + }, + legend: { + markers: { + shape: 'square', + radius: 2, + size: 8 + } + }, + tooltip: { + shared: false + }, + xaxis: { + tooltip: { + enabled: false + }, + crosshairs: { + width: 'barWidth', + position: 'back', + fill: { + type: 'gradient' + }, + dropShadow: { + enabled: false + }, + stroke: { + width: 0 + } + } + } + }; + } + }, { + key: "candlestick", + value: function candlestick() { + return { + stroke: { + width: 1, + colors: ['#333'] + }, + dataLabels: { + enabled: false + }, + tooltip: { + shared: true, + custom: function custom(_ref) { + var seriesIndex = _ref.seriesIndex, + dataPointIndex = _ref.dataPointIndex, + w = _ref.w; + var o = w.globals.seriesCandleO[seriesIndex][dataPointIndex]; + var h = w.globals.seriesCandleH[seriesIndex][dataPointIndex]; + var l = w.globals.seriesCandleL[seriesIndex][dataPointIndex]; + var c = w.globals.seriesCandleC[seriesIndex][dataPointIndex]; + return '
' + '
Open: ' + o + '
' + '
High: ' + h + '
' + '
Low: ' + l + '
' + '
Close: ' + c + '
' + '
'; + } + }, + states: { + active: { + filter: { + type: 'none' + } + } + }, + xaxis: { + crosshairs: { + width: 1 + } + } + }; + } + }, { + key: "area", + value: function area() { + return { + stroke: { + width: 4 + }, + fill: { + type: 'gradient', + gradient: { + inverseColors: false, + shade: 'light', + type: 'vertical', + opacityFrom: 0.65, + opacityTo: 0.5, + stops: [0, 100, 100] + } + }, + markers: { + size: 0, + hover: { + sizeOffset: 6 + } + }, + tooltip: { + followCursor: false + } + }; + } + }, { + key: "brush", + value: function brush(defaults) { + var ret = { + chart: { + toolbar: { + autoSelected: 'selection', + show: false + }, + zoom: { + enabled: false + } + }, + dataLabels: { + enabled: false + }, + stroke: { + width: 1 + }, + tooltip: { + enabled: false + }, + xaxis: { + tooltip: { + enabled: false + } + } + }; + return Utils.extend(defaults, ret); + } + }, { + key: "stacked100", + value: function stacked100() { + var _this = this; + + this.opts.dataLabels = this.opts.dataLabels || {}; + this.opts.dataLabels.formatter = this.opts.dataLabels.formatter || undefined; + var existingDataLabelFormatter = this.opts.dataLabels.formatter; + this.opts.yaxis.forEach(function (yaxe, index) { + _this.opts.yaxis[index].min = 0; + _this.opts.yaxis[index].max = 100; + }); + var isBar = this.opts.chart.type === 'bar'; + + if (isBar) { + this.opts.dataLabels.formatter = existingDataLabelFormatter || function (val) { + if (typeof val === 'number') { + return val ? val.toFixed(0) + '%' : val; + } + + return val; + }; + } + } // This function removes the left and right spacing in chart for line/area/scatter if xaxis type = category for those charts by converting xaxis = numeric. Numeric/Datetime xaxis prevents the unnecessary spacing in the left/right of the chart area + + }, { + key: "bubble", + value: function bubble() { + return { + dataLabels: { + style: { + colors: ['#fff'] + } + }, + tooltip: { + shared: false, + intersect: true + }, + xaxis: { + crosshairs: { + width: 0 + } + }, + fill: { + type: 'solid', + gradient: { + shade: 'light', + inverse: true, + shadeIntensity: 0.55, + opacityFrom: 0.4, + opacityTo: 0.8 + } + } + }; + } + }, { + key: "scatter", + value: function scatter() { + return { + dataLabels: { + enabled: false + }, + tooltip: { + shared: false, + intersect: true + }, + markers: { + size: 6, + strokeWidth: 2, + hover: { + sizeOffset: 2 + } + } + }; + } + }, { + key: "heatmap", + value: function heatmap() { + return { + chart: { + stacked: false, + zoom: { + enabled: false + } + }, + fill: { + opacity: 1 + }, + dataLabels: { + style: { + colors: ['#fff'] + } + }, + stroke: { + colors: ['#fff'] + }, + tooltip: { + followCursor: true, + marker: { + show: false + }, + x: { + show: false + } + }, + legend: { + position: 'top', + markers: { + shape: 'square', + size: 10, + offsetY: 2 + } + }, + grid: { + padding: { + right: 20 + } + } + }; + } + }, { + key: "pie", + value: function pie() { + return { + chart: { + toolbar: { + show: false + } + }, + plotOptions: { + pie: { + donut: { + labels: { + show: false + } + } + } + }, + dataLabels: { + formatter: function formatter(val) { + return val.toFixed(1) + '%'; + }, + style: { + colors: ['#fff'] + }, + dropShadow: { + enabled: true + } + }, + stroke: { + colors: ['#fff'] + }, + fill: { + opacity: 1, + gradient: { + shade: 'dark', + shadeIntensity: 0.35, + inverseColors: false, + stops: [0, 100, 100] + } + }, + padding: { + right: 0, + left: 0 + }, + tooltip: { + theme: 'dark', + fillSeriesColor: true + }, + legend: { + position: 'right' + } + }; + } + }, { + key: "donut", + value: function donut() { + return { + chart: { + toolbar: { + show: false + } + }, + dataLabels: { + formatter: function formatter(val) { + return val.toFixed(1) + '%'; + }, + style: { + colors: ['#fff'] + }, + dropShadow: { + enabled: true + } + }, + stroke: { + colors: ['#fff'] + }, + fill: { + opacity: 1, + gradient: { + shade: 'dark', + shadeIntensity: 0.4, + inverseColors: false, + type: 'vertical', + opacityFrom: 1, + opacityTo: 1, + stops: [70, 98, 100] + } + }, + padding: { + right: 0, + left: 0 + }, + tooltip: { + theme: 'dark', + fillSeriesColor: true + }, + legend: { + position: 'right' + } + }; + } + }, { + key: "radar", + value: function radar() { + this.opts.yaxis[0].labels.style.fontSize = '13px'; + this.opts.yaxis[0].labels.offsetY = 6; + return { + dataLabels: { + enabled: true, + style: { + colors: ['#a8a8a8'], + fontSize: '11px' + } + }, + stroke: { + width: 2 + }, + markers: { + size: 3, + strokeWidth: 1, + strokeOpacity: 1 + }, + fill: { + opacity: 0.2 + }, + tooltip: { + shared: false, + intersect: true, + followCursor: true + }, + grid: { + show: false + }, + xaxis: { + tooltip: { + enabled: false + }, + crosshairs: { + show: false + } + } + }; + } + }, { + key: "radialBar", + value: function radialBar() { + return { + chart: { + animations: { + dynamicAnimation: { + enabled: true, + speed: 800 + } + }, + toolbar: { + show: false + } + }, + fill: { + gradient: { + shade: 'dark', + shadeIntensity: 0.4, + inverseColors: false, + type: 'diagonal2', + opacityFrom: 1, + opacityTo: 1, + stops: [70, 98, 100] + } + }, + padding: { + right: 0, + left: 0 + }, + legend: { + show: false, + position: 'right' + }, + tooltip: { + enabled: false, + fillSeriesColor: true + } + }; + } + }], [{ + key: "convertCatToNumeric", + value: function convertCatToNumeric(opts) { + opts.xaxis.type = 'numeric'; + opts.xaxis.convertedCatToNumeric = true; + opts.xaxis.labels = opts.xaxis.labels || {}; + + opts.xaxis.labels.formatter = opts.xaxis.labels.formatter || function (val) { + return val; + }; + + opts.chart = opts.chart || {}; + opts.chart.zoom = opts.chart.zoom || window.Apex.chart && window.Apex.chart.zoom || {}; + var defaultFormatter = opts.xaxis.labels.formatter; + var labels = opts.xaxis.categories && opts.xaxis.categories.length ? opts.xaxis.categories : opts.labels; + + if (labels && labels.length) { + opts.xaxis.labels.formatter = function (val) { + return defaultFormatter(labels[val - 1]); + }; + } + + opts.xaxis.categories = []; + opts.labels = []; + opts.chart.zoom.enabled = false; + return opts; + } + }]); + + return Defaults; +}(); + +/* + ** Util functions which are dependent on ApexCharts instance + */ +var CoreUtils = +/*#__PURE__*/ +function () { + function CoreUtils(ctx) { + _classCallCheck(this, CoreUtils); + + this.ctx = ctx; + this.w = ctx.w; + } + + _createClass(CoreUtils, [{ + key: "getStackedSeriesTotals", + + /** + * @memberof CoreUtils + * returns the sum of all individual values in a multiple stacked series + * Eg. w.globals.series = [[32,33,43,12], [2,3,5,1]] + * @return [34,36,48,13] + **/ + value: function getStackedSeriesTotals() { + var w = this.w; + var total = []; + + for (var i = 0; i < w.globals.series[w.globals.maxValsInArrayIndex].length; i++) { + var t = 0; + + for (var j = 0; j < w.globals.series.length; j++) { + t += w.globals.series[j][i]; + } + + total.push(t); + } + + w.globals.stackedSeriesTotals = total; + return total; + } // get total of the all values inside all series + + }, { + key: "getSeriesTotalByIndex", + value: function getSeriesTotalByIndex() { + var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + + if (index === null) { + // non-plot chart types - pie / donut / circle + return this.w.config.series.reduce(function (acc, cur) { + return acc + cur; + }, 0); + } else { + // axis charts - supporting multiple series + return this.w.globals.series[index].reduce(function (acc, cur) { + return acc + cur; + }, 0); + } + } + }, { + key: "isSeriesNull", + value: function isSeriesNull() { + var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + var r = []; + + if (index === null) { + // non-plot chart types - pie / donut / circle + r = this.w.config.series.filter(function (d) { + return d !== null; + }); + } else { + // axis charts - supporting multiple series + r = this.w.globals.series[index].filter(function (d) { + return d !== null; + }); + } + + return r.length === 0; + } + }, { + key: "seriesHaveSameValues", + value: function seriesHaveSameValues(index) { + return this.w.globals.series[index].every(function (val, i, arr) { + return val === arr[0]; + }); + } // maxValsInArrayIndex is the index of series[] which has the largest number of items + + }, { + key: "getLargestSeries", + value: function getLargestSeries() { + var w = this.w; + w.globals.maxValsInArrayIndex = w.globals.series.map(function (a) { + return a.length; + }).indexOf(Math.max.apply(Math, w.globals.series.map(function (a) { + return a.length; + }))); + } + }, { + key: "getLargestMarkerSize", + value: function getLargestMarkerSize() { + var w = this.w; + var size = 0; + w.globals.markers.size.forEach(function (m) { + size = Math.max(size, m); + }); + w.globals.markers.largestSize = size; + return size; + } + /** + * @memberof Core + * returns the sum of all values in a series + * Eg. w.globals.series = [[32,33,43,12], [2,3,5,1]] + * @return [120, 11] + **/ + + }, { + key: "getSeriesTotals", + value: function getSeriesTotals() { + var w = this.w; + w.globals.seriesTotals = w.globals.series.map(function (ser, index) { + var total = 0; + + if (Array.isArray(ser)) { + for (var j = 0; j < ser.length; j++) { + total += ser[j]; + } + } else { + // for pie/donuts/gauges + total += ser; + } + + return total; + }); + } + }, { + key: "getSeriesTotalsXRange", + value: function getSeriesTotalsXRange(minX, maxX) { + var w = this.w; + var seriesTotalsXRange = w.globals.series.map(function (ser, index) { + var total = 0; + + for (var j = 0; j < ser.length; j++) { + if (w.globals.seriesX[index][j] > minX && w.globals.seriesX[index][j] < maxX) { + total += ser[j]; + } + } + + return total; + }); + return seriesTotalsXRange; + } + /** + * @memberof CoreUtils + * returns the percentage value of all individual values which can be used in a 100% stacked series + * Eg. w.globals.series = [[32, 33, 43, 12], [2, 3, 5, 1]] + * @return [[94.11, 91.66, 89.58, 92.30], [5.88, 8.33, 10.41, 7.7]] + **/ + + }, { + key: "getPercentSeries", + value: function getPercentSeries() { + var w = this.w; + w.globals.seriesPercent = w.globals.series.map(function (ser, index) { + var seriesPercent = []; + + if (Array.isArray(ser)) { + for (var j = 0; j < ser.length; j++) { + var total = w.globals.stackedSeriesTotals[j]; + var percent = 100 * ser[j] / total; + seriesPercent.push(percent); + } + } else { + var _total = w.globals.seriesTotals.reduce(function (acc, val) { + return acc + val; + }, 0); + + var _percent = 100 * ser / _total; + + seriesPercent.push(_percent); + } + + return seriesPercent; + }); + } + }, { + key: "getCalculatedRatios", + value: function getCalculatedRatios() { + var gl = this.w.globals; + var yRatio = []; + var invertedYRatio = 0; + var xRatio = 0; + var initialXRatio = 0; + var invertedXRatio = 0; + var zRatio = 0; + var baseLineY = []; + var baseLineInvertedY = 0.1; + var baseLineX = 0; + gl.yRange = []; + + if (gl.isMultipleYAxis) { + for (var i = 0; i < gl.minYArr.length; i++) { + gl.yRange.push(Math.abs(gl.minYArr[i] - gl.maxYArr[i])); + baseLineY.push(0); + } + } else { + gl.yRange.push(Math.abs(gl.minY - gl.maxY)); + } + + gl.xRange = Math.abs(gl.maxX - gl.minX); + gl.zRange = Math.abs(gl.maxZ - gl.minZ); // multiple y axis + + for (var _i = 0; _i < gl.yRange.length; _i++) { + yRatio.push(gl.yRange[_i] / gl.gridHeight); + } + + xRatio = gl.xRange / gl.gridWidth; + initialXRatio = Math.abs(gl.initialmaxX - gl.initialminX) / gl.gridWidth; + invertedYRatio = gl.yRange / gl.gridWidth; + invertedXRatio = gl.xRange / gl.gridHeight; + zRatio = gl.zRange / gl.gridHeight * 16; + + if (gl.minY !== Number.MIN_VALUE && Math.abs(gl.minY) !== 0) { + // Negative numbers present in series + gl.hasNegs = true; + baseLineY = []; // baseline variables is the 0 of the yaxis which will be needed when there are negatives + + if (gl.isMultipleYAxis) { + for (var _i2 = 0; _i2 < yRatio.length; _i2++) { + baseLineY.push(-gl.minYArr[_i2] / yRatio[_i2]); + } + } else { + baseLineY.push(-gl.minY / yRatio[0]); + } + + baseLineInvertedY = -gl.minY / invertedYRatio; // this is for bar chart + + baseLineX = gl.minX / xRatio; + } else { + baseLineY.push(0); + } + + return { + yRatio: yRatio, + invertedYRatio: invertedYRatio, + zRatio: zRatio, + xRatio: xRatio, + initialXRatio: initialXRatio, + invertedXRatio: invertedXRatio, + baseLineInvertedY: baseLineInvertedY, + baseLineY: baseLineY, + baseLineX: baseLineX + }; + } + }, { + key: "getLogSeries", + value: function getLogSeries(series) { + var w = this.w; + w.globals.seriesLog = series.map(function (s, i) { + if (w.config.yaxis[i] && w.config.yaxis[i].logarithmic) { + return s.map(function (d) { + if (d === null) return null; + var logVal = (Math.log(d) - Math.log(w.globals.minYArr[i])) / (Math.log(w.globals.maxYArr[i]) - Math.log(w.globals.minYArr[i])); + return logVal; + }); + } else { + return s; + } + }); + return w.globals.seriesLog; + } + }, { + key: "getLogYRatios", + value: function getLogYRatios(yRatio) { + var _this = this; + + var w = this.w; + var gl = this.w.globals; + gl.yLogRatio = yRatio.slice(); + gl.logYRange = gl.yRange.map(function (yRange, i) { + if (w.config.yaxis[i] && _this.w.config.yaxis[i].logarithmic) { + var maxY = -Number.MAX_VALUE; + var minY = Number.MIN_VALUE; + var range = 1; + gl.seriesLog.forEach(function (s, si) { + s.forEach(function (v) { + if (w.config.yaxis[si] && w.config.yaxis[si].logarithmic) { + maxY = Math.max(v, maxY); + minY = Math.min(v, minY); + } + }); + }); + range = Math.pow(gl.yRange[i], Math.abs(minY - maxY) / gl.yRange[i]); + gl.yLogRatio[i] = range / gl.gridHeight; + return range; + } + }); + return gl.yLogRatio; + } // Some config objects can be array - and we need to extend them correctly + + }], [{ + key: "checkComboSeries", + value: function checkComboSeries(series) { + var comboCharts = false; + var comboChartsHasBars = false; // if user specified a type in series too, turn on comboCharts flag + + if (series.length && typeof series[0].type !== 'undefined') { + comboCharts = true; + series.forEach(function (s) { + if (s.type === 'bar' || s.type === 'column') { + comboChartsHasBars = true; + } + }); + } + + return { + comboCharts: comboCharts, + comboChartsHasBars: comboChartsHasBars + }; + } + }, { + key: "extendArrayProps", + value: function extendArrayProps(configInstance, options) { + if (options.yaxis) { + options = configInstance.extendYAxis(options); + } + + if (options.annotations) { + if (options.annotations.yaxis) { + options = configInstance.extendYAxisAnnotations(options); + } + + if (options.annotations.xaxis) { + options = configInstance.extendXAxisAnnotations(options); + } + + if (options.annotations.points) { + options = configInstance.extendPointAnnotations(options); + } + } + + return options; + } + }]); + + return CoreUtils; +}(); + +/** + * ApexCharts Config Class for extending user options with pre-defined ApexCharts config. + * + * @module Config + **/ + +var Config = +/*#__PURE__*/ +function () { + function Config(opts) { + _classCallCheck(this, Config); + + this.opts = opts; + } + + _createClass(Config, [{ + key: "init", + value: function init() { + var opts = this.opts; + var options = new Options(); + var defaults = new Defaults(opts); + this.chartType = opts.chart.type; + + if (this.chartType === 'histogram') { + // technically, a histogram can be drawn by a column chart with no spaces in between + opts.chart.type = 'bar'; + opts = Utils.extend({ + plotOptions: { + bar: { + columnWidth: '99.99%' + } + } + }, opts); + } + + opts.series = this.checkEmptySeries(opts.series); + opts = this.extendYAxis(opts); + opts = this.extendAnnotations(opts); + var config = options.init(); + var newDefaults = {}; + + if (opts && _typeof(opts) === 'object') { + var chartDefaults = {}; + + switch (this.chartType) { + case 'line': + chartDefaults = defaults.line(); + break; + + case 'area': + chartDefaults = defaults.area(); + break; + + case 'bar': + chartDefaults = defaults.bar(); + break; + + case 'candlestick': + chartDefaults = defaults.candlestick(); + break; + + case 'histogram': + chartDefaults = defaults.bar(); + break; + + case 'bubble': + chartDefaults = defaults.bubble(); + break; + + case 'scatter': + chartDefaults = defaults.scatter(); + break; + + case 'heatmap': + chartDefaults = defaults.heatmap(); + break; + + case 'pie': + chartDefaults = defaults.pie(); + break; + + case 'donut': + chartDefaults = defaults.donut(); + break; + + case 'radar': + chartDefaults = defaults.radar(); + break; + + case 'radialBar': + chartDefaults = defaults.radialBar(); + break; + + default: + chartDefaults = defaults.line(); + } + + if (opts.chart.brush && opts.chart.brush.enabled) { + chartDefaults = defaults.brush(chartDefaults); + } + + if (opts.chart.stacked && opts.chart.stackType === '100%') { + defaults.stacked100(); + } + + opts.xaxis = opts.xaxis || window.Apex.xaxis || {}; + var combo = CoreUtils.checkComboSeries(opts.series); + + if ((opts.chart.type === 'line' || opts.chart.type === 'area' || opts.chart.type === 'scatter') && !combo.comboChartsHasBars && opts.xaxis.type !== 'datetime' && opts.xaxis.tickPlacement !== 'between') { + opts = Defaults.convertCatToNumeric(opts); + } + + if (opts.chart.sparkline && opts.chart.sparkline.enabled || window.Apex.chart && window.Apex.chart.sparkline && window.Apex.chart.sparkline.enabled) { + chartDefaults = defaults.sparkline(chartDefaults); + } + + newDefaults = Utils.extend(config, chartDefaults); + } // config should cascade in this fashion + // default-config < global-apex-variable-config < user-defined-config + // get GLOBALLY defined options and merge with the default config + + + var mergedWithDefaultConfig = Utils.extend(newDefaults, window.Apex); // get the merged config and extend with user defined config + + config = Utils.extend(mergedWithDefaultConfig, opts); // some features are not supported. those mismatches should be handled + + config = this.handleUserInputErrors(config); + return config; + } + }, { + key: "extendYAxis", + value: function extendYAxis(opts) { + var options = new Options(); + + if (typeof opts.yaxis === 'undefined') { + opts.yaxis = {}; + } // extend global yaxis config (only if object is provided / not an array) + + + if (opts.yaxis.constructor !== Array && window.Apex.yaxis && window.Apex.yaxis.constructor !== Array) { + opts.yaxis = Utils.extend(opts.yaxis, window.Apex.yaxis); + } // as we can't extend nested object's array with extend, we need to do it first + // user can provide either an array or object in yaxis config + + + if (opts.yaxis.constructor !== Array) { + // convert the yaxis to array if user supplied object + opts.yaxis = [Utils.extend(options.yAxis, opts.yaxis)]; + } else { + opts.yaxis = Utils.extendArray(opts.yaxis, options.yAxis); + } + + return opts; + } // annotations also accepts array, so we need to extend them manually + + }, { + key: "extendAnnotations", + value: function extendAnnotations(opts) { + if (typeof opts.annotations === 'undefined') { + opts.annotations = {}; + opts.annotations.yaxis = []; + opts.annotations.xaxis = []; + opts.annotations.points = []; + } + + opts = this.extendYAxisAnnotations(opts); + opts = this.extendXAxisAnnotations(opts); + opts = this.extendPointAnnotations(opts); + return opts; + } + }, { + key: "extendYAxisAnnotations", + value: function extendYAxisAnnotations(opts) { + var options = new Options(); + opts.annotations.yaxis = Utils.extendArray(typeof opts.annotations.yaxis !== 'undefined' ? opts.annotations.yaxis : [], options.yAxisAnnotation); + return opts; + } + }, { + key: "extendXAxisAnnotations", + value: function extendXAxisAnnotations(opts) { + var options = new Options(); + opts.annotations.xaxis = Utils.extendArray(typeof opts.annotations.xaxis !== 'undefined' ? opts.annotations.xaxis : [], options.xAxisAnnotation); + return opts; + } + }, { + key: "extendPointAnnotations", + value: function extendPointAnnotations(opts) { + var options = new Options(); + opts.annotations.points = Utils.extendArray(typeof opts.annotations.points !== 'undefined' ? opts.annotations.points : [], options.pointAnnotation); + return opts; + } + }, { + key: "checkEmptySeries", + value: function checkEmptySeries(ser) { + if (ser.length === 0) { + return [{ + data: [] + }]; + } + + return ser; + } + }, { + key: "handleUserInputErrors", + value: function handleUserInputErrors(opts) { + var config = opts; // conflicting tooltip option. intersect makes sure to focus on 1 point at a time. Shared cannot be used along with it + + if (config.tooltip.shared && config.tooltip.intersect) { + throw new Error('tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.'); + } + + if (config.chart.scroller) { + console.warn('Scroller has been deprecated since v2.0.0. Please remove the configuration for chart.scroller'); + } + + if (config.chart.type === 'bar' && config.plotOptions.bar.horizontal) { + // No time series for horizontal bars + if (config.xaxis.type === 'datetime') { + throw new Error('Timelines on bars are not supported yet. Switch to column chart by setting plotOptions.bar.horizontal=false'); + } // No multiple yaxis for bars + + + if (config.yaxis.length > 1) { + throw new Error('Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false'); + } + + if (config.yaxis[0].reversed) { + config.yaxis[0].opposite = true; + } + + config.xaxis.tooltip.enabled = false; // no xaxis tooltip for horizontal bar + + config.yaxis[0].tooltip.enabled = false; // no xaxis tooltip for horizontal bar + + config.chart.zoom.enabled = false; // no zooming for horz bars + } + + if (config.chart.type === 'bar') { + if (config.tooltip.shared) { + if (config.xaxis.crosshairs.width === 'barWidth' && config.series.length > 1) { + console.warn('crosshairs.width = "barWidth" is only supported in single series, not in a multi-series barChart.'); + config.xaxis.crosshairs.width = 'tickWidth'; + } + + if (config.plotOptions.bar.horizontal) { + config.states.hover.type = 'none'; + } + + if (!config.tooltip.followCursor) { + console.warn('followCursor option in shared columns cannot be turned off.'); + config.tooltip.followCursor = true; + } + } + } + + if (config.chart.type === 'candlestick') { + if (config.yaxis[0].reversed) { + console.warn('Reversed y-axis in candlestick chart is not supported.'); + config.yaxis[0].reversed = false; + } + } + + if (config.chart.group && config.yaxis[0].labels.minWidth === 0) { + console.warn('It looks like you have multiple charts in synchronization. You must provide yaxis.labels.minWidth which must be EQUAL for all grouped charts to prevent incorrect behaviour.'); + } // if user supplied array for stroke width, it will only be applicable to line/area charts, for any other charts, revert back to Number + + + if (Array.isArray(config.stroke.width)) { + if (config.chart.type !== 'line' && config.chart.type !== 'area') { + console.warn('stroke.width option accepts array only for line and area charts. Reverted back to Number'); + config.stroke.width = config.stroke.width[0]; + } + } + + return config; + } + }]); + + return Config; +}(); + +var Globals = +/*#__PURE__*/ +function () { + function Globals() { + _classCallCheck(this, Globals); + } + + _createClass(Globals, [{ + key: "globalVars", + value: function globalVars(config) { + return { + chartID: null, + // chart ID - apexcharts-cuid + cuid: null, + // chart ID - random numbers excluding "apexcharts" part + events: { + beforeMount: [], + mounted: [], + updated: [], + clicked: [], + selection: [], + dataPointSelection: [], + zoomed: [], + scrolled: [] + }, + colors: [], + fill: { + colors: [] + }, + stroke: { + colors: [] + }, + dataLabels: { + style: { + colors: [] + } + }, + radarPolygons: { + fill: { + colors: [] + } + }, + markers: { + colors: [], + size: config.markers.size, + largestSize: 0 + }, + animationEnded: false, + isTouchDevice: 'ontouchstart' in window || navigator.msMaxTouchPoints, + isDirty: false, + // chart has been updated after the initial render. This is different than dataChanged property. isDirty means user manually called some method to update + initialConfig: null, + // we will store the first config user has set to go back when user finishes interactions like zooming and come out of it + lastXAxis: [], + lastYAxis: [], + series: [], + // the MAIN series array (y values) + seriesPercent: [], + // the percentage values of the given series + seriesTotals: [], + stackedSeriesTotals: [], + seriesX: [], + // store the numeric x values in this array (x values) + seriesZ: [], + // The 3rd "Z" dimension for bubbles chart (z values) + labels: [], + // store the text to draw on x axis + // Don't mutate the labels, many things including tooltips depends on it! + timelineLabels: [], + // store the timeline Labels in another variable + seriesNames: [], + // same as labels, used in non axis charts + noLabelsProvided: false, + // if user didn't provide any categories/labels or x values, fallback to 1,2,3,4... + allSeriesCollapsed: false, + collapsedSeries: [], + // when user collapses a series, it goes into this array + collapsedSeriesIndices: [], + // this stores the index of the collapsedSeries instead of whole object for quick access + ancillaryCollapsedSeries: [], + // when user collapses an "alwaysVisible" series, it goes into this array + ancillaryCollapsedSeriesIndices: [], + // this stores the index of the collapsedSeries whose y-axis is always visible + risingSeries: [], + // when user re-opens a collapsed series, it goes here + selectedDataPoints: [], + ignoreYAxisIndexes: [], + // when series are being collapsed in multiple y axes, ignore certain index + padHorizontal: 0, + maxValsInArrayIndex: 0, + zoomEnabled: config.chart.toolbar.autoSelected === 'zoom' && config.chart.toolbar.tools.zoom && config.chart.zoom.enabled, + panEnabled: config.chart.toolbar.autoSelected === 'pan' && config.chart.toolbar.tools.pan, + selectionEnabled: config.chart.toolbar.autoSelected === 'selection' && config.chart.toolbar.tools.selection, + yaxis: null, + minY: Number.MIN_VALUE, + // is 5e-324, i.e. the smallest positive number + // NOTE: If there are multiple y axis, the first yaxis array element will be considered for all y values calculations. Rest all will be calculated based on that + maxY: -Number.MAX_VALUE, + // is -1.7976931348623157e+308 + // NOTE: The above note for minY applies here as well + minYArr: [], + maxYArr: [], + maxX: -Number.MAX_VALUE, + // is -1.7976931348623157e+308 + initialmaxX: -Number.MAX_VALUE, + minX: Number.MIN_VALUE, + // is 5e-324, i.e. the smallest positive number + initialminX: Number.MIN_VALUE, + minZ: Number.MIN_VALUE, + // Max Z value in charts with Z axis + maxZ: -Number.MAX_VALUE, + // Max Z value in charts with Z axis + mousedown: false, + lastClientPosition: {}, + // don't reset this variable this the chart is destroyed. It is used to detect right or left mousemove in panning + visibleXRange: undefined, + yRange: [], + // this property is the absolute sum of positive and negative values [eg (-100 + 200 = 300)] - yAxis + zRange: 0, + // zAxis Range (for bubble charts) + xRange: 0, + // xAxis range + yValueDecimal: 0, + // are there floating numbers in the series. If yes, this represent the len of the decimals + total: 0, + SVGNS: 'http://www.w3.org/2000/svg', + // svg namespace + svgWidth: 0, + // the whole svg width + svgHeight: 0, + // the whole svg height + noData: false, + // whether there is any data to display or not + locale: {}, + // the current locale values will be preserved here for global access + dom: {}, + // for storing all dom nodes in this particular property + // elWrap: null, // the element that wraps everything + // elGraphical: null, // this contains lines/areas/bars/pies + // elGridRect: null, // paths going outside this area will be clipped + // elGridRectMask: null, // clipping will happen with this mask + // elGridRectMarkerMask: null, // clipping will happen with this mask + // elLegendWrap: null, // the whole legend area + // elDefs: null, // [defs] element + memory: { + methodsToExec: [] + }, + shouldAnimate: true, + delayedElements: [], + // element which appear after animation has finished + axisCharts: true, + // chart type = line or area or bar + // (refer them also as plot charts in the code) + isXNumeric: false, + // bool: data was provided in a {[x,y], [x,y]} pattern + isDataXYZ: false, + // bool: data was provided in a {[x,y,z]} pattern + resized: false, + // bool: user has resized + resizeTimer: null, + // timeout function to make a small delay before + // drawing when user resized + comboCharts: false, + // bool: whether it's a combination of line/column + comboChartsHasBars: false, + // bool: whether it's a combination of line/column + dataChanged: false, + // bool: has data changed dynamically + previousPaths: [], + // array: when data is changed, it will animate from + // previous paths + seriesXvalues: [], + // we will need this in tooltip (it's x position) + // when we will have unequal x values, we will need + // some way to get x value depending on mouse pointer + seriesYvalues: [], + // we will need this when deciding which series + // user hovered on + seriesCandleO: [], + // candle stick open values + seriesCandleH: [], + // candle stick high values + seriesCandleL: [], + // candle stick low values + seriesCandleC: [], + // candle stick close values + allSeriesHasEqualX: true, + dataPoints: 0, + // the longest series length + pointsArray: [], + // store the points positions here to draw later on hover + // format is - [[x,y],[x,y]... [x,y]] + dataLabelsRects: [], + // store the positions of datalabels to prevent collision + lastDrawnDataLabelsIndexes: [], + hasNullValues: false, + // bool: whether series contains null values + easing: null, + // function: animation effect to apply + zoomed: false, + // whether user has zoomed or not + gridWidth: 0, + // drawable width of actual graphs (series paths) + gridHeight: 0, + // drawable height of actual graphs (series paths) + yAxisScale: [], + xAxisScale: null, + xAxisTicksPositions: [], + timescaleTicks: [], + rotateXLabels: false, + defaultLabels: false, + xLabelFormatter: undefined, + // formatter for x axis labels + yLabelFormatters: [], + xaxisTooltipFormatter: undefined, + // formatter for x axis tooltip + ttKeyFormatter: undefined, + ttVal: undefined, + ttZFormatter: undefined, + LINE_HEIGHT_RATIO: 1.618, + xAxisLabelsHeight: 0, + yAxisLabelsWidth: 0, + scaleX: 1, + scaleY: 1, + translateX: 0, + translateY: 0, + translateYAxisX: [], + yLabelsCoords: [], + yTitleCoords: [], + yAxisWidths: [], + translateXAxisY: 0, + translateXAxisX: 0, + tooltip: null, + tooltipOpts: null + }; + } + }, { + key: "init", + value: function init(config) { + var globals = this.globalVars(config); + globals.initialConfig = Utils.extend({}, config); + globals.initialSeries = JSON.parse(JSON.stringify(globals.initialConfig.series)); + globals.lastXAxis = JSON.parse(JSON.stringify(globals.initialConfig.xaxis)); + globals.lastYAxis = JSON.parse(JSON.stringify(globals.initialConfig.yaxis)); + return globals; + } + }]); + + return Globals; +}(); + +/** + * ApexCharts Base Class for extending user options with pre-defined ApexCharts config. + * + * @module Base + **/ + +var Base = +/*#__PURE__*/ +function () { + function Base(opts) { + _classCallCheck(this, Base); + + this.opts = opts; + } + + _createClass(Base, [{ + key: "init", + value: function init() { + var config = new Config(this.opts).init(); + var globals = new Globals().init(config); + var w = { + config: config, + globals: globals + }; + return w; + } + }]); + + return Base; +}(); + +/** + * ApexCharts Fill Class for setting fill options of the paths. + * + * @module Fill + **/ + +var Fill = +/*#__PURE__*/ +function () { + function Fill(ctx) { + _classCallCheck(this, Fill); + + this.ctx = ctx; + this.w = ctx.w; + this.opts = null; + this.seriesIndex = 0; + } + + _createClass(Fill, [{ + key: "clippedImgArea", + value: function clippedImgArea(params) { + var w = this.w; + var cnf = w.config; + var svgW = parseInt(w.globals.gridWidth); + var svgH = parseInt(w.globals.gridHeight); + var size = svgW > svgH ? svgW : svgH; + var fillImg = params.image; + var imgWidth = 0; + var imgHeight = 0; + + if (typeof params.width === 'undefined' && typeof params.height === 'undefined') { + if (cnf.fill.image.width !== undefined && cnf.fill.image.height !== undefined) { + imgWidth = cnf.fill.image.width + 1; + imgHeight = cnf.fill.image.height; + } else { + imgWidth = size + 1; + imgHeight = size; + } + } else { + imgWidth = params.width; + imgHeight = params.height; + } + + var elPattern = document.createElementNS(w.globals.SVGNS, 'pattern'); + Graphics.setAttrs(elPattern, { + id: params.patternID, + patternUnits: params.patternUnits ? params.patternUnits : 'userSpaceOnUse', + width: imgWidth + 'px', + height: imgHeight + 'px' + }); + var elImage = document.createElementNS(w.globals.SVGNS, 'image'); + elPattern.appendChild(elImage); + elImage.setAttributeNS('http://www.w3.org/1999/xlink', 'href', fillImg); + Graphics.setAttrs(elImage, { + x: 0, + y: 0, + preserveAspectRatio: 'none', + width: imgWidth + 'px', + height: imgHeight + 'px' + }); + elImage.style.opacity = params.opacity; + w.globals.dom.elDefs.node.appendChild(elPattern); + } + }, { + key: "getSeriesIndex", + value: function getSeriesIndex(opts) { + var w = this.w; + + if (w.config.chart.type === 'bar' && w.config.plotOptions.bar.distributed || w.config.chart.type === 'heatmap') { + this.seriesIndex = opts.seriesNumber; + } else { + this.seriesIndex = opts.seriesNumber % w.globals.series.length; + } + + return this.seriesIndex; + } + }, { + key: "fillPath", + value: function fillPath(opts) { + var w = this.w; + this.opts = opts; + var cnf = this.w.config; + var pathFill; + var patternFill, gradientFill; + this.seriesIndex = this.getSeriesIndex(opts); + var fillColors = this.getFillColors(); + var fillColor = fillColors[this.seriesIndex]; + var fillType = this.getFillType(this.seriesIndex); + var fillOpacity = Array.isArray(cnf.fill.opacity) ? cnf.fill.opacity[this.seriesIndex] : cnf.fill.opacity; + var defaultColor = fillColor; + + if (opts.color) { + fillColor = opts.color; + } + + if (fillColor.indexOf('rgb') === -1) { + defaultColor = Utils.hexToRgba(fillColor, fillOpacity); + } else { + if (fillColor.indexOf('rgba') > -1) { + fillOpacity = 0 + '.' + Utils.getOpacityFromRGBA(fillColors[this.seriesIndex]); + } + } + + if (fillType === 'pattern') { + patternFill = this.handlePatternFill(patternFill, fillColor, fillOpacity, defaultColor); + } + + if (fillType === 'gradient') { + gradientFill = this.handleGradientFill(gradientFill, fillColor, fillOpacity, this.seriesIndex); + } + + if (cnf.fill.image.src.length > 0 && fillType === 'image') { + if (opts.seriesNumber < cnf.fill.image.src.length) { + this.clippedImgArea({ + opacity: fillOpacity, + image: cnf.fill.image.src[opts.seriesNumber], + patternUnits: opts.patternUnits, + patternID: "pattern".concat(w.globals.cuid).concat(opts.seriesNumber + 1) + }); + pathFill = "url(#pattern".concat(w.globals.cuid).concat(opts.seriesNumber + 1, ")"); + } else { + pathFill = defaultColor; + } + } else if (fillType === 'gradient') { + pathFill = gradientFill; + } else if (fillType === 'pattern') { + pathFill = patternFill; + } else { + pathFill = defaultColor; + } // override pattern/gradient if opts.solid is true + + + if (opts.solid) { + pathFill = defaultColor; + } + + return pathFill; + } + }, { + key: "getFillType", + value: function getFillType(seriesIndex) { + var w = this.w; + + if (Array.isArray(w.config.fill.type)) { + return w.config.fill.type[seriesIndex]; + } else { + return w.config.fill.type; + } + } + }, { + key: "getFillColors", + value: function getFillColors() { + var w = this.w; + var cnf = w.config; + var opts = this.opts; + var fillColors = []; + + if (w.globals.comboCharts) { + if (w.config.series[this.seriesIndex].type === 'line') { + if (w.globals.stroke.colors instanceof Array) { + fillColors = w.globals.stroke.colors; + } else { + fillColors.push(w.globals.stroke.colors); + } + } else { + if (w.globals.fill.colors instanceof Array) { + fillColors = w.globals.fill.colors; + } else { + fillColors.push(w.globals.fill.colors); + } + } + } else { + if (cnf.chart.type === 'line') { + if (w.globals.stroke.colors instanceof Array) { + fillColors = w.globals.stroke.colors; + } else { + fillColors.push(w.globals.stroke.colors); + } + } else { + if (w.globals.fill.colors instanceof Array) { + fillColors = w.globals.fill.colors; + } else { + fillColors.push(w.globals.fill.colors); + } + } + } // colors passed in arguments + + + if (typeof opts.fillColors !== 'undefined') { + fillColors = []; + + if (opts.fillColors instanceof Array) { + fillColors = opts.fillColors.slice(); + } else { + fillColors.push(opts.fillColors); + } + } + + return fillColors; + } + }, { + key: "handlePatternFill", + value: function handlePatternFill(patternFill, fillColor, fillOpacity, defaultColor) { + var cnf = this.w.config; + var opts = this.opts; + var graphics = new Graphics(this.ctx); + var patternStrokeWidth = cnf.fill.pattern.strokeWidth === undefined ? Array.isArray(cnf.stroke.width) ? cnf.stroke.width[this.seriesIndex] : cnf.stroke.width : Array.isArray(cnf.fill.pattern.strokeWidth) ? cnf.fill.pattern.strokeWidth[this.seriesIndex] : cnf.fill.pattern.strokeWidth; + var patternLineColor = fillColor; + + if (cnf.fill.pattern.style instanceof Array) { + if (typeof cnf.fill.pattern.style[opts.seriesNumber] !== 'undefined') { + var pf = graphics.drawPattern(cnf.fill.pattern.style[opts.seriesNumber], cnf.fill.pattern.width, cnf.fill.pattern.height, patternLineColor, patternStrokeWidth, fillOpacity); + patternFill = pf; + } else { + patternFill = defaultColor; + } + } else { + patternFill = graphics.drawPattern(cnf.fill.pattern.style, cnf.fill.pattern.width, cnf.fill.pattern.height, patternLineColor, patternStrokeWidth, fillOpacity); + } + + return patternFill; + } + }, { + key: "handleGradientFill", + value: function handleGradientFill(gradientFill, fillColor, fillOpacity, i) { + var cnf = this.w.config; + var opts = this.opts; + var graphics = new Graphics(this.ctx); + var utils = new Utils(); + var type = cnf.fill.gradient.type; + var gradientFrom, gradientTo; + var opacityFrom = cnf.fill.gradient.opacityFrom === undefined ? fillOpacity : Array.isArray(cnf.fill.gradient.opacityFrom) ? cnf.fill.gradient.opacityFrom[i] : cnf.fill.gradient.opacityFrom; + var opacityTo = cnf.fill.gradient.opacityTo === undefined ? fillOpacity : Array.isArray(cnf.fill.gradient.opacityTo) ? cnf.fill.gradient.opacityTo[i] : cnf.fill.gradient.opacityTo; + gradientFrom = fillColor; + + if (cnf.fill.gradient.gradientToColors === undefined || cnf.fill.gradient.gradientToColors.length === 0) { + if (cnf.fill.gradient.shade === 'dark') { + gradientTo = utils.shadeColor(parseFloat(cnf.fill.gradient.shadeIntensity) * -1, fillColor); + } else { + gradientTo = utils.shadeColor(parseFloat(cnf.fill.gradient.shadeIntensity), fillColor); + } + } else { + gradientTo = cnf.fill.gradient.gradientToColors[opts.seriesNumber]; + } + + if (cnf.fill.gradient.inverseColors) { + var t = gradientFrom; + gradientFrom = gradientTo; + gradientTo = t; + } + + gradientFill = graphics.drawGradient(type, gradientFrom, gradientTo, opacityFrom, opacityTo, opts.size, cnf.fill.gradient.stops, cnf.fill.gradient.colorStops, i); + return gradientFill; + } + }]); + + return Fill; +}(); + +/** + * ApexCharts Markers Class for drawing points on y values in axes charts. + * + * @module Markers + **/ + +var Markers = +/*#__PURE__*/ +function () { + function Markers(ctx, opts) { + _classCallCheck(this, Markers); + + this.ctx = ctx; + this.w = ctx.w; + } + + _createClass(Markers, [{ + key: "setGlobalMarkerSize", + value: function setGlobalMarkerSize() { + var w = this.w; + w.globals.markers.size = Array.isArray(w.config.markers.size) ? w.config.markers.size : [w.config.markers.size]; + + if (w.globals.markers.size.length > 0) { + if (w.globals.markers.size.length < w.globals.series.length + 1) { + for (var i = 0; i <= w.globals.series.length; i++) { + if (typeof w.globals.markers.size[i] === 'undefined') { + w.globals.markers.size.push(w.globals.markers.size[0]); + } + } + } + } else { + w.globals.markers.size = w.config.series.map(function (s) { + return w.config.markers.size; + }); + } + } + }, { + key: "plotChartMarkers", + value: function plotChartMarkers(pointsPos, seriesIndex, j) { + var _this = this; + + var w = this.w; + var p = pointsPos; + var elPointsWrap = null; + var graphics = new Graphics(this.ctx); + var point; + + if (w.globals.markers.size[seriesIndex] > 0) { + elPointsWrap = graphics.group({ + class: 'apexcharts-series-markers' + }); + elPointsWrap.attr('clip-path', "url(#gridRectMarkerMask".concat(w.globals.cuid, ")")); + } + + if (p.x instanceof Array) { + var _loop = function _loop(q) { + var dataPointIndex = j; // a small hack as we have 2 points for the first val to connect it + + if (j === 1 && q === 0) dataPointIndex = 0; + if (j === 1 && q === 1) dataPointIndex = 1; + var PointClasses = 'apexcharts-marker'; + + if ((w.config.chart.type === 'line' || w.config.chart.type === 'area') && !w.globals.comboCharts && !w.config.tooltip.intersect) { + PointClasses += ' no-pointer-events'; + } + + var shouldMarkerDraw = Array.isArray(w.config.markers.size) ? w.globals.markers.size[seriesIndex] > 0 : w.config.markers.size > 0; + + if (shouldMarkerDraw) { + if (Utils.isNumber(p.y[q])) { + PointClasses += " w".concat((Math.random() + 1).toString(36).substring(4)); + } else { + PointClasses = 'apexcharts-nullpoint'; + } + + var opts = _this.getMarkerConfig(PointClasses, seriesIndex); // discrete markers is an option where user can specify a particular marker with different size and color + + + w.config.markers.discrete.map(function (marker) { + if (marker.seriesIndex === seriesIndex && marker.dataPointIndex === dataPointIndex) { + opts.pointStrokeColor = marker.strokeColor; + opts.pointFillColor = marker.fillColor; + opts.pSize = marker.size; + } + }); + point = graphics.drawMarker(p.x[q], p.y[q], opts); + point.attr('rel', dataPointIndex); + point.attr('j', dataPointIndex); + point.attr('index', seriesIndex); + point.node.setAttribute('default-marker-size', opts.pSize); + var filters = new Filters(_this.ctx); + filters.setSelectionFilter(point, seriesIndex, dataPointIndex); + + _this.addEvents(point); + + if (elPointsWrap) { + elPointsWrap.add(point); + } + } else { + // dynamic array creation - multidimensional + if (typeof w.globals.pointsArray[seriesIndex] === 'undefined') w.globals.pointsArray[seriesIndex] = []; + w.globals.pointsArray[seriesIndex].push([p.x[q], p.y[q]]); + } + }; + + for (var q = 0; q < p.x.length; q++) { + _loop(q); + } + } + + return elPointsWrap; + } + }, { + key: "getMarkerConfig", + value: function getMarkerConfig(cssClass, seriesIndex) { + var w = this.w; + var pStyle = this.getMarkerStyle(seriesIndex); + var pSize = w.globals.markers.size[seriesIndex]; + return { + pSize: pSize, + pRadius: w.config.markers.radius, + pWidth: w.config.markers.strokeWidth, + pointStrokeColor: pStyle.pointStrokeColor, + pointFillColor: pStyle.pointFillColor, + shape: w.config.markers.shape instanceof Array ? w.config.markers.shape[seriesIndex] : w.config.markers.shape, + class: cssClass, + pointStrokeOpacity: w.config.markers.strokeOpacity, + pointFillOpacity: w.config.markers.fillOpacity, + seriesIndex: seriesIndex + }; + } + }, { + key: "addEvents", + value: function addEvents(circle) { + var graphics = new Graphics(this.ctx); + circle.node.addEventListener('mouseenter', graphics.pathMouseEnter.bind(this.ctx, circle)); + circle.node.addEventListener('mouseleave', graphics.pathMouseLeave.bind(this.ctx, circle)); + circle.node.addEventListener('mousedown', graphics.pathMouseDown.bind(this.ctx, circle)); + circle.node.addEventListener('touchstart', graphics.pathMouseDown.bind(this.ctx, circle), { + passive: true + }); + } + }, { + key: "getMarkerStyle", + value: function getMarkerStyle(seriesIndex) { + var w = this.w; + var colors = w.globals.markers.colors; + var strokeColors = w.config.markers.strokeColor || w.config.markers.strokeColors; + var pointStrokeColor = strokeColors instanceof Array ? strokeColors[seriesIndex] : strokeColors; + var pointFillColor = colors instanceof Array ? colors[seriesIndex] : colors; + return { + pointStrokeColor: pointStrokeColor, + pointFillColor: pointFillColor + }; + } + }]); + + return Markers; +}(); + +/** + * ApexCharts Scatter Class. + * This Class also handles bubbles chart as currently there is no major difference in drawing them, + * @module Scatter + **/ + +var Scatter = +/*#__PURE__*/ +function () { + function Scatter(ctx) { + _classCallCheck(this, Scatter); + + this.ctx = ctx; + this.w = ctx.w; + this.initialAnim = this.w.config.chart.animations.enabled; + this.dynamicAnim = this.initialAnim && this.w.config.chart.animations.dynamicAnimation.enabled; // this array will help in centering the label in bubbles + + this.radiusSizes = []; + } + + _createClass(Scatter, [{ + key: "draw", + value: function draw(elSeries, j, opts) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var realIndex = opts.realIndex; + var pointsPos = opts.pointsPos; + var zRatio = opts.zRatio; + var elPointsMain = opts.elParent; + var elPointsWrap = graphics.group({ + class: "apexcharts-series-markers apexcharts-series-".concat(w.config.chart.type) + }); + elPointsWrap.attr('clip-path', "url(#gridRectMarkerMask".concat(w.globals.cuid, ")")); + + if (pointsPos.x instanceof Array) { + for (var q = 0; q < pointsPos.x.length; q++) { + var dataPointIndex = j + 1; + var shouldDraw = true; // a small hack as we have 2 points for the first val to connect it + + if (j === 0 && q === 0) dataPointIndex = 0; + if (j === 0 && q === 1) dataPointIndex = 1; + var radius = 0; + var finishRadius = w.globals.markers.size[realIndex]; + + if (zRatio !== Infinity) { + // means we have a bubble + finishRadius = w.globals.seriesZ[realIndex][dataPointIndex] / zRatio; + + if (typeof this.radiusSizes[realIndex] === 'undefined') { + this.radiusSizes.push([]); + } + + this.radiusSizes[realIndex].push(finishRadius); + } + + if (!w.config.chart.animations.enabled) { + radius = finishRadius; + } + + var x = pointsPos.x[q]; + var y = pointsPos.y[q]; + radius = radius || 0; + + if (x === 0 && y === 0 || y === null || typeof w.globals.series[realIndex][dataPointIndex] === 'undefined') { + shouldDraw = false; + } + + if (shouldDraw) { + var circle = this.drawPoint(x, y, radius, finishRadius, realIndex, dataPointIndex, j); + elPointsWrap.add(circle); + } + + elPointsMain.add(elPointsWrap); + } + } + } + }, { + key: "drawPoint", + value: function drawPoint(x, y, radius, finishRadius, realIndex, dataPointIndex, j) { + var w = this.w; + var anim = new Animations(this.ctx); + var filters = new Filters(this.ctx); + var fill = new Fill(this.ctx); + var graphics = new Graphics(this.ctx); + var pathFillCircle = fill.fillPath({ + seriesNumber: realIndex, + patternUnits: 'objectBoundingBox' + }); + var circle = graphics.drawCircle(radius); + circle.attr({ + cx: x, + cy: y, + fill: pathFillCircle + }); + + if (w.config.chart.dropShadow.enabled) { + filters.dropShadow(circle, { + top: w.config.chart.dropShadow.top, + left: w.config.chart.dropShadow.left, + blur: w.config.chart.dropShadow.blur, + color: w.config.chart.dropShadow.color, + opacity: w.config.chart.dropShadow.opacity + }); + } + + if (this.initialAnim && !w.globals.dataChanged) { + var speed = 1; + + if (!w.globals.resized) { + speed = w.config.chart.animations.speed; + } + + anim.animateCircleRadius(circle, 0, finishRadius, speed, w.globals.easing); + } + + if (w.globals.dataChanged) { + if (this.dynamicAnim) { + var _speed = w.config.chart.animations.dynamicAnimation.speed; + var prevX, prevY, prevR; + var prevPathJ = null; + prevPathJ = w.globals.previousPaths[realIndex] && w.globals.previousPaths[realIndex][j]; + + if (typeof prevPathJ !== 'undefined' && prevPathJ !== null) { + // series containing less elements will ignore these values and revert to 0 + prevX = prevPathJ.x; + prevY = prevPathJ.y; + prevR = typeof prevPathJ.r !== 'undefined' ? prevPathJ.r : finishRadius; + } + + for (var cs = 0; cs < w.globals.collapsedSeries.length; cs++) { + if (w.globals.collapsedSeries[cs].index === realIndex) { + _speed = 1; + finishRadius = 0; + } + } + + if (x === 0 && y === 0) finishRadius = 0; + anim.animateCircle(circle, { + cx: prevX, + cy: prevY, + r: prevR + }, { + cx: x, + cy: y, + r: finishRadius + }, _speed, w.globals.easing); + } else { + circle.attr({ + r: finishRadius + }); + } + } + + circle.attr({ + rel: dataPointIndex, + j: dataPointIndex, + index: realIndex, + 'default-marker-size': finishRadius + }); + var markers = new Markers(this.ctx); + filters.setSelectionFilter(circle, realIndex, dataPointIndex); + markers.addEvents(circle); + circle.node.classList.add('apexcharts-marker'); + return circle; + } + }, { + key: "centerTextInBubble", + value: function centerTextInBubble(y) { + var w = this.w; + y = y + parseInt(w.config.dataLabels.style.fontSize) / 4; + return { + y: y + }; + } + }]); + + return Scatter; +}(); + +/** + * ApexCharts DataLabels Class for drawing dataLabels on Axes based Charts. + * + * @module DataLabels + **/ + +var DataLabels = +/*#__PURE__*/ +function () { + function DataLabels(ctx) { + _classCallCheck(this, DataLabels); + + this.ctx = ctx; + this.w = ctx.w; + } // When there are many datalabels to be printed, and some of them overlaps each other in the same series, this method will take care of that + // Also, when datalabels exceeds the drawable area and get clipped off, we need to adjust and move some pixels to make them visible again + + + _createClass(DataLabels, [{ + key: "dataLabelsCorrection", + value: function dataLabelsCorrection(x, y, val, i, dataPointIndex, alwaysDrawDataLabel, fontSize) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var drawnextLabel = false; // + + var textRects = graphics.getTextRects(val, fontSize); + var width = textRects.width; + var height = textRects.height; // first value in series, so push an empty array + + if (typeof w.globals.dataLabelsRects[i] === 'undefined') w.globals.dataLabelsRects[i] = []; // then start pushing actual rects in that sub-array + + w.globals.dataLabelsRects[i].push({ + x: x, + y: y, + width: width, + height: height + }); + var len = w.globals.dataLabelsRects[i].length - 2; + var lastDrawnIndex = typeof w.globals.lastDrawnDataLabelsIndexes[i] !== 'undefined' ? w.globals.lastDrawnDataLabelsIndexes[i][w.globals.lastDrawnDataLabelsIndexes[i].length - 1] : 0; + + if (typeof w.globals.dataLabelsRects[i][len] !== 'undefined') { + var lastDataLabelRect = w.globals.dataLabelsRects[i][lastDrawnIndex]; + + if ( // next label forward and x not intersecting + x > lastDataLabelRect.x + lastDataLabelRect.width + 2 || y > lastDataLabelRect.y + lastDataLabelRect.height + 2 || x + width < lastDataLabelRect.x // next label is going to be drawn backwards + ) { + // the 2 indexes don't override, so OK to draw next label + drawnextLabel = true; + } + } + + if (dataPointIndex === 0 || alwaysDrawDataLabel) { + drawnextLabel = true; + } + + return { + x: x, + y: y, + drawnextLabel: drawnextLabel + }; + } + }, { + key: "drawDataLabel", + value: function drawDataLabel(pos, i, j) { + // this method handles line, area, bubble, scatter charts as those charts contains markers/points which have pre-defined x/y positions + // all other charts like bars / heatmaps will define their own drawDataLabel routine + var w = this.w; + var graphics = new Graphics(this.ctx); + var dataLabelsConfig = w.config.dataLabels; + var x = 0; + var y = 0; + var dataPointIndex = j; + var elDataLabelsWrap = null; + + if (!dataLabelsConfig.enabled || pos.x instanceof Array !== true) { + return elDataLabelsWrap; + } + + elDataLabelsWrap = graphics.group({ + class: 'apexcharts-data-labels' + }); + elDataLabelsWrap.attr('clip-path', "url(#gridRectMarkerMask".concat(w.globals.cuid, ")")); + + for (var q = 0; q < pos.x.length; q++) { + x = pos.x[q] + dataLabelsConfig.offsetX; + y = pos.y[q] + dataLabelsConfig.offsetY - w.globals.markers.size[i] - 5; + + if (!isNaN(x)) { + // a small hack as we have 2 points for the first val to connect it + if (j === 1 && q === 0) dataPointIndex = 0; + if (j === 1 && q === 1) dataPointIndex = 1; + var val = w.globals.series[i][dataPointIndex]; + var text = ''; + + if (w.config.chart.type === 'bubble') { + text = w.globals.seriesZ[i][dataPointIndex]; + y = pos.y[q] + w.config.dataLabels.offsetY; + var scatter = new Scatter(this.ctx); + var centerTextInBubbleCoords = scatter.centerTextInBubble(y, i, dataPointIndex); + y = centerTextInBubbleCoords.y; + } else { + if (typeof val !== 'undefined') { + text = w.config.dataLabels.formatter(val, { + seriesIndex: i, + dataPointIndex: dataPointIndex, + w: w + }); + } + } + + this.plotDataLabelsText({ + x: x, + y: y, + text: text, + i: i, + j: dataPointIndex, + parent: elDataLabelsWrap, + offsetCorrection: true, + dataLabelsConfig: w.config.dataLabels + }); + } + } + + return elDataLabelsWrap; + } + }, { + key: "plotDataLabelsText", + value: function plotDataLabelsText(opts) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var x = opts.x, + y = opts.y, + i = opts.i, + j = opts.j, + text = opts.text, + textAnchor = opts.textAnchor, + parent = opts.parent, + dataLabelsConfig = opts.dataLabelsConfig, + alwaysDrawDataLabel = opts.alwaysDrawDataLabel, + offsetCorrection = opts.offsetCorrection; + + if (Array.isArray(w.config.dataLabels.enabledOnSeries)) { + if (w.config.dataLabels.enabledOnSeries.indexOf(i) > -1) { + return; + } + } + + var correctedLabels = { + x: x, + y: y, + drawnextLabel: true + }; + + if (offsetCorrection) { + correctedLabels = this.dataLabelsCorrection(x, y, text, i, j, alwaysDrawDataLabel, parseInt(dataLabelsConfig.style.fontSize)); + } // when zoomed, we don't need to correct labels offsets, + // but if normally, labels get cropped, correct them + + + if (!w.globals.zoomed) { + x = correctedLabels.x; + y = correctedLabels.y; + } + + if (correctedLabels.drawnextLabel) { + var dataLabelText = graphics.drawText({ + width: 100, + height: parseInt(dataLabelsConfig.style.fontSize), + x: x, + y: y, + foreColor: w.globals.dataLabels.style.colors[i], + textAnchor: textAnchor || dataLabelsConfig.textAnchor, + text: text, + fontSize: dataLabelsConfig.style.fontSize, + fontFamily: dataLabelsConfig.style.fontFamily + }); + dataLabelText.attr({ + class: 'apexcharts-datalabel', + cx: x, + cy: y + }); + + if (dataLabelsConfig.dropShadow.enabled) { + var textShadow = dataLabelsConfig.dropShadow; + var filters = new Filters(this.ctx); + filters.dropShadow(dataLabelText, textShadow); + } + + parent.add(dataLabelText); + + if (typeof w.globals.lastDrawnDataLabelsIndexes[i] === 'undefined') { + w.globals.lastDrawnDataLabelsIndexes[i] = []; + } + + w.globals.lastDrawnDataLabelsIndexes[i].push(j); + } + } + }]); + + return DataLabels; +}(); + +/** + * ApexCharts Bar Class responsible for drawing both Columns and Bars. + * + * @module Bar + **/ + +var DATA_LABELS_WARNING_THRESHOLD = 50; + +var Bar = +/*#__PURE__*/ +function () { + function Bar(ctx, xyRatios) { + _classCallCheck(this, Bar); + + this.ctx = ctx; + this.w = ctx.w; + var w = this.w; + this.barOptions = w.config.plotOptions.bar; + this.isHorizontal = this.barOptions.horizontal; + this.strokeWidth = w.config.stroke.width; + this.isNullValue = false; + this.xyRatios = xyRatios; + + if (this.xyRatios !== null) { + this.xRatio = xyRatios.xRatio; + this.yRatio = xyRatios.yRatio; + this.invertedXRatio = xyRatios.invertedXRatio; + this.invertedYRatio = xyRatios.invertedYRatio; + this.baseLineY = xyRatios.baseLineY; + this.baseLineInvertedY = xyRatios.baseLineInvertedY; + } + + this.minXDiff = Number.MAX_VALUE; + this.yaxisIndex = 0; + this.seriesLen = 0; + } + /** primary draw method which is called on bar object + * @memberof Bar + * @param {array} series - user supplied series values + * @param {int} seriesIndex - the index by which series will be drawn on the svg + * @return {node} element which is supplied to parent chart draw method for appending + **/ + + + _createClass(Bar, [{ + key: "draw", + value: function draw(series, seriesIndex) { + var _this = this; + + var w = this.w; + var graphics = new Graphics(this.ctx); + var fill = new Fill(this.ctx); + var coreUtils = new CoreUtils(this.ctx, w); + this.series = coreUtils.getLogSeries(series); + series = this.series; + this.yRatio = coreUtils.getLogYRatios(this.yRatio); + this.initVariables(series); + var ret = graphics.group({ + class: 'apexcharts-bar-series apexcharts-plot-series' + }); + ret.attr('clip-path', "url(#gridRectMask".concat(w.globals.cuid, ")")); + + if (w.config.dataLabels.enabled) { + if (this.totalItems > DATA_LABELS_WARNING_THRESHOLD) { + console.warn('WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering.'); + } + } + + var _loop = function _loop(i, bc) { + var pathTo = void 0, + pathFrom = void 0; + var x = void 0, + y = void 0, + xDivision = void 0, + // xDivision is the GRIDWIDTH divided by number of datapoints (columns) + yDivision = void 0, + // yDivision is the GRIDHEIGHT divided by number of datapoints (bars) + zeroH = void 0, + // zeroH is the baseline where 0 meets y axis + zeroW = void 0; // zeroW is the baseline where 0 meets x axis + + var yArrj = []; // hold y values of current iterating series + + var xArrj = []; // hold x values of current iterating series + + var realIndex = w.globals.comboCharts ? seriesIndex[i] : i; // el to which series will be drawn + + var elSeries = graphics.group({ + class: "apexcharts-series ".concat(Utils.escapeString(w.globals.seriesNames[realIndex])), + rel: i + 1, + 'data:realIndex': realIndex + }); + + _this.ctx.series.addCollapsedClassToSeries(elSeries, realIndex); + + if (series[i].length > 0) { + _this.visibleI = _this.visibleI + 1; + } + + var strokeWidth = 0; + var barHeight = 0; + var barWidth = 0; + + if (_this.yRatio.length > 1) { + _this.yaxisIndex = realIndex; + } + + _this.isReversed = w.config.yaxis[_this.yaxisIndex] && w.config.yaxis[_this.yaxisIndex].reversed; + + var initPositions = _this.initialPositions(); + + y = initPositions.y; + barHeight = initPositions.barHeight; + yDivision = initPositions.yDivision; + zeroW = initPositions.zeroW; + x = initPositions.x; + barWidth = initPositions.barWidth; + xDivision = initPositions.xDivision; + zeroH = initPositions.zeroH; + + if (!_this.horizontal) { + xArrj.push(x + barWidth / 2); + } // eldatalabels + + + var elDataLabelsWrap = graphics.group({ + class: 'apexcharts-datalabels' + }); + + var _loop2 = function _loop2(j, tj) { + if (typeof _this.series[i][j] === 'undefined' || series[i][j] === null) { + _this.isNullValue = true; + } else { + _this.isNullValue = false; + } + + if (w.config.stroke.show) { + if (_this.isNullValue) { + strokeWidth = 0; + } else { + strokeWidth = Array.isArray(_this.strokeWidth) ? _this.strokeWidth[realIndex] : _this.strokeWidth; + } + } + + var paths = null; + + if (_this.isHorizontal) { + paths = _this.drawBarPaths({ + indexes: { + i: i, + j: j, + realIndex: realIndex, + bc: bc + }, + barHeight: barHeight, + strokeWidth: strokeWidth, + pathTo: pathTo, + pathFrom: pathFrom, + zeroW: zeroW, + x: x, + y: y, + yDivision: yDivision, + elSeries: elSeries + }); + } else { + paths = _this.drawColumnPaths({ + indexes: { + i: i, + j: j, + realIndex: realIndex, + bc: bc + }, + x: x, + y: y, + xDivision: xDivision, + pathTo: pathTo, + pathFrom: pathFrom, + barWidth: barWidth, + zeroH: zeroH, + strokeWidth: strokeWidth, + elSeries: elSeries + }); + } + + pathTo = paths.pathTo; + pathFrom = paths.pathFrom; + y = paths.y; + x = paths.x; // push current X + + if (j > 0) { + xArrj.push(x + barWidth / 2); + } + + yArrj.push(y); + var seriesNumber = _this.barOptions.distributed ? j : i; + var fillColor = null; + + if (_this.barOptions.colors.ranges.length > 0) { + var colorRange = _this.barOptions.colors.ranges; + colorRange.map(function (range) { + if (series[i][j] >= range.from && series[i][j] <= range.to) { + fillColor = range.color; + } + }); + } + + var pathFill = fill.fillPath({ + seriesNumber: _this.barOptions.distributed ? seriesNumber : realIndex, + color: fillColor + }); + elSeries = _this.renderSeries({ + realIndex: realIndex, + pathFill: pathFill, + j: j, + i: i, + pathFrom: pathFrom, + pathTo: pathTo, + strokeWidth: strokeWidth, + elSeries: elSeries, + x: x, + y: y, + series: series, + barHeight: barHeight, + barWidth: barWidth, + elDataLabelsWrap: elDataLabelsWrap, + visibleSeries: _this.visibleI, + type: 'bar' + }); + }; + + for (var j = 0, tj = w.globals.dataPoints; j < w.globals.dataPoints; j++, tj--) { + _loop2(j, tj); + } // push all x val arrays into main xArr + + + w.globals.seriesXvalues[realIndex] = xArrj; + w.globals.seriesYvalues[realIndex] = yArrj; + ret.add(elSeries); + }; + + for (var i = 0, bc = 0; i < series.length; i++, bc++) { + _loop(i, bc); + } + + return ret; + } + }, { + key: "renderSeries", + value: function renderSeries(_ref) { + var realIndex = _ref.realIndex, + pathFill = _ref.pathFill, + lineFill = _ref.lineFill, + j = _ref.j, + i = _ref.i, + pathFrom = _ref.pathFrom, + pathTo = _ref.pathTo, + strokeWidth = _ref.strokeWidth, + elSeries = _ref.elSeries, + x = _ref.x, + y = _ref.y, + series = _ref.series, + barHeight = _ref.barHeight, + barWidth = _ref.barWidth, + elDataLabelsWrap = _ref.elDataLabelsWrap, + visibleSeries = _ref.visibleSeries, + type = _ref.type; + var w = this.w; + var graphics = new Graphics(this.ctx); + + if (!lineFill) { + /* fix apexcharts#341 */ + lineFill = this.barOptions.distributed ? w.globals.stroke.colors[j] : w.globals.stroke.colors[realIndex]; + } + + if (this.isNullValue) { + pathFill = 'none'; + } + + var delay = j / w.config.chart.animations.animateGradually.delay * (w.config.chart.animations.speed / w.globals.dataPoints) / 2.4; + var renderedPath = graphics.renderPaths({ + i: i, + j: j, + realIndex: realIndex, + pathFrom: pathFrom, + pathTo: pathTo, + stroke: lineFill, + strokeWidth: strokeWidth, + strokeLineCap: w.config.stroke.lineCap, + fill: pathFill, + animationDelay: delay, + initialSpeed: w.config.chart.animations.speed, + dataChangeSpeed: w.config.chart.animations.dynamicAnimation.speed, + className: "apexcharts-".concat(type, "-area"), + id: "apexcharts-".concat(type, "-area") + }); + var filters = new Filters(this.ctx); + filters.setSelectionFilter(renderedPath, realIndex, j); + elSeries.add(renderedPath); + var dataLabels = this.calculateDataLabelsPos({ + x: x, + y: y, + i: i, + j: j, + series: series, + realIndex: realIndex, + barHeight: barHeight, + barWidth: barWidth, + renderedPath: renderedPath, + visibleSeries: visibleSeries + }); + + if (dataLabels !== null) { + elDataLabelsWrap.add(dataLabels); + } + + elSeries.add(elDataLabelsWrap); + return elSeries; + } + }, { + key: "initVariables", + value: function initVariables(series) { + var _this2 = this; + + var w = this.w; + this.series = series; + this.totalItems = 0; + this.seriesLen = 0; + this.visibleI = -1; + this.visibleItems = 1; // number of visible bars after user zoomed in/out + + for (var sl = 0; sl < series.length; sl++) { + if (series[sl].length > 0) { + this.seriesLen = this.seriesLen + 1; + this.totalItems += series[sl].length; + } + + if (w.globals.isXNumeric) { + // get the least x diff if numeric x axis is present + w.globals.seriesX.forEach(function (sX, i) { + sX.forEach(function (s, j) { + if (j > 0) { + var xDiff = s - w.globals.seriesX[i][j - 1]; + _this2.minXDiff = Math.min(xDiff, _this2.minXDiff); + } + }); + }); // get max visible items + + for (var j = 0; j < series[sl].length; j++) { + if (w.globals.seriesX[sl][j] > w.globals.minX && w.globals.seriesX[sl][j] < w.globals.maxX) { + this.visibleItems++; + } + } + } else { + this.visibleItems = w.globals.dataPoints; + } + } + + if (this.seriesLen === 0) { + // A small adjustment when combo charts are used + this.seriesLen = 1; + } + } + }, { + key: "initialPositions", + value: function initialPositions() { + var w = this.w; + var x, y, yDivision, xDivision, barHeight, barWidth, zeroH, zeroW; + + if (this.isHorizontal) { + // height divided into equal parts + yDivision = w.globals.gridHeight / w.globals.dataPoints; + barHeight = yDivision / this.seriesLen; + + if (w.globals.isXNumeric) { + yDivision = w.globals.gridHeight / this.totalItems; + barHeight = yDivision / this.seriesLen; + } + + barHeight = barHeight * parseInt(this.barOptions.barHeight) / 100; + zeroW = this.baseLineInvertedY + w.globals.padHorizontal + (this.isReversed ? w.globals.gridWidth : 0) - (this.isReversed ? this.baseLineInvertedY * 2 : 0); + y = (yDivision - barHeight * this.seriesLen) / 2; + } else { + // width divided into equal parts + xDivision = w.globals.gridWidth / this.visibleItems; + barWidth = xDivision / this.seriesLen * parseInt(this.barOptions.columnWidth) / 100; + + if (w.globals.isXNumeric) { + // max barwidth should be equal to minXDiff to avoid overlap + if (this.minXDiff === Number.MAX_VALUE) { + // possibly a single dataPoint (fixes react-apexcharts/issue#34) + var len = w.globals.labels.length; + + if (w.globals.timelineLabels.length > 0) { + len = w.globals.timelineLabels.length; + } + + if (len < 3) { + len = 3; + } + + this.minXDiff = (w.globals.maxX - w.globals.minX) / len; + } + + xDivision = this.minXDiff / this.xRatio; + barWidth = xDivision / this.seriesLen * parseInt(this.barOptions.columnWidth) / 100; + } + + zeroH = w.globals.gridHeight - this.baseLineY[this.yaxisIndex] - (this.isReversed ? w.globals.gridHeight : 0) + (this.isReversed ? this.baseLineY[this.yaxisIndex] * 2 : 0); + x = w.globals.padHorizontal + (xDivision - barWidth * this.seriesLen) / 2; + } + + return { + x: x, + y: y, + yDivision: yDivision, + xDivision: xDivision, + barHeight: barHeight, + barWidth: barWidth, + zeroH: zeroH, + zeroW: zeroW + }; + } + }, { + key: "drawBarPaths", + value: function drawBarPaths(_ref2) { + var indexes = _ref2.indexes, + barHeight = _ref2.barHeight, + strokeWidth = _ref2.strokeWidth, + pathTo = _ref2.pathTo, + pathFrom = _ref2.pathFrom, + zeroW = _ref2.zeroW, + x = _ref2.x, + y = _ref2.y, + yDivision = _ref2.yDivision, + elSeries = _ref2.elSeries; + var w = this.w; + var graphics = new Graphics(this.ctx); + var i = indexes.i; + var j = indexes.j; + var realIndex = indexes.realIndex; + var bc = indexes.bc; + + if (w.globals.isXNumeric) { + y = (w.globals.seriesX[i][j] - w.globals.minX) / this.invertedXRatio - barHeight; + } + + var barYPosition = y + barHeight * this.visibleI; + pathTo = graphics.move(zeroW, barYPosition); + pathFrom = graphics.move(zeroW, barYPosition); + + if (w.globals.previousPaths.length > 0) { + pathFrom = this.getPathFrom(realIndex, j); + } + + if (typeof this.series[i][j] === 'undefined' || this.series[i][j] === null) { + x = zeroW; + } else { + x = zeroW + this.series[i][j] / this.invertedYRatio - (this.isReversed ? this.series[i][j] / this.invertedYRatio : 0) * 2; + } + + pathTo = pathTo + graphics.line(x, barYPosition) + graphics.line(x, barYPosition + barHeight - strokeWidth) + graphics.line(zeroW, barYPosition + barHeight - strokeWidth) + graphics.line(zeroW, barYPosition); + pathFrom = pathFrom + graphics.line(zeroW, barYPosition) + graphics.line(zeroW, barYPosition + barHeight - strokeWidth) + graphics.line(zeroW, barYPosition + barHeight - strokeWidth) + graphics.line(zeroW, barYPosition); + + if (!w.globals.isXNumeric) { + y = y + yDivision; + } + + if (this.barOptions.colors.backgroundBarColors.length > 0 && i === 0) { + if (bc >= this.barOptions.colors.backgroundBarColors.length) { + bc = 0; + } + + var bcolor = this.barOptions.colors.backgroundBarColors[bc]; + var rect = graphics.drawRect(0, barYPosition - barHeight * this.visibleI, w.globals.gridWidth, barHeight * this.seriesLen, 0, bcolor, this.barOptions.colors.backgroundBarOpacity); + elSeries.add(rect); + rect.node.classList.add('apexcharts-backgroundBar'); + } + + return { + pathTo: pathTo, + pathFrom: pathFrom, + x: x, + y: y, + barYPosition: barYPosition + }; + } + }, { + key: "drawColumnPaths", + value: function drawColumnPaths(_ref3) { + var indexes = _ref3.indexes, + x = _ref3.x, + y = _ref3.y, + xDivision = _ref3.xDivision, + pathTo = _ref3.pathTo, + pathFrom = _ref3.pathFrom, + barWidth = _ref3.barWidth, + zeroH = _ref3.zeroH, + strokeWidth = _ref3.strokeWidth, + elSeries = _ref3.elSeries; + var w = this.w; + var graphics = new Graphics(this.ctx); + var i = indexes.i; + var j = indexes.j; + var realIndex = indexes.realIndex; + var bc = indexes.bc; + + if (w.globals.isXNumeric) { + x = (w.globals.seriesX[i][j] - w.globals.minX) / this.xRatio - barWidth / 2; + } + + var barXPosition = x + barWidth * this.visibleI; + pathTo = graphics.move(barXPosition, zeroH); + pathFrom = graphics.move(barXPosition, zeroH); + + if (w.globals.previousPaths.length > 0) { + pathFrom = this.getPathFrom(realIndex, j); + } + + if (typeof this.series[i][j] === 'undefined' || this.series[i][j] === null) { + y = zeroH; + } else { + y = zeroH - this.series[i][j] / this.yRatio[this.yaxisIndex] + (this.isReversed ? this.series[i][j] / this.yRatio[this.yaxisIndex] : 0) * 2; + } + + pathTo = pathTo + graphics.line(barXPosition, y) + graphics.line(barXPosition + barWidth - strokeWidth, y) + graphics.line(barXPosition + barWidth - strokeWidth, zeroH) + graphics.line(barXPosition, zeroH); + pathFrom = pathFrom + graphics.line(barXPosition, zeroH) + graphics.line(barXPosition + barWidth - strokeWidth, zeroH) + graphics.line(barXPosition + barWidth - strokeWidth, zeroH) + graphics.line(barXPosition, zeroH); + + if (!w.globals.isXNumeric) { + x = x + xDivision; + } + + if (this.barOptions.colors.backgroundBarColors.length > 0 && i === 0) { + if (bc >= this.barOptions.colors.backgroundBarColors.length) { + bc = 0; + } + + var bcolor = this.barOptions.colors.backgroundBarColors[bc]; + var rect = graphics.drawRect(barXPosition - barWidth * this.visibleI, 0, barWidth * this.seriesLen, w.globals.gridHeight, 0, bcolor, this.barOptions.colors.backgroundBarOpacity); + elSeries.add(rect); + rect.node.classList.add('apexcharts-backgroundBar'); + } + + return { + pathTo: pathTo, + pathFrom: pathFrom, + x: x, + y: y, + barXPosition: barXPosition + }; + } + /** getPathFrom is a common function for bars/columns which is used to get previous paths when data changes. + * @memberof Bar + * @param {int} realIndex - current iterating i + * @param {int} j - current iterating series's j index + * @return {string} pathFrom is the string which will be appended in animations + **/ + + }, { + key: "getPathFrom", + value: function getPathFrom(realIndex, j) { + var w = this.w; + var pathFrom; + + for (var pp = 0; pp < w.globals.previousPaths.length; pp++) { + var gpp = w.globals.previousPaths[pp]; + + if (gpp.paths.length > 0 && parseInt(gpp.realIndex) === parseInt(realIndex)) { + if (typeof w.globals.previousPaths[pp].paths[j] !== 'undefined') { + pathFrom = w.globals.previousPaths[pp].paths[j].d; + } + } + } + + return pathFrom; + } + /** calculateBarDataLabels is used to calculate the positions for the data-labels + * It also sets the element's data attr for bars and calls drawCalculatedBarDataLabels() + * @memberof Bar + * @param {object} {barProps} most of the bar properties used throughout the bar + * drawing function + * @return {object} dataLabels node-element which you can append later + **/ + + }, { + key: "calculateDataLabelsPos", + value: function calculateDataLabelsPos(_ref4) { + var x = _ref4.x, + y = _ref4.y, + i = _ref4.i, + j = _ref4.j, + realIndex = _ref4.realIndex, + series = _ref4.series, + barHeight = _ref4.barHeight, + barWidth = _ref4.barWidth, + visibleSeries = _ref4.visibleSeries, + renderedPath = _ref4.renderedPath; + var w = this.w; + var graphics = new Graphics(this.ctx); + var strokeWidth = Array.isArray(this.strokeWidth) ? this.strokeWidth[realIndex] : this.strokeWidth; + var bcx = x + parseFloat(barWidth * visibleSeries); + var bcy = y + parseFloat(barHeight * visibleSeries); + + if (w.globals.isXNumeric) { + bcx = x + parseFloat(barWidth * (visibleSeries + 1)) - strokeWidth; + bcy = y + parseFloat(barHeight * (visibleSeries + 1)) - strokeWidth; + } + + var dataLabels = null; + var dataLabelsX = x; + var dataLabelsY = y; + var dataLabelsPos = {}; + var dataLabelsConfig = w.config.dataLabels; + var barDataLabelsConfig = this.barOptions.dataLabels; + var offX = dataLabelsConfig.offsetX; + var offY = dataLabelsConfig.offsetY; + var textRects = { + width: 0, + height: 0 + }; + + if (w.config.dataLabels.enabled) { + textRects = graphics.getTextRects(w.globals.yLabelFormatters[0](w.globals.maxY), parseInt(dataLabelsConfig.style.fontSize)); + } + + if (this.isHorizontal) { + dataLabelsPos = this.calculateBarsDataLabelsPosition({ + x: x, + y: y, + i: i, + j: j, + renderedPath: renderedPath, + bcy: bcy, + barHeight: barHeight, + textRects: textRects, + strokeWidth: strokeWidth, + dataLabelsX: dataLabelsX, + dataLabelsY: dataLabelsY, + barDataLabelsConfig: barDataLabelsConfig, + offX: offX, + offY: offY + }); + } else { + dataLabelsPos = this.calculateColumnsDataLabelsPosition({ + x: x, + y: y, + i: i, + j: j, + renderedPath: renderedPath, + realIndex: realIndex, + bcx: bcx, + bcy: bcy, + barHeight: barHeight, + barWidth: barWidth, + textRects: textRects, + strokeWidth: strokeWidth, + dataLabelsY: dataLabelsY, + barDataLabelsConfig: barDataLabelsConfig, + offX: offX, + offY: offY + }); + } + + renderedPath.attr({ + cy: dataLabelsPos.bcy, + cx: dataLabelsPos.bcx, + j: j, + val: series[i][j], + barHeight: barHeight, + barWidth: barWidth + }); + dataLabels = this.drawCalculatedDataLabels({ + x: dataLabelsPos.dataLabelsX, + y: dataLabelsPos.dataLabelsY, + val: series[i][j], + i: realIndex, + j: j, + dataLabelsConfig: dataLabelsConfig + }); + return dataLabels; + } + }, { + key: "calculateColumnsDataLabelsPosition", + value: function calculateColumnsDataLabelsPosition(opts) { + var w = this.w; + var i = opts.i, + j = opts.j, + realIndex = opts.realIndex, + y = opts.y, + bcx = opts.bcx, + barWidth = opts.barWidth, + textRects = opts.textRects, + dataLabelsY = opts.dataLabelsY, + barDataLabelsConfig = opts.barDataLabelsConfig, + strokeWidth = opts.strokeWidth, + offX = opts.offX, + offY = opts.offY; + var dataLabelsX; + var barHeight = this.series[i][j] / this.yRatio[this.yaxisIndex]; + var dataPointsDividedWidth = w.globals.gridWidth / w.globals.dataPoints; + bcx = bcx - strokeWidth / 2; + + if (w.globals.isXNumeric) { + dataLabelsX = bcx - barWidth / 2 + offX; + } else { + dataLabelsX = bcx - dataPointsDividedWidth + barWidth / 2 + offX; + } + + var valIsNegative = this.series[i][j] <= 0; + + if (w.config.yaxis[this.yaxisIndex].reversed) { + y = y - barHeight; + } + + switch (barDataLabelsConfig.position) { + case 'center': + if (valIsNegative) { + dataLabelsY = y + barHeight / 2 + textRects.height / 2 + offY; + } else { + dataLabelsY = y + barHeight / 2 + textRects.height / 2 - offY; + } + + break; + + case 'bottom': + if (valIsNegative) { + dataLabelsY = y + barHeight + textRects.height + strokeWidth + offY; + } else { + dataLabelsY = y + barHeight - textRects.height / 2 + strokeWidth - offY; + } + + break; + + case 'top': + if (valIsNegative) { + dataLabelsY = y - textRects.height / 2 - offY; + } else { + dataLabelsY = y + textRects.height + offY; + } + + break; + } + + return { + bcx: bcx, + bcy: y, + dataLabelsX: dataLabelsX, + dataLabelsY: dataLabelsY + }; + } + }, { + key: "calculateBarsDataLabelsPosition", + value: function calculateBarsDataLabelsPosition(opts) { + var w = this.w; + var x = opts.x, + i = opts.i, + j = opts.j, + bcy = opts.bcy, + barHeight = opts.barHeight, + textRects = opts.textRects, + dataLabelsX = opts.dataLabelsX, + strokeWidth = opts.strokeWidth, + barDataLabelsConfig = opts.barDataLabelsConfig, + offX = opts.offX, + offY = opts.offY; + var dataPointsDividedHeight = w.globals.gridHeight / w.globals.dataPoints; + var dataLabelsY = bcy - dataPointsDividedHeight + barHeight / 2 + textRects.height / 2 + offY - 3; + var barWidth = this.series[i][j] / this.invertedYRatio; + var valIsNegative = this.series[i][j] <= 0; + + if (w.config.yaxis[this.yaxisIndex].reversed) { + x = x + barWidth; + } + + switch (barDataLabelsConfig.position) { + case 'center': + if (valIsNegative) { + dataLabelsX = x - barWidth / 2 - offX; + } else { + dataLabelsX = x - barWidth / 2 + offX; + } + + break; + + case 'bottom': + if (valIsNegative) { + dataLabelsX = x - barWidth - strokeWidth - Math.round(textRects.width / 2) - offX; + } else { + dataLabelsX = x - barWidth + strokeWidth + Math.round(textRects.width / 2) + offX; + } + + break; + + case 'top': + if (valIsNegative) { + dataLabelsX = x - strokeWidth + Math.round(textRects.width / 2) - offX; + } else { + dataLabelsX = x - strokeWidth - Math.round(textRects.width / 2) + offX; + } + + break; + } + + if (dataLabelsX < 0) { + dataLabelsX = textRects.width + strokeWidth; + } else if (dataLabelsX + textRects.width / 2 > w.globals.gridWidth) { + dataLabelsX = dataLabelsX - textRects.width - strokeWidth; + } + + return { + bcx: x, + bcy: bcy, + dataLabelsX: dataLabelsX, + dataLabelsY: dataLabelsY + }; + } + }, { + key: "drawCalculatedDataLabels", + value: function drawCalculatedDataLabels(_ref5) { + var x = _ref5.x, + y = _ref5.y, + val = _ref5.val, + i = _ref5.i, + j = _ref5.j, + dataLabelsConfig = _ref5.dataLabelsConfig; + var w = this.w; + var dataLabels = new DataLabels(this.ctx); + var graphics = new Graphics(this.ctx); + var formatter = dataLabelsConfig.formatter; + var elDataLabelsWrap = null; + var isSeriesNotCollapsed = w.globals.collapsedSeriesIndices.indexOf(i) > -1; + + if (dataLabelsConfig.enabled && !isSeriesNotCollapsed) { + elDataLabelsWrap = graphics.group({ + class: 'apexcharts-data-labels' + }); + var text = ''; + + if (typeof val !== 'undefined' && val !== null) { + text = formatter(val, { + seriesIndex: i, + dataPointIndex: j, + w: w + }); + } + + dataLabels.plotDataLabelsText({ + x: x, + y: y, + text: text, + i: i, + j: j, + parent: elDataLabelsWrap, + dataLabelsConfig: dataLabelsConfig, + alwaysDrawDataLabel: true, + offsetCorrection: true + }); + } + + return elDataLabelsWrap; + } + }]); + + return Bar; +}(); + +/** + * ApexCharts BarStacked Class responsible for drawing both Stacked Columns and Bars. + * + * @module BarStacked + * The whole calculation for stacked bar/column is different from normal bar/column, + * hence it makes sense to derive a new class for it extending most of the props of Parent Bar + **/ + +var BarStacked = +/*#__PURE__*/ +function (_Bar) { + _inherits(BarStacked, _Bar); + + function BarStacked() { + _classCallCheck(this, BarStacked); + + return _possibleConstructorReturn(this, _getPrototypeOf(BarStacked).apply(this, arguments)); + } + + _createClass(BarStacked, [{ + key: "draw", + value: function draw(series, seriesIndex) { + var _this = this; + + var w = this.w; + this.graphics = new Graphics(this.ctx); + this.fill = new Fill(this.ctx); + this.bar = new Bar(this.ctx, this.xyRatios); + var coreUtils = new CoreUtils(this.ctx, w); + this.series = coreUtils.getLogSeries(series); + series = this.series; + this.yRatio = coreUtils.getLogYRatios(this.yRatio); + this.series = series; + this.initVariables(series); + + if (w.config.chart.stackType === '100%') { + this.series = w.globals.seriesPercent.slice(); + series = this.series; + } + + this.totalItems = 0; + this.prevY = []; // y position on chart + + this.prevX = []; // x position on chart + + this.prevYF = []; // y position including shapes on chart + + this.prevXF = []; // x position including shapes on chart + + this.prevYVal = []; // y values (series[i][j]) in columns + + this.prevXVal = []; // x values (series[i][j]) in bars + + this.xArrj = []; // xj indicates x position on graph in bars + + this.xArrjF = []; // xjF indicates bar's x position + endingshape's positions in bars + + this.xArrjVal = []; // x val means the actual series's y values in horizontal/bars + + this.yArrj = []; // yj indicates y position on graph in columns + + this.yArrjF = []; // yjF indicates bar's y position + endingshape's positions in columns + + this.yArrjVal = []; // y val means the actual series's y values in columns + + for (var sl = 0; sl < series.length; sl++) { + if (series[sl].length > 0) { + this.totalItems += series[sl].length; + } + } + + var ret = this.graphics.group({ + class: 'apexcharts-bar-series apexcharts-plot-series' + }); + ret.attr('clip-path', "url(#gridRectMask".concat(w.globals.cuid, ")")); + var x = 0; + var y = 0; + + var _loop = function _loop(i, bc) { + var pathTo = void 0, + pathFrom = void 0; + var xDivision = void 0; // xDivision is the GRIDWIDTH divided by number of datapoints (columns) + + var yDivision = void 0; // yDivision is the GRIDHEIGHT divided by number of datapoints (bars) + + var zeroH = void 0; // zeroH is the baseline where 0 meets y axis + + var zeroW = void 0; // zeroW is the baseline where 0 meets x axis + + var xArrValues = []; + var yArrValues = []; + var realIndex = w.globals.comboCharts ? seriesIndex[i] : i; + + if (_this.yRatio.length > 1) { + _this.yaxisIndex = realIndex; + } + + _this.isReversed = w.config.yaxis[_this.yaxisIndex] && w.config.yaxis[_this.yaxisIndex].reversed; // el to which series will be drawn + + var elSeries = _this.graphics.group({ + class: "apexcharts-series ".concat(Utils.escapeString(w.globals.seriesNames[realIndex])), + rel: i + 1, + 'data:realIndex': realIndex + }); // eldatalabels + + + var elDataLabelsWrap = _this.graphics.group({ + class: 'apexcharts-datalabels' + }); + + var strokeWidth = 0; + var barHeight = 0; + var barWidth = 0; + + var initPositions = _this.initialPositions(x, y, xDivision, yDivision, zeroH, zeroW); + + y = initPositions.y; + barHeight = initPositions.barHeight; + yDivision = initPositions.yDivision; + zeroW = initPositions.zeroW; + x = initPositions.x; + barWidth = initPositions.barWidth; + xDivision = initPositions.xDivision; + zeroH = initPositions.zeroH; + _this.yArrj = []; + _this.yArrjF = []; + _this.yArrjVal = []; + _this.xArrj = []; + _this.xArrjF = []; + _this.xArrjVal = []; // if (!this.horizontal) { + // this.xArrj.push(x + barWidth / 2) + // } + + var _loop2 = function _loop2(j) { + if (w.config.stroke.show) { + if (_this.isNullValue) { + strokeWidth = 0; + } else { + strokeWidth = Array.isArray(_this.strokeWidth) ? _this.strokeWidth[realIndex] : _this.strokeWidth; + } + } + + var paths = null; + + if (_this.isHorizontal) { + paths = _this.drawBarPaths({ + indexes: { + i: i, + j: j, + realIndex: realIndex, + bc: bc + }, + barHeight: barHeight, + strokeWidth: strokeWidth, + pathTo: pathTo, + pathFrom: pathFrom, + zeroW: zeroW, + x: x, + y: y, + yDivision: yDivision, + elSeries: elSeries + }); + } else { + paths = _this.drawColumnPaths({ + indexes: { + i: i, + j: j, + realIndex: realIndex, + bc: bc + }, + x: x, + y: y, + xDivision: xDivision, + pathTo: pathTo, + pathFrom: pathFrom, + barWidth: barWidth, + zeroH: zeroH, + strokeWidth: strokeWidth, + elSeries: elSeries + }); + } + + pathTo = paths.pathTo; + pathFrom = paths.pathFrom; + y = paths.y; + x = paths.x; + xArrValues.push(x); + yArrValues.push(y); + var seriesNumber = w.config.plotOptions.bar.distributed ? j : i; + var fillColor = null; + + if (_this.barOptions.colors.ranges.length > 0) { + var colorRange = _this.barOptions.colors.ranges; + colorRange.map(function (range, index) { + if (series[i][j] >= range.from && series[i][j] <= range.to) { + fillColor = range.color; + } + }); + } + + var pathFill = _this.fill.fillPath({ + seriesNumber: _this.barOptions.distributed ? seriesNumber : realIndex, + color: fillColor + }); + + elSeries = _this.renderSeries({ + realIndex: realIndex, + pathFill: pathFill, + j: j, + i: i, + pathFrom: pathFrom, + pathTo: pathTo, + strokeWidth: strokeWidth, + elSeries: elSeries, + x: x, + y: y, + series: series, + barHeight: barHeight, + barWidth: barWidth, + elDataLabelsWrap: elDataLabelsWrap, + type: 'bar', + visibleSeries: 0 + }); + }; + + for (var j = 0; j < w.globals.dataPoints; j++) { + _loop2(j); + } // push all x val arrays into main xArr + + + w.globals.seriesXvalues[realIndex] = xArrValues; + w.globals.seriesYvalues[realIndex] = yArrValues; // push all current y values array to main PrevY Array + + _this.prevY.push(_this.yArrj); + + _this.prevYF.push(_this.yArrjF); + + _this.prevYVal.push(_this.yArrjVal); + + _this.prevX.push(_this.xArrj); + + _this.prevXF.push(_this.xArrjF); + + _this.prevXVal.push(_this.xArrjVal); + + ret.add(elSeries); + }; + + for (var i = 0, bc = 0; i < series.length; i++, bc++) { + _loop(i, bc); + } + + return ret; + } + }, { + key: "initialPositions", + value: function initialPositions(x, y, xDivision, yDivision, zeroH, zeroW) { + var w = this.w; + var barHeight, barWidth; + + if (this.isHorizontal) { + // height divided into equal parts + yDivision = w.globals.gridHeight / w.globals.dataPoints; + barHeight = yDivision; + barHeight = barHeight * parseInt(w.config.plotOptions.bar.barHeight) / 100; + zeroW = this.baseLineInvertedY + w.globals.padHorizontal + (this.isReversed ? w.globals.gridWidth : 0) - (this.isReversed ? this.baseLineInvertedY * 2 : 0); // initial y position is half of barHeight * half of number of Bars + + y = (yDivision - barHeight) / 2; + } else { + // width divided into equal parts + xDivision = w.globals.gridWidth / w.globals.dataPoints; + barWidth = xDivision; + + if (w.globals.isXNumeric) { + // max barwidth should be equal to minXDiff to avoid overlap + xDivision = this.minXDiff / this.xRatio; + barWidth = xDivision * parseInt(this.barOptions.columnWidth) / 100; + } else { + barWidth = barWidth * parseInt(w.config.plotOptions.bar.columnWidth) / 100; + } + + zeroH = this.baseLineY[this.yaxisIndex] + (this.isReversed ? w.globals.gridHeight : 0) - (this.isReversed ? this.baseLineY[this.yaxisIndex] * 2 : 0); // initial x position is one third of barWidth + + x = w.globals.padHorizontal + (xDivision - barWidth) / 2; + } + + return { + x: x, + y: y, + yDivision: yDivision, + xDivision: xDivision, + barHeight: barHeight, + barWidth: barWidth, + zeroH: zeroH, + zeroW: zeroW + }; + } + }, { + key: "drawBarPaths", + value: function drawBarPaths(_ref) { + var indexes = _ref.indexes, + barHeight = _ref.barHeight, + strokeWidth = _ref.strokeWidth, + pathTo = _ref.pathTo, + pathFrom = _ref.pathFrom, + zeroW = _ref.zeroW, + x = _ref.x, + y = _ref.y, + yDivision = _ref.yDivision, + elSeries = _ref.elSeries; + var w = this.w; + var barYPosition = y; + var barXPosition; + var i = indexes.i; + var j = indexes.j; + var realIndex = indexes.realIndex; + var bc = indexes.bc; + var prevBarW = 0; + + for (var k = 0; k < this.prevXF.length; k++) { + prevBarW = prevBarW + this.prevXF[k][j]; + } + + if (i > 0) { + var bXP = zeroW; + + if (this.prevXVal[i - 1][j] < 0) { + if (this.series[i][j] >= 0) { + bXP = this.prevX[i - 1][j] + prevBarW - (this.isReversed ? prevBarW : 0) * 2; + } else { + bXP = this.prevX[i - 1][j]; + } + } else if (this.prevXVal[i - 1][j] >= 0) { + if (this.series[i][j] >= 0) { + bXP = this.prevX[i - 1][j]; + } else { + bXP = this.prevX[i - 1][j] - prevBarW + (this.isReversed ? prevBarW : 0) * 2; + } + } + + barXPosition = bXP; + } else { + // the first series will not have prevX values + barXPosition = zeroW; + } + + if (this.series[i][j] === null) { + x = barXPosition; + } else { + x = barXPosition + this.series[i][j] / this.invertedYRatio - (this.isReversed ? this.series[i][j] / this.invertedYRatio : 0) * 2; + } + + this.xArrj.push(x); + this.xArrjF.push(Math.abs(barXPosition - x)); + this.xArrjVal.push(this.series[i][j]); + pathTo = this.graphics.move(barXPosition, barYPosition); + pathFrom = this.graphics.move(barXPosition, barYPosition); + + if (w.globals.previousPaths.length > 0) { + pathFrom = this.bar.getPathFrom(realIndex, j, false); + } + + pathTo = pathTo + this.graphics.line(x, barYPosition) + this.graphics.line(x, barYPosition + barHeight - strokeWidth) + this.graphics.line(barXPosition, barYPosition + barHeight - strokeWidth) + this.graphics.line(barXPosition, barYPosition); + pathFrom = pathFrom + this.graphics.line(barXPosition, barYPosition) + this.graphics.line(barXPosition, barYPosition + barHeight - strokeWidth) + this.graphics.line(barXPosition, barYPosition + barHeight - strokeWidth) + this.graphics.line(barXPosition, barYPosition + barHeight - strokeWidth) + this.graphics.line(barXPosition, barYPosition); + + if (w.config.plotOptions.bar.colors.backgroundBarColors.length > 0 && i === 0) { + if (bc >= w.config.plotOptions.bar.colors.backgroundBarColors.length) { + bc = 0; + } + + var bcolor = w.config.plotOptions.bar.colors.backgroundBarColors[bc]; + var rect = this.graphics.drawRect(0, barYPosition, w.globals.gridWidth, barHeight, 0, bcolor, w.config.plotOptions.bar.colors.backgroundBarOpacity); + elSeries.add(rect); + rect.node.classList.add('apexcharts-backgroundBar'); + } + + y = y + yDivision; + return { + pathTo: pathTo, + pathFrom: pathFrom, + x: x, + y: y + }; + } + }, { + key: "drawColumnPaths", + value: function drawColumnPaths(_ref2) { + var indexes = _ref2.indexes, + x = _ref2.x, + y = _ref2.y, + xDivision = _ref2.xDivision, + pathTo = _ref2.pathTo, + pathFrom = _ref2.pathFrom, + barWidth = _ref2.barWidth, + zeroH = _ref2.zeroH, + strokeWidth = _ref2.strokeWidth, + elSeries = _ref2.elSeries; + var w = this.w; + var i = indexes.i; + var j = indexes.j; + var realIndex = indexes.realIndex; + var bc = indexes.bc; + + if (w.globals.isXNumeric) { + var seriesVal = w.globals.seriesX[i][j]; + if (!seriesVal) seriesVal = 0; + x = (seriesVal - w.globals.minX) / this.xRatio - barWidth / 2; + } + + var barXPosition = x; + var barYPosition; + var prevBarH = 0; + + for (var k = 0; k < this.prevYF.length; k++) { + prevBarH = prevBarH + this.prevYF[k][j]; + } + + if (i > 0 && !w.globals.isXNumeric || i > 0 && w.globals.isXNumeric && w.globals.seriesX[i - 1][j] === w.globals.seriesX[i][j]) { + var bYP; + var prevYValue = this.prevY[i - 1][j]; + + if (this.prevYVal[i - 1][j] < 0) { + if (this.series[i][j] >= 0) { + bYP = prevYValue - prevBarH + (this.isReversed ? prevBarH : 0) * 2; + } else { + bYP = prevYValue; + } + } else { + if (this.series[i][j] >= 0) { + bYP = prevYValue; + } else { + bYP = prevYValue + prevBarH - (this.isReversed ? prevBarH : 0) * 2; + } + } + + barYPosition = bYP; + } else { + // the first series will not have prevY values, also if the prev index's series X doesn't matches the current index's series X, then start from zero + barYPosition = w.globals.gridHeight - zeroH; + } + + y = barYPosition - this.series[i][j] / this.yRatio[this.yaxisIndex] + (this.isReversed ? this.series[i][j] / this.yRatio[this.yaxisIndex] : 0) * 2; + this.yArrj.push(y); + this.yArrjF.push(Math.abs(barYPosition - y)); + this.yArrjVal.push(this.series[i][j]); + pathTo = this.graphics.move(barXPosition, barYPosition); + pathFrom = this.graphics.move(barXPosition, barYPosition); + + if (w.globals.previousPaths.length > 0) { + pathFrom = this.bar.getPathFrom(realIndex, j, false); + } + + pathTo = pathTo + this.graphics.line(barXPosition, y) + this.graphics.line(barXPosition + barWidth - strokeWidth, y) + this.graphics.line(barXPosition + barWidth - strokeWidth, barYPosition) + this.graphics.line(barXPosition, barYPosition); + pathFrom = pathFrom + this.graphics.line(barXPosition, barYPosition) + this.graphics.line(barXPosition + barWidth - strokeWidth, barYPosition) + this.graphics.line(barXPosition + barWidth - strokeWidth, barYPosition) + this.graphics.line(barXPosition + barWidth - strokeWidth, barYPosition) + this.graphics.line(barXPosition, barYPosition); + + if (w.config.plotOptions.bar.colors.backgroundBarColors.length > 0 && i === 0) { + if (bc >= w.config.plotOptions.bar.colors.backgroundBarColors.length) { + bc = 0; + } + + var bcolor = w.config.plotOptions.bar.colors.backgroundBarColors[bc]; + var rect = this.graphics.drawRect(barXPosition, 0, barWidth, w.globals.gridHeight, 0, bcolor, w.config.plotOptions.bar.colors.backgroundBarOpacity); + elSeries.add(rect); + rect.node.classList.add('apexcharts-backgroundBar'); + } + + x = x + xDivision; + return { + pathTo: pathTo, + pathFrom: pathFrom, + x: w.globals.isXNumeric ? x - xDivision : x, + y: y + }; + } + }]); + + return BarStacked; +}(Bar); + +/** + * ApexCharts CandleStick Class responsible for drawing both Stacked Columns and Bars. + * + * @module CandleStick + * The whole calculation for stacked bar/column is different from normal bar/column, + * hence it makes sense to derive a new class for it extending most of the props of Parent Bar + **/ + +var CandleStick = +/*#__PURE__*/ +function (_Bar) { + _inherits(CandleStick, _Bar); + + function CandleStick() { + _classCallCheck(this, CandleStick); + + return _possibleConstructorReturn(this, _getPrototypeOf(CandleStick).apply(this, arguments)); + } + + _createClass(CandleStick, [{ + key: "draw", + value: function draw(series, seriesIndex) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var fill = new Fill(this.ctx); + this.candlestickOptions = this.w.config.plotOptions.candlestick; + var coreUtils = new CoreUtils(this.ctx, w); + this.series = coreUtils.getLogSeries(series); + series = this.series; + this.yRatio = coreUtils.getLogYRatios(this.yRatio); + this.initVariables(series); + var ret = graphics.group({ + class: 'apexcharts-candlestick-series apexcharts-plot-series' + }); + ret.attr('clip-path', "url(#gridRectMask".concat(w.globals.cuid, ")")); + + for (var i = 0, bc = 0; i < series.length; i++, bc++) { + var pathTo = void 0, + pathFrom = void 0; + var x = void 0, + y = void 0, + xDivision = void 0, + // xDivision is the GRIDWIDTH divided by number of datapoints (columns) + zeroH = void 0; // zeroH is the baseline where 0 meets y axis + + var yArrj = []; // hold y values of current iterating series + + var xArrj = []; // hold x values of current iterating series + + var realIndex = w.globals.comboCharts ? seriesIndex[i] : i; // el to which series will be drawn + + var elSeries = graphics.group({ + class: "apexcharts-series ".concat(Utils.escapeString(w.globals.seriesNames[realIndex])), + rel: i + 1, + 'data:realIndex': realIndex + }); + + if (series[i].length > 0) { + this.visibleI = this.visibleI + 1; + } + + var strokeWidth = 0; + var barHeight = 0; + var barWidth = 0; + + if (this.yRatio.length > 1) { + this.yaxisIndex = realIndex; + } + + var initPositions = this.initialPositions(); + y = initPositions.y; + barHeight = initPositions.barHeight; + x = initPositions.x; + barWidth = initPositions.barWidth; + xDivision = initPositions.xDivision; + zeroH = initPositions.zeroH; + xArrj.push(x + barWidth / 2); // eldatalabels + + var elDataLabelsWrap = graphics.group({ + class: 'apexcharts-datalabels' + }); + + for (var j = 0, tj = w.globals.dataPoints; j < w.globals.dataPoints; j++, tj--) { + if (typeof this.series[i][j] === 'undefined' || series[i][j] === null) { + this.isNullValue = true; + } else { + this.isNullValue = false; + } + + if (w.config.stroke.show) { + if (this.isNullValue) { + strokeWidth = 0; + } else { + strokeWidth = Array.isArray(this.strokeWidth) ? this.strokeWidth[realIndex] : this.strokeWidth; + } + } + + var color = void 0; + var paths = this.drawCandleStickPaths({ + indexes: { + i: i, + j: j, + realIndex: realIndex, + bc: bc + }, + x: x, + y: y, + xDivision: xDivision, + pathTo: pathTo, + pathFrom: pathFrom, + barWidth: barWidth, + zeroH: zeroH, + strokeWidth: strokeWidth, + elSeries: elSeries + }); + pathTo = paths.pathTo; + pathFrom = paths.pathFrom; + y = paths.y; + x = paths.x; + color = paths.color; // push current X + + if (j > 0) { + xArrj.push(x + barWidth / 2); + } + + yArrj.push(y); + var pathFill = fill.fillPath({ + seriesNumber: realIndex, + color: color + }); + var lineFill = this.candlestickOptions.wick.useFillColor ? color : undefined; + elSeries = this.renderSeries({ + realIndex: realIndex, + pathFill: pathFill, + lineFill: lineFill, + j: j, + i: i, + pathFrom: pathFrom, + pathTo: pathTo, + strokeWidth: strokeWidth, + elSeries: elSeries, + x: x, + y: y, + series: series, + barHeight: barHeight, + barWidth: barWidth, + elDataLabelsWrap: elDataLabelsWrap, + visibleSeries: this.visibleI, + type: 'candlestick' + }); + } // push all x val arrays into main xArr + + + w.globals.seriesXvalues[realIndex] = xArrj; + w.globals.seriesYvalues[realIndex] = yArrj; + ret.add(elSeries); + } + + return ret; + } + }, { + key: "drawCandleStickPaths", + value: function drawCandleStickPaths(_ref) { + var indexes = _ref.indexes, + x = _ref.x, + y = _ref.y, + xDivision = _ref.xDivision, + pathTo = _ref.pathTo, + pathFrom = _ref.pathFrom, + barWidth = _ref.barWidth, + zeroH = _ref.zeroH, + strokeWidth = _ref.strokeWidth; + var w = this.w; + var graphics = new Graphics(this.ctx); + var i = indexes.i; + var j = indexes.j; + var isPositive = true; + var colorPos = w.config.plotOptions.candlestick.colors.upward; + var colorNeg = w.config.plotOptions.candlestick.colors.downward; + var yRatio = this.yRatio[this.yaxisIndex]; + var realIndex = indexes.realIndex; + var ohlc = this.getOHLCValue(realIndex, j); + var l1 = zeroH; + var l2 = zeroH; + + if (ohlc.o > ohlc.c) { + isPositive = false; + } + + var y1 = Math.min(ohlc.o, ohlc.c); + var y2 = Math.max(ohlc.o, ohlc.c); + + if (w.globals.isXNumeric) { + x = (w.globals.seriesX[i][j] - w.globals.minX) / this.xRatio - barWidth / 2; + } + + var barXPosition = x + barWidth * this.visibleI; + pathTo = graphics.move(barXPosition, zeroH); + pathFrom = graphics.move(barXPosition, zeroH); + + if (w.globals.previousPaths.length > 0) { + pathFrom = this.getPathFrom(realIndex, j, true); + } + + if (typeof this.series[i][j] === 'undefined' || this.series[i][j] === null) { + y1 = zeroH; + } else { + y1 = zeroH - y1 / yRatio; + y2 = zeroH - y2 / yRatio; + l1 = zeroH - ohlc.h / yRatio; + l2 = zeroH - ohlc.l / yRatio; + } + + pathTo = graphics.move(barXPosition, y2) + graphics.line(barXPosition + barWidth / 2, y2) + graphics.line(barXPosition + barWidth / 2, l1) + graphics.line(barXPosition + barWidth / 2, y2) + graphics.line(barXPosition + barWidth, y2) + graphics.line(barXPosition + barWidth, y1) + graphics.line(barXPosition + barWidth / 2, y1) + graphics.line(barXPosition + barWidth / 2, l2) + graphics.line(barXPosition + barWidth / 2, y1) + graphics.line(barXPosition, y1) + graphics.line(barXPosition, y2 - strokeWidth / 2); + + if (!w.globals.isXNumeric) { + x = x + xDivision; + } + + return { + pathTo: pathTo, + pathFrom: pathFrom, + x: x, + y: y2, + barXPosition: barXPosition, + color: isPositive ? colorPos : colorNeg + }; + } + }, { + key: "getOHLCValue", + value: function getOHLCValue(i, j) { + var w = this.w; + return { + o: w.globals.seriesCandleO[i][j], + h: w.globals.seriesCandleH[i][j], + l: w.globals.seriesCandleL[i][j], + c: w.globals.seriesCandleC[i][j] + }; + } + }]); + + return CandleStick; +}(Bar); + +var Crosshairs = +/*#__PURE__*/ +function () { + function Crosshairs(ctx) { + _classCallCheck(this, Crosshairs); + + this.ctx = ctx; + this.w = ctx.w; + } + + _createClass(Crosshairs, [{ + key: "drawXCrosshairs", + value: function drawXCrosshairs() { + var w = this.w; + var graphics = new Graphics(this.ctx); + var filters = new Filters(this.ctx); + var crosshairGradient = w.config.xaxis.crosshairs.fill.gradient; + var crosshairShadow = w.config.xaxis.crosshairs.dropShadow; + var fillType = w.config.xaxis.crosshairs.fill.type; + var gradientFrom = crosshairGradient.colorFrom; + var gradientTo = crosshairGradient.colorTo; + var opacityFrom = crosshairGradient.opacityFrom; + var opacityTo = crosshairGradient.opacityTo; + var stops = crosshairGradient.stops; + var shadow = 'none'; + var dropShadow = crosshairShadow.enabled; + var shadowLeft = crosshairShadow.left; + var shadowTop = crosshairShadow.top; + var shadowBlur = crosshairShadow.blur; + var shadowColor = crosshairShadow.color; + var shadowOpacity = crosshairShadow.opacity; + var xcrosshairsFill = w.config.xaxis.crosshairs.fill.color; + + if (w.config.xaxis.crosshairs.show) { + if (fillType === 'gradient') { + xcrosshairsFill = graphics.drawGradient('vertical', gradientFrom, gradientTo, opacityFrom, opacityTo, null, stops, null); + } + + var xcrosshairs = graphics.drawRect(); + + if (w.config.xaxis.crosshairs.width === 1) { + // to prevent drawing 2 lines, convert rect to line + xcrosshairs = graphics.drawLine(); + } + + xcrosshairs.attr({ + class: 'apexcharts-xcrosshairs', + x: 0, + y: 0, + y2: w.globals.gridHeight, + width: Utils.isNumber(w.config.xaxis.crosshairs.width) ? w.config.xaxis.crosshairs.width : 0, + height: w.globals.gridHeight, + fill: xcrosshairsFill, + filter: shadow, + 'fill-opacity': w.config.xaxis.crosshairs.opacity, + stroke: w.config.xaxis.crosshairs.stroke.color, + 'stroke-width': w.config.xaxis.crosshairs.stroke.width, + 'stroke-dasharray': w.config.xaxis.crosshairs.stroke.dashArray + }); + + if (dropShadow) { + xcrosshairs = filters.dropShadow(xcrosshairs, { + left: shadowLeft, + top: shadowTop, + blur: shadowBlur, + color: shadowColor, + opacity: shadowOpacity + }); + } + + w.globals.dom.elGraphical.add(xcrosshairs); + } + } + }, { + key: "drawYCrosshairs", + value: function drawYCrosshairs() { + var w = this.w; + var graphics = new Graphics(this.ctx); + var crosshair = w.config.yaxis[0].crosshairs; + + if (w.config.yaxis[0].crosshairs.show) { + var ycrosshairs = graphics.drawLine(0, 0, w.globals.gridWidth, 0, crosshair.stroke.color, crosshair.stroke.dashArray, crosshair.stroke.width); + ycrosshairs.attr({ + class: 'apexcharts-ycrosshairs' + }); + w.globals.dom.elGraphical.add(ycrosshairs); + } // draw an invisible crosshair to help in positioning the yaxis tooltip + + + var ycrosshairsHidden = graphics.drawLine(0, 0, w.globals.gridWidth, 0, crosshair.stroke.color, 0, 0); + ycrosshairsHidden.attr({ + class: 'apexcharts-ycrosshairs-hidden' + }); + w.globals.dom.elGraphical.add(ycrosshairsHidden); + } + }]); + + return Crosshairs; +}(); + +/** + * DateTime Class to manipulate datetime values. + * + * @module DateTime + **/ + +var DateTime = +/*#__PURE__*/ +function () { + function DateTime(ctx) { + _classCallCheck(this, DateTime); + + this.ctx = ctx; + this.w = ctx.w; + this.months31 = [1, 3, 5, 7, 8, 10, 12]; + this.months30 = [2, 4, 6, 9, 11]; + this.daysCntOfYear = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334]; + } + + _createClass(DateTime, [{ + key: "isValidDate", + value: function isValidDate(date) { + return !isNaN(this.parseDate(date)); + } + }, { + key: "getUTCTimeStamp", + value: function getUTCTimeStamp(dateStr) { + if (!Date.parse(dateStr)) { + return dateStr; + } + + return new Date(new Date(dateStr).toISOString().substr(0, 25)).getTime(); + } + }, { + key: "parseDate", + value: function parseDate(dateStr) { + var parsed = Date.parse(dateStr); + + if (!isNaN(parsed)) { + return this.getUTCTimeStamp(dateStr); + } + + var output = Date.parse(dateStr.replace(/-/g, '/').replace(/[a-z]+/gi, ' ')); + output = this.getUTCTimeStamp(output); + return output; + } // https://stackoverflow.com/a/11252167/6495043 + + }, { + key: "treatAsUtc", + value: function treatAsUtc(dateStr) { + var result = new Date(dateStr); + result.setMinutes(result.getMinutes() - result.getTimezoneOffset()); + return result; + } // http://stackoverflow.com/questions/14638018/current-time-formatting-with-javascript#answer-14638191 + + }, { + key: "formatDate", + value: function formatDate(date, format) { + var utc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + var convertToUTC = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true; + var locale = this.w.globals.locale; + var MMMM = ['\x00'].concat(_toConsumableArray(locale.months)); + var MMM = ['\x01'].concat(_toConsumableArray(locale.shortMonths)); + var dddd = ['\x02'].concat(_toConsumableArray(locale.days)); + var ddd = ['\x03'].concat(_toConsumableArray(locale.shortDays)); + + function ii(i, len) { + var s = i + ''; + len = len || 2; + + while (s.length < len) { + s = '0' + s; + } + + return s; + } + + if (convertToUTC) { + date = this.treatAsUtc(date); + } + + var y = utc ? date.getUTCFullYear() : date.getFullYear(); + format = format.replace(/(^|[^\\])yyyy+/g, '$1' + y); + format = format.replace(/(^|[^\\])yy/g, '$1' + y.toString().substr(2, 2)); + format = format.replace(/(^|[^\\])y/g, '$1' + y); + var M = (utc ? date.getUTCMonth() : date.getMonth()) + 1; + format = format.replace(/(^|[^\\])MMMM+/g, '$1' + MMMM[0]); + format = format.replace(/(^|[^\\])MMM/g, '$1' + MMM[0]); + format = format.replace(/(^|[^\\])MM/g, '$1' + ii(M)); + format = format.replace(/(^|[^\\])M/g, '$1' + M); + var d = utc ? date.getUTCDate() : date.getDate(); + format = format.replace(/(^|[^\\])dddd+/g, '$1' + dddd[0]); + format = format.replace(/(^|[^\\])ddd/g, '$1' + ddd[0]); + format = format.replace(/(^|[^\\])dd/g, '$1' + ii(d)); + format = format.replace(/(^|[^\\])d/g, '$1' + d); + var H = utc ? date.getUTCHours() : date.getHours(); + format = format.replace(/(^|[^\\])HH+/g, '$1' + ii(H)); + format = format.replace(/(^|[^\\])H/g, '$1' + H); + var h = H > 12 ? H - 12 : H === 0 ? 12 : H; + format = format.replace(/(^|[^\\])hh+/g, '$1' + ii(h)); + format = format.replace(/(^|[^\\])h/g, '$1' + h); + var m = utc ? date.getUTCMinutes() : date.getMinutes(); + format = format.replace(/(^|[^\\])mm+/g, '$1' + ii(m)); + format = format.replace(/(^|[^\\])m/g, '$1' + m); + var s = utc ? date.getUTCSeconds() : date.getSeconds(); + format = format.replace(/(^|[^\\])ss+/g, '$1' + ii(s)); + format = format.replace(/(^|[^\\])s/g, '$1' + s); + var f = utc ? date.getUTCMilliseconds() : date.getMilliseconds(); + format = format.replace(/(^|[^\\])fff+/g, '$1' + ii(f, 3)); + f = Math.round(f / 10); + format = format.replace(/(^|[^\\])ff/g, '$1' + ii(f)); + f = Math.round(f / 10); + format = format.replace(/(^|[^\\])f/g, '$1' + f); + var T = H < 12 ? 'AM' : 'PM'; + format = format.replace(/(^|[^\\])TT+/g, '$1' + T); + format = format.replace(/(^|[^\\])T/g, '$1' + T.charAt(0)); + var t = T.toLowerCase(); + format = format.replace(/(^|[^\\])tt+/g, '$1' + t); + format = format.replace(/(^|[^\\])t/g, '$1' + t.charAt(0)); + var tz = -date.getTimezoneOffset(); + var K = utc || !tz ? 'Z' : tz > 0 ? '+' : '-'; + + if (!utc) { + tz = Math.abs(tz); + var tzHrs = Math.floor(tz / 60); + var tzMin = tz % 60; + K += ii(tzHrs) + ':' + ii(tzMin); + } + + format = format.replace(/(^|[^\\])K/g, '$1' + K); + var day = (utc ? date.getUTCDay() : date.getDay()) + 1; + format = format.replace(new RegExp(dddd[0], 'g'), dddd[day]); + format = format.replace(new RegExp(ddd[0], 'g'), ddd[day]); + format = format.replace(new RegExp(MMMM[0], 'g'), MMMM[M]); + format = format.replace(new RegExp(MMM[0], 'g'), MMM[M]); + format = format.replace(/\\(.)/g, '$1'); + return format; + } + }, { + key: "getTimeUnitsfromTimestamp", + value: function getTimeUnitsfromTimestamp(minX, maxX) { + var w = this.w; + + if (w.config.xaxis.min !== undefined) { + minX = w.config.xaxis.min; + } + + if (w.config.xaxis.max !== undefined) { + maxX = w.config.xaxis.max; + } + + var minYear = new Date(minX).getFullYear(); + var maxYear = new Date(maxX).getFullYear(); + var minMonth = new Date(minX).getMonth(); + var maxMonth = new Date(maxX).getMonth(); + var minDate = new Date(minX).getDate(); + var maxDate = new Date(maxX).getDate(); + var minHour = new Date(minX).getHours(); + var maxHour = new Date(maxX).getHours(); + var minMinute = new Date(minX).getMinutes(); + var maxMinute = new Date(maxX).getMinutes(); + return { + minMinute: minMinute, + maxMinute: maxMinute, + minHour: minHour, + maxHour: maxHour, + minDate: minDate, + maxDate: maxDate, + minMonth: minMonth, + maxMonth: maxMonth, + minYear: minYear, + maxYear: maxYear + }; + } + }, { + key: "isLeapYear", + value: function isLeapYear(year) { + return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0; + } + }, { + key: "calculcateLastDaysOfMonth", + value: function calculcateLastDaysOfMonth(month, year, subtract) { + var days = this.determineDaysOfMonths(month, year); // whatever days we get, subtract the number of days asked + + return days - subtract; + } + }, { + key: "determineDaysOfYear", + value: function determineDaysOfYear(year) { + var days = 365; + + if (this.isLeapYear(year)) { + days = 366; + } + + return days; + } + }, { + key: "determineRemainingDaysOfYear", + value: function determineRemainingDaysOfYear(year, month, date) { + var dayOfYear = this.daysCntOfYear[month] + date; + if (month > 1 && this.isLeapYear()) dayOfYear++; + return dayOfYear; + } + }, { + key: "determineDaysOfMonths", + value: function determineDaysOfMonths(month, year) { + var days = 30; + month = Utils.monthMod(month); + + switch (true) { + case this.months30.indexOf(month) > -1: + if (month === 2) { + if (this.isLeapYear(year)) { + days = 29; + } else { + days = 28; + } + } + + break; + + case this.months31.indexOf(month) > -1: + days = 31; + break; + + default: + days = 31; + break; + } + + return days; + } + }]); + + return DateTime; +}(); + +/** + * ApexCharts HeatMap Class. + * @module HeatMap + **/ + +var HeatMap = +/*#__PURE__*/ +function () { + function HeatMap(ctx, xyRatios) { + _classCallCheck(this, HeatMap); + + this.ctx = ctx; + this.w = ctx.w; + this.xRatio = xyRatios.xRatio; + this.yRatio = xyRatios.yRatio; + this.dynamicAnim = this.w.config.chart.animations.dynamicAnimation; + this.rectRadius = this.w.config.plotOptions.heatmap.radius; + this.strokeWidth = this.w.config.stroke.width; + } + + _createClass(HeatMap, [{ + key: "draw", + value: function draw(series) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var ret = graphics.group({ + class: 'apexcharts-heatmap' + }); + ret.attr('clip-path', "url(#gridRectMask".concat(w.globals.cuid, ")")); // width divided into equal parts + + var xDivision = w.globals.gridWidth / w.globals.dataPoints; + var yDivision = w.globals.gridHeight / w.globals.series.length; + var y1 = 0; + var rev = false; + var heatSeries = series.slice(); + + if (w.config.yaxis[0].reversed) { + rev = true; + heatSeries.reverse(); + } + + for (var i = rev ? 0 : heatSeries.length - 1; rev ? i < heatSeries.length : i >= 0; rev ? i++ : i--) { + // el to which series will be drawn + var elSeries = graphics.group({ + class: "apexcharts-series apexcharts-heatmap-series ".concat(Utils.escapeString(w.globals.seriesNames[i])), + rel: i + 1, + 'data:realIndex': i + }); + + if (w.config.chart.dropShadow.enabled) { + var shadow = w.config.chart.dropShadow; + var filters = new Filters(this.ctx); + filters.dropShadow(elSeries, shadow); + } + + var x1 = 0; + + for (var j = 0; j < heatSeries[i].length; j++) { + var colorShadePercent = 1; + var heatColorProps = this.determineHeatColor(i, j); + + if (w.globals.hasNegs) { + var shadeIntensity = w.config.plotOptions.heatmap.shadeIntensity; + + if (heatColorProps.percent < 0) { + colorShadePercent = 1 - (1 + heatColorProps.percent / 100) * shadeIntensity; + } else { + colorShadePercent = (1 - heatColorProps.percent / 100) * shadeIntensity; + } + } else { + colorShadePercent = 1 - heatColorProps.percent / 100; + } + + var color = heatColorProps.color; + + if (w.config.plotOptions.heatmap.enableShades) { + var utils = new Utils(); + color = Utils.hexToRgba(utils.shadeColor(colorShadePercent, heatColorProps.color), w.config.fill.opacity); + } + + var radius = this.rectRadius; + var rect = graphics.drawRect(x1, y1, xDivision, yDivision, radius); + rect.attr({ + cx: x1, + cy: y1 + }); + rect.node.classList.add('apexcharts-heatmap-rect'); + elSeries.add(rect); + rect.attr({ + fill: color, + i: i, + index: i, + j: j, + val: heatSeries[i][j], + 'stroke-width': this.strokeWidth, + stroke: w.globals.stroke.colors[0], + color: color + }); + rect.node.addEventListener('mouseenter', graphics.pathMouseEnter.bind(this, rect)); + rect.node.addEventListener('mouseleave', graphics.pathMouseLeave.bind(this, rect)); + rect.node.addEventListener('mousedown', graphics.pathMouseDown.bind(this, rect)); + + if (w.config.chart.animations.enabled && !w.globals.dataChanged) { + var speed = 1; + + if (!w.globals.resized) { + speed = w.config.chart.animations.speed; + } + + this.animateHeatMap(rect, x1, y1, xDivision, yDivision, speed); + } + + if (w.globals.dataChanged) { + var _speed = 1; + + if (this.dynamicAnim.enabled && w.globals.shouldAnimate) { + _speed = this.dynamicAnim.speed; + var colorFrom = w.globals.previousPaths[i] && w.globals.previousPaths[i][j] && w.globals.previousPaths[i][j].color; + if (!colorFrom) colorFrom = 'rgba(255, 255, 255, 0)'; + this.animateHeatColor(rect, Utils.isColorHex(colorFrom) ? colorFrom : Utils.rgb2hex(colorFrom), Utils.isColorHex(color) ? color : Utils.rgb2hex(color), _speed); + } + } + + var dataLabels = this.calculateHeatmapDataLabels({ + x: x1, + y: y1, + i: i, + j: j, + series: heatSeries, + rectHeight: yDivision, + rectWidth: xDivision + }); + + if (dataLabels !== null) { + elSeries.add(dataLabels); + } + + x1 = x1 + xDivision; + } + + y1 = y1 + yDivision; + ret.add(elSeries); + } // adjust yaxis labels for heatmap + + + var yAxisScale = w.globals.yAxisScale[0].result.slice(); + + if (w.config.yaxis[0].reversed) { + yAxisScale.unshift(''); + } else { + yAxisScale.push(''); + } + + w.globals.yAxisScale[0].result = yAxisScale; + var divisor = w.globals.gridHeight / w.globals.series.length; + w.config.yaxis[0].labels.offsetY = -(divisor / 2); + return ret; + } + }, { + key: "determineHeatColor", + value: function determineHeatColor(i, j) { + var w = this.w; + var val = w.globals.series[i][j]; + var heatmap = w.config.plotOptions.heatmap; + var seriesNumber = heatmap.colorScale.inverse ? j : i; + var color = w.globals.colors[seriesNumber]; + var min = Math.min.apply(Math, _toConsumableArray(w.globals.series[i])); + var max = Math.max.apply(Math, _toConsumableArray(w.globals.series[i])); + + if (!heatmap.distributed) { + min = w.globals.minY; + max = w.globals.maxY; + } + + if (typeof heatmap.colorScale.min !== 'undefined') { + min = heatmap.colorScale.min < w.globals.minY ? heatmap.colorScale.min : w.globals.minY; + max = heatmap.colorScale.max > w.globals.maxY ? heatmap.colorScale.max : w.globals.maxY; + } + + var total = Math.abs(max) + Math.abs(min); + var percent = 100 * val / (total === 0 ? total - 0.000001 : total); + + if (heatmap.colorScale.ranges.length > 0) { + var colorRange = heatmap.colorScale.ranges; + colorRange.map(function (range, index) { + if (val >= range.from && val <= range.to) { + color = range.color; + min = range.from; + max = range.to; + total = Math.abs(max) + Math.abs(min); + percent = 100 * val / total; + } + }); + } + + return { + color: color, + percent: percent + }; + } + }, { + key: "calculateHeatmapDataLabels", + value: function calculateHeatmapDataLabels(_ref) { + var x = _ref.x, + y = _ref.y, + i = _ref.i, + j = _ref.j, + series = _ref.series, + rectHeight = _ref.rectHeight, + rectWidth = _ref.rectWidth; + var w = this.w; // let graphics = new Graphics(this.ctx) + + var dataLabelsConfig = w.config.dataLabels; + var graphics = new Graphics(this.ctx); + var dataLabels = new DataLabels(this.ctx); + var formatter = dataLabelsConfig.formatter; + var elDataLabelsWrap = null; + + if (dataLabelsConfig.enabled) { + elDataLabelsWrap = graphics.group({ + class: 'apexcharts-data-labels' + }); + var offX = dataLabelsConfig.offsetX; + var offY = dataLabelsConfig.offsetY; + var dataLabelsX = x + rectWidth / 2 + offX; + var dataLabelsY = y + rectHeight / 2 + parseInt(dataLabelsConfig.style.fontSize) / 3 + offY; + var text = formatter(w.globals.series[i][j], { + seriesIndex: i, + dataPointIndex: j, + w: w + }); + dataLabels.plotDataLabelsText({ + x: dataLabelsX, + y: dataLabelsY, + text: text, + i: i, + j: j, + parent: elDataLabelsWrap, + dataLabelsConfig: dataLabelsConfig + }); + } + + return elDataLabelsWrap; + } + }, { + key: "animateHeatMap", + value: function animateHeatMap(el, x, y, width, height, speed) { + var _this = this; + + var animations = new Animations(this.ctx); + animations.animateRect(el, { + x: x + width / 2, + y: y + height / 2, + width: 0, + height: 0 + }, { + x: x, + y: y, + width: width, + height: height + }, speed, function () { + _this.w.globals.animationEnded = true; + }); + } + }, { + key: "animateHeatColor", + value: function animateHeatColor(el, colorFrom, colorTo, speed) { + el.attr({ + fill: colorFrom + }).animate(speed).attr({ + fill: colorTo + }); + } + }]); + + return HeatMap; +}(); + +/** + * ApexCharts Pie Class for drawing Pie / Donut Charts. + * @module Pie + **/ + +var Pie = +/*#__PURE__*/ +function () { + function Pie(ctx) { + _classCallCheck(this, Pie); + + this.ctx = ctx; + this.w = ctx.w; + this.chartType = this.w.config.chart.type; + this.initialAnim = this.w.config.chart.animations.enabled; + this.dynamicAnim = this.initialAnim && this.w.config.chart.animations.dynamicAnimation.enabled; + this.animBeginArr = [0]; + this.animDur = 0; + this.donutDataLabels = this.w.config.plotOptions.pie.donut.labels; + var w = this.w; + this.lineColorArr = w.globals.stroke.colors !== undefined ? w.globals.stroke.colors : w.globals.colors; + this.defaultSize = w.globals.svgHeight < w.globals.svgWidth ? w.globals.svgHeight - 35 : w.globals.gridWidth; + this.centerY = this.defaultSize / 2; + this.centerX = w.globals.gridWidth / 2; + this.fullAngle = 360; + this.size = 0; + this.donutSize = 0; + this.sliceLabels = []; + this.prevSectorAngleArr = []; // for dynamic animations + } + + _createClass(Pie, [{ + key: "draw", + value: function draw(series) { + var self = this; + var w = this.w; + var graphics = new Graphics(this.ctx); + var ret = graphics.group({ + class: 'apexcharts-pie' + }); + var total = 0; + + for (var k = 0; k < series.length; k++) { + // CALCULATE THE TOTAL + total += Utils.negToZero(series[k]); + } + + var sectorAngleArr = []; // el to which series will be drawn + + var elSeries = graphics.group(); // prevent division by zero error if there is no data + + if (total === 0) { + total = 0.00001; + } + + for (var i = 0; i < series.length; i++) { + // CALCULATE THE ANGLES + var angle = this.fullAngle * Utils.negToZero(series[i]) / total; + sectorAngleArr.push(angle); + } + + if (w.globals.dataChanged) { + var prevTotal = 0; + + for (var _k = 0; _k < w.globals.previousPaths.length; _k++) { + // CALCULATE THE PREV TOTAL + prevTotal += Utils.negToZero(w.globals.previousPaths[_k]); + } + + var previousAngle; + + for (var _i = 0; _i < w.globals.previousPaths.length; _i++) { + // CALCULATE THE PREVIOUS ANGLES + previousAngle = this.fullAngle * Utils.negToZero(w.globals.previousPaths[_i]) / prevTotal; + this.prevSectorAngleArr.push(previousAngle); + } + } + + this.size = this.defaultSize / 2.05 - w.config.stroke.width - w.config.chart.dropShadow.blur; + + if (w.config.plotOptions.pie.size !== undefined) { + this.size = w.config.plotOptions.pie.size; + } + + this.donutSize = this.size * parseInt(w.config.plotOptions.pie.donut.size) / 100; + var scaleSize = w.config.plotOptions.pie.customScale; + var halfW = w.globals.gridWidth / 2; + var halfH = w.globals.gridHeight / 2; + var translateX = halfW - w.globals.gridWidth / 2 * scaleSize; + var translateY = halfH - w.globals.gridHeight / 2 * scaleSize; + + if (this.donutDataLabels.show) { + var dataLabels = this.renderInnerDataLabels(this.donutDataLabels, { + hollowSize: this.donutSize, + centerX: this.centerX, + centerY: this.centerY, + opacity: this.donutDataLabels.show, + translateX: translateX, + translateY: translateY + }); + ret.add(dataLabels); + } + + if (w.config.chart.type === 'donut') { + // draw the inner circle and add some text to it + var circle = graphics.drawCircle(this.donutSize); + circle.attr({ + cx: this.centerX, + cy: this.centerY, + fill: w.config.plotOptions.pie.donut.background + }); + elSeries.add(circle); + } + + var elG = self.drawArcs(sectorAngleArr, series); // add slice dataLabels at the end + + this.sliceLabels.forEach(function (s) { + elG.add(s); + }); + elSeries.attr({ + transform: "translate(".concat(translateX, ", ").concat(translateY - 5, ") scale(").concat(scaleSize, ")") + }); + ret.attr({ + 'data:innerTranslateX': translateX, + 'data:innerTranslateY': translateY - 25 + }); + elSeries.add(elG); + ret.add(elSeries); + return ret; + } // core function for drawing pie arcs + + }, { + key: "drawArcs", + value: function drawArcs(sectorAngleArr, series) { + var w = this.w; + var filters = new Filters(this.ctx); + var graphics = new Graphics(this.ctx); + var fill = new Fill(this.ctx); + var g = graphics.group(); + var startAngle = 0; + var prevStartAngle = 0; + var endAngle = 0; + var prevEndAngle = 0; + this.strokeWidth = w.config.stroke.show ? w.config.stroke.width : 0; + + for (var i = 0; i < sectorAngleArr.length; i++) { + // if(sectorAngleArr[i]>0) { + var elPieArc = graphics.group({ + class: "apexcharts-series apexcharts-pie-series ".concat(Utils.escapeString(w.globals.seriesNames[i])), + id: 'apexcharts-series-' + i, + rel: i + 1 + }); + g.add(elPieArc); + startAngle = endAngle; + prevStartAngle = prevEndAngle; + endAngle = startAngle + sectorAngleArr[i]; + prevEndAngle = prevStartAngle + this.prevSectorAngleArr[i]; + var angle = endAngle - startAngle; + var pathFill = fill.fillPath({ + seriesNumber: i, + size: this.size + }); // additionaly, pass size for gradient drawing in the fillPath function + + var path = this.getChangedPath(prevStartAngle, prevEndAngle); + var elPath = graphics.drawPath({ + d: path, + stroke: this.lineColorArr instanceof Array ? this.lineColorArr[i] : this.lineColorArr, + strokeWidth: this.strokeWidth, + fill: pathFill, + fillOpacity: w.config.fill.opacity, + classes: 'apexcharts-pie-area' + }); + elPath.attr({ + id: 'apexcharts-pie-slice-' + i, + index: 0, + j: i + }); + + if (w.config.chart.dropShadow.enabled) { + var shadow = w.config.chart.dropShadow; + filters.dropShadow(elPath, shadow); + } + + this.addListeners(elPath, this.donutDataLabels); + Graphics.setAttrs(elPath.node, { + 'data:angle': angle, + 'data:startAngle': startAngle, + 'data:strokeWidth': this.strokeWidth, + 'data:value': series[i] + }); + var labelPosition = { + x: 0, + y: 0 + }; + + if (w.config.chart.type === 'pie') { + labelPosition = Utils.polarToCartesian(this.centerX, this.centerY, this.size / 1.25 + w.config.plotOptions.pie.dataLabels.offset, startAngle + (endAngle - startAngle) / 2); + } else if (w.config.chart.type === 'donut') { + labelPosition = Utils.polarToCartesian(this.centerX, this.centerY, (this.size + this.donutSize) / 2 + w.config.plotOptions.pie.dataLabels.offset, startAngle + (endAngle - startAngle) / 2); + } + + elPieArc.add(elPath); // Animation code starts + + var dur = 0; + + if (this.initialAnim && !w.globals.resized && !w.globals.dataChanged) { + dur = (endAngle - startAngle) / this.fullAngle * w.config.chart.animations.speed; + this.animDur = dur + this.animDur; + this.animBeginArr.push(this.animDur); + } else { + this.animBeginArr.push(0); + } + + if (this.dynamicAnim && w.globals.dataChanged) { + this.animatePaths(elPath, { + endAngle: endAngle, + startAngle: startAngle, + prevStartAngle: prevStartAngle, + prevEndAngle: prevEndAngle, + animateStartingPos: true, + i: i, + animBeginArr: this.animBeginArr, + dur: w.config.chart.animations.dynamicAnimation.speed + }); + } else { + this.animatePaths(elPath, { + endAngle: endAngle, + startAngle: startAngle, + i: i, + totalItems: sectorAngleArr.length - 1, + animBeginArr: this.animBeginArr, + dur: dur + }); + } // animation code ends + + + if (w.config.plotOptions.pie.expandOnClick) { + elPath.click(this.pieClicked.bind(this, i)); + } + + if (w.config.dataLabels.enabled) { + var xPos = labelPosition.x; + var yPos = labelPosition.y; + var text = 100 * (endAngle - startAngle) / 360 + '%'; + + if (angle !== 0) { + var formatter = w.config.dataLabels.formatter; + + if (formatter !== undefined) { + text = formatter(w.globals.seriesPercent[i][0], { + seriesIndex: i, + w: w + }); + } + + var foreColor = w.globals.dataLabels.style.colors[i]; + var elPieLabel = graphics.drawText({ + x: xPos, + y: yPos, + text: text, + textAnchor: 'middle', + fontSize: w.config.dataLabels.style.fontSize, + fontFamily: w.config.dataLabels.style.fontFamily, + foreColor: foreColor + }); + + if (w.config.dataLabels.dropShadow.enabled) { + var textShadow = w.config.dataLabels.dropShadow; + + var _filters = new Filters(this.ctx); + + _filters.dropShadow(elPieLabel, textShadow); + } + + elPieLabel.node.classList.add('apexcharts-pie-label'); + + if (w.config.chart.animations.animate && w.globals.resized === false) { + elPieLabel.node.classList.add('apexcharts-pie-label-delay'); + elPieLabel.node.style.animationDelay = w.config.chart.animations.speed / 940 + 's'; + } + + this.sliceLabels.push(elPieLabel); + } + } // } + + } + + return g; + } + }, { + key: "addListeners", + value: function addListeners(elPath, dataLabels) { + var graphics = new Graphics(this.ctx); // append filters on mouseenter and mouseleave + + elPath.node.addEventListener('mouseenter', graphics.pathMouseEnter.bind(this, elPath)); + elPath.node.addEventListener('mouseenter', this.printDataLabelsInner.bind(this, elPath.node, dataLabels)); + elPath.node.addEventListener('mouseleave', graphics.pathMouseLeave.bind(this, elPath)); + elPath.node.addEventListener('mouseleave', this.revertDataLabelsInner.bind(this, elPath.node, dataLabels)); + elPath.node.addEventListener('mousedown', graphics.pathMouseDown.bind(this, elPath)); + elPath.node.addEventListener('mousedown', this.printDataLabelsInner.bind(this, elPath.node, dataLabels)); + } // This function can be used for other circle charts too + + }, { + key: "animatePaths", + value: function animatePaths(el, opts) { + var w = this.w; + var me = this; + var angle = opts.endAngle - opts.startAngle; + var prevAngle = angle; + var fromStartAngle = opts.startAngle; + var toStartAngle = opts.startAngle; + + if (opts.prevStartAngle !== undefined && opts.prevEndAngle !== undefined) { + fromStartAngle = opts.prevEndAngle; + prevAngle = opts.prevEndAngle - opts.prevStartAngle; + } + + if (opts.i === w.config.series.length - 1) { + // some adjustments for the last overlapping paths + if (angle + toStartAngle > this.fullAngle) { + opts.endAngle = opts.endAngle - (angle + toStartAngle); + } else if (angle + toStartAngle < this.fullAngle) { + opts.endAngle = opts.endAngle + (this.fullAngle - (angle + toStartAngle)); + } + } + + if (angle === this.fullAngle) angle = this.fullAngle - 0.01; + me.animateArc(el, fromStartAngle, toStartAngle, angle, prevAngle, opts); + } + }, { + key: "animateArc", + value: function animateArc(el, fromStartAngle, toStartAngle, angle, prevAngle, opts) { + var me = this; + var w = this.w; + var size = me.size; + + if (!size) { + size = opts.size; + } + + var path; + + if (isNaN(fromStartAngle) || isNaN(prevAngle)) { + fromStartAngle = toStartAngle; + prevAngle = angle; + opts.dur = 0; + } + + var currAngle = angle; + var startAngle = toStartAngle; + var fromAngle = fromStartAngle - toStartAngle; + + if (w.globals.dataChanged && opts.shouldSetPrevPaths) { + // to avoid flickering, set prev path first and then we will animate from there + path = me.getPiePath({ + me: me, + startAngle: startAngle, + angle: prevAngle, + size: size + }); + el.attr({ + d: path + }); + } + + if (opts.dur !== 0) { + el.animate(opts.dur, w.globals.easing, opts.animBeginArr[opts.i]).afterAll(function () { + if (w.config.chart.type === 'pie' || w.config.chart.type === 'donut') { + this.animate(300).attr({ + 'stroke-width': w.config.stroke.width + }); + } + + w.globals.animationEnded = true; + }).during(function (pos) { + currAngle = fromAngle + (angle - fromAngle) * pos; + + if (opts.animateStartingPos) { + currAngle = prevAngle + (angle - prevAngle) * pos; + startAngle = fromStartAngle - prevAngle + (toStartAngle - (fromStartAngle - prevAngle)) * pos; + } + + path = me.getPiePath({ + me: me, + startAngle: startAngle, + angle: currAngle, + size: size + }); + el.node.setAttribute('data:pathOrig', path); + el.attr({ + d: path + }); + }); + } else { + path = me.getPiePath({ + me: me, + startAngle: startAngle, + angle: angle, + size: size + }); + + if (!opts.isTrack) { + w.globals.animationEnded = true; + } + + el.node.setAttribute('data:pathOrig', path); + el.attr({ + d: path + }); + } + } + }, { + key: "pieClicked", + value: function pieClicked(i) { + var w = this.w; + var me = this; + var path; + var size = me.size + 3; + var elPath = w.globals.dom.Paper.select('#apexcharts-pie-slice-' + i).members[0]; + var pathFrom = elPath.attr('d'); + + if (elPath.attr('data:pieClicked') === 'true') { + elPath.attr({ + 'data:pieClicked': 'false' + }); + var origPath = elPath.attr('data:pathOrig'); + elPath.attr({ + d: origPath + }); + return; + } else { + // reset all elems + var allEls = w.globals.dom.baseEl.querySelectorAll('.apexcharts-pie-area'); + Array.prototype.forEach.call(allEls, function (pieSlice) { + pieSlice.setAttribute('data:pieClicked', 'false'); + var origPath = pieSlice.getAttribute('data:pathOrig'); + pieSlice.setAttribute('d', origPath); + }); + elPath.attr('data:pieClicked', 'true'); + } + + var startAngle = parseInt(elPath.attr('data:startAngle')); + var angle = parseInt(elPath.attr('data:angle')); + path = me.getPiePath({ + me: me, + startAngle: startAngle, + angle: angle, + size: size + }); + if (angle === 360) return; + elPath.plot(path).animate(1).plot(pathFrom).animate(100).plot(path); + } + }, { + key: "getChangedPath", + value: function getChangedPath(prevStartAngle, prevEndAngle) { + var path = ''; + + if (this.dynamicAnim && this.w.globals.dataChanged) { + path = this.getPiePath({ + me: this, + startAngle: prevStartAngle, + angle: prevEndAngle - prevStartAngle, + size: this.size + }); + } + + return path; + } + }, { + key: "getPiePath", + value: function getPiePath(_ref) { + var me = _ref.me, + startAngle = _ref.startAngle, + angle = _ref.angle, + size = _ref.size; + var w = this.w; + var path; + var startDeg = startAngle; + var startRadians = Math.PI * (startDeg - 90) / 180; + var endDeg = angle + startAngle; + if (Math.ceil(endDeg) >= 360) endDeg = 359.99; + var endRadians = Math.PI * (endDeg - 90) / 180; + var x1 = me.centerX + size * Math.cos(startRadians); + var y1 = me.centerY + size * Math.sin(startRadians); + var x2 = me.centerX + size * Math.cos(endRadians); + var y2 = me.centerY + size * Math.sin(endRadians); + var startInner = Utils.polarToCartesian(me.centerX, me.centerY, me.donutSize, endDeg); + var endInner = Utils.polarToCartesian(me.centerX, me.centerY, me.donutSize, startDeg); + var largeArc = angle > 180 ? 1 : 0; + + if (w.config.chart.type === 'donut') { + path = ['M', x1, y1, 'A', size, size, 0, largeArc, 1, x2, y2, 'L', startInner.x, startInner.y, 'A', me.donutSize, me.donutSize, 0, largeArc, 0, endInner.x, endInner.y, 'L', x1, y1, 'z'].join(' '); + } else if (w.config.chart.type === 'pie') { + path = ['M', x1, y1, 'A', size, size, 0, largeArc, 1, x2, y2, 'L', me.centerX, me.centerY, 'L', x1, y1].join(' '); + } else { + path = ['M', x1, y1, 'A', size, size, 0, largeArc, 1, x2, y2].join(' '); + } + + return path; + } + }, { + key: "renderInnerDataLabels", + value: function renderInnerDataLabels(dataLabelsConfig, opts) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var g = graphics.group({ + class: 'apexcharts-datalabels-group', + transform: "translate(".concat(opts.translateX ? opts.translateX : 0, ", ").concat(opts.translateY ? opts.translateY : 0, ")") + }); + var showTotal = dataLabelsConfig.total.show; + g.node.style.opacity = opts.opacity; + var x = opts.centerX; + var y = opts.centerY; + var labelColor, valueColor; + + if (dataLabelsConfig.name.color === undefined) { + labelColor = w.globals.colors[0]; + } else { + labelColor = dataLabelsConfig.name.color; + } + + if (dataLabelsConfig.value.color === undefined) { + valueColor = w.config.chart.foreColor; + } else { + valueColor = dataLabelsConfig.value.color; + } + + var lbFormatter = dataLabelsConfig.value.formatter; + var val = ''; + var name = ''; + + if (showTotal) { + labelColor = dataLabelsConfig.total.color; + name = dataLabelsConfig.total.label; + val = dataLabelsConfig.total.formatter(w); + } else { + if (w.globals.series.length === 1) { + val = lbFormatter(w.globals.series[0], w); + name = w.globals.seriesNames[0]; + } + } + + if (dataLabelsConfig.name.show) { + var elLabel = graphics.drawText({ + x: x, + y: y + parseInt(dataLabelsConfig.name.offsetY), + text: name, + textAnchor: 'middle', + foreColor: labelColor, + fontSize: dataLabelsConfig.name.fontSize, + fontFamily: dataLabelsConfig.name.fontFamily + }); + elLabel.node.classList.add('apexcharts-datalabel-label'); + g.add(elLabel); + } + + if (dataLabelsConfig.value.show) { + var valOffset = dataLabelsConfig.name.show ? parseInt(dataLabelsConfig.value.offsetY) + 16 : dataLabelsConfig.value.offsetY; + var elValue = graphics.drawText({ + x: x, + y: y + valOffset, + text: val, + textAnchor: 'middle', + foreColor: valueColor, + fontSize: dataLabelsConfig.value.fontSize, + fontFamily: dataLabelsConfig.value.fontFamily + }); + elValue.node.classList.add('apexcharts-datalabel-value'); + g.add(elValue); + } // for a multi-series circle chart, we need to show total value instead of first series labels + + + return g; + } + /** + * + * @param {string} name - The name of the series + * @param {string} val - The value of that series + * @param {object} el - Optional el (indicates which series was hovered/clicked). If this param is not present, means we need to show total + */ + + }, { + key: "printInnerLabels", + value: function printInnerLabels(labelsConfig, name, val, el) { + var w = this.w; + var labelColor; + + if (el) { + if (labelsConfig.name.color === undefined) { + labelColor = w.globals.colors[parseInt(el.parentNode.getAttribute('rel')) - 1]; + } else { + labelColor = labelsConfig.name.color; + } + } else { + if (w.globals.series.length > 1 && labelsConfig.total.show) { + labelColor = labelsConfig.total.color; + } + } + + var elLabel = w.globals.dom.baseEl.querySelector('.apexcharts-datalabel-label'); + var elValue = w.globals.dom.baseEl.querySelector('.apexcharts-datalabel-value'); + var lbFormatter = labelsConfig.value.formatter; + val = lbFormatter(val, w); // we need to show Total Val - so get the formatter of it + + if (!el && typeof labelsConfig.total.formatter === 'function') { + val = labelsConfig.total.formatter(w); + } + + if (elLabel !== null) { + elLabel.textContent = name; + } + + if (elValue !== null) { + elValue.textContent = val; + } + + if (elLabel !== null) { + elLabel.style.fill = labelColor; + } + } + }, { + key: "printDataLabelsInner", + value: function printDataLabelsInner(el, dataLabelsConfig) { + var w = this.w; + var val = el.getAttribute('data:value'); + var name = w.globals.seriesNames[parseInt(el.parentNode.getAttribute('rel')) - 1]; + + if (w.globals.series.length > 1) { + this.printInnerLabels(dataLabelsConfig, name, val, el); + } + + var dataLabelsGroup = w.globals.dom.baseEl.querySelector('.apexcharts-datalabels-group'); + + if (dataLabelsGroup !== null) { + dataLabelsGroup.style.opacity = 1; + } + } + }, { + key: "revertDataLabelsInner", + value: function revertDataLabelsInner(el, dataLabelsConfig) { + var w = this.w; + var dataLabelsGroup = w.globals.dom.baseEl.querySelector('.apexcharts-datalabels-group'); + + if (dataLabelsConfig.total.show && w.globals.series.length > 1) { + var pie = new Pie(this.ctx); + pie.printInnerLabels(dataLabelsConfig, dataLabelsConfig.total.label, dataLabelsConfig.total.formatter(w)); + } else { + if (w.globals.selectedDataPoints.length) { + if (w.globals.selectedDataPoints[0].length > 0) { + var index = w.globals.selectedDataPoints[0]; + + var _el = w.globals.dom.baseEl.querySelector("#apexcharts-pie-slice-".concat(index)); + + this.printDataLabelsInner(_el, dataLabelsConfig); + } else { + dataLabelsGroup.style.opacity = 0; + } + } else if (w.globals.selectedDataPoints.length === 0 || dataLabelsGroup !== null && w.globals.series.length > 1) { + dataLabelsGroup.style.opacity = 0; + } + } + } + }]); + + return Pie; +}(); + +/** + * ApexCharts Radar Class for Spider/Radar Charts. + * @module Radar + **/ + +var Radar = +/*#__PURE__*/ +function () { + function Radar(ctx) { + _classCallCheck(this, Radar); + + this.ctx = ctx; + this.w = ctx.w; + this.chartType = this.w.config.chart.type; + this.initialAnim = this.w.config.chart.animations.enabled; + this.dynamicAnim = this.initialAnim && this.w.config.chart.animations.dynamicAnimation.enabled; + this.animDur = 0; + var w = this.w; + this.graphics = new Graphics(this.ctx); + this.lineColorArr = w.globals.stroke.colors !== undefined ? w.globals.stroke.colors : w.globals.colors; + this.defaultSize = w.globals.svgHeight < w.globals.svgWidth ? w.globals.svgHeight - 35 : w.globals.gridWidth; + this.maxValue = this.w.globals.maxY; + this.polygons = w.config.plotOptions.radar.polygons; + this.maxLabelWidth = 20; + var longestLabel = w.globals.labels.slice().sort(function (a, b) { + return b.length - a.length; + })[0]; + var labelWidth = this.graphics.getTextRects(longestLabel, w.config.dataLabels.style.fontSize); + this.size = this.defaultSize / 2.1 - w.config.stroke.width - w.config.chart.dropShadow.blur - labelWidth.width / 1.75; + + if (w.config.plotOptions.radar.size !== undefined) { + this.size = w.config.plotOptions.radar.size; + } + + this.dataRadiusOfPercent = []; + this.dataRadius = []; + this.angleArr = []; + this.yaxisLabelsTextsPos = []; + } + + _createClass(Radar, [{ + key: "draw", + value: function draw(series) { + var _this = this; + + var w = this.w; + var fill = new Fill(this.ctx); + var allSeries = []; + this.dataPointsLen = series[w.globals.maxValsInArrayIndex].length; + this.disAngle = Math.PI * 2 / this.dataPointsLen; + var halfW = w.globals.gridWidth / 2; + var halfH = w.globals.gridHeight / 2; + var translateX = halfW; + var translateY = halfH; + var ret = this.graphics.group({ + class: 'apexcharts-radar-series', + 'data:innerTranslateX': translateX, + 'data:innerTranslateY': translateY - 25, + transform: "translate(".concat(translateX || 0, ", ").concat(translateY || 0, ")") + }); + var dataPointsPos = []; + var elPointsMain = null; + this.yaxisLabels = this.graphics.group({ + class: 'apexcharts-yaxis' + }); + series.forEach(function (s, i) { + // el to which series will be drawn + var elSeries = _this.graphics.group().attr({ + class: "apexcharts-series ".concat(Utils.escapeString(w.globals.seriesNames[i])), + rel: i + 1, + 'data:realIndex': i + }); + + _this.dataRadiusOfPercent[i] = []; + _this.dataRadius[i] = []; + _this.angleArr[i] = []; + s.forEach(function (dv, j) { + _this.dataRadiusOfPercent[i][j] = dv / _this.maxValue; + _this.dataRadius[i][j] = _this.dataRadiusOfPercent[i][j] * _this.size; + _this.angleArr[i][j] = j * _this.disAngle; + }); + dataPointsPos = _this.getDataPointsPos(_this.dataRadius[i], _this.angleArr[i]); + + var paths = _this.createPaths(dataPointsPos, { + x: 0, + y: 0 + }); // points + + + elPointsMain = _this.graphics.group({ + class: 'apexcharts-series-markers-wrap hidden' + }); + w.globals.delayedElements.push({ + el: elPointsMain.node, + index: i + }); + var defaultRenderedPathOptions = { + i: i, + realIndex: i, + animationDelay: i, + initialSpeed: w.config.chart.animations.speed, + dataChangeSpeed: w.config.chart.animations.dynamicAnimation.speed, + className: "apexcharts-radar", + id: "apexcharts-radar", + shouldClipToGrid: false, + bindEventsOnPaths: false, + stroke: w.globals.stroke.colors[i], + strokeLineCap: w.config.stroke.lineCap + }; + var pathFrom = null; + + if (w.globals.previousPaths.length > 0) { + pathFrom = _this.getPathFrom(i); + } + + for (var p = 0; p < paths.linePathsTo.length; p++) { + var renderedLinePath = _this.graphics.renderPaths(_objectSpread({}, defaultRenderedPathOptions, { + pathFrom: pathFrom === null ? paths.linePathsFrom[p] : pathFrom, + pathTo: paths.linePathsTo[p], + strokeWidth: Array.isArray(w.config.stroke.width) ? w.config.stroke.width[i] : w.config.stroke.width, + fill: 'none' + })); + + elSeries.add(renderedLinePath); + var pathFill = fill.fillPath({ + seriesNumber: i + }); + + var renderedAreaPath = _this.graphics.renderPaths(_objectSpread({}, defaultRenderedPathOptions, { + pathFrom: pathFrom === null ? paths.areaPathsFrom[p] : pathFrom, + pathTo: paths.areaPathsTo[p], + strokeWidth: 0, + fill: pathFill + })); + + if (w.config.chart.dropShadow.enabled) { + var filters = new Filters(_this.ctx); + var shadow = w.config.chart.dropShadow; + filters.dropShadow(renderedAreaPath, _objectSpread({}, shadow, { + noUserSpaceOnUse: true + })); + } + + elSeries.add(renderedAreaPath); + } + + s.forEach(function (sj, j) { + var markers = new Markers(_this.ctx); + var opts = markers.getMarkerConfig('apexcharts-marker', i); + + var point = _this.graphics.drawMarker(dataPointsPos[j].x, dataPointsPos[j].y, opts); + + point.attr('rel', j); + point.attr('j', j); + point.attr('index', i); + point.node.setAttribute('default-marker-size', opts.pSize); + + var elPointsWrap = _this.graphics.group({ + class: 'apexcharts-series-markers' + }); + + if (elPointsWrap) { + elPointsWrap.add(point); + } + + elPointsMain.add(elPointsWrap); + elSeries.add(elPointsMain); + }); + allSeries.push(elSeries); + }); + this.drawPolygons({ + parent: ret + }); + + if (w.config.dataLabels.enabled) { + var dataLabels = this.drawLabels(); + ret.add(dataLabels); + } + + ret.add(this.yaxisLabels); + allSeries.forEach(function (elS) { + ret.add(elS); + }); + return ret; + } + }, { + key: "drawPolygons", + value: function drawPolygons(opts) { + var _this2 = this; + + var w = this.w; + var parent = opts.parent; + var yaxisTexts = w.globals.yAxisScale[0].result.reverse(); + var layers = yaxisTexts.length; + var radiusSizes = []; + var layerDis = this.size / (layers - 1); + + for (var i = 0; i < layers; i++) { + radiusSizes[i] = layerDis * i; + } + + radiusSizes.reverse(); + var polygonStrings = []; + var lines = []; + radiusSizes.forEach(function (radiusSize, r) { + var polygon = _this2.getPolygonPos(radiusSize); + + var string = ''; + polygon.forEach(function (p, i) { + if (r === 0) { + var line = _this2.graphics.drawLine(p.x, p.y, 0, 0, Array.isArray(_this2.polygons.connectorColors) ? _this2.polygons.connectorColors[i] : _this2.polygons.connectorColors); + + lines.push(line); + } + + if (i === 0) { + _this2.yaxisLabelsTextsPos.push({ + x: p.x, + y: p.y + }); + } + + string += p.x + ',' + p.y + ' '; + }); + polygonStrings.push(string); + }); + polygonStrings.forEach(function (p, i) { + var strokeColors = _this2.polygons.strokeColors; + + var polygon = _this2.graphics.drawPolygon(p, Array.isArray(strokeColors) ? strokeColors[i] : strokeColors, w.globals.radarPolygons.fill.colors[i]); + + parent.add(polygon); + }); + lines.forEach(function (l) { + parent.add(l); + }); + + if (w.config.yaxis[0].show) { + this.yaxisLabelsTextsPos.forEach(function (p, i) { + var yText = _this2.drawYAxisText(p.x, p.y, i, yaxisTexts[i]); + + _this2.yaxisLabels.add(yText); + }); + } + } + }, { + key: "drawYAxisText", + value: function drawYAxisText(x, y, i, text) { + var w = this.w; + var yaxisConfig = w.config.yaxis[0]; + var formatter = w.globals.yLabelFormatters[0]; + var yaxisLabel = this.graphics.drawText({ + x: x + yaxisConfig.labels.offsetX, + y: y + yaxisConfig.labels.offsetY, + text: formatter(text, i), + textAnchor: 'middle', + fontSize: yaxisConfig.labels.style.fontSize, + fontFamily: yaxisConfig.labels.style.fontFamily, + foreColor: yaxisConfig.labels.style.color + }); + return yaxisLabel; + } + }, { + key: "drawLabels", + value: function drawLabels() { + var _this3 = this; + + var w = this.w; + var limit = 10; + var textAnchor = 'middle'; + var dataLabelsConfig = w.config.dataLabels; + var elDataLabelsWrap = this.graphics.group({ + class: 'apexcharts-datalabels' + }); + var polygonPos = this.getPolygonPos(this.size); + var currPosX = 0; + var currPosY = 0; + w.globals.labels.forEach(function (label, i) { + var formatter = dataLabelsConfig.formatter; + var dataLabels = new DataLabels(_this3.ctx); + + if (polygonPos[i]) { + currPosX = polygonPos[i].x; + currPosY = polygonPos[i].y; + + if (Math.abs(polygonPos[i].x) >= limit) { + if (polygonPos[i].x > 0) { + textAnchor = 'start'; + currPosX += 10; + } else if (polygonPos[i].x < 0) { + textAnchor = 'end'; + currPosX -= 10; + } + } else { + textAnchor = 'middle'; + } + + if (Math.abs(polygonPos[i].y) >= _this3.size - limit) { + if (polygonPos[i].y < 0) { + currPosY -= 10; + } else if (polygonPos[i].y > 0) { + currPosY += 10; + } + } + + var text = formatter(label, { + seriesIndex: -1, + dataPointIndex: i, + w: w + }); + dataLabels.plotDataLabelsText({ + x: currPosX, + y: currPosY, + text: text, + textAnchor: textAnchor, + i: i, + j: i, + parent: elDataLabelsWrap, + dataLabelsConfig: dataLabelsConfig, + offsetCorrection: false + }); + } + }); + return elDataLabelsWrap; + } + }, { + key: "createPaths", + value: function createPaths(pos, origin) { + var _this4 = this; + + var linePathsTo = []; + var linePathsFrom = []; + var areaPathsTo = []; + var areaPathsFrom = []; + + if (pos.length) { + linePathsFrom = [this.graphics.move(origin.x, origin.y)]; + areaPathsFrom = [this.graphics.move(origin.x, origin.y)]; + var linePathTo = this.graphics.move(pos[0].x, pos[0].y); + var areaPathTo = this.graphics.move(pos[0].x, pos[0].y); + pos.forEach(function (p, i) { + linePathTo += _this4.graphics.line(p.x, p.y); + areaPathTo += _this4.graphics.line(p.x, p.y); + + if (i === pos.length - 1) { + linePathTo += 'Z'; + areaPathTo += 'Z'; + } + }); + linePathsTo.push(linePathTo); + areaPathsTo.push(areaPathTo); + } + + return { + linePathsFrom: linePathsFrom, + linePathsTo: linePathsTo, + areaPathsFrom: areaPathsFrom, + areaPathsTo: areaPathsTo + }; + } + }, { + key: "getPathFrom", + value: function getPathFrom(realIndex) { + var w = this.w; + var pathFrom = null; + + for (var pp = 0; pp < w.globals.previousPaths.length; pp++) { + var gpp = w.globals.previousPaths[pp]; + + if (gpp.paths.length > 0 && parseInt(gpp.realIndex) === parseInt(realIndex)) { + if (typeof w.globals.previousPaths[pp].paths[0] !== 'undefined') { + pathFrom = w.globals.previousPaths[pp].paths[0].d; + } + } + } + + return pathFrom; + } + }, { + key: "getDataPointsPos", + value: function getDataPointsPos(dataRadiusArr, angleArr) { + var dataPointsLen = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.dataPointsLen; + dataRadiusArr = dataRadiusArr || []; + angleArr = angleArr || []; + var dataPointsPosArray = []; + + for (var j = 0; j < dataPointsLen; j++) { + var curPointPos = {}; + curPointPos.x = dataRadiusArr[j] * Math.sin(angleArr[j]); + curPointPos.y = -dataRadiusArr[j] * Math.cos(angleArr[j]); + dataPointsPosArray.push(curPointPos); + } + + return dataPointsPosArray; + } + }, { + key: "getPolygonPos", + value: function getPolygonPos(size) { + var dotsArray = []; + var angle = Math.PI * 2 / this.dataPointsLen; + + for (var i = 0; i < this.dataPointsLen; i++) { + var curPos = {}; + curPos.x = size * Math.sin(i * angle); + curPos.y = -size * Math.cos(i * angle); + dotsArray.push(curPos); + } + + return dotsArray; + } + }]); + + return Radar; +}(); + +/** + * ApexCharts Radial Class for drawing Circle / Semi Circle Charts. + * @module Radial + **/ + +var Radial = +/*#__PURE__*/ +function (_Pie) { + _inherits(Radial, _Pie); + + function Radial(ctx) { + var _this; + + _classCallCheck(this, Radial); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(Radial).call(this, ctx)); + _this.ctx = ctx; + _this.w = ctx.w; + _this.animBeginArr = [0]; + _this.animDur = 0; + var w = _this.w; + _this.startAngle = w.config.plotOptions.radialBar.startAngle; + _this.endAngle = w.config.plotOptions.radialBar.endAngle; + _this.trackStartAngle = w.config.plotOptions.radialBar.track.startAngle; + _this.trackEndAngle = w.config.plotOptions.radialBar.track.endAngle; + _this.radialDataLabels = w.config.plotOptions.radialBar.dataLabels; + if (!_this.trackStartAngle) _this.trackStartAngle = _this.startAngle; + if (!_this.trackEndAngle) _this.trackEndAngle = _this.endAngle; + if (_this.endAngle === 360) _this.endAngle = 359.99; + _this.fullAngle = 360 - w.config.plotOptions.radialBar.endAngle - w.config.plotOptions.radialBar.startAngle; + _this.margin = parseInt(w.config.plotOptions.radialBar.track.margin); + return _this; + } + + _createClass(Radial, [{ + key: "draw", + value: function draw(series) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var ret = graphics.group({ + class: 'apexcharts-radialbar' + }); + var elSeries = graphics.group(); + var centerY = this.defaultSize / 2; + var centerX = w.globals.gridWidth / 2; + var size = this.defaultSize / 2.05 - w.config.stroke.width - w.config.chart.dropShadow.blur; + + if (w.config.plotOptions.radialBar.size !== undefined) { + size = w.config.plotOptions.radialBar.size; + } + + var colorArr = w.globals.fill.colors; + + if (w.config.plotOptions.radialBar.track.show) { + var elTracks = this.drawTracks({ + size: size, + centerX: centerX, + centerY: centerY, + colorArr: colorArr, + series: series + }); + elSeries.add(elTracks); + } + + var elG = this.drawArcs({ + size: size, + centerX: centerX, + centerY: centerY, + colorArr: colorArr, + series: series + }); + elSeries.add(elG.g); + + if (w.config.plotOptions.radialBar.hollow.position === 'front') { + elG.g.add(elG.elHollow); + + if (elG.dataLabels) { + elG.g.add(elG.dataLabels); + } + } + + ret.add(elSeries); + return ret; + } + }, { + key: "drawTracks", + value: function drawTracks(opts) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var g = graphics.group(); + var filters = new Filters(this.ctx); + var fill = new Fill(this.ctx); + var strokeWidth = this.getStrokeWidth(opts); + opts.size = opts.size - strokeWidth / 2; + + for (var i = 0; i < opts.series.length; i++) { + var elRadialBarTrack = graphics.group({ + class: 'apexcharts-radialbar-track apexcharts-track' + }); + g.add(elRadialBarTrack); + elRadialBarTrack.attr({ + id: 'apexcharts-track-' + i, + rel: i + 1 + }); + opts.size = opts.size - strokeWidth - this.margin; + var trackConfig = w.config.plotOptions.radialBar.track; + var pathFill = fill.fillPath({ + seriesNumber: 0, + size: opts.size, + fillColors: Array.isArray(trackConfig.background) ? trackConfig.background[i] : trackConfig.background, + solid: true + }); + var startAngle = this.trackStartAngle; + var endAngle = this.trackEndAngle; + if (Math.abs(endAngle) + Math.abs(startAngle) >= 360) endAngle = 360 - Math.abs(this.startAngle) - 0.1; + var elPath = graphics.drawPath({ + d: '', + stroke: pathFill, + strokeWidth: strokeWidth * parseInt(trackConfig.strokeWidth) / 100, + fill: 'none', + strokeOpacity: trackConfig.opacity, + classes: 'apexcharts-radialbar-area' + }); + + if (trackConfig.dropShadow.enabled) { + var shadow = trackConfig.dropShadow; + filters.dropShadow(elPath, shadow); + } + + elRadialBarTrack.add(elPath); + elPath.attr('id', 'apexcharts-radialbarTrack-' + i); + var pie = new Pie(this.ctx); + pie.animatePaths(elPath, { + centerX: opts.centerX, + centerY: opts.centerY, + endAngle: endAngle, + startAngle: startAngle, + size: opts.size, + i: i, + totalItems: 2, + animBeginArr: 0, + dur: 0, + isTrack: true, + easing: w.globals.easing + }); + } + + return g; + } + }, { + key: "drawArcs", + value: function drawArcs(opts) { + var w = this.w; // size, donutSize, centerX, centerY, colorArr, lineColorArr, sectorAngleArr, series + + var graphics = new Graphics(this.ctx); + var fill = new Fill(this.ctx); + var filters = new Filters(this.ctx); + var g = graphics.group(); + var strokeWidth = this.getStrokeWidth(opts); + opts.size = opts.size - strokeWidth / 2; + var hollowFillID = w.config.plotOptions.radialBar.hollow.background; + var hollowSize = opts.size - strokeWidth * opts.series.length - this.margin * opts.series.length - strokeWidth * parseInt(w.config.plotOptions.radialBar.track.strokeWidth) / 100 / 2; + var hollowRadius = hollowSize - w.config.plotOptions.radialBar.hollow.margin; + + if (w.config.plotOptions.radialBar.hollow.image !== undefined) { + hollowFillID = this.drawHollowImage(opts, g, hollowSize, hollowFillID); + } + + var elHollow = this.drawHollow({ + size: hollowRadius, + centerX: opts.centerX, + centerY: opts.centerY, + fill: hollowFillID + }); + + if (w.config.plotOptions.radialBar.hollow.dropShadow.enabled) { + var shadow = w.config.plotOptions.radialBar.hollow.dropShadow; + filters.dropShadow(elHollow, shadow); + } + + var shown = 1; + + if (!this.radialDataLabels.total.show && w.globals.series.length > 1) { + shown = 0; + } + + var pie = new Pie(this.ctx); + var dataLabels = null; + + if (this.radialDataLabels.show) { + dataLabels = pie.renderInnerDataLabels(this.radialDataLabels, { + hollowSize: hollowSize, + centerX: opts.centerX, + centerY: opts.centerY, + opacity: shown + }); + } + + if (w.config.plotOptions.radialBar.hollow.position === 'back') { + g.add(elHollow); + + if (dataLabels) { + g.add(dataLabels); + } + } + + var reverseLoop = false; + + if (w.config.plotOptions.radialBar.inverseOrder) { + reverseLoop = true; + } + + for (var i = reverseLoop ? opts.series.length - 1 : 0; reverseLoop ? i >= 0 : i < opts.series.length; reverseLoop ? i-- : i++) { + var elRadialBarArc = graphics.group({ + class: "apexcharts-series apexcharts-radial-series ".concat(Utils.escapeString(w.globals.seriesNames[i])) + }); + g.add(elRadialBarArc); + elRadialBarArc.attr({ + id: 'apexcharts-series-' + i, + rel: i + 1 + }); + this.ctx.series.addCollapsedClassToSeries(elRadialBarArc, i); + opts.size = opts.size - strokeWidth - this.margin; + var pathFill = fill.fillPath({ + seriesNumber: i, + size: opts.size + }); + var startAngle = this.startAngle; + var prevStartAngle = void 0; + var totalAngle = Math.abs(w.config.plotOptions.radialBar.endAngle - w.config.plotOptions.radialBar.startAngle); // if data exceeds 100, make it 100 + + var dataValue = Utils.negToZero(opts.series[i] > 100 ? 100 : opts.series[i]) / 100; + var endAngle = Math.round(totalAngle * dataValue) + this.startAngle; + var prevEndAngle = void 0; + + if (w.globals.dataChanged) { + prevStartAngle = this.startAngle; + prevEndAngle = Math.round(totalAngle * Utils.negToZero(w.globals.previousPaths[i]) / 100) + prevStartAngle; + } + + var currFullAngle = Math.abs(endAngle) + Math.abs(startAngle); + + if (currFullAngle >= 360) { + endAngle = endAngle - 0.01; + } + + var prevFullAngle = Math.abs(prevEndAngle) + Math.abs(prevStartAngle); + + if (prevFullAngle >= 360) { + prevEndAngle = prevEndAngle - 0.01; + } + + var angle = endAngle - startAngle; + var dashArray = Array.isArray(w.config.stroke.dashArray) ? w.config.stroke.dashArray[i] : w.config.stroke.dashArray; + var elPath = graphics.drawPath({ + d: '', + stroke: pathFill, + strokeWidth: strokeWidth, + fill: 'none', + fillOpacity: w.config.fill.opacity, + classes: 'apexcharts-radialbar-area', + strokeDashArray: dashArray + }); + Graphics.setAttrs(elPath.node, { + 'data:angle': angle, + 'data:value': opts.series[i] + }); + + if (w.config.chart.dropShadow.enabled) { + var _shadow = w.config.chart.dropShadow; + filters.dropShadow(elPath, _shadow); + } + + this.addListeners(elPath, this.radialDataLabels); + + var _pie = new Pie(this.ctx); + + elRadialBarArc.add(elPath); + elPath.attr({ + id: 'apexcharts-radialArc-' + i, + index: 0, + j: i + }); + var dur = 0; + + if (_pie.initialAnim && !w.globals.resized && !w.globals.dataChanged) { + dur = (endAngle - startAngle) / 360 * w.config.chart.animations.speed; + this.animDur = dur / (opts.series.length * 1.2) + this.animDur; + this.animBeginArr.push(this.animDur); + } + + if (w.globals.dataChanged) { + dur = (endAngle - startAngle) / 360 * w.config.chart.animations.dynamicAnimation.speed; + this.animDur = dur / (opts.series.length * 1.2) + this.animDur; + this.animBeginArr.push(this.animDur); + } + + _pie.animatePaths(elPath, { + centerX: opts.centerX, + centerY: opts.centerY, + endAngle: endAngle, + startAngle: startAngle, + prevEndAngle: prevEndAngle, + prevStartAngle: prevStartAngle, + size: opts.size, + i: i, + totalItems: 2, + animBeginArr: this.animBeginArr, + dur: dur, + shouldSetPrevPaths: true, + easing: w.globals.easing + }); + } + + return { + g: g, + elHollow: elHollow, + dataLabels: dataLabels + }; + } + }, { + key: "drawHollow", + value: function drawHollow(opts) { + var graphics = new Graphics(this.ctx); + var circle = graphics.drawCircle(opts.size * 2); + circle.attr({ + class: 'apexcharts-radialbar-hollow', + cx: opts.centerX, + cy: opts.centerY, + r: opts.size, + fill: opts.fill + }); + return circle; + } + }, { + key: "drawHollowImage", + value: function drawHollowImage(opts, g, hollowSize, hollowFillID) { + var w = this.w; + var fill = new Fill(this.ctx); + var randID = (Math.random() + 1).toString(36).substring(4); + var hollowFillImg = w.config.plotOptions.radialBar.hollow.image; + + if (w.config.plotOptions.radialBar.hollow.imageClipped) { + fill.clippedImgArea({ + width: hollowSize, + height: hollowSize, + image: hollowFillImg, + patternID: "pattern".concat(w.globals.cuid).concat(randID) + }); + hollowFillID = "url(#pattern".concat(w.globals.cuid).concat(randID, ")"); + } else { + var imgWidth = w.config.plotOptions.radialBar.hollow.imageWidth; + var imgHeight = w.config.plotOptions.radialBar.hollow.imageHeight; + + if (imgWidth === undefined && imgHeight === undefined) { + var image = w.globals.dom.Paper.image(hollowFillImg).loaded(function (loader) { + this.move(opts.centerX - loader.width / 2 + w.config.plotOptions.radialBar.hollow.imageOffsetX, opts.centerY - loader.height / 2 + w.config.plotOptions.radialBar.hollow.imageOffsetY); + }); + g.add(image); + } else { + var _image = w.globals.dom.Paper.image(hollowFillImg).loaded(function (loader) { + this.move(opts.centerX - imgWidth / 2 + w.config.plotOptions.radialBar.hollow.imageOffsetX, opts.centerY - imgHeight / 2 + w.config.plotOptions.radialBar.hollow.imageOffsetY); + this.size(imgWidth, imgHeight); + }); + + g.add(_image); + } + } + + return hollowFillID; + } + }, { + key: "getStrokeWidth", + value: function getStrokeWidth(opts) { + var w = this.w; + return opts.size * (100 - parseInt(w.config.plotOptions.radialBar.hollow.size)) / 100 / (opts.series.length + 1) - this.margin; + } + }]); + + return Radial; +}(Pie); + +/** + * ApexCharts Line Class responsible for drawing Line / Area Charts. + * This class is also responsible for generating values for Bubble/Scatter charts, so need to rename it to Axis Charts to avoid confusions + * @module Line + **/ + +var Line = +/*#__PURE__*/ +function () { + function Line(ctx, xyRatios, isPointsChart) { + _classCallCheck(this, Line); + + this.ctx = ctx; + this.w = ctx.w; + this.xyRatios = xyRatios; + this.pointsChart = !(this.w.config.chart.type !== 'bubble' && this.w.config.chart.type !== 'scatter') || isPointsChart; + this.scatter = new Scatter(this.ctx); + this.noNegatives = this.w.globals.minX === Number.MAX_VALUE; + this.yaxisIndex = 0; + } + + _createClass(Line, [{ + key: "draw", + value: function draw(series, ptype, seriesIndex) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var fill = new Fill(this.ctx); + var type = w.globals.comboCharts ? ptype : w.config.chart.type; + var ret = graphics.group({ + class: "apexcharts-".concat(type, "-series apexcharts-plot-series") + }); + var coreUtils = new CoreUtils(this.ctx, w); + series = coreUtils.getLogSeries(series); + var yRatio = this.xyRatios.yRatio; + yRatio = coreUtils.getLogYRatios(yRatio); + var zRatio = this.xyRatios.zRatio; + var xRatio = this.xyRatios.xRatio; + var baseLineY = this.xyRatios.baseLineY; // push all series in an array, so we can draw in reverse order (for stacked charts) + + var allSeries = []; + var prevSeriesY = []; + var categoryAxisCorrection = 0; + + for (var i = 0; i < series.length; i++) { + // width divided into equal parts + var xDivision = w.globals.gridWidth / w.globals.dataPoints; + var realIndex = w.globals.comboCharts ? seriesIndex[i] : i; + + if (yRatio.length > 1) { + this.yaxisIndex = realIndex; + } + + this.isReversed = w.config.yaxis[this.yaxisIndex] && w.config.yaxis[this.yaxisIndex].reversed; + var yArrj = []; // hold y values of current iterating series + + var xArrj = []; // hold x values of current iterating series + // zeroY is the 0 value in y series which can be used in negative charts + + var zeroY = w.globals.gridHeight - baseLineY[this.yaxisIndex] - (this.isReversed ? w.globals.gridHeight : 0) + (this.isReversed ? baseLineY[this.yaxisIndex] * 2 : 0); + var areaBottomY = zeroY; + + if (zeroY > w.globals.gridHeight) { + areaBottomY = w.globals.gridHeight; + } + + categoryAxisCorrection = xDivision / 2; + var x = w.globals.padHorizontal + categoryAxisCorrection; + var y = 1; + + if (w.globals.isXNumeric) { + x = (w.globals.seriesX[realIndex][0] - w.globals.minX) / xRatio; + } + + xArrj.push(x); + var linePath = void 0, + areaPath = void 0, + pathFromLine = void 0, + pathFromArea = void 0; + var linePaths = []; + var areaPaths = []; // el to which series will be drawn + + var elSeries = graphics.group({ + class: "apexcharts-series ".concat(Utils.escapeString(w.globals.seriesNames[realIndex])) + }); // points + + var elPointsMain = graphics.group({ + class: 'apexcharts-series-markers-wrap' + }); // eldatalabels + + var elDataLabelsWrap = graphics.group({ + class: 'apexcharts-datalabels' + }); + this.ctx.series.addCollapsedClassToSeries(elSeries, realIndex); + var longestSeries = series[i].length === w.globals.dataPoints; + elSeries.attr({ + 'data:longestSeries': longestSeries, + rel: i + 1, + 'data:realIndex': realIndex + }); + this.appendPathFrom = true; + var pX = x; + var pY = void 0; + var prevX = pX; + var prevY = zeroY; // w.globals.svgHeight; + + var lineYPosition = 0; // the first value in the current series is not null or undefined + + var firstPrevY = this.determineFirstPrevY({ + i: i, + series: series, + yRatio: yRatio[this.yaxisIndex], + zeroY: zeroY, + prevY: prevY, + prevSeriesY: prevSeriesY, + lineYPosition: lineYPosition + }); + prevY = firstPrevY.prevY; + yArrj.push(prevY); + pY = prevY; + + if (series[i][0] === null) { + // when the first value itself is null, we need to move the pointer to a location where a null value is not found + for (var s = 0; s < series[i].length; s++) { + if (series[i][s] !== null) { + prevX = xDivision * s; + prevY = zeroY - series[i][s] / yRatio[this.yaxisIndex]; + linePath = graphics.move(prevX, prevY); + areaPath = graphics.move(prevX, areaBottomY); + break; + } + } + } else { + linePath = graphics.move(prevX, prevY); + areaPath = graphics.move(prevX, areaBottomY) + graphics.line(prevX, prevY); + } + + pathFromLine = graphics.move(-1, zeroY) + graphics.line(-1, zeroY); + pathFromArea = graphics.move(-1, zeroY) + graphics.line(-1, zeroY); + + if (w.globals.previousPaths.length > 0) { + var pathFrom = this.checkPreviousPaths({ + pathFromLine: pathFromLine, + pathFromArea: pathFromArea, + realIndex: realIndex + }); + pathFromLine = pathFrom.pathFromLine; + pathFromArea = pathFrom.pathFromArea; + } + + var iterations = w.globals.dataPoints > 1 ? w.globals.dataPoints - 1 : w.globals.dataPoints; + + for (var j = 0; j < iterations; j++) { + if (w.globals.isXNumeric) { + var sX = w.globals.seriesX[realIndex][j + 1]; + + if (typeof w.globals.seriesX[realIndex][j + 1] === 'undefined') { + /* fix #374 */ + sX = w.globals.seriesX[realIndex][iterations - 1]; + } + + x = (sX - w.globals.minX) / xRatio; + } else { + x = x + xDivision; + } + + var minY = Utils.isNumber(w.globals.minYArr[realIndex]) ? w.globals.minYArr[realIndex] : w.globals.minY; + + if (w.config.chart.stacked) { + if (i > 0 && w.globals.collapsedSeries.length < w.config.series.length - 1) { + lineYPosition = prevSeriesY[i - 1][j + 1]; + } else { + // the first series will not have prevY values + lineYPosition = zeroY; + } + + if (typeof series[i][j + 1] === 'undefined' || series[i][j + 1] === null) { + y = lineYPosition - minY / yRatio[this.yaxisIndex] + (this.isReversed ? minY / yRatio[this.yaxisIndex] : 0) * 2; + } else { + y = lineYPosition - series[i][j + 1] / yRatio[this.yaxisIndex] + (this.isReversed ? series[i][j + 1] / yRatio[this.yaxisIndex] : 0) * 2; + } + } else { + if (typeof series[i][j + 1] === 'undefined' || series[i][j + 1] === null) { + y = zeroY - minY / yRatio[this.yaxisIndex] + (this.isReversed ? minY / yRatio[this.yaxisIndex] : 0) * 2; + } else { + y = zeroY - series[i][j + 1] / yRatio[this.yaxisIndex] + (this.isReversed ? series[i][j + 1] / yRatio[this.yaxisIndex] : 0) * 2; + } + } // push current X + + + xArrj.push(x); // push current Y that will be used as next series's bottom position + + yArrj.push(y); + var calculatedPaths = this.createPaths({ + series: series, + i: i, + j: j, + x: x, + y: y, + xDivision: xDivision, + pX: pX, + pY: pY, + areaBottomY: areaBottomY, + linePath: linePath, + areaPath: areaPath, + linePaths: linePaths, + areaPaths: areaPaths + }); + areaPaths = calculatedPaths.areaPaths; + linePaths = calculatedPaths.linePaths; + pX = calculatedPaths.pX; + pY = calculatedPaths.pY; + areaPath = calculatedPaths.areaPath; + linePath = calculatedPaths.linePath; + + if (this.appendPathFrom) { + pathFromLine = pathFromLine + graphics.line(x, zeroY); + pathFromArea = pathFromArea + graphics.line(x, zeroY); + } + + var pointsPos = this.calculatePoints({ + series: series, + x: x, + y: y, + realIndex: realIndex, + i: i, + j: j, + prevY: prevY, + categoryAxisCorrection: categoryAxisCorrection, + xRatio: xRatio + }); + + if (!this.pointsChart) { + var markers = new Markers(this.ctx); + + if (w.globals.dataPoints > 1) { + elPointsMain.node.classList.add('hidden'); + } + + var elPointsWrap = markers.plotChartMarkers(pointsPos, realIndex, j + 1); + + if (elPointsWrap !== null) { + elPointsMain.add(elPointsWrap); + } + } else { + // scatter / bubble chart points creation + this.scatter.draw(elSeries, j, { + realIndex: realIndex, + pointsPos: pointsPos, + zRatio: zRatio, + elParent: elPointsMain + }); + } + + var dataLabels = new DataLabels(this.ctx); + var drawnLabels = dataLabels.drawDataLabel(pointsPos, realIndex, j + 1); + + if (drawnLabels !== null) { + elDataLabelsWrap.add(drawnLabels); + } + } // push all current y values array to main PrevY Array + + + prevSeriesY.push(yArrj); // push all x val arrays into main xArr + + w.globals.seriesXvalues[realIndex] = xArrj; + w.globals.seriesYvalues[realIndex] = yArrj; // these elements will be shown after area path animation completes + + if (!this.pointsChart) { + w.globals.delayedElements.push({ + el: elPointsMain.node, + index: realIndex + }); + } + + var defaultRenderedPathOptions = { + i: i, + realIndex: realIndex, + animationDelay: i, + initialSpeed: w.config.chart.animations.speed, + dataChangeSpeed: w.config.chart.animations.dynamicAnimation.speed, + className: "apexcharts-".concat(type), + id: "apexcharts-".concat(type) + }; + + if (w.config.stroke.show && !this.pointsChart) { + var lineFill = null; + + if (type === 'line') { + // fillable lines only for lineChart + lineFill = fill.fillPath({ + seriesNumber: realIndex, + i: i + }); + } else { + lineFill = w.globals.stroke.colors[realIndex]; + } + + for (var p = 0; p < linePaths.length; p++) { + var renderedPath = graphics.renderPaths(_objectSpread({}, defaultRenderedPathOptions, { + pathFrom: pathFromLine, + pathTo: linePaths[p], + stroke: lineFill, + strokeWidth: Array.isArray(w.config.stroke.width) ? w.config.stroke.width[realIndex] : w.config.stroke.width, + strokeLineCap: w.config.stroke.lineCap, + fill: 'none' + })); + elSeries.add(renderedPath); + } + } // we have drawn the lines, now if it is area chart, we need to fill paths + + + if (type === 'area') { + var pathFill = fill.fillPath({ + seriesNumber: realIndex + }); + + for (var _p = 0; _p < areaPaths.length; _p++) { + var _renderedPath = graphics.renderPaths(_objectSpread({}, defaultRenderedPathOptions, { + pathFrom: pathFromArea, + pathTo: areaPaths[_p], + stroke: 'none', + strokeWidth: 0, + strokeLineCap: null, + fill: pathFill + })); + + elSeries.add(_renderedPath); + } + } + + elSeries.add(elPointsMain); + elSeries.add(elDataLabelsWrap); + allSeries.push(elSeries); + } + + for (var _s = allSeries.length; _s > 0; _s--) { + ret.add(allSeries[_s - 1]); + } + + return ret; + } + }, { + key: "createPaths", + value: function createPaths(_ref) { + var series = _ref.series, + i = _ref.i, + j = _ref.j, + x = _ref.x, + y = _ref.y, + pX = _ref.pX, + pY = _ref.pY, + xDivision = _ref.xDivision, + areaBottomY = _ref.areaBottomY, + linePath = _ref.linePath, + areaPath = _ref.areaPath, + linePaths = _ref.linePaths, + areaPaths = _ref.areaPaths; + var w = this.w; + var graphics = new Graphics(this.ctx); + var curve = Array.isArray(w.config.stroke.curve) ? w.config.stroke.curve[i] : w.config.stroke.curve; // logic of smooth curve derived from chartist + // CREDITS: https://gionkunz.github.io/chartist-js/ + + if (curve === 'smooth') { + var length = (x - pX) * 0.35; + + if (w.globals.hasNullValues) { + if (series[i][j] !== null) { + if (series[i][j + 1] !== null) { + linePath = graphics.move(pX, pY) + graphics.curve(pX + length, pY, x - length, y, x + 1, y); + areaPath = graphics.move(pX + 1, pY) + graphics.curve(pX + length, pY, x - length, y, x + 1, y) + graphics.line(x, areaBottomY) + graphics.line(pX, areaBottomY) + 'z'; + } else { + linePath = graphics.move(pX, pY); + areaPath = graphics.move(pX, pY) + 'z'; + } + } + + linePaths.push(linePath); + areaPaths.push(areaPath); + } else { + linePath = linePath + graphics.curve(pX + length, pY, x - length, y, x, y); + areaPath = areaPath + graphics.curve(pX + length, pY, x - length, y, x, y); + } + + pX = x; + pY = y; + + if (j === series[i].length - 2) { + // last loop, close path + areaPath = areaPath + graphics.curve(pX, pY, x, y, x, areaBottomY) + graphics.move(x, y) + 'z'; + + if (!w.globals.hasNullValues) { + linePaths.push(linePath); + areaPaths.push(areaPath); + } + } + } else { + if (series[i][j + 1] === null) { + linePath = linePath + graphics.move(x, y); + areaPath = areaPath + graphics.line(x - xDivision, areaBottomY) + graphics.move(x, y); + } + + if (series[i][j] === null) { + linePath = linePath + graphics.move(x, y); + areaPath = areaPath + graphics.move(x, areaBottomY); + } + + if (curve === 'stepline') { + linePath = linePath + graphics.line(x, null, 'H') + graphics.line(null, y, 'V'); + areaPath = areaPath + graphics.line(x, null, 'H') + graphics.line(null, y, 'V'); + } else if (curve === 'straight') { + linePath = linePath + graphics.line(x, y); + areaPath = areaPath + graphics.line(x, y); + } + + if (j === series[i].length - 2) { + // last loop, close path + areaPath = areaPath + graphics.line(x, areaBottomY) + graphics.move(x, y) + 'z'; + linePaths.push(linePath); + areaPaths.push(areaPath); + } + } + + return { + linePaths: linePaths, + areaPaths: areaPaths, + pX: pX, + pY: pY, + linePath: linePath, + areaPath: areaPath + }; + } + }, { + key: "calculatePoints", + value: function calculatePoints(_ref2) { + var series = _ref2.series, + realIndex = _ref2.realIndex, + x = _ref2.x, + y = _ref2.y, + i = _ref2.i, + j = _ref2.j, + prevY = _ref2.prevY, + categoryAxisCorrection = _ref2.categoryAxisCorrection, + xRatio = _ref2.xRatio; + var w = this.w; + var ptX = []; + var ptY = []; + + if (j === 0) { + var xPT1st = categoryAxisCorrection + w.config.markers.offsetX; // the first point for line series + // we need to check whether it's not a time series, because a time series may + // start from the middle of the x axis + + if (w.globals.isXNumeric) { + xPT1st = (w.globals.seriesX[realIndex][0] - w.globals.minX) / xRatio + w.config.markers.offsetX; + } // push 2 points for the first data values + + + ptX.push(xPT1st); + ptY.push(Utils.isNumber(series[i][0]) ? prevY + w.config.markers.offsetY : null); + ptX.push(x + w.config.markers.offsetX); + ptY.push(Utils.isNumber(series[i][j + 1]) ? y + w.config.markers.offsetY : null); + } else { + ptX.push(x + w.config.markers.offsetX); + ptY.push(Utils.isNumber(series[i][j + 1]) ? y + w.config.markers.offsetY : null); + } + + var pointsPos = { + x: ptX, + y: ptY + }; + return pointsPos; + } + }, { + key: "checkPreviousPaths", + value: function checkPreviousPaths(_ref3) { + var pathFromLine = _ref3.pathFromLine, + pathFromArea = _ref3.pathFromArea, + realIndex = _ref3.realIndex; + var w = this.w; + + for (var pp = 0; pp < w.globals.previousPaths.length; pp++) { + var gpp = w.globals.previousPaths[pp]; + + if ((gpp.type === 'line' || gpp.type === 'area') && gpp.paths.length > 0 && parseInt(gpp.realIndex) === parseInt(realIndex)) { + if (gpp.type === 'line') { + this.appendPathFrom = false; + pathFromLine = w.globals.previousPaths[pp].paths[0].d; + } else if (gpp.type === 'area') { + this.appendPathFrom = false; + + if (w.config.stroke.show) { + pathFromLine = w.globals.previousPaths[pp].paths[0].d; + pathFromArea = w.globals.previousPaths[pp].paths[1].d; + } else { + pathFromArea = w.globals.previousPaths[pp].paths[0].d; + } + } + } + } + + return { + pathFromLine: pathFromLine, + pathFromArea: pathFromArea + }; + } + }, { + key: "determineFirstPrevY", + value: function determineFirstPrevY(_ref4) { + var i = _ref4.i, + series = _ref4.series, + yRatio = _ref4.yRatio, + zeroY = _ref4.zeroY, + prevY = _ref4.prevY, + prevSeriesY = _ref4.prevSeriesY, + lineYPosition = _ref4.lineYPosition; + var w = this.w; + + if (typeof series[i][0] !== 'undefined') { + if (w.config.chart.stacked) { + if (i > 0) { + // 1st y value of previous series + lineYPosition = prevSeriesY[i - 1][0]; + } else { + // the first series will not have prevY values + lineYPosition = zeroY; + } + + prevY = lineYPosition - series[i][0] / yRatio + (this.isReversed ? series[i][0] / yRatio : 0) * 2; + } else { + prevY = zeroY - series[i][0] / yRatio + (this.isReversed ? series[i][0] / yRatio : 0) * 2; + } + } else { + // the first value in the current series is null + if (w.config.chart.stacked && i > 0 && typeof series[i][0] === 'undefined') { + // check for undefined value (undefined value will occur when we clear the series while user clicks on legend to hide serieses) + for (var s = i - 1; s >= 0; s--) { + // for loop to get to 1st previous value until we get it + if (series[s][0] !== null && typeof series[s][0] !== 'undefined') { + lineYPosition = prevSeriesY[s][0]; + prevY = lineYPosition; + break; + } + } + } + } + + return { + prevY: prevY, + lineYPosition: lineYPosition + }; + } + }]); + + return Line; +}(); + +/** + * ApexCharts YAxis Class for drawing Y-Axis. + * + * @module YAxis + **/ + +var YAxis = +/*#__PURE__*/ +function () { + function YAxis(ctx) { + _classCallCheck(this, YAxis); + + this.ctx = ctx; + this.w = ctx.w; + this.xaxisFontSize = this.w.config.xaxis.labels.style.fontSize; + this.axisFontFamily = this.w.config.xaxis.labels.style.fontFamily; + this.isBarHorizontal = !!(this.w.config.chart.type === 'bar' && this.w.config.plotOptions.bar.horizontal); + this.xaxisForeColors = this.w.config.xaxis.labels.style.colors; + this.xAxisoffX = 0; + + if (this.w.config.xaxis.position === 'bottom') { + this.xAxisoffX = this.w.globals.gridHeight; + } + } + + _createClass(YAxis, [{ + key: "drawYaxis", + value: function drawYaxis(realIndex) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var yaxisFontSize = w.config.yaxis[realIndex].labels.style.fontSize; + var yaxisFontFamily = w.config.yaxis[realIndex].labels.style.fontFamily; + var elYaxis = graphics.group({ + class: 'apexcharts-yaxis', + rel: realIndex, + transform: 'translate(' + w.globals.translateYAxisX[realIndex] + ', 0)' + }); + + if (!w.config.yaxis[realIndex].show) { + return elYaxis; + } + + var elYaxisTexts = graphics.group({ + class: 'apexcharts-yaxis-texts-g' + }); + elYaxis.add(elYaxisTexts); + var tickAmount = w.globals.yAxisScale[realIndex].result.length - 1; // labelsDivider is simply svg height/number of ticks + + var labelsDivider = w.globals.gridHeight / tickAmount + 0.1; // initial label position = 0; + + var l = w.globals.translateY; + var lbFormatter = w.globals.yLabelFormatters[realIndex]; + var labels = w.globals.yAxisScale[realIndex].result.slice(); + + if (w.config.yaxis[realIndex].reversed) { + labels.reverse(); + } + + if (w.config.yaxis[realIndex].labels.show) { + for (var i = tickAmount; i >= 0; i--) { + var val = labels[i]; + val = lbFormatter(val, i); + var xPad = w.config.yaxis[realIndex].labels.padding; + + if (w.config.yaxis[realIndex].opposite && w.config.yaxis.length !== 0) { + xPad = xPad * -1; + } + + var label = graphics.drawText({ + x: xPad, + y: l + tickAmount / 10 + w.config.yaxis[realIndex].labels.offsetY + 1, + text: val, + textAnchor: w.config.yaxis[realIndex].opposite ? 'start' : 'end', + fontSize: yaxisFontSize, + fontFamily: yaxisFontFamily, + foreColor: w.config.yaxis[realIndex].labels.style.color, + cssClass: 'apexcharts-yaxis-label ' + w.config.yaxis[realIndex].labels.style.cssClass + }); + elYaxisTexts.add(label); + var labelRotatingCenter = graphics.rotateAroundCenter(label.node); + + if (w.config.yaxis[realIndex].labels.rotate !== 0) { + label.node.setAttribute('transform', "rotate(".concat(w.config.yaxis[realIndex].labels.rotate, " ").concat(labelRotatingCenter.x, " ").concat(labelRotatingCenter.y, ")")); + } + + l = l + labelsDivider; + } + } + + if (w.config.yaxis[realIndex].title.text !== undefined) { + var elYaxisTitle = graphics.group({ + class: 'apexcharts-yaxis-title' + }); + var x = 0; + + if (w.config.yaxis[realIndex].opposite) { + x = w.globals.translateYAxisX[realIndex]; + } + + var elYAxisTitleText = graphics.drawText({ + x: x, + y: w.globals.gridHeight / 2 + w.globals.translateY, + text: w.config.yaxis[realIndex].title.text, + textAnchor: 'end', + foreColor: w.config.yaxis[realIndex].title.style.color, + fontSize: w.config.yaxis[realIndex].title.style.fontSize, + fontFamily: w.config.yaxis[realIndex].title.style.fontFamily, + cssClass: 'apexcharts-yaxis-title-text ' + w.config.yaxis[realIndex].title.style.cssClass + }); + elYaxisTitle.add(elYAxisTitleText); + elYaxis.add(elYaxisTitle); + } + + var axisBorder = w.config.yaxis[realIndex].axisBorder; + + if (axisBorder.show) { + var _x = 31 + axisBorder.offsetX; + + if (w.config.yaxis[realIndex].opposite) { + _x = -31 - axisBorder.offsetX; + } + + var elVerticalLine = graphics.drawLine(_x, w.globals.translateY + axisBorder.offsetY - 2, _x, w.globals.gridHeight + w.globals.translateY + axisBorder.offsetY + 2, axisBorder.color); + elYaxis.add(elVerticalLine); + this.drawAxisTicks(_x, tickAmount, axisBorder, w.config.yaxis[realIndex].axisTicks, realIndex, labelsDivider, elYaxis); + } + + return elYaxis; + } // This actually becomes horizonal axis (for bar charts) + + }, { + key: "drawYaxisInversed", + value: function drawYaxisInversed(realIndex) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var elXaxis = graphics.group({ + class: 'apexcharts-xaxis apexcharts-yaxis-inversed' + }); + var elXaxisTexts = graphics.group({ + class: 'apexcharts-xaxis-texts-g', + transform: "translate(".concat(w.globals.translateXAxisX, ", ").concat(w.globals.translateXAxisY, ")") + }); + elXaxis.add(elXaxisTexts); + var tickAmount = w.globals.yAxisScale[realIndex].result.length - 1; // labelsDivider is simply svg width/number of ticks + + var labelsDivider = w.globals.gridWidth / tickAmount + 0.1; // initial label position; + + var l = labelsDivider + w.config.xaxis.labels.offsetX; + var lbFormatter = w.globals.xLabelFormatter; + var labels = w.globals.yAxisScale[realIndex].result.slice(); + + if (w.config.yaxis[realIndex].reversed) { + labels.reverse(); + } + + if (w.config.xaxis.labels.show) { + for (var i = tickAmount; i >= 0; i--) { + var val = labels[i]; + val = lbFormatter(val, i); + var elTick = graphics.drawText({ + x: w.globals.gridWidth + w.globals.padHorizontal - (l - labelsDivider + w.config.xaxis.labels.offsetX), + y: this.xAxisoffX + w.config.xaxis.labels.offsetY + 30, + text: '', + textAnchor: 'middle', + foreColor: Array.isArray(this.xaxisForeColors) ? this.xaxisForeColors[realIndex] : this.xaxisForeColors, + fontSize: this.xaxisFontSize, + fontFamily: this.xaxisFontFamily, + cssClass: 'apexcharts-xaxis-label ' + w.config.xaxis.labels.style.cssClass + }); + elXaxisTexts.add(elTick); + elTick.tspan(val); + var elTooltipTitle = document.createElementNS(w.globals.SVGNS, 'title'); + elTooltipTitle.textContent = val; + elTick.node.appendChild(elTooltipTitle); + l = l + labelsDivider; + } + } + + if (w.config.xaxis.title.text !== undefined) { + var elYaxisTitle = graphics.group({ + class: 'apexcharts-xaxis-title apexcharts-yaxis-title-inversed' + }); + var elYAxisTitleText = graphics.drawText({ + x: w.globals.gridWidth / 2, + y: this.xAxisoffX + parseInt(this.xaxisFontSize) + parseInt(w.config.xaxis.title.style.fontSize) + 20, + text: w.config.xaxis.title.text, + textAnchor: 'middle', + fontSize: w.config.xaxis.title.style.fontSize, + fontFamily: w.config.xaxis.title.style.fontFamily, + cssClass: 'apexcharts-xaxis-title-text ' + w.config.xaxis.title.style.cssClass + }); + elYaxisTitle.add(elYAxisTitleText); + elXaxis.add(elYaxisTitle); + } + + var axisBorder = w.config.yaxis[realIndex].axisBorder; + + if (axisBorder.show) { + var elVerticalLine = graphics.drawLine(w.globals.padHorizontal + axisBorder.offsetX, 1 + axisBorder.offsetY, w.globals.padHorizontal + axisBorder.offsetX, w.globals.gridHeight + axisBorder.offsetY, axisBorder.color); + elXaxis.add(elVerticalLine); + } + + return elXaxis; + } + }, { + key: "drawAxisTicks", + value: function drawAxisTicks(x, tickAmount, axisBorder, axisTicks, realIndex, labelsDivider, elYaxis) { + var w = this.w; + var graphics = new Graphics(this.ctx); // initial label position = 0; + + var t = w.globals.translateY; + + if (axisTicks.show) { + if (w.config.yaxis[realIndex].opposite === true) x = x + axisTicks.width; + + for (var i = tickAmount; i >= 0; i--) { + var tY = t + tickAmount / 10 + w.config.yaxis[realIndex].labels.offsetY - 1; + + if (this.isBarHorizontal) { + tY = labelsDivider * i; + } + + var elTick = graphics.drawLine(x + axisBorder.offsetX - axisTicks.width + axisTicks.offsetX, tY + axisTicks.offsetY, x + axisBorder.offsetX + axisTicks.offsetX, tY + axisTicks.offsetY, axisBorder.color); + elYaxis.add(elTick); + t = t + labelsDivider; + } + } + } + }, { + key: "yAxisTitleRotate", + value: function yAxisTitleRotate(realIndex, yAxisOpposite) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var yAxisLabelsCoord = { + width: 0, + height: 0 + }; + var yAxisTitleCoord = { + width: 0, + height: 0 + }; + var elYAxisLabelsWrap = w.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(realIndex, "'] .apexcharts-yaxis-texts-g")); + + if (elYAxisLabelsWrap !== null) { + yAxisLabelsCoord = elYAxisLabelsWrap.getBoundingClientRect(); + } + + var yAxisTitle = w.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(realIndex, "'] .apexcharts-yaxis-title text")); + + if (yAxisTitle !== null) { + yAxisTitleCoord = yAxisTitle.getBoundingClientRect(); + } + + if (yAxisTitle !== null) { + var x = this.xPaddingForYAxisTitle(realIndex, yAxisLabelsCoord, yAxisTitleCoord, yAxisOpposite); + yAxisTitle.setAttribute('x', x.xPos - (yAxisOpposite ? 10 : 0)); + } + + if (yAxisTitle !== null) { + var titleRotatingCenter = graphics.rotateAroundCenter(yAxisTitle); + + if (!yAxisOpposite) { + yAxisTitle.setAttribute('transform', "rotate(-".concat(w.config.yaxis[realIndex].title.rotate, " ").concat(titleRotatingCenter.x, " ").concat(titleRotatingCenter.y, ")")); + } else { + yAxisTitle.setAttribute('transform', "rotate(".concat(w.config.yaxis[realIndex].title.rotate, " ").concat(titleRotatingCenter.x, " ").concat(titleRotatingCenter.y, ")")); + } + } + } + }, { + key: "xPaddingForYAxisTitle", + value: function xPaddingForYAxisTitle(realIndex, yAxisLabelsCoord, yAxisTitleCoord, yAxisOpposite) { + var w = this.w; + var oppositeAxisCount = 0; + var x = 0; + var padd = 10; + + if (w.config.yaxis[realIndex].title.text === undefined || realIndex < 0) { + return { + xPos: x, + padd: 0 + }; + } + + if (yAxisOpposite) { + x = yAxisLabelsCoord.width + w.config.yaxis[realIndex].title.offsetX + yAxisTitleCoord.width / 2 + padd / 2; + oppositeAxisCount += 1; + + if (oppositeAxisCount === 0) { + x = x - padd / 2; + } + } else { + x = yAxisLabelsCoord.width * -1 + w.config.yaxis[realIndex].title.offsetX + padd / 2 + yAxisTitleCoord.width / 2; + + if (this.isBarHorizontal) { + padd = 25; + x = yAxisLabelsCoord.width * -1 - w.config.yaxis[realIndex].title.offsetX - padd; + } + } + + return { + xPos: x, + padd: padd + }; + } // sets the x position of the y-axis by counting the labels width, title width and any offset + + }, { + key: "setYAxisXPosition", + value: function setYAxisXPosition(yaxisLabelCoords, yTitleCoords) { + var _this = this; + + var w = this.w; + var xLeft = 0; + var xRight = 0; + var leftOffsetX = 21; + var rightOffsetX = 1; + + if (w.config.yaxis.length > 1) { + this.multipleYs = true; + } + + w.config.yaxis.map(function (yaxe, index) { + var shouldNotDrawAxis = w.globals.ignoreYAxisIndexes.indexOf(index) > -1 || !yaxe.show || yaxe.floating || yaxisLabelCoords[index].width === 0; + var axisWidth = yaxisLabelCoords[index].width + yTitleCoords[index].width; + + if (!yaxe.opposite) { + xLeft = w.globals.translateX - leftOffsetX; + + if (!shouldNotDrawAxis) { + leftOffsetX = leftOffsetX + axisWidth + 20; + } + + w.globals.translateYAxisX[index] = xLeft + yaxe.labels.offsetX; + } else { + if (_this.isBarHorizontal) { + xRight = w.globals.gridWidth + w.globals.translateX - 1; + w.globals.translateYAxisX[index] = xRight - yaxe.labels.offsetX; + } else { + xRight = w.globals.gridWidth + w.globals.translateX + rightOffsetX; + + if (!shouldNotDrawAxis) { + rightOffsetX = rightOffsetX + axisWidth + 20; + } + + w.globals.translateYAxisX[index] = xRight - yaxe.labels.offsetX + 20; + } + } + }); + } + }]); + + return YAxis; +}(); + +/** + * ApexCharts Formatter Class for setting value formatters for axes as well as tooltips. + * + * @module Formatters + **/ + +var Formatters = +/*#__PURE__*/ +function () { + function Formatters(ctx) { + _classCallCheck(this, Formatters); + + this.ctx = ctx; + this.w = ctx.w; + this.tooltipKeyFormat = 'dd MMM'; + } + + _createClass(Formatters, [{ + key: "xLabelFormat", + value: function xLabelFormat(fn, val) { + var w = this.w; + + if (w.config.xaxis.type === 'datetime') { + // if user has not specified a custom formatter, use the default tooltip.x.format + if (w.config.tooltip.x.formatter === undefined) { + var datetimeObj = new DateTime(this.ctx); + return datetimeObj.formatDate(new Date(val), w.config.tooltip.x.format, true, true); + } + } + + return fn(val); + } + }, { + key: "setLabelFormatters", + value: function setLabelFormatters() { + var w = this.w; + + w.globals.xLabelFormatter = function (val) { + return val; + }; + + w.globals.xaxisTooltipFormatter = function (val) { + return val; + }; + + w.globals.ttKeyFormatter = function (val) { + return val; + }; + + w.globals.ttZFormatter = function (val) { + return val; + }; + + w.globals.legendFormatter = function (val) { + return val; + }; + + if (typeof w.config.tooltip.x.formatter === 'function') { + w.globals.ttKeyFormatter = w.config.tooltip.x.formatter; + } + + if (typeof w.config.xaxis.tooltip.formatter === 'function') { + w.globals.xaxisTooltipFormatter = w.config.xaxis.tooltip.formatter; + } + + if (Array.isArray(w.config.tooltip.y)) { + w.globals.ttVal = w.config.tooltip.y; + } else { + if (w.config.tooltip.y.formatter !== undefined) { + w.globals.ttVal = w.config.tooltip.y; + } + } + + if (w.config.tooltip.z.formatter !== undefined) { + w.globals.ttZFormatter = w.config.tooltip.z.formatter; + } // legend formatter - if user wants to append any global values of series to legend text + + + if (w.config.legend.formatter !== undefined) { + w.globals.legendFormatter = w.config.legend.formatter; + } // formatter function will always overwrite format property + + + if (w.config.xaxis.labels.formatter !== undefined) { + w.globals.xLabelFormatter = w.config.xaxis.labels.formatter; + } else { + w.globals.xLabelFormatter = function (val) { + if (Utils.isNumber(val)) { + // numeric xaxis may have smaller range, so defaulting to 1 decimal + if (w.config.xaxis.type === 'numeric' && w.globals.dataPoints < 50) { + return val.toFixed(1); + } + + return val.toFixed(0); + } + + return val; + }; + } // formatter function will always overwrite format property + + + w.config.yaxis.forEach(function (yaxe, i) { + if (yaxe.labels.formatter !== undefined) { + w.globals.yLabelFormatters[i] = yaxe.labels.formatter; + } else { + w.globals.yLabelFormatters[i] = function (val) { + if (Utils.isNumber(val)) { + if (w.globals.yValueDecimal !== 0 || w.globals.maxY - w.globals.minY < 1) { + return val.toFixed(yaxe.decimalsInFloat); + } else { + return val.toFixed(0); + } + } + + return val; + }; + } + }); + return w.globals; + } + }, { + key: "heatmapLabelFormatters", + value: function heatmapLabelFormatters() { + var w = this.w; + + if (w.config.chart.type === 'heatmap') { + w.globals.yAxisScale[0].result = w.globals.seriesNames.slice(); // get the longest string from the labels array and also apply label formatter to it + + var longest = w.globals.seriesNames.reduce(function (a, b) { + return a.length > b.length ? a : b; + }, 0); + w.globals.yAxisScale[0].niceMax = longest; + w.globals.yAxisScale[0].niceMin = longest; + } + } + }]); + + return Formatters; +}(); + +/** + * ApexCharts XAxis Class for drawing X-Axis. + * + * @module XAxis + **/ + +var XAxis = +/*#__PURE__*/ +function () { + function XAxis(ctx) { + _classCallCheck(this, XAxis); + + this.ctx = ctx; + this.w = ctx.w; + var w = this.w; + this.xaxisLabels = w.globals.labels.slice(); + + if (w.globals.timelineLabels.length > 0) { + // timeline labels are there + this.xaxisLabels = w.globals.timelineLabels.slice(); + } + + this.drawnLabels = []; + + if (w.config.xaxis.position === 'top') { + this.offY = 0; + } else { + this.offY = w.globals.gridHeight + 1; + } + + this.offY = this.offY + w.config.xaxis.axisBorder.offsetY; + this.xaxisFontSize = w.config.xaxis.labels.style.fontSize; + this.xaxisFontFamily = w.config.xaxis.labels.style.fontFamily; + this.xaxisForeColors = w.config.xaxis.labels.style.colors; + this.xaxisBorderWidth = w.config.xaxis.axisBorder.width; + + if (this.xaxisBorderWidth.indexOf('%') > -1) { + this.xaxisBorderWidth = w.globals.gridWidth * parseInt(this.xaxisBorderWidth) / 100; + } else { + this.xaxisBorderWidth = parseInt(this.xaxisBorderWidth); + } + + this.xaxisBorderHeight = w.config.xaxis.axisBorder.height; // For bars, we will only consider single y xais, + // as we are not providing multiple yaxis for bar charts + + this.yaxis = w.config.yaxis[0]; + } + + _createClass(XAxis, [{ + key: "drawXaxis", + value: function drawXaxis() { + var w = this.w; + var graphics = new Graphics(this.ctx); + var elXaxis = graphics.group({ + class: 'apexcharts-xaxis', + transform: "translate(".concat(w.config.xaxis.offsetX, ", ").concat(w.config.xaxis.offsetY, ")") + }); + var elXaxisTexts = graphics.group({ + class: 'apexcharts-xaxis-texts-g', + transform: "translate(".concat(w.globals.translateXAxisX, ", ").concat(w.globals.translateXAxisY, ")") + }); + elXaxis.add(elXaxisTexts); + var colWidth; // initial x Position (keep adding column width in the loop) + + var xPos = w.globals.padHorizontal; + var labels = []; + + for (var i = 0; i < this.xaxisLabels.length; i++) { + labels.push(this.xaxisLabels[i]); + } + + if (w.globals.isXNumeric) { + colWidth = w.globals.gridWidth / (labels.length - 1); + xPos = xPos + colWidth / 2 + w.config.xaxis.labels.offsetX; + } else { + colWidth = w.globals.gridWidth / labels.length; + xPos = xPos + colWidth + w.config.xaxis.labels.offsetX; + } + + var xlbFormatter = w.globals.xLabelFormatter; + var customFormatter = w.config.xaxis.labels.formatter; + var labelsLen = labels.length; + + if (w.config.xaxis.labels.show) { + for (var _i = 0; _i <= labelsLen - 1; _i++) { + var rawLabel = typeof labels[_i] === 'undefined' ? '' : labels[_i]; + var label = void 0; + var xFormat = new Formatters(this.ctx); + label = xFormat.xLabelFormat(xlbFormatter, rawLabel); + + if (customFormatter !== undefined) { + label = customFormatter(rawLabel, this.xaxisLabels[_i], _i); + } + + var x = xPos - colWidth / 2 + w.config.xaxis.labels.offsetX; + + if (w.globals.timelineLabels.length > 0) { + x = w.globals.timelineLabels[_i].position; + label = w.globals.timelineLabels[_i].value; + } else { + if (w.config.xaxis.type === 'datetime' && customFormatter === undefined) { + label = ''; + } + } + + label = label.toString(); + + if (label.indexOf('NaN') === 0 || label === 'undefined' || label.toLowerCase().indexOf('invalid') === 0 || label.toLowerCase().indexOf('infinity') >= 0 || this.drawnLabels.indexOf(label) >= 0 && !w.config.xaxis.labels.showDuplicates) { + label = ''; + } + + this.drawnLabels.push(label); + var offsetYCorrection = 28; + + if (w.globals.rotateXLabels) { + offsetYCorrection = 22; + } + + var elTick = graphics.drawText({ + x: x, + y: this.offY + w.config.xaxis.labels.offsetY + offsetYCorrection, + text: '', + textAnchor: 'middle', + fontSize: this.xaxisFontSize, + fontFamily: this.xaxisFontFamily, + foreColor: Array.isArray(this.xaxisForeColors) ? this.xaxisForeColors[_i] : this.xaxisForeColors, + cssClass: 'apexcharts-xaxis-label ' + w.config.xaxis.labels.style.cssClass + }); + elXaxisTexts.add(elTick); + graphics.addTspan(elTick, label, this.xaxisFontFamily); + var elTooltipTitle = document.createElementNS(w.globals.SVGNS, 'title'); + elTooltipTitle.textContent = label; + elTick.node.appendChild(elTooltipTitle); + xPos = xPos + colWidth; + } + } + + if (w.config.xaxis.title.text !== undefined) { + var elXaxisTitle = graphics.group({ + class: 'apexcharts-xaxis-title' + }); + var elXAxisTitleText = graphics.drawText({ + x: w.globals.gridWidth / 2 + w.config.xaxis.title.offsetX, + y: this.offY - parseInt(this.xaxisFontSize) + w.globals.xAxisLabelsHeight + w.config.xaxis.title.offsetY, + text: w.config.xaxis.title.text, + textAnchor: 'middle', + fontSize: w.config.xaxis.title.style.fontSize, + fontFamily: w.config.xaxis.title.style.fontFamily, + foreColor: w.config.xaxis.title.style.color, + cssClass: 'apexcharts-xaxis-title-text ' + w.config.xaxis.title.style.cssClass + }); + elXaxisTitle.add(elXAxisTitleText); + elXaxis.add(elXaxisTitle); + } + + if (w.config.xaxis.axisBorder.show) { + var lineCorrection = 0; + + if (w.config.chart.type === 'bar' && w.globals.isXNumeric) { + lineCorrection = lineCorrection - 15; + } + + var elHorzLine = graphics.drawLine(w.globals.padHorizontal + lineCorrection + w.config.xaxis.axisBorder.offsetX, this.offY, this.xaxisBorderWidth, this.offY, w.config.xaxis.axisBorder.color, 0, this.xaxisBorderHeight); + elXaxis.add(elHorzLine); + } + + return elXaxis; + } // this actually becomes the vertical axis (for bar charts) + + }, { + key: "drawXaxisInversed", + value: function drawXaxisInversed(realIndex) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var translateYAxisX = w.config.yaxis[0].opposite ? w.globals.translateYAxisX[realIndex] : 0; + var elYaxis = graphics.group({ + class: 'apexcharts-yaxis apexcharts-xaxis-inversed', + rel: realIndex + }); + var elYaxisTexts = graphics.group({ + class: 'apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g', + transform: 'translate(' + translateYAxisX + ', 0)' + }); + elYaxis.add(elYaxisTexts); + var colHeight; // initial x Position (keep adding column width in the loop) + + var yPos; + var labels = []; + + for (var i = 0; i < this.xaxisLabels.length; i++) { + labels.push(this.xaxisLabels[i]); + } + + colHeight = w.globals.gridHeight / labels.length; + yPos = -(colHeight / 2.2); + var lbFormatter = w.globals.yLabelFormatters[0]; + var ylabels = w.config.yaxis[0].labels; + + if (ylabels.show) { + for (var _i2 = 0; _i2 <= labels.length - 1; _i2++) { + var label = typeof labels[_i2] === 'undefined' ? '' : labels[_i2]; + label = lbFormatter(label); + var elLabel = graphics.drawText({ + x: ylabels.offsetX - 15, + y: yPos + colHeight + ylabels.offsetY, + text: label, + textAnchor: this.yaxis.opposite ? 'start' : 'end', + foreColor: ylabels.style.color ? ylabels.style.color : ylabels.style.colors[_i2], + fontSize: ylabels.style.fontSize, + fontFamily: ylabels.style.fontFamily, + cssClass: 'apexcharts-yaxis-label ' + ylabels.style.cssClass + }); // let labelRotatingCenter = graphics.rotateAroundCenter(elLabel.node) + // if (ylabels.rotate !== 0) { + // elLabel.node.setAttribute( + // 'transform', + // `rotate(${ylabels.rotate} ${labelRotatingCenter.x} ${labelRotatingCenter.y})` + // ) + // } + + elYaxisTexts.add(elLabel); + yPos = yPos + colHeight; + } + } + + if (w.config.yaxis[0].title.text !== undefined) { + var elXaxisTitle = graphics.group({ + class: 'apexcharts-yaxis-title apexcharts-xaxis-title-inversed', + transform: 'translate(' + translateYAxisX + ', 0)' + }); + var elXAxisTitleText = graphics.drawText({ + x: 0, + y: w.globals.gridHeight / 2, + text: w.config.yaxis[0].title.text, + textAnchor: 'middle', + foreColor: w.config.yaxis[0].title.style.color, + fontSize: w.config.yaxis[0].title.style.fontSize, + fontFamily: w.config.yaxis[0].title.style.fontFamily, + cssClass: 'apexcharts-yaxis-title-text ' + w.config.yaxis[0].title.style.cssClass + }); + elXaxisTitle.add(elXAxisTitleText); + elYaxis.add(elXaxisTitle); + } + + if (w.config.xaxis.axisBorder.show) { + var elHorzLine = graphics.drawLine(w.globals.padHorizontal + w.config.xaxis.axisBorder.offsetX, this.offY, this.xaxisBorderWidth, this.offY, this.yaxis.axisBorder.color, 0, this.xaxisBorderHeight); + elYaxis.add(elHorzLine); // let x = w.globals.yAxisWidths[0] / 2 + // if (w.config.yaxis[0].opposite) { + // x = -w.globals.yAxisWidths[0] / 2 + // } + + var yaxis = new YAxis(this.ctx); + yaxis.drawAxisTicks(0, labels.length, w.config.yaxis[0].axisBorder, w.config.yaxis[0].axisTicks, 0, colHeight, elYaxis); + } + + return elYaxis; + } + }, { + key: "drawXaxisTicks", + value: function drawXaxisTicks(x1, appendToElement) { + var w = this.w; + var x2 = x1; + if (x1 < 0 || x1 > w.globals.gridWidth) return; + var y1 = this.offY + w.config.xaxis.axisTicks.offsetY; + var y2 = y1 + w.config.xaxis.axisTicks.height; + + if (w.config.xaxis.axisTicks.show) { + var graphics = new Graphics(this.ctx); + var line = graphics.drawLine(x1 + w.config.xaxis.axisTicks.offsetX, y1 + w.config.xaxis.offsetY, x2 + w.config.xaxis.axisTicks.offsetX, y2 + w.config.xaxis.offsetY, w.config.xaxis.axisTicks.color); // we are not returning anything, but appending directly to the element pased in param + + appendToElement.add(line); + line.node.classList.add('apexcharts-xaxis-tick'); + } + } + }, { + key: "getXAxisTicksPositions", + value: function getXAxisTicksPositions() { + var w = this.w; + var xAxisTicksPositions = []; + var xCount = this.xaxisLabels.length; + var x1 = w.globals.padHorizontal; + + if (w.globals.timelineLabels.length > 0) { + for (var i = 0; i < xCount; i++) { + x1 = this.xaxisLabels[i].position; + xAxisTicksPositions.push(x1); + } + } else { + var xCountForCategoryCharts = xCount; + + for (var _i3 = 0; _i3 < xCountForCategoryCharts; _i3++) { + var x1Count = xCountForCategoryCharts; + + if (w.globals.isXNumeric && w.config.chart.type !== 'bar') { + x1Count -= 1; + } + + x1 = x1 + w.globals.gridWidth / x1Count; + xAxisTicksPositions.push(x1); + } + } + + return xAxisTicksPositions; + } // to rotate x-axis labels or to put ... for longer text in xaxis + + }, { + key: "xAxisLabelCorrections", + value: function xAxisLabelCorrections() { + var w = this.w; + var graphics = new Graphics(this.ctx); + var xAxis = w.globals.dom.baseEl.querySelector('.apexcharts-xaxis-texts-g'); + var xAxisTexts = w.globals.dom.baseEl.querySelectorAll('.apexcharts-xaxis-texts-g text'); + var yAxisTextsInversed = w.globals.dom.baseEl.querySelectorAll('.apexcharts-yaxis-inversed text'); + var xAxisTextsInversed = w.globals.dom.baseEl.querySelectorAll('.apexcharts-xaxis-inversed-texts-g text'); + + if (w.globals.rotateXLabels || w.config.xaxis.labels.rotateAlways) { + for (var xat = 0; xat < xAxisTexts.length; xat++) { + var textRotatingCenter = graphics.rotateAroundCenter(xAxisTexts[xat]); + textRotatingCenter.y = textRotatingCenter.y - 1; // + tickWidth/4; + + textRotatingCenter.x = textRotatingCenter.x + 1; + xAxisTexts[xat].setAttribute('transform', "rotate(".concat(w.config.xaxis.labels.rotate, " ").concat(textRotatingCenter.x, " ").concat(textRotatingCenter.y, ")")); + xAxisTexts[xat].setAttribute('text-anchor', "end"); + var offsetHeight = 10; + xAxis.setAttribute('transform', "translate(0, ".concat(-offsetHeight, ")")); + var tSpan = xAxisTexts[xat].childNodes; + + if (w.config.xaxis.labels.trim) { + graphics.placeTextWithEllipsis(tSpan[0], tSpan[0].textContent, w.config.xaxis.labels.maxHeight - 40); + } + } + } else { + var width = w.globals.gridWidth / w.globals.labels.length; + + for (var _xat = 0; _xat < xAxisTexts.length; _xat++) { + var _tSpan = xAxisTexts[_xat].childNodes; + + if (w.config.xaxis.labels.trim && w.config.chart.type !== 'bar' && w.config.plotOptions.bar.horizontal) { + graphics.placeTextWithEllipsis(_tSpan[0], _tSpan[0].textContent, width); + } + } + } + + if (yAxisTextsInversed.length > 0) { + // truncate rotated y axis in bar chart (x axis) + var firstLabelPosX = yAxisTextsInversed[yAxisTextsInversed.length - 1].getBBox(); + var lastLabelPosX = yAxisTextsInversed[0].getBBox(); + + if (firstLabelPosX.x < -20) { + yAxisTextsInversed[yAxisTextsInversed.length - 1].parentNode.removeChild(yAxisTextsInversed[yAxisTextsInversed.length - 1]); + } + + if (lastLabelPosX.x + lastLabelPosX.width > w.globals.gridWidth) { + yAxisTextsInversed[0].parentNode.removeChild(yAxisTextsInversed[0]); + } // truncate rotated x axis in bar chart (y axis) + + + for (var _xat2 = 0; _xat2 < xAxisTextsInversed.length; _xat2++) { + graphics.placeTextWithEllipsis(xAxisTextsInversed[_xat2], xAxisTextsInversed[_xat2].textContent, w.config.yaxis[0].labels.maxWidth - parseInt(w.config.yaxis[0].title.style.fontSize) * 2 - 20); + } + } + } // renderXAxisBands() { + // let w = this.w; + // let plotBand = document.createElementNS(w.globals.SVGNS, 'rect') + // w.globals.dom.elGraphical.add(plotBand) + // } + + }]); + + return XAxis; +}(); + +var Range = +/*#__PURE__*/ +function () { + function Range(ctx) { + _classCallCheck(this, Range); + + this.ctx = ctx; + this.w = ctx.w; + this.isBarHorizontal = !!(this.w.config.chart.type === 'bar' && this.w.config.plotOptions.bar.horizontal); + } // http://stackoverflow.com/questions/326679/choosing-an-attractive-linear-scale-for-a-graphs-y-axiss + // This routine creates the Y axis values for a graph. + + + _createClass(Range, [{ + key: "niceScale", + value: function niceScale(yMin, yMax) { + var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; + var ticks = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 10; + + if (yMin === Number.MIN_VALUE && yMax === 0 || !Utils.isNumber(yMin) && !Utils.isNumber(yMax) || yMin === Number.MIN_VALUE && yMax === -Number.MAX_VALUE) { + // when all values are 0 + yMin = 0; + yMax = ticks; + var linearScale = this.linearScale(yMin, yMax, ticks); + return linearScale; + } + + if (yMin > yMax) { + // if somehow due to some wrong config, user sent max less than min, + // adjust the min/max again + console.warn('yaxis.min cannot be greater than yaxis.max'); + yMax = yMin + 0.1; + } else if (yMin === yMax) { + // If yMin and yMax are identical, then + // adjust the yMin and yMax values to actually + // make a graph. Also avoids division by zero errors. + yMin = yMin === 0 ? 0 : yMin - 0.1; // some small value + + yMax = yMax === 0 ? 2 : yMax + 0.1; // some small value + } // Calculate Min amd Max graphical labels and graph + // increments. The number of ticks defaults to + // 10 which is the SUGGESTED value. Any tick value + // entered is used as a suggested value which is + // adjusted to be a 'pretty' value. + // + // Output will be an array of the Y axis values that + // encompass the Y values. + + + var result = []; // Determine Range + + var range = yMax - yMin; + var tiks = ticks + 1; // Adjust ticks if needed + + if (tiks < 2) { + tiks = 2; + } else if (tiks > 2) { + tiks -= 2; + } // Get raw step value + + + var tempStep = range / tiks; // Calculate pretty step value + + var mag = Math.floor(Utils.log10(tempStep)); + var magPow = Math.pow(10, mag); + var magMsd = parseInt(tempStep / magPow); + var stepSize = magMsd * magPow; // build Y label array. + // Lower and upper bounds calculations + + var lb = stepSize * Math.floor(yMin / stepSize); + var ub = stepSize * Math.ceil(yMax / stepSize); // Build array + + var val = lb; + + while (1) { + result.push(val); + val += stepSize; + + if (val > ub) { + break; + } + } // TODO: need to remove this condition below which makes this function tightly coupled with w. + + + if (this.w.config.yaxis[index].max === undefined && this.w.config.yaxis[index].min === undefined || this.w.config.yaxis[index].forceNiceScale) { + return { + result: result, + niceMin: result[0], + niceMax: result[result.length - 1] + }; + } else { + result = []; + var v = yMin; + result.push(v); + var valuesDivider = Math.abs(yMax - yMin) / ticks; + + for (var i = 0; i <= ticks - 1; i++) { + v = v + valuesDivider; + result.push(v); + } + + return { + result: result, + niceMin: result[0], + niceMax: result[result.length - 1] + }; + } + } + }, { + key: "linearScale", + value: function linearScale(yMin, yMax) { + var ticks = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10; + var range = Math.abs(yMax - yMin); + var step = range / ticks; + + if (ticks === Number.MAX_VALUE) { + ticks = 10; + step = 1; + } + + var result = []; + var v = yMin; + + while (ticks >= 0) { + result.push(v); + v = v + step; + ticks -= 1; + } + + return { + result: result, + niceMin: result[0], + niceMax: result[result.length - 1] + }; + } + }, { + key: "logarithmicScale", + value: function logarithmicScale(index, yMin, yMax, ticks) { + if (yMin < 0 || yMin === Number.MIN_VALUE) yMin = 0.01; + var base = 10; + var min = Math.log(yMin) / Math.log(base); + var max = Math.log(yMax) / Math.log(base); + var range = Math.abs(yMax - yMin); + var step = range / ticks; + var result = []; + var v = yMin; + + while (ticks >= 0) { + result.push(v); + v = v + step; + ticks -= 1; + } + + var logs = result.map(function (niceNumber, i) { + if (niceNumber <= 0) { + niceNumber = 0.01; + } // calculate adjustment factor + + + var scale = (max - min) / (yMax - yMin); + var logVal = Math.pow(base, min + scale * (niceNumber - min)); + return Math.round(logVal / Utils.roundToBase(logVal, base)) * Utils.roundToBase(logVal, base); + }); // Math.floor may have rounded the value to 0, revert back to 1 + + if (logs[0] === 0) logs[0] = 1; + return { + result: logs, + niceMin: logs[0], + niceMax: logs[logs.length - 1] + }; + } + }, { + key: "setYScaleForIndex", + value: function setYScaleForIndex(index, minY, maxY) { + var gl = this.w.globals; + var cnf = this.w.config; + var y = this.isBarHorizontal ? cnf.xaxis : cnf.yaxis[index]; + + if (typeof gl.yAxisScale[index] === 'undefined') { + gl.yAxisScale[index] = []; + } + + if (y.logarithmic) { + gl.allSeriesCollapsed = false; + gl.yAxisScale[index] = this.logarithmicScale(index, minY, maxY, y.tickAmount ? y.tickAmount : Math.floor(Math.log10(maxY))); + } else { + if (maxY === -Number.MAX_VALUE || !Utils.isNumber(maxY)) { + // no data in the chart. Either all series collapsed or user passed a blank array + gl.yAxisScale[index] = this.linearScale(0, 5, 5); + } else { + // there is some data. Turn off the allSeriesCollapsed flag + gl.allSeriesCollapsed = false; + gl.yAxisScale[index] = this.niceScale(minY, maxY, index, y.tickAmount ? y.tickAmount : 5); + } + } + } + }, { + key: "setMultipleYScales", + value: function setMultipleYScales() { + var _this = this; + + var gl = this.w.globals; + var cnf = this.w.config; + var minYArr = gl.minYArr.concat([]); + var maxYArr = gl.maxYArr.concat([]); + var scalesIndices = []; // here, we loop through the yaxis array and find the item which has "seriesName" property + + cnf.yaxis.forEach(function (yaxe, i) { + var index = i; + cnf.series.forEach(function (s, si) { + // if seriesName matches and that series is not collapsed, we use that scale + if (s.name === yaxe.seriesName && gl.collapsedSeriesIndices.indexOf(si) === -1) { + index = si; + + if (i !== si) { + scalesIndices.push({ + index: si, + similarIndex: i, + alreadyExists: true + }); + } else { + scalesIndices.push({ + index: si + }); + } + } + }); + var minY = minYArr[index]; + var maxY = maxYArr[index]; + + _this.setYScaleForIndex(i, minY, maxY); + }); + this.sameScaleInMultipleAxes(minYArr, maxYArr, scalesIndices); + } + }, { + key: "sameScaleInMultipleAxes", + value: function sameScaleInMultipleAxes(minYArr, maxYArr, scalesIndices) { + var _this2 = this; + + var cnf = this.w.config; + var gl = this.w.globals; // we got the scalesIndices array in the above code, but we need to filter out the items which doesn't have same scales + + var similarIndices = []; + scalesIndices.forEach(function (scale) { + if (scale.alreadyExists) { + if (typeof similarIndices[scale.index] === 'undefined') { + similarIndices[scale.index] = []; + } + + similarIndices[scale.index].push(scale.index); + similarIndices[scale.index].push(scale.similarIndex); + } + }); + + function intersect(a, b) { + return a.filter(function (value) { + return b.indexOf(value) !== -1; + }); + } + + similarIndices.forEach(function (si, i) { + similarIndices.forEach(function (sj, j) { + if (i !== j) { + if (intersect(si, sj).length > 0) { + similarIndices[i] = similarIndices[i].concat(similarIndices[j]); + } + } + }); + }); // then, we remove duplicates from the similarScale array + + var uniqueSimilarIndices = similarIndices.map(function (item) { + return item.filter(function (i, pos) { + return item.indexOf(i) === pos; + }); + }); // sort further to remove whole duplicate arrays later + + var sortedIndices = uniqueSimilarIndices.map(function (s) { + return s.sort(); + }); // remove undefined items + + similarIndices = similarIndices.filter(function (s) { + return !!s; + }); + var indices = sortedIndices.slice(); + var stringIndices = indices.map(function (ind) { + return JSON.stringify(ind); + }); + indices = indices.filter(function (ind, p) { + return stringIndices.indexOf(JSON.stringify(ind)) === p; + }); + var sameScaleMinYArr = []; + var sameScaleMaxYArr = []; + minYArr.forEach(function (minYValue, yi) { + indices.forEach(function (scale, i) { + // we compare only the yIndex which exists in the indices array + if (scale.indexOf(yi) > -1) { + if (typeof sameScaleMinYArr[i] === 'undefined') { + sameScaleMinYArr[i] = []; + sameScaleMaxYArr[i] = []; + } + + sameScaleMinYArr[i].push({ + key: yi, + value: minYValue + }); + sameScaleMaxYArr[i].push({ + key: yi, + value: maxYArr[yi] + }); + } + }); + }); + var sameScaleMin = Array.apply(null, Array(indices.length)).map(Number.prototype.valueOf, Number.MIN_VALUE); + var sameScaleMax = Array.apply(null, Array(indices.length)).map(Number.prototype.valueOf, -Number.MAX_VALUE); + sameScaleMinYArr.forEach(function (s, i) { + s.forEach(function (sc, j) { + sameScaleMin[i] = Math.min(sc.value, sameScaleMin[i]); + }); + }); + sameScaleMaxYArr.forEach(function (s, i) { + s.forEach(function (sc, j) { + sameScaleMax[i] = Math.max(sc.value, sameScaleMax[i]); + }); + }); + minYArr.forEach(function (min, i) { + sameScaleMaxYArr.forEach(function (s, si) { + var minY = sameScaleMin[si]; + var maxY = sameScaleMax[si]; + s.forEach(function (ind, k) { + if (s[k].key === i) { + if (cnf.yaxis[i].min !== undefined) { + if (typeof cnf.yaxis[i].min === 'function') { + minY = cnf.yaxis[i].min(gl.minY); + } else { + minY = cnf.yaxis[i].min; + } + } + + if (cnf.yaxis[i].max !== undefined) { + if (typeof cnf.yaxis[i].max === 'function') { + maxY = cnf.yaxis[i].max(gl.maxY); + } else { + maxY = cnf.yaxis[i].max; + } + } + + _this2.setYScaleForIndex(i, minY, maxY); + } + }); + }); + }); + } + }, { + key: "autoScaleY", + value: function autoScaleY(ctx, e) { + if (!ctx) { + ctx = this; + } + + var ret = []; + ctx.w.config.series.forEach(function (serie) { + var min, max; + var first = serie.data.find(function (x) { + return x[0] >= e.xaxis.min; + }); + var firstValue = first[1]; + max = min = firstValue; + serie.data.forEach(function (data) { + if (data[0] <= e.xaxis.max && data[0] >= e.xaxis.min) { + if (data[1] > max && data[1] !== null) max = data[1]; + if (data[1] < min && data[1] !== null) min = data[1]; + } + }); + min *= 0.95; + max *= 1.05; + ret.push({ + min: min, + max: max + }); + }); + return ret; + } + }]); + + return Range; +}(); + +/** + * Range is used to generates values between min and max. + * + * @module Range + **/ + +var Range$1 = +/*#__PURE__*/ +function () { + function Range$$1(ctx) { + _classCallCheck(this, Range$$1); + + this.ctx = ctx; + this.w = ctx.w; + this.isBarHorizontal = !!(this.w.config.chart.type === 'bar' && this.w.config.plotOptions.bar.horizontal); + this.scales = new Range(ctx); + } + + _createClass(Range$$1, [{ + key: "init", + value: function init() { + this.setYRange(); + this.setXRange(); + this.setZRange(); + } + }, { + key: "getMinYMaxY", + value: function getMinYMaxY(startingIndex) { + var lowestY = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Number.MAX_VALUE; + var highestY = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -Number.MAX_VALUE; + var len = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; + var gl = this.w.globals; + var maxY = -Number.MAX_VALUE; + var minY = Number.MIN_VALUE; + + if (len === null) { + len = startingIndex + 1; + } + + var series = gl.series; + var seriesMin = series; + var seriesMax = series; + + if (this.w.config.chart.type === 'candlestick') { + seriesMin = gl.seriesCandleL; + seriesMax = gl.seriesCandleH; + } + + for (var i = startingIndex; i < len; i++) { + gl.dataPoints = Math.max(gl.dataPoints, series[i].length); + + for (var j = 0; j < gl.series[i].length; j++) { + if (series[i][j] !== null && Utils.isNumber(series[i][j])) { + maxY = Math.max(maxY, seriesMax[i][j]); + lowestY = Math.min(lowestY, seriesMin[i][j]); + highestY = Math.max(highestY, seriesMin[i][j]); + + if (Utils.isFloat(series[i][j])) { + gl.yValueDecimal = Math.max(gl.yValueDecimal, series[i][j].toString().split('.')[1].length); + } + + if (minY > seriesMin[i][j] && seriesMin[i][j] < 0) { + minY = seriesMin[i][j]; + } + } else { + gl.hasNullValues = true; + } + } + } + + return { + minY: minY, + maxY: maxY, + lowestY: lowestY, + highestY: highestY + }; + } + }, { + key: "setYRange", + value: function setYRange() { + var gl = this.w.globals; + var cnf = this.w.config; + gl.maxY = -Number.MAX_VALUE; + gl.minY = Number.MIN_VALUE; + var lowestYInAllSeries = Number.MAX_VALUE; + + if (gl.isMultipleYAxis) { + // we need to get minY and maxY for multiple y axis + for (var i = 0; i < gl.series.length; i++) { + var minYMaxYArr = this.getMinYMaxY(i, lowestYInAllSeries, null, i + 1); + gl.minYArr.push(minYMaxYArr.minY); + gl.maxYArr.push(minYMaxYArr.maxY); + lowestYInAllSeries = minYMaxYArr.lowestY; + } + } // and then, get the minY and maxY from all series + + + var minYMaxY = this.getMinYMaxY(0, lowestYInAllSeries, null, gl.series.length); + gl.minY = minYMaxY.minY; + gl.maxY = minYMaxY.maxY; + lowestYInAllSeries = minYMaxY.lowestY; + + if (cnf.chart.stacked) { + // for stacked charts, we calculate each series's parallel values. i.e, series[0][j] + series[1][j] .... [series[i.length][j]] and get the max out of it + var stackedPoss = []; + var stackedNegs = []; + + for (var j = 0; j < gl.series[gl.maxValsInArrayIndex].length; j++) { + var poss = 0; + var negs = 0; + + for (var _i = 0; _i < gl.series.length; _i++) { + if (gl.series[_i][j] !== null && Utils.isNumber(gl.series[_i][j])) { + if (gl.series[_i][j] > 0) { + // 0.0001 fixes #185 when values are very small + poss = poss + parseFloat(gl.series[_i][j]) + 0.0001; + } else { + negs = negs + parseFloat(gl.series[_i][j]); + } + } + + if (_i === gl.series.length - 1) { + // push all the totals to the array for future use + stackedPoss.push(poss); + stackedNegs.push(negs); + } + } + } // get the max/min out of the added parallel values + + + for (var z = 0; z < stackedPoss.length; z++) { + gl.maxY = Math.max(gl.maxY, stackedPoss[z]); + gl.minY = Math.min(gl.minY, stackedNegs[z]); + } + } // if the numbers are too big, reduce the range + // for eg, if number is between 100000-110000, putting 0 as the lowest value is not so good idea. So change the gl.minY for line/area/candlesticks + + + if (cnf.chart.type === 'line' || cnf.chart.type === 'area' || cnf.chart.type === 'candlestick') { + if (gl.minY === Number.MIN_VALUE && lowestYInAllSeries !== -Number.MAX_VALUE) { + var diff = gl.maxY - lowestYInAllSeries; + + if (lowestYInAllSeries >= 0 && lowestYInAllSeries <= 10) { + // if minY is already 0/low value, we don't want to go negatives here - so this check is essential. + diff = 0; + } + + gl.minY = lowestYInAllSeries - diff * 5 / 100; + gl.maxY = gl.maxY + diff * 5 / 100 + 0.05; + } + } + + cnf.yaxis.map(function (yaxe, index) { + // override all min/max values by user defined values (y axis) + if (yaxe.max !== undefined) { + if (typeof yaxe.max === 'number') { + gl.maxYArr[index] = yaxe.max; + } else if (typeof yaxe.max === 'function') { + gl.maxYArr[index] = yaxe.max(gl.maxY); + } // gl.maxY is for single y-axis chart, it will be ignored in multi-yaxis + + + gl.maxY = gl.maxYArr[index]; + } + + if (yaxe.min !== undefined) { + if (typeof yaxe.min === 'number') { + gl.minYArr[index] = yaxe.min; + } else if (typeof yaxe.min === 'function') { + gl.minYArr[index] = yaxe.min(gl.minY); + } // gl.minY is for single y-axis chart, it will be ignored in multi-yaxis + + + gl.minY = gl.minYArr[index]; + } + }); // for horizontal bar charts, we need to check xaxis min/max as user may have specified there + + if (this.isBarHorizontal) { + if (cnf.xaxis.min !== undefined && typeof cnf.xaxis.min === 'number') { + gl.minY = cnf.xaxis.min; + } + + if (cnf.xaxis.max !== undefined && typeof cnf.xaxis.max === 'number') { + gl.maxY = cnf.xaxis.max; + } + } // for multi y-axis we need different scales for each + + + if (gl.isMultipleYAxis) { + this.scales.setMultipleYScales(); + gl.minY = lowestYInAllSeries; + gl.yAxisScale.forEach(function (scale, i) { + gl.minYArr[i] = scale.niceMin; + gl.maxYArr[i] = scale.niceMax; + }); + } else { + this.scales.setYScaleForIndex(0, gl.minY, gl.maxY); + gl.minY = gl.yAxisScale[0].niceMin; + gl.maxY = gl.yAxisScale[0].niceMax; + gl.minYArr[0] = gl.yAxisScale[0].niceMin; + gl.maxYArr[0] = gl.yAxisScale[0].niceMax; + } + } + }, { + key: "setXRange", + value: function setXRange() { + var gl = this.w.globals; + var cnf = this.w.config; + var isXNumeric = cnf.xaxis.type === 'numeric' || cnf.xaxis.type === 'datetime' || cnf.xaxis.type === 'category' && !gl.noLabelsProvided; // minX maxX starts here + + if (gl.isXNumeric) { + for (var i = 0; i < gl.series.length; i++) { + if (gl.labels[i]) { + for (var j = 0; j < gl.labels[i].length; j++) { + if (gl.labels[i][j] !== null && Utils.isNumber(gl.labels[i][j])) { + gl.maxX = Math.max(gl.maxX, gl.labels[i][j]); + gl.initialmaxX = Math.max(gl.maxX, gl.labels[i][j]); + gl.minX = Math.min(gl.minX, gl.labels[i][j]); + gl.initialminX = Math.min(gl.minX, gl.labels[i][j]); + } + } + } + } + } + + if (gl.noLabelsProvided) { + if (cnf.xaxis.categories.length === 0) { + gl.maxX = gl.labels[gl.labels.length - 1]; + gl.initialmaxX = gl.labels[gl.labels.length - 1]; + gl.minX = 1; + gl.initialminX = 1; + } + } // for numeric xaxis, we need to adjust some padding left and right for bar charts + + + if (gl.comboChartsHasBars || cnf.chart.type === 'candlestick' || cnf.chart.type === 'bar' && cnf.xaxis.type !== 'category') { + if (cnf.xaxis.type !== 'category') { + var minX = gl.minX - gl.svgWidth / gl.dataPoints * (Math.abs(gl.maxX - gl.minX) / gl.svgWidth) / 2; + gl.minX = minX; + gl.initialminX = minX; + var maxX = gl.maxX + gl.svgWidth / gl.dataPoints * (Math.abs(gl.maxX - gl.minX) / gl.svgWidth) / 2; + gl.maxX = maxX; + gl.initialmaxX = maxX; + } + } + + if (gl.isXNumeric || gl.noLabelsProvided) { + var ticks; + + if (cnf.xaxis.tickAmount === undefined) { + ticks = Math.round(gl.svgWidth / 150); // no labels provided and total number of dataPoints is less than 20 + + if (cnf.xaxis.type === 'numeric' && gl.dataPoints < 20) { + ticks = gl.dataPoints - 1; + } // this check is for when ticks exceeds total datapoints and that would result in duplicate labels + + + if (ticks > gl.dataPoints && gl.dataPoints !== 0) { + ticks = gl.dataPoints - 1; + } + } else if (cnf.xaxis.tickAmount === 'dataPoints') { + ticks = gl.series[gl.maxValsInArrayIndex].length - 1; + } else { + ticks = cnf.xaxis.tickAmount; + } // override all min/max values by user defined values (x axis) + + + if (cnf.xaxis.max !== undefined && typeof cnf.xaxis.max === 'number') { + gl.maxX = cnf.xaxis.max; + } + + if (cnf.xaxis.min !== undefined && typeof cnf.xaxis.min === 'number') { + gl.minX = cnf.xaxis.min; + } // if range is provided, adjust the new minX + + + if (cnf.xaxis.range !== undefined) { + gl.minX = gl.maxX - cnf.xaxis.range; + } + + if (gl.minX !== Number.MAX_VALUE && gl.maxX !== -Number.MAX_VALUE) { + gl.xAxisScale = this.scales.linearScale(gl.minX, gl.maxX, ticks); + } else { + gl.xAxisScale = this.scales.linearScale(1, ticks, ticks); + + if (gl.noLabelsProvided && gl.labels.length > 0) { + gl.xAxisScale = this.scales.linearScale(1, gl.labels.length, ticks - 1); + gl.seriesX = gl.labels.slice(); + } + } // we will still store these labels as the count for this will be different (to draw grid and labels placement) + + + if (isXNumeric) { + gl.labels = gl.xAxisScale.result.slice(); + } + } + + if (gl.minX === gl.maxX) { + // single dataPoint + if (cnf.xaxis.type === 'datetime') { + var newMinX = new Date(gl.minX); + newMinX.setDate(newMinX.getDate() - 2); + gl.minX = new Date(newMinX).getTime(); + var newMaxX = new Date(gl.maxX); + newMaxX.setDate(newMaxX.getDate() + 2); + gl.maxX = new Date(newMaxX).getTime(); + } else if (cnf.xaxis.type === 'numeric' || cnf.xaxis.type === 'category' && !gl.noLabelsProvided) { + gl.minX = gl.minX - 2; + gl.maxX = gl.maxX + 2; + } + } + } + }, { + key: "setZRange", + value: function setZRange() { + var gl = this.w.globals; // minZ, maxZ starts here + + if (gl.isDataXYZ) { + for (var i = 0; i < gl.series.length; i++) { + if (typeof gl.seriesZ[i] !== 'undefined') { + for (var j = 0; j < gl.seriesZ[i].length; j++) { + if (gl.seriesZ[i][j] !== null && Utils.isNumber(gl.seriesZ[i][j])) { + gl.maxZ = Math.max(gl.maxZ, gl.seriesZ[i][j]); + gl.minZ = Math.min(gl.minZ, gl.seriesZ[i][j]); + } + } + } + } + } + } + }]); + + return Range$$1; +}(); + +/** + * ApexCharts Series Class for interation with the Series of the chart. + * + * @module Series + **/ + +var Series = +/*#__PURE__*/ +function () { + function Series(ctx) { + _classCallCheck(this, Series); + + this.ctx = ctx; + this.w = ctx.w; + } + + _createClass(Series, [{ + key: "getAllSeriesEls", + value: function getAllSeriesEls() { + return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series"); + } + }, { + key: "getSeriesByName", + value: function getSeriesByName(seriesName) { + return this.w.globals.dom.baseEl.querySelector(".apexcharts-series.".concat(Utils.escapeString(seriesName))); + } + }, { + key: "addCollapsedClassToSeries", + value: function addCollapsedClassToSeries(elSeries, index) { + var w = this.w; + + for (var cs = 0; cs < w.globals.collapsedSeries.length; cs++) { + if (w.globals.collapsedSeries[cs].index === index) { + elSeries.node.classList.add('apexcharts-series-collapsed'); + } + } + } + }, { + key: "toggleSeriesOnHover", + value: function toggleSeriesOnHover(e, targetElement) { + var w = this.w; + var allSeriesEls = w.globals.dom.baseEl.querySelectorAll(".apexcharts-series"); + + if (e.type === 'mousemove') { + var seriesCnt = parseInt(targetElement.getAttribute('rel')) - 1; + var seriesEl = null; + + if (w.globals.axisCharts || w.config.chart.type === 'radialBar') { + if (w.globals.axisCharts) { + seriesEl = w.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(seriesCnt, "']")); + } else { + seriesEl = w.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(seriesCnt + 1, "']")); + } + } else { + seriesEl = w.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(seriesCnt + 1, "'] path")); + } + + for (var se = 0; se < allSeriesEls.length; se++) { + allSeriesEls[se].classList.add('legend-mouseover-inactive'); + } + + if (seriesEl !== null) { + if (!w.globals.axisCharts) { + seriesEl.parentNode.classList.remove('legend-mouseover-inactive'); + } + + seriesEl.classList.remove('legend-mouseover-inactive'); + } + } else if (e.type === 'mouseout') { + for (var _se = 0; _se < allSeriesEls.length; _se++) { + allSeriesEls[_se].classList.remove('legend-mouseover-inactive'); + } + } + } + }, { + key: "highlightRangeInSeries", + value: function highlightRangeInSeries(e, targetElement) { + var w = this.w; + var allHeatMapElements = w.globals.dom.baseEl.querySelectorAll('.apexcharts-heatmap-rect'); + + var allActive = function allActive() { + for (var i = 0; i < allHeatMapElements.length; i++) { + allHeatMapElements[i].classList.remove('legend-mouseover-inactive'); + } + }; + + var allInactive = function allInactive() { + for (var i = 0; i < allHeatMapElements.length; i++) { + allHeatMapElements[i].classList.add('legend-mouseover-inactive'); + } + }; + + var selectedActive = function selectedActive(range) { + for (var i = 0; i < allHeatMapElements.length; i++) { + var val = parseInt(allHeatMapElements[i].getAttribute('val')); + + if (val >= range.from && val <= range.to) { + allHeatMapElements[i].classList.remove('legend-mouseover-inactive'); + } + } + }; + + if (e.type === 'mousemove') { + var seriesCnt = parseInt(targetElement.getAttribute('rel')) - 1; + allActive(); + allInactive(); + var range = w.config.plotOptions.heatmap.colorScale.ranges[seriesCnt]; + selectedActive(range); + } else if (e.type === 'mouseout') { + allActive(); + } + } + }, { + key: "getActiveSeriesIndex", + value: function getActiveSeriesIndex() { + var w = this.w; + var activeIndex = 0; + + if (w.globals.series.length > 1) { + // active series flag is required to know if user has not deactivated via legend click + var firstActiveSeriesIndex = w.globals.series.map(function (series, index) { + if (series.length > 0 && w.config.series[index].type !== 'bar' && w.config.series[index].type !== 'column') { + return index; + } else { + return -1; + } + }); + + for (var a = 0; a < firstActiveSeriesIndex.length; a++) { + if (firstActiveSeriesIndex[a] !== -1) { + activeIndex = firstActiveSeriesIndex[a]; + break; + } + } + } + + return activeIndex; + } + }, { + key: "getActiveConfigSeriesIndex", + value: function getActiveConfigSeriesIndex() { + var w = this.w; + var activeIndex = 0; + + if (w.config.series.length > 1) { + // active series flag is required to know if user has not deactivated via legend click + var firstActiveSeriesIndex = w.config.series.map(function (series, index) { + if (series.data && series.data.length > 0) { + return index; + } else { + return -1; + } + }); + + for (var a = 0; a < firstActiveSeriesIndex.length; a++) { + if (firstActiveSeriesIndex[a] !== -1) { + activeIndex = firstActiveSeriesIndex[a]; + break; + } + } + } + + return activeIndex; + } + }, { + key: "getPreviousPaths", + value: function getPreviousPaths() { + var w = this.w; + w.globals.previousPaths = []; + + function pushPaths(seriesEls, i, type) { + var paths = seriesEls[i].childNodes; + var dArr = { + type: type, + paths: [], + realIndex: seriesEls[i].getAttribute('data:realIndex') + }; + + for (var j = 0; j < paths.length; j++) { + if (paths[j].hasAttribute('pathTo')) { + var d = paths[j].getAttribute('pathTo'); + dArr.paths.push({ + d: d + }); + } + } + + w.globals.previousPaths.push(dArr); + } + + var linePaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-line-series .apexcharts-series'); + + if (linePaths.length > 0) { + for (var p = linePaths.length - 1; p >= 0; p--) { + pushPaths(linePaths, p, 'line'); + } + } + + var areapaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-area-series .apexcharts-series'); + + if (areapaths.length > 0) { + for (var i = areapaths.length - 1; i >= 0; i--) { + pushPaths(areapaths, i, 'area'); + } + } + + var barPaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-bar-series .apexcharts-series'); + + if (barPaths.length > 0) { + for (var _p = 0; _p < barPaths.length; _p++) { + pushPaths(barPaths, _p, 'bar'); + } + } + + var candlestickPaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-candlestick-series .apexcharts-series'); + + if (candlestickPaths.length > 0) { + for (var _p2 = 0; _p2 < candlestickPaths.length; _p2++) { + pushPaths(candlestickPaths, _p2, 'candlestick'); + } + } + + var radarPaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-radar-series .apexcharts-series'); + + if (radarPaths.length > 0) { + for (var _p3 = 0; _p3 < radarPaths.length; _p3++) { + pushPaths(radarPaths, _p3, 'radar'); + } + } + + var bubblepaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-bubble-series .apexcharts-series'); + + if (bubblepaths.length > 0) { + for (var s = 0; s < bubblepaths.length; s++) { + var seriesEls = w.globals.dom.baseEl.querySelectorAll(".apexcharts-bubble-series .apexcharts-series[data\\:realIndex='".concat(s, "'] circle")); + var dArr = []; + + for (var _i = 0; _i < seriesEls.length; _i++) { + dArr.push({ + x: seriesEls[_i].getAttribute('cx'), + y: seriesEls[_i].getAttribute('cy'), + r: seriesEls[_i].getAttribute('r') + }); + } + + w.globals.previousPaths.push(dArr); + } + } + + var scatterpaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-scatter-series .apexcharts-series'); + + if (scatterpaths.length > 0) { + for (var _s = 0; _s < scatterpaths.length; _s++) { + var _seriesEls = w.globals.dom.baseEl.querySelectorAll(".apexcharts-scatter-series .apexcharts-series[data\\:realIndex='".concat(_s, "'] circle")); + + var _dArr = []; + + for (var _i2 = 0; _i2 < _seriesEls.length; _i2++) { + _dArr.push({ + x: _seriesEls[_i2].getAttribute('cx'), + y: _seriesEls[_i2].getAttribute('cy'), + r: _seriesEls[_i2].getAttribute('r') + }); + } + + w.globals.previousPaths.push(_dArr); + } + } + + var heatmapColors = w.globals.dom.baseEl.querySelectorAll('.apexcharts-heatmap .apexcharts-series'); + + if (heatmapColors.length > 0) { + for (var h = 0; h < heatmapColors.length; h++) { + var _seriesEls2 = w.globals.dom.baseEl.querySelectorAll(".apexcharts-heatmap .apexcharts-series[data\\:realIndex='".concat(h, "'] rect")); + + var _dArr2 = []; + + for (var _i3 = 0; _i3 < _seriesEls2.length; _i3++) { + _dArr2.push({ + color: _seriesEls2[_i3].getAttribute('color') + }); + } + + w.globals.previousPaths.push(_dArr2); + } + } + + if (!w.globals.axisCharts) { + // for non-axis charts (i.e., circular charts, pathFrom is not usable. We need whole series) + w.globals.previousPaths = w.globals.series; + } + } + }, { + key: "handleNoData", + value: function handleNoData() { + var w = this.w; + var me = this; + var noDataOpts = w.config.noData; + var graphics = new Graphics(me.ctx); + var x = w.globals.svgWidth / 2; + var y = w.globals.svgHeight / 2; + var textAnchor = 'middle'; + w.globals.noData = true; + w.globals.animationEnded = true; + + if (noDataOpts.align === 'left') { + x = 10; + textAnchor = 'start'; + } else if (noDataOpts.align === 'right') { + x = w.globals.svgWidth - 10; + textAnchor = 'end'; + } + + if (noDataOpts.verticalAlign === 'top') { + y = 50; + } else if (noDataOpts.verticalAlign === 'bottom') { + y = w.globals.svgHeight - 50; + } + + x = x + noDataOpts.offsetX; + y = y + parseInt(noDataOpts.style.fontSize) + 2; + + if (noDataOpts.text !== undefined && noDataOpts.text !== '') { + var titleText = graphics.drawText({ + x: x, + y: y, + text: noDataOpts.text, + textAnchor: textAnchor, + fontSize: noDataOpts.style.fontSize, + fontFamily: noDataOpts.style.fontFamily, + foreColor: noDataOpts.style.color, + opacity: 1, + class: 'apexcharts-text-nodata' + }); + titleText.node.setAttribute('class', 'apexcharts-title-text'); + w.globals.dom.Paper.add(titleText); + } + } // When user clicks on legends, the collapsed series is filled with [0,0,0,...,0] + // This is because we don't want to alter the series' length as it is used at many places + + }, { + key: "setNullSeriesToZeroValues", + value: function setNullSeriesToZeroValues(series) { + var w = this.w; + + for (var sl = 0; sl < series.length; sl++) { + if (series[sl].length === 0) { + for (var j = 0; j < series[w.globals.maxValsInArrayIndex].length; j++) { + series[sl].push(0); + } + } + } + + return series; + } + }, { + key: "hasAllSeriesEqualX", + value: function hasAllSeriesEqualX() { + var equalLen = true; + var w = this.w; + var filteredSerX = this.filteredSeriesX(); + + for (var i = 0; i < filteredSerX.length - 1; i++) { + if (filteredSerX[i][0] !== filteredSerX[i + 1][0]) { + equalLen = false; + break; + } + } + + w.globals.allSeriesHasEqualX = equalLen; + return equalLen; + } + }, { + key: "filteredSeriesX", + value: function filteredSeriesX() { + var w = this.w; + var filteredSeriesX = w.globals.seriesX.map(function (ser, index) { + if (ser.length > 0) { + return ser; + } else { + return []; + } + }); + return filteredSeriesX; + } + }]); + + return Series; +}(); + +/** + * ApexCharts Dimensions Class for calculating rects of all elements that are drawn and will be drawn. + * + * @module Dimensions + **/ + +var Dimensions = +/*#__PURE__*/ +function () { + function Dimensions(ctx) { + _classCallCheck(this, Dimensions); + + this.ctx = ctx; + this.w = ctx.w; + this.lgRect = {}; + this.yAxisWidth = 0; + this.xAxisHeight = 0; + this.isSparkline = this.w.config.chart.sparkline.enabled; + this.xPadRight = 0; + this.xPadLeft = 0; + this.isBarHorizontal = !!(this.w.config.chart.type === 'bar' && this.w.config.plotOptions.bar.horizontal); + } + /** + * @memberof Dimensions + * @param {object} w - chart context + **/ + + + _createClass(Dimensions, [{ + key: "plotCoords", + value: function plotCoords() { + var w = this.w; + var gl = w.globals; + var lgRect = this.getLegendsRect(); + + if (gl.axisCharts) { + // for line / area / scatter / column + this.setGridCoordsForAxisCharts(lgRect); + } else { + // for pie / donuts / circle + this.setGridCoordsForNonAxisCharts(lgRect); + } + + this.titleSubtitleOffset(); // after calculating everything, apply padding set by user + + gl.gridHeight = gl.gridHeight - w.config.grid.padding.top - w.config.grid.padding.bottom; + gl.gridWidth = gl.gridWidth - w.config.grid.padding.left - w.config.grid.padding.right - this.xPadRight - this.xPadLeft; + gl.translateX = gl.translateX + w.config.grid.padding.left + this.xPadLeft; + gl.translateY = gl.translateY + w.config.grid.padding.top; + } + }, { + key: "conditionalChecksForAxisCoords", + value: function conditionalChecksForAxisCoords(xaxisLabelCoords, xtitleCoords) { + var w = this.w; + this.xAxisHeight = (xaxisLabelCoords.height + xtitleCoords.height) * w.globals.LINE_HEIGHT_RATIO + 15; + this.xAxisWidth = xaxisLabelCoords.width; + + if (this.xAxisHeight - xtitleCoords.height > w.config.xaxis.labels.maxHeight) { + this.xAxisHeight = w.config.xaxis.labels.maxHeight; + } + + if (w.config.xaxis.labels.minHeight && this.xAxisHeight < w.config.xaxis.labels.minHeight) { + this.xAxisHeight = w.config.xaxis.labels.minHeight; + } + + if (w.config.xaxis.floating) { + this.xAxisHeight = 0; + } + + if (!this.isBarHorizontal) { + this.yAxisWidth = this.getTotalYAxisWidth(); + } else { + this.yAxisWidth = w.globals.yLabelsCoords[0].width + w.globals.yTitleCoords[0].width + 15; + } + + if (!w.globals.isMultipleYAxis) { + if (this.yAxisWidth < w.config.yaxis[0].labels.minWidth) { + this.yAxisWidth = w.config.yaxis[0].labels.minWidth; + } + + if (this.yAxisWidth > w.config.yaxis[0].labels.maxWidth) { + this.yAxisWidth = w.config.yaxis[0].labels.maxWidth; + } + } + } + }, { + key: "setGridCoordsForAxisCharts", + value: function setGridCoordsForAxisCharts(lgRect) { + var w = this.w; + var gl = w.globals; + var yaxisLabelCoords = this.getyAxisLabelsCoords(); + var xaxisLabelCoords = this.getxAxisLabelsCoords(); + var yTitleCoords = this.getyAxisTitleCoords(); + var xtitleCoords = this.getxAxisTitleCoords(); + w.globals.yLabelsCoords = []; + w.globals.yTitleCoords = []; + w.config.yaxis.map(function (yaxe, index) { + // store the labels and titles coords in global vars + w.globals.yLabelsCoords.push({ + width: yaxisLabelCoords[index].width, + index: index + }); + w.globals.yTitleCoords.push({ + width: yTitleCoords[index].width, + index: index + }); + }); + this.conditionalChecksForAxisCoords(xaxisLabelCoords, xtitleCoords); + gl.translateXAxisY = w.globals.rotateXLabels ? this.xAxisHeight / 8 : -4; + gl.translateXAxisX = w.globals.rotateXLabels && w.globals.isXNumeric && w.config.xaxis.labels.rotate <= -45 ? -this.xAxisWidth / 4 : 0; + + if (this.isBarHorizontal) { + gl.rotateXLabels = false; + gl.translateXAxisY = -1 * (parseInt(w.config.xaxis.labels.style.fontSize) / 1.5); + } + + gl.translateXAxisY = gl.translateXAxisY + w.config.xaxis.labels.offsetY; + gl.translateXAxisX = gl.translateXAxisX + w.config.xaxis.labels.offsetX; + var yAxisWidth = this.yAxisWidth; + var xAxisHeight = this.xAxisHeight; + gl.xAxisLabelsHeight = this.xAxisHeight; + gl.xAxisHeight = this.xAxisHeight; + var translateY = 10; + + if (!w.config.grid.show || w.config.chart.type === 'radar') { + yAxisWidth = 0; + xAxisHeight = 35; + } + + if (this.isSparkline) { + lgRect = { + height: 0, + width: 0 + }; + xAxisHeight = 0; + yAxisWidth = 0; + translateY = 0; + } + + this.additionalPaddingXLabels(xaxisLabelCoords); + + switch (w.config.legend.position) { + case 'bottom': + gl.translateY = translateY; + gl.translateX = yAxisWidth; + gl.gridHeight = gl.svgHeight - lgRect.height - xAxisHeight - (!this.isSparkline ? w.globals.rotateXLabels ? 10 : 15 : 0); + gl.gridWidth = gl.svgWidth - yAxisWidth; + break; + + case 'top': + gl.translateY = lgRect.height + translateY; + gl.translateX = yAxisWidth; + gl.gridHeight = gl.svgHeight - lgRect.height - xAxisHeight - (!this.isSparkline ? w.globals.rotateXLabels ? 10 : 15 : 0); + gl.gridWidth = gl.svgWidth - yAxisWidth; + break; + + case 'left': + gl.translateY = translateY; + gl.translateX = lgRect.width + yAxisWidth; + gl.gridHeight = gl.svgHeight - xAxisHeight - 12; + gl.gridWidth = gl.svgWidth - lgRect.width - yAxisWidth; + break; + + case 'right': + gl.translateY = translateY; + gl.translateX = yAxisWidth; + gl.gridHeight = gl.svgHeight - xAxisHeight - 12; + gl.gridWidth = gl.svgWidth - lgRect.width - yAxisWidth - 5; + break; + + default: + throw new Error('Legend position not supported'); + } + + this.setGridXPosForDualYAxis(yTitleCoords, yaxisLabelCoords); // after drawing everything, set the Y axis positions + + var objyAxis = new YAxis(this.ctx); + objyAxis.setYAxisXPosition(yaxisLabelCoords, yTitleCoords); + } + }, { + key: "setGridCoordsForNonAxisCharts", + value: function setGridCoordsForNonAxisCharts(lgRect) { + var w = this.w; + var gl = w.globals; + var xPad = 0; + + if (w.config.legend.show && !w.config.legend.floating) { + xPad = 20; + } + + var offY = 10; + var offX = 0; + + if (w.config.chart.type === 'pie' || w.config.chart.type === 'donut') { + offY = offY + w.config.plotOptions.pie.offsetY; + offX = offX + w.config.plotOptions.pie.offsetX; + } else if (w.config.chart.type === 'radialBar') { + offY = offY + w.config.plotOptions.radialBar.offsetY; + offX = offX + w.config.plotOptions.radialBar.offsetX; + } + + if (!w.config.legend.show) { + gl.gridHeight = gl.svgHeight - 35; + gl.gridWidth = gl.gridHeight; + gl.translateY = offY - 10; + gl.translateX = offX + (gl.svgWidth - gl.gridWidth) / 2; + return; + } + + switch (w.config.legend.position) { + case 'bottom': + gl.gridHeight = gl.svgHeight - lgRect.height - 35; + gl.gridWidth = gl.gridHeight; + gl.translateY = offY - 20; + gl.translateX = offX + (gl.svgWidth - gl.gridWidth) / 2; + break; + + case 'top': + gl.gridHeight = gl.svgHeight - lgRect.height - 35; + gl.gridWidth = gl.gridHeight; + gl.translateY = lgRect.height + offY; + gl.translateX = offX + (gl.svgWidth - gl.gridWidth) / 2; + break; + + case 'left': + gl.gridWidth = gl.svgWidth - lgRect.width - xPad; + gl.gridHeight = gl.gridWidth; + gl.translateY = offY; + gl.translateX = offX + lgRect.width + xPad; + break; + + case 'right': + gl.gridWidth = gl.svgWidth - lgRect.width - xPad - 5; + gl.gridHeight = gl.gridWidth; + gl.translateY = offY; + gl.translateX = offX + 10; + break; + + default: + throw new Error('Legend position not supported'); + } + } + }, { + key: "setGridXPosForDualYAxis", + value: function setGridXPosForDualYAxis(yTitleCoords, yaxisLabelCoords) { + var w = this.w; + w.config.yaxis.map(function (yaxe, index) { + if (w.globals.ignoreYAxisIndexes.indexOf(index) === -1 && !w.config.yaxis[index].floating && w.config.yaxis[index].show) { + if (yaxe.opposite) { + w.globals.translateX = w.globals.translateX - (yaxisLabelCoords[index].width + yTitleCoords[index].width) - parseInt(w.config.yaxis[index].labels.style.fontSize) / 1.2 - 12; + } + } + }); + } // Sometimes, the last labels gets cropped in category/numeric xaxis. + // Hence, we add some additional padding based on the label length to avoid the last label being cropped. + // NOTE: datetime x-axis won't have any effect with this as we don't know the label length there due to many constraints. + + }, { + key: "additionalPaddingXLabels", + value: function additionalPaddingXLabels(xaxisLabelCoords) { + var _this = this; + + var w = this.w; + + if (w.config.xaxis.type === 'category' && this.isBarHorizontal || w.config.xaxis.type === 'numeric') { + var rightPad = function rightPad(labels) { + if (w.config.grid.padding.right < labels.width) { + _this.xPadRight = labels.width / 2 + 1; + } + }; + + var leftPad = function leftPad(labels) { + if (w.config.grid.padding.left < labels.width) { + _this.xPadLeft = labels.width / 2 + 1; + } + }; + + var lineArea = w.config.chart.type === 'line' || w.config.chart.type === 'area'; + w.config.yaxis.forEach(function (yaxe, i) { + var shouldPad = !yaxe.show || yaxe.floating || w.globals.collapsedSeriesIndices.indexOf(i) !== -1 || lineArea || yaxe.opposite && _this.isBarHorizontal; + + if (shouldPad) { + if (lineArea && w.globals.isMultipleYAxis && w.globals.collapsedSeriesIndices.indexOf(i) !== -1 || _this.isBarHorizontal && yaxe.opposite) { + leftPad(xaxisLabelCoords); + } + + if (!_this.isBarHorizontal && yaxe.opposite && w.globals.collapsedSeriesIndices.indexOf(i) !== -1 || lineArea && !w.globals.isMultipleYAxis) { + rightPad(xaxisLabelCoords); + } + } + }); + } + } + }, { + key: "titleSubtitleOffset", + value: function titleSubtitleOffset() { + var w = this.w; + var gl = w.globals; + var gridShrinkOffset = this.isSparkline ? 0 : 10; + + if (w.config.title.text !== undefined) { + gridShrinkOffset += w.config.title.margin; + } else { + gridShrinkOffset += this.isSparkline ? 0 : 5; + } + + if (w.config.subtitle.text !== undefined) { + gridShrinkOffset += w.config.subtitle.margin; + } else { + gridShrinkOffset += this.isSparkline ? 0 : 5; + } + + if (w.config.legend.show && w.config.legend.position === 'bottom' && !w.config.legend.floating && w.config.series.length > 1) { + gridShrinkOffset += 10; + } + + var titleCoords = this.getTitleSubtitleCoords('title'); + var subtitleCoords = this.getTitleSubtitleCoords('subtitle'); + gl.gridHeight = gl.gridHeight - titleCoords.height - subtitleCoords.height - gridShrinkOffset; + gl.translateY = gl.translateY + titleCoords.height + subtitleCoords.height + gridShrinkOffset; + } + }, { + key: "getTotalYAxisWidth", + value: function getTotalYAxisWidth() { + var w = this.w; + var yAxisWidth = 0; + var padding = 10; + + var isHiddenYAxis = function isHiddenYAxis(index) { + return w.globals.ignoreYAxisIndexes.indexOf(index) > -1; + }; + + w.globals.yLabelsCoords.map(function (yLabelCoord, index) { + var floating = w.config.yaxis[index].floating; + + if (yLabelCoord.width > 0 && !floating) { + yAxisWidth = yAxisWidth + yLabelCoord.width + padding; + + if (isHiddenYAxis(index)) { + yAxisWidth = yAxisWidth - yLabelCoord.width - padding; + } + } else { + yAxisWidth = yAxisWidth + (floating || !w.config.yaxis[index].show ? 0 : 5); + } + }); + w.globals.yTitleCoords.map(function (yTitleCoord, index) { + var floating = w.config.yaxis[index].floating; + padding = parseInt(w.config.yaxis[index].title.style.fontSize); + + if (yTitleCoord.width > 0 && !floating) { + yAxisWidth = yAxisWidth + yTitleCoord.width + padding; + + if (isHiddenYAxis(index)) { + yAxisWidth = yAxisWidth - yTitleCoord.width - padding; + } + } else { + yAxisWidth = yAxisWidth + (floating || !w.config.yaxis[index].show ? 0 : 5); + } + }); + return yAxisWidth; + } + }, { + key: "getxAxisTimeScaleLabelsCoords", + value: function getxAxisTimeScaleLabelsCoords() { + var w = this.w; + var rect; + var timescaleLabels = w.globals.timelineLabels.slice(); + var labels = timescaleLabels.map(function (label) { + return label.value; + }); // get the longest string from the labels array and also apply label formatter to it + + var val = labels.reduce(function (a, b) { + // if undefined, maybe user didn't pass the datetime(x) values + if (typeof a === 'undefined') { + console.error('You have possibly supplied invalid Date format. Please supply a valid JavaScript Date'); + return 0; + } else { + return a.length > b.length ? a : b; + } + }, 0); + var graphics = new Graphics(this.ctx); + rect = graphics.getTextRects(val, w.config.xaxis.labels.style.fontSize); + var totalWidthRotated = rect.width * 1.05 * labels.length; + + if (totalWidthRotated > w.globals.gridWidth && w.config.xaxis.labels.rotate !== 0) { + w.globals.overlappingXLabels = true; + } + + return rect; + } + /** + * Get X Axis Dimensions + * @memberof Dimensions + * @return {{width, height}} + **/ + + }, { + key: "getxAxisLabelsCoords", + value: function getxAxisLabelsCoords() { + var w = this.w; + var xaxisLabels = w.globals.labels.slice(); + var rect; + + if (w.globals.timelineLabels.length > 0) { + var coords = this.getxAxisTimeScaleLabelsCoords(); + rect = { + width: coords.width, + height: coords.height + }; + } else { + var lgWidthForSideLegends = w.config.legend.position === 'left' && w.config.legend.position === 'right' && !w.config.legend.floating ? this.lgRect.width : 0; // get the longest string from the labels array and also apply label formatter to it + + var val = xaxisLabels.reduce(function (a, b) { + return a.length > b.length ? a : b; + }, 0); // the labels gets changed for bar charts + + if (this.isBarHorizontal) { + val = w.globals.yAxisScale[0].result.reduce(function (a, b) { + return a.length > b.length ? a : b; + }, 0); + } + + var xlbFormatter = w.globals.xLabelFormatter; + var xFormat = new Formatters(this.ctx); + val = xFormat.xLabelFormat(xlbFormatter, val); + var graphics = new Graphics(this.ctx); + var xLabelrect = graphics.getTextRects(val, w.config.xaxis.labels.style.fontSize); + rect = { + width: xLabelrect.width, + height: xLabelrect.height + }; + + if (rect.width * xaxisLabels.length > w.globals.svgWidth - lgWidthForSideLegends - this.yAxisWidth && w.config.xaxis.labels.rotate !== 0) { + if (!this.isBarHorizontal) { + w.globals.rotateXLabels = true; + xLabelrect = graphics.getTextRects(val, w.config.xaxis.labels.style.fontSize, w.config.xaxis.labels.style.fontFamily, "rotate(".concat(w.config.xaxis.labels.rotate, " 0 0)"), false); + rect.height = xLabelrect.height / 1.66; + } + } else { + w.globals.rotateXLabels = false; + } + } + + if (!w.config.xaxis.labels.show) { + rect = { + width: 0, + height: 0 + }; + } + + return { + width: rect.width, + height: rect.height + }; + } + /** + * Get Y Axis Dimensions + * @memberof Dimensions + * @return {{width, height}} + **/ + + }, { + key: "getyAxisLabelsCoords", + value: function getyAxisLabelsCoords() { + var _this2 = this; + + var w = this.w; + var width = 0; + var height = 0; + var ret = []; + var labelPad = 10; + w.config.yaxis.map(function (yaxe, index) { + if (yaxe.show && yaxe.labels.show && w.globals.yAxisScale[index].result.length) { + var lbFormatter = w.globals.yLabelFormatters[index]; // the second parameter -1 is the index of tick which user can use in the formatter + + var val = lbFormatter(w.globals.yAxisScale[index].niceMax, -1); // if user has specified a custom formatter, and the result is null or empty, we need to discard the formatter and take the value as it is. + + if (typeof val === 'undefined' || val.length === 0) { + val = w.globals.yAxisScale[index].niceMax; + } + + if (_this2.isBarHorizontal) { + labelPad = 0; + var barYaxisLabels = w.globals.labels.slice(); // get the longest string from the labels array and also apply label formatter to it + + val = barYaxisLabels.reduce(function (a, b) { + return a.length > b.length ? a : b; + }, 0); + val = lbFormatter(val, -1); + } + + var graphics = new Graphics(_this2.ctx); + var rect = graphics.getTextRects(val, yaxe.labels.style.fontSize); + ret.push({ + width: rect.width + labelPad, + height: rect.height + }); + } else { + ret.push({ + width: width, + height: height + }); + } + }); + return ret; + } + /** + * Get X Axis Title Dimensions + * @memberof Dimensions + * @return {{width, height}} + **/ + + }, { + key: "getxAxisTitleCoords", + value: function getxAxisTitleCoords() { + var w = this.w; + var width = 0; + var height = 0; + + if (w.config.xaxis.title.text !== undefined) { + var graphics = new Graphics(this.ctx); + var rect = graphics.getTextRects(w.config.xaxis.title.text, w.config.xaxis.title.style.fontSize); + width = rect.width; + height = rect.height; + } + + return { + width: width, + height: height + }; + } + /** + * Get Y Axis Dimensions + * @memberof Dimensions + * @return {{width, height}} + **/ + + }, { + key: "getyAxisTitleCoords", + value: function getyAxisTitleCoords() { + var _this3 = this; + + var w = this.w; + var ret = []; + w.config.yaxis.map(function (yaxe, index) { + if (yaxe.show && yaxe.title.text !== undefined) { + var graphics = new Graphics(_this3.ctx); + var rect = graphics.getTextRects(yaxe.title.text, yaxe.title.style.fontSize, yaxe.title.style.fontFamily, 'rotate(-90 0 0)', false); + ret.push({ + width: rect.width, + height: rect.height + }); + } else { + ret.push({ + width: 0, + height: 0 + }); + } + }); + return ret; + } + /** + * Get Chart Title/Subtitle Dimensions + * @memberof Dimensions + * @return {{width, height}} + **/ + + }, { + key: "getTitleSubtitleCoords", + value: function getTitleSubtitleCoords(type) { + var w = this.w; + var width = 0; + var height = 0; + var floating = type === 'title' ? w.config.title.floating : w.config.subtitle.floating; + var el = w.globals.dom.baseEl.querySelector(".apexcharts-".concat(type, "-text")); + + if (el !== null && !floating) { + var coord = el.getBoundingClientRect(); + width = coord.width; + height = w.globals.axisCharts ? coord.height + 5 : coord.height; + } + + return { + width: width, + height: height + }; + } + }, { + key: "getLegendsRect", + value: function getLegendsRect() { + var w = this.w; + var elLegendWrap = w.globals.dom.baseEl.querySelector('.apexcharts-legend'); + var lgRect = Object.assign({}, Utils.getBoundingClientRect(elLegendWrap)); + + if (elLegendWrap !== null && !w.config.legend.floating && w.config.legend.show) { + this.lgRect = { + x: lgRect.x, + y: lgRect.y, + height: lgRect.height, + width: lgRect.height === 0 ? 0 : lgRect.width + }; + } else { + this.lgRect = { + x: 0, + y: 0, + height: 0, + width: 0 + }; + } + + return this.lgRect; + } + }]); + + return Dimensions; +}(); + +/** + * ApexCharts TimeScale Class for generating time ticks for x-axis. + * + * @module TimeScale + **/ + +var TimeScale = +/*#__PURE__*/ +function () { + function TimeScale(ctx) { + _classCallCheck(this, TimeScale); + + this.ctx = ctx; + this.w = ctx.w; + this.timeScaleArray = []; + } + + _createClass(TimeScale, [{ + key: "calculateTimeScaleTicks", + value: function calculateTimeScaleTicks(minX, maxX) { + var _this = this; + + var w = this.w; // null check when no series to show + + if (w.globals.allSeriesCollapsed) { + w.globals.labels = []; + w.globals.timelineLabels = []; + return []; + } + + var dt = new DateTime(this.ctx); + var daysDiff = (maxX - minX) / (1000 * 60 * 60 * 24); + this.determineInterval(daysDiff); + w.globals.disableZoomIn = false; + w.globals.disableZoomOut = false; + + if (daysDiff < 0.005) { + w.globals.disableZoomIn = true; + } else if (daysDiff > 50000) { + w.globals.disableZoomOut = true; + } + + var timeIntervals = dt.getTimeUnitsfromTimestamp(minX, maxX); + var daysWidthOnXAxis = w.globals.gridWidth / daysDiff; + var hoursWidthOnXAxis = daysWidthOnXAxis / 24; + var minutesWidthOnXAxis = hoursWidthOnXAxis / 60; + var numberOfHours = Math.floor(daysDiff * 24); + var numberOfMinutes = Math.floor(daysDiff * 24 * 60); + var numberOfDays = Math.floor(daysDiff); + var numberOfMonths = Math.floor(daysDiff / 30); + var numberOfYears = Math.floor(daysDiff / 365); + var firstVal = { + minMinute: timeIntervals.minMinute, + minHour: timeIntervals.minHour, + minDate: timeIntervals.minDate, + minMonth: timeIntervals.minMonth, + minYear: timeIntervals.minYear + }; + var currentMinute = firstVal.minMinute; + var currentHour = firstVal.minHour; + var currentMonthDate = firstVal.minDate; + var currentDate = firstVal.minDate; + var currentMonth = firstVal.minMonth; + var currentYear = firstVal.minYear; + var params = { + firstVal: firstVal, + currentMinute: currentMinute, + currentHour: currentHour, + currentMonthDate: currentMonthDate, + currentDate: currentDate, + currentMonth: currentMonth, + currentYear: currentYear, + daysWidthOnXAxis: daysWidthOnXAxis, + hoursWidthOnXAxis: hoursWidthOnXAxis, + minutesWidthOnXAxis: minutesWidthOnXAxis, + numberOfMinutes: numberOfMinutes, + numberOfHours: numberOfHours, + numberOfDays: numberOfDays, + numberOfMonths: numberOfMonths, + numberOfYears: numberOfYears + }; + + switch (this.tickInterval) { + case 'years': + { + this.generateYearScale(params); + break; + } + + case 'months': + case 'half_year': + { + this.generateMonthScale(params); + break; + } + + case 'months_days': + case 'months_fortnight': + case 'days': + case 'week_days': + { + this.generateDayScale(params); + break; + } + + case 'hours': + { + this.generateHourScale(params); + break; + } + + case 'minutes': + this.generateMinuteScale(params); + break; + } // first, we will adjust the month values index + // as in the upper function, it is starting from 0 + // we will start them from 1 + + + var adjustedMonthInTimeScaleArray = this.timeScaleArray.map(function (ts) { + var defaultReturn = { + position: ts.position, + unit: ts.unit, + year: ts.year, + day: ts.day ? ts.day : 1, + hour: ts.hour ? ts.hour : 0, + month: ts.month + 1 + }; + + if (ts.unit === 'month') { + return _objectSpread({}, defaultReturn, { + value: ts.value + 1 + }); + } else if (ts.unit === 'day' || ts.unit === 'hour') { + return _objectSpread({}, defaultReturn, { + value: ts.value + }); + } else if (ts.unit === 'minute') { + return _objectSpread({}, defaultReturn, { + value: ts.value, + minute: ts.value + }); + } + + return ts; + }); + var filteredTimeScale = adjustedMonthInTimeScaleArray.filter(function (ts) { + var modulo = 1; + var ticks = Math.ceil(w.globals.gridWidth / 120); + var value = ts.value; + + if (w.config.xaxis.tickAmount !== undefined) { + ticks = w.config.xaxis.tickAmount; + } + + if (adjustedMonthInTimeScaleArray.length > ticks) { + modulo = Math.floor(adjustedMonthInTimeScaleArray.length / ticks); + } + + var shouldNotSkipUnit = false; // there is a big change in unit i.e days to months + + var shouldNotPrint = false; // should skip these values + + switch (_this.tickInterval) { + case 'half_year': + modulo = 7; + + if (ts.unit === 'year') { + shouldNotSkipUnit = true; + } + + break; + + case 'months': + modulo = 1; + + if (ts.unit === 'year') { + shouldNotSkipUnit = true; + } + + break; + + case 'months_fortnight': + modulo = 15; + + if (ts.unit === 'year' || ts.unit === 'month') { + shouldNotSkipUnit = true; + } + + if (value === 30) { + shouldNotPrint = true; + } + + break; + + case 'months_days': + modulo = 10; + + if (ts.unit === 'month') { + shouldNotSkipUnit = true; + } + + if (value === 30) { + shouldNotPrint = true; + } + + break; + + case 'week_days': + modulo = 8; + + if (ts.unit === 'month') { + shouldNotSkipUnit = true; + } + + break; + + case 'days': + modulo = 1; + + if (ts.unit === 'month') { + shouldNotSkipUnit = true; + } + + break; + + case 'hours': + if (ts.unit === 'day') { + shouldNotSkipUnit = true; + } + + break; + + case 'minutes': + if (value % 5 !== 0) { + shouldNotPrint = true; + } + + break; + } + + if (_this.tickInterval === 'minutes' || _this.tickInterval === 'hours') { + if (!shouldNotPrint) { + return true; + } + } else { + if ((value % modulo === 0 || shouldNotSkipUnit) && !shouldNotPrint) { + return true; + } + } + }); + return filteredTimeScale; + } + }, { + key: "recalcDimensionsBasedOnFormat", + value: function recalcDimensionsBasedOnFormat(filteredTimeScale) { + var w = this.w; + var reformattedTimescaleArray = this.formatDates(filteredTimeScale); + var removedOverlappingTS = this.removeOverlappingTS(reformattedTimescaleArray); + w.globals.timelineLabels = removedOverlappingTS.slice(); // at this stage, we need to re-calculate coords of the grid as timeline labels may have altered the xaxis labels coords + // The reason we can't do this prior to this stage is because timeline labels depends on gridWidth, and as the ticks are calculated based on available gridWidth, there can be unknown number of ticks generated for different minX and maxX + // Dependency on Dimensions(), need to refactor correctly + // TODO - find an alternate way to avoid calling this Heavy method twice + + var dimensions = new Dimensions(this.ctx); + dimensions.plotCoords(); + } + }, { + key: "determineInterval", + value: function determineInterval(daysDiff) { + switch (true) { + case daysDiff > 1825: + // difference is more than 5 years + this.tickInterval = 'years'; + break; + + case daysDiff > 800 && daysDiff <= 1825: + this.tickInterval = 'half_year'; + break; + + case daysDiff > 180 && daysDiff <= 800: + this.tickInterval = 'months'; + break; + + case daysDiff > 90 && daysDiff <= 180: + this.tickInterval = 'months_fortnight'; + break; + + case daysDiff > 60 && daysDiff <= 90: + this.tickInterval = 'months_days'; + break; + + case daysDiff > 30 && daysDiff <= 60: + this.tickInterval = 'week_days'; + break; + + case daysDiff > 2 && daysDiff <= 30: + this.tickInterval = 'days'; + break; + + case daysDiff > 0.1 && daysDiff <= 2: + // less than 2 days + this.tickInterval = 'hours'; + break; + + case daysDiff < 0.1: + this.tickInterval = 'minutes'; + break; + + default: + this.tickInterval = 'days'; + break; + } + } + }, { + key: "generateYearScale", + value: function generateYearScale(params) { + var firstVal = params.firstVal, + currentMonth = params.currentMonth, + currentYear = params.currentYear, + daysWidthOnXAxis = params.daysWidthOnXAxis, + numberOfYears = params.numberOfYears; + var firstTickValue = firstVal.minYear; + var firstTickPosition = 0; + var dt = new DateTime(this.ctx); + var unit = 'year'; + + if (firstVal.minDate > 1 && firstVal.minMonth > 0) { + var remainingDays = dt.determineRemainingDaysOfYear(firstVal.minYear, firstVal.minMonth, firstVal.minDate); // remainingDaysofFirstMonth is used to reacht the 2nd tick position + + var remainingDaysOfFirstYear = dt.determineDaysOfYear(firstVal.minYear) - remainingDays + 1; // calculate the first tick position + + firstTickPosition = remainingDaysOfFirstYear * daysWidthOnXAxis; + firstTickValue = firstVal.minYear + 1; // push the first tick in the array + + this.timeScaleArray.push({ + position: firstTickPosition, + value: firstTickValue, + unit: unit, + year: firstTickValue, + month: Utils.monthMod(currentMonth + 1) + }); + } else if (firstVal.minDate === 1 && firstVal.minMonth === 0) { + // push the first tick in the array + this.timeScaleArray.push({ + position: firstTickPosition, + value: firstTickValue, + unit: unit, + year: currentYear, + month: Utils.monthMod(currentMonth + 1) + }); + } + + var year = firstTickValue; + var pos = firstTickPosition; // keep drawing rest of the ticks + + for (var i = 0; i < numberOfYears; i++) { + year++; + pos = dt.determineDaysOfYear(year - 1) * daysWidthOnXAxis + pos; + this.timeScaleArray.push({ + position: pos, + value: year, + unit: unit, + year: year, + month: 1 + }); + } + } + }, { + key: "generateMonthScale", + value: function generateMonthScale(params) { + var firstVal = params.firstVal, + currentMonthDate = params.currentMonthDate, + currentMonth = params.currentMonth, + currentYear = params.currentYear, + daysWidthOnXAxis = params.daysWidthOnXAxis, + numberOfMonths = params.numberOfMonths; + var firstTickValue = currentMonth; + var firstTickPosition = 0; + var dt = new DateTime(this.ctx); + var unit = 'month'; + var yrCounter = 0; + + if (firstVal.minDate > 1) { + // remainingDaysofFirstMonth is used to reacht the 2nd tick position + var remainingDaysOfFirstMonth = dt.determineDaysOfMonths(currentMonth + 1, firstVal.minYear) - currentMonthDate + 1; // calculate the first tick position + + firstTickPosition = remainingDaysOfFirstMonth * daysWidthOnXAxis; + firstTickValue = Utils.monthMod(currentMonth + 1); + var year = currentYear + yrCounter; + + var _month = Utils.monthMod(firstTickValue); + + var value = firstTickValue; // it's Jan, so update the year + + if (firstTickValue === 0) { + unit = 'year'; + value = year; + _month = 1; + yrCounter += 1; + year = year + yrCounter; + } // push the first tick in the array + + + this.timeScaleArray.push({ + position: firstTickPosition, + value: value, + unit: unit, + year: year, + month: _month + }); + } else { + // push the first tick in the array + this.timeScaleArray.push({ + position: firstTickPosition, + value: firstTickValue, + unit: unit, + year: currentYear, + month: Utils.monthMod(currentMonth) + }); + } + + var month = firstTickValue + 1; + var pos = firstTickPosition; // keep drawing rest of the ticks + + for (var i = 0, j = 1; i < numberOfMonths; i++, j++) { + month = Utils.monthMod(month); + + if (month === 0) { + unit = 'year'; + yrCounter += 1; + } else { + unit = 'month'; + } + + var _year = currentYear + Math.floor(month / 12) + yrCounter; + + pos = dt.determineDaysOfMonths(month, _year) * daysWidthOnXAxis + pos; + var monthVal = month === 0 ? _year : month; + this.timeScaleArray.push({ + position: pos, + value: monthVal, + unit: unit, + year: _year, + month: month === 0 ? 1 : month + }); + month++; + } + } + }, { + key: "generateDayScale", + value: function generateDayScale(params) { + var firstVal = params.firstVal, + currentMonth = params.currentMonth, + currentYear = params.currentYear, + hoursWidthOnXAxis = params.hoursWidthOnXAxis, + numberOfDays = params.numberOfDays; + var dt = new DateTime(this.ctx); + var unit = 'day'; + var remainingHours = 24 - firstVal.minHour; + var yrCounter = 0; // calculate the first tick position + + var firstTickPosition = remainingHours * hoursWidthOnXAxis; + var firstTickValue = firstVal.minDate + 1; + var val = firstTickValue; + + var changeMonth = function changeMonth(dateVal, month, year) { + var monthdays = dt.determineDaysOfMonths(month + 1, year); + + if (dateVal > monthdays) { + month = month + 1; + date = 1; + unit = 'month'; + val = month; + return month; + } + + return month; + }; + + var date = firstTickValue; + var month = changeMonth(date, currentMonth, currentYear); // push the first tick in the array + + this.timeScaleArray.push({ + position: firstTickPosition, + value: val, + unit: unit, + year: currentYear, + month: Utils.monthMod(month), + day: date + }); + var pos = firstTickPosition; // keep drawing rest of the ticks + + for (var i = 0; i < numberOfDays; i++) { + date += 1; + unit = 'day'; + month = changeMonth(date, month, currentYear + Math.floor(month / 12) + yrCounter); + var year = currentYear + Math.floor(month / 12) + yrCounter; + pos = 24 * hoursWidthOnXAxis + pos; + + var _val = date === 1 ? Utils.monthMod(month) : date; + + this.timeScaleArray.push({ + position: pos, + value: _val, + unit: unit, + year: year, + month: Utils.monthMod(month), + day: _val + }); + } + } + }, { + key: "generateHourScale", + value: function generateHourScale(params) { + var firstVal = params.firstVal, + currentDate = params.currentDate, + currentMonth = params.currentMonth, + currentYear = params.currentYear, + minutesWidthOnXAxis = params.minutesWidthOnXAxis, + numberOfHours = params.numberOfHours; + var dt = new DateTime(this.ctx); + var yrCounter = 0; + var unit = 'hour'; + + var changeDate = function changeDate(dateVal, month) { + var monthdays = dt.determineDaysOfMonths(month + 1, currentYear); + + if (dateVal > monthdays) { + date = 1; + month = month + 1; + } + + return { + month: month, + date: date + }; + }; + + var changeMonth = function changeMonth(dateVal, month) { + var monthdays = dt.determineDaysOfMonths(month + 1, currentYear); + + if (dateVal > monthdays) { + month = month + 1; + return month; + } + + return month; + }; + + var remainingMins = 60 - firstVal.minMinute; + var firstTickPosition = remainingMins * minutesWidthOnXAxis; + var firstTickValue = firstVal.minHour + 1; + var hour = firstTickValue + 1; + + if (remainingMins === 60) { + firstTickPosition = 0; + firstTickValue = firstVal.minHour; + hour = firstTickValue + 1; + } + + var date = currentDate; + var month = changeMonth(date, currentMonth); // push the first tick in the array + + this.timeScaleArray.push({ + position: firstTickPosition, + value: firstTickValue, + unit: unit, + day: date, + hour: hour, + year: currentYear, + month: Utils.monthMod(month) + }); + var pos = firstTickPosition; // keep drawing rest of the ticks + + for (var i = 0; i < numberOfHours; i++) { + unit = 'hour'; + + if (hour >= 24) { + hour = 0; + date += 1; + unit = 'day'; + var checkNextMonth = changeDate(date, month); + month = checkNextMonth.month; + month = changeMonth(date, month); + } + + var year = currentYear + Math.floor(month / 12) + yrCounter; + pos = hour === 0 && i === 0 ? remainingMins * minutesWidthOnXAxis : 60 * minutesWidthOnXAxis + pos; + var val = hour === 0 ? date : hour; + this.timeScaleArray.push({ + position: pos, + value: val, + unit: unit, + hour: hour, + day: date, + year: year, + month: Utils.monthMod(month) + }); + hour++; + } + } + }, { + key: "generateMinuteScale", + value: function generateMinuteScale(params) { + var firstVal = params.firstVal, + currentMinute = params.currentMinute, + currentHour = params.currentHour, + currentDate = params.currentDate, + currentMonth = params.currentMonth, + currentYear = params.currentYear, + minutesWidthOnXAxis = params.minutesWidthOnXAxis, + numberOfMinutes = params.numberOfMinutes; + var yrCounter = 0; + var unit = 'minute'; + var remainingMins = currentMinute - firstVal.minMinute; + var firstTickPosition = minutesWidthOnXAxis - remainingMins; + var firstTickValue = firstVal.minMinute + 1; + var minute = firstTickValue + 1; + var date = currentDate; + var month = currentMonth; + var year = currentYear; + var hour = currentHour; // push the first tick in the array + + this.timeScaleArray.push({ + position: firstTickPosition, + value: firstTickValue, + unit: unit, + day: date, + hour: hour, + minute: minute, + year: year, + month: Utils.monthMod(month) + }); + var pos = firstTickPosition; // keep drawing rest of the ticks + + for (var i = 0; i < numberOfMinutes; i++) { + if (minute >= 60) { + minute = 0; + hour += 1; + + if (hour === 24) { + hour = 0; + } + } + + var _year2 = currentYear + Math.floor(month / 12) + yrCounter; + + pos = minutesWidthOnXAxis + pos; + var val = minute; + this.timeScaleArray.push({ + position: pos, + value: val, + unit: unit, + hour: hour, + minute: minute, + day: date, + year: _year2, + month: Utils.monthMod(month) + }); + minute++; + } + } + }, { + key: "createRawDateString", + value: function createRawDateString(ts, value) { + var raw = ts.year; + raw += '-' + ('0' + ts.month.toString()).slice(-2); // unit is day + + if (ts.unit === 'day') { + raw += ts.unit === 'day' ? '-' + ('0' + value).slice(-2) : '-01'; + } else { + raw += '-' + ('0' + (ts.day ? ts.day : '1')).slice(-2); + } // unit is hour + + + if (ts.unit === 'hour') { + raw += ts.unit === 'hour' ? 'T' + ('0' + value).slice(-2) : 'T00'; + } else { + raw += 'T' + ('0' + (ts.hour ? ts.hour : '0')).slice(-2); + } // unit is minute + + + raw += ts.unit === 'minute' ? ':' + ('0' + value).slice(-2) + ':00.000Z' : ':00:00.000Z'; + return raw; + } + }, { + key: "formatDates", + value: function formatDates(filteredTimeScale) { + var _this2 = this; + + var w = this.w; + var reformattedTimescaleArray = filteredTimeScale.map(function (ts) { + var value = ts.value.toString(); + var dt = new DateTime(_this2.ctx); + + var raw = _this2.createRawDateString(ts, value); // parse the whole ISO datestring + + + var dateString = new Date(Date.parse(raw)); + + if (w.config.xaxis.labels.format === undefined) { + var customFormat = 'dd MMM'; + var dtFormatter = w.config.xaxis.labels.datetimeFormatter; + if (ts.unit === 'year') customFormat = dtFormatter.year; + if (ts.unit === 'month') customFormat = dtFormatter.month; + if (ts.unit === 'day') customFormat = dtFormatter.day; + if (ts.unit === 'hour') customFormat = dtFormatter.hour; + if (ts.unit === 'minute') customFormat = dtFormatter.minute; + value = dt.formatDate(dateString, customFormat, true, false); + } else { + value = dt.formatDate(dateString, w.config.xaxis.labels.format); + } + + return { + dateString: raw, + position: ts.position, + value: value, + unit: ts.unit, + year: ts.year, + month: ts.month + }; + }); + return reformattedTimescaleArray; + } + }, { + key: "removeOverlappingTS", + value: function removeOverlappingTS(arr) { + var _this3 = this; + + var graphics = new Graphics(this.ctx); + var lastDrawnIndex = 0; + var filteredArray = arr.map(function (item, index) { + if (index > 0 && _this3.w.config.xaxis.labels.hideOverlappingLabels) { + var prevLabelWidth = graphics.getTextRects(arr[lastDrawnIndex].value).width; + var prevPos = arr[lastDrawnIndex].position; + var pos = item.position; + + if (pos > prevPos + prevLabelWidth + 10) { + lastDrawnIndex = index; + return item; + } else { + return null; + } + } else { + return item; + } + }); + filteredArray = filteredArray.filter(function (f) { + return f !== null; + }); + return filteredArray; + } + }]); + + return TimeScale; +}(); + +/** + * ApexCharts Core Class responsible for major calculations and creating elements. + * + * @module Core + **/ + +var Core = +/*#__PURE__*/ +function () { + function Core(el, ctx) { + _classCallCheck(this, Core); + + this.ctx = ctx; + this.w = ctx.w; + this.el = el; + this.coreUtils = new CoreUtils(this.ctx); + this.twoDSeries = []; + this.threeDSeries = []; + this.twoDSeriesX = []; + } // get data and store into appropriate vars + + + _createClass(Core, [{ + key: "setupElements", + value: function setupElements() { + var gl = this.w.globals; + var cnf = this.w.config; // const graphics = new Graphics(this.ctx) + + var ct = cnf.chart.type; + var axisChartsArrTypes = ['line', 'area', 'bar', 'candlestick', 'radar', 'scatter', 'bubble', 'heatmap']; + var xyChartsArrTypes = ['line', 'area', 'bar', 'candlestick', 'scatter', 'bubble']; + gl.axisCharts = axisChartsArrTypes.indexOf(ct) > -1; + gl.xyCharts = xyChartsArrTypes.indexOf(ct) > -1; + gl.chartClass = '.apexcharts' + gl.cuid; + gl.dom.baseEl = this.el; + gl.dom.elWrap = document.createElement('div'); + Graphics.setAttrs(gl.dom.elWrap, { + id: gl.chartClass.substring(1), + class: 'apexcharts-canvas ' + gl.chartClass.substring(1) + }); + this.el.appendChild(gl.dom.elWrap); + gl.dom.Paper = new window.SVG.Doc(gl.dom.elWrap); + gl.dom.Paper.attr({ + class: 'apexcharts-svg', + 'xmlns:data': 'ApexChartsNS', + transform: "translate(".concat(cnf.chart.offsetX, ", ").concat(cnf.chart.offsetY, ")") + }); + gl.dom.Paper.node.style.background = cnf.chart.background; + this.setSVGDimensions(); + gl.dom.elGraphical = gl.dom.Paper.group().attr({ + class: 'apexcharts-inner apexcharts-graphical' + }); + gl.dom.elDefs = gl.dom.Paper.defs(); + gl.dom.elLegendWrap = document.createElement('div'); + gl.dom.elLegendWrap.classList.add('apexcharts-legend'); + gl.dom.elWrap.appendChild(gl.dom.elLegendWrap); // gl.dom.Paper.add(gl.dom.elLegendWrap) + + gl.dom.Paper.add(gl.dom.elGraphical); + gl.dom.elGraphical.add(gl.dom.elDefs); + } + }, { + key: "plotChartType", + value: function plotChartType(ser, xyRatios) { + var w = this.w; + var cnf = w.config; + var gl = w.globals; + var lineSeries = { + series: [], + i: [] + }; + var areaSeries = { + series: [], + i: [] + }; + var scatterSeries = { + series: [], + i: [] + }; + var columnSeries = { + series: [], + i: [] + }; + var candlestickSeries = { + series: [], + i: [] + }; + gl.series.map(function (series, st) { + // if user has specified a particular type for particular series + if (typeof ser[st].type !== 'undefined') { + if (ser[st].type === 'column' || ser[st].type === 'bar') { + w.config.plotOptions.bar.horizontal = false; // bar not supported in mixed charts + + columnSeries.series.push(series); + columnSeries.i.push(st); + } else if (ser[st].type === 'area') { + areaSeries.series.push(series); + areaSeries.i.push(st); + } else if (ser[st].type === 'line') { + lineSeries.series.push(series); + lineSeries.i.push(st); + } else if (ser[st].type === 'scatter') { + scatterSeries.series.push(series); + scatterSeries.i.push(st); + } else if (ser[st].type === 'bubble') ; else if (ser[st].type === 'candlestick') { + candlestickSeries.series.push(series); + candlestickSeries.i.push(st); + } else { + // user has specified type, but it is not valid (other than line/area/column) + console.warn('You have specified an unrecognized chart type. Available types for this propery are line/area/column/bar/scatter/bubble'); + } + + gl.comboCharts = true; + } else { + lineSeries.series.push(series); + lineSeries.i.push(st); + } + }); + var line = new Line(this.ctx, xyRatios); + var candlestick = new CandleStick(this.ctx, xyRatios); + var pie = new Pie(this.ctx); + var radialBar = new Radial(this.ctx); + var radar = new Radar(this.ctx); + var elGraph = []; + + if (gl.comboCharts) { + if (areaSeries.series.length > 0) { + elGraph.push(line.draw(areaSeries.series, 'area', areaSeries.i)); + } + + if (columnSeries.series.length > 0) { + if (w.config.chart.stacked) { + var barStacked = new BarStacked(this.ctx, xyRatios); + elGraph.push(barStacked.draw(columnSeries.series, columnSeries.i)); + } else { + var bar = new Bar(this.ctx, xyRatios); + elGraph.push(bar.draw(columnSeries.series, columnSeries.i)); + } + } + + if (lineSeries.series.length > 0) { + elGraph.push(line.draw(lineSeries.series, 'line', lineSeries.i)); + } + + if (candlestickSeries.series.length > 0) { + elGraph.push(candlestick.draw(candlestickSeries.series, candlestickSeries.i)); + } + + if (scatterSeries.series.length > 0) { + var scatterLine = new Line(this.ctx, xyRatios, true); + elGraph.push(scatterLine.draw(scatterSeries.series, 'scatter', scatterSeries.i)); + } // TODO: allow bubble series in a combo chart + // if (bubbleSeries.series.length > 0) { + // const bubbleLine = new Line(this.ctx, xyRatios, true) + // elGraph.push( + // bubbleLine.draw(bubbleSeries.series, 'bubble', bubbleSeries.i) + // ) + // } + + } else { + switch (cnf.chart.type) { + case 'line': + elGraph = line.draw(gl.series, 'line'); + break; + + case 'area': + elGraph = line.draw(gl.series, 'area'); + break; + + case 'bar': + if (cnf.chart.stacked) { + var _barStacked = new BarStacked(this.ctx, xyRatios); + + elGraph = _barStacked.draw(gl.series); + } else { + var _bar = new Bar(this.ctx, xyRatios); + + elGraph = _bar.draw(gl.series); + } + + break; + + case 'candlestick': + var candleStick = new CandleStick(this.ctx, xyRatios); + elGraph = candleStick.draw(gl.series); + break; + + case 'heatmap': + var heatmap = new HeatMap(this.ctx, xyRatios); + elGraph = heatmap.draw(gl.series); + break; + + case 'pie': + case 'donut': + elGraph = pie.draw(gl.series); + break; + + case 'radialBar': + elGraph = radialBar.draw(gl.series); + break; + + case 'radar': + elGraph = radar.draw(gl.series); + break; + + default: + elGraph = line.draw(gl.series); + } + } + + return elGraph; + } + }, { + key: "setSVGDimensions", + value: function setSVGDimensions() { + var gl = this.w.globals; + var cnf = this.w.config; + gl.svgWidth = cnf.chart.width; + gl.svgHeight = cnf.chart.height; + var elDim = Utils.getDimensions(this.el); + var widthUnit = cnf.chart.width.toString().split(/[0-9]+/g).pop(); + + if (widthUnit === '%') { + if (Utils.isNumber(elDim[0])) { + if (elDim[0].width === 0) { + elDim = Utils.getDimensions(this.el.parentNode); + } + + gl.svgWidth = elDim[0] * parseInt(cnf.chart.width) / 100; + } + } else if (widthUnit === 'px' || widthUnit === '') { + gl.svgWidth = parseInt(cnf.chart.width); + } + + if (gl.svgHeight !== 'auto' && gl.svgHeight !== '') { + var heightUnit = cnf.chart.height.toString().split(/[0-9]+/g).pop(); + + if (heightUnit === '%') { + var elParentDim = Utils.getDimensions(this.el.parentNode); + gl.svgHeight = elParentDim[1] * parseInt(cnf.chart.height) / 100; + } else { + gl.svgHeight = parseInt(cnf.chart.height); + } + } else { + if (gl.axisCharts) { + gl.svgHeight = gl.svgWidth / 1.61; + } else { + gl.svgHeight = gl.svgWidth; + } + } + + Graphics.setAttrs(gl.dom.Paper.node, { + width: gl.svgWidth, + height: gl.svgHeight + }); // gl.dom.Paper.node.parentNode.parentNode.style.minWidth = gl.svgWidth + "px"; + + var offsetY = cnf.chart.sparkline.enabled ? 0 : gl.axisCharts ? 14 : 5; + gl.dom.Paper.node.parentNode.parentNode.style.minHeight = gl.svgHeight + offsetY + 'px'; + gl.dom.elWrap.style.width = gl.svgWidth + 'px'; + gl.dom.elWrap.style.height = gl.svgHeight + 'px'; + } + }, { + key: "shiftGraphPosition", + value: function shiftGraphPosition() { + var gl = this.w.globals; + var tY = gl.translateY; + var tX = gl.translateX; + var scalingAttrs = { + transform: 'translate(' + tX + ', ' + tY + ')' + }; + Graphics.setAttrs(gl.dom.elGraphical.node, scalingAttrs); + } + /* + ** All the calculations for setting range in charts will be done here + */ + + }, { + key: "coreCalculations", + value: function coreCalculations() { + var range = new Range$1(this.ctx); + range.init(); + } + }, { + key: "resetGlobals", + value: function resetGlobals() { + var _this = this; + + var gl = this.w.globals; + gl.series = []; + gl.seriesCandleO = []; + gl.seriesCandleH = []; + gl.seriesCandleL = []; + gl.seriesCandleC = []; + gl.seriesPercent = []; + gl.seriesX = []; + gl.seriesZ = []; + gl.seriesNames = []; + gl.seriesTotals = []; + gl.stackedSeriesTotals = []; + gl.labels = []; + gl.timelineLabels = []; + gl.noLabelsProvided = false; + gl.timescaleTicks = []; + gl.resizeTimer = null; + gl.selectionResizeTimer = null; + + gl.seriesXvalues = function () { + return _this.w.config.series.map(function (s) { + return []; + }); + }(); + + gl.seriesYvalues = function () { + return _this.w.config.series.map(function (s) { + return []; + }); + }(); + + gl.delayedElements = []; + gl.pointsArray = []; + gl.dataLabelsRects = []; + gl.isXNumeric = false; + gl.isDataXYZ = false; + gl.maxY = -Number.MAX_VALUE; + gl.minY = Number.MIN_VALUE; + gl.minYArr = []; + gl.maxYArr = []; + gl.maxX = -Number.MAX_VALUE; + gl.minX = Number.MAX_VALUE; + gl.initialmaxX = -Number.MAX_VALUE; + gl.initialminX = Number.MAX_VALUE; + gl.maxDate = 0; + gl.minDate = Number.MAX_VALUE; + gl.minZ = Number.MAX_VALUE; + gl.maxZ = -Number.MAX_VALUE; + gl.yAxisScale = []; + gl.xAxisScale = null; + gl.xAxisTicksPositions = []; + gl.yLabelsCoords = []; + gl.yTitleCoords = []; + gl.xRange = 0; + gl.yRange = []; + gl.zRange = 0; + gl.dataPoints = 0; + } + }, { + key: "isMultipleY", + value: function isMultipleY() { + // user has supplied an array in yaxis property. So, turn on multipleYAxis flag + if (this.w.config.yaxis.constructor === Array && this.w.config.yaxis.length > 1) { + // first, turn off stacking if multiple y axis + this.w.config.chart.stacked = false; + this.w.globals.isMultipleYAxis = true; + return true; + } + } + }, { + key: "excludeCollapsedSeriesInYAxis", + value: function excludeCollapsedSeriesInYAxis() { + var _this2 = this; + + var w = this.w; + w.globals.ignoreYAxisIndexes = w.globals.collapsedSeries.map(function (collapsed, i) { + if (_this2.w.globals.isMultipleYAxis) { + return collapsed.index; + } + }); + } + }, { + key: "isMultiFormat", + value: function isMultiFormat() { + return this.isFormatXY() || this.isFormat2DArray(); + } // given format is [{x, y}, {x, y}] + + }, { + key: "isFormatXY", + value: function isFormatXY() { + var series = this.w.config.series.slice(); + var sr = new Series(this.ctx); + this.activeSeriesIndex = sr.getActiveConfigSeriesIndex(); + + if (typeof series[this.activeSeriesIndex].data !== 'undefined' && series[this.activeSeriesIndex].data.length > 0 && series[this.activeSeriesIndex].data[0] !== null && typeof series[this.activeSeriesIndex].data[0].x !== 'undefined' && series[this.activeSeriesIndex].data[0] !== null) { + return true; + } + } // given format is [[x, y], [x, y]] + + }, { + key: "isFormat2DArray", + value: function isFormat2DArray() { + var series = this.w.config.series.slice(); + var sr = new Series(this.ctx); + this.activeSeriesIndex = sr.getActiveConfigSeriesIndex(); + + if (typeof series[this.activeSeriesIndex].data !== 'undefined' && series[this.activeSeriesIndex].data.length > 0 && typeof series[this.activeSeriesIndex].data[0] !== 'undefined' && series[this.activeSeriesIndex].data[0] !== null && series[this.activeSeriesIndex].data[0].constructor === Array) { + return true; + } + } + }, { + key: "handleFormat2DArray", + value: function handleFormat2DArray(ser, i) { + var cnf = this.w.config; + var gl = this.w.globals; + + for (var j = 0; j < ser[i].data.length; j++) { + if (typeof ser[i].data[j][1] !== 'undefined') { + if (Array.isArray(ser[i].data[j][1]) && ser[i].data[j][1].length === 4) { + this.twoDSeries.push(Utils.parseNumber(ser[i].data[j][1][3])); + } else { + this.twoDSeries.push(Utils.parseNumber(ser[i].data[j][1])); + } + } + + if (cnf.xaxis.type === 'datetime') { + // if timestamps are provided and xaxis type is datettime, + var ts = new Date(ser[i].data[j][0]); + ts = new Date(ts).getTime(); + this.twoDSeriesX.push(ts); + } else { + this.twoDSeriesX.push(ser[i].data[j][0]); + } + } + + for (var _j = 0; _j < ser[i].data.length; _j++) { + if (typeof ser[i].data[_j][2] !== 'undefined') { + this.threeDSeries.push(ser[i].data[_j][2]); + gl.isDataXYZ = true; + } + } + } + }, { + key: "handleFormatXY", + value: function handleFormatXY(ser, i) { + var cnf = this.w.config; + var gl = this.w.globals; + var dt = new DateTime(this.ctx); + var activeI = i; + + if (gl.collapsedSeriesIndices.indexOf(i) > -1) { + // fix #368 + activeI = this.activeSeriesIndex; + } // get series + + + for (var j = 0; j < ser[i].data.length; j++) { + if (typeof ser[i].data[j].y !== 'undefined') { + if (Array.isArray(ser[i].data[j].y) && ser[i].data[j].y.length === 4) { + this.twoDSeries.push(Utils.parseNumber(ser[i].data[j].y[3])); + } else { + this.twoDSeries.push(Utils.parseNumber(ser[i].data[j].y)); + } + } + } // get seriesX + + + for (var _j2 = 0; _j2 < ser[activeI].data.length; _j2++) { + var isXString = typeof ser[activeI].data[_j2].x === 'string'; + var isXDate = !!dt.isValidDate(ser[activeI].data[_j2].x.toString()); + + if (isXString || isXDate) { + // user supplied '01/01/2017' or a date string (a JS date object is not supported) + if (isXString) { + if (cnf.xaxis.type === 'datetime') { + this.twoDSeriesX.push(dt.parseDate(ser[activeI].data[_j2].x)); + } else { + // a category and not a numeric x value + this.fallbackToCategory = true; + this.twoDSeriesX.push(ser[activeI].data[_j2].x); + } + } else { + if (cnf.xaxis.type === 'datetime') { + this.twoDSeriesX.push(dt.parseDate(ser[activeI].data[_j2].x.toString())); + } else { + this.twoDSeriesX.push(parseFloat(ser[activeI].data[_j2].x)); + } + } + } else { + // a numeric value in x property + this.twoDSeriesX.push(ser[activeI].data[_j2].x); + } + } + + if (ser[i].data[0] && typeof ser[i].data[0].z !== 'undefined') { + for (var t = 0; t < ser[i].data.length; t++) { + this.threeDSeries.push(ser[i].data[t].z); + } + + gl.isDataXYZ = true; + } + } + }, { + key: "handleCandleStickData", + value: function handleCandleStickData(ser, i) { + var gl = this.w.globals; + var ohlc = {}; + + if (this.isFormat2DArray()) { + ohlc = this.handleCandleStickDataFormat('array', ser, i); + } else if (this.isFormatXY()) { + ohlc = this.handleCandleStickDataFormat('xy', ser, i); + } + + gl.seriesCandleO.push(ohlc.o); + gl.seriesCandleH.push(ohlc.h); + gl.seriesCandleL.push(ohlc.l); + gl.seriesCandleC.push(ohlc.c); + return ohlc; + } + }, { + key: "handleCandleStickDataFormat", + value: function handleCandleStickDataFormat(format, ser, i) { + var serO = []; + var serH = []; + var serL = []; + var serC = []; + var err = 'Please provide [Open, High, Low and Close] values in valid format. Read more https://apexcharts.com/docs/series/#candlestick'; + + if (format === 'array') { + if (ser[i].data[0][1].length !== 4) { + throw new Error(err); + } + + for (var j = 0; j < ser[i].data.length; j++) { + serO.push(ser[i].data[j][1][0]); + serH.push(ser[i].data[j][1][1]); + serL.push(ser[i].data[j][1][2]); + serC.push(ser[i].data[j][1][3]); + } + } else if (format === 'xy') { + if (ser[i].data[0].y.length !== 4) { + throw new Error(err); + } + + for (var _j3 = 0; _j3 < ser[i].data.length; _j3++) { + serO.push(ser[i].data[_j3].y[0]); + serH.push(ser[i].data[_j3].y[1]); + serL.push(ser[i].data[_j3].y[2]); + serC.push(ser[i].data[_j3].y[3]); + } + } + + return { + o: serO, + h: serH, + l: serL, + c: serC + }; + } + }, { + key: "parseDataAxisCharts", + value: function parseDataAxisCharts(ser) { + var ctx = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.ctx; + var cnf = this.w.config; + var gl = this.w.globals; + var dt = new DateTime(ctx); + + for (var i = 0; i < ser.length; i++) { + this.twoDSeries = []; + this.twoDSeriesX = []; + this.threeDSeries = []; + + if (typeof ser[i].data === 'undefined') { + console.error("It is a possibility that you may have not included 'data' property in series."); + return; + } + + if (this.isMultiFormat()) { + if (this.isFormat2DArray()) { + this.handleFormat2DArray(ser, i); + } else if (this.isFormatXY()) { + this.handleFormatXY(ser, i); + } + + if (cnf.chart.type === 'candlestick' || ser[i].type === 'candlestick') { + this.handleCandleStickData(ser, i); + } + + gl.series.push(this.twoDSeries); + gl.labels.push(this.twoDSeriesX); + gl.seriesX.push(this.twoDSeriesX); + + if (!this.fallbackToCategory) { + gl.isXNumeric = true; + } + } else { + if (cnf.xaxis.type === 'datetime') { + // user didn't supplied [{x,y}] or [[x,y]], but single array in data. + // Also labels/categories were supplied differently + gl.isXNumeric = true; + var dates = cnf.labels.length > 0 ? cnf.labels.slice() : cnf.xaxis.categories.slice(); + + for (var j = 0; j < dates.length; j++) { + if (typeof dates[j] === 'string') { + var isDate = dt.isValidDate(dates[j]); + + if (isDate) { + this.twoDSeriesX.push(dt.parseDate(dates[j])); + } else { + throw new Error('You have provided invalid Date format. Please provide a valid JavaScript Date'); + } + } + } + + gl.seriesX.push(this.twoDSeriesX); + } else if (cnf.xaxis.type === 'numeric') { + gl.isXNumeric = true; + var x = cnf.labels.length > 0 ? cnf.labels.slice() : cnf.xaxis.categories.slice(); + + if (x.length > 0) { + this.twoDSeriesX = x; + gl.seriesX.push(this.twoDSeriesX); + } + } + + gl.labels.push(this.twoDSeriesX); + var singleArray = ser[i].data.map(function (d) { + return Utils.parseNumber(d); + }); + gl.series.push(singleArray); + } + + gl.seriesZ.push(this.threeDSeries); + + if (ser[i].name !== undefined) { + gl.seriesNames.push(ser[i].name); + } else { + gl.seriesNames.push('series-' + parseInt(i + 1)); + } + } + + return this.w; + } + }, { + key: "parseDataNonAxisCharts", + value: function parseDataNonAxisCharts(ser) { + var gl = this.w.globals; + var cnf = this.w.config; + gl.series = ser.slice(); + gl.seriesNames = cnf.labels.slice(); + + for (var i = 0; i < gl.series.length; i++) { + if (gl.seriesNames[i] === undefined) { + gl.seriesNames.push('series-' + (i + 1)); + } + } + + return this.w; + } + }, { + key: "handleExternalLabelsData", + value: function handleExternalLabelsData(ser) { + var cnf = this.w.config; + var gl = this.w.globals; // user provided labels in category axis + + if (cnf.xaxis.categories.length > 0) { + gl.labels = cnf.xaxis.categories; + } else if (cnf.labels.length > 0) { + gl.labels = cnf.labels.slice(); + } else if (this.fallbackToCategory) { + gl.labels = gl.labels[0]; + } else { + // user didn't provided labels, fallback to 1-2-3-4-5 + var labelArr = []; + + if (gl.axisCharts) { + for (var i = 0; i < gl.series[gl.maxValsInArrayIndex].length; i++) { + labelArr.push(i + 1); + } + + for (var _i = 0; _i < ser.length; _i++) { + gl.seriesX.push(labelArr); + } + + gl.isXNumeric = true; + } // no series to pull labels from, put a 0-10 series + + + if (labelArr.length === 0) { + labelArr = [0, 10]; + + for (var _i2 = 0; _i2 < ser.length; _i2++) { + gl.seriesX.push(labelArr); + } + } + + gl.labels = labelArr; + gl.noLabelsProvided = true; + + if (cnf.xaxis.type === 'category') { + gl.isXNumeric = false; + } + } + } // Segregate user provided data into appropriate vars + + }, { + key: "parseData", + value: function parseData(ser) { + var w = this.w; + var cnf = w.config; + var gl = w.globals; + this.excludeCollapsedSeriesInYAxis(); + this.fallbackToCategory = false; + this.resetGlobals(); + this.isMultipleY(); + + if (gl.axisCharts) { + this.parseDataAxisCharts(ser); + } else { + this.parseDataNonAxisCharts(ser); + } + + this.coreUtils.getLargestSeries(); // set Null values to 0 in all series when user hides/shows some series + + if (cnf.chart.type === 'bar' && cnf.chart.stacked) { + var series = new Series(this.ctx); + gl.series = series.setNullSeriesToZeroValues(gl.series); + } + + this.coreUtils.getSeriesTotals(); + + if (gl.axisCharts) { + this.coreUtils.getStackedSeriesTotals(); + } + + this.coreUtils.getPercentSeries(); // user didn't provide a [[x,y],[x,y]] series, but a named series + + if (!gl.isXNumeric || cnf.xaxis.type === 'numeric' && cnf.labels.length === 0 && cnf.xaxis.categories.length === 0) { + this.handleExternalLabelsData(ser); + } + } + }, { + key: "xySettings", + value: function xySettings() { + var xyRatios = null; + var w = this.w; + + if (w.globals.axisCharts) { + if (w.config.xaxis.crosshairs.position === 'back') { + var crosshairs = new Crosshairs(this.ctx); + crosshairs.drawXCrosshairs(); + } + + if (w.config.yaxis[0].crosshairs.position === 'back') { + var _crosshairs = new Crosshairs(this.ctx); + + _crosshairs.drawYCrosshairs(); + } + + xyRatios = this.coreUtils.getCalculatedRatios(); + + if (w.config.xaxis.type === 'datetime' && w.config.xaxis.labels.formatter === undefined && isFinite(w.globals.minX) && isFinite(w.globals.maxX)) { + var ts = new TimeScale(this.ctx); + var formattedTimeScale = ts.calculateTimeScaleTicks(w.globals.minX, w.globals.maxX); + ts.recalcDimensionsBasedOnFormat(formattedTimeScale); + } + } + + return xyRatios; + } + }, { + key: "drawAxis", + value: function drawAxis(type, xyRatios) { + var gl = this.w.globals; + var cnf = this.w.config; + var xAxis = new XAxis(this.ctx); + var yAxis = new YAxis(this.ctx); + + if (gl.axisCharts && type !== 'radar') { + var elXaxis, elYaxis; + + if (type === 'bar' && cnf.plotOptions.bar.horizontal) { + elYaxis = yAxis.drawYaxisInversed(0); + elXaxis = xAxis.drawXaxisInversed(0); + gl.dom.elGraphical.add(elXaxis); + gl.dom.elGraphical.add(elYaxis); + } else { + elXaxis = xAxis.drawXaxis(); + gl.dom.elGraphical.add(elXaxis); + cnf.yaxis.map(function (yaxe, index) { + if (gl.ignoreYAxisIndexes.indexOf(index) === -1) { + elYaxis = yAxis.drawYaxis(index); + gl.dom.Paper.add(elYaxis); + } + }); + } + } + + cnf.yaxis.map(function (yaxe, index) { + if (gl.ignoreYAxisIndexes.indexOf(index) === -1) { + yAxis.yAxisTitleRotate(index, yaxe.opposite); + } + }); + } + }, { + key: "setupBrushHandler", + value: function setupBrushHandler() { + var _this3 = this; + + var w = this.w; // only for brush charts + + if (!w.config.chart.brush.enabled) { + return; + } // if user has not defined a custom function for selection - we handle the brush chart + // otherwise we leave it to the user to define the functionality for selection + + + if (typeof w.config.chart.events.selection !== 'function') { + var targets = w.config.chart.brush.targets || [w.config.chart.brush.target]; // retro compatibility with single target option + + targets.forEach(function (target) { + var targetChart = ApexCharts.getChartByID(target); + targetChart.w.globals.brushSource = _this3.ctx; + + var updateSourceChart = function updateSourceChart() { + _this3.ctx._updateOptions({ + chart: { + selection: { + xaxis: { + min: targetChart.w.globals.minX, + max: targetChart.w.globals.maxX + } + } + } + }, false, false); + }; + + if (typeof targetChart.w.config.chart.events.zoomed !== 'function') { + targetChart.w.config.chart.events.zoomed = function () { + updateSourceChart(); + }; + } + + if (typeof targetChart.w.config.chart.events.scrolled !== 'function') { + targetChart.w.config.chart.events.scrolled = function () { + updateSourceChart(); + }; + } + + w.config.chart.events.selection = function (chart, e) { + var yaxis = Utils.clone(w.config.yaxis); + + if (w.config.chart.brush.autoScaleYaxis) { + var scale = new Range(targetChart); + yaxis = scale.autoScaleY(targetChart, e); + } + + targetChart._updateOptions({ + xaxis: { + min: e.xaxis.min, + max: e.xaxis.max + }, + yaxis: yaxis + }, false, false, false); + }; + }); + } + } + }]); + + return Core; +}(); + +/** + * @this {Promise} + */ +function finallyConstructor(callback) { + var constructor = this.constructor; + return this.then( + function(value) { + return constructor.resolve(callback()).then(function() { + return value; + }); + }, + function(reason) { + return constructor.resolve(callback()).then(function() { + return constructor.reject(reason); + }); + } + ); +} + +// Store setTimeout reference so promise-polyfill will be unaffected by +// other code modifying setTimeout (like sinon.useFakeTimers()) +var setTimeoutFunc = setTimeout; + +function noop() {} + +// Polyfill for Function.prototype.bind +function bind(fn, thisArg) { + return function() { + fn.apply(thisArg, arguments); + }; +} + +/** + * @constructor + * @param {Function} fn + */ +function Promise$1(fn) { + if (!(this instanceof Promise$1)) + throw new TypeError('Promises must be constructed via new'); + if (typeof fn !== 'function') throw new TypeError('not a function'); + /** @type {!number} */ + this._state = 0; + /** @type {!boolean} */ + this._handled = false; + /** @type {Promise|undefined} */ + this._value = undefined; + /** @type {!Array} */ + this._deferreds = []; + + doResolve(fn, this); +} + +function handle(self, deferred) { + while (self._state === 3) { + self = self._value; + } + if (self._state === 0) { + self._deferreds.push(deferred); + return; + } + self._handled = true; + Promise$1._immediateFn(function() { + var cb = self._state === 1 ? deferred.onFulfilled : deferred.onRejected; + if (cb === null) { + (self._state === 1 ? resolve : reject)(deferred.promise, self._value); + return; + } + var ret; + try { + ret = cb(self._value); + } catch (e) { + reject(deferred.promise, e); + return; + } + resolve(deferred.promise, ret); + }); +} + +function resolve(self, newValue) { + try { + // Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure + if (newValue === self) + throw new TypeError('A promise cannot be resolved with itself.'); + if ( + newValue && + (typeof newValue === 'object' || typeof newValue === 'function') + ) { + var then = newValue.then; + if (newValue instanceof Promise$1) { + self._state = 3; + self._value = newValue; + finale(self); + return; + } else if (typeof then === 'function') { + doResolve(bind(then, newValue), self); + return; + } + } + self._state = 1; + self._value = newValue; + finale(self); + } catch (e) { + reject(self, e); + } +} + +function reject(self, newValue) { + self._state = 2; + self._value = newValue; + finale(self); +} + +function finale(self) { + if (self._state === 2 && self._deferreds.length === 0) { + Promise$1._immediateFn(function() { + if (!self._handled) { + Promise$1._unhandledRejectionFn(self._value); + } + }); + } + + for (var i = 0, len = self._deferreds.length; i < len; i++) { + handle(self, self._deferreds[i]); + } + self._deferreds = null; +} + +/** + * @constructor + */ +function Handler(onFulfilled, onRejected, promise) { + this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null; + this.onRejected = typeof onRejected === 'function' ? onRejected : null; + this.promise = promise; +} + +/** + * Take a potentially misbehaving resolver function and make sure + * onFulfilled and onRejected are only called once. + * + * Makes no guarantees about asynchrony. + */ +function doResolve(fn, self) { + var done = false; + try { + fn( + function(value) { + if (done) return; + done = true; + resolve(self, value); + }, + function(reason) { + if (done) return; + done = true; + reject(self, reason); + } + ); + } catch (ex) { + if (done) return; + done = true; + reject(self, ex); + } +} + +Promise$1.prototype['catch'] = function(onRejected) { + return this.then(null, onRejected); +}; + +Promise$1.prototype.then = function(onFulfilled, onRejected) { + // @ts-ignore + var prom = new this.constructor(noop); + + handle(this, new Handler(onFulfilled, onRejected, prom)); + return prom; +}; + +Promise$1.prototype['finally'] = finallyConstructor; + +Promise$1.all = function(arr) { + return new Promise$1(function(resolve, reject) { + if (!arr || typeof arr.length === 'undefined') + throw new TypeError('Promise.all accepts an array'); + var args = Array.prototype.slice.call(arr); + if (args.length === 0) return resolve([]); + var remaining = args.length; + + function res(i, val) { + try { + if (val && (typeof val === 'object' || typeof val === 'function')) { + var then = val.then; + if (typeof then === 'function') { + then.call( + val, + function(val) { + res(i, val); + }, + reject + ); + return; + } + } + args[i] = val; + if (--remaining === 0) { + resolve(args); + } + } catch (ex) { + reject(ex); + } + } + + for (var i = 0; i < args.length; i++) { + res(i, args[i]); + } + }); +}; + +Promise$1.resolve = function(value) { + if (value && typeof value === 'object' && value.constructor === Promise$1) { + return value; + } + + return new Promise$1(function(resolve) { + resolve(value); + }); +}; + +Promise$1.reject = function(value) { + return new Promise$1(function(resolve, reject) { + reject(value); + }); +}; + +Promise$1.race = function(values) { + return new Promise$1(function(resolve, reject) { + for (var i = 0, len = values.length; i < len; i++) { + values[i].then(resolve, reject); + } + }); +}; + +// Use polyfill for setImmediate for performance gains +Promise$1._immediateFn = + (typeof setImmediate === 'function' && + function(fn) { + setImmediate(fn); + }) || + function(fn) { + setTimeoutFunc(fn, 0); + }; + +Promise$1._unhandledRejectionFn = function _unhandledRejectionFn(err) { + if (typeof console !== 'undefined' && console) { + console.warn('Possible Unhandled Promise Rejection:', err); // eslint-disable-line no-console + } +}; + +var Exports = +/*#__PURE__*/ +function () { + function Exports(ctx) { + _classCallCheck(this, Exports); + + this.ctx = ctx; + this.w = ctx.w; + } + + _createClass(Exports, [{ + key: "getSvgString", + value: function getSvgString() { + return this.w.globals.dom.Paper.svg(); + } + }, { + key: "cleanup", + value: function cleanup() { + var w = this.w; // hide some elements to avoid printing them on exported svg + + var xcrosshairs = w.globals.dom.baseEl.querySelector('.apexcharts-xcrosshairs'); + var ycrosshairs = w.globals.dom.baseEl.querySelector('.apexcharts-ycrosshairs'); + + if (xcrosshairs) { + xcrosshairs.setAttribute('x', -500); + } + + if (ycrosshairs) { + ycrosshairs.setAttribute('y1', -100); + ycrosshairs.setAttribute('y2', -100); + } + } + }, { + key: "svgUrl", + value: function svgUrl() { + this.cleanup(); + var svgData = this.getSvgString(); + var svgBlob = new Blob([svgData], { + type: 'image/svg+xml;charset=utf-8' + }); + return URL.createObjectURL(svgBlob); + } + }, { + key: "dataURI", + value: function dataURI() { + var _this = this; + + return new Promise$1(function (resolve) { + var w = _this.w; + + _this.cleanup(); + + var canvas = document.createElement('canvas'); + canvas.width = w.globals.svgWidth; + canvas.height = w.globals.svgHeight; + var canvasBg = w.config.chart.background === 'transparent' ? '#fff' : w.config.chart.background; + var ctx = canvas.getContext('2d'); + ctx.fillStyle = canvasBg; + ctx.fillRect(0, 0, canvas.width, canvas.height); + var DOMURL = window.URL || window.webkitURL || window; + var img = new Image(); + img.crossOrigin = 'anonymous'; + + var svgData = _this.getSvgString(); + + var svgUrl = 'data:image/svg+xml,' + encodeURIComponent(svgData); + + img.onload = function () { + ctx.drawImage(img, 0, 0); + DOMURL.revokeObjectURL(svgUrl); + var imgURI = canvas.toDataURL('image/png'); + resolve(imgURI); + }; + + img.src = svgUrl; + }); + } + }, { + key: "exportToSVG", + value: function exportToSVG() { + this.triggerDownload(this.svgUrl(), '.svg'); + } + }, { + key: "exportToPng", + value: function exportToPng() { + var _this2 = this; + + this.dataURI().then(function (imgURI) { + _this2.triggerDownload(imgURI, '.png'); + }); + } + }, { + key: "triggerDownload", + value: function triggerDownload(href, ext) { + var downloadLink = document.createElement('a'); + downloadLink.href = href; + downloadLink.download = this.w.globals.chartID + ext; + document.body.appendChild(downloadLink); + downloadLink.click(); + document.body.removeChild(downloadLink); + } + }]); + + return Exports; +}(); + +/** + * ApexCharts Grid Class for drawing Cartesian Grid. + * + * @module Grid + **/ + +var Grid = +/*#__PURE__*/ +function () { + function Grid(ctx) { + _classCallCheck(this, Grid); + + this.ctx = ctx; + this.w = ctx.w; + var w = this.w; + this.anim = new Animations(this.ctx); + this.xaxisLabels = w.globals.labels.slice(); + this.animX = w.config.grid.xaxis.lines.animate && w.config.chart.animations.enabled; + this.animY = w.config.grid.yaxis.lines.animate && w.config.chart.animations.enabled; + + if (w.globals.timelineLabels.length > 0) { + // timeline labels are there + this.xaxisLabels = w.globals.timelineLabels.slice(); + } + } // .when using sparklines or when showing no grid, we need to have a grid area which is reused at many places for other calculations as well + + + _createClass(Grid, [{ + key: "drawGridArea", + value: function drawGridArea() { + var elGrid = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + var w = this.w; + var graphics = new Graphics(this.ctx); + + if (elGrid === null) { + elGrid = graphics.group({ + class: 'apexcharts-grid' + }); + } + + var elVerticalLine = graphics.drawLine(w.globals.padHorizontal, 1, w.globals.padHorizontal, w.globals.gridHeight, 'transparent'); + var elHorzLine = graphics.drawLine(w.globals.padHorizontal, w.globals.gridHeight, w.globals.gridWidth, w.globals.gridHeight, 'transparent'); + elGrid.add(elHorzLine); + elGrid.add(elVerticalLine); + return elGrid; + } + }, { + key: "drawGrid", + value: function drawGrid() { + var w = this.w; + var xAxis = new XAxis(this.ctx); + var gl = this.w.globals; + var elgrid = null; + + if (gl.axisCharts) { + if (w.config.grid.show) { + // grid is drawn after xaxis and yaxis are drawn + elgrid = this.renderGrid(); + gl.dom.elGraphical.add(elgrid.el); + this.drawGridArea(elgrid.el); + } else { + var elgridArea = this.drawGridArea(); + gl.dom.elGraphical.add(elgridArea); + } + + if (elgrid !== null) { + xAxis.xAxisLabelCorrections(elgrid.xAxisTickWidth); + } + } + } // This mask will clip off overflowing graphics from the drawable area + + }, { + key: "createGridMask", + value: function createGridMask() { + var w = this.w; + var gl = w.globals; + var graphics = new Graphics(this.ctx); + var strokeSize = Array.isArray(w.config.stroke.width) ? 0 : w.config.stroke.width; + + if (Array.isArray(w.config.stroke.width)) { + var strokeMaxSize = 0; + w.config.stroke.width.forEach(function (m) { + strokeMaxSize = Math.max(strokeMaxSize, m); + }); + strokeSize = strokeMaxSize; + } + + gl.dom.elGridRectMask = document.createElementNS(gl.SVGNS, 'clipPath'); + gl.dom.elGridRectMask.setAttribute('id', "gridRectMask".concat(gl.cuid)); + gl.dom.elGridRectMarkerMask = document.createElementNS(gl.SVGNS, 'clipPath'); + gl.dom.elGridRectMarkerMask.setAttribute('id', "gridRectMarkerMask".concat(gl.cuid)); + gl.dom.elGridRect = graphics.drawRect(-strokeSize / 2, -strokeSize / 2, gl.gridWidth + strokeSize, gl.gridHeight + strokeSize, 0, '#fff'); + var coreUtils = new CoreUtils(this); + coreUtils.getLargestMarkerSize(); + var markerSize = w.globals.markers.largestSize + w.config.markers.hover.sizeOffset + 1; + gl.dom.elGridRectMarker = graphics.drawRect(-markerSize, -markerSize, gl.gridWidth + markerSize * 2, gl.gridHeight + markerSize * 2, 0, '#fff'); + gl.dom.elGridRectMask.appendChild(gl.dom.elGridRect.node); + gl.dom.elGridRectMarkerMask.appendChild(gl.dom.elGridRectMarker.node); + var defs = gl.dom.baseEl.querySelector('defs'); + defs.appendChild(gl.dom.elGridRectMask); + defs.appendChild(gl.dom.elGridRectMarkerMask); + } // actual grid rendering + + }, { + key: "renderGrid", + value: function renderGrid() { + var w = this.w; + var graphics = new Graphics(this.ctx); + var strokeDashArray = w.config.grid.strokeDashArray; + var elg = graphics.group({ + class: 'apexcharts-grid' + }); + var tickAmount = 8; + + for (var i = 0; i < w.globals.series.length; i++) { + if (typeof w.globals.yAxisScale[i] !== 'undefined') { + tickAmount = w.globals.yAxisScale[i].result.length - 1; + } + + if (tickAmount > 2) break; + } + + var xCount; + var inversedGrid = !!(w.config.plotOptions.bar.horizontal && w.config.chart.type === 'bar'); + + if (!inversedGrid) { + xCount = this.xaxisLabels.length; // draw vertical lines + + if (w.config.grid.xaxis.lines.show || w.config.xaxis.axisTicks.show) { + var x1 = w.globals.padHorizontal; + var y1 = 0; + var x2; + var y2 = w.globals.gridHeight; + + if (w.globals.timelineLabels.length > 0) { + for (var _i = 0; _i < xCount; _i++) { + x1 = this.xaxisLabels[_i].position; + x2 = this.xaxisLabels[_i].position; + + if (w.config.grid.xaxis.lines.show && x1 > 0 && x1 < w.globals.gridWidth) { + var line = graphics.drawLine(x1, y1, x2, y2, w.config.grid.borderColor, strokeDashArray); + line.node.classList.add('apexcharts-gridline'); + elg.add(line); + + if (this.animX) { + this.animateLine(line, { + x1: 0, + x2: 0 + }, { + x1: x1, + x2: x2 + }); + } + } + + var xAxis = new XAxis(this.ctx); + xAxis.drawXaxisTicks(x1, elg); + } + } else { + var xCountForCategoryCharts = xCount; + + for (var _i2 = 0; _i2 < xCountForCategoryCharts; _i2++) { + var x1Count = xCountForCategoryCharts; + + if (w.globals.isXNumeric && w.config.chart.type !== 'bar') { + x1Count -= 1; + } + + x1 = x1 + w.globals.gridWidth / x1Count; + x2 = x1; // skip the last line + + if (_i2 === x1Count - 1) break; + + if (w.config.grid.xaxis.lines.show) { + var _line = graphics.drawLine(x1, y1, x2, y2, w.config.grid.borderColor, strokeDashArray); + + _line.node.classList.add('apexcharts-gridline'); + + elg.add(_line); + + if (this.animX) { + this.animateLine(_line, { + x1: 0, + x2: 0 + }, { + x1: x1, + x2: x2 + }); + } + } + + var _xAxis = new XAxis(this.ctx); + + _xAxis.drawXaxisTicks(x1, elg); + } + } + } // draw horizontal lines + + + if (w.config.grid.yaxis.lines.show) { + var _x = 0; + var _y = 0; + var _y2 = 0; + var _x2 = w.globals.gridWidth; + + for (var _i3 = 0; _i3 < tickAmount + 1; _i3++) { + var _line2 = graphics.drawLine(_x, _y, _x2, _y2, w.config.grid.borderColor, strokeDashArray); + + elg.add(_line2); + + _line2.node.classList.add('apexcharts-gridline'); + + if (this.animY) { + this.animateLine(_line2, { + y1: _y + 20, + y2: _y2 + 20 + }, { + y1: _y, + y2: _y2 + }); + } + + _y = _y + w.globals.gridHeight / tickAmount; + _y2 = _y; + } + } + } else { + xCount = tickAmount; // draw vertical lines + + if (w.config.grid.xaxis.lines.show || w.config.xaxis.axisTicks.show) { + var _x3 = w.globals.padHorizontal; + var _y3 = 0; + + var _x4; + + var _y4 = w.globals.gridHeight; + + for (var _i4 = 0; _i4 < xCount + 1; _i4++) { + _x3 = _x3 + w.globals.gridWidth / xCount + 0.3; + _x4 = _x3; // skip the last vertical line + + if (_i4 === xCount - 1) break; + + if (w.config.grid.xaxis.lines.show) { + var _line3 = graphics.drawLine(_x3, _y3, _x4, _y4, w.config.grid.borderColor, strokeDashArray); + + _line3.node.classList.add('apexcharts-gridline'); + + elg.add(_line3); + + if (this.animX) { + this.animateLine(_line3, { + x1: 0, + x2: 0 + }, { + x1: _x3, + x2: _x4 + }); + } + } // skip the first vertical line + + + var _xAxis2 = new XAxis(this.ctx); + + _xAxis2.drawXaxisTicks(_x3, elg); + } + } // draw horizontal lines + + + if (w.config.grid.yaxis.lines.show) { + var _x5 = 0; + var _y5 = 0; + var _y6 = 0; + var _x6 = w.globals.gridWidth; + + for (var _i5 = 0; _i5 < w.globals.dataPoints + 1; _i5++) { + var _line4 = graphics.drawLine(_x5, _y5, _x6, _y6, w.config.grid.borderColor, strokeDashArray); + + elg.add(_line4); + + _line4.node.classList.add('apexcharts-gridline'); + + if (this.animY) { + this.animateLine(_line4, { + y1: _y5 + 20, + y2: _y6 + 20 + }, { + y1: _y5, + y2: _y6 + }); + } + + _y5 = _y5 + w.globals.gridHeight / w.globals.dataPoints; + _y6 = _y5; + } + } + } + + this.drawGridBands(elg, xCount, tickAmount); + return { + el: elg, + xAxisTickWidth: w.globals.gridWidth / xCount + }; + } + }, { + key: "drawGridBands", + value: function drawGridBands(elg, xCount, tickAmount) { + var w = this.w; + var graphics = new Graphics(this.ctx); // rows background bands + + if (w.config.grid.row.colors !== undefined && w.config.grid.row.colors.length > 0) { + var x1 = 0; + var y1 = 0; + var y2 = w.globals.gridHeight / tickAmount; + var x2 = w.globals.gridWidth; + + for (var i = 0, c = 0; i < tickAmount; i++, c++) { + if (c >= w.config.grid.row.colors.length) { + c = 0; + } + + var color = w.config.grid.row.colors[c]; + var rect = graphics.drawRect(x1, y1, x2, y2, 0, color, w.config.grid.row.opacity); + elg.add(rect); + rect.node.classList.add('apexcharts-gridRow'); + y1 = y1 + w.globals.gridHeight / tickAmount; + } + } // columns background bands + + + if (w.config.grid.column.colors !== undefined && w.config.grid.column.colors.length > 0) { + var _x7 = w.globals.padHorizontal; + var _y7 = 0; + + var _x8 = w.globals.padHorizontal + w.globals.gridWidth / xCount; + + var _y8 = w.globals.gridHeight; + + for (var _i6 = 0, _c = 0; _i6 < xCount; _i6++, _c++) { + if (_c >= w.config.grid.column.colors.length) { + _c = 0; + } + + var _color = w.config.grid.column.colors[_c]; + + var _rect = graphics.drawRect(_x7, _y7, _x8, _y8, 0, _color, w.config.grid.column.opacity); + + _rect.node.classList.add('apexcharts-gridColumn'); + + elg.add(_rect); + _x7 = _x7 + w.globals.gridWidth / xCount; + } + } + } + }, { + key: "animateLine", + value: function animateLine(line, from, to) { + var w = this.w; + var initialAnim = w.config.chart.animations; + + if (initialAnim && !w.globals.resized && !w.globals.dataChanged) { + var speed = initialAnim.speed; + this.anim.animateLine(line, from, to, speed); + } + } + }]); + + return Grid; +}(); + +/** + * ApexCharts Legend Class to draw legend. + * + * @module Legend + **/ + +var Legend = +/*#__PURE__*/ +function () { + function Legend(ctx, opts) { + _classCallCheck(this, Legend); + + this.ctx = ctx; + this.w = ctx.w; + this.onLegendClick = this.onLegendClick.bind(this); + this.onLegendHovered = this.onLegendHovered.bind(this); + } + + _createClass(Legend, [{ + key: "init", + value: function init() { + var w = this.w; + var gl = w.globals; + var cnf = w.config; + var showLegendAlways = cnf.legend.showForSingleSeries && gl.series.length === 1 || gl.series.length > 1; + + if ((showLegendAlways || !gl.axisCharts) && cnf.legend.show) { + while (gl.dom.elLegendWrap.firstChild) { + gl.dom.elLegendWrap.removeChild(gl.dom.elLegendWrap.firstChild); + } + + this.drawLegends(); + + if (!Utils.isIE11()) { + this.appendToForeignObject(); + } else { + // IE11 doesn't supports foreignObject, hence append it to + document.getElementsByTagName('head')[0].appendChild(this.getLegendStyles()); + } + + if (cnf.legend.position === 'bottom' || cnf.legend.position === 'top') { + this.legendAlignHorizontal(); + } else if (cnf.legend.position === 'right' || cnf.legend.position === 'left') { + this.legendAlignVertical(); + } + } + } + }, { + key: "appendToForeignObject", + value: function appendToForeignObject() { + var gl = this.w.globals; + var elForeign = document.createElementNS(gl.SVGNS, 'foreignObject'); + elForeign.setAttribute('x', 0); + elForeign.setAttribute('y', 0); + elForeign.setAttribute('width', gl.svgWidth); + elForeign.setAttribute('height', gl.svgHeight); + gl.dom.elLegendWrap.setAttribute('xmlns', 'http://www.w3.org/1999/xhtml'); + elForeign.appendChild(gl.dom.elLegendWrap); + elForeign.appendChild(this.getLegendStyles()); + gl.dom.Paper.node.insertBefore(elForeign, gl.dom.elGraphical.node); + } + }, { + key: "drawLegends", + value: function drawLegends() { + var self = this; + var w = this.w; + var fontFamily = w.config.legend.fontFamily; + var legendNames = w.globals.seriesNames; + var fillcolor = w.globals.colors.slice(); + + if (w.config.chart.type === 'heatmap') { + var ranges = w.config.plotOptions.heatmap.colorScale.ranges; + legendNames = ranges.map(function (colorScale) { + return colorScale.name ? colorScale.name : colorScale.from + ' - ' + colorScale.to; + }); + fillcolor = ranges.map(function (color) { + return color.color; + }); + } + + var legendFormatter = w.globals.legendFormatter; + + for (var i = 0; i <= legendNames.length - 1; i++) { + var text = legendFormatter(legendNames[i], { + seriesIndex: i, + w: w + }); + var collapsedSeries = false; + var ancillaryCollapsedSeries = false; + + if (w.globals.collapsedSeries.length > 0) { + for (var c = 0; c < w.globals.collapsedSeries.length; c++) { + if (w.globals.collapsedSeries[c].index === i) { + collapsedSeries = true; + } + } + } + + if (w.globals.ancillaryCollapsedSeriesIndices.length > 0) { + for (var _c = 0; _c < w.globals.ancillaryCollapsedSeriesIndices.length; _c++) { + if (w.globals.ancillaryCollapsedSeriesIndices[_c] === i) { + ancillaryCollapsedSeries = true; + } + } + } + + var elMarker = document.createElement('span'); + elMarker.classList.add('apexcharts-legend-marker'); + var mOffsetX = w.config.legend.markers.offsetX; + var mOffsetY = w.config.legend.markers.offsetY; + var mHeight = w.config.legend.markers.height; + var mWidth = w.config.legend.markers.width; + var mBorderWidth = w.config.legend.markers.strokeWidth; + var mBorderColor = w.config.legend.markers.strokeColor; + var mBorderRadius = w.config.legend.markers.radius; + var mStyle = elMarker.style; + mStyle.background = fillcolor[i]; + mStyle.color = fillcolor[i]; + mStyle.height = Array.isArray(mHeight) ? parseFloat(mHeight[i]) + 'px' : parseFloat(mHeight) + 'px'; + mStyle.width = Array.isArray(mWidth) ? parseFloat(mWidth[i]) + 'px' : parseFloat(mWidth) + 'px'; + mStyle.left = Array.isArray(mOffsetX) ? mOffsetX[i] : mOffsetX; + mStyle.top = Array.isArray(mOffsetY) ? mOffsetY[i] : mOffsetY; + mStyle.borderWidth = Array.isArray(mBorderWidth) ? mBorderWidth[i] : mBorderWidth; + mStyle.borderColor = Array.isArray(mBorderColor) ? mBorderColor[i] : mBorderColor; + mStyle.borderRadius = Array.isArray(mBorderRadius) ? parseFloat(mBorderRadius[i]) + 'px' : parseFloat(mBorderRadius) + 'px'; + + if (w.config.legend.markers.customHTML) { + if (Array.isArray(w.config.legend.markers.customHTML)) { + elMarker.innerHTML = w.config.legend.markers.customHTML[i](); + } else { + elMarker.innerHTML = w.config.legend.markers.customHTML(); + } + } + + Graphics.setAttrs(elMarker, { + rel: i + 1, + 'data:collapsed': collapsedSeries || ancillaryCollapsedSeries + }); + + if (collapsedSeries || ancillaryCollapsedSeries) { + elMarker.classList.add('inactive-legend'); + } + + var elLegend = document.createElement('div'); + var elLegendText = document.createElement('span'); + elLegendText.classList.add('apexcharts-legend-text'); + elLegendText.innerHTML = text; + var textColor = w.config.legend.labels.useSeriesColors ? w.globals.colors[i] : w.config.legend.labels.colors; + + if (!textColor) { + textColor = w.config.chart.foreColor; + } + + elLegendText.style.color = textColor; + elLegendText.style.fontSize = parseFloat(w.config.legend.fontSize) + 'px'; + elLegendText.style.fontFamily = fontFamily || w.config.chart.fontFamily; + Graphics.setAttrs(elLegendText, { + rel: i + 1, + 'data:collapsed': collapsedSeries || ancillaryCollapsedSeries + }); + elLegend.appendChild(elMarker); + elLegend.appendChild(elLegendText); + var coreUtils = new CoreUtils(this.ctx); + + if (!w.config.legend.showForZeroSeries) { + var total = coreUtils.getSeriesTotalByIndex(i); + + if (total === 0 && coreUtils.seriesHaveSameValues(i) && !coreUtils.isSeriesNull(i) && w.globals.collapsedSeriesIndices.indexOf(i) === -1 && w.globals.ancillaryCollapsedSeriesIndices.indexOf(i) === -1) { + elLegend.classList.add('apexcharts-hidden-zero-series'); + } + } + + if (!w.config.legend.showForNullSeries) { + if (coreUtils.isSeriesNull(i) && w.globals.collapsedSeriesIndices.indexOf(i) === -1 && w.globals.ancillaryCollapsedSeriesIndices.indexOf(i) === -1) { + elLegend.classList.add('apexcharts-hidden-null-series'); + } + } + + w.globals.dom.elLegendWrap.appendChild(elLegend); + w.globals.dom.elLegendWrap.classList.add(w.config.legend.horizontalAlign); // w.globals.dom.elLegendWrap.classList.add(w.config.legend.verticalAlign) + + w.globals.dom.elLegendWrap.classList.add('position-' + w.config.legend.position); + elLegend.classList.add('apexcharts-legend-series'); + elLegend.style.margin = "".concat(w.config.legend.itemMargin.horizontal, "px ").concat(w.config.legend.itemMargin.vertical, "px"); + w.globals.dom.elLegendWrap.style.width = w.config.legend.width ? w.config.legend.width + 'px' : ''; + w.globals.dom.elLegendWrap.style.height = w.config.legend.height ? w.config.legend.height + 'px' : ''; + Graphics.setAttrs(elLegend, { + rel: i + 1, + 'data:collapsed': collapsedSeries || ancillaryCollapsedSeries + }); + + if (collapsedSeries || ancillaryCollapsedSeries) { + elLegend.classList.add('inactive-legend'); + } + + if (!w.config.legend.onItemClick.toggleDataSeries) { + elLegend.classList.add('no-click'); + } + } // for now - just prevent click on heatmap legend - and allow hover only + + + var clickAllowed = w.config.chart.type !== 'heatmap'; + + if (clickAllowed && w.config.legend.onItemClick.toggleDataSeries) { + w.globals.dom.elWrap.addEventListener('click', self.onLegendClick, true); + } + + if (w.config.legend.onItemHover.highlightDataSeries) { + w.globals.dom.elWrap.addEventListener('mousemove', self.onLegendHovered, true); + w.globals.dom.elWrap.addEventListener('mouseout', self.onLegendHovered, true); + } + } + }, { + key: "getLegendBBox", + value: function getLegendBBox() { + var w = this.w; + var currLegendsWrap = w.globals.dom.baseEl.querySelector('.apexcharts-legend'); + var currLegendsWrapRect = currLegendsWrap.getBoundingClientRect(); + var currLegendsWrapWidth = currLegendsWrapRect.width; + var currLegendsWrapHeight = currLegendsWrapRect.height; + return { + clwh: currLegendsWrapHeight, + clww: currLegendsWrapWidth + }; + } + }, { + key: "setLegendWrapXY", + value: function setLegendWrapXY(offsetX, offsetY) { + var w = this.w; + var elLegendWrap = w.globals.dom.baseEl.querySelector('.apexcharts-legend'); + var legendRect = elLegendWrap.getBoundingClientRect(); + var x = 0; + var y = 0; + + if (w.config.legend.position === 'bottom') { + y = y + (w.globals.svgHeight - legendRect.height / 2); + } else if (w.config.legend.position === 'top') { + var dim = new Dimensions(this.ctx); + var titleH = dim.getTitleSubtitleCoords('title').height; + var subtitleH = dim.getTitleSubtitleCoords('subtitle').height; + y = y + (titleH > 0 ? titleH - 10 : 0) + (subtitleH > 0 ? subtitleH - 10 : 0); + } + + elLegendWrap.style.position = 'absolute'; + x = x + offsetX + w.config.legend.offsetX; + y = y + offsetY + w.config.legend.offsetY; + elLegendWrap.style.left = x + 'px'; + elLegendWrap.style.top = y + 'px'; + + if (w.config.legend.position === 'bottom') { + elLegendWrap.style.top = 'auto'; + elLegendWrap.style.bottom = 10 + w.config.legend.offsetY + 'px'; + } else if (w.config.legend.position === 'right') { + elLegendWrap.style.left = 'auto'; + elLegendWrap.style.right = 25 + w.config.legend.offsetX + 'px'; + } + + if (elLegendWrap.style.width) { + elLegendWrap.style.width = parseInt(w.config.legend.width) + 'px'; + } + + if (elLegendWrap.style.height) { + elLegendWrap.style.height = parseInt(w.config.legend.height) + 'px'; + } + } + }, { + key: "legendAlignHorizontal", + value: function legendAlignHorizontal() { + var w = this.w; + var elLegendWrap = w.globals.dom.baseEl.querySelector('.apexcharts-legend'); + elLegendWrap.style.right = 0; + var lRect = this.getLegendBBox(); + var dimensions = new Dimensions(this.ctx); + var titleRect = dimensions.getTitleSubtitleCoords('title'); + var subtitleRect = dimensions.getTitleSubtitleCoords('subtitle'); + var offsetX = 20; + var offsetY = 0; // the whole legend box is set to bottom + + if (w.config.legend.position === 'bottom') { + offsetY = -lRect.clwh / 1.8; + } else if (w.config.legend.position === 'top') { + offsetY = titleRect.height + subtitleRect.height + w.config.title.margin + w.config.subtitle.margin - 15; + } + + this.setLegendWrapXY(offsetX, offsetY); + } + }, { + key: "legendAlignVertical", + value: function legendAlignVertical() { + var w = this.w; + var lRect = this.getLegendBBox(); + var offsetY = 20; + var offsetX = 0; + + if (w.config.legend.position === 'left') { + offsetX = 20; + } + + if (w.config.legend.position === 'right') { + offsetX = w.globals.svgWidth - lRect.clww - 10; + } + + this.setLegendWrapXY(offsetX, offsetY); + } + }, { + key: "onLegendHovered", + value: function onLegendHovered(e) { + var w = this.w; + var hoverOverLegend = e.target.classList.contains('apexcharts-legend-text') || e.target.classList.contains('apexcharts-legend-marker'); + + if (w.config.chart.type !== 'heatmap') { + if (!e.target.classList.contains('inactive-legend') && hoverOverLegend) { + var series = new Series(this.ctx); + series.toggleSeriesOnHover(e, e.target); + } + } else { + // for heatmap handling + if (hoverOverLegend) { + var seriesCnt = parseInt(e.target.getAttribute('rel')) - 1; + this.ctx.fireEvent('legendHover', [this.ctx, seriesCnt, this.w]); + + var _series = new Series(this.ctx); + + _series.highlightRangeInSeries(e, e.target); + } + } + } + }, { + key: "onLegendClick", + value: function onLegendClick(e) { + if (e.target.classList.contains('apexcharts-legend-text') || e.target.classList.contains('apexcharts-legend-marker')) { + var seriesCnt = parseInt(e.target.getAttribute('rel')) - 1; + var isHidden = e.target.getAttribute('data:collapsed') === 'true'; + var legendClick = this.w.config.chart.events.legendClick; + + if (typeof legendClick === 'function') { + legendClick(this.ctx, seriesCnt, this.w); + } + + this.ctx.fireEvent('legendClick', [this.ctx, seriesCnt, this.w]); + var markerClick = this.w.config.legend.markers.onClick; + + if (typeof markerClick === 'function' && e.target.classList.contains('apexcharts-legend-marker')) { + markerClick(this.ctx, seriesCnt, this.w); + this.ctx.fireEvent('legendMarkerClick', [this.ctx, seriesCnt, this.w]); + } + + this.toggleDataSeries(seriesCnt, isHidden); + } + } + }, { + key: "getLegendStyles", + value: function getLegendStyles() { + var stylesheet = document.createElement('style'); + stylesheet.setAttribute('type', 'text/css'); + var text = "\n \n .apexcharts-legend {\n display: flex;\n overflow: auto;\n padding: 0 10px;\n }\n\n .apexcharts-legend.position-bottom, .apexcharts-legend.position-top {\n flex-wrap: wrap\n }\n .apexcharts-legend.position-right, .apexcharts-legend.position-left {\n flex-direction: column;\n bottom: 0;\n }\n\n .apexcharts-legend.position-bottom.left, .apexcharts-legend.position-top.left, .apexcharts-legend.position-right, .apexcharts-legend.position-left {\n justify-content: flex-start;\n }\n\n .apexcharts-legend.position-bottom.center, .apexcharts-legend.position-top.center {\n justify-content: center; \n }\n\n .apexcharts-legend.position-bottom.right, .apexcharts-legend.position-top.right {\n justify-content: flex-end;\n }\n\n .apexcharts-legend-series {\n cursor: pointer;\n line-height: normal;\n }\n\n .apexcharts-legend.position-bottom .apexcharts-legend-series, .apexcharts-legend.position-top .apexcharts-legend-series{\n display: flex;\n align-items: center;\n }\n\n .apexcharts-legend-text {\n position: relative;\n font-size: 14px;\n }\n\n .apexcharts-legend-text *, .apexcharts-legend-marker * {\n pointer-events: none;\n }\n\n .apexcharts-legend-marker {\n position: relative;\n display: inline-block;\n cursor: pointer;\n margin-right: 3px;\n }\n \n .apexcharts-legend.right .apexcharts-legend-series, .apexcharts-legend.left .apexcharts-legend-series{\n display: inline-block;\n }\n\n .apexcharts-legend-series.no-click {\n cursor: auto;\n }\n\n .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\n display: none !important;\n }\n\n .inactive-legend {\n opacity: 0.45;\n }"; + var rules = document.createTextNode(text); + stylesheet.appendChild(rules); + return stylesheet; + } + }, { + key: "resetToggleDataSeries", + value: function resetToggleDataSeries() { + var w = this.w; + var seriesEls = null; + var realIndexes = []; + + if (w.globals.axisCharts) { + seriesEls = w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex]"); + seriesEls.forEach(function (v) { + realIndexes.push(parseInt(v.getAttribute('data:realIndex'))); + }); + } else { + seriesEls = w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[rel]"); + seriesEls.forEach(function (v) { + realIndexes.push(parseInt(v.getAttribute('rel')) - 1); + }); + } + + realIndexes.sort(); + + if (w.globals.collapsedSeries.length > 0) { + var risingSeries = w.globals.risingSeries.slice(); + var series = w.config.series.slice(); + + for (var c = 0; c < w.globals.collapsedSeries.length; c++) { + var index = realIndexes.indexOf(w.globals.collapsedSeries[c].index); + + if (index !== -1) { + if (w.globals.axisCharts) { + series[index].data = w.globals.collapsedSeries.slice()[c].data.slice(); + } else { + series[index] = w.globals.collapsedSeries.slice()[c].data; + } + + risingSeries.push(index); + } + } + + w.globals.collapsedSeries = []; + w.globals.ancillaryCollapsedSeries = []; + w.globals.collapsedSeriesIndices = []; + w.globals.ancillaryCollapsedSeriesIndices = []; + w.globals.risingSeries = risingSeries; + w.config.series = series; + + this.ctx._updateSeries(w.config.series, w.config.chart.animations.dynamicAnimation.enabled); + } + } + }, { + key: "toggleDataSeries", + value: function toggleDataSeries(seriesCnt, isHidden) { + var w = this.w; + + if (w.globals.axisCharts || w.config.chart.type === 'radialBar') { + w.globals.resized = true; // we don't want initial animations again + + var seriesEl = null; + var realIndex = null; // yes, make it null. 1 series will rise at a time + + w.globals.risingSeries = []; + + if (w.globals.axisCharts) { + seriesEl = w.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(seriesCnt, "']")); + realIndex = parseInt(seriesEl.getAttribute('data:realIndex')); + } else { + seriesEl = w.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(seriesCnt + 1, "']")); + realIndex = parseInt(seriesEl.getAttribute('rel')) - 1; + } + + if (isHidden) { + this.riseCollapsedSeries(w.globals.collapsedSeries, w.globals.collapsedSeriesIndices, realIndex); + this.riseCollapsedSeries(w.globals.ancillaryCollapsedSeries, w.globals.ancillaryCollapsedSeriesIndices, realIndex); + } else { + if (w.globals.axisCharts) { + var shouldNotHideYAxis = false; + + if (w.config.yaxis[realIndex] && w.config.yaxis[realIndex].show && w.config.yaxis[realIndex].showAlways) { + shouldNotHideYAxis = true; + + if (w.globals.ancillaryCollapsedSeriesIndices.indexOf(realIndex) < 0) { + w.globals.ancillaryCollapsedSeries.push({ + index: realIndex, + data: w.config.series[realIndex].data.slice(), + type: seriesEl.parentNode.className.baseVal.split('-')[1] + }); + w.globals.ancillaryCollapsedSeriesIndices.push(realIndex); + } + } + + if (!shouldNotHideYAxis) { + w.globals.collapsedSeries.push({ + index: realIndex, + data: w.config.series[realIndex].data.slice(), + type: seriesEl.parentNode.className.baseVal.split('-')[1] + }); + w.globals.collapsedSeriesIndices.push(realIndex); + var removeIndexOfRising = w.globals.risingSeries.indexOf(realIndex); + w.globals.risingSeries.splice(removeIndexOfRising, 1); + } // TODO: AVOID mutating the user's config object below + + + w.config.series[realIndex].data = []; + } else { + w.globals.collapsedSeries.push({ + index: realIndex, + data: w.config.series[realIndex] + }); + w.globals.collapsedSeriesIndices.push(realIndex); + w.config.series[realIndex] = 0; + } + + var seriesChildren = seriesEl.childNodes; + + for (var sc = 0; sc < seriesChildren.length; sc++) { + if (seriesChildren[sc].classList.contains('apexcharts-series-markers-wrap')) { + if (seriesChildren[sc].classList.contains('apexcharts-hide')) { + seriesChildren[sc].classList.remove('apexcharts-hide'); + } else { + seriesChildren[sc].classList.add('apexcharts-hide'); + } + } + } + + w.globals.allSeriesCollapsed = w.globals.collapsedSeries.length === w.globals.series.length; + + this.ctx._updateSeries(w.config.series, w.config.chart.animations.dynamicAnimation.enabled); + } + } else { + // for non-axis charts i.e pie / donuts + var _seriesEl = w.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(seriesCnt + 1, "'] path")); + + _seriesEl.fire('click'); + } + } + }, { + key: "riseCollapsedSeries", + value: function riseCollapsedSeries(series, seriesIndices, realIndex) { + var w = this.w; + + if (series.length > 0) { + for (var c = 0; c < series.length; c++) { + if (series[c].index === realIndex) { + if (w.globals.axisCharts) { + w.config.series[realIndex].data = series[c].data.slice(); + series.splice(c, 1); + seriesIndices.splice(c, 1); + w.globals.risingSeries.push(realIndex); + } else { + w.config.series[realIndex] = series[c].data; + series.splice(c, 1); + seriesIndices.splice(c, 1); + w.globals.risingSeries.push(realIndex); + } + + this.ctx._updateSeries(w.config.series, w.config.chart.animations.dynamicAnimation.enabled); + } + } + } + } + }]); + + return Legend; +}(); + +/** + * ApexCharts Responsive Class to override options for different screen sizes. + * + * @module Responsive + **/ + +var Responsive = +/*#__PURE__*/ +function () { + function Responsive(ctx) { + _classCallCheck(this, Responsive); + + this.ctx = ctx; + this.w = ctx.w; + } // the opts parameter if not null has to be set overriding everything + // as the opts is set by user externally + + + _createClass(Responsive, [{ + key: "checkResponsiveConfig", + value: function checkResponsiveConfig(opts) { + var _this = this; + + var w = this.w; + var cnf = w.config; // check if responsive config exists + + if (cnf.responsive.length === 0) return; + var res = cnf.responsive.slice(); + res.sort(function (a, b) { + return a.breakpoint > b.breakpoint ? 1 : b.breakpoint > a.breakpoint ? -1 : 0; + }).reverse(); + var config = new Config({}); + + var iterateResponsiveOptions = function iterateResponsiveOptions() { + var newOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var largestBreakpoint = res[0].breakpoint; + var width = window.innerWidth > 0 ? window.innerWidth : screen.width; + + if (width > largestBreakpoint) { + var options = CoreUtils.extendArrayProps(config, w.globals.initialConfig); + newOptions = Utils.extend(options, newOptions); + newOptions = Utils.extend(w.config, newOptions); + + _this.overrideResponsiveOptions(newOptions); + } else { + for (var i = 0; i < res.length; i++) { + if (width < res[i].breakpoint) { + newOptions = Utils.extend(config, newOptions); + newOptions = CoreUtils.extendArrayProps(newOptions, res[i].options); + newOptions = Utils.extend(w.config, newOptions); + + _this.overrideResponsiveOptions(newOptions); + } + } + } + }; + + if (opts) { + var options = CoreUtils.extendArrayProps(config, opts); + options = Utils.extend(w.config, options); + options = Utils.extend(options, opts); + iterateResponsiveOptions(options); + } else { + iterateResponsiveOptions({}); + } + } + }, { + key: "overrideResponsiveOptions", + value: function overrideResponsiveOptions(newOptions) { + var newConfig = new Config(newOptions).init(); + this.w.config = newConfig; + } + }]); + + return Responsive; +}(); + +/** + * ApexCharts Theme Class for setting the colors and palettes. + * + * @module Theme + **/ + +var Theme = +/*#__PURE__*/ +function () { + function Theme(ctx) { + _classCallCheck(this, Theme); + + this.ctx = ctx; + this.w = ctx.w; + this.colors = []; + } + + _createClass(Theme, [{ + key: "init", + value: function init() { + this.setDefaultColors(); + } + }, { + key: "setDefaultColors", + value: function setDefaultColors() { + var w = this.w; + var utils = new Utils(); + + if (w.config.colors === undefined) { + w.globals.colors = this.predefined(); + } else { + w.globals.colors = w.config.colors; + } + + if (w.config.theme.monochrome.enabled) { + var monoArr = []; + var glsCnt = w.globals.series.length; + + if (w.config.plotOptions.bar.distributed && w.config.chart.type === 'bar') { + glsCnt = w.globals.series[0].length * w.globals.series.length; + } + + var mainColor = w.config.theme.monochrome.color; + var part = 1 / (glsCnt / w.config.theme.monochrome.shadeIntensity); + var shade = w.config.theme.monochrome.shadeTo; + var percent = 0; + + for (var gsl = 0; gsl < glsCnt; gsl++) { + var newColor = void 0; + + if (shade === 'dark') { + newColor = utils.shadeColor(percent * -1, mainColor); + percent = percent + part; + } else { + newColor = utils.shadeColor(percent, mainColor); + percent = percent + part; + } + + monoArr.push(newColor); + } + + w.globals.colors = monoArr.slice(); + } + + var defaultColors = w.globals.colors.slice(); // if user specfied less colors than no. of series, push the same colors again + + this.pushExtraColors(w.globals.colors); // The Border colors + + if (w.config.stroke.colors === undefined) { + w.globals.stroke.colors = defaultColors; + } else { + w.globals.stroke.colors = w.config.stroke.colors; + } + + this.pushExtraColors(w.globals.stroke.colors); // The FILL colors + + if (w.config.fill.colors === undefined) { + w.globals.fill.colors = defaultColors; + } else { + w.globals.fill.colors = w.config.fill.colors; + } + + this.pushExtraColors(w.globals.fill.colors); + + if (w.config.dataLabels.style.colors === undefined) { + w.globals.dataLabels.style.colors = defaultColors; + } else { + w.globals.dataLabels.style.colors = w.config.dataLabels.style.colors; + } + + this.pushExtraColors(w.globals.dataLabels.style.colors, 50); + + if (w.config.plotOptions.radar.polygons.fill.colors === undefined) { + w.globals.radarPolygons.fill.colors = ['#fff']; + } else { + w.globals.radarPolygons.fill.colors = w.config.plotOptions.radar.polygons.fill.colors; + } + + this.pushExtraColors(w.globals.radarPolygons.fill.colors, 20); // The point colors + + if (w.config.markers.colors === undefined) { + w.globals.markers.colors = defaultColors; + } else { + w.globals.markers.colors = w.config.markers.colors; + } + + this.pushExtraColors(w.globals.markers.colors); + } // When the number of colors provided is less than the number of series, this method + // will push same colors to the list + // params: + // distributed is only valid for distributed column/bar charts + + }, { + key: "pushExtraColors", + value: function pushExtraColors(colorSeries, length) { + var distributed = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + var w = this.w; + var len = length || w.globals.series.length; + + if (distributed === null) { + distributed = w.config.chart.type === 'bar' && w.config.plotOptions.bar.distributed || w.config.chart.type === 'heatmap' && w.config.plotOptions.heatmap.colorScale.inverse; + } + + if (distributed) { + len = w.globals.series[0].length * w.globals.series.length; + } + + if (colorSeries.length < len) { + var diff = len - colorSeries.length; + + for (var i = 0; i < diff; i++) { + colorSeries.push(colorSeries[i]); + } + } + } + }, { + key: "predefined", + value: function predefined() { + var palette = this.w.config.theme.palette; // D6E3F8, FCEFEF, DCE0D9, A5978B, EDDDD4, D6E3F8, FEF5EF + + switch (palette) { + case 'palette1': + this.colors = ['#008FFB', '#00E396', '#FEB019', '#FF4560', '#775DD0']; + break; + + case 'palette2': + this.colors = ['#3f51b5', '#03a9f4', '#4caf50', '#f9ce1d', '#FF9800']; + break; + + case 'palette3': + this.colors = ['#33b2df', '#546E7A', '#d4526e', '#13d8aa', '#A5978B']; + break; + + case 'palette4': + this.colors = ['#546E7A', '#4ecdc4', '#c7f464', '#81D4FA', '#fd6a6a']; + break; + + case 'palette5': + this.colors = ['#2b908f', '#f9a3a4', '#90ee7e', '#fa4443', '#69d2e7']; + break; + + case 'palette6': + this.colors = ['#449DD1', '#F86624', '#EA3546', '#662E9B', '#C5D86D']; + break; + + case 'palette7': + this.colors = ['#D7263D', '#1B998B', '#2E294E', '#F46036', '#E2C044']; + break; + + case 'palette8': + this.colors = ['#662E9B', '#F86624', '#F9C80E', '#EA3546', '#43BCCD']; + break; + + case 'palette9': + this.colors = ['#5C4742', '#A5978B', '#8D5B4C', '#5A2A27', '#C4BBAF']; + break; + + case 'palette10': + this.colors = ['#A300D6', '#7D02EB', '#5653FE', '#2983FF', '#00B1F2']; + break; + + default: + this.colors = ['#008FFB', '#00E396', '#FEB019', '#FF4560', '#775DD0']; + break; + } + + return this.colors; + } + }]); + + return Theme; +}(); + +var Utils$1 = +/*#__PURE__*/ +function () { + function Utils(tooltipContext) { + _classCallCheck(this, Utils); + + this.w = tooltipContext.w; + this.ttCtx = tooltipContext; + this.ctx = tooltipContext.ctx; + } + /** + ** When hovering over series, you need to capture which series is being hovered on. + ** This function will return both capturedseries index as well as inner index of that series + * @memberof Utils + * @param {object} + * - hoverArea = the rect on which user hovers + * - elGrid = dimensions of the hover rect (it can be different than hoverarea) + */ + + + _createClass(Utils, [{ + key: "getNearestValues", + value: function getNearestValues(_ref) { + var hoverArea = _ref.hoverArea, + elGrid = _ref.elGrid, + clientX = _ref.clientX, + clientY = _ref.clientY, + hasBars = _ref.hasBars; + var w = this.w; + var hoverWidth = w.globals.gridWidth; + var xDivisor = hoverWidth / (w.globals.dataPoints - 1); + var seriesBound = elGrid.getBoundingClientRect(); + + if (hasBars && w.globals.comboCharts || hasBars) { + xDivisor = hoverWidth / w.globals.dataPoints; + } + + var hoverX = clientX - seriesBound.left; + var hoverY = clientY - seriesBound.top; + var inRect = hoverX < 0 || hoverY < 0 || hoverX > w.globals.gridWidth || hoverY > w.globals.gridHeight; + + if (inRect) { + hoverArea.classList.remove('hovering-zoom'); + hoverArea.classList.remove('hovering-pan'); + } else { + if (w.globals.zoomEnabled) { + hoverArea.classList.remove('hovering-pan'); + hoverArea.classList.add('hovering-zoom'); + } else if (w.globals.panEnabled) { + hoverArea.classList.remove('hovering-zoom'); + hoverArea.classList.add('hovering-pan'); + } + } + + var j = Math.round(hoverX / xDivisor); + + if (hasBars) { + j = Math.ceil(hoverX / xDivisor); + j = j - 1; + } + + var capturedSeries = null; + var closest = null; + var seriesXValArr = []; + var seriesYValArr = []; + + for (var s = 0; s < w.globals.seriesXvalues.length; s++) { + seriesXValArr.push([w.globals.seriesXvalues[s][0] - 0.000001].concat(w.globals.seriesXvalues[s])); + } + + seriesXValArr = seriesXValArr.map(function (seriesXVal) { + return seriesXVal.filter(function (s) { + return s; + }); + }); + seriesYValArr = w.globals.seriesYvalues.map(function (seriesYVal) { + return seriesYVal.filter(function (s) { + return s; + }); + }); // if X axis type is not category and tooltip is not shared, then we need to find the cursor position and get the nearest value + + if (w.globals.isXNumeric) { + closest = this.closestInMultiArray(hoverX, hoverY, seriesXValArr, seriesYValArr); + capturedSeries = closest.index; + j = closest.j; + + if (capturedSeries !== null) { + // initial push, it should be a little smaller than the 1st val + seriesXValArr = w.globals.seriesXvalues[capturedSeries]; + closest = this.closestInArray(hoverX, seriesXValArr); + j = closest.index; + } + } + + if (!j || j < 1) j = 0; + return { + capturedSeries: capturedSeries, + j: j, + hoverX: hoverX, + hoverY: hoverY + }; + } + }, { + key: "closestInMultiArray", + value: function closestInMultiArray(hoverX, hoverY, Xarrays, Yarrays) { + var w = this.w; + var activeIndex = 0; + var currIndex = null; + var j = -1; + + if (w.globals.series.length > 1) { + activeIndex = this.getFirstActiveXArray(Xarrays); + } else { + currIndex = 0; + } + + var currY = Yarrays[activeIndex][0]; + var currX = Xarrays[activeIndex][0]; + var diffX = Math.abs(hoverX - currX); + var diffY = Math.abs(hoverY - currY); + var diff = diffY + diffX; + Yarrays.map(function (arrY, arrIndex) { + arrY.map(function (y, innerKey) { + var newdiffY = Math.abs(hoverY - Yarrays[arrIndex][innerKey]); + var newdiffX = Math.abs(hoverX - Xarrays[arrIndex][innerKey]); + var newdiff = newdiffX + newdiffY; + + if (newdiff < diff) { + diff = newdiff; + diffX = newdiffX; + diffY = newdiffY; + currIndex = arrIndex; + j = innerKey; + } + }); + }); + return { + index: currIndex, + j: j + }; + } + }, { + key: "getFirstActiveXArray", + value: function getFirstActiveXArray(Xarrays) { + var activeIndex = 0; + var coreUtils = new CoreUtils(this.ctx); + var firstActiveSeriesIndex = Xarrays.map(function (xarr, index) { + if (xarr.length > 0) { + return index; + } else { + return -1; + } + }); + + for (var a = 0; a < firstActiveSeriesIndex.length; a++) { + var total = coreUtils.getSeriesTotalByIndex(a); + + if (firstActiveSeriesIndex[a] !== -1 && total !== 0 && !coreUtils.seriesHaveSameValues(a)) { + activeIndex = firstActiveSeriesIndex[a]; + break; + } + } + + return activeIndex; + } + }, { + key: "closestInArray", + value: function closestInArray(val, arr) { + var curr = arr[0]; + var currIndex = null; + var diff = Math.abs(val - curr); + + for (var i = 0; i < arr.length; i++) { + var newdiff = Math.abs(val - arr[i]); + + if (newdiff < diff) { + diff = newdiff; + curr = arr[i]; + currIndex = i; + } + } + + return { + index: currIndex + }; + } + /** + * When there are multiple series, it is possible to have different x values for each series. + * But it may be possible in those multiple series, that there is same x value for 2 or more + * series. + * @memberof Utils + * @param {int} + * - j = is the inner index of series -> (series[i][j]) + * @return {bool} + */ + + }, { + key: "isXoverlap", + value: function isXoverlap(j) { + var w = this.w; + var xSameForAllSeriesJArr = []; + var seriesX = w.globals.seriesX.filter(function (s) { + return typeof s[0] !== 'undefined'; + }); + + if (seriesX.length > 0) { + for (var i = 0; i < seriesX.length - 1; i++) { + if (typeof seriesX[i][j] !== 'undefined' && typeof seriesX[i + 1][j] !== 'undefined') { + if (seriesX[i][j] !== seriesX[i + 1][j]) { + xSameForAllSeriesJArr.push('unEqual'); + } + } + } + } + + if (xSameForAllSeriesJArr.length === 0) { + return true; + } + + return false; + } + }, { + key: "isinitialSeriesSameLen", + value: function isinitialSeriesSameLen() { + var sameLen = true; + var initialSeries = this.w.globals.initialSeries; + + for (var i = 0; i < initialSeries.length - 1; i++) { + if (initialSeries[i].data.length !== initialSeries[i + 1].data.length) { + sameLen = false; + break; + } + } + + return sameLen; + } + }, { + key: "getBarsHeight", + value: function getBarsHeight(allbars) { + var bars = _toConsumableArray(allbars); + + var totalHeight = bars.reduce(function (acc, bar) { + return acc + bar.getBBox().height; + }, 0); + return totalHeight; + } + }, { + key: "toggleAllTooltipSeriesGroups", + value: function toggleAllTooltipSeriesGroups(state) { + var w = this.w; + var ttCtx = this.ttCtx; + + if (ttCtx.allTooltipSeriesGroups.length === 0) { + ttCtx.allTooltipSeriesGroups = w.globals.dom.baseEl.querySelectorAll('.apexcharts-tooltip-series-group'); + } + + var allTooltipSeriesGroups = ttCtx.allTooltipSeriesGroups; + + for (var i = 0; i < allTooltipSeriesGroups.length; i++) { + if (state === 'enable') { + allTooltipSeriesGroups[i].classList.add('active'); + allTooltipSeriesGroups[i].style.display = w.config.tooltip.items.display; + } else { + allTooltipSeriesGroups[i].classList.remove('active'); + allTooltipSeriesGroups[i].style.display = 'none'; + } + } + } + }]); + + return Utils; +}(); + +/** + * ApexCharts Tooltip.Labels Class to draw texts on the tooltip. + * + * @module Tooltip.Labels + **/ + +var Labels = +/*#__PURE__*/ +function () { + function Labels(tooltipContext) { + _classCallCheck(this, Labels); + + this.w = tooltipContext.w; + this.ctx = tooltipContext.ctx; + this.ttCtx = tooltipContext; + this.tooltipUtil = new Utils$1(tooltipContext); + } + + _createClass(Labels, [{ + key: "drawSeriesTexts", + value: function drawSeriesTexts(_ref) { + var _ref$shared = _ref.shared, + shared = _ref$shared === void 0 ? true : _ref$shared, + ttItems = _ref.ttItems, + _ref$i = _ref.i, + i = _ref$i === void 0 ? 0 : _ref$i, + _ref$j = _ref.j, + j = _ref$j === void 0 ? null : _ref$j; + var w = this.w; + + if (w.config.tooltip.custom !== undefined) { + this.handleCustomTooltip({ + i: i, + j: j + }); + } else { + this.toggleActiveInactiveSeries(shared); + } + + var values = this.getValuesToPrint({ + i: i, + j: j + }); + this.printLabels({ + i: i, + j: j, + values: values, + ttItems: ttItems, + shared: shared + }); // Re-calculate tooltip dimensions now that we have drawn the text + + var tooltipEl = this.ttCtx.getElTooltip(); + this.ttCtx.tooltipRect.ttWidth = tooltipEl.getBoundingClientRect().width; + this.ttCtx.tooltipRect.ttHeight = tooltipEl.getBoundingClientRect().height; + } + }, { + key: "printLabels", + value: function printLabels(_ref2) { + var i = _ref2.i, + j = _ref2.j, + values = _ref2.values, + ttItems = _ref2.ttItems, + shared = _ref2.shared; + var w = this.w; + var val; + var xVal = values.xVal, + zVal = values.zVal, + xAxisTTVal = values.xAxisTTVal; + var seriesName = ''; + var pColor = w.globals.colors[i]; + + if (j !== null && w.config.plotOptions.bar.distributed) { + pColor = w.globals.colors[j]; + } + + for (var t = 0, inverset = w.globals.series.length - 1; t < w.globals.series.length; t++, inverset--) { + var f = this.getFormatters(i); + seriesName = this.getSeriesName({ + fn: f.yLbTitleFormatter, + index: i, + seriesIndex: i, + j: j + }); + + if (shared) { + var tIndex = w.config.tooltip.inverseOrder ? inverset : t; + f = this.getFormatters(tIndex); + seriesName = this.getSeriesName({ + fn: f.yLbTitleFormatter, + index: tIndex, + seriesIndex: i, + j: j + }); + pColor = w.globals.colors[tIndex]; // for plot charts, not for pie/donuts + + val = f.yLbFormatter(w.globals.series[tIndex][j], { + series: w.globals.series, + seriesIndex: i, + dataPointIndex: j, + w: w + }); // discard 0 values in BARS + + if (this.ttCtx.hasBars() && w.config.chart.stacked && w.globals.series[tIndex][j] === 0 || typeof w.globals.series[tIndex][j] === 'undefined') { + val = undefined; + } + } else { + val = f.yLbFormatter(w.globals.series[i][j], { + series: w.globals.series, + seriesIndex: i, + dataPointIndex: j, + w: w + }); + } // for pie / donuts + + + if (j === null) { + val = f.yLbFormatter(w.globals.series[i], w); + } + + this.DOMHandling({ + t: t, + ttItems: ttItems, + values: { + val: val, + xVal: xVal, + xAxisTTVal: xAxisTTVal, + zVal: zVal + }, + seriesName: seriesName, + shared: shared, + pColor: pColor + }); + } + } + }, { + key: "getFormatters", + value: function getFormatters(i) { + var w = this.w; + var yLbFormatter = w.globals.yLabelFormatters[i]; + var yLbTitleFormatter; + + if (w.globals.ttVal !== undefined) { + if (Array.isArray(w.globals.ttVal)) { + yLbFormatter = w.globals.ttVal[i] && w.globals.ttVal[i].formatter; + yLbTitleFormatter = w.globals.ttVal[i] && w.globals.ttVal[i].title && w.globals.ttVal[i].title.formatter; + } else { + yLbFormatter = w.globals.ttVal.formatter; + + if (typeof w.globals.ttVal.title.formatter === 'function') { + yLbTitleFormatter = w.globals.ttVal.title.formatter; + } + } + } else { + yLbTitleFormatter = w.config.tooltip.y.title.formatter; + } + + if (typeof yLbFormatter !== 'function') { + if (w.globals.yLabelFormatters[0]) { + yLbFormatter = w.globals.yLabelFormatters[0]; + } else { + yLbFormatter = function yLbFormatter(label) { + return label; + }; + } + } + + if (typeof yLbTitleFormatter !== 'function') { + yLbTitleFormatter = function yLbTitleFormatter(label) { + return label; + }; + } + + return { + yLbFormatter: yLbFormatter, + yLbTitleFormatter: yLbTitleFormatter + }; + } + }, { + key: "getSeriesName", + value: function getSeriesName(_ref3) { + var fn = _ref3.fn, + index = _ref3.index, + seriesIndex = _ref3.seriesIndex, + j = _ref3.j; + var w = this.w; + return fn(String(w.globals.seriesNames[index]), { + series: w.globals.series, + seriesIndex: seriesIndex, + dataPointIndex: j, + w: w + }); + } + }, { + key: "DOMHandling", + value: function DOMHandling(_ref4) { + var t = _ref4.t, + ttItems = _ref4.ttItems, + values = _ref4.values, + seriesName = _ref4.seriesName, + shared = _ref4.shared, + pColor = _ref4.pColor; + var w = this.w; + var ttCtx = this.ttCtx; + var val = values.val, + xVal = values.xVal, + xAxisTTVal = values.xAxisTTVal, + zVal = values.zVal; + var ttItemsChildren = null; + ttItemsChildren = ttItems[t].children; + + if (w.config.tooltip.fillSeriesColor) { + // elTooltip.style.backgroundColor = pColor + ttItems[t].style.backgroundColor = pColor; + ttItemsChildren[0].style.display = 'none'; + } + + if (ttCtx.showTooltipTitle) { + if (ttCtx.tooltipTitle === null) { + // get it once if null, and store it in class property + ttCtx.tooltipTitle = w.globals.dom.baseEl.querySelector('.apexcharts-tooltip-title'); + } + + ttCtx.tooltipTitle.innerHTML = xVal; + } // if xaxis tooltip is constructed, we need to replace the innerHTML + + + if (ttCtx.blxaxisTooltip) { + ttCtx.xaxisTooltipText.innerHTML = xAxisTTVal !== '' ? xAxisTTVal : xVal; + } + + var ttYLabel = ttItems[t].querySelector('.apexcharts-tooltip-text-label'); + + if (ttYLabel) { + ttYLabel.innerHTML = seriesName ? seriesName + ': ' : ''; + } + + var ttYVal = ttItems[t].querySelector('.apexcharts-tooltip-text-value'); + + if (ttYVal) { + ttYVal.innerHTML = val; + } + + if (ttItemsChildren[0] && ttItemsChildren[0].classList.contains('apexcharts-tooltip-marker')) { + ttItemsChildren[0].style.backgroundColor = pColor; + } + + if (!w.config.tooltip.marker.show) { + ttItemsChildren[0].style.display = 'none'; + } + + if (zVal !== null) { + var ttZLabel = ttItems[t].querySelector('.apexcharts-tooltip-text-z-label'); + ttZLabel.innerHTML = w.config.tooltip.z.title; + var ttZVal = ttItems[t].querySelector('.apexcharts-tooltip-text-z-value'); + ttZVal.innerHTML = zVal; + } + + if (shared && ttItemsChildren[0]) { + // hide when no Val or series collapsed + if (typeof val === 'undefined' || val === null || w.globals.collapsedSeriesIndices.indexOf(t) > -1) { + ttItemsChildren[0].parentNode.style.display = 'none'; + } else { + ttItemsChildren[0].parentNode.style.display = w.config.tooltip.items.display; + } + } + } + }, { + key: "toggleActiveInactiveSeries", + value: function toggleActiveInactiveSeries(shared) { + var w = this.w; + + if (shared) { + // make all tooltips active + this.tooltipUtil.toggleAllTooltipSeriesGroups('enable'); + } else { + // disable all tooltip text groups + this.tooltipUtil.toggleAllTooltipSeriesGroups('disable'); // enable the first tooltip text group + + var firstTooltipSeriesGroup = w.globals.dom.baseEl.querySelector('.apexcharts-tooltip-series-group'); + + if (firstTooltipSeriesGroup) { + firstTooltipSeriesGroup.classList.add('active'); + firstTooltipSeriesGroup.style.display = w.config.tooltip.items.display; + } + } + } + }, { + key: "getValuesToPrint", + value: function getValuesToPrint(_ref5) { + var i = _ref5.i, + j = _ref5.j; + var w = this.w; + var filteredSeriesX = this.ctx.series.filteredSeriesX(); + var xVal = ''; + var xAxisTTVal = ''; + var zVal = null; + var val = null; + var customFormatterOpts = { + series: w.globals.series, + seriesIndex: i, + dataPointIndex: j, + w: w + }; + var zFormatter = w.globals.ttZFormatter; + + if (j === null) { + val = w.globals.series[i]; + } else { + if (w.globals.isXNumeric) { + xVal = filteredSeriesX[i][j]; + + if (filteredSeriesX[i].length === 0) { + // a series (possibly the first one) might be collapsed, so get the next active index + var firstActiveSeriesIndex = this.tooltipUtil.getFirstActiveXArray(filteredSeriesX); + xVal = filteredSeriesX[firstActiveSeriesIndex][j]; + } + } else { + xVal = typeof w.globals.labels[j] !== 'undefined' ? w.globals.labels[j] : ''; + } + } + + var bufferXVal = xVal; + + if (w.globals.isXNumeric && w.config.xaxis.type === 'datetime') { + var xFormat = new Formatters(this.ctx); + xVal = xFormat.xLabelFormat(w.globals.ttKeyFormatter, bufferXVal); + } else { + xVal = w.globals.xLabelFormatter(bufferXVal, customFormatterOpts); + } // override default x-axis formatter with tooltip formatter + + + if (w.config.tooltip.x.formatter !== undefined) { + xVal = w.globals.ttKeyFormatter(bufferXVal, customFormatterOpts); + } + + if (w.globals.seriesZ.length > 0 && w.globals.seriesZ[0].length > 0) { + zVal = zFormatter(w.globals.seriesZ[i][j], w); + } + + if (typeof w.config.xaxis.tooltip.formatter === 'function') { + xAxisTTVal = w.globals.xaxisTooltipFormatter(bufferXVal, customFormatterOpts); + } else { + xAxisTTVal = xVal; + } + + return { + val: val, + xVal: xVal, + xAxisTTVal: xAxisTTVal, + zVal: zVal + }; + } + }, { + key: "handleCustomTooltip", + value: function handleCustomTooltip(_ref6) { + var i = _ref6.i, + j = _ref6.j; + var w = this.w; + var tooltipEl = this.ttCtx.getElTooltip(); // override everything with a custom html tooltip and replace it + + tooltipEl.innerHTML = w.config.tooltip.custom({ + series: w.globals.series, + seriesIndex: i, + dataPointIndex: j, + w: w + }); + } + }]); + + return Labels; +}(); + +/** + * ApexCharts Tooltip.Position Class to move the tooltip based on x and y position. + * + * @module Tooltip.Position + **/ + +var Position = +/*#__PURE__*/ +function () { + function Position(tooltipContext) { + _classCallCheck(this, Position); + + this.ttCtx = tooltipContext; + this.ctx = tooltipContext.ctx; + this.w = tooltipContext.w; + } + /** + * This will move the crosshair (the vertical/horz line that moves along with mouse) + * Along with this, this function also calls the xaxisMove function + * @memberof Position + * @param {int} - cx = point's x position, wherever point's x is, you need to move crosshair + */ + + + _createClass(Position, [{ + key: "moveXCrosshairs", + value: function moveXCrosshairs(cx) { + var j = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + var ttCtx = this.ttCtx; + var w = this.w; + var xcrosshairs = ttCtx.getElXCrosshairs(); + var x = cx - ttCtx.xcrosshairsWidth / 2; + var tickAmount = w.globals.labels.slice().length; + + if (j !== null) { + x = w.globals.gridWidth / tickAmount * j; + } + + if (w.config.xaxis.crosshairs.width === 'tickWidth' || w.config.xaxis.crosshairs.width === 'barWidth') { + if (x + ttCtx.xcrosshairsWidth > w.globals.gridWidth) { + x = w.globals.gridWidth - ttCtx.xcrosshairsWidth; + } + } else { + if (j !== null) { + x = x + w.globals.gridWidth / tickAmount / 2; + } + } + + if (x < 0) { + x = 0; + } + + if (x > w.globals.gridWidth) { + x = w.globals.gridWidth; + } + + if (xcrosshairs !== null) { + xcrosshairs.setAttribute('x', x); + xcrosshairs.setAttribute('x1', x); + xcrosshairs.setAttribute('x2', x); + xcrosshairs.setAttribute('y2', w.globals.gridHeight); + xcrosshairs.classList.add('active'); + } + + if (ttCtx.blxaxisTooltip) { + var tx = x; + + if (w.config.xaxis.crosshairs.width === 'tickWidth' || w.config.xaxis.crosshairs.width === 'barWidth') { + tx = x + ttCtx.xcrosshairsWidth / 2; + } + + this.moveXAxisTooltip(tx); + } + } + /** + * This will move the crosshair (the vertical/horz line that moves along with mouse) + * Along with this, this function also calls the xaxisMove function + * @memberof Position + * @param {int} - cx = point's x position, wherever point's x is, you need to move crosshair + */ + + }, { + key: "moveYCrosshairs", + value: function moveYCrosshairs(cy) { + var ttCtx = this.ttCtx; + + if (ttCtx.ycrosshairs !== null) { + Graphics.setAttrs(ttCtx.ycrosshairs, { + y1: cy, + y2: cy + }); + Graphics.setAttrs(ttCtx.ycrosshairsHidden, { + y1: cy, + y2: cy + }); + } + } + /** + ** AxisTooltip is the small rectangle which appears on x axis with x value, when user moves + * @memberof Position + * @param {int} - cx = point's x position, wherever point's x is, you need to move + */ + + }, { + key: "moveXAxisTooltip", + value: function moveXAxisTooltip(cx) { + var w = this.w; + var ttCtx = this.ttCtx; + + if (ttCtx.xaxisTooltip !== null) { + ttCtx.xaxisTooltip.classList.add('active'); + var cy = ttCtx.xaxisOffY + w.config.xaxis.tooltip.offsetY + w.globals.translateY + 1 + w.config.xaxis.offsetY; + var xaxisTTText = ttCtx.xaxisTooltip.getBoundingClientRect(); + var xaxisTTTextWidth = xaxisTTText.width; + cx = cx - xaxisTTTextWidth / 2; + + if (!isNaN(cx)) { + cx = cx + w.globals.translateX; + var textRect = 0; + var graphics = new Graphics(this.ctx); + textRect = graphics.getTextRects(ttCtx.xaxisTooltipText.innerHTML); + ttCtx.xaxisTooltipText.style.minWidth = textRect.width + 'px'; + ttCtx.xaxisTooltip.style.left = cx + 'px'; + ttCtx.xaxisTooltip.style.top = cy + 'px'; + } + } + } + }, { + key: "moveYAxisTooltip", + value: function moveYAxisTooltip(index) { + var w = this.w; + var ttCtx = this.ttCtx; + + if (ttCtx.yaxisTTEls === null) { + ttCtx.yaxisTTEls = w.globals.dom.baseEl.querySelectorAll('.apexcharts-yaxistooltip'); + } + + var ycrosshairsHiddenRectY1 = parseInt(ttCtx.ycrosshairsHidden.getAttribute('y1')); + var cy = w.globals.translateY + ycrosshairsHiddenRectY1; + var yAxisTTRect = ttCtx.yaxisTTEls[index].getBoundingClientRect(); + var yAxisTTHeight = yAxisTTRect.height; + var cx = w.globals.translateYAxisX[index] - 2; + + if (w.config.yaxis[index].opposite) { + cx = cx - 26; + } + + cy = cy - yAxisTTHeight / 2; + + if (w.globals.ignoreYAxisIndexes.indexOf(index) === -1) { + ttCtx.yaxisTTEls[index].classList.add('active'); + ttCtx.yaxisTTEls[index].style.top = cy + 'px'; + ttCtx.yaxisTTEls[index].style.left = cx + w.config.yaxis[index].tooltip.offsetX + 'px'; + } else { + ttCtx.yaxisTTEls[index].classList.remove('active'); + } + } + /** + ** moves the whole tooltip by changing x, y attrs + * @memberof Position + * @param {int} - cx = point's x position, wherever point's x is, you need to move tooltip + * @param {int} - cy = point's y position, wherever point's y is, you need to move tooltip + * @param {int} - r = point's radius + */ + + }, { + key: "moveTooltip", + value: function moveTooltip(cx, cy) { + var r = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + var w = this.w; + var ttCtx = this.ttCtx; + var tooltipEl = ttCtx.getElTooltip(); + var tooltipRect = ttCtx.tooltipRect; + var pointR = r !== null ? parseInt(r) : 1; + var x = parseInt(cx) + pointR + 5; + var y = parseInt(cy) + pointR / 2; // - tooltipRect.ttHeight / 2 + + if (x > w.globals.gridWidth / 2) { + x = x - tooltipRect.ttWidth - pointR - 15; + } + + if (x > w.globals.gridWidth - tooltipRect.ttWidth - 10) { + x = w.globals.gridWidth - tooltipRect.ttWidth; + } + + if (x < -20) { + x = -20; + } + + if (w.config.tooltip.followCursor) { + var elGrid = ttCtx.getElGrid(); + var seriesBound = elGrid.getBoundingClientRect(); + y = ttCtx.e.clientY - seriesBound.top - tooltipRect.ttHeight / 2; + } + + var newPositions = this.positionChecks(tooltipRect, x, y); + x = newPositions.x; + y = newPositions.y; + + if (!isNaN(x)) { + x = x + w.globals.translateX; + tooltipEl.style.left = x + 'px'; + tooltipEl.style.top = y + 'px'; + } + } + }, { + key: "positionChecks", + value: function positionChecks(tooltipRect, x, y) { + var w = this.w; + + if (tooltipRect.ttHeight + y > w.globals.gridHeight) { + y = w.globals.gridHeight - tooltipRect.ttHeight + w.globals.translateY; + } + + if (y < 0) { + y = 0; + } + + return { + x: x, + y: y + }; + } + }, { + key: "moveMarkers", + value: function moveMarkers(i, j) { + var w = this.w; + var ttCtx = this.ttCtx; + + if (w.globals.markers.size[i] > 0) { + var allPoints = w.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(i, "'] .apexcharts-marker")); + + for (var p = 0; p < allPoints.length; p++) { + if (parseInt(allPoints[p].getAttribute('rel')) === j) { + ttCtx.marker.resetPointsSize(); + ttCtx.marker.enlargeCurrentPoint(j, allPoints[p]); + } + } + } else { + ttCtx.marker.resetPointsSize(); + this.moveDynamicPointOnHover(j, i); + } + } // This function is used when you need to show markers/points only on hover - + // DIFFERENT X VALUES in multiple series + + }, { + key: "moveDynamicPointOnHover", + value: function moveDynamicPointOnHover(j, capturedSeries) { + var w = this.w; + var ttCtx = this.ttCtx; + var cx = 0; + var cy = 0; + var pointsArr = w.globals.pointsArray; + var hoverSize = w.config.markers.hover.size; + + if (hoverSize === undefined) { + hoverSize = w.globals.markers.size[capturedSeries] + w.config.markers.hover.sizeOffset; + } + + cx = pointsArr[capturedSeries][j][0]; + cy = pointsArr[capturedSeries][j][1] ? pointsArr[capturedSeries][j][1] : 0; + var point = w.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(capturedSeries, "'] .apexcharts-series-markers circle")); + point.setAttribute('r', hoverSize); + point.setAttribute('cx', cx); + point.setAttribute('cy', cy); // point.style.opacity = w.config.markers.hover.opacity + + this.moveXCrosshairs(cx); + + if (!ttCtx.fixedTooltip) { + this.moveTooltip(cx, cy, hoverSize); + } + } // This function is used when you need to show markers/points only on hover - + // SAME X VALUES in multiple series + + }, { + key: "moveDynamicPointsOnHover", + value: function moveDynamicPointsOnHover(j) { + var ttCtx = this.ttCtx; + var w = ttCtx.w; + var cx = 0; + var cy = 0; + var activeSeries = 0; + var pointsArr = w.globals.pointsArray; + var series = new Series(this.ctx); + activeSeries = series.getActiveSeriesIndex(); + var hoverSize = w.config.markers.hover.size; + + if (hoverSize === undefined) { + hoverSize = w.globals.markers.size[activeSeries] + w.config.markers.hover.sizeOffset; + } + + if (pointsArr[activeSeries]) { + cx = pointsArr[activeSeries][j][0]; + cy = pointsArr[activeSeries][j][1]; + } + + var points = null; + var allPoints = ttCtx.getAllMarkers(); + + if (allPoints !== null) { + points = allPoints; + } else { + points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series-markers circle'); + } + + if (points !== null) { + for (var p = 0; p < points.length; p++) { + var pointArr = pointsArr[p]; + + if (pointArr && pointArr.length) { + var pcy = pointsArr[p][j][1]; + points[p].setAttribute('cx', cx); + var realIndex = parseInt(points[p].parentNode.parentNode.parentNode.getAttribute('data:realIndex')); + + if (pcy !== null) { + points[realIndex] && points[realIndex].setAttribute('r', hoverSize); + points[realIndex] && points[realIndex].setAttribute('cy', pcy); + } else { + points[realIndex] && points[realIndex].setAttribute('r', 0); + } + } + } + } + + this.moveXCrosshairs(cx); + + if (!ttCtx.fixedTooltip) { + var tcy = cy || w.globals.gridHeight; + this.moveTooltip(cx, tcy, hoverSize); + } + } + }, { + key: "moveStickyTooltipOverBars", + value: function moveStickyTooltipOverBars(j) { + var w = this.w; + var ttCtx = this.ttCtx; + var jBar = w.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='1'] path[j='".concat(j, "'], .apexcharts-candlestick-series .apexcharts-series[rel='1'] path[j='").concat(j, "']")); + var bcx = jBar ? parseFloat(jBar.getAttribute('cx')) : 0; + var bcy = 0; + var bw = jBar ? parseFloat(jBar.getAttribute('barWidth')) : 0; + + if (w.globals.isXNumeric) { + bcx = bcx - bw / 2; + } else { + bcx = ttCtx.xAxisTicksPositions[j - 1] + ttCtx.dataPointsDividedWidth / 2; + + if (isNaN(bcx)) { + bcx = ttCtx.xAxisTicksPositions[j] - ttCtx.dataPointsDividedWidth / 2; + } + } // tooltip will move vertically along with mouse as it is a shared tooltip + + + var elGrid = ttCtx.getElGrid(); + var seriesBound = elGrid.getBoundingClientRect(); + bcy = ttCtx.e.clientY - seriesBound.top - ttCtx.tooltipRect.ttHeight / 2; + this.moveXCrosshairs(bcx); + + if (!ttCtx.fixedTooltip) { + var tcy = bcy || w.globals.gridHeight; + this.moveTooltip(bcx, tcy); + } + } + }]); + + return Position; +}(); + +/** + * ApexCharts Tooltip.Marker Class to draw texts on the tooltip. + * + * @module Tooltip.Marker + **/ + +var Marker = +/*#__PURE__*/ +function () { + function Marker(tooltipContext) { + _classCallCheck(this, Marker); + + this.w = tooltipContext.w; + this.ttCtx = tooltipContext; + this.ctx = tooltipContext.ctx; + this.tooltipPosition = new Position(tooltipContext); + } + + _createClass(Marker, [{ + key: "drawDynamicPoints", + value: function drawDynamicPoints() { + var w = this.w; + var graphics = new Graphics(this.ctx); + var marker = new Markers(this.ctx); + var elsSeries = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series'); + + for (var i = 0; i < elsSeries.length; i++) { + var seriesIndex = parseInt(elsSeries[i].getAttribute('data:realIndex')); + var pointsMain = w.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(seriesIndex, "'] .apexcharts-series-markers-wrap")); + + if (pointsMain !== null) { + // it can be null as we have tooltips in donut/bar charts + var point = void 0; + var PointClasses = "apexcharts-marker w".concat((Math.random() + 1).toString(36).substring(4)); + + if ((w.config.chart.type === 'line' || w.config.chart.type === 'area') && !w.globals.comboCharts && !w.config.tooltip.intersect) { + PointClasses += ' no-pointer-events'; + } + + var elPointOptions = marker.getMarkerConfig(PointClasses, seriesIndex); + point = graphics.drawMarker(0, 0, elPointOptions); + point.node.setAttribute('default-marker-size', 0); + var elPointsG = document.createElementNS(w.globals.SVGNS, 'g'); + elPointsG.classList.add('apexcharts-series-markers'); + elPointsG.appendChild(point.node); + pointsMain.appendChild(elPointsG); + } + } + } + }, { + key: "enlargeCurrentPoint", + value: function enlargeCurrentPoint(rel, point) { + var w = this.w; + + if (w.config.chart.type !== 'bubble') { + this.newPointSize(rel, point); + } + + var cx = point.getAttribute('cx'); + var cy = point.getAttribute('cy'); + this.tooltipPosition.moveXCrosshairs(cx); + + if (!this.fixedTooltip) { + if (w.config.chart.type === 'radar') { + var elGrid = this.ttCtx.getElGrid(); + var seriesBound = elGrid.getBoundingClientRect(); + cx = this.ttCtx.e.clientX - seriesBound.left; + } + + this.tooltipPosition.moveTooltip(cx, cy, w.config.markers.hover.size); + } + } + }, { + key: "enlargePoints", + value: function enlargePoints(j) { + var w = this.w; + var me = this; + var ttCtx = this.ttCtx; + var col = j; + var points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker'); + var newSize = w.config.markers.hover.size; + + for (var p = 0; p < points.length; p++) { + var rel = points[p].getAttribute('rel'); + var index = points[p].getAttribute('index'); + + if (newSize === undefined) { + newSize = w.globals.markers.size[index] + w.config.markers.hover.sizeOffset; + } + + if (col === parseInt(rel)) { + me.newPointSize(col, points[p]); + var cx = points[p].getAttribute('cx'); + var cy = points[p].getAttribute('cy'); + me.tooltipPosition.moveXCrosshairs(cx); + + if (!ttCtx.fixedTooltip) { + me.tooltipPosition.moveTooltip(cx, cy, newSize); + } + } else { + me.oldPointSize(points[p]); + } + } + } + }, { + key: "newPointSize", + value: function newPointSize(rel, point) { + var w = this.w; + var newSize = w.config.markers.hover.size; + var elPoint = null; + + if (rel === 0) { + elPoint = point.parentNode.firstChild; + } else { + elPoint = point.parentNode.lastChild; + } + + var index = parseInt(elPoint.getAttribute('index')); + + if (newSize === undefined) { + newSize = w.globals.markers.size[index] + w.config.markers.hover.sizeOffset; + } + + elPoint.setAttribute('r', newSize); + } + }, { + key: "oldPointSize", + value: function oldPointSize(point) { + var size = parseInt(point.getAttribute('default-marker-size')); + point.setAttribute('r', size); + } + }, { + key: "resetPointsSize", + value: function resetPointsSize() { + var w = this.w; + var points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker'); + + for (var p = 0; p < points.length; p++) { + var size = parseInt(points[p].getAttribute('default-marker-size')); + + if (Utils.isNumber(size)) { + points[p].setAttribute('r', size); + } else { + points[p].setAttribute('r', 0); + } + } + } + }]); + + return Marker; +}(); + +/** + * ApexCharts Tooltip.Intersect Class. + * + * @module Tooltip.Intersect + **/ + +var Intersect = +/*#__PURE__*/ +function () { + function Intersect(tooltipContext) { + _classCallCheck(this, Intersect); + + this.w = tooltipContext.w; + this.ttCtx = tooltipContext; + } + + _createClass(Intersect, [{ + key: "getAttr", + value: function getAttr(e, attr) { + return parseFloat(e.target.getAttribute(attr)); + } + }, { + key: "handleHeatTooltip", + value: function handleHeatTooltip(_ref) { + var e = _ref.e, + opt = _ref.opt, + x = _ref.x, + y = _ref.y; + var ttCtx = this.ttCtx; + var w = this.w; + + if (e.target.classList.contains('apexcharts-heatmap-rect')) { + var i = this.getAttr(e, 'i'); + var j = this.getAttr(e, 'j'); + var cx = this.getAttr(e, 'cx'); + var cy = this.getAttr(e, 'cy'); + var width = this.getAttr(e, 'width'); + var height = this.getAttr(e, 'height'); + ttCtx.tooltipLabels.drawSeriesTexts({ + ttItems: opt.ttItems, + i: i, + j: j, + shared: false + }); + x = cx + ttCtx.tooltipRect.ttWidth / 2 + width; + y = cy + ttCtx.tooltipRect.ttHeight / 2 - height / 2; + ttCtx.tooltipPosition.moveXCrosshairs(cx + width / 2); + + if (x > w.globals.gridWidth / 2) { + x = cx - ttCtx.tooltipRect.ttWidth / 2 + width; + } + + if (ttCtx.w.config.tooltip.followCursor) { + var elGrid = ttCtx.getElGrid(); + var seriesBound = elGrid.getBoundingClientRect(); // x = ttCtx.e.clientX - seriesBound.left + + y = ttCtx.e.clientY - seriesBound.top + w.globals.translateY / 2 - 10; + } + } + + return { + x: x, + y: y + }; + } + }, { + key: "handleMarkerTooltip", + value: function handleMarkerTooltip(_ref2) { + var e = _ref2.e, + opt = _ref2.opt, + x = _ref2.x, + y = _ref2.y; + var w = this.w; + var ttCtx = this.ttCtx; + var i; + var j; + + if (e.target.classList.contains('apexcharts-marker')) { + var cx = parseInt(opt.paths.getAttribute('cx')); + var cy = parseInt(opt.paths.getAttribute('cy')); + var val = parseFloat(opt.paths.getAttribute('val')); + j = parseInt(opt.paths.getAttribute('rel')); + i = parseInt(opt.paths.parentNode.parentNode.parentNode.getAttribute('rel')) - 1; + + if (ttCtx.intersect) { + var el = Utils.findAncestor(opt.paths, 'apexcharts-series'); + + if (el) { + i = parseInt(el.getAttribute('data:realIndex')); + } + } + + ttCtx.tooltipLabels.drawSeriesTexts({ + ttItems: opt.ttItems, + i: i, + j: j, + shared: ttCtx.intersect ? false : w.config.tooltip.shared + }); + ttCtx.marker.enlargeCurrentPoint(j, opt.paths); + x = cx; + y = cy - ttCtx.tooltipRect.ttHeight * 1.4; + + if (ttCtx.w.config.tooltip.followCursor) { + var elGrid = ttCtx.getElGrid(); + var seriesBound = elGrid.getBoundingClientRect(); + y = ttCtx.e.clientY - seriesBound.top; + } + + if (val < 0) { + y = cy; + } + } + + return { + x: x, + y: y + }; + } + }, { + key: "handleBarTooltip", + value: function handleBarTooltip(_ref3) { + var e = _ref3.e, + opt = _ref3.opt; + var w = this.w; + var ttCtx = this.ttCtx; + var tooltipEl = ttCtx.getElTooltip(); + var bx = 0; + var x = 0; + var y = 0; // let bW = 0 + + var i = 0; + var strokeWidth; + var barXY = this.getBarTooltipXY({ + e: e, + opt: opt + }); + i = barXY.i; + var barHeight = barXY.barHeight; + var j = barXY.j; + + if (ttCtx.isBarHorizontal && ttCtx.hasBars() || !w.config.tooltip.shared) { + x = barXY.x; + y = barXY.y; + strokeWidth = Array.isArray(w.config.stroke.width) ? w.config.stroke.width[i] : w.config.stroke.width; // bW = barXY.barWidth + + bx = x; + } else { + if (!w.globals.comboCharts && !w.config.tooltip.shared) { + bx = bx / 2; + } + } // y is NaN, make it touch the bottom of grid area + + + if (isNaN(y)) { + y = w.globals.svgHeight - ttCtx.tooltipRect.ttHeight; + } // x exceeds gridWidth + + + if (x + ttCtx.tooltipRect.ttWidth > w.globals.gridWidth) { + x = x - ttCtx.tooltipRect.ttWidth; + } else if (x < 0) { + x = x + ttCtx.tooltipRect.ttWidth; + } + + if (ttCtx.w.config.tooltip.followCursor) { + var elGrid = ttCtx.getElGrid(); + var seriesBound = elGrid.getBoundingClientRect(); + y = ttCtx.e.clientY - seriesBound.top; + } // if tooltip is still null, querySelector + + + if (ttCtx.tooltip === null) { + ttCtx.tooltip = w.globals.dom.baseEl.querySelector('.apexcharts-tooltip'); + } + + if (!w.config.tooltip.shared) { + if (w.globals.comboChartsHasBars) { + ttCtx.tooltipPosition.moveXCrosshairs(bx + strokeWidth / 2); + } else { + ttCtx.tooltipPosition.moveXCrosshairs(bx); + } + } // move tooltip here + + + if (!ttCtx.fixedTooltip && (!w.config.tooltip.shared || ttCtx.isBarHorizontal && ttCtx.hasBars())) { + if (isReversed) { + x = w.globals.gridWidth - x; + } + + tooltipEl.style.left = x + w.globals.translateX + 'px'; + var seriesIndex = parseInt(opt.paths.parentNode.getAttribute('data:realIndex')); + var isReversed = w.globals.isMultipleYAxis ? w.config.yaxis[seriesIndex].reversed : w.config.yaxis[0].reversed; + + if (isReversed && !(ttCtx.isBarHorizontal && ttCtx.hasBars())) { + y = y + barHeight - (w.globals.series[i][j] < 0 ? barHeight : 0) * 2; + } + + if (ttCtx.tooltipRect.ttHeight + y > w.globals.gridHeight) { + y = w.globals.gridHeight - ttCtx.tooltipRect.ttHeight + w.globals.translateY; + tooltipEl.style.top = y + 'px'; + } else { + tooltipEl.style.top = y + w.globals.translateY - ttCtx.tooltipRect.ttHeight / 2 + 'px'; + } + } + } + }, { + key: "getBarTooltipXY", + value: function getBarTooltipXY(_ref4) { + var e = _ref4.e, + opt = _ref4.opt; + var w = this.w; + var j = null; + var ttCtx = this.ttCtx; + var i = 0; + var x = 0; + var y = 0; + var barWidth = 0; + var barHeight = 0; + var cl = e.target.classList; + + if (cl.contains('apexcharts-bar-area') || cl.contains('apexcharts-candlestick-area')) { + var bar = e.target; + var barRect = bar.getBoundingClientRect(); + var seriesBound = opt.elGrid.getBoundingClientRect(); + var bh = barRect.height; + barHeight = barRect.height; + var bw = barRect.width; + var cx = parseInt(bar.getAttribute('cx')); + var cy = parseInt(bar.getAttribute('cy')); + barWidth = parseFloat(bar.getAttribute('barWidth')); + var clientX = e.type === 'touchmove' ? e.touches[0].clientX : e.clientX; + j = parseInt(bar.getAttribute('j')); + i = parseInt(bar.parentNode.getAttribute('rel')) - 1; + + if (w.globals.comboCharts) { + i = parseInt(bar.parentNode.getAttribute('data:realIndex')); + } // if (w.config.tooltip.shared) { + // this check not needed at the moment + // const yDivisor = w.globals.gridHeight / (w.globals.series.length) + // const hoverY = ttCtx.clientY - ttCtx.seriesBound.top + // j = Math.ceil(hoverY / yDivisor) + // } + + + ttCtx.tooltipLabels.drawSeriesTexts({ + ttItems: opt.ttItems, + i: i, + j: j, + shared: ttCtx.showOnIntersect ? false : w.config.tooltip.shared + }); + + if (w.config.tooltip.followCursor) { + if (w.config.plotOptions.bar.horizontal) { + x = clientX - seriesBound.left + 15; + y = cy - ttCtx.dataPointsDividedHeight + bh / 2 - ttCtx.tooltipRect.ttHeight / 2; + } else { + if (w.globals.isXNumeric) { + x = cx - bw / 2; + } else { + x = cx - ttCtx.dataPointsDividedWidth + bw / 2; + } + + y = e.clientY - seriesBound.top - ttCtx.tooltipRect.ttHeight / 2 - 15; + } + } else { + if (w.config.plotOptions.bar.horizontal) { + x = cx; + + if (x < ttCtx.xyRatios.baseLineInvertedY) { + x = cx - ttCtx.tooltipRect.ttWidth; + } + + y = cy - ttCtx.dataPointsDividedHeight + bh / 2 - ttCtx.tooltipRect.ttHeight / 2; + } else { + // if columns + if (w.globals.isXNumeric) { + x = cx - bw / 2; + } else { + x = cx - ttCtx.dataPointsDividedWidth + bw / 2; + } + + y = cy; // - ttCtx.tooltipRect.ttHeight / 2 + 10 + } + } + } + + return { + x: x, + y: y, + barHeight: barHeight, + barWidth: barWidth, + i: i, + j: j + }; + } + }]); + + return Intersect; +}(); + +/** + * ApexCharts Tooltip.AxesTooltip Class. + * + * @module Tooltip.AxesTooltip + **/ +var AxesTooltip = +/*#__PURE__*/ +function () { + function AxesTooltip(tooltipContext) { + _classCallCheck(this, AxesTooltip); + + this.w = tooltipContext.w; + this.ttCtx = tooltipContext; + } + /** + * This method adds the secondary tooltip which appears below x axis + * @memberof Tooltip + **/ + + + _createClass(AxesTooltip, [{ + key: "drawXaxisTooltip", + value: function drawXaxisTooltip() { + var w = this.w; + var ttCtx = this.ttCtx; + var isBottom = w.config.xaxis.position === 'bottom'; + ttCtx.xaxisOffY = isBottom ? w.globals.gridHeight + 1 : 1; + var tooltipCssClass = isBottom ? 'apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom' : 'apexcharts-xaxistooltip apexcharts-xaxistooltip-top'; + var renderTo = w.globals.dom.elWrap; + + if (ttCtx.blxaxisTooltip) { + var xaxisTooltip = w.globals.dom.baseEl.querySelector('.apexcharts-xaxistooltip'); + + if (xaxisTooltip === null) { + ttCtx.xaxisTooltip = document.createElement('div'); + ttCtx.xaxisTooltip.setAttribute('class', tooltipCssClass); + renderTo.appendChild(ttCtx.xaxisTooltip); + ttCtx.xaxisTooltipText = document.createElement('div'); + ttCtx.xaxisTooltipText.classList.add('apexcharts-xaxistooltip-text'); + ttCtx.xaxisTooltipText.style.fontFamily = w.config.xaxis.tooltip.style.fontFamily || w.config.chart.fontFamily; + ttCtx.xaxisTooltipText.style.fontSize = w.config.xaxis.tooltip.style.fontSize; + ttCtx.xaxisTooltip.appendChild(ttCtx.xaxisTooltipText); + } + } + } + /** + * This method adds the secondary tooltip which appears below x axis + * @memberof Tooltip + **/ + + }, { + key: "drawYaxisTooltip", + value: function drawYaxisTooltip() { + var w = this.w; + var ttCtx = this.ttCtx; + + for (var i = 0; i < w.config.yaxis.length; i++) { + var isRight = w.config.yaxis[i].opposite || w.config.yaxis[i].crosshairs.opposite; + ttCtx.yaxisOffX = isRight ? w.globals.gridWidth + 1 : 1; + var tooltipCssClass = isRight ? "apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i, " apexcharts-yaxistooltip-right") : "apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i, " apexcharts-yaxistooltip-left"); + var renderTo = w.globals.dom.elWrap; + + if (ttCtx.blyaxisTooltip) { + var yaxisTooltip = w.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i)); + + if (yaxisTooltip === null) { + ttCtx.yaxisTooltip = document.createElement('div'); + ttCtx.yaxisTooltip.setAttribute('class', tooltipCssClass); + renderTo.appendChild(ttCtx.yaxisTooltip); + if (i === 0) ttCtx.yaxisTooltipText = []; + ttCtx.yaxisTooltipText.push(document.createElement('div')); + ttCtx.yaxisTooltipText[i].classList.add('apexcharts-yaxistooltip-text'); + ttCtx.yaxisTooltip.appendChild(ttCtx.yaxisTooltipText[i]); + } + } + } + } + /** + * @memberof Tooltip + **/ + + }, { + key: "setXCrosshairWidth", + value: function setXCrosshairWidth() { + var w = this.w; + var ttCtx = this.ttCtx; // set xcrosshairs width + + var xcrosshairs = ttCtx.getElXCrosshairs(); + ttCtx.xcrosshairsWidth = parseInt(w.config.xaxis.crosshairs.width); + + if (!w.globals.comboCharts) { + if (w.config.xaxis.crosshairs.width === 'tickWidth') { + var count = w.globals.labels.length; + ttCtx.xcrosshairsWidth = w.globals.gridWidth / count; + } else if (w.config.xaxis.crosshairs.width === 'barWidth') { + var bar = w.globals.dom.baseEl.querySelector('.apexcharts-bar-area'); + + if (bar !== null) { + var barWidth = parseFloat(bar.getAttribute('barWidth')); + ttCtx.xcrosshairsWidth = barWidth; + } else { + ttCtx.xcrosshairsWidth = 1; + } + } + } else { + var _bar = w.globals.dom.baseEl.querySelector('.apexcharts-bar-area'); + + if (_bar !== null && w.config.xaxis.crosshairs.width === 'barWidth') { + var _barWidth = parseFloat(_bar.getAttribute('barWidth')); + + ttCtx.xcrosshairsWidth = _barWidth; + } else { + if (w.config.xaxis.crosshairs.width === 'tickWidth') { + var _count = w.globals.labels.length; + ttCtx.xcrosshairsWidth = w.globals.gridWidth / _count; + } + } + } + + if (w.config.chart.type === 'bar' && w.config.plotOptions.bar.horizontal) { + ttCtx.xcrosshairsWidth = 0; + } + + if (xcrosshairs !== null && ttCtx.xcrosshairsWidth > 0) { + xcrosshairs.setAttribute('width', ttCtx.xcrosshairsWidth); + } + } + }, { + key: "handleYCrosshair", + value: function handleYCrosshair() { + var w = this.w; + var ttCtx = this.ttCtx; // set ycrosshairs height + + ttCtx.ycrosshairs = w.globals.dom.baseEl.querySelector('.apexcharts-ycrosshairs'); + ttCtx.ycrosshairsHidden = w.globals.dom.baseEl.querySelector('.apexcharts-ycrosshairs-hidden'); + } + }, { + key: "drawYaxisTooltipText", + value: function drawYaxisTooltipText(index, clientY, xyRatios) { + var ttCtx = this.ttCtx; + var w = this.w; + var lbFormatter = w.globals.yLabelFormatters[index]; + + if (ttCtx.blyaxisTooltip) { + var elGrid = ttCtx.getElGrid(); + var seriesBound = elGrid.getBoundingClientRect(); + var hoverY = (clientY - seriesBound.top) * xyRatios.yRatio[index]; + var height = w.globals.maxYArr[index] - w.globals.minYArr[index]; + var val = w.globals.minYArr[index] + (height - hoverY); + ttCtx.tooltipPosition.moveYCrosshairs(clientY - seriesBound.top); + ttCtx.yaxisTooltipText[index].innerHTML = lbFormatter(val); + ttCtx.tooltipPosition.moveYAxisTooltip(index); + } + } + }]); + + return AxesTooltip; +}(); + +/** + * ApexCharts Core Tooltip Class to handle the tooltip generation. + * + * @module Tooltip + **/ + +var Tooltip = +/*#__PURE__*/ +function () { + function Tooltip(ctx) { + _classCallCheck(this, Tooltip); + + this.ctx = ctx; + this.w = ctx.w; + var w = this.w; + this.tooltipUtil = new Utils$1(this); + this.tooltipLabels = new Labels(this); + this.tooltipPosition = new Position(this); + this.marker = new Marker(this); + this.intersect = new Intersect(this); + this.axesTooltip = new AxesTooltip(this); + this.showOnIntersect = w.config.tooltip.intersect; + this.showTooltipTitle = w.config.tooltip.x.show; + this.fixedTooltip = w.config.tooltip.fixed.enabled; + this.xaxisTooltip = null; + this.yaxisTTEls = null; + this.isBarHorizontal = w.config.plotOptions.bar.horizontal; + this.isBarShared = !w.config.plotOptions.bar.horizontal && w.config.tooltip.shared; + } + + _createClass(Tooltip, [{ + key: "getElTooltip", + value: function getElTooltip(ctx) { + if (!ctx) ctx = this; + return ctx.w.globals.dom.baseEl.querySelector('.apexcharts-tooltip'); + } + }, { + key: "getElXCrosshairs", + value: function getElXCrosshairs() { + return this.w.globals.dom.baseEl.querySelector('.apexcharts-xcrosshairs'); + } + }, { + key: "getElGrid", + value: function getElGrid() { + return this.w.globals.dom.baseEl.querySelector('.apexcharts-grid'); + } + }, { + key: "drawTooltip", + value: function drawTooltip(xyRatios) { + var w = this.w; + this.xyRatios = xyRatios; + this.blxaxisTooltip = w.config.xaxis.tooltip.enabled && w.globals.axisCharts; + this.blyaxisTooltip = w.config.yaxis[0].tooltip.enabled && w.globals.axisCharts; + this.allTooltipSeriesGroups = []; + + if (!w.globals.axisCharts) { + this.showTooltipTitle = false; + } + + var tooltipEl = document.createElement('div'); + tooltipEl.classList.add('apexcharts-tooltip'); + tooltipEl.classList.add(w.config.tooltip.theme); + w.globals.dom.elWrap.appendChild(tooltipEl); + + if (w.globals.axisCharts) { + this.axesTooltip.drawXaxisTooltip(); + this.axesTooltip.drawYaxisTooltip(); + this.axesTooltip.setXCrosshairWidth(); + this.axesTooltip.handleYCrosshair(); + var xAxis = new XAxis(this.ctx); + this.xAxisTicksPositions = xAxis.getXAxisTicksPositions(); + } // we forcefully set intersect true for these conditions + + + if (w.globals.comboCharts && !w.config.tooltip.shared || w.config.tooltip.intersect && !w.config.tooltip.shared || w.config.chart.type === 'bar' && !w.config.tooltip.shared) { + this.showOnIntersect = true; + } + + if (w.config.markers.size === 0 || w.globals.markers.largestSize === 0) { + // when user don't want to show points all the time, but only on when hovering on series + this.marker.drawDynamicPoints(this); + } // no visible series, exit + + + if (w.globals.collapsedSeries.length === w.globals.series.length) return; + this.dataPointsDividedHeight = w.globals.gridHeight / w.globals.dataPoints; + this.dataPointsDividedWidth = w.globals.gridWidth / w.globals.dataPoints; + + if (this.showTooltipTitle) { + this.tooltipTitle = document.createElement('div'); + this.tooltipTitle.classList.add('apexcharts-tooltip-title'); + this.tooltipTitle.style.fontFamily = w.config.tooltip.style.fontFamily || w.config.chart.fontFamily; + this.tooltipTitle.style.fontSize = w.config.tooltip.style.fontSize; + tooltipEl.appendChild(this.tooltipTitle); + } + + var ttItemsCnt = w.globals.series.length; // whether shared or not, default is shared + + if ((w.globals.xyCharts || w.globals.comboCharts) && w.config.tooltip.shared) { + if (!this.showOnIntersect) { + ttItemsCnt = w.globals.series.length; + } else { + ttItemsCnt = 1; + } + } + + this.ttItems = this.createTTElements(ttItemsCnt); + this.addSVGEvents(); + } + }, { + key: "createTTElements", + value: function createTTElements(ttItemsCnt) { + var w = this.w; + var ttItems = []; + var tooltipEl = this.getElTooltip(); + + for (var i = 0; i < ttItemsCnt; i++) { + var gTxt = document.createElement('div'); + gTxt.classList.add('apexcharts-tooltip-series-group'); + var point = document.createElement('span'); + point.classList.add('apexcharts-tooltip-marker'); + point.style.backgroundColor = w.globals.colors[i]; + gTxt.appendChild(point); + var gYZ = document.createElement('div'); + gYZ.classList.add('apexcharts-tooltip-text'); + gYZ.style.fontFamily = w.config.tooltip.style.fontFamily || w.config.chart.fontFamily; + gYZ.style.fontSize = w.config.tooltip.style.fontSize; // y values group + + var gYValText = document.createElement('div'); + gYValText.classList.add('apexcharts-tooltip-y-group'); + var txtLabel = document.createElement('span'); + txtLabel.classList.add('apexcharts-tooltip-text-label'); + gYValText.appendChild(txtLabel); + var txtValue = document.createElement('span'); + txtValue.classList.add('apexcharts-tooltip-text-value'); + gYValText.appendChild(txtValue); // z values group + + var gZValText = document.createElement('div'); + gZValText.classList.add('apexcharts-tooltip-z-group'); + var txtZLabel = document.createElement('span'); + txtZLabel.classList.add('apexcharts-tooltip-text-z-label'); + gZValText.appendChild(txtZLabel); + var txtZValue = document.createElement('span'); + txtZValue.classList.add('apexcharts-tooltip-text-z-value'); + gZValText.appendChild(txtZValue); + gYZ.appendChild(gYValText); + gYZ.appendChild(gZValText); + gTxt.appendChild(gYZ); + tooltipEl.appendChild(gTxt); + ttItems.push(gTxt); + } + + return ttItems; + } + }, { + key: "addSVGEvents", + value: function addSVGEvents() { + var w = this.w; + var type = w.config.chart.type; + var tooltipEl = this.getElTooltip(); + var barOrCandlestick = !!(type === 'bar' || type === 'candlestick'); + var hoverArea = w.globals.dom.Paper.node; + var elGrid = this.getElGrid(); + + if (elGrid) { + this.seriesBound = elGrid.getBoundingClientRect(); + } + + var tooltipY = []; + var tooltipX = []; + var seriesHoverParams = { + hoverArea: hoverArea, + elGrid: elGrid, + tooltipEl: tooltipEl, + tooltipY: tooltipY, + tooltipX: tooltipX, + ttItems: this.ttItems + }; + var points; + + if (w.globals.axisCharts) { + if (type === 'area' || type === 'line' || type === 'scatter' || type === 'bubble') { + points = w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"); + } else if (barOrCandlestick) { + points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series .apexcharts-bar-area', '.apexcharts-series .apexcharts-candlestick-area'); + } else if (type === 'heatmap') { + points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series .apexcharts-heatmap'); + } else if (type === 'radar') { + points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series .apexcharts-marker'); + } + + if (points && points.length) { + for (var p = 0; p < points.length; p++) { + tooltipY.push(points[p].getAttribute('cy')); + tooltipX.push(points[p].getAttribute('cx')); + } + } + } + + var validSharedChartTypes = w.globals.xyCharts && !this.showOnIntersect || w.globals.comboCharts && !this.showOnIntersect || barOrCandlestick && this.hasBars() && w.config.tooltip.shared; + + if (validSharedChartTypes) { + this.addPathsEventListeners([hoverArea], seriesHoverParams); + } else if (barOrCandlestick && !w.globals.comboCharts) { + this.addBarsEventListeners(seriesHoverParams); + } else if (type === 'bubble' || type === 'scatter' || type === 'radar' || this.showOnIntersect && (type === 'area' || type === 'line')) { + this.addPointsEventsListeners(seriesHoverParams); + } else if (!w.globals.axisCharts || type === 'heatmap') { + var seriesAll = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series'); + this.addPathsEventListeners(seriesAll, seriesHoverParams); + } + + if (this.showOnIntersect) { + var linePoints = w.globals.dom.baseEl.querySelectorAll('.apexcharts-line-series .apexcharts-marker'); + + if (linePoints.length > 0) { + // if we find any lineSeries, addEventListeners for them + this.addPathsEventListeners(linePoints, seriesHoverParams); + } + + var areaPoints = w.globals.dom.baseEl.querySelectorAll('.apexcharts-area-series .apexcharts-marker'); + + if (areaPoints.length > 0) { + // if we find any areaSeries, addEventListeners for them + this.addPathsEventListeners(areaPoints, seriesHoverParams); + } // combo charts may have bars, so add event listeners here too + + + if (this.hasBars() && !w.config.tooltip.shared) { + this.addBarsEventListeners(seriesHoverParams); + } + } + } + }, { + key: "drawFixedTooltipRect", + value: function drawFixedTooltipRect() { + var w = this.w; + var tooltipEl = this.getElTooltip(); + var tooltipRect = tooltipEl.getBoundingClientRect(); + var ttWidth = tooltipRect.width + 10; + var ttHeight = tooltipRect.height + 10; + var x = w.config.tooltip.fixed.offsetX; + var y = w.config.tooltip.fixed.offsetY; + + if (w.config.tooltip.fixed.position.toLowerCase().indexOf('right') > -1) { + x = x + w.globals.svgWidth - ttWidth + 10; + } + + if (w.config.tooltip.fixed.position.toLowerCase().indexOf('bottom') > -1) { + y = y + w.globals.svgHeight - ttHeight - 10; + } + + tooltipEl.style.left = x + 'px'; + tooltipEl.style.top = y + 'px'; + return { + x: x, + y: y, + ttWidth: ttWidth, + ttHeight: ttHeight + }; + } + }, { + key: "addPointsEventsListeners", + value: function addPointsEventsListeners(seriesHoverParams) { + var w = this.w; + var points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series-markers .apexcharts-marker'); + this.addPathsEventListeners(points, seriesHoverParams); + } + }, { + key: "addBarsEventListeners", + value: function addBarsEventListeners(seriesHoverParams) { + var w = this.w; + var bars = w.globals.dom.baseEl.querySelectorAll('.apexcharts-bar-area, .apexcharts-candlestick-area'); + this.addPathsEventListeners(bars, seriesHoverParams); + } + }, { + key: "addPathsEventListeners", + value: function addPathsEventListeners(paths, opts) { + var _this = this; + + var self = this; + + var _loop = function _loop(p) { + var extendedOpts = { + paths: paths[p], + tooltipEl: opts.tooltipEl, + tooltipY: opts.tooltipY, + tooltipX: opts.tooltipX, + elGrid: opts.elGrid, + hoverArea: opts.hoverArea, + ttItems: opts.ttItems + }; + _this.w.globals.tooltipOpts = extendedOpts; + var events = ['mousemove', 'touchmove', 'mouseout', 'touchend']; + events.map(function (ev) { + return paths[p].addEventListener(ev, self.seriesHover.bind(self, extendedOpts), { + capture: false, + passive: true + }); + }); + }; + + for (var p = 0; p < paths.length; p++) { + _loop(p); + } + } + /* + ** The actual series hover function + */ + + }, { + key: "seriesHover", + value: function seriesHover(opt, e) { + var _this2 = this; + + var chartGroups = []; + var w = this.w; // if user has more than one charts in group, we need to sync + + if (w.config.chart.group) { + chartGroups = this.ctx.getGroupedCharts(); + } + + if (w.globals.axisCharts && (w.globals.minX === -Infinity && w.globals.maxX === Infinity || w.globals.dataPoints === 0)) { + return; + } + + if (chartGroups.length) { + chartGroups.forEach(function (ch) { + var tooltipEl = _this2.getElTooltip(ch); + + var newOpts = { + paths: opt.paths, + tooltipEl: tooltipEl, + tooltipY: opt.tooltipY, + tooltipX: opt.tooltipX, + elGrid: opt.elGrid, + hoverArea: opt.hoverArea, + ttItems: ch.w.globals.tooltip.ttItems // all the charts should have the same minX and maxX (same xaxis) for multiple tooltips to work correctly + + }; + + if (ch.w.globals.minX === _this2.w.globals.minX && ch.w.globals.maxX === _this2.w.globals.maxX) { + ch.w.globals.tooltip.seriesHoverByContext({ + chartCtx: ch, + ttCtx: ch.w.globals.tooltip, + opt: newOpts, + e: e + }); + } + }); + } else { + this.seriesHoverByContext({ + chartCtx: this.ctx, + ttCtx: this.w.globals.tooltip, + opt: opt, + e: e + }); + } + } + }, { + key: "seriesHoverByContext", + value: function seriesHoverByContext(_ref) { + var chartCtx = _ref.chartCtx, + ttCtx = _ref.ttCtx, + opt = _ref.opt, + e = _ref.e; + var w = chartCtx.w; + var tooltipEl = this.getElTooltip(); // tooltipRect is calculated on every mousemove, because the text is dynamic + + ttCtx.tooltipRect = { + x: 0, + y: 0, + ttWidth: tooltipEl.getBoundingClientRect().width, + ttHeight: tooltipEl.getBoundingClientRect().height + }; + ttCtx.e = e; // highlight the current hovered bars + + if (ttCtx.hasBars() && !w.globals.comboCharts && !ttCtx.isBarShared) { + if (w.config.tooltip.onDatasetHover.highlightDataSeries) { + var series = new Series(chartCtx); + series.toggleSeriesOnHover(e, e.target.parentNode); + } + } + + if (ttCtx.fixedTooltip) { + ttCtx.drawFixedTooltipRect(); + } + + if (w.globals.axisCharts) { + ttCtx.axisChartsTooltips({ + e: e, + opt: opt, + tooltipRect: ttCtx.tooltipRect + }); + } else { + // non-plot charts i.e pie/donut/circle + ttCtx.nonAxisChartsTooltips({ + e: e, + opt: opt, + tooltipRect: ttCtx.tooltipRect + }); + } + } // tooltip handling for line/area/bar/columns/scatter + + }, { + key: "axisChartsTooltips", + value: function axisChartsTooltips(_ref2) { + var e = _ref2.e, + opt = _ref2.opt; + var w = this.w; + var j, x, y; + var self = this; + var capj = null; + var seriesBound = opt.elGrid.getBoundingClientRect(); + var clientX = e.type === 'touchmove' ? e.touches[0].clientX : e.clientX; + var clientY = e.type === 'touchmove' ? e.touches[0].clientY : e.clientY; + this.clientY = clientY; + this.clientX = clientX; + + if (clientY < seriesBound.top || clientY > seriesBound.top + seriesBound.height) { + self.handleMouseOut(opt); + return; + } + + var tooltipEl = this.getElTooltip(); + var xcrosshairs = this.getElXCrosshairs(); + var isStickyTooltip = w.globals.xyCharts || w.config.chart.type === 'bar' && !this.isBarHorizontal && this.hasBars() && w.config.tooltip.shared || w.globals.comboCharts && this.hasBars; + + if (w.config.chart.type === 'bar' && this.isBarHorizontal && this.hasBars()) { + isStickyTooltip = false; + } + + if (e.type === 'mousemove' || e.type === 'touchmove') { + if (xcrosshairs !== null) { + xcrosshairs.classList.add('active'); + } + + if (self.ycrosshairs !== null && self.blyaxisTooltip) { + self.ycrosshairs.classList.add('active'); + } + + if (isStickyTooltip && !self.showOnIntersect) { + capj = self.tooltipUtil.getNearestValues({ + context: self, + hoverArea: opt.hoverArea, + elGrid: opt.elGrid, + clientX: clientX, + clientY: clientY, + hasBars: self.hasBars + }); + j = capj.j; + var capturedSeries = capj.capturedSeries; + + if (capj.hoverX < 0 || capj.hoverX > w.globals.gridWidth) { + self.handleMouseOut(opt); + return; + } + + if (capturedSeries !== null) { + var ignoreNull = w.globals.series[capturedSeries][j] === null; + + if (ignoreNull) { + opt.tooltipEl.classList.remove('active'); + return; + } + + if (typeof w.globals.series[capturedSeries][j] !== 'undefined') { + if (w.config.tooltip.shared && this.tooltipUtil.isXoverlap(j) && this.tooltipUtil.isinitialSeriesSameLen()) { + this.create(self, capturedSeries, j, opt.ttItems); + } else { + this.create(self, capturedSeries, j, opt.ttItems, false); + } + } else { + if (this.tooltipUtil.isXoverlap(j)) { + self.create(self, 0, j, opt.ttItems); + } + } + } else { + // couldn't capture any series. check if shared X is same, + // if yes, draw a grouped tooltip + if (this.tooltipUtil.isXoverlap(j)) { + self.create(self, 0, j, opt.ttItems); + } + } + } else { + if (w.config.chart.type === 'heatmap') { + var markerXY = this.intersect.handleHeatTooltip({ + e: e, + opt: opt, + x: x, + y: y + }); + x = markerXY.x; + y = markerXY.y; + tooltipEl.style.left = x + 'px'; + tooltipEl.style.top = y + 'px'; + } else { + if (this.hasBars) { + this.intersect.handleBarTooltip({ + e: e, + opt: opt + }); + } + + if (this.hasMarkers) { + // intersect - line/area/scatter/bubble + this.intersect.handleMarkerTooltip({ + e: e, + opt: opt, + x: x, + y: y + }); + } + } + } + + if (this.blyaxisTooltip) { + for (var yt = 0; yt < w.config.yaxis.length; yt++) { + self.axesTooltip.drawYaxisTooltipText(yt, clientY, self.xyRatios); + } + } + + opt.tooltipEl.classList.add('active'); + } else if (e.type === 'mouseout' || e.type === 'touchend') { + this.handleMouseOut(opt); + } + } // tooltip handling for pie/donuts + + }, { + key: "nonAxisChartsTooltips", + value: function nonAxisChartsTooltips(_ref3) { + var e = _ref3.e, + opt = _ref3.opt, + tooltipRect = _ref3.tooltipRect; + var w = this.w; + var rel = opt.paths.getAttribute('rel'); + var tooltipEl = this.getElTooltip(); + var trX = 0; + var trY = 0; + var elPie = null; + var clientX = e.type === 'touchmove' ? e.touches[0].clientX : e.clientX; + + if (w.config.chart.type === 'radialBar') { + elPie = w.globals.dom.baseEl.querySelector('.apexcharts-radialbar'); + } else { + elPie = w.globals.dom.baseEl.querySelector('.apexcharts-pie'); + trX = parseInt(elPie.getAttribute('data:innerTranslateX')); + trY = parseInt(elPie.getAttribute('data:innerTranslateY')); + } + + var seriesBound = elPie.getBoundingClientRect(); + + if (e.type === 'mousemove' || e.type === 'touchmove') { + tooltipEl.classList.add('active'); + this.tooltipLabels.drawSeriesTexts({ + ttItems: opt.ttItems, + i: parseInt(rel) - 1, + shared: false + }); + var x = clientX - seriesBound.left - tooltipRect.ttWidth / 2.2 + trX; + var y = e.clientY - seriesBound.top - tooltipRect.ttHeight / 2 - 15 + trY; + + if (x < 0) { + x = 0; + } else if (x + tooltipRect.ttWidth > w.globals.gridWidth) { + x = clientX - seriesBound.left - tooltipRect.ttWidth + trX; + } + + if (y < 0) y = tooltipRect.ttHeight + 20; + tooltipEl.style.left = x + w.globals.translateX + 'px'; + tooltipEl.style.top = y + 'px'; + } else if (e.type === 'mouseout' || e.type === 'touchend') { + tooltipEl.classList.remove('active'); + } + } + }, { + key: "deactivateHoverFilter", + value: function deactivateHoverFilter() { + var w = this.w; + var graphics = new Graphics(this.ctx); + var allPaths = w.globals.dom.Paper.select(".apexcharts-bar-area"); + + for (var b = 0; b < allPaths.length; b++) { + graphics.pathMouseLeave(allPaths[b]); + } + } + }, { + key: "handleMouseOut", + value: function handleMouseOut(opt) { + var w = this.w; + var xcrosshairs = this.getElXCrosshairs(); + opt.tooltipEl.classList.remove('active'); + this.deactivateHoverFilter(); + + if (w.config.chart.type !== 'bubble') { + this.marker.resetPointsSize(); + } + + if (xcrosshairs !== null) { + xcrosshairs.classList.remove('active'); + } + + if (this.ycrosshairs !== null) { + this.ycrosshairs.classList.remove('active'); + } + + if (this.blxaxisTooltip) { + this.xaxisTooltip.classList.remove('active'); + } + + if (this.blyaxisTooltip) { + if (this.yaxisTTEls === null) { + this.yaxisTTEls = w.globals.dom.baseEl.querySelectorAll('.apexcharts-yaxistooltip'); + } + + for (var i = 0; i < this.yaxisTTEls.length; i++) { + this.yaxisTTEls[i].classList.remove('active'); + } + } + } + }, { + key: "getElMarkers", + value: function getElMarkers() { + return this.w.globals.dom.baseEl.querySelectorAll(' .apexcharts-series-markers'); + } + }, { + key: "getAllMarkers", + value: function getAllMarkers() { + return this.w.globals.dom.baseEl.querySelectorAll('.apexcharts-series-markers .apexcharts-marker'); + } + }, { + key: "hasMarkers", + value: function hasMarkers() { + var markers = this.getElMarkers(); + return markers.length > 0; + } + }, { + key: "getElBars", + value: function getElBars() { + return this.w.globals.dom.baseEl.querySelectorAll('.apexcharts-bar-series, .apexcharts-candlestick-series'); + } + }, { + key: "hasBars", + value: function hasBars() { + var bars = this.getElBars(); + return bars.length > 0; + } + }, { + key: "create", + value: function create(context, capturedSeries, j, ttItems) { + var shared = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null; + var w = this.w; + var self = context; + if (shared === null) shared = w.config.tooltip.shared; + var hasMarkers = this.hasMarkers(); + var bars = this.getElBars(); + + if (shared) { + self.tooltipLabels.drawSeriesTexts({ + ttItems: ttItems, + i: capturedSeries, + j: j, + shared: this.showOnIntersect ? false : w.config.tooltip.shared + }); + + if (hasMarkers) { + if (w.globals.markers.largestSize > 0) { + self.marker.enlargePoints(j); + } else { + self.tooltipPosition.moveDynamicPointsOnHover(j); + } + } + + if (this.hasBars()) { + this.barSeriesHeight = this.tooltipUtil.getBarsHeight(bars); + + if (this.barSeriesHeight > 0) { + // hover state, activate snap filter + var graphics = new Graphics(this.ctx); + var paths = w.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(j, "']")); // de-activate first + + this.deactivateHoverFilter(); + this.tooltipPosition.moveStickyTooltipOverBars(j); + + for (var b = 0; b < paths.length; b++) { + graphics.pathMouseEnter(paths[b]); + } + } + } + } else { + self.tooltipLabels.drawSeriesTexts({ + shared: false, + ttItems: ttItems, + i: capturedSeries, + j: j + }); + + if (this.hasBars()) { + self.tooltipPosition.moveStickyTooltipOverBars(j); + } + + if (hasMarkers) { + self.tooltipPosition.moveMarkers(capturedSeries, j); + } + } + } + }]); + + return Tooltip; +}(); + +var icoPan = "\n \n \n \n \n \n \n \n"; + +var icoZoom = "\n \n \n \n"; + +var icoReset = "\n \n \n"; + +var icoZoomIn = "\n \n \n\n"; + +var icoZoomOut = "\n \n \n\n"; + +var icoSelect = "\n \n \n"; + +var icoMenu = ""; + +/** + * ApexCharts Toolbar Class for creating toolbar in axis based charts. + * + * @module Toolbar + **/ + +var Toolbar = +/*#__PURE__*/ +function () { + function Toolbar(ctx) { + _classCallCheck(this, Toolbar); + + this.ctx = ctx; + this.w = ctx.w; + this.ev = this.w.config.chart.events; + this.localeValues = this.w.globals.locale.toolbar; + } + + _createClass(Toolbar, [{ + key: "createToolbar", + value: function createToolbar() { + var w = this.w; + var elToolbarWrap = document.createElement('div'); + elToolbarWrap.setAttribute('class', 'apexcharts-toolbar'); + w.globals.dom.elWrap.appendChild(elToolbarWrap); + this.elZoom = document.createElement('div'); + this.elZoomIn = document.createElement('div'); + this.elZoomOut = document.createElement('div'); + this.elPan = document.createElement('div'); + this.elSelection = document.createElement('div'); + this.elZoomReset = document.createElement('div'); + this.elMenuIcon = document.createElement('div'); + this.elMenu = document.createElement('div'); + this.elCustomIcons = []; + this.t = w.config.chart.toolbar.tools; + + if (Array.isArray(this.t.customIcons)) { + for (var i = 0; i < this.t.customIcons.length; i++) { + this.elCustomIcons.push(document.createElement('div')); + } + } + + this.elMenuItems = []; + var toolbarControls = []; + + if (this.t.zoomin && w.config.chart.zoom.enabled) { + toolbarControls.push({ + el: this.elZoomIn, + icon: typeof this.t.zoomin === 'string' ? this.t.zoomin : icoZoomIn, + title: this.localeValues.zoomIn, + class: 'apexcharts-zoom-in-icon' + }); + } + + if (this.t.zoomout && w.config.chart.zoom.enabled) { + toolbarControls.push({ + el: this.elZoomOut, + icon: typeof this.t.zoomout === 'string' ? this.t.zoomout : icoZoomOut, + title: this.localeValues.zoomOut, + class: 'apexcharts-zoom-out-icon' + }); + } + + if (this.t.zoom && w.config.chart.zoom.enabled) { + toolbarControls.push({ + el: this.elZoom, + icon: typeof this.t.zoom === 'string' ? this.t.zoom : icoZoom, + title: this.localeValues.selectionZoom, + class: w.globals.isTouchDevice ? 'hidden' : 'apexcharts-zoom-icon' + }); + } + + if (this.t.selection && w.config.chart.selection.enabled) { + toolbarControls.push({ + el: this.elSelection, + icon: typeof this.t.selection === 'string' ? this.t.selection : icoSelect, + title: this.localeValues.selection, + class: w.globals.isTouchDevice ? 'hidden' : 'apexcharts-selection-icon' + }); + } + + if (this.t.pan && w.config.chart.zoom.enabled) { + toolbarControls.push({ + el: this.elPan, + icon: typeof this.t.pan === 'string' ? this.t.pan : icoPan, + title: this.localeValues.pan, + class: w.globals.isTouchDevice ? 'hidden' : 'apexcharts-pan-icon' + }); + } + + if (this.t.reset && w.config.chart.zoom.enabled) { + toolbarControls.push({ + el: this.elZoomReset, + icon: typeof this.t.reset === 'string' ? this.t.reset : icoReset, + title: this.localeValues.reset, + class: 'apexcharts-reset-zoom-icon' + }); + } + + if (this.t.download) { + toolbarControls.push({ + el: this.elMenuIcon, + icon: typeof this.t.download === 'string' ? this.t.download : icoMenu, + title: this.localeValues.menu, + class: 'apexcharts-menu-icon' + }); + } + + for (var _i = 0; _i < this.elCustomIcons.length; _i++) { + toolbarControls.push({ + el: this.elCustomIcons[_i], + icon: this.t.customIcons[_i].icon, + title: this.t.customIcons[_i].title, + index: this.t.customIcons[_i].index, + class: 'apexcharts-toolbar-custom-icon ' + this.t.customIcons[_i].class + }); + } + + toolbarControls.forEach(function (t, index) { + if (t.index) { + Utils.moveIndexInArray(toolbarControls, index, t.index); + } + }); + + for (var _i2 = 0; _i2 < toolbarControls.length; _i2++) { + Graphics.setAttrs(toolbarControls[_i2].el, { + class: toolbarControls[_i2].class, + title: toolbarControls[_i2].title + }); + toolbarControls[_i2].el.innerHTML = toolbarControls[_i2].icon; + elToolbarWrap.appendChild(toolbarControls[_i2].el); + } + + elToolbarWrap.appendChild(this.elMenu); + Graphics.setAttrs(this.elMenu, { + class: 'apexcharts-menu' + }); + var menuItems = [{ + name: 'exportSVG', + title: this.localeValues.exportToSVG + }, { + name: 'exportPNG', + title: this.localeValues.exportToPNG + }]; + + for (var _i3 = 0; _i3 < menuItems.length; _i3++) { + this.elMenuItems.push(document.createElement('div')); + this.elMenuItems[_i3].innerHTML = menuItems[_i3].title; + Graphics.setAttrs(this.elMenuItems[_i3], { + class: "apexcharts-menu-item ".concat(menuItems[_i3].name), + title: menuItems[_i3].title + }); + this.elMenu.appendChild(this.elMenuItems[_i3]); + } + + if (w.globals.zoomEnabled) { + this.elZoom.classList.add('selected'); + } else if (w.globals.panEnabled) { + this.elPan.classList.add('selected'); + } else if (w.globals.selectionEnabled) { + this.elSelection.classList.add('selected'); + } + + this.addToolbarEventListeners(); + } + }, { + key: "addToolbarEventListeners", + value: function addToolbarEventListeners() { + var _this = this; + + this.elZoomReset.addEventListener('click', this.handleZoomReset.bind(this)); + this.elSelection.addEventListener('click', this.toggleSelection.bind(this)); + this.elZoom.addEventListener('click', this.toggleZooming.bind(this)); + this.elZoomIn.addEventListener('click', this.handleZoomIn.bind(this)); + this.elZoomOut.addEventListener('click', this.handleZoomOut.bind(this)); + this.elPan.addEventListener('click', this.togglePanning.bind(this)); + this.elMenuIcon.addEventListener('click', this.toggleMenu.bind(this)); + this.elMenuItems.forEach(function (m) { + if (m.classList.contains('exportSVG')) { + m.addEventListener('click', _this.downloadSVG.bind(_this)); + } else if (m.classList.contains('exportPNG')) { + m.addEventListener('click', _this.downloadPNG.bind(_this)); + } + }); + + for (var i = 0; i < this.t.customIcons.length; i++) { + this.elCustomIcons[i].addEventListener('click', this.t.customIcons[i].click); + } + } + }, { + key: "toggleSelection", + value: function toggleSelection() { + this.toggleOtherControls(); + this.w.globals.selectionEnabled = !this.w.globals.selectionEnabled; + + if (!this.elSelection.classList.contains('selected')) { + this.elSelection.classList.add('selected'); + } else { + this.elSelection.classList.remove('selected'); + } + } + }, { + key: "toggleZooming", + value: function toggleZooming() { + this.toggleOtherControls(); + this.w.globals.zoomEnabled = !this.w.globals.zoomEnabled; + + if (!this.elZoom.classList.contains('selected')) { + this.elZoom.classList.add('selected'); + } else { + this.elZoom.classList.remove('selected'); + } + } + }, { + key: "getToolbarIconsReference", + value: function getToolbarIconsReference() { + var w = this.w; + + if (!this.elZoom) { + this.elZoom = w.globals.dom.baseEl.querySelector('.apexcharts-zoom-icon'); + } + + if (!this.elPan) { + this.elPan = w.globals.dom.baseEl.querySelector('.apexcharts-pan-icon'); + } + + if (!this.elSelection) { + this.elSelection = w.globals.dom.baseEl.querySelector('.apexcharts-selection-icon'); + } + } + }, { + key: "enableZooming", + value: function enableZooming() { + this.toggleOtherControls(); + this.w.globals.zoomEnabled = true; + + if (this.elZoom) { + this.elZoom.classList.add('selected'); + } + + if (this.elPan) { + this.elPan.classList.remove('selected'); + } + } + }, { + key: "enablePanning", + value: function enablePanning() { + this.toggleOtherControls(); + this.w.globals.panEnabled = true; + + if (this.elPan) { + this.elPan.classList.add('selected'); + } + + if (this.elZoom) { + this.elZoom.classList.remove('selected'); + } + } + }, { + key: "togglePanning", + value: function togglePanning() { + this.toggleOtherControls(); + this.w.globals.panEnabled = !this.w.globals.panEnabled; + + if (!this.elPan.classList.contains('selected')) { + this.elPan.classList.add('selected'); + } else { + this.elPan.classList.remove('selected'); + } + } + }, { + key: "toggleOtherControls", + value: function toggleOtherControls() { + var w = this.w; + w.globals.panEnabled = false; + w.globals.zoomEnabled = false; + w.globals.selectionEnabled = false; + this.getToolbarIconsReference(); + + if (this.elPan) { + this.elPan.classList.remove('selected'); + } + + if (this.elSelection) { + this.elSelection.classList.remove('selected'); + } + + if (this.elZoom) { + this.elZoom.classList.remove('selected'); + } + } + }, { + key: "handleZoomIn", + value: function handleZoomIn() { + var w = this.w; + var centerX = (w.globals.minX + w.globals.maxX) / 2; + var newMinX = (w.globals.minX + centerX) / 2; + var newMaxX = (w.globals.maxX + centerX) / 2; + + if (!w.globals.disableZoomIn) { + this.zoomUpdateOptions(newMinX, newMaxX); + } + } + }, { + key: "handleZoomOut", + value: function handleZoomOut() { + var w = this.w; // avoid zooming out beyond 1000 which may result in NaN values being printed on x-axis + + if (w.config.xaxis.type === 'datetime' && new Date(w.globals.minX).getUTCFullYear() < 1000) { + return; + } + + var centerX = (w.globals.minX + w.globals.maxX) / 2; + var newMinX = w.globals.minX - (centerX - w.globals.minX); + var newMaxX = w.globals.maxX - (centerX - w.globals.maxX); + + if (!w.globals.disableZoomOut) { + this.zoomUpdateOptions(newMinX, newMaxX); + } + } + }, { + key: "zoomUpdateOptions", + value: function zoomUpdateOptions(newMinX, newMaxX) { + var xaxis = { + min: newMinX, + max: newMaxX + }; + var beforeZoomRange = this.getBeforeZoomRange(xaxis); + + if (beforeZoomRange) { + xaxis = beforeZoomRange.xaxis; + } + + this.w.globals.zoomed = true; + + this.ctx._updateOptions({ + xaxis: xaxis + }, false, this.w.config.chart.animations.dynamicAnimation.enabled); + + this.zoomCallback(xaxis); + } + }, { + key: "zoomCallback", + value: function zoomCallback(xaxis, yaxis) { + if (typeof this.ev.zoomed === 'function') { + this.ev.zoomed(this.ctx, { + xaxis: xaxis, + yaxis: yaxis + }); + } + } + }, { + key: "getBeforeZoomRange", + value: function getBeforeZoomRange(xaxis, yaxis) { + var newRange = null; + + if (typeof this.ev.beforeZoom === 'function') { + newRange = this.ev.beforeZoom(this, { + xaxis: xaxis, + yaxis: yaxis + }); + } + + return newRange; + } + }, { + key: "toggleMenu", + value: function toggleMenu() { + if (this.elMenu.classList.contains('open')) { + this.elMenu.classList.remove('open'); + } else { + this.elMenu.classList.add('open'); + } + } + }, { + key: "downloadPNG", + value: function downloadPNG() { + var downloadPNG = new Exports(this.ctx); + downloadPNG.exportToPng(this.ctx); + this.toggleMenu(); + } + }, { + key: "downloadSVG", + value: function downloadSVG() { + var downloadSVG = new Exports(this.ctx); + downloadSVG.exportToSVG(); + this.toggleMenu(); + } + }, { + key: "handleZoomReset", + value: function handleZoomReset(e) { + var _this2 = this; + + var charts = this.ctx.getSyncedCharts(); + charts.forEach(function (ch) { + var w = ch.w; + + if (w.globals.minX !== w.globals.initialminX && w.globals.maxX !== w.globals.initialmaxX) { + ch.revertDefaultAxisMinMax(); + + if (typeof w.config.chart.events.zoomed === 'function') { + _this2.zoomCallback({ + min: w.config.xaxis.min, + max: w.config.xaxis.max + }); + } + + w.globals.zoomed = false; + + ch._updateSeries(w.globals.initialSeries, w.config.chart.animations.dynamicAnimation.enabled); + } + }); + } + }, { + key: "destroy", + value: function destroy() { + if (this.elZoomReset) { + this.elZoomReset.removeEventListener('click', this.handleZoomReset.bind(this)); + this.elSelection.removeEventListener('click', this.toggleSelection.bind(this)); + this.elZoom.removeEventListener('click', this.toggleZooming.bind(this)); + this.elZoomIn.removeEventListener('click', this.handleZoomIn.bind(this)); + this.elZoomOut.removeEventListener('click', this.handleZoomOut.bind(this)); + this.elPan.removeEventListener('click', this.togglePanning.bind(this)); + this.elMenuIcon.removeEventListener('click', this.toggleMenu.bind(this)); + } + + this.elZoom = null; + this.elZoomIn = null; + this.elZoomOut = null; + this.elPan = null; + this.elSelection = null; + this.elZoomReset = null; + this.elMenuIcon = null; + } + }]); + + return Toolbar; +}(); + +/** + * ApexCharts Zoom Class for handling zooming and panning on axes based charts. + * + * @module ZoomPanSelection + **/ + +var ZoomPanSelection = +/*#__PURE__*/ +function (_Toolbar) { + _inherits(ZoomPanSelection, _Toolbar); + + function ZoomPanSelection(ctx) { + var _this; + + _classCallCheck(this, ZoomPanSelection); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(ZoomPanSelection).call(this, ctx)); + _this.ctx = ctx; + _this.w = ctx.w; + _this.dragged = false; + _this.graphics = new Graphics(_this.ctx); + _this.eventList = ['mousedown', 'mousemove', 'touchstart', 'touchmove', 'mouseup', 'touchend']; + _this.clientX = 0; + _this.clientY = 0; + _this.startX = 0; + _this.endX = 0; + _this.dragX = 0; + _this.startY = 0; + _this.endY = 0; + _this.dragY = 0; + return _this; + } + + _createClass(ZoomPanSelection, [{ + key: "init", + value: function init(_ref) { + var _this2 = this; + + var xyRatios = _ref.xyRatios; + var w = this.w; + var me = this; + this.xyRatios = xyRatios; + this.zoomRect = this.graphics.drawRect(0, 0, 0, 0); + this.selectionRect = this.graphics.drawRect(0, 0, 0, 0); + this.gridRect = w.globals.dom.baseEl.querySelector('.apexcharts-grid'); + this.zoomRect.node.classList.add('apexcharts-zoom-rect'); + this.selectionRect.node.classList.add('apexcharts-selection-rect'); + w.globals.dom.elGraphical.add(this.zoomRect); + w.globals.dom.elGraphical.add(this.selectionRect); + + if (w.config.chart.selection.type === 'x') { + this.slDraggableRect = this.selectionRect.draggable({ + minX: 0, + minY: 0, + maxX: w.globals.gridWidth, + maxY: w.globals.gridHeight + }).on('dragmove', this.selectionDragging.bind(this, 'dragging')); + } else if (w.config.chart.selection.type === 'y') { + this.slDraggableRect = this.selectionRect.draggable({ + minX: 0, + maxX: w.globals.gridWidth + }).on('dragmove', this.selectionDragging.bind(this, 'dragging')); + } else { + this.slDraggableRect = this.selectionRect.draggable().on('dragmove', this.selectionDragging.bind(this, 'dragging')); + } + + this.preselectedSelection(); + this.hoverArea = w.globals.dom.baseEl.querySelector(w.globals.chartClass); + this.hoverArea.classList.add('zoomable'); + this.eventList.forEach(function (event) { + _this2.hoverArea.addEventListener(event, me.svgMouseEvents.bind(me, xyRatios), { + capture: false, + passive: true + }); + }); + } // remove the event listeners which were previously added on hover area + + }, { + key: "destroy", + value: function destroy() { + var _this3 = this; + + var me = this; + this.eventList.forEach(function (event) { + if (_this3.hoverArea) { + _this3.hoverArea.removeEventListener(event, me.svgMouseEvents.bind(me, me.xyRatios), { + capture: false, + passive: true + }); + } + }); + + if (this.slDraggableRect) { + this.slDraggableRect.draggable(false); + this.slDraggableRect.off(); + this.selectionRect.off(); + } + + this.selectionRect = null; + this.zoomRect = null; + this.gridRect = null; + } + }, { + key: "svgMouseEvents", + value: function svgMouseEvents(xyRatios, e) { + var w = this.w; + var me = this; + var toolbar = this.ctx.toolbar; + var zoomtype = w.globals.zoomEnabled ? w.config.chart.zoom.type : w.config.chart.selection.type; + + if (e.shiftKey) { + this.shiftWasPressed = true; + toolbar.enablePanning(); + } else { + if (this.shiftWasPressed) { + toolbar.enableZooming(); + this.shiftWasPressed = false; + } + } + + var falsePositives = e.target.classList.contains('apexcharts-selection-rect') || e.target.parentNode.classList.contains('apexcharts-toolbar'); + if (falsePositives) return; + me.clientX = e.type === 'touchmove' || e.type === 'touchstart' ? e.touches[0].clientX : e.type === 'touchend' ? e.changedTouches[0].clientX : e.clientX; + me.clientY = e.type === 'touchmove' || e.type === 'touchstart' ? e.touches[0].clientY : e.type === 'touchend' ? e.changedTouches[0].clientY : e.clientY; + + if (e.type === 'mousedown' && e.which === 1) { + var gridRectDim = me.gridRect.getBoundingClientRect(); + me.startX = me.clientX - gridRectDim.left; + me.startY = me.clientY - gridRectDim.top; + me.dragged = false; + me.w.globals.mousedown = true; + } + + if (e.type === 'mousemove' && e.which === 1 || e.type === 'touchmove') { + me.dragged = true; + + if (w.globals.panEnabled) { + w.globals.selection = null; + + if (me.w.globals.mousedown) { + me.panDragging({ + context: me, + zoomtype: zoomtype, + xyRatios: xyRatios + }); + } + } else { + if (me.w.globals.mousedown && w.globals.zoomEnabled || me.w.globals.mousedown && w.globals.selectionEnabled) { + me.selection = me.selectionDrawing({ + context: me, + zoomtype: zoomtype + }); + } + } + } + + if (e.type === 'mouseup' || e.type === 'touchend') { + // we will be calling getBoundingClientRect on each mousedown/mousemove/mouseup + var _gridRectDim = me.gridRect.getBoundingClientRect(); + + if (me.w.globals.mousedown) { + // user released the drag, now do all the calculations + me.endX = me.clientX - _gridRectDim.left; + me.endY = me.clientY - _gridRectDim.top; + me.dragX = Math.abs(me.endX - me.startX); + me.dragY = Math.abs(me.endY - me.startY); + + if (w.globals.zoomEnabled || w.globals.selectionEnabled) { + me.selectionDrawn({ + context: me, + zoomtype: zoomtype + }); + } + } + + if (w.globals.zoomEnabled) { + me.hideSelectionRect(this.selectionRect); + } + + me.dragged = false; + me.w.globals.mousedown = false; + } + + this.makeSelectionRectDraggable(); + } + }, { + key: "makeSelectionRectDraggable", + value: function makeSelectionRectDraggable() { + var w = this.w; + if (!this.selectionRect) return; + var rectDim = this.selectionRect.node.getBoundingClientRect(); + + if (rectDim.width > 0 && rectDim.height > 0) { + this.slDraggableRect.selectize().resize({ + constraint: { + minX: 0, + minY: 0, + maxX: w.globals.gridWidth, + maxY: w.globals.gridHeight + } + }).on('resizing', this.selectionDragging.bind(this, 'resizing')); + } + } + }, { + key: "preselectedSelection", + value: function preselectedSelection() { + var w = this.w; + var xyRatios = this.xyRatios; + + if (!w.globals.zoomEnabled) { + if (typeof w.globals.selection !== 'undefined' && w.globals.selection !== null) { + this.drawSelectionRect(w.globals.selection); + } else { + if (w.config.chart.selection.xaxis.min !== undefined && w.config.chart.selection.xaxis.max !== undefined) { + var x = (w.config.chart.selection.xaxis.min - w.globals.minX) / xyRatios.xRatio; + var width = w.globals.gridWidth - (w.globals.maxX - w.config.chart.selection.xaxis.max) / xyRatios.xRatio - x; + var selectionRect = { + x: x, + y: 0, + width: width, + height: w.globals.gridHeight, + translateX: 0, + translateY: 0, + selectionEnabled: true + }; + this.drawSelectionRect(selectionRect); + this.makeSelectionRectDraggable(); + + if (typeof w.config.chart.events.selection === 'function') { + w.config.chart.events.selection(this.ctx, { + xaxis: { + min: w.config.chart.selection.xaxis.min, + max: w.config.chart.selection.xaxis.max + }, + yaxis: {} + }); + } + } + } + } + } + }, { + key: "drawSelectionRect", + value: function drawSelectionRect(_ref2) { + var x = _ref2.x, + y = _ref2.y, + width = _ref2.width, + height = _ref2.height, + translateX = _ref2.translateX, + translateY = _ref2.translateY; + var w = this.w; + var zoomRect = this.zoomRect; + var selectionRect = this.selectionRect; + + if (this.dragged || w.globals.selection !== null) { + var scalingAttrs = { + transform: 'translate(' + translateX + ', ' + translateY + ')' // change styles based on zoom or selection + // zoom is Enabled and user has dragged, so draw blue rect + + }; + + if (w.globals.zoomEnabled && this.dragged) { + zoomRect.attr({ + x: x, + y: y, + width: width, + height: height, + fill: w.config.chart.zoom.zoomedArea.fill.color, + 'fill-opacity': w.config.chart.zoom.zoomedArea.fill.opacity, + stroke: w.config.chart.zoom.zoomedArea.stroke.color, + 'stroke-width': w.config.chart.zoom.zoomedArea.stroke.width, + 'stroke-opacity': w.config.chart.zoom.zoomedArea.stroke.opacity + }); + Graphics.setAttrs(zoomRect.node, scalingAttrs); + } // selection is enabled + + + if (w.globals.selectionEnabled) { + selectionRect.attr({ + x: x, + y: y, + width: width > 0 ? width : 0, + height: height > 0 ? height : 0, + fill: w.config.chart.selection.fill.color, + 'fill-opacity': w.config.chart.selection.fill.opacity, + stroke: w.config.chart.selection.stroke.color, + 'stroke-width': w.config.chart.selection.stroke.width, + 'stroke-dasharray': w.config.chart.selection.stroke.dashArray, + 'stroke-opacity': w.config.chart.selection.stroke.opacity + }); + Graphics.setAttrs(selectionRect.node, scalingAttrs); + } + } + } + }, { + key: "hideSelectionRect", + value: function hideSelectionRect(rect) { + if (rect) { + rect.attr({ + x: 0, + y: 0, + width: 0, + height: 0 + }); + } + } + }, { + key: "selectionDrawing", + value: function selectionDrawing(_ref3) { + var context = _ref3.context, + zoomtype = _ref3.zoomtype; + var w = this.w; + var me = context; + var gridRectDim = this.gridRect.getBoundingClientRect(); + var startX = me.startX - 1; + var startY = me.startY; + var selectionWidth = me.clientX - gridRectDim.left - startX; + var selectionHeight = me.clientY - gridRectDim.top - startY; + var translateX = 0; + var translateY = 0; + var selectionRect = {}; + + if (Math.abs(selectionWidth + startX) > w.globals.gridWidth || me.clientX - gridRectDim.left < 0) { + // user dragged the mouse outside drawing area + // TODO: test the selectionRect and make sure it doesn't crosses drawing area + me.hideSelectionRect(this.zoomRect); + me.dragged = false; + me.w.globals.mousedown = false; + } // inverse selection X + + + if (startX > me.clientX - gridRectDim.left) { + selectionWidth = Math.abs(selectionWidth); + translateX = -selectionWidth; + } // inverse selection Y + + + if (startY > me.clientY - gridRectDim.top) { + selectionHeight = Math.abs(selectionHeight); + translateY = -selectionHeight; + } + + if (zoomtype === 'x') { + selectionRect = { + x: startX, + y: 0, + width: selectionWidth, + height: w.globals.gridHeight, + translateX: translateX, + translateY: 0 + }; + } else if (zoomtype === 'y') { + selectionRect = { + x: 0, + y: startY, + width: w.globals.gridWidth, + height: selectionHeight, + translateX: 0, + translateY: translateY + }; + } else { + selectionRect = { + x: startX, + y: startY, + width: selectionWidth, + height: selectionHeight, + translateX: translateX, + translateY: translateY + }; + } + + me.drawSelectionRect(selectionRect); + return selectionRect; + } + }, { + key: "selectionDragging", + value: function selectionDragging(type, e) { + var _this4 = this; + + var w = this.w; + var xyRatios = this.xyRatios; + var selRect = this.selectionRect; + var timerInterval = 0; + + if (type === 'resizing') { + timerInterval = 30; + } + + if (typeof w.config.chart.events.selection === 'function') { + // a small debouncer is required when resizing to avoid freezing the chart + clearTimeout(this.w.globals.selectionResizeTimer); + this.w.globals.selectionResizeTimer = window.setTimeout(function () { + var gridRectDim = _this4.gridRect.getBoundingClientRect(); + + var selectionRect = selRect.node.getBoundingClientRect(); + var minX = w.globals.xAxisScale.niceMin + (selectionRect.left - gridRectDim.left) * xyRatios.xRatio; + var maxX = w.globals.xAxisScale.niceMin + (selectionRect.right - gridRectDim.left) * xyRatios.xRatio; + var minY = w.globals.yAxisScale[0].niceMin + (gridRectDim.bottom - selectionRect.bottom) * xyRatios.yRatio[0]; + var maxY = w.globals.yAxisScale[0].niceMax - (selectionRect.top - gridRectDim.top) * xyRatios.yRatio[0]; + w.config.chart.events.selection(_this4.ctx, { + xaxis: { + min: minX, + max: maxX + }, + yaxis: { + min: minY, + max: maxY + } + }); + }, timerInterval); + } + } + }, { + key: "selectionDrawn", + value: function selectionDrawn(_ref4) { + var context = _ref4.context, + zoomtype = _ref4.zoomtype; + var w = this.w; + var me = context; + var xyRatios = this.xyRatios; + var toolbar = this.ctx.toolbar; + + if (me.startX > me.endX) { + var tempX = me.startX; + me.startX = me.endX; + me.endX = tempX; + } + + if (me.startY > me.endY) { + var tempY = me.startY; + me.startY = me.endY; + me.endY = tempY; + } + + var xLowestValue = w.globals.xAxisScale.niceMin + me.startX * xyRatios.xRatio; + var xHighestValue = w.globals.xAxisScale.niceMin + me.endX * xyRatios.xRatio; // TODO: we will consider the 1st y axis values here for getting highest and lowest y + + var yHighestValue = []; + var yLowestValue = []; + w.config.yaxis.forEach(function (yaxe, index) { + yHighestValue.push(Math.floor(w.globals.yAxisScale[index].niceMax - xyRatios.yRatio[index] * me.startY)); + yLowestValue.push(Math.floor(w.globals.yAxisScale[index].niceMax - xyRatios.yRatio[index] * me.endY)); + }); + + if (me.dragged && (me.dragX > 10 || me.dragY > 10) && xLowestValue !== xHighestValue) { + if (w.globals.zoomEnabled) { + var yaxis = Utils.clone(w.config.yaxis); // before zooming in/out, store the last yaxis and xaxis range, so that when user hits the RESET button, we get the original range + // also - make sure user is not already zoomed in/out - otherwise we will store zoomed values in lastAxis + + if (!w.globals.zoomed) { + w.globals.lastXAxis = Utils.clone(w.config.xaxis); + w.globals.lastYAxis = Utils.clone(w.config.yaxis); + } + + var xaxis = { + min: xLowestValue, + max: xHighestValue + }; + + if (zoomtype === 'xy' || zoomtype === 'y') { + yaxis.forEach(function (yaxe, index) { + yaxis[index].min = yLowestValue[index]; + yaxis[index].max = yHighestValue[index]; + }); + } + + if (w.config.chart.zoom.autoScaleYaxis) { + var scale = new Range(me.ctx); + yaxis = scale.autoScaleY(me.ctx, { + xaxis: xaxis + }); + } + + if (toolbar) { + var beforeZoomRange = toolbar.getBeforeZoomRange(xaxis, yaxis); + + if (beforeZoomRange) { + xaxis = beforeZoomRange.xaxis ? beforeZoomRange.xaxis : xaxis; + yaxis = beforeZoomRange.yaxis ? beforeZoomRange.yaxe : yaxis; + } + } + + if (zoomtype === 'x') { + me.ctx._updateOptions({ + xaxis: xaxis + }, false, me.w.config.chart.animations.dynamicAnimation.enabled); + } else if (zoomtype === 'y') { + me.ctx._updateOptions({ + yaxis: yaxis + }, false, me.w.config.chart.animations.dynamicAnimation.enabled); + } else { + me.ctx._updateOptions({ + xaxis: xaxis, + yaxis: yaxis + }, false, me.w.config.chart.animations.dynamicAnimation.enabled); + } + + if (typeof w.config.chart.events.zoomed === 'function') { + toolbar.zoomCallback(xaxis, yaxis); + } + + w.globals.zoomed = true; + } else if (w.globals.selectionEnabled) { + var _yaxis = null; + var _xaxis = null; + _xaxis = { + min: xLowestValue, + max: xHighestValue + }; + + if (zoomtype === 'xy' || zoomtype === 'y') { + _yaxis = Utils.clone(w.config.yaxis); + + _yaxis.forEach(function (yaxe, index) { + _yaxis[index].min = yLowestValue[index]; + _yaxis[index].max = yHighestValue[index]; + }); + } + + w.globals.selection = me.selection; + + if (typeof w.config.chart.events.selection === 'function') { + w.config.chart.events.selection(me.ctx, { + xaxis: _xaxis, + yaxis: _yaxis + }); + } + } + } + } + }, { + key: "panDragging", + value: function panDragging(_ref5) { + var context = _ref5.context, + zoomtype = _ref5.zoomtype; + var w = this.w; + var me = context; + var moveDirection; // check to make sure there is data to compare against + + if (typeof w.globals.lastClientPosition.x !== 'undefined') { + // get the change from last position to this position + var deltaX = w.globals.lastClientPosition.x - me.clientX; + var deltaY = w.globals.lastClientPosition.y - me.clientY; // check which direction had the highest amplitude and then figure out direction by checking if the value is greater or less than zero + + if (Math.abs(deltaX) > Math.abs(deltaY) && deltaX > 0) { + moveDirection = 'left'; + } else if (Math.abs(deltaX) > Math.abs(deltaY) && deltaX < 0) { + moveDirection = 'right'; + } else if (Math.abs(deltaY) > Math.abs(deltaX) && deltaY > 0) { + moveDirection = 'up'; + } else if (Math.abs(deltaY) > Math.abs(deltaX) && deltaY < 0) { + moveDirection = 'down'; + } + } // set the new last position to the current for next time (to get the position of drag) + + + w.globals.lastClientPosition = { + x: me.clientX, + y: me.clientY + }; + var xLowestValue = w.globals.minX; + var xHighestValue = w.globals.maxX; + this.panScrolled(moveDirection, xLowestValue, xHighestValue); + } + }, { + key: "panScrolled", + value: function panScrolled(moveDirection, xLowestValue, xHighestValue) { + var w = this.w; + var xyRatios = this.xyRatios; + var yaxis = Utils.clone(w.config.yaxis); + + if (moveDirection === 'left') { + xLowestValue = w.globals.minX + w.globals.gridWidth / 15 * xyRatios.xRatio; + xHighestValue = w.globals.maxX + w.globals.gridWidth / 15 * xyRatios.xRatio; + } else if (moveDirection === 'right') { + xLowestValue = w.globals.minX - w.globals.gridWidth / 15 * xyRatios.xRatio; + xHighestValue = w.globals.maxX - w.globals.gridWidth / 15 * xyRatios.xRatio; + } + + if (xLowestValue < w.globals.initialminX || xHighestValue > w.globals.initialmaxX) { + xLowestValue = w.globals.minX; + xHighestValue = w.globals.maxX; + } + + var xaxis = { + min: xLowestValue, + max: xHighestValue + }; + + if (w.config.chart.zoom.autoScaleYaxis) { + var scale = new Range(me.ctx); + yaxis = scale.autoScaleY(me.ctx, { + xaxis: xaxis + }); + } + + this.ctx._updateOptions({ + xaxis: { + min: xLowestValue, + max: xHighestValue + }, + yaxis: yaxis + }, false, false); + + if (typeof w.config.chart.events.scrolled === 'function') { + w.config.chart.events.scrolled(this.ctx, { + xaxis: { + min: xLowestValue, + max: xHighestValue + } + }); + } + } + }]); + + return ZoomPanSelection; +}(Toolbar); + +var TitleSubtitle = +/*#__PURE__*/ +function () { + function TitleSubtitle(ctx) { + _classCallCheck(this, TitleSubtitle); + + this.ctx = ctx; + this.w = ctx.w; + } + + _createClass(TitleSubtitle, [{ + key: "draw", + value: function draw() { + this.drawTitleSubtitle('title'); + this.drawTitleSubtitle('subtitle'); + } + }, { + key: "drawTitleSubtitle", + value: function drawTitleSubtitle(type) { + var w = this.w; + var tsConfig = type === 'title' ? w.config.title : w.config.subtitle; + var x = w.globals.svgWidth / 2; + var y = tsConfig.offsetY; + var textAnchor = 'middle'; + + if (tsConfig.align === 'left') { + x = 10; + textAnchor = 'start'; + } else if (tsConfig.align === 'right') { + x = w.globals.svgWidth - 10; + textAnchor = 'end'; + } + + x = x + tsConfig.offsetX; + y = y + parseInt(tsConfig.style.fontSize) + 2; + + if (tsConfig.text !== undefined) { + var graphics = new Graphics(this.ctx); + var titleText = graphics.drawText({ + x: x, + y: y, + text: tsConfig.text, + textAnchor: textAnchor, + fontSize: tsConfig.style.fontSize, + fontFamily: tsConfig.style.fontFamily, + foreColor: tsConfig.style.color, + opacity: 1 + }); + titleText.node.setAttribute('class', "apexcharts-".concat(type, "-text")); + w.globals.dom.Paper.add(titleText); + } + } + }]); + + return TitleSubtitle; +}(); + +(function (root, factory) { + /* istanbul ignore next */ + if (typeof define === 'function' && define.amd) { + define(function () { + return factory(root, root.document); + }); + } else if ((typeof exports === "undefined" ? "undefined" : _typeof(exports)) === 'object') { + module.exports = root.document ? factory(root, root.document) : function (w) { + return factory(w, w.document); + }; + } else { + root.SVG = factory(root, root.document); + } +})(typeof window !== 'undefined' ? window : undefined, function (window, document) { + // Find global reference - uses 'this' by default when available, + // falls back to 'window' otherwise (for bundlers like Webpack) + var globalRef = typeof this !== 'undefined' ? this : window; // The main wrapping element + + var SVG = globalRef.SVG = function (element) { + if (SVG.supported) { + element = new SVG.Doc(element); + + if (!SVG.parser.draw) { + SVG.prepare(); + } + + return element; + } + }; // Default namespaces + + + SVG.ns = 'http://www.w3.org/2000/svg'; + SVG.xmlns = 'http://www.w3.org/2000/xmlns/'; + SVG.xlink = 'http://www.w3.org/1999/xlink'; + SVG.svgjs = 'http://svgjs.com/svgjs'; // Svg support test + + SVG.supported = function () { + return true; // !!document.createElementNS && + // !! document.createElementNS(SVG.ns,'svg').createSVGRect + }(); // Don't bother to continue if SVG is not supported + + + if (!SVG.supported) return false; // Element id sequence + + SVG.did = 1000; // Get next named element id + + SVG.eid = function (name) { + return 'Svgjs' + capitalize(name) + SVG.did++; + }; // Method for element creation + + + SVG.create = function (name) { + // create element + var element = document.createElementNS(this.ns, name); // apply unique id + + element.setAttribute('id', this.eid(name)); + return element; + }; // Method for extending objects + + + SVG.extend = function () { + var modules, methods, key, i; // Get list of modules + + modules = [].slice.call(arguments); // Get object with extensions + + methods = modules.pop(); + + for (i = modules.length - 1; i >= 0; i--) { + if (modules[i]) { + for (key in methods) { + modules[i].prototype[key] = methods[key]; + } + } + } // Make sure SVG.Set inherits any newly added methods + + + if (SVG.Set && SVG.Set.inherit) { + SVG.Set.inherit(); + } + }; // Invent new element + + + SVG.invent = function (config) { + // Create element initializer + var initializer = typeof config.create === 'function' ? config.create : function () { + this.constructor.call(this, SVG.create(config.create)); + }; // Inherit prototype + + if (config.inherit) { + initializer.prototype = new config.inherit(); + } // Extend with methods + + + if (config.extend) { + SVG.extend(initializer, config.extend); + } // Attach construct method to parent + + + if (config.construct) { + SVG.extend(config.parent || SVG.Container, config.construct); + } + + return initializer; + }; // Adopt existing svg elements + + + SVG.adopt = function (node) { + // check for presence of node + if (!node) return null; // make sure a node isn't already adopted + + if (node.instance) return node.instance; // initialize variables + + var element; // adopt with element-specific settings + + if (node.nodeName == 'svg') { + element = node.parentNode instanceof window.SVGElement ? new SVG.Nested() : new SVG.Doc(); + } else if (node.nodeName == 'linearGradient') { + element = new SVG.Gradient('linear'); + } else if (node.nodeName == 'radialGradient') { + element = new SVG.Gradient('radial'); + } else if (SVG[capitalize(node.nodeName)]) { + element = new SVG[capitalize(node.nodeName)](); + } else { + element = new SVG.Element(node); + } // ensure references + + + element.type = node.nodeName; + element.node = node; + node.instance = element; // SVG.Class specific preparations + + if (element instanceof SVG.Doc) { + element.namespace().defs(); + } // pull svgjs data from the dom (getAttributeNS doesn't work in html5) + + + element.setData(JSON.parse(node.getAttribute('svgjs:data')) || {}); + return element; + }; // Initialize parsing element + + + SVG.prepare = function () { + // Select document body and create invisible svg element + var body = document.getElementsByTagName('body')[0], + draw = (body ? new SVG.Doc(body) : SVG.adopt(document.documentElement).nested()).size(2, 0); // Create parser object + + SVG.parser = { + body: body || document.documentElement, + draw: draw.style('opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden').node, + poly: draw.polyline().node, + path: draw.path().node, + native: SVG.create('svg') + }; + }; + + SVG.parser = { + native: SVG.create('svg') + }; + document.addEventListener('DOMContentLoaded', function () { + if (!SVG.parser.draw) { + SVG.prepare(); + } + }, false); // Storage for regular expressions + + SVG.regex = { + // Parse unit value + numberAndUnit: /^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i, + // Parse hex value + hex: /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i, + // Parse rgb value + rgb: /rgb\((\d+),(\d+),(\d+)\)/, + // Parse reference id + reference: /#([a-z0-9\-_]+)/i, + // splits a transformation chain + transforms: /\)\s*,?\s*/, + // Whitespace + whitespace: /\s/g, + // Test hex value + isHex: /^#[a-f0-9]{3,6}$/i, + // Test rgb value + isRgb: /^rgb\(/, + // Test css declaration + isCss: /[^:]+:[^;]+;?/, + // Test for blank string + isBlank: /^(\s+)?$/, + // Test for numeric string + isNumber: /^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, + // Test for percent value + isPercent: /^-?[\d\.]+%$/, + // Test for image url + isImage: /\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i, + // split at whitespace and comma + delimiter: /[\s,]+/, + // The following regex are used to parse the d attribute of a path + // Matches all hyphens which are not after an exponent + hyphen: /([^e])\-/gi, + // Replaces and tests for all path letters + pathLetters: /[MLHVCSQTAZ]/gi, + // yes we need this one, too + isPathLetter: /[MLHVCSQTAZ]/i, + // matches 0.154.23.45 + numbersWithDots: /((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi, + // matches . + dots: /\./g + }; + SVG.utils = { + // Map function + map: function map(array, block) { + var i, + il = array.length, + result = []; + + for (i = 0; i < il; i++) { + result.push(block(array[i])); + } + + return result; + }, + // Filter function + filter: function filter(array, block) { + var i, + il = array.length, + result = []; + + for (i = 0; i < il; i++) { + if (block(array[i])) { + result.push(array[i]); + } + } + + return result; + }, + // Degrees to radians + radians: function radians(d) { + return d % 360 * Math.PI / 180; + }, + // Radians to degrees + degrees: function degrees(r) { + return r * 180 / Math.PI % 360; + }, + filterSVGElements: function filterSVGElements(nodes) { + return this.filter(nodes, function (el) { + return el instanceof window.SVGElement; + }); + } + }; + SVG.defaults = { + // Default attribute values + attrs: { + // fill and stroke + 'fill-opacity': 1, + 'stroke-opacity': 1, + 'stroke-width': 0, + 'stroke-linejoin': 'miter', + 'stroke-linecap': 'butt', + fill: '#000000', + stroke: '#000000', + opacity: 1, + // position + x: 0, + y: 0, + cx: 0, + cy: 0, + // size + width: 0, + height: 0, + // radius + r: 0, + rx: 0, + ry: 0, + // gradient + offset: 0, + 'stop-opacity': 1, + 'stop-color': '#000000', + // text + 'font-size': 16, + 'font-family': 'Helvetica, Arial, sans-serif', + 'text-anchor': 'start' + } // Module for color convertions + + }; + + SVG.Color = function (color) { + var match; // initialize defaults + + this.r = 0; + this.g = 0; + this.b = 0; + if (!color) return; // parse color + + if (typeof color === 'string') { + if (SVG.regex.isRgb.test(color)) { + // get rgb values + match = SVG.regex.rgb.exec(color.replace(SVG.regex.whitespace, '')); // parse numeric values + + this.r = parseInt(match[1]); + this.g = parseInt(match[2]); + this.b = parseInt(match[3]); + } else if (SVG.regex.isHex.test(color)) { + // get hex values + match = SVG.regex.hex.exec(fullHex(color)); // parse numeric values + + this.r = parseInt(match[1], 16); + this.g = parseInt(match[2], 16); + this.b = parseInt(match[3], 16); + } + } else if (_typeof(color) === 'object') { + this.r = color.r; + this.g = color.g; + this.b = color.b; + } + }; + + SVG.extend(SVG.Color, { + // Default to hex conversion + toString: function toString() { + return this.toHex(); + }, + // Build hex value + toHex: function toHex() { + return '#' + compToHex(this.r) + compToHex(this.g) + compToHex(this.b); + }, + // Build rgb value + toRgb: function toRgb() { + return 'rgb(' + [this.r, this.g, this.b].join() + ')'; + }, + // Calculate true brightness + brightness: function brightness() { + return this.r / 255 * 0.30 + this.g / 255 * 0.59 + this.b / 255 * 0.11; + }, + // Make color morphable + morph: function morph(color) { + this.destination = new SVG.Color(color); + return this; + }, + // Get morphed color at given position + at: function at(pos) { + // make sure a destination is defined + if (!this.destination) return this; // normalise pos + + pos = pos < 0 ? 0 : pos > 1 ? 1 : pos; // generate morphed color + + return new SVG.Color({ + r: ~~(this.r + (this.destination.r - this.r) * pos), + g: ~~(this.g + (this.destination.g - this.g) * pos), + b: ~~(this.b + (this.destination.b - this.b) * pos) + }); + } + }); // Testers + // Test if given value is a color string + + SVG.Color.test = function (color) { + color += ''; + return SVG.regex.isHex.test(color) || SVG.regex.isRgb.test(color); + }; // Test if given value is a rgb object + + + SVG.Color.isRgb = function (color) { + return color && typeof color.r === 'number' && typeof color.g === 'number' && typeof color.b === 'number'; + }; // Test if given value is a color + + + SVG.Color.isColor = function (color) { + return SVG.Color.isRgb(color) || SVG.Color.test(color); + }; // Module for array conversion + + + SVG.Array = function (array, fallback) { + array = (array || []).valueOf(); // if array is empty and fallback is provided, use fallback + + if (array.length == 0 && fallback) { + array = fallback.valueOf(); + } // parse array + + + this.value = this.parse(array); + }; + + SVG.extend(SVG.Array, { + // Make array morphable + morph: function morph(array) { + this.destination = this.parse(array); // normalize length of arrays + + if (this.value.length != this.destination.length) { + var lastValue = this.value[this.value.length - 1], + lastDestination = this.destination[this.destination.length - 1]; + + while (this.value.length > this.destination.length) { + this.destination.push(lastDestination); + } + + while (this.value.length < this.destination.length) { + this.value.push(lastValue); + } + } + + return this; + }, + // Clean up any duplicate points + settle: function settle() { + // find all unique values + for (var i = 0, il = this.value.length, seen = []; i < il; i++) { + if (seen.indexOf(this.value[i]) == -1) { + seen.push(this.value[i]); + } + } // set new value + + + return this.value = seen; + }, + // Get morphed array at given position + at: function at(pos) { + // make sure a destination is defined + if (!this.destination) return this; // generate morphed array + + for (var i = 0, il = this.value.length, array = []; i < il; i++) { + array.push(this.value[i] + (this.destination[i] - this.value[i]) * pos); + } + + return new SVG.Array(array); + }, + // Convert array to string + toString: function toString() { + return this.value.join(' '); + }, + // Real value + valueOf: function valueOf() { + return this.value; + }, + // Parse whitespace separated string + parse: function parse(array) { + array = array.valueOf(); // if already is an array, no need to parse it + + if (Array.isArray(array)) return array; + return this.split(array); + }, + // Strip unnecessary whitespace + split: function split(string) { + return string.trim().split(SVG.regex.delimiter).map(parseFloat); + }, + // Reverse array + reverse: function reverse() { + this.value.reverse(); + return this; + }, + clone: function clone() { + var clone = new this.constructor(); + clone.value = array_clone(this.value); + return clone; + } + }); // Poly points array + + SVG.PointArray = function (array, fallback) { + SVG.Array.call(this, array, fallback || [[0, 0]]); + }; // Inherit from SVG.Array + + + SVG.PointArray.prototype = new SVG.Array(); + SVG.PointArray.prototype.constructor = SVG.PointArray; + SVG.extend(SVG.PointArray, { + // Convert array to string + toString: function toString() { + // convert to a poly point string + for (var i = 0, il = this.value.length, array = []; i < il; i++) { + array.push(this.value[i].join(',')); + } + + return array.join(' '); + }, + // Convert array to line object + toLine: function toLine() { + return { + x1: this.value[0][0], + y1: this.value[0][1], + x2: this.value[1][0], + y2: this.value[1][1] + }; + }, + // Get morphed array at given position + at: function at(pos) { + // make sure a destination is defined + if (!this.destination) return this; // generate morphed point string + + for (var i = 0, il = this.value.length, array = []; i < il; i++) { + array.push([this.value[i][0] + (this.destination[i][0] - this.value[i][0]) * pos, this.value[i][1] + (this.destination[i][1] - this.value[i][1]) * pos]); + } + + return new SVG.PointArray(array); + }, + // Parse point string and flat array + parse: function parse(array) { + var points = []; + array = array.valueOf(); // if it is an array + + if (Array.isArray(array)) { + // and it is not flat, there is no need to parse it + if (Array.isArray(array[0])) { + // make sure to use a clone + return array.map(function (el) { + return el.slice(); + }); + } else if (array[0].x != null) { + // allow point objects to be passed + return array.map(function (el) { + return [el.x, el.y]; + }); + } + } else { + // Else, it is considered as a string + // parse points + array = array.trim().split(SVG.regex.delimiter).map(parseFloat); + } // validate points - https://svgwg.org/svg2-draft/shapes.html#DataTypePoints + // Odd number of coordinates is an error. In such cases, drop the last odd coordinate. + + + if (array.length % 2 !== 0) array.pop(); // wrap points in two-tuples and parse points as floats + + for (var i = 0, len = array.length; i < len; i = i + 2) { + points.push([array[i], array[i + 1]]); + } + + return points; + }, + // Move point string + move: function move(x, y) { + var box = this.bbox(); // get relative offset + + x -= box.x; + y -= box.y; // move every point + + if (!isNaN(x) && !isNaN(y)) { + for (var i = this.value.length - 1; i >= 0; i--) { + this.value[i] = [this.value[i][0] + x, this.value[i][1] + y]; + } + } + + return this; + }, + // Resize poly string + size: function size(width, height) { + var i, + box = this.bbox(); // recalculate position of all points according to new size + + for (i = this.value.length - 1; i >= 0; i--) { + if (box.width) this.value[i][0] = (this.value[i][0] - box.x) * width / box.width + box.x; + if (box.height) this.value[i][1] = (this.value[i][1] - box.y) * height / box.height + box.y; + } + + return this; + }, + // Get bounding box of points + bbox: function bbox() { + if (!SVG.parser.draw) { + SVG.prepare(); + } + + SVG.parser.poly.setAttribute('points', this.toString()); + return SVG.parser.poly.getBBox(); + } + }); + var pathHandlers = { + M: function M(c, p, p0) { + p.x = p0.x = c[0]; + p.y = p0.y = c[1]; + return ['M', p.x, p.y]; + }, + L: function L(c, p) { + p.x = c[0]; + p.y = c[1]; + return ['L', c[0], c[1]]; + }, + H: function H(c, p) { + p.x = c[0]; + return ['H', c[0]]; + }, + V: function V(c, p) { + p.y = c[0]; + return ['V', c[0]]; + }, + C: function C(c, p) { + p.x = c[4]; + p.y = c[5]; + return ['C', c[0], c[1], c[2], c[3], c[4], c[5]]; + }, + S: function S(c, p) { + p.x = c[2]; + p.y = c[3]; + return ['S', c[0], c[1], c[2], c[3]]; + }, + Q: function Q(c, p) { + p.x = c[2]; + p.y = c[3]; + return ['Q', c[0], c[1], c[2], c[3]]; + }, + T: function T(c, p) { + p.x = c[0]; + p.y = c[1]; + return ['T', c[0], c[1]]; + }, + Z: function Z(c, p, p0) { + p.x = p0.x; + p.y = p0.y; + return ['Z']; + }, + A: function A(c, p) { + p.x = c[5]; + p.y = c[6]; + return ['A', c[0], c[1], c[2], c[3], c[4], c[5], c[6]]; + } + }; + var mlhvqtcsa = 'mlhvqtcsaz'.split(''); + + for (var i = 0, il = mlhvqtcsa.length; i < il; ++i) { + pathHandlers[mlhvqtcsa[i]] = function (i) { + return function (c, p, p0) { + if (i == 'H') c[0] = c[0] + p.x;else if (i == 'V') c[0] = c[0] + p.y;else if (i == 'A') { + c[5] = c[5] + p.x, c[6] = c[6] + p.y; + } else { + for (var j = 0, jl = c.length; j < jl; ++j) { + c[j] = c[j] + (j % 2 ? p.y : p.x); + } + } + return pathHandlers[i](c, p, p0); + }; + }(mlhvqtcsa[i].toUpperCase()); + } // Path points array + + + SVG.PathArray = function (array, fallback) { + SVG.Array.call(this, array, fallback || [['M', 0, 0]]); + }; // Inherit from SVG.Array + + + SVG.PathArray.prototype = new SVG.Array(); + SVG.PathArray.prototype.constructor = SVG.PathArray; + SVG.extend(SVG.PathArray, { + // Convert array to string + toString: function toString() { + return arrayToString(this.value); + }, + // Move path string + move: function move(x, y) { + // get bounding box of current situation + var box = this.bbox(); // get relative offset + + x -= box.x; + y -= box.y; + + if (!isNaN(x) && !isNaN(y)) { + // move every point + for (var l, i = this.value.length - 1; i >= 0; i--) { + l = this.value[i][0]; + + if (l == 'M' || l == 'L' || l == 'T') { + this.value[i][1] += x; + this.value[i][2] += y; + } else if (l == 'H') { + this.value[i][1] += x; + } else if (l == 'V') { + this.value[i][1] += y; + } else if (l == 'C' || l == 'S' || l == 'Q') { + this.value[i][1] += x; + this.value[i][2] += y; + this.value[i][3] += x; + this.value[i][4] += y; + + if (l == 'C') { + this.value[i][5] += x; + this.value[i][6] += y; + } + } else if (l == 'A') { + this.value[i][6] += x; + this.value[i][7] += y; + } + } + } + + return this; + }, + // Resize path string + size: function size(width, height) { + // get bounding box of current situation + var i, + l, + box = this.bbox(); // recalculate position of all points according to new size + + for (i = this.value.length - 1; i >= 0; i--) { + l = this.value[i][0]; + + if (l == 'M' || l == 'L' || l == 'T') { + this.value[i][1] = (this.value[i][1] - box.x) * width / box.width + box.x; + this.value[i][2] = (this.value[i][2] - box.y) * height / box.height + box.y; + } else if (l == 'H') { + this.value[i][1] = (this.value[i][1] - box.x) * width / box.width + box.x; + } else if (l == 'V') { + this.value[i][1] = (this.value[i][1] - box.y) * height / box.height + box.y; + } else if (l == 'C' || l == 'S' || l == 'Q') { + this.value[i][1] = (this.value[i][1] - box.x) * width / box.width + box.x; + this.value[i][2] = (this.value[i][2] - box.y) * height / box.height + box.y; + this.value[i][3] = (this.value[i][3] - box.x) * width / box.width + box.x; + this.value[i][4] = (this.value[i][4] - box.y) * height / box.height + box.y; + + if (l == 'C') { + this.value[i][5] = (this.value[i][5] - box.x) * width / box.width + box.x; + this.value[i][6] = (this.value[i][6] - box.y) * height / box.height + box.y; + } + } else if (l == 'A') { + // resize radii + this.value[i][1] = this.value[i][1] * width / box.width; + this.value[i][2] = this.value[i][2] * height / box.height; // move position values + + this.value[i][6] = (this.value[i][6] - box.x) * width / box.width + box.x; + this.value[i][7] = (this.value[i][7] - box.y) * height / box.height + box.y; + } + } + + return this; + }, + // Test if the passed path array use the same path data commands as this path array + equalCommands: function equalCommands(pathArray) { + var i, il, equalCommands; + pathArray = new SVG.PathArray(pathArray); + equalCommands = this.value.length === pathArray.value.length; + + for (i = 0, il = this.value.length; equalCommands && i < il; i++) { + equalCommands = this.value[i][0] === pathArray.value[i][0]; + } + + return equalCommands; + }, + // Make path array morphable + morph: function morph(pathArray) { + pathArray = new SVG.PathArray(pathArray); + + if (this.equalCommands(pathArray)) { + this.destination = pathArray; + } else { + this.destination = null; + } + + return this; + }, + // Get morphed path array at given position + at: function at(pos) { + // make sure a destination is defined + if (!this.destination) return this; + var sourceArray = this.value, + destinationArray = this.destination.value, + array = [], + pathArray = new SVG.PathArray(), + i, + il, + j, + jl; // Animate has specified in the SVG spec + // See: https://www.w3.org/TR/SVG11/paths.html#PathElement + + for (i = 0, il = sourceArray.length; i < il; i++) { + array[i] = [sourceArray[i][0]]; + + for (j = 1, jl = sourceArray[i].length; j < jl; j++) { + array[i][j] = sourceArray[i][j] + (destinationArray[i][j] - sourceArray[i][j]) * pos; + } // For the two flags of the elliptical arc command, the SVG spec say: + // Flags and booleans are interpolated as fractions between zero and one, with any non-zero value considered to be a value of one/true + // Elliptical arc command as an array followed by corresponding indexes: + // ['A', rx, ry, x-axis-rotation, large-arc-flag, sweep-flag, x, y] + // 0 1 2 3 4 5 6 7 + + + if (array[i][0] === 'A') { + array[i][4] = +(array[i][4] != 0); + array[i][5] = +(array[i][5] != 0); + } + } // Directly modify the value of a path array, this is done this way for performance + + + pathArray.value = array; + return pathArray; + }, + // Absolutize and parse path to array + parse: function parse(array) { + // if it's already a patharray, no need to parse it + if (array instanceof SVG.PathArray) return array.valueOf(); // prepare for parsing + + var s, + arr, + paramCnt = { + 'M': 2, + 'L': 2, + 'H': 1, + 'V': 1, + 'C': 6, + 'S': 4, + 'Q': 4, + 'T': 2, + 'A': 7, + 'Z': 0 + }; + + if (typeof array === 'string') { + array = array.replace(SVG.regex.numbersWithDots, pathRegReplace) // convert 45.123.123 to 45.123 .123 + .replace(SVG.regex.pathLetters, ' $& ') // put some room between letters and numbers + .replace(SVG.regex.hyphen, '$1 -') // add space before hyphen + .trim() // trim + .split(SVG.regex.delimiter); // split into array + } else { + array = array.reduce(function (prev, curr) { + return [].concat.call(prev, curr); + }, []); + } // array now is an array containing all parts of a path e.g. ['M', '0', '0', 'L', '30', '30' ...] + + + var arr = [], + p = new SVG.Point(), + p0 = new SVG.Point(), + index = 0, + len = array.length; + + do { + // Test if we have a path letter + if (SVG.regex.isPathLetter.test(array[index])) { + s = array[index]; + ++index; // If last letter was a move command and we got no new, it defaults to [L]ine + } else if (s == 'M') { + s = 'L'; + } else if (s == 'm') { + s = 'l'; + } + + arr.push(pathHandlers[s].call(null, array.slice(index, index = index + paramCnt[s.toUpperCase()]).map(parseFloat), p, p0)); + } while (len > index); + + return arr; + }, + // Get bounding box of path + bbox: function bbox() { + if (!SVG.parser.draw) { + SVG.prepare(); + } + + SVG.parser.path.setAttribute('d', this.toString()); + return SVG.parser.path.getBBox(); + } + }); // Module for unit convertions + + SVG.Number = SVG.invent({ + // Initialize + create: function create(value, unit) { + // initialize defaults + this.value = 0; + this.unit = unit || ''; // parse value + + if (typeof value === 'number') { + // ensure a valid numeric value + this.value = isNaN(value) ? 0 : !isFinite(value) ? value < 0 ? -3.4e+38 : +3.4e+38 : value; + } else if (typeof value === 'string') { + unit = value.match(SVG.regex.numberAndUnit); + + if (unit) { + // make value numeric + this.value = parseFloat(unit[1]); // normalize + + if (unit[5] == '%') { + this.value /= 100; + } else if (unit[5] == 's') { + this.value *= 1000; + } // store unit + + + this.unit = unit[5]; + } + } else { + if (value instanceof SVG.Number) { + this.value = value.valueOf(); + this.unit = value.unit; + } + } + }, + // Add methods + extend: { + // Stringalize + toString: function toString() { + return (this.unit == '%' ? ~~(this.value * 1e8) / 1e6 : this.unit == 's' ? this.value / 1e3 : this.value) + this.unit; + }, + toJSON: function toJSON() { + return this.toString(); + }, + // Convert to primitive + valueOf: function valueOf() { + return this.value; + }, + // Add number + plus: function plus(number) { + number = new SVG.Number(number); + return new SVG.Number(this + number, this.unit || number.unit); + }, + // Subtract number + minus: function minus(number) { + number = new SVG.Number(number); + return new SVG.Number(this - number, this.unit || number.unit); + }, + // Multiply number + times: function times(number) { + number = new SVG.Number(number); + return new SVG.Number(this * number, this.unit || number.unit); + }, + // Divide number + divide: function divide(number) { + number = new SVG.Number(number); + return new SVG.Number(this / number, this.unit || number.unit); + }, + // Convert to different unit + to: function to(unit) { + var number = new SVG.Number(this); + + if (typeof unit === 'string') { + number.unit = unit; + } + + return number; + }, + // Make number morphable + morph: function morph(number) { + this.destination = new SVG.Number(number); + + if (number.relative) { + this.destination.value += this.value; + } + + return this; + }, + // Get morphed number at given position + at: function at(pos) { + // Make sure a destination is defined + if (!this.destination) return this; // Generate new morphed number + + return new SVG.Number(this.destination).minus(this).times(pos).plus(this); + } + } + }); + SVG.Element = SVG.invent({ + // Initialize node + create: function create(node) { + // make stroke value accessible dynamically + this._stroke = SVG.defaults.attrs.stroke; + this._event = null; // initialize data object + + this.dom = {}; // create circular reference + + if (this.node = node) { + this.type = node.nodeName; + this.node.instance = this; // store current attribute value + + this._stroke = node.getAttribute('stroke') || this._stroke; + } + }, + // Add class methods + extend: { + // Move over x-axis + x: function x(_x) { + return this.attr('x', _x); + }, + // Move over y-axis + y: function y(_y) { + return this.attr('y', _y); + }, + // Move by center over x-axis + cx: function cx(x) { + return x == null ? this.x() + this.width() / 2 : this.x(x - this.width() / 2); + }, + // Move by center over y-axis + cy: function cy(y) { + return y == null ? this.y() + this.height() / 2 : this.y(y - this.height() / 2); + }, + // Move element to given x and y values + move: function move(x, y) { + return this.x(x).y(y); + }, + // Move element by its center + center: function center(x, y) { + return this.cx(x).cy(y); + }, + // Set width of element + width: function width(_width) { + return this.attr('width', _width); + }, + // Set height of element + height: function height(_height) { + return this.attr('height', _height); + }, + // Set element size to given width and height + size: function size(width, height) { + var p = proportionalSize(this, width, height); + return this.width(new SVG.Number(p.width)).height(new SVG.Number(p.height)); + }, + // Clone element + clone: function clone(parent) { + // write dom data to the dom so the clone can pickup the data + this.writeDataToDom(); // clone element and assign new id + + var clone = assignNewId(this.node.cloneNode(true)); // insert the clone in the given parent or after myself + + if (parent) parent.add(clone);else this.after(clone); + return clone; + }, + // Remove element + remove: function remove() { + if (this.parent()) { + this.parent().removeElement(this); + } + + return this; + }, + // Replace element + replace: function replace(element) { + this.after(element).remove(); + return element; + }, + // Add element to given container and return self + addTo: function addTo(parent) { + return parent.put(this); + }, + // Add element to given container and return container + putIn: function putIn(parent) { + return parent.add(this); + }, + // Get / set id + id: function id(_id) { + return this.attr('id', _id); + }, + // Checks whether the given point inside the bounding box of the element + inside: function inside(x, y) { + var box = this.bbox(); + return x > box.x && y > box.y && x < box.x + box.width && y < box.y + box.height; + }, + // Show element + show: function show() { + return this.style('display', ''); + }, + // Hide element + hide: function hide() { + return this.style('display', 'none'); + }, + // Is element visible? + visible: function visible() { + return this.style('display') != 'none'; + }, + // Return id on string conversion + toString: function toString() { + return this.attr('id'); + }, + // Return array of classes on the node + classes: function classes() { + var attr = this.attr('class'); + return attr == null ? [] : attr.trim().split(SVG.regex.delimiter); + }, + // Return true if class exists on the node, false otherwise + hasClass: function hasClass(name) { + return this.classes().indexOf(name) != -1; + }, + // Add class to the node + addClass: function addClass(name) { + if (!this.hasClass(name)) { + var array = this.classes(); + array.push(name); + this.attr('class', array.join(' ')); + } + + return this; + }, + // Remove class from the node + removeClass: function removeClass(name) { + if (this.hasClass(name)) { + this.attr('class', this.classes().filter(function (c) { + return c != name; + }).join(' ')); + } + + return this; + }, + // Toggle the presence of a class on the node + toggleClass: function toggleClass(name) { + return this.hasClass(name) ? this.removeClass(name) : this.addClass(name); + }, + // Get referenced element form attribute value + reference: function reference(attr) { + return SVG.get(this.attr(attr)); + }, + // Returns the parent element instance + parent: function parent(type) { + var parent = this; // check for parent + + if (!parent.node.parentNode) return null; // get parent element + + parent = SVG.adopt(parent.node.parentNode); + if (!type) return parent; // loop trough ancestors if type is given + + while (parent && parent.node instanceof window.SVGElement) { + if (typeof type === 'string' ? parent.matches(type) : parent instanceof type) return parent; + if (!parent.node.parentNode || parent.node.parentNode.nodeName == '#document') return null; // #759, #720 + + parent = SVG.adopt(parent.node.parentNode); + } + }, + // Get parent document + doc: function doc() { + return this instanceof SVG.Doc ? this : this.parent(SVG.Doc); + }, + // return array of all ancestors of given type up to the root svg + parents: function parents(type) { + var parents = [], + parent = this; + + do { + parent = parent.parent(type); + if (!parent || !parent.node) break; + parents.push(parent); + } while (parent.parent); + + return parents; + }, + // matches the element vs a css selector + matches: function matches(selector) { + return _matches(this.node, selector); + }, + // Returns the svg node to call native svg methods on it + native: function native() { + return this.node; + }, + // Import raw svg + svg: function svg(_svg) { + // create temporary holder + var well = document.createElement('svg'); // act as a setter if svg is given + + if (_svg && this instanceof SVG.Parent) { + // dump raw svg + well.innerHTML = '' + _svg.replace(/\n/, '').replace(/<([\w:-]+)([^<]+?)\/>/g, '<$1$2>') + ''; // transplant nodes + + for (var i = 0, il = well.firstChild.childNodes.length; i < il; i++) { + this.node.appendChild(well.firstChild.firstChild); + } // otherwise act as a getter + + } else { + // create a wrapping svg element in case of partial content + well.appendChild(_svg = document.createElement('svg')); // write svgjs data to the dom + + this.writeDataToDom(); // insert a copy of this node + + _svg.appendChild(this.node.cloneNode(true)); // return target element + + + return well.innerHTML.replace(/^/, '').replace(/<\/svg>$/, ''); + } + + return this; + }, + // write svgjs data to the dom + writeDataToDom: function writeDataToDom() { + // dump variables recursively + if (this.each || this.lines) { + var fn = this.each ? this : this.lines(); + fn.each(function () { + this.writeDataToDom(); + }); + } // remove previously set data + + + this.node.removeAttribute('svgjs:data'); + + if (Object.keys(this.dom).length) { + this.node.setAttribute('svgjs:data', JSON.stringify(this.dom)); + } // see #428 + + + return this; + }, + // set given data to the elements data property + setData: function setData(o) { + this.dom = o; + return this; + }, + is: function is(obj) { + return _is(this, obj); + } + } + }); + SVG.easing = { + '-': function _(pos) { + return pos; + }, + '<>': function _(pos) { + return -Math.cos(pos * Math.PI) / 2 + 0.5; + }, + '>': function _(pos) { + return Math.sin(pos * Math.PI / 2); + }, + '<': function _(pos) { + return -Math.cos(pos * Math.PI / 2) + 1; + } + }; + + SVG.morph = function (pos) { + return function (from, to) { + return new SVG.MorphObj(from, to).at(pos); + }; + }; + + SVG.Situation = SVG.invent({ + create: function create(o) { + this.init = false; + this.reversed = false; + this.reversing = false; + this.duration = new SVG.Number(o.duration).valueOf(); + this.delay = new SVG.Number(o.delay).valueOf(); + this.start = +new Date() + this.delay; + this.finish = this.start + this.duration; + this.ease = o.ease; // this.loop is incremented from 0 to this.loops + // it is also incremented when in an infinite loop (when this.loops is true) + + this.loop = 0; + this.loops = false; + this.animations = {// functionToCall: [list of morphable objects] + // e.g. move: [SVG.Number, SVG.Number] + }; + this.attrs = {// holds all attributes which are not represented from a function svg.js provides + // e.g. someAttr: SVG.Number + }; + this.styles = {// holds all styles which should be animated + // e.g. fill-color: SVG.Color + }; + this.transforms = [// holds all transformations as transformation objects + // e.g. [SVG.Rotate, SVG.Translate, SVG.Matrix] + ]; + this.once = {// functions to fire at a specific position + // e.g. "0.5": function foo(){} + }; + } + }); + SVG.FX = SVG.invent({ + create: function create(element) { + this._target = element; + this.situations = []; + this.active = false; + this.situation = null; + this.paused = false; + this.lastPos = 0; + this.pos = 0; // The absolute position of an animation is its position in the context of its complete duration (including delay and loops) + // When performing a delay, absPos is below 0 and when performing a loop, its value is above 1 + + this.absPos = 0; + this._speed = 1; + }, + extend: { + /** + * sets or returns the target of this animation + * @param o object || number In case of Object it holds all parameters. In case of number its the duration of the animation + * @param ease function || string Function which should be used for easing or easing keyword + * @param delay Number indicating the delay before the animation starts + * @return target || this + */ + animate: function animate(o, ease, delay) { + if (_typeof(o) === 'object') { + ease = o.ease; + delay = o.delay; + o = o.duration; + } + + var situation = new SVG.Situation({ + duration: o || 1000, + delay: delay || 0, + ease: SVG.easing[ease || '-'] || ease + }); + this.queue(situation); + return this; + }, + + /** + * sets a delay before the next element of the queue is called + * @param delay Duration of delay in milliseconds + * @return this.target() + */ + delay: function delay(_delay) { + // The delay is performed by an empty situation with its duration + // attribute set to the duration of the delay + var situation = new SVG.Situation({ + duration: _delay, + delay: 0, + ease: SVG.easing['-'] + }); + return this.queue(situation); + }, + + /** + * sets or returns the target of this animation + * @param null || target SVG.Element which should be set as new target + * @return target || this + */ + target: function target(_target) { + if (_target && _target instanceof SVG.Element) { + this._target = _target; + return this; + } + + return this._target; + }, + // returns the absolute position at a given time + timeToAbsPos: function timeToAbsPos(timestamp) { + return (timestamp - this.situation.start) / (this.situation.duration / this._speed); + }, + // returns the timestamp from a given absolute positon + absPosToTime: function absPosToTime(absPos) { + return this.situation.duration / this._speed * absPos + this.situation.start; + }, + // starts the animationloop + startAnimFrame: function startAnimFrame() { + this.stopAnimFrame(); + this.animationFrame = window.requestAnimationFrame(function () { + this.step(); + }.bind(this)); + }, + // cancels the animationframe + stopAnimFrame: function stopAnimFrame() { + window.cancelAnimationFrame(this.animationFrame); + }, + // kicks off the animation - only does something when the queue is currently not active and at least one situation is set + start: function start() { + // dont start if already started + if (!this.active && this.situation) { + this.active = true; + this.startCurrent(); + } + + return this; + }, + // start the current situation + startCurrent: function startCurrent() { + this.situation.start = +new Date() + this.situation.delay / this._speed; + this.situation.finish = this.situation.start + this.situation.duration / this._speed; + return this.initAnimations().step(); + }, + + /** + * adds a function / Situation to the animation queue + * @param fn function / situation to add + * @return this + */ + queue: function queue(fn) { + if (typeof fn === 'function' || fn instanceof SVG.Situation) { + this.situations.push(fn); + } + + if (!this.situation) this.situation = this.situations.shift(); + return this; + }, + + /** + * pulls next element from the queue and execute it + * @return this + */ + dequeue: function dequeue() { + // stop current animation + this.stop(); // get next animation from queue + + this.situation = this.situations.shift(); + + if (this.situation) { + if (this.situation instanceof SVG.Situation) { + this.start(); + } else { + // If it is not a SVG.Situation, then it is a function, we execute it + this.situation.call(this); + } + } + + return this; + }, + // updates all animations to the current state of the element + // this is important when one property could be changed from another property + initAnimations: function initAnimations() { + var i, j, source; + var s = this.situation; + if (s.init) return this; + + for (i in s.animations) { + source = this.target()[i](); + + if (!Array.isArray(source)) { + source = [source]; + } + + if (!Array.isArray(s.animations[i])) { + s.animations[i] = [s.animations[i]]; + } // if(s.animations[i].length > source.length) { + // source.concat = source.concat(s.animations[i].slice(source.length, s.animations[i].length)) + // } + + + for (j = source.length; j--;) { + // The condition is because some methods return a normal number instead + // of a SVG.Number + if (s.animations[i][j] instanceof SVG.Number) { + source[j] = new SVG.Number(source[j]); + } + + s.animations[i][j] = source[j].morph(s.animations[i][j]); + } + } + + for (i in s.attrs) { + s.attrs[i] = new SVG.MorphObj(this.target().attr(i), s.attrs[i]); + } + + for (i in s.styles) { + s.styles[i] = new SVG.MorphObj(this.target().style(i), s.styles[i]); + } + + s.initialTransformation = this.target().matrixify(); + s.init = true; + return this; + }, + clearQueue: function clearQueue() { + this.situations = []; + return this; + }, + clearCurrent: function clearCurrent() { + this.situation = null; + return this; + }, + + /** stops the animation immediately + * @param jumpToEnd A Boolean indicating whether to complete the current animation immediately. + * @param clearQueue A Boolean indicating whether to remove queued animation as well. + * @return this + */ + stop: function stop(jumpToEnd, clearQueue) { + var active = this.active; + this.active = false; + + if (clearQueue) { + this.clearQueue(); + } + + if (jumpToEnd && this.situation) { + // initialize the situation if it was not + !active && this.startCurrent(); + this.atEnd(); + } + + this.stopAnimFrame(); + return this.clearCurrent(); + }, + + /** resets the element to the state where the current element has started + * @return this + */ + reset: function reset() { + if (this.situation) { + var temp = this.situation; + this.stop(); + this.situation = temp; + this.atStart(); + } + + return this; + }, + // Stop the currently-running animation, remove all queued animations, and complete all animations for the element. + finish: function finish() { + this.stop(true, false); + + while (this.dequeue().situation && this.stop(true, false)) { + } + + this.clearQueue().clearCurrent(); + return this; + }, + // set the internal animation pointer at the start position, before any loops, and updates the visualisation + atStart: function atStart() { + return this.at(0, true); + }, + // set the internal animation pointer at the end position, after all the loops, and updates the visualisation + atEnd: function atEnd() { + if (this.situation.loops === true) { + // If in a infinite loop, we end the current iteration + this.situation.loops = this.situation.loop + 1; + } + + if (typeof this.situation.loops === 'number') { + // If performing a finite number of loops, we go after all the loops + return this.at(this.situation.loops, true); + } else { + // If no loops, we just go at the end + return this.at(1, true); + } + }, + // set the internal animation pointer to the specified position and updates the visualisation + // if isAbsPos is true, pos is treated as an absolute position + at: function at(pos, isAbsPos) { + var durDivSpd = this.situation.duration / this._speed; + this.absPos = pos; // If pos is not an absolute position, we convert it into one + + if (!isAbsPos) { + if (this.situation.reversed) this.absPos = 1 - this.absPos; + this.absPos += this.situation.loop; + } + + this.situation.start = +new Date() - this.absPos * durDivSpd; + this.situation.finish = this.situation.start + durDivSpd; + return this.step(true); + }, + + /** + * sets or returns the speed of the animations + * @param speed null || Number The new speed of the animations + * @return Number || this + */ + speed: function speed(_speed) { + if (_speed === 0) return this.pause(); + + if (_speed) { + this._speed = _speed; // We use an absolute position here so that speed can affect the delay before the animation + + return this.at(this.absPos, true); + } else return this._speed; + }, + // Make loopable + loop: function loop(times, reverse) { + var c = this.last(); // store total loops + + c.loops = times != null ? times : true; + c.loop = 0; + if (reverse) c.reversing = true; + return this; + }, + // pauses the animation + pause: function pause() { + this.paused = true; + this.stopAnimFrame(); + return this; + }, + // unpause the animation + play: function play() { + if (!this.paused) return this; + this.paused = false; // We use an absolute position here so that the delay before the animation can be paused + + return this.at(this.absPos, true); + }, + + /** + * toggle or set the direction of the animation + * true sets direction to backwards while false sets it to forwards + * @param reversed Boolean indicating whether to reverse the animation or not (default: toggle the reverse status) + * @return this + */ + reverse: function reverse(reversed) { + var c = this.last(); + if (typeof reversed === 'undefined') c.reversed = !c.reversed;else c.reversed = reversed; + return this; + }, + + /** + * returns a float from 0-1 indicating the progress of the current animation + * @param eased Boolean indicating whether the returned position should be eased or not + * @return number + */ + progress: function progress(easeIt) { + return easeIt ? this.situation.ease(this.pos) : this.pos; + }, + + /** + * adds a callback function which is called when the current animation is finished + * @param fn Function which should be executed as callback + * @return number + */ + after: function after(fn) { + var c = this.last(), + wrapper = function wrapper(e) { + if (e.detail.situation == c) { + fn.call(this, c); + this.off('finished.fx', wrapper); // prevent memory leak + } + }; + + this.target().on('finished.fx', wrapper); + return this._callStart(); + }, + // adds a callback which is called whenever one animation step is performed + during: function during(fn) { + var c = this.last(), + wrapper = function wrapper(e) { + if (e.detail.situation == c) { + fn.call(this, e.detail.pos, SVG.morph(e.detail.pos), e.detail.eased, c); + } + }; // see above + + + this.target().off('during.fx', wrapper).on('during.fx', wrapper); + this.after(function () { + this.off('during.fx', wrapper); + }); + return this._callStart(); + }, + // calls after ALL animations in the queue are finished + afterAll: function afterAll(fn) { + var wrapper = function wrapper(e) { + fn.call(this); + this.off('allfinished.fx', wrapper); + }; // see above + + + this.target().off('allfinished.fx', wrapper).on('allfinished.fx', wrapper); + return this._callStart(); + }, + // calls on every animation step for all animations + duringAll: function duringAll(fn) { + var wrapper = function wrapper(e) { + fn.call(this, e.detail.pos, SVG.morph(e.detail.pos), e.detail.eased, e.detail.situation); + }; + + this.target().off('during.fx', wrapper).on('during.fx', wrapper); + this.afterAll(function () { + this.off('during.fx', wrapper); + }); + return this._callStart(); + }, + last: function last() { + return this.situations.length ? this.situations[this.situations.length - 1] : this.situation; + }, + // adds one property to the animations + add: function add(method, args, type) { + this.last()[type || 'animations'][method] = args; + return this._callStart(); + }, + + /** perform one step of the animation + * @param ignoreTime Boolean indicating whether to ignore time and use position directly or recalculate position based on time + * @return this + */ + step: function step(ignoreTime) { + // convert current time to an absolute position + if (!ignoreTime) this.absPos = this.timeToAbsPos(+new Date()); // This part convert an absolute position to a position + + if (this.situation.loops !== false) { + var absPos, absPosInt, lastLoop; // If the absolute position is below 0, we just treat it as if it was 0 + + absPos = Math.max(this.absPos, 0); + absPosInt = Math.floor(absPos); + + if (this.situation.loops === true || absPosInt < this.situation.loops) { + this.pos = absPos - absPosInt; + lastLoop = this.situation.loop; + this.situation.loop = absPosInt; + } else { + this.absPos = this.situation.loops; + this.pos = 1; // The -1 here is because we don't want to toggle reversed when all the loops have been completed + + lastLoop = this.situation.loop - 1; + this.situation.loop = this.situation.loops; + } + + if (this.situation.reversing) { + // Toggle reversed if an odd number of loops as occured since the last call of step + this.situation.reversed = this.situation.reversed != Boolean((this.situation.loop - lastLoop) % 2); + } + } else { + // If there are no loop, the absolute position must not be above 1 + this.absPos = Math.min(this.absPos, 1); + this.pos = this.absPos; + } // while the absolute position can be below 0, the position must not be below 0 + + + if (this.pos < 0) this.pos = 0; + if (this.situation.reversed) this.pos = 1 - this.pos; // apply easing + + var eased = this.situation.ease(this.pos); // call once-callbacks + + for (var i in this.situation.once) { + if (i > this.lastPos && i <= eased) { + this.situation.once[i].call(this.target(), this.pos, eased); + delete this.situation.once[i]; + } + } // fire during callback with position, eased position and current situation as parameter + + + if (this.active) this.target().fire('during', { + pos: this.pos, + eased: eased, + fx: this, + situation: this.situation + }); // the user may call stop or finish in the during callback + // so make sure that we still have a valid situation + + if (!this.situation) { + return this; + } // apply the actual animation to every property + + + this.eachAt(); // do final code when situation is finished + + if (this.pos == 1 && !this.situation.reversed || this.situation.reversed && this.pos == 0) { + // stop animation callback + this.stopAnimFrame(); // fire finished callback with current situation as parameter + + this.target().fire('finished', { + fx: this, + situation: this.situation + }); + + if (!this.situations.length) { + this.target().fire('allfinished'); // Recheck the length since the user may call animate in the afterAll callback + + if (!this.situations.length) { + this.target().off('.fx'); // there shouldnt be any binding left, but to make sure... + + this.active = false; + } + } // start next animation + + + if (this.active) this.dequeue();else this.clearCurrent(); + } else if (!this.paused && this.active) { + // we continue animating when we are not at the end + this.startAnimFrame(); + } // save last eased position for once callback triggering + + + this.lastPos = eased; + return this; + }, + // calculates the step for every property and calls block with it + eachAt: function eachAt() { + var i, + len, + at, + self = this, + target = this.target(), + s = this.situation; // apply animations which can be called trough a method + + for (i in s.animations) { + at = [].concat(s.animations[i]).map(function (el) { + return typeof el !== 'string' && el.at ? el.at(s.ease(self.pos), self.pos) : el; + }); + target[i].apply(target, at); + } // apply animation which has to be applied with attr() + + + for (i in s.attrs) { + at = [i].concat(s.attrs[i]).map(function (el) { + return typeof el !== 'string' && el.at ? el.at(s.ease(self.pos), self.pos) : el; + }); + target.attr.apply(target, at); + } // apply animation which has to be applied with style() + + + for (i in s.styles) { + at = [i].concat(s.styles[i]).map(function (el) { + return typeof el !== 'string' && el.at ? el.at(s.ease(self.pos), self.pos) : el; + }); + target.style.apply(target, at); + } // animate initialTransformation which has to be chained + + + if (s.transforms.length) { + // get initial initialTransformation + at = s.initialTransformation; + + for (i = 0, len = s.transforms.length; i < len; i++) { + // get next transformation in chain + var a = s.transforms[i]; // multiply matrix directly + + if (a instanceof SVG.Matrix) { + if (a.relative) { + at = at.multiply(new SVG.Matrix().morph(a).at(s.ease(this.pos))); + } else { + at = at.morph(a).at(s.ease(this.pos)); + } + + continue; + } // when transformation is absolute we have to reset the needed transformation first + + + if (!a.relative) { + a.undo(at.extract()); + } // and reapply it after + + + at = at.multiply(a.at(s.ease(this.pos))); + } // set new matrix on element + + + target.matrix(at); + } + + return this; + }, + // adds an once-callback which is called at a specific position and never again + once: function once(pos, fn, isEased) { + var c = this.last(); + if (!isEased) pos = c.ease(pos); + c.once[pos] = fn; + return this; + }, + _callStart: function _callStart() { + setTimeout(function () { + this.start(); + }.bind(this), 0); + return this; + } + }, + parent: SVG.Element, + // Add method to parent elements + construct: { + // Get fx module or create a new one, then animate with given duration and ease + animate: function animate(o, ease, delay) { + return (this.fx || (this.fx = new SVG.FX(this))).animate(o, ease, delay); + }, + delay: function delay(_delay2) { + return (this.fx || (this.fx = new SVG.FX(this))).delay(_delay2); + }, + stop: function stop(jumpToEnd, clearQueue) { + if (this.fx) { + this.fx.stop(jumpToEnd, clearQueue); + } + + return this; + }, + finish: function finish() { + if (this.fx) { + this.fx.finish(); + } + + return this; + }, + // Pause current animation + pause: function pause() { + if (this.fx) { + this.fx.pause(); + } + + return this; + }, + // Play paused current animation + play: function play() { + if (this.fx) { + this.fx.play(); + } + + return this; + }, + // Set/Get the speed of the animations + speed: function speed(_speed2) { + if (this.fx) { + if (_speed2 == null) { + return this.fx.speed(); + } else { + this.fx.speed(_speed2); + } + } + + return this; + } + } + }); // MorphObj is used whenever no morphable object is given + + SVG.MorphObj = SVG.invent({ + create: function create(from, to) { + // prepare color for morphing + if (SVG.Color.isColor(to)) return new SVG.Color(from).morph(to); // check if we have a list of values + + if (SVG.regex.delimiter.test(from)) { + // prepare path for morphing + if (SVG.regex.pathLetters.test(from)) return new SVG.PathArray(from).morph(to); // prepare value list for morphing + else return new SVG.Array(from).morph(to); + } // prepare number for morphing + + + if (SVG.regex.numberAndUnit.test(to)) return new SVG.Number(from).morph(to); // prepare for plain morphing + + this.value = from; + this.destination = to; + }, + extend: { + at: function at(pos, real) { + return real < 1 ? this.value : this.destination; + }, + valueOf: function valueOf() { + return this.value; + } + } + }); + SVG.extend(SVG.FX, { + // Add animatable attributes + attr: function attr(a, v, relative) { + // apply attributes individually + if (_typeof(a) === 'object') { + for (var key in a) { + this.attr(key, a[key]); + } + } else { + this.add(a, v, 'attrs'); + } + + return this; + }, + // Add animatable styles + style: function style(s, v) { + if (_typeof(s) === 'object') { + for (var key in s) { + this.style(key, s[key]); + } + } else { + this.add(s, v, 'styles'); + } + + return this; + }, + // Animatable x-axis + x: function x(_x2, relative) { + if (this.target() instanceof SVG.G) { + this.transform({ + x: _x2 + }, relative); + return this; + } + + var num = new SVG.Number(_x2); + num.relative = relative; + return this.add('x', num); + }, + // Animatable y-axis + y: function y(_y2, relative) { + if (this.target() instanceof SVG.G) { + this.transform({ + y: _y2 + }, relative); + return this; + } + + var num = new SVG.Number(_y2); + num.relative = relative; + return this.add('y', num); + }, + // Animatable center x-axis + cx: function cx(x) { + return this.add('cx', new SVG.Number(x)); + }, + // Animatable center y-axis + cy: function cy(y) { + return this.add('cy', new SVG.Number(y)); + }, + // Add animatable move + move: function move(x, y) { + return this.x(x).y(y); + }, + // Add animatable center + center: function center(x, y) { + return this.cx(x).cy(y); + }, + // Add animatable size + size: function size(width, height) { + if (this.target() instanceof SVG.Text) { + // animate font size for Text elements + this.attr('font-size', width); + } else { + // animate bbox based size for all other elements + var box; + + if (!width || !height) { + box = this.target().bbox(); + } + + if (!width) { + width = box.width / box.height * height; + } + + if (!height) { + height = box.height / box.width * width; + } + + this.add('width', new SVG.Number(width)).add('height', new SVG.Number(height)); + } + + return this; + }, + // Add animatable width + width: function width(_width2) { + return this.add('width', new SVG.Number(_width2)); + }, + // Add animatable height + height: function height(_height2) { + return this.add('height', new SVG.Number(_height2)); + }, + // Add animatable plot + plot: function plot(a, b, c, d) { + // Lines can be plotted with 4 arguments + if (arguments.length == 4) { + return this.plot([a, b, c, d]); + } + + return this.add('plot', new (this.target().morphArray)(a)); + }, + // Add leading method + leading: function leading(value) { + return this.target().leading ? this.add('leading', new SVG.Number(value)) : this; + }, + // Add animatable viewbox + viewbox: function viewbox(x, y, width, height) { + if (this.target() instanceof SVG.Container) { + this.add('viewbox', new SVG.ViewBox(x, y, width, height)); + } + + return this; + }, + update: function update(o) { + if (this.target() instanceof SVG.Stop) { + if (typeof o === 'number' || o instanceof SVG.Number) { + return this.update({ + offset: arguments[0], + color: arguments[1], + opacity: arguments[2] + }); + } + + if (o.opacity != null) this.attr('stop-opacity', o.opacity); + if (o.color != null) this.attr('stop-color', o.color); + if (o.offset != null) this.attr('offset', o.offset); + } + + return this; + } + }); + SVG.Box = SVG.invent({ + create: function create(x, y, width, height) { + if (_typeof(x) === 'object' && !(x instanceof SVG.Element)) { + // chromes getBoundingClientRect has no x and y property + return SVG.Box.call(this, x.left != null ? x.left : x.x, x.top != null ? x.top : x.y, x.width, x.height); + } else if (arguments.length == 4) { + this.x = x; + this.y = y; + this.width = width; + this.height = height; + } // add center, right, bottom... + + + fullBox(this); + }, + extend: { + // Merge rect box with another, return a new instance + merge: function merge(box) { + var b = new this.constructor(); // merge boxes + + b.x = Math.min(this.x, box.x); + b.y = Math.min(this.y, box.y); + b.width = Math.max(this.x + this.width, box.x + box.width) - b.x; + b.height = Math.max(this.y + this.height, box.y + box.height) - b.y; + return fullBox(b); + }, + transform: function transform(m) { + var xMin = Infinity, + xMax = -Infinity, + yMin = Infinity, + yMax = -Infinity, + bbox; + var pts = [new SVG.Point(this.x, this.y), new SVG.Point(this.x2, this.y), new SVG.Point(this.x, this.y2), new SVG.Point(this.x2, this.y2)]; + pts.forEach(function (p) { + p = p.transform(m); + xMin = Math.min(xMin, p.x); + xMax = Math.max(xMax, p.x); + yMin = Math.min(yMin, p.y); + yMax = Math.max(yMax, p.y); + }); + bbox = new this.constructor(); + bbox.x = xMin; + bbox.width = xMax - xMin; + bbox.y = yMin; + bbox.height = yMax - yMin; + fullBox(bbox); + return bbox; + } + } + }); + SVG.BBox = SVG.invent({ + // Initialize + create: function create(element) { + SVG.Box.apply(this, [].slice.call(arguments)); // get values if element is given + + if (element instanceof SVG.Element) { + var box; // yes this is ugly, but Firefox can be a pain when it comes to elements that are not yet rendered + + try { + if (!document.documentElement.contains) { + // This is IE - it does not support contains() for top-level SVGs + var topParent = element.node; + + while (topParent.parentNode) { + topParent = topParent.parentNode; + } + + if (topParent != document) throw new Error('Element not in the dom'); + } // the element is NOT in the dom, throw error + // disabling the check below which fixes issue #76 + // if (!document.documentElement.contains(element.node)) throw new Exception('Element not in the dom') + // find native bbox + + + box = element.node.getBBox(); + } catch (e) { + if (element instanceof SVG.Shape) { + if (!SVG.parser.draw) { + // fixes apexcharts/vue-apexcharts #14 + SVG.prepare(); + } + + var clone = element.clone(SVG.parser.draw.instance).show(); + box = clone.node.getBBox(); + clone.remove(); + } else { + box = { + x: element.node.clientLeft, + y: element.node.clientTop, + width: element.node.clientWidth, + height: element.node.clientHeight + }; + } + } + + SVG.Box.call(this, box); + } + }, + // Define ancestor + inherit: SVG.Box, + // Define Parent + parent: SVG.Element, + // Constructor + construct: { + // Get bounding box + bbox: function bbox() { + return new SVG.BBox(this); + } + } + }); + SVG.BBox.prototype.constructor = SVG.BBox; + SVG.extend(SVG.Element, { + tbox: function tbox() { + console.warn('Use of TBox is deprecated and mapped to RBox. Use .rbox() instead.'); + return this.rbox(this.doc()); + } + }); + SVG.RBox = SVG.invent({ + // Initialize + create: function create(element) { + SVG.Box.apply(this, [].slice.call(arguments)); + + if (element instanceof SVG.Element) { + SVG.Box.call(this, element.node.getBoundingClientRect()); + } + }, + inherit: SVG.Box, + // define Parent + parent: SVG.Element, + extend: { + addOffset: function addOffset() { + // offset by window scroll position, because getBoundingClientRect changes when window is scrolled + this.x += window.pageXOffset; + this.y += window.pageYOffset; + return this; + } + }, + // Constructor + construct: { + // Get rect box + rbox: function rbox(el) { + if (el) return new SVG.RBox(this).transform(el.screenCTM().inverse()); + return new SVG.RBox(this).addOffset(); + } + } + }); + SVG.RBox.prototype.constructor = SVG.RBox; + SVG.Matrix = SVG.invent({ + // Initialize + create: function create(source) { + var i, + base = arrayToMatrix([1, 0, 0, 1, 0, 0]); // ensure source as object + + source = source instanceof SVG.Element ? source.matrixify() : typeof source === 'string' ? arrayToMatrix(source.split(SVG.regex.delimiter).map(parseFloat)) : arguments.length == 6 ? arrayToMatrix([].slice.call(arguments)) : Array.isArray(source) ? arrayToMatrix(source) : _typeof(source) === 'object' ? source : base; // merge source + + for (i = abcdef.length - 1; i >= 0; --i) { + this[abcdef[i]] = source[abcdef[i]] != null ? source[abcdef[i]] : base[abcdef[i]]; + } + }, + // Add methods + extend: { + // Extract individual transformations + extract: function extract() { + // find delta transform points + var px = deltaTransformPoint(this, 0, 1), + py = deltaTransformPoint(this, 1, 0), + skewX = 180 / Math.PI * Math.atan2(px.y, px.x) - 90; + return { + // translation + x: this.e, + y: this.f, + transformedX: (this.e * Math.cos(skewX * Math.PI / 180) + this.f * Math.sin(skewX * Math.PI / 180)) / Math.sqrt(this.a * this.a + this.b * this.b), + transformedY: (this.f * Math.cos(skewX * Math.PI / 180) + this.e * Math.sin(-skewX * Math.PI / 180)) / Math.sqrt(this.c * this.c + this.d * this.d), + // skew + skewX: -skewX, + skewY: 180 / Math.PI * Math.atan2(py.y, py.x), + // scale + scaleX: Math.sqrt(this.a * this.a + this.b * this.b), + scaleY: Math.sqrt(this.c * this.c + this.d * this.d), + // rotation + rotation: skewX, + a: this.a, + b: this.b, + c: this.c, + d: this.d, + e: this.e, + f: this.f, + matrix: new SVG.Matrix(this) + }; + }, + // Clone matrix + clone: function clone() { + return new SVG.Matrix(this); + }, + // Morph one matrix into another + morph: function morph(matrix) { + // store new destination + this.destination = new SVG.Matrix(matrix); + return this; + }, + // Get morphed matrix at a given position + at: function at(pos) { + // make sure a destination is defined + if (!this.destination) return this; // calculate morphed matrix at a given position + + var matrix = new SVG.Matrix({ + a: this.a + (this.destination.a - this.a) * pos, + b: this.b + (this.destination.b - this.b) * pos, + c: this.c + (this.destination.c - this.c) * pos, + d: this.d + (this.destination.d - this.d) * pos, + e: this.e + (this.destination.e - this.e) * pos, + f: this.f + (this.destination.f - this.f) * pos + }); + return matrix; + }, + // Multiplies by given matrix + multiply: function multiply(matrix) { + return new SVG.Matrix(this.native().multiply(parseMatrix(matrix).native())); + }, + // Inverses matrix + inverse: function inverse() { + return new SVG.Matrix(this.native().inverse()); + }, + // Translate matrix + translate: function translate(x, y) { + return new SVG.Matrix(this.native().translate(x || 0, y || 0)); + }, + // Scale matrix + scale: function scale(x, y, cx, cy) { + // support uniformal scale + if (arguments.length == 1) { + y = x; + } else if (arguments.length == 3) { + cy = cx; + cx = y; + y = x; + } + + return this.around(cx, cy, new SVG.Matrix(x, 0, 0, y, 0, 0)); + }, + // Rotate matrix + rotate: function rotate(r, cx, cy) { + // convert degrees to radians + r = SVG.utils.radians(r); + return this.around(cx, cy, new SVG.Matrix(Math.cos(r), Math.sin(r), -Math.sin(r), Math.cos(r), 0, 0)); + }, + // Flip matrix on x or y, at a given offset + flip: function flip(a, o) { + return a == 'x' ? this.scale(-1, 1, o, 0) : a == 'y' ? this.scale(1, -1, 0, o) : this.scale(-1, -1, a, o != null ? o : a); + }, + // Skew + skew: function skew(x, y, cx, cy) { + // support uniformal skew + if (arguments.length == 1) { + y = x; + } else if (arguments.length == 3) { + cy = cx; + cx = y; + y = x; + } // convert degrees to radians + + + x = SVG.utils.radians(x); + y = SVG.utils.radians(y); + return this.around(cx, cy, new SVG.Matrix(1, Math.tan(y), Math.tan(x), 1, 0, 0)); + }, + // SkewX + skewX: function skewX(x, cx, cy) { + return this.skew(x, 0, cx, cy); + }, + // SkewY + skewY: function skewY(y, cx, cy) { + return this.skew(0, y, cx, cy); + }, + // Transform around a center point + around: function around(cx, cy, matrix) { + return this.multiply(new SVG.Matrix(1, 0, 0, 1, cx || 0, cy || 0)).multiply(matrix).multiply(new SVG.Matrix(1, 0, 0, 1, -cx || 0, -cy || 0)); + }, + // Convert to native SVGMatrix + native: function native() { + // create new matrix + var matrix = SVG.parser.native.createSVGMatrix(); // update with current values + + for (var i = abcdef.length - 1; i >= 0; i--) { + matrix[abcdef[i]] = this[abcdef[i]]; + } + + return matrix; + }, + // Convert matrix to string + toString: function toString() { + // Construct the matrix directly, avoid values that are too small + return 'matrix(' + float32String(this.a) + ',' + float32String(this.b) + ',' + float32String(this.c) + ',' + float32String(this.d) + ',' + float32String(this.e) + ',' + float32String(this.f) + ')'; + } + }, + // Define parent + parent: SVG.Element, + // Add parent method + construct: { + // Get current matrix + ctm: function ctm() { + return new SVG.Matrix(this.node.getCTM()); + }, + // Get current screen matrix + screenCTM: function screenCTM() { + /* https://bugzilla.mozilla.org/show_bug.cgi?id=1344537 + This is needed because FF does not return the transformation matrix + for the inner coordinate system when getScreenCTM() is called on nested svgs. + However all other Browsers do that */ + if (this instanceof SVG.Nested) { + var rect = this.rect(1, 1); + var m = rect.node.getScreenCTM(); + rect.remove(); + return new SVG.Matrix(m); + } + + return new SVG.Matrix(this.node.getScreenCTM()); + } + } + }); + SVG.Point = SVG.invent({ + // Initialize + create: function create(x, y) { + var source, + base = { + x: 0, + y: 0 // ensure source as object + + }; + source = Array.isArray(x) ? { + x: x[0], + y: x[1] + } : _typeof(x) === 'object' ? { + x: x.x, + y: x.y + } : x != null ? { + x: x, + y: y != null ? y : x + } : base; // If y has no value, then x is used has its value + // merge source + + this.x = source.x; + this.y = source.y; + }, + // Add methods + extend: { + // Clone point + clone: function clone() { + return new SVG.Point(this); + }, + // Morph one point into another + morph: function morph(x, y) { + // store new destination + this.destination = new SVG.Point(x, y); + return this; + }, + // Get morphed point at a given position + at: function at(pos) { + // make sure a destination is defined + if (!this.destination) return this; // calculate morphed matrix at a given position + + var point = new SVG.Point({ + x: this.x + (this.destination.x - this.x) * pos, + y: this.y + (this.destination.y - this.y) * pos + }); + return point; + }, + // Convert to native SVGPoint + native: function native() { + // create new point + var point = SVG.parser.native.createSVGPoint(); // update with current values + + point.x = this.x; + point.y = this.y; + return point; + }, + // transform point with matrix + transform: function transform(matrix) { + return new SVG.Point(this.native().matrixTransform(matrix.native())); + } + } + }); + SVG.extend(SVG.Element, { + // Get point + point: function point(x, y) { + return new SVG.Point(x, y).transform(this.screenCTM().inverse()); + } + }); + SVG.extend(SVG.Element, { + // Set svg element attribute + attr: function attr(a, v, n) { + // act as full getter + if (a == null) { + // get an object of attributes + a = {}; + v = this.node.attributes; + + for (n = v.length - 1; n >= 0; n--) { + a[v[n].nodeName] = SVG.regex.isNumber.test(v[n].nodeValue) ? parseFloat(v[n].nodeValue) : v[n].nodeValue; + } + + return a; + } else if (_typeof(a) === 'object') { + // apply every attribute individually if an object is passed + for (v in a) { + this.attr(v, a[v]); + } + } else if (v === null) { + // remove value + this.node.removeAttribute(a); + } else if (v == null) { + // act as a getter if the first and only argument is not an object + v = this.node.getAttribute(a); + return v == null ? SVG.defaults.attrs[a] : SVG.regex.isNumber.test(v) ? parseFloat(v) : v; + } else { + // BUG FIX: some browsers will render a stroke if a color is given even though stroke width is 0 + if (a == 'stroke-width') { + this.attr('stroke', parseFloat(v) > 0 ? this._stroke : null); + } else if (a == 'stroke') { + this._stroke = v; + } // convert image fill and stroke to patterns + + + if (a == 'fill' || a == 'stroke') { + if (SVG.regex.isImage.test(v)) { + v = this.doc().defs().image(v, 0, 0); + } + + if (v instanceof SVG.Image) { + v = this.doc().defs().pattern(0, 0, function () { + this.add(v); + }); + } + } // ensure correct numeric values (also accepts NaN and Infinity) + + + if (typeof v === 'number') { + v = new SVG.Number(v); + } // ensure full hex color + else if (SVG.Color.isColor(v)) { + v = new SVG.Color(v); + } // parse array values + else if (Array.isArray(v)) { + v = new SVG.Array(v); + } // if the passed attribute is leading... + + + if (a == 'leading') { + // ... call the leading method instead + if (this.leading) { + this.leading(v); + } + } else { + // set given attribute on node + typeof n === 'string' ? this.node.setAttributeNS(n, a, v.toString()) : this.node.setAttribute(a, v.toString()); + } // rebuild if required + + + if (this.rebuild && (a == 'font-size' || a == 'x')) { + this.rebuild(a, v); + } + } + + return this; + } + }); + SVG.extend(SVG.Element, { + // Add transformations + transform: function transform(o, relative) { + // get target in case of the fx module, otherwise reference this + var target = this, + matrix, + bbox; // act as a getter + + if (_typeof(o) !== 'object') { + // get current matrix + matrix = new SVG.Matrix(target).extract(); + return typeof o === 'string' ? matrix[o] : matrix; + } // get current matrix + + + matrix = new SVG.Matrix(target); // ensure relative flag + + relative = !!relative || !!o.relative; // act on matrix + + if (o.a != null) { + matrix = relative // relative + ? matrix.multiply(new SVG.Matrix(o)) // absolute + : new SVG.Matrix(o); // act on rotation + } else if (o.rotation != null) { + // ensure centre point + ensureCentre(o, target); // apply transformation + + matrix = relative // relative + ? matrix.rotate(o.rotation, o.cx, o.cy) // absolute + : matrix.rotate(o.rotation - matrix.extract().rotation, o.cx, o.cy); // act on scale + } else if (o.scale != null || o.scaleX != null || o.scaleY != null) { + // ensure centre point + ensureCentre(o, target); // ensure scale values on both axes + + o.scaleX = o.scale != null ? o.scale : o.scaleX != null ? o.scaleX : 1; + o.scaleY = o.scale != null ? o.scale : o.scaleY != null ? o.scaleY : 1; + + if (!relative) { + // absolute; multiply inversed values + var e = matrix.extract(); + o.scaleX = o.scaleX * 1 / e.scaleX; + o.scaleY = o.scaleY * 1 / e.scaleY; + } + + matrix = matrix.scale(o.scaleX, o.scaleY, o.cx, o.cy); // act on skew + } else if (o.skew != null || o.skewX != null || o.skewY != null) { + // ensure centre point + ensureCentre(o, target); // ensure skew values on both axes + + o.skewX = o.skew != null ? o.skew : o.skewX != null ? o.skewX : 0; + o.skewY = o.skew != null ? o.skew : o.skewY != null ? o.skewY : 0; + + if (!relative) { + // absolute; reset skew values + var e = matrix.extract(); + matrix = matrix.multiply(new SVG.Matrix().skew(e.skewX, e.skewY, o.cx, o.cy).inverse()); + } + + matrix = matrix.skew(o.skewX, o.skewY, o.cx, o.cy); // act on flip + } else if (o.flip) { + if (o.flip == 'x' || o.flip == 'y') { + o.offset = o.offset == null ? target.bbox()['c' + o.flip] : o.offset; + } else { + if (o.offset == null) { + bbox = target.bbox(); + o.flip = bbox.cx; + o.offset = bbox.cy; + } else { + o.flip = o.offset; + } + } + + matrix = new SVG.Matrix().flip(o.flip, o.offset); // act on translate + } else if (o.x != null || o.y != null) { + if (relative) { + // relative + matrix = matrix.translate(o.x, o.y); + } else { + // absolute + if (o.x != null) matrix.e = o.x; + if (o.y != null) matrix.f = o.y; + } + } + + return this.attr('transform', matrix); + } + }); + SVG.extend(SVG.FX, { + transform: function transform(o, relative) { + // get target in case of the fx module, otherwise reference this + var target = this.target(), + matrix, + bbox; // act as a getter + + if (_typeof(o) !== 'object') { + // get current matrix + matrix = new SVG.Matrix(target).extract(); + return typeof o === 'string' ? matrix[o] : matrix; + } // ensure relative flag + + + relative = !!relative || !!o.relative; // act on matrix + + if (o.a != null) { + matrix = new SVG.Matrix(o); // act on rotation + } else if (o.rotation != null) { + // ensure centre point + ensureCentre(o, target); // apply transformation + + matrix = new SVG.Rotate(o.rotation, o.cx, o.cy); // act on scale + } else if (o.scale != null || o.scaleX != null || o.scaleY != null) { + // ensure centre point + ensureCentre(o, target); // ensure scale values on both axes + + o.scaleX = o.scale != null ? o.scale : o.scaleX != null ? o.scaleX : 1; + o.scaleY = o.scale != null ? o.scale : o.scaleY != null ? o.scaleY : 1; + matrix = new SVG.Scale(o.scaleX, o.scaleY, o.cx, o.cy); // act on skew + } else if (o.skewX != null || o.skewY != null) { + // ensure centre point + ensureCentre(o, target); // ensure skew values on both axes + + o.skewX = o.skewX != null ? o.skewX : 0; + o.skewY = o.skewY != null ? o.skewY : 0; + matrix = new SVG.Skew(o.skewX, o.skewY, o.cx, o.cy); // act on flip + } else if (o.flip) { + if (o.flip == 'x' || o.flip == 'y') { + o.offset = o.offset == null ? target.bbox()['c' + o.flip] : o.offset; + } else { + if (o.offset == null) { + bbox = target.bbox(); + o.flip = bbox.cx; + o.offset = bbox.cy; + } else { + o.flip = o.offset; + } + } + + matrix = new SVG.Matrix().flip(o.flip, o.offset); // act on translate + } else if (o.x != null || o.y != null) { + matrix = new SVG.Translate(o.x, o.y); + } + + if (!matrix) return this; + matrix.relative = relative; + this.last().transforms.push(matrix); + return this._callStart(); + } + }); + SVG.extend(SVG.Element, { + // Reset all transformations + untransform: function untransform() { + return this.attr('transform', null); + }, + // merge the whole transformation chain into one matrix and returns it + matrixify: function matrixify() { + var matrix = (this.attr('transform') || ''). // split transformations + split(SVG.regex.transforms).slice(0, -1).map(function (str) { + // generate key => value pairs + var kv = str.trim().split('('); + return [kv[0], kv[1].split(SVG.regex.delimiter).map(function (str) { + return parseFloat(str); + })]; + }) // merge every transformation into one matrix + .reduce(function (matrix, transform) { + if (transform[0] == 'matrix') return matrix.multiply(arrayToMatrix(transform[1])); + return matrix[transform[0]].apply(matrix, transform[1]); + }, new SVG.Matrix()); + return matrix; + }, + // add an element to another parent without changing the visual representation on the screen + toParent: function toParent(parent) { + if (this == parent) return this; + var ctm = this.screenCTM(); + var pCtm = parent.screenCTM().inverse(); + this.addTo(parent).untransform().transform(pCtm.multiply(ctm)); + return this; + }, + // same as above with parent equals root-svg + toDoc: function toDoc() { + return this.toParent(this.doc()); + } + }); + SVG.Transformation = SVG.invent({ + create: function create(source, inversed) { + if (arguments.length > 1 && typeof inversed !== 'boolean') { + return this.constructor.call(this, [].slice.call(arguments)); + } + + if (Array.isArray(source)) { + for (var i = 0, len = this.arguments.length; i < len; ++i) { + this[this.arguments[i]] = source[i]; + } + } else if (_typeof(source) === 'object') { + for (var i = 0, len = this.arguments.length; i < len; ++i) { + this[this.arguments[i]] = source[this.arguments[i]]; + } + } + + this.inversed = false; + + if (inversed === true) { + this.inversed = true; + } + }, + extend: { + arguments: [], + method: '', + at: function at(pos) { + var params = []; + + for (var i = 0, len = this.arguments.length; i < len; ++i) { + params.push(this[this.arguments[i]]); + } + + var m = this._undo || new SVG.Matrix(); + m = new SVG.Matrix().morph(SVG.Matrix.prototype[this.method].apply(m, params)).at(pos); + return this.inversed ? m.inverse() : m; + }, + undo: function undo(o) { + for (var i = 0, len = this.arguments.length; i < len; ++i) { + o[this.arguments[i]] = typeof this[this.arguments[i]] === 'undefined' ? 0 : o[this.arguments[i]]; + } // The method SVG.Matrix.extract which was used before calling this + // method to obtain a value for the parameter o doesn't return a cx and + // a cy so we use the ones that were provided to this object at its creation + + + o.cx = this.cx; + o.cy = this.cy; + this._undo = new SVG[capitalize(this.method)](o, true).at(1); + return this; + } + } + }); + SVG.Translate = SVG.invent({ + parent: SVG.Matrix, + inherit: SVG.Transformation, + create: function create(source, inversed) { + this.constructor.apply(this, [].slice.call(arguments)); + }, + extend: { + arguments: ['transformedX', 'transformedY'], + method: 'translate' + } + }); + SVG.Rotate = SVG.invent({ + parent: SVG.Matrix, + inherit: SVG.Transformation, + create: function create(source, inversed) { + this.constructor.apply(this, [].slice.call(arguments)); + }, + extend: { + arguments: ['rotation', 'cx', 'cy'], + method: 'rotate', + at: function at(pos) { + var m = new SVG.Matrix().rotate(new SVG.Number().morph(this.rotation - (this._undo ? this._undo.rotation : 0)).at(pos), this.cx, this.cy); + return this.inversed ? m.inverse() : m; + }, + undo: function undo(o) { + this._undo = o; + return this; + } + } + }); + SVG.Scale = SVG.invent({ + parent: SVG.Matrix, + inherit: SVG.Transformation, + create: function create(source, inversed) { + this.constructor.apply(this, [].slice.call(arguments)); + }, + extend: { + arguments: ['scaleX', 'scaleY', 'cx', 'cy'], + method: 'scale' + } + }); + SVG.Skew = SVG.invent({ + parent: SVG.Matrix, + inherit: SVG.Transformation, + create: function create(source, inversed) { + this.constructor.apply(this, [].slice.call(arguments)); + }, + extend: { + arguments: ['skewX', 'skewY', 'cx', 'cy'], + method: 'skew' + } + }); + SVG.extend(SVG.Element, { + // Dynamic style generator + style: function style(s, v) { + if (arguments.length == 0) { + // get full style + return this.node.style.cssText || ''; + } else if (arguments.length < 2) { + // apply every style individually if an object is passed + if (_typeof(s) === 'object') { + for (v in s) { + this.style(v, s[v]); + } + } else if (SVG.regex.isCss.test(s)) { + // parse css string + s = s.split(/\s*;\s*/) // filter out suffix ; and stuff like ;; + .filter(function (e) { + return !!e; + }).map(function (e) { + return e.split(/\s*:\s*/); + }); // apply every definition individually + + while (v = s.pop()) { + this.style(v[0], v[1]); + } + } else { + // act as a getter if the first and only argument is not an object + return this.node.style[camelCase(s)]; + } + } else { + this.node.style[camelCase(s)] = v === null || SVG.regex.isBlank.test(v) ? '' : v; + } + + return this; + } + }); + SVG.Parent = SVG.invent({ + // Initialize node + create: function create(element) { + this.constructor.call(this, element); + }, + // Inherit from + inherit: SVG.Element, + // Add class methods + extend: { + // Returns all child elements + children: function children() { + return SVG.utils.map(SVG.utils.filterSVGElements(this.node.childNodes), function (node) { + return SVG.adopt(node); + }); + }, + // Add given element at a position + add: function add(element, i) { + if (i == null) { + this.node.appendChild(element.node); + } else if (element.node != this.node.childNodes[i]) { + this.node.insertBefore(element.node, this.node.childNodes[i]); + } + + return this; + }, + // Basically does the same as `add()` but returns the added element instead + put: function put(element, i) { + this.add(element, i); + return element; + }, + // Checks if the given element is a child + has: function has(element) { + return this.index(element) >= 0; + }, + // Gets index of given element + index: function index(element) { + return [].slice.call(this.node.childNodes).indexOf(element.node); + }, + // Get a element at the given index + get: function get(i) { + return SVG.adopt(this.node.childNodes[i]); + }, + // Get first child + first: function first() { + return this.get(0); + }, + // Get the last child + last: function last() { + return this.get(this.node.childNodes.length - 1); + }, + // Iterates over all children and invokes a given block + each: function each(block, deep) { + var i, + il, + children = this.children(); + + for (i = 0, il = children.length; i < il; i++) { + if (children[i] instanceof SVG.Element) { + block.apply(children[i], [i, children]); + } + + if (deep && children[i] instanceof SVG.Container) { + children[i].each(block, deep); + } + } + + return this; + }, + // Remove a given child + removeElement: function removeElement(element) { + this.node.removeChild(element.node); + return this; + }, + // Remove all elements in this container + clear: function clear() { + // remove children + while (this.node.hasChildNodes()) { + this.node.removeChild(this.node.lastChild); + } // remove defs reference + + + delete this._defs; + return this; + }, + // Get defs + defs: function defs() { + return this.doc().defs(); + } + } + }); + SVG.extend(SVG.Parent, { + ungroup: function ungroup(parent, depth) { + if (depth === 0 || this instanceof SVG.Defs || this.node == SVG.parser.draw) return this; + parent = parent || (this instanceof SVG.Doc ? this : this.parent(SVG.Parent)); + depth = depth || Infinity; + this.each(function () { + if (this instanceof SVG.Defs) return this; + if (this instanceof SVG.Parent) return this.ungroup(parent, depth - 1); + return this.toParent(parent); + }); + this.node.firstChild || this.remove(); + return this; + }, + flatten: function flatten(parent, depth) { + return this.ungroup(parent, depth); + } + }); + SVG.Container = SVG.invent({ + // Initialize node + create: function create(element) { + this.constructor.call(this, element); + }, + // Inherit from + inherit: SVG.Parent + }); + SVG.ViewBox = SVG.invent({ + create: function create(source) { + var base = [0, 0, 0, 0]; + var x, + y, + width, + height, + box, + view, + we, + he, + wm = 1, + // width multiplier + hm = 1, + // height multiplier + reg = /[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/gi; + + if (source instanceof SVG.Element) { + we = source; + he = source; + view = (source.attr('viewBox') || '').match(reg); + box = source.bbox; // get dimensions of current node + + width = new SVG.Number(source.width()); + height = new SVG.Number(source.height()); // find nearest non-percentual dimensions + + while (width.unit == '%') { + wm *= width.value; + width = new SVG.Number(we instanceof SVG.Doc ? we.parent().offsetWidth : we.parent().width()); + we = we.parent(); + } + + while (height.unit == '%') { + hm *= height.value; + height = new SVG.Number(he instanceof SVG.Doc ? he.parent().offsetHeight : he.parent().height()); + he = he.parent(); + } // ensure defaults + + + this.x = 0; + this.y = 0; + this.width = width * wm; + this.height = height * hm; + this.zoom = 1; + + if (view) { + // get width and height from viewbox + x = parseFloat(view[0]); + y = parseFloat(view[1]); + width = parseFloat(view[2]); + height = parseFloat(view[3]); // calculate zoom accoring to viewbox + + this.zoom = this.width / this.height > width / height ? this.height / height : this.width / width; // calculate real pixel dimensions on parent SVG.Doc element + + this.x = x; + this.y = y; + this.width = width; + this.height = height; + } + } else { + // ensure source as object + source = typeof source === 'string' ? source.match(reg).map(function (el) { + return parseFloat(el); + }) : Array.isArray(source) ? source : _typeof(source) === 'object' ? [source.x, source.y, source.width, source.height] : arguments.length == 4 ? [].slice.call(arguments) : base; + this.x = source[0]; + this.y = source[1]; + this.width = source[2]; + this.height = source[3]; + } + }, + extend: { + toString: function toString() { + return this.x + ' ' + this.y + ' ' + this.width + ' ' + this.height; + }, + morph: function morph(x, y, width, height) { + this.destination = new SVG.ViewBox(x, y, width, height); + return this; + }, + at: function at(pos) { + if (!this.destination) return this; + return new SVG.ViewBox([this.x + (this.destination.x - this.x) * pos, this.y + (this.destination.y - this.y) * pos, this.width + (this.destination.width - this.width) * pos, this.height + (this.destination.height - this.height) * pos]); + } + }, + // Define parent + parent: SVG.Container, + // Add parent method + construct: { + // get/set viewbox + viewbox: function viewbox(x, y, width, height) { + if (arguments.length == 0) // act as a getter if there are no arguments + { + return new SVG.ViewBox(this); + } // otherwise act as a setter + + + return this.attr('viewBox', new SVG.ViewBox(x, y, width, height)); + } + } + }) // Add events to elements + ; + ['click', 'dblclick', 'mousedown', 'mouseup', 'mouseover', 'mouseout', 'mousemove', // , 'mouseenter' -> not supported by IE + // , 'mouseleave' -> not supported by IE + 'touchstart', 'touchmove', 'touchleave', 'touchend', 'touchcancel'].forEach(function (event) { + // add event to SVG.Element + SVG.Element.prototype[event] = function (f) { + // bind event to element rather than element node + SVG.on(this.node, event, f); + return this; + }; + }); // Initialize listeners stack + + SVG.listeners = []; + SVG.handlerMap = []; + SVG.listenerId = 0; // Add event binder in the SVG namespace + + SVG.on = function (node, event, listener, binding, options) { + // create listener, get object-index + var l = listener.bind(binding || node.instance || node), + index = (SVG.handlerMap.indexOf(node) + 1 || SVG.handlerMap.push(node)) - 1, + ev = event.split('.')[0], + ns = event.split('.')[1] || '*'; // ensure valid object + + SVG.listeners[index] = SVG.listeners[index] || {}; + SVG.listeners[index][ev] = SVG.listeners[index][ev] || {}; + SVG.listeners[index][ev][ns] = SVG.listeners[index][ev][ns] || {}; + + if (!listener._svgjsListenerId) { + listener._svgjsListenerId = ++SVG.listenerId; + } // reference listener + + + SVG.listeners[index][ev][ns][listener._svgjsListenerId] = l; // add listener + + node.addEventListener(ev, l, options || false); + }; // Add event unbinder in the SVG namespace + + + SVG.off = function (node, event, listener) { + var index = SVG.handlerMap.indexOf(node), + ev = event && event.split('.')[0], + ns = event && event.split('.')[1], + namespace = ''; + if (index == -1) return; + + if (listener) { + if (typeof listener === 'function') listener = listener._svgjsListenerId; + if (!listener) return; // remove listener reference + + if (SVG.listeners[index][ev] && SVG.listeners[index][ev][ns || '*']) { + // remove listener + node.removeEventListener(ev, SVG.listeners[index][ev][ns || '*'][listener], false); + delete SVG.listeners[index][ev][ns || '*'][listener]; + } + } else if (ns && ev) { + // remove all listeners for a namespaced event + if (SVG.listeners[index][ev] && SVG.listeners[index][ev][ns]) { + for (listener in SVG.listeners[index][ev][ns]) { + SVG.off(node, [ev, ns].join('.'), listener); + } + + delete SVG.listeners[index][ev][ns]; + } + } else if (ns) { + // remove all listeners for a specific namespace + for (event in SVG.listeners[index]) { + for (namespace in SVG.listeners[index][event]) { + if (ns === namespace) { + SVG.off(node, [event, ns].join('.')); + } + } + } + } else if (ev) { + // remove all listeners for the event + if (SVG.listeners[index][ev]) { + for (namespace in SVG.listeners[index][ev]) { + SVG.off(node, [ev, namespace].join('.')); + } + + delete SVG.listeners[index][ev]; + } + } else { + // remove all listeners on a given node + for (event in SVG.listeners[index]) { + SVG.off(node, event); + } + + delete SVG.listeners[index]; + delete SVG.handlerMap[index]; + } + }; // + + + SVG.extend(SVG.Element, { + // Bind given event to listener + on: function on(event, listener, binding, options) { + SVG.on(this.node, event, listener, binding, options); + return this; + }, + // Unbind event from listener + off: function off(event, listener) { + SVG.off(this.node, event, listener); + return this; + }, + // Fire given event + fire: function fire(event, data) { + // Dispatch event + if (event instanceof window.Event) { + this.node.dispatchEvent(event); + } else { + this.node.dispatchEvent(event = new SVG.CustomEvent(event, { + detail: data, + cancelable: true + })); + } + + this._event = event; + return this; + }, + event: function event() { + return this._event; + } + }); + SVG.Defs = SVG.invent({ + // Initialize node + create: 'defs', + // Inherit from + inherit: SVG.Container + }); + SVG.G = SVG.invent({ + // Initialize node + create: 'g', + // Inherit from + inherit: SVG.Container, + // Add class methods + extend: { + // Move over x-axis + x: function x(_x3) { + return _x3 == null ? this.transform('x') : this.transform({ + x: _x3 - this.x() + }, true); + }, + // Move over y-axis + y: function y(_y3) { + return _y3 == null ? this.transform('y') : this.transform({ + y: _y3 - this.y() + }, true); + }, + // Move by center over x-axis + cx: function cx(x) { + return x == null ? this.gbox().cx : this.x(x - this.gbox().width / 2); + }, + // Move by center over y-axis + cy: function cy(y) { + return y == null ? this.gbox().cy : this.y(y - this.gbox().height / 2); + }, + gbox: function gbox() { + var bbox = this.bbox(), + trans = this.transform(); + bbox.x += trans.x; + bbox.x2 += trans.x; + bbox.cx += trans.x; + bbox.y += trans.y; + bbox.y2 += trans.y; + bbox.cy += trans.y; + return bbox; + } + }, + // Add parent method + construct: { + // Create a group element + group: function group() { + return this.put(new SVG.G()); + } + } + }); + SVG.Doc = SVG.invent({ + // Initialize node + create: function create(element) { + if (element) { + // ensure the presence of a dom element + element = typeof element === 'string' ? document.getElementById(element) : element; // If the target is an svg element, use that element as the main wrapper. + // This allows svg.js to work with svg documents as well. + + if (element.nodeName == 'svg') { + this.constructor.call(this, element); + } else { + this.constructor.call(this, SVG.create('svg')); + element.appendChild(this.node); + this.size('100%', '100%'); + } // set svg element attributes and ensure defs node + + + this.namespace().defs(); + } + }, + // Inherit from + inherit: SVG.Container, + // Add class methods + extend: { + // Add namespaces + namespace: function namespace() { + return this.attr({ + xmlns: SVG.ns, + version: '1.1' + }).attr('xmlns:xlink', SVG.xlink, SVG.xmlns).attr('xmlns:svgjs', SVG.svgjs, SVG.xmlns); + }, + // Creates and returns defs element + defs: function defs() { + if (!this._defs) { + var defs; // Find or create a defs element in this instance + + if (defs = this.node.getElementsByTagName('defs')[0]) { + this._defs = SVG.adopt(defs); + } else { + this._defs = new SVG.Defs(); + } // Make sure the defs node is at the end of the stack + + + this.node.appendChild(this._defs.node); + } + + return this._defs; + }, + // custom parent method + parent: function parent() { + if (!this.node.parentNode || this.node.parentNode.nodeName == '#document') return null; + return this.node.parentNode; + }, + // Fix for possible sub-pixel offset. See: + // https://bugzilla.mozilla.org/show_bug.cgi?id=608812 + spof: function spof() { + var pos = this.node.getScreenCTM(); + + if (pos) { + this.style('left', -pos.e % 1 + 'px').style('top', -pos.f % 1 + 'px'); + } + + return this; + }, + // Removes the doc from the DOM + remove: function remove() { + if (this.parent()) { + this.parent().removeChild(this.node); + } + + return this; + }, + clear: function clear() { + // remove children + while (this.node.hasChildNodes()) { + this.node.removeChild(this.node.lastChild); + } // remove defs reference + + + delete this._defs; // add back parser + + if (SVG.parser.draw && !SVG.parser.draw.parentNode) { + this.node.appendChild(SVG.parser.draw); + } + + return this; + }, + clone: function clone(parent) { + // write dom data to the dom so the clone can pickup the data + this.writeDataToDom(); // get reference to node + + var node = this.node; // clone element and assign new id + + var clone = assignNewId(node.cloneNode(true)); // insert the clone in the given parent or after myself + + if (parent) { + (parent.node || parent).appendChild(clone.node); + } else { + node.parentNode.insertBefore(clone.node, node.nextSibling); + } + + return clone; + } + } + }); // ### This module adds backward / forward functionality to elements. + // + + SVG.extend(SVG.Element, { + // Get all siblings, including myself + siblings: function siblings() { + return this.parent().children(); + }, + // Get the curent position siblings + position: function position() { + return this.parent().index(this); + }, + // Get the next element (will return null if there is none) + next: function next() { + return this.siblings()[this.position() + 1]; + }, + // Get the next element (will return null if there is none) + previous: function previous() { + return this.siblings()[this.position() - 1]; + }, + // Send given element one step forward + forward: function forward() { + var i = this.position() + 1, + p = this.parent(); // move node one step forward + + p.removeElement(this).add(this, i); // make sure defs node is always at the top + + if (p instanceof SVG.Doc) { + p.node.appendChild(p.defs().node); + } + + return this; + }, + // Send given element one step backward + backward: function backward() { + var i = this.position(); + + if (i > 0) { + this.parent().removeElement(this).add(this, i - 1); + } + + return this; + }, + // Send given element all the way to the front + front: function front() { + var p = this.parent(); // Move node forward + + p.node.appendChild(this.node); // Make sure defs node is always at the top + + if (p instanceof SVG.Doc) { + p.node.appendChild(p.defs().node); + } + + return this; + }, + // Send given element all the way to the back + back: function back() { + if (this.position() > 0) { + this.parent().removeElement(this).add(this, 0); + } + + return this; + }, + // Inserts a given element before the targeted element + before: function before(element) { + element.remove(); + var i = this.position(); + this.parent().add(element, i); + return this; + }, + // Insters a given element after the targeted element + after: function after(element) { + element.remove(); + var i = this.position(); + this.parent().add(element, i + 1); + return this; + } + }); + SVG.Mask = SVG.invent({ + // Initialize node + create: function create() { + this.constructor.call(this, SVG.create('mask')); // keep references to masked elements + + this.targets = []; + }, + // Inherit from + inherit: SVG.Container, + // Add class methods + extend: { + // Unmask all masked elements and remove itself + remove: function remove() { + // unmask all targets + for (var i = this.targets.length - 1; i >= 0; i--) { + if (this.targets[i]) { + this.targets[i].unmask(); + } + } + + this.targets = []; // remove mask from parent + + SVG.Element.prototype.remove.call(this); + return this; + } + }, + // Add parent method + construct: { + // Create masking element + mask: function mask() { + return this.defs().put(new SVG.Mask()); + } + } + }); + SVG.extend(SVG.Element, { + // Distribute mask to svg element + maskWith: function maskWith(element) { + // use given mask or create a new one + this.masker = element instanceof SVG.Mask ? element : this.parent().mask().add(element); // store reverence on self in mask + + this.masker.targets.push(this); // apply mask + + return this.attr('mask', 'url("#' + this.masker.attr('id') + '")'); + }, + // Unmask element + unmask: function unmask() { + delete this.masker; + return this.attr('mask', null); + } + }); + SVG.ClipPath = SVG.invent({ + // Initialize node + create: function create() { + this.constructor.call(this, SVG.create('clipPath')); // keep references to clipped elements + + this.targets = []; + }, + // Inherit from + inherit: SVG.Container, + // Add class methods + extend: { + // Unclip all clipped elements and remove itself + remove: function remove() { + // unclip all targets + for (var i = this.targets.length - 1; i >= 0; i--) { + if (this.targets[i]) { + this.targets[i].unclip(); + } + } + + this.targets = []; // remove clipPath from parent + + this.parent().removeElement(this); + return this; + } + }, + // Add parent method + construct: { + // Create clipping element + clip: function clip() { + return this.defs().put(new SVG.ClipPath()); + } + } + }); // + + SVG.extend(SVG.Element, { + // Distribute clipPath to svg element + clipWith: function clipWith(element) { + // use given clip or create a new one + this.clipper = element instanceof SVG.ClipPath ? element : this.parent().clip().add(element); // store reverence on self in mask + + this.clipper.targets.push(this); // apply mask + + return this.attr('clip-path', 'url("#' + this.clipper.attr('id') + '")'); + }, + // Unclip element + unclip: function unclip() { + delete this.clipper; + return this.attr('clip-path', null); + } + }); + SVG.Gradient = SVG.invent({ + // Initialize node + create: function create(type) { + this.constructor.call(this, SVG.create(type + 'Gradient')); // store type + + this.type = type; + }, + // Inherit from + inherit: SVG.Container, + // Add class methods + extend: { + // Add a color stop + at: function at(offset, color, opacity) { + return this.put(new SVG.Stop()).update(offset, color, opacity); + }, + // Update gradient + update: function update(block) { + // remove all stops + this.clear(); // invoke passed block + + if (typeof block === 'function') { + block.call(this, this); + } + + return this; + }, + // Return the fill id + fill: function fill() { + return 'url(#' + this.id() + ')'; + }, + // Alias string convertion to fill + toString: function toString() { + return this.fill(); + }, + // custom attr to handle transform + attr: function attr(a, b, c) { + if (a == 'transform') a = 'gradientTransform'; + return SVG.Container.prototype.attr.call(this, a, b, c); + } + }, + // Add parent method + construct: { + // Create gradient element in defs + gradient: function gradient(type, block) { + return this.defs().gradient(type, block); + } + } + }); // Add animatable methods to both gradient and fx module + + SVG.extend(SVG.Gradient, SVG.FX, { + // From position + from: function from(x, y) { + return (this._target || this).type == 'radial' ? this.attr({ + fx: new SVG.Number(x), + fy: new SVG.Number(y) + }) : this.attr({ + x1: new SVG.Number(x), + y1: new SVG.Number(y) + }); + }, + // To position + to: function to(x, y) { + return (this._target || this).type == 'radial' ? this.attr({ + cx: new SVG.Number(x), + cy: new SVG.Number(y) + }) : this.attr({ + x2: new SVG.Number(x), + y2: new SVG.Number(y) + }); + } + }); // Base gradient generation + + SVG.extend(SVG.Defs, { + // define gradient + gradient: function gradient(type, block) { + return this.put(new SVG.Gradient(type)).update(block); + } + }); + SVG.Stop = SVG.invent({ + // Initialize node + create: 'stop', + // Inherit from + inherit: SVG.Element, + // Add class methods + extend: { + // add color stops + update: function update(o) { + if (typeof o === 'number' || o instanceof SVG.Number) { + o = { + offset: arguments[0], + color: arguments[1], + opacity: arguments[2] + }; + } // set attributes + + + if (o.opacity != null) this.attr('stop-opacity', o.opacity); + if (o.color != null) this.attr('stop-color', o.color); + if (o.offset != null) this.attr('offset', new SVG.Number(o.offset)); + return this; + } + } + }); + SVG.Pattern = SVG.invent({ + // Initialize node + create: 'pattern', + // Inherit from + inherit: SVG.Container, + // Add class methods + extend: { + // Return the fill id + fill: function fill() { + return 'url(#' + this.id() + ')'; + }, + // Update pattern by rebuilding + update: function update(block) { + // remove content + this.clear(); // invoke passed block + + if (typeof block === 'function') { + block.call(this, this); + } + + return this; + }, + // Alias string convertion to fill + toString: function toString() { + return this.fill(); + }, + // custom attr to handle transform + attr: function attr(a, b, c) { + if (a == 'transform') a = 'patternTransform'; + return SVG.Container.prototype.attr.call(this, a, b, c); + } + }, + // Add parent method + construct: { + // Create pattern element in defs + pattern: function pattern(width, height, block) { + return this.defs().pattern(width, height, block); + } + } + }); + SVG.extend(SVG.Defs, { + // Define gradient + pattern: function pattern(width, height, block) { + return this.put(new SVG.Pattern()).update(block).attr({ + x: 0, + y: 0, + width: width, + height: height, + patternUnits: 'userSpaceOnUse' + }); + } + }); + SVG.Shape = SVG.invent({ + // Initialize node + create: function create(element) { + this.constructor.call(this, element); + }, + // Inherit from + inherit: SVG.Element + }); + SVG.Bare = SVG.invent({ + // Initialize + create: function create(element, inherit) { + // construct element + this.constructor.call(this, SVG.create(element)); // inherit custom methods + + if (inherit) { + for (var method in inherit.prototype) { + if (typeof inherit.prototype[method] === 'function') { + this[method] = inherit.prototype[method]; + } + } + } + }, + // Inherit from + inherit: SVG.Element, + // Add methods + extend: { + // Insert some plain text + words: function words(text) { + // remove contents + while (this.node.hasChildNodes()) { + this.node.removeChild(this.node.lastChild); + } // create text node + + + this.node.appendChild(document.createTextNode(text)); + return this; + } + } + }); + SVG.extend(SVG.Parent, { + // Create an element that is not described by SVG.js + element: function element(_element, inherit) { + return this.put(new SVG.Bare(_element, inherit)); + } + }); + SVG.Symbol = SVG.invent({ + // Initialize node + create: 'symbol', + // Inherit from + inherit: SVG.Container, + construct: { + // create symbol + symbol: function symbol() { + return this.put(new SVG.Symbol()); + } + } + }); + SVG.Use = SVG.invent({ + // Initialize node + create: 'use', + // Inherit from + inherit: SVG.Shape, + // Add class methods + extend: { + // Use element as a reference + element: function element(_element2, file) { + // Set lined element + return this.attr('href', (file || '') + '#' + _element2, SVG.xlink); + } + }, + // Add parent method + construct: { + // Create a use element + use: function use(element, file) { + return this.put(new SVG.Use()).element(element, file); + } + } + }); + SVG.Rect = SVG.invent({ + // Initialize node + create: 'rect', + // Inherit from + inherit: SVG.Shape, + // Add parent method + construct: { + // Create a rect element + rect: function rect(width, height) { + return this.put(new SVG.Rect()).size(width, height); + } + } + }); + SVG.Circle = SVG.invent({ + // Initialize node + create: 'circle', + // Inherit from + inherit: SVG.Shape, + // Add parent method + construct: { + // Create circle element, based on ellipse + circle: function circle(size) { + return this.put(new SVG.Circle()).rx(new SVG.Number(size).divide(2)).move(0, 0); + } + } + }); + SVG.extend(SVG.Circle, SVG.FX, { + // Radius x value + rx: function rx(_rx) { + return this.attr('r', _rx); + }, + // Alias radius x value + ry: function ry(_ry) { + return this.rx(_ry); + } + }); + SVG.Ellipse = SVG.invent({ + // Initialize node + create: 'ellipse', + // Inherit from + inherit: SVG.Shape, + // Add parent method + construct: { + // Create an ellipse + ellipse: function ellipse(width, height) { + return this.put(new SVG.Ellipse()).size(width, height).move(0, 0); + } + } + }); + SVG.extend(SVG.Ellipse, SVG.Rect, SVG.FX, { + // Radius x value + rx: function rx(_rx2) { + return this.attr('rx', _rx2); + }, + // Radius y value + ry: function ry(_ry2) { + return this.attr('ry', _ry2); + } + }); // Add common method + + SVG.extend(SVG.Circle, SVG.Ellipse, { + // Move over x-axis + x: function x(_x4) { + return _x4 == null ? this.cx() - this.rx() : this.cx(_x4 + this.rx()); + }, + // Move over y-axis + y: function y(_y4) { + return _y4 == null ? this.cy() - this.ry() : this.cy(_y4 + this.ry()); + }, + // Move by center over x-axis + cx: function cx(x) { + return x == null ? this.attr('cx') : this.attr('cx', x); + }, + // Move by center over y-axis + cy: function cy(y) { + return y == null ? this.attr('cy') : this.attr('cy', y); + }, + // Set width of element + width: function width(_width3) { + return _width3 == null ? this.rx() * 2 : this.rx(new SVG.Number(_width3).divide(2)); + }, + // Set height of element + height: function height(_height3) { + return _height3 == null ? this.ry() * 2 : this.ry(new SVG.Number(_height3).divide(2)); + }, + // Custom size function + size: function size(width, height) { + var p = proportionalSize(this, width, height); + return this.rx(new SVG.Number(p.width).divide(2)).ry(new SVG.Number(p.height).divide(2)); + } + }); + SVG.Line = SVG.invent({ + // Initialize node + create: 'line', + // Inherit from + inherit: SVG.Shape, + // Add class methods + extend: { + // Get array + array: function array() { + return new SVG.PointArray([[this.attr('x1'), this.attr('y1')], [this.attr('x2'), this.attr('y2')]]); + }, + // Overwrite native plot() method + plot: function plot(x1, y1, x2, y2) { + if (x1 == null) { + return this.array(); + } else if (typeof y1 !== 'undefined') { + x1 = { + x1: x1, + y1: y1, + x2: x2, + y2: y2 + }; + } else { + x1 = new SVG.PointArray(x1).toLine(); + } + + return this.attr(x1); + }, + // Move by left top corner + move: function move(x, y) { + return this.attr(this.array().move(x, y).toLine()); + }, + // Set element size to given width and height + size: function size(width, height) { + var p = proportionalSize(this, width, height); + return this.attr(this.array().size(p.width, p.height).toLine()); + } + }, + // Add parent method + construct: { + // Create a line element + line: function line(x1, y1, x2, y2) { + // make sure plot is called as a setter + // x1 is not necessarily a number, it can also be an array, a string and a SVG.PointArray + return SVG.Line.prototype.plot.apply(this.put(new SVG.Line()), x1 != null ? [x1, y1, x2, y2] : [0, 0, 0, 0]); + } + } + }); + SVG.Polyline = SVG.invent({ + // Initialize node + create: 'polyline', + // Inherit from + inherit: SVG.Shape, + // Add parent method + construct: { + // Create a wrapped polyline element + polyline: function polyline(p) { + // make sure plot is called as a setter + return this.put(new SVG.Polyline()).plot(p || new SVG.PointArray()); + } + } + }); + SVG.Polygon = SVG.invent({ + // Initialize node + create: 'polygon', + // Inherit from + inherit: SVG.Shape, + // Add parent method + construct: { + // Create a wrapped polygon element + polygon: function polygon(p) { + // make sure plot is called as a setter + return this.put(new SVG.Polygon()).plot(p || new SVG.PointArray()); + } + } + }); // Add polygon-specific functions + + SVG.extend(SVG.Polyline, SVG.Polygon, { + // Get array + array: function array() { + return this._array || (this._array = new SVG.PointArray(this.attr('points'))); + }, + // Plot new path + plot: function plot(p) { + return p == null ? this.array() : this.clear().attr('points', typeof p === 'string' ? p : this._array = new SVG.PointArray(p)); + }, + // Clear array cache + clear: function clear() { + delete this._array; + return this; + }, + // Move by left top corner + move: function move(x, y) { + return this.attr('points', this.array().move(x, y)); + }, + // Set element size to given width and height + size: function size(width, height) { + var p = proportionalSize(this, width, height); + return this.attr('points', this.array().size(p.width, p.height)); + } + }); // unify all point to point elements + + SVG.extend(SVG.Line, SVG.Polyline, SVG.Polygon, { + // Define morphable array + morphArray: SVG.PointArray, + // Move by left top corner over x-axis + x: function x(_x5) { + return _x5 == null ? this.bbox().x : this.move(_x5, this.bbox().y); + }, + // Move by left top corner over y-axis + y: function y(_y5) { + return _y5 == null ? this.bbox().y : this.move(this.bbox().x, _y5); + }, + // Set width of element + width: function width(_width4) { + var b = this.bbox(); + return _width4 == null ? b.width : this.size(_width4, b.height); + }, + // Set height of element + height: function height(_height4) { + var b = this.bbox(); + return _height4 == null ? b.height : this.size(b.width, _height4); + } + }); + SVG.Path = SVG.invent({ + // Initialize node + create: 'path', + // Inherit from + inherit: SVG.Shape, + // Add class methods + extend: { + // Define morphable array + morphArray: SVG.PathArray, + // Get array + array: function array() { + return this._array || (this._array = new SVG.PathArray(this.attr('d'))); + }, + // Plot new path + plot: function plot(d) { + return d == null ? this.array() : this.clear().attr('d', typeof d === 'string' ? d : this._array = new SVG.PathArray(d)); + }, + // Clear array cache + clear: function clear() { + delete this._array; + return this; + }, + // Move by left top corner + move: function move(x, y) { + return this.attr('d', this.array().move(x, y)); + }, + // Move by left top corner over x-axis + x: function x(_x6) { + return _x6 == null ? this.bbox().x : this.move(_x6, this.bbox().y); + }, + // Move by left top corner over y-axis + y: function y(_y6) { + return _y6 == null ? this.bbox().y : this.move(this.bbox().x, _y6); + }, + // Set element size to given width and height + size: function size(width, height) { + var p = proportionalSize(this, width, height); + return this.attr('d', this.array().size(p.width, p.height)); + }, + // Set width of element + width: function width(_width5) { + return _width5 == null ? this.bbox().width : this.size(_width5, this.bbox().height); + }, + // Set height of element + height: function height(_height5) { + return _height5 == null ? this.bbox().height : this.size(this.bbox().width, _height5); + } + }, + // Add parent method + construct: { + // Create a wrapped path element + path: function path(d) { + // make sure plot is called as a setter + return this.put(new SVG.Path()).plot(d || new SVG.PathArray()); + } + } + }); + SVG.Image = SVG.invent({ + // Initialize node + create: 'image', + // Inherit from + inherit: SVG.Shape, + // Add class methods + extend: { + // (re)load image + load: function load(url) { + if (!url) return this; + var self = this, + img = new window.Image(); // preload image + + SVG.on(img, 'load', function () { + SVG.off(img); + var p = self.parent(SVG.Pattern); + if (p === null) return; // ensure image size + + if (self.width() == 0 && self.height() == 0) { + self.size(img.width, img.height); + } // ensure pattern size if not set + + + if (p && p.width() == 0 && p.height() == 0) { + p.size(self.width(), self.height()); + } // callback + + + if (typeof self._loaded === 'function') { + self._loaded.call(self, { + width: img.width, + height: img.height, + ratio: img.width / img.height, + url: url + }); + } + }); + SVG.on(img, 'error', function (e) { + SVG.off(img); + + if (typeof self._error === 'function') { + self._error.call(self, e); + } + }); + return this.attr('href', img.src = this.src = url, SVG.xlink); + }, + // Add loaded callback + loaded: function loaded(_loaded) { + this._loaded = _loaded; + return this; + }, + error: function error(_error) { + this._error = _error; + return this; + } + }, + // Add parent method + construct: { + // create image element, load image and set its size + image: function image(source, width, height) { + return this.put(new SVG.Image()).load(source).size(width || 0, height || width || 0); + } + } + }); + SVG.Text = SVG.invent({ + // Initialize node + create: function create() { + this.constructor.call(this, SVG.create('text')); + this.dom.leading = new SVG.Number(1.3); // store leading value for rebuilding + + this._rebuild = true; // enable automatic updating of dy values + + this._build = false; // disable build mode for adding multiple lines + // set default font + + this.attr('font-family', SVG.defaults.attrs['font-family']); + }, + // Inherit from + inherit: SVG.Shape, + // Add class methods + extend: { + // Move over x-axis + x: function x(_x7) { + // act as getter + if (_x7 == null) { + return this.attr('x'); + } + + return this.attr('x', _x7); + }, + // Move over y-axis + y: function y(_y7) { + var oy = this.attr('y'), + o = typeof oy === 'number' ? oy - this.bbox().y : 0; // act as getter + + if (_y7 == null) { + return typeof oy === 'number' ? oy - o : oy; + } + + return this.attr('y', typeof _y7.valueOf() === 'number' ? _y7 + o : _y7); + }, + // Move center over x-axis + cx: function cx(x) { + return x == null ? this.bbox().cx : this.x(x - this.bbox().width / 2); + }, + // Move center over y-axis + cy: function cy(y) { + return y == null ? this.bbox().cy : this.y(y - this.bbox().height / 2); + }, + // Set the text content + text: function text(_text) { + // act as getter + if (typeof _text === 'undefined') { + var _text = ''; + var children = this.node.childNodes; + + for (var i = 0, len = children.length; i < len; ++i) { + // add newline if its not the first child and newLined is set to true + if (i != 0 && children[i].nodeType != 3 && SVG.adopt(children[i]).dom.newLined == true) { + _text += '\n'; + } // add content of this node + + + _text += children[i].textContent; + } + + return _text; + } // remove existing content + + + this.clear().build(true); + + if (typeof _text === 'function') { + // call block + _text.call(this, this); + } else { + // store text and make sure text is not blank + _text = _text.split('\n'); // build new lines + + for (var i = 0, il = _text.length; i < il; i++) { + this.tspan(_text[i]).newLine(); + } + } // disable build mode and rebuild lines + + + return this.build(false).rebuild(); + }, + // Set font size + size: function size(_size) { + return this.attr('font-size', _size).rebuild(); + }, + // Set / get leading + leading: function leading(value) { + // act as getter + if (value == null) { + return this.dom.leading; + } // act as setter + + + this.dom.leading = new SVG.Number(value); + return this.rebuild(); + }, + // Get all the first level lines + lines: function lines() { + var node = (this.textPath && this.textPath() || this).node; // filter tspans and map them to SVG.js instances + + var lines = SVG.utils.map(SVG.utils.filterSVGElements(node.childNodes), function (el) { + return SVG.adopt(el); + }); // return an instance of SVG.set + + return new SVG.Set(lines); + }, + // Rebuild appearance type + rebuild: function rebuild(_rebuild) { + // store new rebuild flag if given + if (typeof _rebuild === 'boolean') { + this._rebuild = _rebuild; + } // define position of all lines + + + if (this._rebuild) { + var self = this, + blankLineOffset = 0, + dy = this.dom.leading * new SVG.Number(this.attr('font-size')); + this.lines().each(function () { + if (this.dom.newLined) { + if (!self.textPath()) { + this.attr('x', self.attr('x')); + } + + if (this.text() == '\n') { + blankLineOffset += dy; + } else { + this.attr('dy', dy + blankLineOffset); + blankLineOffset = 0; + } + } + }); + this.fire('rebuild'); + } + + return this; + }, + // Enable / disable build mode + build: function build(_build) { + this._build = !!_build; + return this; + }, + // overwrite method from parent to set data properly + setData: function setData(o) { + this.dom = o; + this.dom.leading = new SVG.Number(o.leading || 1.3); + return this; + } + }, + // Add parent method + construct: { + // Create text element + text: function text(_text2) { + return this.put(new SVG.Text()).text(_text2); + }, + // Create plain text element + plain: function plain(text) { + return this.put(new SVG.Text()).plain(text); + } + } + }); + SVG.Tspan = SVG.invent({ + // Initialize node + create: 'tspan', + // Inherit from + inherit: SVG.Shape, + // Add class methods + extend: { + // Set text content + text: function text(_text3) { + if (_text3 == null) return this.node.textContent + (this.dom.newLined ? '\n' : ''); + typeof _text3 === 'function' ? _text3.call(this, this) : this.plain(_text3); + return this; + }, + // Shortcut dx + dx: function dx(_dx) { + return this.attr('dx', _dx); + }, + // Shortcut dy + dy: function dy(_dy) { + return this.attr('dy', _dy); + }, + // Create new line + newLine: function newLine() { + // fetch text parent + var t = this.parent(SVG.Text); // mark new line + + this.dom.newLined = true; // apply new hy¡n + + return this.dy(t.dom.leading * t.attr('font-size')).attr('x', t.x()); + } + } + }); + SVG.extend(SVG.Text, SVG.Tspan, { + // Create plain text node + plain: function plain(text) { + // clear if build mode is disabled + if (this._build === false) { + this.clear(); + } // create text node + + + this.node.appendChild(document.createTextNode(text)); + return this; + }, + // Create a tspan + tspan: function tspan(text) { + var node = (this.textPath && this.textPath() || this).node, + tspan = new SVG.Tspan(); // clear if build mode is disabled + + if (this._build === false) { + this.clear(); + } // add new tspan + + + node.appendChild(tspan.node); + return tspan.text(text); + }, + // Clear all lines + clear: function clear() { + var node = (this.textPath && this.textPath() || this).node; // remove existing child nodes + + while (node.hasChildNodes()) { + node.removeChild(node.lastChild); + } + + return this; + }, + // Get length of text element + length: function length() { + return this.node.getComputedTextLength(); + } + }); + SVG.TextPath = SVG.invent({ + // Initialize node + create: 'textPath', + // Inherit from + inherit: SVG.Parent, + // Define parent class + parent: SVG.Text, + // Add parent method + construct: { + morphArray: SVG.PathArray, + // Create path for text to run on + path: function path(d) { + // create textPath element + var path = new SVG.TextPath(), + track = this.doc().defs().path(d); // move lines to textpath + + while (this.node.hasChildNodes()) { + path.node.appendChild(this.node.firstChild); + } // add textPath element as child node + + + this.node.appendChild(path.node); // link textPath to path and add content + + path.attr('href', '#' + track, SVG.xlink); + return this; + }, + // return the array of the path track element + array: function array() { + var track = this.track(); + return track ? track.array() : null; + }, + // Plot path if any + plot: function plot(d) { + var track = this.track(), + pathArray = null; + + if (track) { + pathArray = track.plot(d); + } + + return d == null ? pathArray : this; + }, + // Get the path track element + track: function track() { + var path = this.textPath(); + + if (path) { + return path.reference('href'); + } + }, + // Get the textPath child + textPath: function textPath() { + if (this.node.firstChild && this.node.firstChild.nodeName == 'textPath') { + return SVG.adopt(this.node.firstChild); + } + } + } + }); + SVG.Nested = SVG.invent({ + // Initialize node + create: function create() { + this.constructor.call(this, SVG.create('svg')); + this.style('overflow', 'visible'); + }, + // Inherit from + inherit: SVG.Container, + // Add parent method + construct: { + // Create nested svg document + nested: function nested() { + return this.put(new SVG.Nested()); + } + } + }); + SVG.A = SVG.invent({ + // Initialize node + create: 'a', + // Inherit from + inherit: SVG.Container, + // Add class methods + extend: { + // Link url + to: function to(url) { + return this.attr('href', url, SVG.xlink); + }, + // Link show attribute + show: function show(target) { + return this.attr('show', target, SVG.xlink); + }, + // Link target attribute + target: function target(_target2) { + return this.attr('target', _target2); + } + }, + // Add parent method + construct: { + // Create a hyperlink element + link: function link(url) { + return this.put(new SVG.A()).to(url); + } + } + }); + SVG.extend(SVG.Element, { + // Create a hyperlink element + linkTo: function linkTo(url) { + var link = new SVG.A(); + + if (typeof url === 'function') { + url.call(link, link); + } else { + link.to(url); + } + + return this.parent().put(link).put(this); + } + }); + SVG.Marker = SVG.invent({ + // Initialize node + create: 'marker', + // Inherit from + inherit: SVG.Container, + // Add class methods + extend: { + // Set width of element + width: function width(_width6) { + return this.attr('markerWidth', _width6); + }, + // Set height of element + height: function height(_height6) { + return this.attr('markerHeight', _height6); + }, + // Set marker refX and refY + ref: function ref(x, y) { + return this.attr('refX', x).attr('refY', y); + }, + // Update marker + update: function update(block) { + // remove all content + this.clear(); // invoke passed block + + if (typeof block === 'function') { + block.call(this, this); + } + + return this; + }, + // Return the fill id + toString: function toString() { + return 'url(#' + this.id() + ')'; + } + }, + // Add parent method + construct: { + marker: function marker(width, height, block) { + // Create marker element in defs + return this.defs().marker(width, height, block); + } + } + }); + SVG.extend(SVG.Defs, { + // Create marker + marker: function marker(width, height, block) { + // Set default viewbox to match the width and height, set ref to cx and cy and set orient to auto + return this.put(new SVG.Marker()).size(width, height).ref(width / 2, height / 2).viewbox(0, 0, width, height).attr('orient', 'auto').update(block); + } + }); + SVG.extend(SVG.Line, SVG.Polyline, SVG.Polygon, SVG.Path, { + // Create and attach markers + marker: function marker(_marker, width, height, block) { + var attr = ['marker']; // Build attribute name + + if (_marker != 'all') attr.push(_marker); + attr = attr.join('-'); // Set marker attribute + + _marker = arguments[1] instanceof SVG.Marker ? arguments[1] : this.doc().marker(width, height, block); + return this.attr(attr, _marker); + } + }); // Define list of available attributes for stroke and fill + + var sugar = { + stroke: ['color', 'width', 'opacity', 'linecap', 'linejoin', 'miterlimit', 'dasharray', 'dashoffset'], + fill: ['color', 'opacity', 'rule'], + prefix: function prefix(t, a) { + return a == 'color' ? t : t + '-' + a; + } // Add sugar for fill and stroke + + }; + ['fill', 'stroke'].forEach(function (m) { + var i, + extension = {}; + + extension[m] = function (o) { + if (typeof o === 'undefined') { + return this; + } + + if (typeof o === 'string' || SVG.Color.isRgb(o) || o && typeof o.fill === 'function') { + this.attr(m, o); + } else // set all attributes from sugar.fill and sugar.stroke list + { + for (i = sugar[m].length - 1; i >= 0; i--) { + if (o[sugar[m][i]] != null) { + this.attr(sugar.prefix(m, sugar[m][i]), o[sugar[m][i]]); + } + } + } + + return this; + }; + + SVG.extend(SVG.Element, SVG.FX, extension); + }); + SVG.extend(SVG.Element, SVG.FX, { + // Map rotation to transform + rotate: function rotate(d, cx, cy) { + return this.transform({ + rotation: d, + cx: cx, + cy: cy + }); + }, + // Map skew to transform + skew: function skew(x, y, cx, cy) { + return arguments.length == 1 || arguments.length == 3 ? this.transform({ + skew: x, + cx: y, + cy: cx + }) : this.transform({ + skewX: x, + skewY: y, + cx: cx, + cy: cy + }); + }, + // Map scale to transform + scale: function scale(x, y, cx, cy) { + return arguments.length == 1 || arguments.length == 3 ? this.transform({ + scale: x, + cx: y, + cy: cx + }) : this.transform({ + scaleX: x, + scaleY: y, + cx: cx, + cy: cy + }); + }, + // Map translate to transform + translate: function translate(x, y) { + return this.transform({ + x: x, + y: y + }); + }, + // Map flip to transform + flip: function flip(a, o) { + o = typeof a === 'number' ? a : o; + return this.transform({ + flip: a || 'both', + offset: o + }); + }, + // Map matrix to transform + matrix: function matrix(m) { + return this.attr('transform', new SVG.Matrix(arguments.length == 6 ? [].slice.call(arguments) : m)); + }, + // Opacity + opacity: function opacity(value) { + return this.attr('opacity', value); + }, + // Relative move over x axis + dx: function dx(x) { + return this.x(new SVG.Number(x).plus(this instanceof SVG.FX ? 0 : this.x()), true); + }, + // Relative move over y axis + dy: function dy(y) { + return this.y(new SVG.Number(y).plus(this instanceof SVG.FX ? 0 : this.y()), true); + }, + // Relative move over x and y axes + dmove: function dmove(x, y) { + return this.dx(x).dy(y); + } + }); + SVG.extend(SVG.Rect, SVG.Ellipse, SVG.Circle, SVG.Gradient, SVG.FX, { + // Add x and y radius + radius: function radius(x, y) { + var type = (this._target || this).type; + return type == 'radial' || type == 'circle' ? this.attr('r', new SVG.Number(x)) : this.rx(x).ry(y == null ? x : y); + } + }); + SVG.extend(SVG.Path, { + // Get path length + length: function length() { + return this.node.getTotalLength(); + }, + // Get point at length + pointAt: function pointAt(length) { + return this.node.getPointAtLength(length); + } + }); + SVG.extend(SVG.Parent, SVG.Text, SVG.Tspan, SVG.FX, { + // Set font + font: function font(a, v) { + if (_typeof(a) === 'object') { + for (v in a) { + this.font(v, a[v]); + } + } + + return a == 'leading' ? this.leading(v) : a == 'anchor' ? this.attr('text-anchor', v) : a == 'size' || a == 'family' || a == 'weight' || a == 'stretch' || a == 'variant' || a == 'style' ? this.attr('font-' + a, v) : this.attr(a, v); + } + }); + SVG.Set = SVG.invent({ + // Initialize + create: function create(members) { + // Set initial state + Array.isArray(members) ? this.members = members : this.clear(); + }, + // Add class methods + extend: { + // Add element to set + add: function add() { + var i, + il, + elements = [].slice.call(arguments); + + for (i = 0, il = elements.length; i < il; i++) { + this.members.push(elements[i]); + } + + return this; + }, + // Remove element from set + remove: function remove(element) { + var i = this.index(element); // remove given child + + if (i > -1) { + this.members.splice(i, 1); + } + + return this; + }, + // Iterate over all members + each: function each(block) { + for (var i = 0, il = this.members.length; i < il; i++) { + block.apply(this.members[i], [i, this.members]); + } + + return this; + }, + // Restore to defaults + clear: function clear() { + // initialize store + this.members = []; + return this; + }, + // Get the length of a set + length: function length() { + return this.members.length; + }, + // Checks if a given element is present in set + has: function has(element) { + return this.index(element) >= 0; + }, + // retuns index of given element in set + index: function index(element) { + return this.members.indexOf(element); + }, + // Get member at given index + get: function get(i) { + return this.members[i]; + }, + // Get first member + first: function first() { + return this.get(0); + }, + // Get last member + last: function last() { + return this.get(this.members.length - 1); + }, + // Default value + valueOf: function valueOf() { + return this.members; + }, + // Get the bounding box of all members included or empty box if set has no items + bbox: function bbox() { + // return an empty box of there are no members + if (this.members.length == 0) { + return new SVG.RBox(); + } // get the first rbox and update the target bbox + + + var rbox = this.members[0].rbox(this.members[0].doc()); + this.each(function () { + // user rbox for correct position and visual representation + rbox = rbox.merge(this.rbox(this.doc())); + }); + return rbox; + } + }, + // Add parent method + construct: { + // Create a new set + set: function set(members) { + return new SVG.Set(members); + } + } + }); + SVG.FX.Set = SVG.invent({ + // Initialize node + create: function create(set) { + // store reference to set + this.set = set; + } + }); // Alias methods + + SVG.Set.inherit = function () { + var m, + methods = []; // gather shape methods + + for (var m in SVG.Shape.prototype) { + if (typeof SVG.Shape.prototype[m] === 'function' && typeof SVG.Set.prototype[m] !== 'function') { + methods.push(m); + } + } // apply shape aliasses + + + methods.forEach(function (method) { + SVG.Set.prototype[method] = function () { + for (var i = 0, il = this.members.length; i < il; i++) { + if (this.members[i] && typeof this.members[i][method] === 'function') { + this.members[i][method].apply(this.members[i], arguments); + } + } + + return method == 'animate' ? this.fx || (this.fx = new SVG.FX.Set(this)) : this; + }; + }); // clear methods for the next round + + methods = []; // gather fx methods + + for (var m in SVG.FX.prototype) { + if (typeof SVG.FX.prototype[m] === 'function' && typeof SVG.FX.Set.prototype[m] !== 'function') { + methods.push(m); + } + } // apply fx aliasses + + + methods.forEach(function (method) { + SVG.FX.Set.prototype[method] = function () { + for (var i = 0, il = this.set.members.length; i < il; i++) { + this.set.members[i].fx[method].apply(this.set.members[i].fx, arguments); + } + + return this; + }; + }); + }; + + SVG.extend(SVG.Element, { + // Store data values on svg nodes + data: function data(a, v, r) { + if (_typeof(a) === 'object') { + for (v in a) { + this.data(v, a[v]); + } + } else if (arguments.length < 2) { + try { + return JSON.parse(this.attr('data-' + a)); + } catch (e) { + return this.attr('data-' + a); + } + } else { + this.attr('data-' + a, v === null ? null : r === true || typeof v === 'string' || typeof v === 'number' ? v : JSON.stringify(v)); + } + + return this; + } + }); + SVG.extend(SVG.Element, { + // Remember arbitrary data + remember: function remember(k, v) { + // remember every item in an object individually + if (_typeof(arguments[0]) === 'object') { + for (var v in k) { + this.remember(v, k[v]); + } + } // retrieve memory + else if (arguments.length == 1) { + return this.memory()[k]; + } // store memory + else { + this.memory()[k] = v; + } + + return this; + }, + // Erase a given memory + forget: function forget() { + if (arguments.length == 0) { + this._memory = {}; + } else { + for (var i = arguments.length - 1; i >= 0; i--) { + delete this.memory()[arguments[i]]; + } + } + + return this; + }, + // Initialize or return local memory object + memory: function memory() { + return this._memory || (this._memory = {}); + } + }); // Method for getting an element by id + + SVG.get = function (id) { + var node = document.getElementById(idFromReference(id) || id); + return SVG.adopt(node); + }; // Select elements by query string + + + SVG.select = function (query, parent) { + return new SVG.Set(SVG.utils.map((parent || document).querySelectorAll(query), function (node) { + return SVG.adopt(node); + })); + }; + + SVG.extend(SVG.Parent, { + // Scoped select method + select: function select(query) { + return SVG.select(query, this.node); + } + }); + + function pathRegReplace(a, b, c, d) { + return c + d.replace(SVG.regex.dots, ' .'); + } // creates deep clone of array + + + function array_clone(arr) { + var clone = arr.slice(0); + + for (var i = clone.length; i--;) { + if (Array.isArray(clone[i])) { + clone[i] = array_clone(clone[i]); + } + } + + return clone; + } // tests if a given element is instance of an object + + + function _is(el, obj) { + return el instanceof obj; + } // tests if a given selector matches an element + + + function _matches(el, selector) { + return (el.matches || el.matchesSelector || el.msMatchesSelector || el.mozMatchesSelector || el.webkitMatchesSelector || el.oMatchesSelector).call(el, selector); + } // Convert dash-separated-string to camelCase + + + function camelCase(s) { + return s.toLowerCase().replace(/-(.)/g, function (m, g) { + return g.toUpperCase(); + }); + } // Capitalize first letter of a string + + + function capitalize(s) { + return s.charAt(0).toUpperCase() + s.slice(1); + } // Ensure to six-based hex + + + function fullHex(hex) { + return hex.length == 4 ? ['#', hex.substring(1, 2), hex.substring(1, 2), hex.substring(2, 3), hex.substring(2, 3), hex.substring(3, 4), hex.substring(3, 4)].join('') : hex; + } // Component to hex value + + + function compToHex(comp) { + var hex = comp.toString(16); + return hex.length == 1 ? '0' + hex : hex; + } // Calculate proportional width and height values when necessary + + + function proportionalSize(element, width, height) { + if (width == null || height == null) { + var box = element.bbox(); + + if (width == null) { + width = box.width / box.height * height; + } else if (height == null) { + height = box.height / box.width * width; + } + } + + return { + width: width, + height: height + }; + } // Delta transform point + + + function deltaTransformPoint(matrix, x, y) { + return { + x: x * matrix.a + y * matrix.c + 0, + y: x * matrix.b + y * matrix.d + 0 + }; + } // Map matrix array to object + + + function arrayToMatrix(a) { + return { + a: a[0], + b: a[1], + c: a[2], + d: a[3], + e: a[4], + f: a[5] + }; + } // Parse matrix if required + + + function parseMatrix(matrix) { + if (!(matrix instanceof SVG.Matrix)) { + matrix = new SVG.Matrix(matrix); + } + + return matrix; + } // Add centre point to transform object + + + function ensureCentre(o, target) { + o.cx = o.cx == null ? target.bbox().cx : o.cx; + o.cy = o.cy == null ? target.bbox().cy : o.cy; + } // PathArray Helpers + + + function arrayToString(a) { + for (var i = 0, il = a.length, s = ''; i < il; i++) { + s += a[i][0]; + + if (a[i][1] != null) { + s += a[i][1]; + + if (a[i][2] != null) { + s += ' '; + s += a[i][2]; + + if (a[i][3] != null) { + s += ' '; + s += a[i][3]; + s += ' '; + s += a[i][4]; + + if (a[i][5] != null) { + s += ' '; + s += a[i][5]; + s += ' '; + s += a[i][6]; + + if (a[i][7] != null) { + s += ' '; + s += a[i][7]; + } + } + } + } + } + } + + return s + ' '; + } // Deep new id assignment + + + function assignNewId(node) { + // do the same for SVG child nodes as well + for (var i = node.childNodes.length - 1; i >= 0; i--) { + if (node.childNodes[i] instanceof window.SVGElement) { + assignNewId(node.childNodes[i]); + } + } + + return SVG.adopt(node).id(SVG.eid(node.nodeName)); + } // Add more bounding box properties + + + function fullBox(b) { + if (b.x == null) { + b.x = 0; + b.y = 0; + b.width = 0; + b.height = 0; + } + + b.w = b.width; + b.h = b.height; + b.x2 = b.x + b.width; + b.y2 = b.y + b.height; + b.cx = b.x + b.width / 2; + b.cy = b.y + b.height / 2; + return b; + } // Get id from reference string + + + function idFromReference(url) { + var m = (url || '').toString().match(SVG.regex.reference); + if (m) return m[1]; + } // If values like 1e-88 are passed, this is not a valid 32 bit float, + // but in those cases, we are so close to 0 that 0 works well! + + + function float32String(v) { + return Math.abs(v) > 1e-37 ? v : 0; + } // Create matrix array for looping + + + var abcdef = 'abcdef'.split(''); // Add CustomEvent to IE9 and IE10 + + if (typeof window.CustomEvent !== 'function') { + // Code from: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent + var CustomEventPoly = function CustomEventPoly(event, options) { + options = options || { + bubbles: false, + cancelable: false, + detail: undefined + }; + var e = document.createEvent('CustomEvent'); + e.initCustomEvent(event, options.bubbles, options.cancelable, options.detail); + return e; + }; + + CustomEventPoly.prototype = window.Event.prototype; + SVG.CustomEvent = CustomEventPoly; + } else { + SVG.CustomEvent = window.CustomEvent; + } // requestAnimationFrame / cancelAnimationFrame Polyfill with fallback based on Paul Irish + + + (function (w) { + var lastTime = 0; + var vendors = ['moz', 'webkit']; + + for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { + w.requestAnimationFrame = w[vendors[x] + 'RequestAnimationFrame']; + w.cancelAnimationFrame = w[vendors[x] + 'CancelAnimationFrame'] || w[vendors[x] + 'CancelRequestAnimationFrame']; + } + + w.requestAnimationFrame = w.requestAnimationFrame || function (callback) { + var currTime = new Date().getTime(); + var timeToCall = Math.max(0, 16 - (currTime - lastTime)); + var id = w.setTimeout(function () { + callback(currTime + timeToCall); + }, timeToCall); + lastTime = currTime + timeToCall; + return id; + }; + + w.cancelAnimationFrame = w.cancelAnimationFrame || w.clearTimeout; + })(window); + + return SVG; +}); + +/*! svg.filter.js - v2.0.2 - 2016-02-24 +* https://github.com/wout/svg.filter.js +* Copyright (c) 2016 Wout Fierens; Licensed MIT */ +(function() { + + // Main filter class + SVG.Filter = SVG.invent({ + create: 'filter', + inherit: SVG.Parent, + extend: { + // Static strings + source: 'SourceGraphic', + sourceAlpha: 'SourceAlpha', + background: 'BackgroundImage', + backgroundAlpha: 'BackgroundAlpha', + fill: 'FillPaint', + stroke: 'StrokePaint', + + autoSetIn: true, + // Custom put method for leaner code + put: function(element, i) { + this.add(element, i); + + if(!element.attr('in') && this.autoSetIn){ + element.attr('in',this.source); + } + if(!element.attr('result')){ + element.attr('result',element); + } + + return element + }, + // Blend effect + blend: function(in1, in2, mode) { + return this.put(new SVG.BlendEffect(in1, in2, mode)) + }, + // ColorMatrix effect + colorMatrix: function(type, values) { + return this.put(new SVG.ColorMatrixEffect(type, values)) + }, + // ConvolveMatrix effect + convolveMatrix: function(matrix) { + return this.put(new SVG.ConvolveMatrixEffect(matrix)) + }, + // ComponentTransfer effect + componentTransfer: function(components) { + return this.put(new SVG.ComponentTransferEffect(components)) + }, + // Composite effect + composite: function(in1, in2, operator) { + return this.put(new SVG.CompositeEffect(in1, in2, operator)) + }, + // Flood effect + flood: function(color, opacity) { + return this.put(new SVG.FloodEffect(color, opacity)) + }, + // Offset effect + offset: function(x, y) { + return this.put(new SVG.OffsetEffect(x,y)) + }, + // Image effect + image: function(src) { + return this.put(new SVG.ImageEffect(src)) + }, + // Merge effect + merge: function() { + //pass the array of arguments to the constructor because we dont know if the user gave us an array as the first arguemnt or wether they listed the effects in the arguments + var args = [undefined]; + for(var i in arguments) args.push(arguments[i]); + return this.put(new (SVG.MergeEffect.bind.apply(SVG.MergeEffect,args))) + }, + // Gaussian Blur effect + gaussianBlur: function(x,y) { + return this.put(new SVG.GaussianBlurEffect(x,y)) + }, + // Morphology effect + morphology: function(operator,radius){ + return this.put(new SVG.MorphologyEffect(operator,radius)) + }, + // DiffuseLighting effect + diffuseLighting: function(surfaceScale,diffuseConstant,kernelUnitLength){ + return this.put(new SVG.DiffuseLightingEffect(surfaceScale,diffuseConstant,kernelUnitLength)) + }, + // DisplacementMap effect + displacementMap: function(in1,in2,scale,xChannelSelector,yChannelSelector){ + return this.put(new SVG.DisplacementMapEffect(in1,in2,scale,xChannelSelector,yChannelSelector)) + }, + // SpecularLighting effect + specularLighting: function(surfaceScale,diffuseConstant,specularExponent,kernelUnitLength){ + return this.put(new SVG.SpecularLightingEffect(surfaceScale,diffuseConstant,specularExponent,kernelUnitLength)) + }, + // Tile effect + tile: function(){ + return this.put(new SVG.TileEffect()); + }, + // Turbulence effect + turbulence: function(baseFrequency,numOctaves,seed,stitchTiles,type){ + return this.put(new SVG.TurbulenceEffect(baseFrequency,numOctaves,seed,stitchTiles,type)) + }, + // Default string value + toString: function() { + return 'url(#' + this.attr('id') + ')' + } + } + }); + + //add .filter function + SVG.extend(SVG.Defs, { + // Define filter + filter: function(block) { + var filter = this.put(new SVG.Filter); + + /* invoke passed block */ + if (typeof block === 'function') + block.call(filter, filter); + + return filter + } + }); + SVG.extend(SVG.Container, { + // Define filter on defs + filter: function(block) { + return this.defs().filter(block) + } + }); + SVG.extend(SVG.Element, SVG.G, SVG.Nested, { + // Create filter element in defs and store reference + filter: function(block) { + this.filterer = block instanceof SVG.Element ? + block : this.doc().filter(block); + + if(this.doc() && this.filterer.doc() !== this.doc()){ + this.doc().defs().add(this.filterer); + } + + this.attr('filter', this.filterer); + + return this.filterer + }, + // Remove filter + unfilter: function(remove) { + /* also remove the filter node */ + if (this.filterer && remove === true) + this.filterer.remove(); + + /* delete reference to filterer */ + delete this.filterer; + + /* remove filter attribute */ + return this.attr('filter', null) + } + }); + + // Create SVG.Effect class + SVG.Effect = SVG.invent({ + create: function(){ + this.constructor.call(this); + }, + inherit: SVG.Element, + extend: { + // Set in attribute + in: function(effect) { + return effect == null? this.parent() && this.parent().select('[result="'+this.attr('in')+'"]').get(0) || this.attr('in') : this.attr('in', effect) + }, + // Named result + result: function(result) { + return result == null? this.attr('result') : this.attr('result',result) + }, + // Stringification + toString: function() { + return this.result() + } + } + }); + + // create class for parent effects like merge + // Inherit from SVG.Parent + SVG.ParentEffect = SVG.invent({ + create: function(){ + this.constructor.call(this); + }, + inherit: SVG.Parent, + extend: { + // Set in attribute + in: function(effect) { + return effect == null? this.parent() && this.parent().select('[result="'+this.attr('in')+'"]').get(0) || this.attr('in') : this.attr('in', effect) + }, + // Named result + result: function(result) { + return result == null? this.attr('result') : this.attr('result',result) + }, + // Stringification + toString: function() { + return this.result() + } + } + }); + + //chaining + var chainingEffects = { + // Blend effect + blend: function(in2, mode) { + return this.parent() && this.parent().blend(this, in2, mode) //pass this as the first input + }, + // ColorMatrix effect + colorMatrix: function(type, values) { + return this.parent() && this.parent().colorMatrix(type, values).in(this) + }, + // ConvolveMatrix effect + convolveMatrix: function(matrix) { + return this.parent() && this.parent().convolveMatrix(matrix).in(this) + }, + // ComponentTransfer effect + componentTransfer: function(components) { + return this.parent() && this.parent().componentTransfer(components).in(this) + }, + // Composite effect + composite: function(in2, operator) { + return this.parent() && this.parent().composite(this, in2, operator) //pass this as the first input + }, + // Flood effect + flood: function(color, opacity) { + return this.parent() && this.parent().flood(color, opacity) //this effect dont have inputs + }, + // Offset effect + offset: function(x, y) { + return this.parent() && this.parent().offset(x,y).in(this) + }, + // Image effect + image: function(src) { + return this.parent() && this.parent().image(src) //this effect dont have inputs + }, + // Merge effect + merge: function() { + return this.parent() && this.parent().merge.apply(this.parent(),[this].concat(arguments)) //pass this as the first argument + }, + // Gaussian Blur effect + gaussianBlur: function(x,y) { + return this.parent() && this.parent().gaussianBlur(x,y).in(this) + }, + // Morphology effect + morphology: function(operator,radius){ + return this.parent() && this.parent().morphology(operator,radius).in(this) + }, + // DiffuseLighting effect + diffuseLighting: function(surfaceScale,diffuseConstant,kernelUnitLength){ + return this.parent() && this.parent().diffuseLighting(surfaceScale,diffuseConstant,kernelUnitLength).in(this) + }, + // DisplacementMap effect + displacementMap: function(in2,scale,xChannelSelector,yChannelSelector){ + return this.parent() && this.parent().displacementMap(this,in2,scale,xChannelSelector,yChannelSelector) //pass this as the first input + }, + // SpecularLighting effect + specularLighting: function(surfaceScale,diffuseConstant,specularExponent,kernelUnitLength){ + return this.parent() && this.parent().specularLighting(surfaceScale,diffuseConstant,specularExponent,kernelUnitLength).in(this) + }, + // Tile effect + tile: function(){ + return this.parent() && this.parent().tile().in(this) + }, + // Turbulence effect + turbulence: function(baseFrequency,numOctaves,seed,stitchTiles,type){ + return this.parent() && this.parent().turbulence(baseFrequency,numOctaves,seed,stitchTiles,type).in(this) + } + }; + SVG.extend(SVG.Effect,chainingEffects); + SVG.extend(SVG.ParentEffect,chainingEffects); + + //crea class for child effects, like MergeNode, FuncR and lights + SVG.ChildEffect = SVG.invent({ + create: function(){ + this.constructor.call(this); + }, + inherit: SVG.Element, + extend: { + in: function(effect){ + this.attr('in',effect); + } + //dont include any "result" functions because these types of nodes dont have them + } + }); + + // Create all different effects + var effects = { + blend: function(in1,in2,mode){ + this.attr({ + in: in1, + in2: in2, + mode: mode || 'normal' + }); + }, + colorMatrix: function(type,values){ + if (type == 'matrix') + values = normaliseMatrix(values); + + this.attr({ + type: type + , values: typeof values == 'undefined' ? null : values + }); + }, + convolveMatrix: function(matrix){ + matrix = normaliseMatrix(matrix); + + this.attr({ + order: Math.sqrt(matrix.split(' ').length) + , kernelMatrix: matrix + }); + }, + composite: function(in1, in2, operator){ + this.attr({ + in: in1, + in2: in2, + operator: operator + }); + }, + flood: function(color,opacity){ + this.attr('flood-color',color); + if(opacity != null) this.attr('flood-opacity',opacity); + }, + offset: function(x,y){ + this.attr({ + dx: x, + dy: y + }); + }, + image: function(src){ + this.attr('href', src, SVG.xlink); + }, + displacementMap: function(in1,in2,scale,xChannelSelector,yChannelSelector){ + this.attr({ + in: in1, + in2: in2, + scale: scale, + xChannelSelector: xChannelSelector, + yChannelSelector: yChannelSelector + }); + }, + gaussianBlur: function(x,y){ + if(x != null || y != null) + this.attr('stdDeviation', listString(Array.prototype.slice.call(arguments))); + else + this.attr('stdDeviation', '0 0'); + }, + morphology: function(operator,radius){ + this.attr({ + operator: operator, + radius: radius + }); + }, + tile: function(){ + + }, + turbulence: function(baseFrequency,numOctaves,seed,stitchTiles,type){ + this.attr({ + numOctaves: numOctaves, + seed: seed, + stitchTiles: stitchTiles, + baseFrequency: baseFrequency, + type: type + }); + } + }; + + // Create all parent effects + var parentEffects = { + merge: function(){ + var children; + + //test to see if we have a set + if(arguments[0] instanceof SVG.Set){ + var that = this; + arguments[0].each(function(i){ + if(this instanceof SVG.MergeNode) + that.put(this); + else if(this instanceof SVG.Effect || this instanceof SVG.ParentEffect) + that.put(new SVG.MergeNode(this)); + }); + } + else{ + //if the first argument is an array use it + if(Array.isArray(arguments[0])) + children = arguments[0]; + else + children = arguments; + + for(var i = 0; i < children.length; i++){ + if(children[i] instanceof SVG.MergeNode){ + this.put(children[i]); + } + else this.put(new SVG.MergeNode(children[i])); + } + } + }, + componentTransfer: function(compontents){ + /* create rgb set */ + this.rgb = new SVG.Set + + /* create components */ + ;(['r', 'g', 'b', 'a']).forEach(function(c) { + /* create component */ + this[c] = new SVG['Func' + c.toUpperCase()]('identity'); + + /* store component in set */ + this.rgb.add(this[c]); + + /* add component node */ + this.node.appendChild(this[c].node); + }.bind(this)); //lost context in foreach + + /* set components */ + if (compontents) { + if (compontents.rgb) { +(['r', 'g', 'b']).forEach(function(c) { + this[c].attr(compontents.rgb); + }.bind(this)); + + delete compontents.rgb; + } + + /* set individual components */ + for (var c in compontents) + this[c].attr(compontents[c]); + } + }, + diffuseLighting: function(surfaceScale,diffuseConstant,kernelUnitLength){ + this.attr({ + surfaceScale: surfaceScale, + diffuseConstant: diffuseConstant, + kernelUnitLength: kernelUnitLength + }); + }, + specularLighting: function(surfaceScale,diffuseConstant,specularExponent,kernelUnitLength){ + this.attr({ + surfaceScale: surfaceScale, + diffuseConstant: diffuseConstant, + specularExponent: specularExponent, + kernelUnitLength: kernelUnitLength + }); + }, + }; + + // Create child effects like PointLight and MergeNode + var childEffects = { + distantLight: function(azimuth, elevation){ + this.attr({ + azimuth: azimuth, + elevation: elevation + }); + }, + pointLight: function(x,y,z){ + this.attr({ + x: x, + y: y, + z: z + }); + }, + spotLight: function(x,y,z,pointsAtX,pointsAtY,pointsAtZ){ + this.attr({ + x: x, + y: y, + z: z, + pointsAtX: pointsAtX, + pointsAtY: pointsAtY, + pointsAtZ: pointsAtZ + }); + }, + mergeNode: function(in1){ + this.attr('in',in1); + } + } + + // Create compontent functions + ;(['r', 'g', 'b', 'a']).forEach(function(c) { + /* create class */ + childEffects['Func' + c.toUpperCase()] = function(type) { + this.attr('type',type); + + // take diffent arguments based on the type + switch(type){ + case 'table': + this.attr('tableValues',arguments[1]); + break + case 'linear': + this.attr('slope',arguments[1]); + this.attr('intercept',arguments[2]); + break + case 'gamma': + this.attr('amplitude',arguments[1]); + this.attr('exponent',arguments[2]); + this.attr('offset',arguments[2]); + break + } + }; + }); + + //create effects + foreach(effects,function(effect,i){ + + /* capitalize name */ + var name = i.charAt(0).toUpperCase() + i.slice(1); + var proto = {}; + + /* create class */ + SVG[name + 'Effect'] = SVG.invent({ + create: function() { + //call super + this.constructor.call(this, SVG.create('fe' + name)); + + //call constructor for this effect + effect.apply(this,arguments); + + //set the result + this.result(this.attr('id') + 'Out'); + }, + inherit: SVG.Effect, + extend: proto + }); + }); + + //create parent effects + foreach(parentEffects,function(effect,i){ + + /* capitalize name */ + var name = i.charAt(0).toUpperCase() + i.slice(1); + var proto = {}; + + /* create class */ + SVG[name + 'Effect'] = SVG.invent({ + create: function() { + //call super + this.constructor.call(this, SVG.create('fe' + name)); + + //call constructor for this effect + effect.apply(this,arguments); + + //set the result + this.result(this.attr('id') + 'Out'); + }, + inherit: SVG.ParentEffect, + extend: proto + }); + }); + + //create child effects + foreach(childEffects,function(effect,i){ + + /* capitalize name */ + var name = i.charAt(0).toUpperCase() + i.slice(1); + var proto = {}; + + /* create class */ + SVG[name] = SVG.invent({ + create: function() { + //call super + this.constructor.call(this, SVG.create('fe' + name)); + + //call constructor for this effect + effect.apply(this,arguments); + }, + inherit: SVG.ChildEffect, + extend: proto + }); + }); + + // Effect-specific extensions + SVG.extend(SVG.MergeEffect,{ + in: function(effect){ + if(effect instanceof SVG.MergeNode) + this.add(effect,0); + else + this.add(new SVG.MergeNode(effect),0); + + return this + } + }); + SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{ + in2: function(effect){ + return effect == null? this.parent() && this.parent().select('[result="'+this.attr('in2')+'"]').get(0) || this.attr('in2') : this.attr('in2', effect) + } + }); + + // Presets + SVG.filter = { + sepiatone: [ .343, .669, .119, 0, 0 + , .249, .626, .130, 0, 0 + , .172, .334, .111, 0, 0 + , .000, .000, .000, 1, 0 ] + }; + + // Helpers + function normaliseMatrix(matrix) { + /* convert possible array value to string */ + if (Array.isArray(matrix)) + matrix = new SVG.Array(matrix); + + /* ensure there are no leading, tailing or double spaces */ + return matrix.toString().replace(/^\s+/, '').replace(/\s+$/, '').replace(/\s+/g, ' ') + } + + function listString(list) { + if (!Array.isArray(list)) + return list + + for (var i = 0, l = list.length, s = []; i < l; i++) + s.push(list[i]); + + return s.join(' ') + } + + function foreach(){ //loops through mutiple objects + var fn = function(){}; + if(typeof arguments[arguments.length-1] == 'function'){ + fn = arguments[arguments.length-1]; + Array.prototype.splice.call(arguments,arguments.length-1,1); + } + for(var k in arguments){ + for(var i in arguments[k]){ + fn(arguments[k][i],i,arguments[k]); + } + } + } + +}).call(undefined); + +(function() { + +SVG.extend(SVG.PathArray, { + morph: function(array) { + + var startArr = this.value + , destArr = this.parse(array); + + var startOffsetM = 0 + , destOffsetM = 0; + + var startOffsetNextM = false + , destOffsetNextM = false; + + while(true){ + // stop if there is no M anymore + if(startOffsetM === false && destOffsetM === false) break + + // find the next M in path array + startOffsetNextM = findNextM(startArr, startOffsetM === false ? false : startOffsetM+1); + destOffsetNextM = findNextM( destArr, destOffsetM === false ? false : destOffsetM+1); + + // We have to add one M to the startArray + if(startOffsetM === false){ + var bbox = new SVG.PathArray(result.start).bbox(); + + // when the last block had no bounding box we simply take the first M we got + if(bbox.height == 0 || bbox.width == 0){ + startOffsetM = startArr.push(startArr[0]) - 1; + }else{ + // we take the middle of the bbox instead when we got one + startOffsetM = startArr.push( ['M', bbox.x + bbox.width/2, bbox.y + bbox.height/2 ] ) - 1; + } + } + + // We have to add one M to the destArray + if( destOffsetM === false){ + var bbox = new SVG.PathArray(result.dest).bbox(); + + if(bbox.height == 0 || bbox.width == 0){ + destOffsetM = destArr.push(destArr[0]) - 1; + }else{ + destOffsetM = destArr.push( ['M', bbox.x + bbox.width/2, bbox.y + bbox.height/2 ] ) - 1; + } + } + + // handle block from M to next M + var result = handleBlock(startArr, startOffsetM, startOffsetNextM, destArr, destOffsetM, destOffsetNextM); + + // update the arrays to their new values + startArr = startArr.slice(0, startOffsetM).concat(result.start, startOffsetNextM === false ? [] : startArr.slice(startOffsetNextM)); + destArr = destArr.slice(0, destOffsetM).concat(result.dest , destOffsetNextM === false ? [] : destArr.slice( destOffsetNextM)); + + // update offsets + startOffsetM = startOffsetNextM === false ? false : startOffsetM + result.start.length; + destOffsetM = destOffsetNextM === false ? false : destOffsetM + result.dest.length; + + } + + // copy back arrays + this.value = startArr; + this.destination = new SVG.PathArray(); + this.destination.value = destArr; + + return this + } +}); + + + +// sorry for the long declaration +// slices out one block (from M to M) and syncronize it so the types and length match +function handleBlock(startArr, startOffsetM, startOffsetNextM, destArr, destOffsetM, destOffsetNextM, undefined){ + + // slice out the block we need + var startArrTemp = startArr.slice(startOffsetM, startOffsetNextM || undefined) + , destArrTemp = destArr.slice( destOffsetM, destOffsetNextM || undefined); + + var i = 0 + , posStart = {pos:[0,0], start:[0,0]} + , posDest = {pos:[0,0], start:[0,0]}; + + do{ + + // convert shorthand types to long form + startArrTemp[i] = simplyfy.call(posStart, startArrTemp[i]); + destArrTemp[i] = simplyfy.call(posDest , destArrTemp[i]); + + // check if both shape types match + // 2 elliptical arc curve commands ('A'), are considered different if the + // flags (large-arc-flag, sweep-flag) don't match + if(startArrTemp[i][0] != destArrTemp[i][0] || startArrTemp[i][0] == 'M' || + (startArrTemp[i][0] == 'A' && + (startArrTemp[i][4] != destArrTemp[i][4] || startArrTemp[i][5] != destArrTemp[i][5]) + ) + ) { + + // if not, convert shapes to beziere + Array.prototype.splice.apply(startArrTemp, [i, 1].concat(toBeziere.call(posStart, startArrTemp[i]))); + Array.prototype.splice.apply(destArrTemp, [i, 1].concat(toBeziere.call(posDest, destArrTemp[i]))); + + } else { + + // only update positions otherwise + startArrTemp[i] = setPosAndReflection.call(posStart, startArrTemp[i]); + destArrTemp[i] = setPosAndReflection.call(posDest , destArrTemp[i]); + + } + + // we are at the end at both arrays. stop here + if(++i == startArrTemp.length && i == destArrTemp.length) break + + // destArray is longer. Add one element + if(i == startArrTemp.length){ + startArrTemp.push([ + 'C', + posStart.pos[0], + posStart.pos[1], + posStart.pos[0], + posStart.pos[1], + posStart.pos[0], + posStart.pos[1], + ]); + } + + // startArr is longer. Add one element + if(i == destArrTemp.length){ + destArrTemp.push([ + 'C', + posDest.pos[0], + posDest.pos[1], + posDest.pos[0], + posDest.pos[1], + posDest.pos[0], + posDest.pos[1] + ]); + } + + + }while(true) + + // return the updated block + return {start:startArrTemp, dest:destArrTemp} +} + +// converts shorthand types to long form +function simplyfy(val){ + + switch(val[0]){ + case 'z': // shorthand line to start + case 'Z': + val[0] = 'L'; + val[1] = this.start[0]; + val[2] = this.start[1]; + break + case 'H': // shorthand horizontal line + val[0] = 'L'; + val[2] = this.pos[1]; + break + case 'V': // shorthand vertical line + val[0] = 'L'; + val[2] = val[1]; + val[1] = this.pos[0]; + break + case 'T': // shorthand quadratic beziere + val[0] = 'Q'; + val[3] = val[1]; + val[4] = val[2]; + val[1] = this.reflection[1]; + val[2] = this.reflection[0]; + break + case 'S': // shorthand cubic beziere + val[0] = 'C'; + val[6] = val[4]; + val[5] = val[3]; + val[4] = val[2]; + val[3] = val[1]; + val[2] = this.reflection[1]; + val[1] = this.reflection[0]; + break + } + + return val + +} + +// updates reflection point and current position +function setPosAndReflection(val){ + + var len = val.length; + + this.pos = [ val[len-2], val[len-1] ]; + + if('SCQT'.indexOf(val[0]) != -1) + this.reflection = [ 2 * this.pos[0] - val[len-4], 2 * this.pos[1] - val[len-3] ]; + + return val +} + +// converts all types to cubic beziere +function toBeziere(val){ + var retVal = [val]; + + switch(val[0]){ + case 'M': // special handling for M + this.pos = this.start = [val[1], val[2]]; + return retVal + case 'L': + val[5] = val[3] = val[1]; + val[6] = val[4] = val[2]; + val[1] = this.pos[0]; + val[2] = this.pos[1]; + break + case 'Q': + val[6] = val[4]; + val[5] = val[3]; + val[4] = val[4] * 1/3 + val[2] * 2/3; + val[3] = val[3] * 1/3 + val[1] * 2/3; + val[2] = this.pos[1] * 1/3 + val[2] * 2/3; + val[1] = this.pos[0] * 1/3 + val[1] * 2/3; + break + case 'A': + retVal = arcToBeziere(this.pos, val); + val = retVal[0]; + break + } + + val[0] = 'C'; + this.pos = [val[5], val[6]]; + this.reflection = [2 * val[5] - val[3], 2 * val[6] - val[4]]; + + return retVal + +} + +// finds the next position of type M +function findNextM(arr, offset){ + + if(offset === false) return false + + for(var i = offset, len = arr.length;i < len;++i){ + + if(arr[i][0] == 'M') return i + + } + + return false +} + + + +// Convert an arc segment into equivalent cubic Bezier curves +// Depending on the arc, up to 4 curves might be used to represent it since a +// curve gives a good approximation for only a quarter of an ellipse +// The curves are returned as an array of SVG curve commands: +// [ ['C', x1, y1, x2, y2, x, y] ... ] +function arcToBeziere(pos, val) { + // Parameters extraction, handle out-of-range parameters as specified in the SVG spec + // See: https://www.w3.org/TR/SVG11/implnote.html#ArcOutOfRangeParameters + var rx = Math.abs(val[1]), ry = Math.abs(val[2]), xAxisRotation = val[3] % 360 + , largeArcFlag = val[4], sweepFlag = val[5], x = val[6], y = val[7] + , A = new SVG.Point(pos), B = new SVG.Point(x, y) + , primedCoord, lambda, mat, k, c, cSquare, t, O, OA, OB, tetaStart, tetaEnd + , deltaTeta, nbSectors, f, arcSegPoints, angle, sinAngle, cosAngle, pt, i, il + , retVal = [], x1, y1, x2, y2; + + // Ensure radii are non-zero + if(rx === 0 || ry === 0 || (A.x === B.x && A.y === B.y)) { + // treat this arc as a straight line segment + return [['C', A.x, A.y, B.x, B.y, B.x, B.y]] + } + + // Ensure radii are large enough using the algorithm provided in the SVG spec + // See: https://www.w3.org/TR/SVG11/implnote.html#ArcCorrectionOutOfRangeRadii + primedCoord = new SVG.Point((A.x-B.x)/2, (A.y-B.y)/2).transform(new SVG.Matrix().rotate(xAxisRotation)); + lambda = (primedCoord.x * primedCoord.x) / (rx * rx) + (primedCoord.y * primedCoord.y) / (ry * ry); + if(lambda > 1) { + lambda = Math.sqrt(lambda); + rx = lambda*rx; + ry = lambda*ry; + } + + // To simplify calculations, we make the arc part of a unit circle (rayon is 1) instead of an ellipse + mat = new SVG.Matrix().rotate(xAxisRotation).scale(1/rx, 1/ry).rotate(-xAxisRotation); + A = A.transform(mat); + B = B.transform(mat); + + // Calculate the horizontal and vertical distance between the initial and final point of the arc + k = [B.x-A.x, B.y-A.y]; + + // Find the length of the chord formed by A and B + cSquare = k[0]*k[0] + k[1]*k[1]; + c = Math.sqrt(cSquare); + + // Calculate the ratios of the horizontal and vertical distance on the length of the chord + k[0] /= c; + k[1] /= c; + + // Calculate the distance between the circle center and the chord midpoint + // using this formula: t = sqrt(r^2 - c^2 / 4) + // where t is the distance between the cirle center and the chord midpoint, + // r is the rayon of the circle and c is the chord length + // From: http://www.ajdesigner.com/phpcircle/circle_segment_chord_t.php + // Because of the imprecision of floating point numbers, cSquare might end + // up being slightly above 4 which would result in a negative radicand + // To prevent that, a test is made before computing the square root + t = (cSquare < 4) ? Math.sqrt(1 - cSquare/4) : 0; + + // For most situations, there are actually two different ellipses that + // satisfy the constraints imposed by the points A and B, the radii rx and ry, + // and the xAxisRotation + // When the flags largeArcFlag and sweepFlag are equal, it means that the + // second ellipse is used as a solution + // See: https://www.w3.org/TR/SVG/paths.html#PathDataEllipticalArcCommands + if(largeArcFlag === sweepFlag) { + t *= -1; + } + + // Calculate the coordinates of the center of the circle from the midpoint of the chord + // This is done by multiplying the ratios calculated previously by the distance between + // the circle center and the chord midpoint and using these values to go from the midpoint + // to the center of the circle + // The negative of the vertical distance ratio is used to modify the x coordinate while + // the horizontal distance ratio is used to modify the y coordinate + // That is because the center of the circle is perpendicular to the chord and perpendicular + // lines are negative reciprocals + O = new SVG.Point((B.x+A.x)/2 + t*-k[1], (B.y+A.y)/2 + t*k[0]); + // Move the center of the circle at the origin + OA = new SVG.Point(A.x-O.x, A.y-O.y); + OB = new SVG.Point(B.x-O.x, B.y-O.y); + + // Calculate the start and end angle + tetaStart = Math.acos(OA.x/Math.sqrt(OA.x*OA.x + OA.y*OA.y)); + if (OA.y < 0) { + tetaStart *= -1; + } + tetaEnd = Math.acos(OB.x/Math.sqrt(OB.x*OB.x + OB.y*OB.y)); + if (OB.y < 0) { + tetaEnd *= -1; + } + + // If sweep-flag is '1', then the arc will be drawn in a "positive-angle" direction, + // make sure that the end angle is above the start angle + if (sweepFlag && tetaStart > tetaEnd) { + tetaEnd += 2*Math.PI; + } + // If sweep-flag is '0', then the arc will be drawn in a "negative-angle" direction, + // make sure that the end angle is below the start angle + if (!sweepFlag && tetaStart < tetaEnd) { + tetaEnd -= 2*Math.PI; + } + + // Find the number of Bezier curves that are required to represent the arc + // A cubic Bezier curve gives a good enough approximation when representing at most a quarter of a circle + nbSectors = Math.ceil(Math.abs(tetaStart-tetaEnd) * 2/Math.PI); + + // Calculate the coordinates of the points of all the Bezier curves required to represent the arc + // For an in-depth explanation of this part see: http://pomax.github.io/bezierinfo/#circles_cubic + arcSegPoints = []; + angle = tetaStart; + deltaTeta = (tetaEnd-tetaStart)/nbSectors; + f = 4*Math.tan(deltaTeta/4)/3; + for (i = 0; i <= nbSectors; i++) { // The <= is because a Bezier curve have a start and a endpoint + cosAngle = Math.cos(angle); + sinAngle = Math.sin(angle); + + pt = new SVG.Point(O.x+cosAngle, O.y+sinAngle); + arcSegPoints[i] = [new SVG.Point(pt.x+f*sinAngle, pt.y-f*cosAngle), pt, new SVG.Point(pt.x-f*sinAngle, pt.y+f*cosAngle)]; + + angle += deltaTeta; + } + + // Remove the first control point of the first segment point and remove the second control point of the last segment point + // These two control points are not used in the approximation of the arc, that is why they are removed + arcSegPoints[0][0] = arcSegPoints[0][1].clone(); + arcSegPoints[arcSegPoints.length-1][2] = arcSegPoints[arcSegPoints.length-1][1].clone(); + + // Revert the transformation that was applied to make the arc part of a unit circle instead of an ellipse + mat = new SVG.Matrix().rotate(xAxisRotation).scale(rx, ry).rotate(-xAxisRotation); + for (i = 0, il = arcSegPoints.length; i < il; i++) { + arcSegPoints[i][0] = arcSegPoints[i][0].transform(mat); + arcSegPoints[i][1] = arcSegPoints[i][1].transform(mat); + arcSegPoints[i][2] = arcSegPoints[i][2].transform(mat); + } + + + // Convert the segments points to SVG curve commands + for (i = 1, il = arcSegPoints.length; i < il; i++) { + pt = arcSegPoints[i-1][2]; + x1 = pt.x; + y1 = pt.y; + + pt = arcSegPoints[i][0]; + x2 = pt.x; + y2 = pt.y; + + pt = arcSegPoints[i][1]; + x = pt.x; + y = pt.y; + + retVal.push(['C', x1, y1, x2, y2, x, y]); + } + + return retVal +} +}()); + +/*! svg.draggable.js - v2.2.1 - 2016-08-25 +* https://github.com/wout/svg.draggable.js +* Copyright (c) 2016 Wout Fierens; Licensed MIT */ +(function() { + + // creates handler, saves it + function DragHandler(el){ + el.remember('_draggable', this); + this.el = el; + } + + + // Sets new parameter, starts dragging + DragHandler.prototype.init = function(constraint, val){ + var _this = this; + this.constraint = constraint; + this.value = val; + this.el.on('mousedown.drag', function(e){ _this.start(e); }); + this.el.on('touchstart.drag', function(e){ _this.start(e); }); + }; + + // transforms one point from screen to user coords + DragHandler.prototype.transformPoint = function(event, offset){ + event = event || window.event; + var touches = event.changedTouches && event.changedTouches[0] || event; + this.p.x = touches.pageX - (offset || 0); + this.p.y = touches.pageY; + return this.p.matrixTransform(this.m) + }; + + // gets elements bounding box with special handling of groups, nested and use + DragHandler.prototype.getBBox = function(){ + + var box = this.el.bbox(); + + if(this.el instanceof SVG.Nested) box = this.el.rbox(); + + if (this.el instanceof SVG.G || this.el instanceof SVG.Use || this.el instanceof SVG.Nested) { + box.x = this.el.x(); + box.y = this.el.y(); + } + + return box + }; + + // start dragging + DragHandler.prototype.start = function(e){ + + // check for left button + if(e.type == 'click'|| e.type == 'mousedown' || e.type == 'mousemove'){ + if((e.which || e.buttons) != 1){ + return + } + } + + var _this = this; + + // fire beforedrag event + this.el.fire('beforedrag', { event: e, handler: this }); + + // search for parent on the fly to make sure we can call + // draggable() even when element is not in the dom currently + this.parent = this.parent || this.el.parent(SVG.Nested) || this.el.parent(SVG.Doc); + this.p = this.parent.node.createSVGPoint(); + + // save current transformation matrix + this.m = this.el.node.getScreenCTM().inverse(); + + var box = this.getBBox(); + + var anchorOffset; + + // fix text-anchor in text-element (#37) + if(this.el instanceof SVG.Text){ + anchorOffset = this.el.node.getComputedTextLength(); + + switch(this.el.attr('text-anchor')){ + case 'middle': + anchorOffset /= 2; + break + case 'start': + anchorOffset = 0; + break; + } + } + + this.startPoints = { + // We take absolute coordinates since we are just using a delta here + point: this.transformPoint(e, anchorOffset), + box: box, + transform: this.el.transform() + }; + + // add drag and end events to window + SVG.on(window, 'mousemove.drag', function(e){ _this.drag(e); }); + SVG.on(window, 'touchmove.drag', function(e){ _this.drag(e); }); + SVG.on(window, 'mouseup.drag', function(e){ _this.end(e); }); + SVG.on(window, 'touchend.drag', function(e){ _this.end(e); }); + + // fire dragstart event + this.el.fire('dragstart', {event: e, p: this.startPoints.point, m: this.m, handler: this}); + + // prevent browser drag behavior + e.preventDefault(); + + // prevent propagation to a parent that might also have dragging enabled + e.stopPropagation(); + }; + + // while dragging + DragHandler.prototype.drag = function(e){ + + var box = this.getBBox() + , p = this.transformPoint(e) + , x = this.startPoints.box.x + p.x - this.startPoints.point.x + , y = this.startPoints.box.y + p.y - this.startPoints.point.y + , c = this.constraint + , gx = p.x - this.startPoints.point.x + , gy = p.y - this.startPoints.point.y; + + var event = new CustomEvent('dragmove', { + detail: { + event: e + , p: p + , m: this.m + , handler: this + } + , cancelable: true + }); + + this.el.fire(event); + + if(event.defaultPrevented) return p + + // move the element to its new position, if possible by constraint + if (typeof c == 'function') { + + var coord = c.call(this.el, x, y, this.m); + + // bool, just show us if movement is allowed or not + if (typeof coord == 'boolean') { + coord = { + x: coord, + y: coord + }; + } + + // if true, we just move. If !false its a number and we move it there + if (coord.x === true) { + this.el.x(x); + } else if (coord.x !== false) { + this.el.x(coord.x); + } + + if (coord.y === true) { + this.el.y(y); + } else if (coord.y !== false) { + this.el.y(coord.y); + } + + } else if (typeof c == 'object') { + + // keep element within constrained box + if (c.minX != null && x < c.minX) + x = c.minX; + else if (c.maxX != null && x > c.maxX - box.width){ + x = c.maxX - box.width; + }if (c.minY != null && y < c.minY) + y = c.minY; + else if (c.maxY != null && y > c.maxY - box.height) + y = c.maxY - box.height; + + if(this.el instanceof SVG.G) + this.el.matrix(this.startPoints.transform).transform({x:gx, y: gy}, true); + else + this.el.move(x, y); + } + + // so we can use it in the end-method, too + return p + }; + + DragHandler.prototype.end = function(e){ + + // final drag + var p = this.drag(e); + + // fire dragend event + this.el.fire('dragend', { event: e, p: p, m: this.m, handler: this }); + + // unbind events + SVG.off(window, 'mousemove.drag'); + SVG.off(window, 'touchmove.drag'); + SVG.off(window, 'mouseup.drag'); + SVG.off(window, 'touchend.drag'); + + }; + + SVG.extend(SVG.Element, { + // Make element draggable + // Constraint might be an object (as described in readme.md) or a function in the form "function (x, y)" that gets called before every move. + // The function can return a boolean or an object of the form {x, y}, to which the element will be moved. "False" skips moving, true moves to raw x, y. + draggable: function(value, constraint) { + + // Check the parameters and reassign if needed + if (typeof value == 'function' || typeof value == 'object') { + constraint = value; + value = true; + } + + var dragHandler = this.remember('_draggable') || new DragHandler(this); + + // When no parameter is given, value is true + value = typeof value === 'undefined' ? true : value; + + if(value) dragHandler.init(constraint || {}, value); + else { + this.off('mousedown.drag'); + this.off('touchstart.drag'); + } + + return this + } + + }); + +}).call(undefined); + +(function() { + +function SelectHandler(el) { + + this.el = el; + el.remember('_selectHandler', this); + this.pointSelection = {isSelected: false}; + this.rectSelection = {isSelected: false}; + +} + +SelectHandler.prototype.init = function (value, options) { + + var bbox = this.el.bbox(); + this.options = {}; + + // Merging the defaults and the options-object together + for (var i in this.el.selectize.defaults) { + this.options[i] = this.el.selectize.defaults[i]; + if (options[i] !== undefined) { + this.options[i] = options[i]; + } + } + + this.parent = this.el.parent(); + this.nested = (this.nested || this.parent.group()); + this.nested.matrix(new SVG.Matrix(this.el).translate(bbox.x, bbox.y)); + + // When deepSelect is enabled and the element is a line/polyline/polygon, draw only points for moving + if (this.options.deepSelect && ['line', 'polyline', 'polygon'].indexOf(this.el.type) !== -1) { + this.selectPoints(value); + } else { + this.selectRect(value); + } + + this.observe(); + this.cleanup(); + +}; + +SelectHandler.prototype.selectPoints = function (value) { + + this.pointSelection.isSelected = value; + + // When set is already there we dont have to create one + if (this.pointSelection.set) { + return this; + } + + // Create our set of elements + this.pointSelection.set = this.parent.set(); + // draw the circles and mark the element as selected + this.drawCircles(); + + return this; + +}; + +// create the point-array which contains the 2 points of a line or simply the points-array of polyline/polygon +SelectHandler.prototype.getPointArray = function () { + var bbox = this.el.bbox(); + + return this.el.array().valueOf().map(function (el) { + return [el[0] - bbox.x, el[1] - bbox.y]; + }); +}; + +// The function to draw the circles +SelectHandler.prototype.drawCircles = function () { + + var _this = this, array = this.getPointArray(); + + // go through the array of points + for (var i = 0, len = array.length; i < len; ++i) { + + var curriedEvent = (function (k) { + return function (ev) { + ev = ev || window.event; + ev.preventDefault ? ev.preventDefault() : ev.returnValue = false; + ev.stopPropagation(); + + var x = ev.pageX || ev.touches[0].pageX; + var y = ev.pageY || ev.touches[0].pageY; + _this.el.fire('point', {x: x, y: y, i: k, event: ev}); + }; + })(i); + + // add every point to the set + this.pointSelection.set.add( + // a circle with our css-classes and a touchstart-event which fires our event for moving points + this.nested.circle(this.options.radius) + .center(array[i][0], array[i][1]) + .addClass(this.options.classPoints) + .addClass(this.options.classPoints + '_point') + .on('touchstart', curriedEvent) + .on('mousedown', curriedEvent) + ); + } + +}; + +// every time a circle is moved, we have to update the positions of our circle +SelectHandler.prototype.updatePointSelection = function () { + var array = this.getPointArray(); + + this.pointSelection.set.each(function (i) { + if (this.cx() === array[i][0] && this.cy() === array[i][1]) { + return; + } + this.center(array[i][0], array[i][1]); + }); +}; + +SelectHandler.prototype.updateRectSelection = function () { + var bbox = this.el.bbox(); + + this.rectSelection.set.get(0).attr({ + width: bbox.width, + height: bbox.height + }); + + // set.get(1) is always in the upper left corner. no need to move it + if (this.options.points) { + this.rectSelection.set.get(2).center(bbox.width, 0); + this.rectSelection.set.get(3).center(bbox.width, bbox.height); + this.rectSelection.set.get(4).center(0, bbox.height); + + this.rectSelection.set.get(5).center(bbox.width / 2, 0); + this.rectSelection.set.get(6).center(bbox.width, bbox.height / 2); + this.rectSelection.set.get(7).center(bbox.width / 2, bbox.height); + this.rectSelection.set.get(8).center(0, bbox.height / 2); + } + + if (this.options.rotationPoint) { + if (this.options.points) { + this.rectSelection.set.get(9).center(bbox.width / 2, 20); + } else { + this.rectSelection.set.get(1).center(bbox.width / 2, 20); + } + } +}; + +SelectHandler.prototype.selectRect = function (value) { + + var _this = this, bbox = this.el.bbox(); + + this.rectSelection.isSelected = value; + + // when set is already p + this.rectSelection.set = this.rectSelection.set || this.parent.set(); + + // helperFunction to create a mouse-down function which triggers the event specified in `eventName` + function getMoseDownFunc(eventName) { + return function (ev) { + ev = ev || window.event; + ev.preventDefault ? ev.preventDefault() : ev.returnValue = false; + ev.stopPropagation(); + + var x = ev.pageX || ev.touches[0].pageX; + var y = ev.pageY || ev.touches[0].pageY; + _this.el.fire(eventName, {x: x, y: y, event: ev}); + }; + } + + // create the selection-rectangle and add the css-class + if (!this.rectSelection.set.get(0)) { + this.rectSelection.set.add(this.nested.rect(bbox.width, bbox.height).addClass(this.options.classRect)); + } + + // Draw Points at the edges, if enabled + if (this.options.points && !this.rectSelection.set.get(1)) { + var ename ="touchstart", mname = "mousedown"; + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(0, 0).attr('class', this.options.classPoints + '_lt').on(mname, getMoseDownFunc('lt')).on(ename, getMoseDownFunc('lt'))); + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(bbox.width, 0).attr('class', this.options.classPoints + '_rt').on(mname, getMoseDownFunc('rt')).on(ename, getMoseDownFunc('rt'))); + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(bbox.width, bbox.height).attr('class', this.options.classPoints + '_rb').on(mname, getMoseDownFunc('rb')).on(ename, getMoseDownFunc('rb'))); + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(0, bbox.height).attr('class', this.options.classPoints + '_lb').on(mname, getMoseDownFunc('lb')).on(ename, getMoseDownFunc('lb'))); + + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(bbox.width / 2, 0).attr('class', this.options.classPoints + '_t').on(mname, getMoseDownFunc('t')).on(ename, getMoseDownFunc('t'))); + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(bbox.width, bbox.height / 2).attr('class', this.options.classPoints + '_r').on(mname, getMoseDownFunc('r')).on(ename, getMoseDownFunc('r'))); + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(bbox.width / 2, bbox.height).attr('class', this.options.classPoints + '_b').on(mname, getMoseDownFunc('b')).on(ename, getMoseDownFunc('b'))); + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(0, bbox.height / 2).attr('class', this.options.classPoints + '_l').on(mname, getMoseDownFunc('l')).on(ename, getMoseDownFunc('l'))); + + this.rectSelection.set.each(function () { + this.addClass(_this.options.classPoints); + }); + } + + // draw rotationPint, if enabled + if (this.options.rotationPoint && ((this.options.points && !this.rectSelection.set.get(9)) || (!this.options.points && !this.rectSelection.set.get(1)))) { + + var curriedEvent = function (ev) { + ev = ev || window.event; + ev.preventDefault ? ev.preventDefault() : ev.returnValue = false; + ev.stopPropagation(); + + var x = ev.pageX || ev.touches[0].pageX; + var y = ev.pageY || ev.touches[0].pageY; + _this.el.fire('rot', {x: x, y: y, event: ev}); + }; + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(bbox.width / 2, 20).attr('class', this.options.classPoints + '_rot') + .on("touchstart", curriedEvent).on("mousedown", curriedEvent)); + + } + +}; + +SelectHandler.prototype.handler = function () { + + var bbox = this.el.bbox(); + this.nested.matrix(new SVG.Matrix(this.el).translate(bbox.x, bbox.y)); + + if (this.rectSelection.isSelected) { + this.updateRectSelection(); + } + + if (this.pointSelection.isSelected) { + this.updatePointSelection(); + } + +}; + +SelectHandler.prototype.observe = function () { + var _this = this; + + if (MutationObserver) { + if (this.rectSelection.isSelected || this.pointSelection.isSelected) { + this.observerInst = this.observerInst || new MutationObserver(function () { + _this.handler(); + }); + this.observerInst.observe(this.el.node, {attributes: true}); + } else { + try { + this.observerInst.disconnect(); + delete this.observerInst; + } catch (e) { + } + } + } else { + this.el.off('DOMAttrModified.select'); + + if (this.rectSelection.isSelected || this.pointSelection.isSelected) { + this.el.on('DOMAttrModified.select', function () { + _this.handler(); + }); + } + } +}; + +SelectHandler.prototype.cleanup = function () { + + //var _this = this; + + if (!this.rectSelection.isSelected && this.rectSelection.set) { + // stop watching the element, remove the selection + this.rectSelection.set.each(function () { + this.remove(); + }); + + this.rectSelection.set.clear(); + delete this.rectSelection.set; + } + + if (!this.pointSelection.isSelected && this.pointSelection.set) { + // Remove all points, clear the set, stop watching the element + this.pointSelection.set.each(function () { + this.remove(); + }); + + this.pointSelection.set.clear(); + delete this.pointSelection.set; + } + + if (!this.pointSelection.isSelected && !this.rectSelection.isSelected) { + this.nested.remove(); + delete this.nested; + + } +}; + + +SVG.extend(SVG.Element, { + // Select element with mouse + selectize: function (value, options) { + + // Check the parameters and reassign if needed + if (typeof value === 'object') { + options = value; + value = true; + } + + var selectHandler = this.remember('_selectHandler') || new SelectHandler(this); + + selectHandler.init(value === undefined ? true : value, options || {}); + + return this; + + } +}); + +SVG.Element.prototype.selectize.defaults = { + points: true, // If true, points at the edges are drawn. Needed for resize! + classRect: 'svg_select_boundingRect', // Css-class added to the rect + classPoints: 'svg_select_points', // Css-class added to the points + radius: 7, // radius of the points + rotationPoint: true, // If true, rotation point is drawn. Needed for rotation! + deepSelect: false // If true, moving of single points is possible (only line, polyline, polyon) +}; +}()); + +(function() { +(function () { + + function ResizeHandler(el) { + + el.remember('_resizeHandler', this); + + this.el = el; + this.parameters = {}; + this.lastUpdateCall = null; + this.p = el.doc().node.createSVGPoint(); + } + + ResizeHandler.prototype.transformPoint = function(x, y, m){ + + this.p.x = x - (this.offset.x - window.pageXOffset); + this.p.y = y - (this.offset.y - window.pageYOffset); + + return this.p.matrixTransform(m || this.m); + + }; + + ResizeHandler.prototype._extractPosition = function(event) { + // Extract a position from a mouse/touch event. + // Returns { x: .., y: .. } + return { + x: event.clientX != null ? event.clientX : event.touches[0].clientX, + y: event.clientY != null ? event.clientY : event.touches[0].clientY + } + }; + + ResizeHandler.prototype.init = function (options) { + + var _this = this; + + this.stop(); + + if (options === 'stop') { + return; + } + + this.options = {}; + + // Merge options and defaults + for (var i in this.el.resize.defaults) { + this.options[i] = this.el.resize.defaults[i]; + if (typeof options[i] !== 'undefined') { + this.options[i] = options[i]; + } + } + + // We listen to all these events which are specifying different edges + this.el.on('lt.resize', function(e){ _this.resize(e || window.event); }); // Left-Top + this.el.on('rt.resize', function(e){ _this.resize(e || window.event); }); // Right-Top + this.el.on('rb.resize', function(e){ _this.resize(e || window.event); }); // Right-Bottom + this.el.on('lb.resize', function(e){ _this.resize(e || window.event); }); // Left-Bottom + + this.el.on('t.resize', function(e){ _this.resize(e || window.event); }); // Top + this.el.on('r.resize', function(e){ _this.resize(e || window.event); }); // Right + this.el.on('b.resize', function(e){ _this.resize(e || window.event); }); // Bottom + this.el.on('l.resize', function(e){ _this.resize(e || window.event); }); // Left + + this.el.on('rot.resize', function(e){ _this.resize(e || window.event); }); // Rotation + + this.el.on('point.resize', function(e){ _this.resize(e || window.event); }); // Point-Moving + + // This call ensures, that the plugin reacts to a change of snapToGrid immediately + this.update(); + + }; + + ResizeHandler.prototype.stop = function(){ + this.el.off('lt.resize'); + this.el.off('rt.resize'); + this.el.off('rb.resize'); + this.el.off('lb.resize'); + + this.el.off('t.resize'); + this.el.off('r.resize'); + this.el.off('b.resize'); + this.el.off('l.resize'); + + this.el.off('rot.resize'); + + this.el.off('point.resize'); + + return this; + }; + + ResizeHandler.prototype.resize = function (event) { + + var _this = this; + + this.m = this.el.node.getScreenCTM().inverse(); + this.offset = { x: window.pageXOffset, y: window.pageYOffset }; + + var txPt = this._extractPosition(event.detail.event); + this.parameters = { + type: this.el.type, // the type of element + p: this.transformPoint(txPt.x, txPt.y), + x: event.detail.x, // x-position of the mouse when resizing started + y: event.detail.y, // y-position of the mouse when resizing started + box: this.el.bbox(), // The bounding-box of the element + rotation: this.el.transform().rotation // The current rotation of the element + }; + + // Add font-size parameter if the element type is text + if (this.el.type === "text") { + this.parameters.fontSize = this.el.attr()["font-size"]; + } + + // the i-param in the event holds the index of the point which is moved, when using `deepSelect` + if (event.detail.i !== undefined) { + + // get the point array + var array = this.el.array().valueOf(); + + // Save the index and the point which is moved + this.parameters.i = event.detail.i; + this.parameters.pointCoords = [array[event.detail.i][0], array[event.detail.i][1]]; + } + + // Lets check which edge of the bounding-box was clicked and resize the this.el according to this + switch (event.type) { + + // Left-Top-Edge + case 'lt': + // We build a calculating function for every case which gives us the new position of the this.el + this.calc = function (diffX, diffY) { + // The procedure is always the same + // First we snap the edge to the given grid (snapping to 1px grid is normal resizing) + var snap = this.snapToGrid(diffX, diffY); + + // Now we check if the new height and width still valid (> 0) + if (this.parameters.box.width - snap[0] > 0 && this.parameters.box.height - snap[1] > 0) { + // ...if valid, we resize the this.el (which can include moving because the coord-system starts at the left-top and this edge is moving sometimes when resized) + + /* + * but first check if the element is text box, so we can change the font size instead of + * the width and height + */ + + if (this.parameters.type === "text") { + this.el.move(this.parameters.box.x + snap[0], this.parameters.box.y); + this.el.attr("font-size", this.parameters.fontSize - snap[0]); + return; + } + + snap = this.checkAspectRatio(snap); + + this.el.move(this.parameters.box.x + snap[0], this.parameters.box.y + snap[1]).size(this.parameters.box.width - snap[0], this.parameters.box.height - snap[1]); + } + }; + break; + + // Right-Top + case 'rt': + // s.a. + this.calc = function (diffX, diffY) { + var snap = this.snapToGrid(diffX, diffY, 1 << 1); + if (this.parameters.box.width + snap[0] > 0 && this.parameters.box.height - snap[1] > 0) { + if (this.parameters.type === "text") { + this.el.move(this.parameters.box.x - snap[0], this.parameters.box.y); + this.el.attr("font-size", this.parameters.fontSize + snap[0]); + return; + } + + snap = this.checkAspectRatio(snap); + + this.el.move(this.parameters.box.x, this.parameters.box.y + snap[1]).size(this.parameters.box.width + snap[0], this.parameters.box.height - snap[1]); + } + }; + break; + + // Right-Bottom + case 'rb': + // s.a. + this.calc = function (diffX, diffY) { + var snap = this.snapToGrid(diffX, diffY, 0); + if (this.parameters.box.width + snap[0] > 0 && this.parameters.box.height + snap[1] > 0) { + if (this.parameters.type === "text") { + this.el.move(this.parameters.box.x - snap[0], this.parameters.box.y); + this.el.attr("font-size", this.parameters.fontSize + snap[0]); + return; + } + + snap = this.checkAspectRatio(snap); + + this.el.move(this.parameters.box.x, this.parameters.box.y).size(this.parameters.box.width + snap[0], this.parameters.box.height + snap[1]); + } + }; + break; + + // Left-Bottom + case 'lb': + // s.a. + this.calc = function (diffX, diffY) { + var snap = this.snapToGrid(diffX, diffY, 1); + if (this.parameters.box.width - snap[0] > 0 && this.parameters.box.height + snap[1] > 0) { + if (this.parameters.type === "text") { + this.el.move(this.parameters.box.x + snap[0], this.parameters.box.y); + this.el.attr("font-size", this.parameters.fontSize - snap[0]); + return; + } + + snap = this.checkAspectRatio(snap); + + this.el.move(this.parameters.box.x + snap[0], this.parameters.box.y).size(this.parameters.box.width - snap[0], this.parameters.box.height + snap[1]); + } + }; + break; + + // Top + case 't': + // s.a. + this.calc = function (diffX, diffY) { + var snap = this.snapToGrid(diffX, diffY, 1 << 1); + if (this.parameters.box.height - snap[1] > 0) { + // Disable the font-resizing if it is not from the corner of bounding-box + if (this.parameters.type === "text") { + return; + } + + this.el.move(this.parameters.box.x, this.parameters.box.y + snap[1]).height(this.parameters.box.height - snap[1]); + } + }; + break; + + // Right + case 'r': + // s.a. + this.calc = function (diffX, diffY) { + var snap = this.snapToGrid(diffX, diffY, 0); + if (this.parameters.box.width + snap[0] > 0) { + if (this.parameters.type === "text") { + return; + } + + this.el.move(this.parameters.box.x, this.parameters.box.y).width(this.parameters.box.width + snap[0]); + } + }; + break; + + // Bottom + case 'b': + // s.a. + this.calc = function (diffX, diffY) { + var snap = this.snapToGrid(diffX, diffY, 0); + if (this.parameters.box.height + snap[1] > 0) { + if (this.parameters.type === "text") { + return; + } + + this.el.move(this.parameters.box.x, this.parameters.box.y).height(this.parameters.box.height + snap[1]); + } + }; + break; + + // Left + case 'l': + // s.a. + this.calc = function (diffX, diffY) { + var snap = this.snapToGrid(diffX, diffY, 1); + if (this.parameters.box.width - snap[0] > 0) { + if (this.parameters.type === "text") { + return; + } + + this.el.move(this.parameters.box.x + snap[0], this.parameters.box.y).width(this.parameters.box.width - snap[0]); + } + }; + break; + + // Rotation + case 'rot': + // s.a. + this.calc = function (diffX, diffY) { + + // yes this is kinda stupid but we need the mouse coords back... + var current = {x: diffX + this.parameters.p.x, y: diffY + this.parameters.p.y}; + + // start minus middle + var sAngle = Math.atan2((this.parameters.p.y - this.parameters.box.y - this.parameters.box.height / 2), (this.parameters.p.x - this.parameters.box.x - this.parameters.box.width / 2)); + + // end minus middle + var pAngle = Math.atan2((current.y - this.parameters.box.y - this.parameters.box.height / 2), (current.x - this.parameters.box.x - this.parameters.box.width / 2)); + + var angle = (pAngle - sAngle) * 180 / Math.PI; + + // We have to move the element to the center of the box first and change the rotation afterwards + // because rotation always works around a rotation-center, which is changed when moving the element + // We also set the new rotation center to the center of the box. + this.el.center(this.parameters.box.cx, this.parameters.box.cy).rotate(this.parameters.rotation + angle - angle % this.options.snapToAngle, this.parameters.box.cx, this.parameters.box.cy); + }; + break; + + // Moving one single Point (needed when an element is deepSelected which means you can move every single point of the object) + case 'point': + this.calc = function (diffX, diffY) { + + // Snapping the point to the grid + var snap = this.snapToGrid(diffX, diffY, this.parameters.pointCoords[0], this.parameters.pointCoords[1]); + + // Get the point array + var array = this.el.array().valueOf(); + + // Changing the moved point in the array + array[this.parameters.i][0] = this.parameters.pointCoords[0] + snap[0]; + array[this.parameters.i][1] = this.parameters.pointCoords[1] + snap[1]; + + // And plot the new this.el + this.el.plot(array); + }; + } + + this.el.fire('resizestart', {dx: this.parameters.x, dy: this.parameters.y, event: event}); + // When resizing started, we have to register events for... + // Touches. + SVG.on(window, 'touchmove.resize', function(e) { + _this.update(e || window.event); + }); + SVG.on(window, 'touchend.resize', function() { + _this.done(); + }); + // Mouse. + SVG.on(window, 'mousemove.resize', function (e) { + _this.update(e || window.event); + }); + SVG.on(window, 'mouseup.resize', function () { + _this.done(); + }); + + }; + + // The update-function redraws the element every time the mouse is moving + ResizeHandler.prototype.update = function (event) { + + if (!event) { + if (this.lastUpdateCall) { + this.calc(this.lastUpdateCall[0], this.lastUpdateCall[1]); + } + return; + } + + // Calculate the difference between the mouseposition at start and now + var txPt = this._extractPosition(event); + var p = this.transformPoint(txPt.x, txPt.y); + + var diffX = p.x - this.parameters.p.x, + diffY = p.y - this.parameters.p.y; + + this.lastUpdateCall = [diffX, diffY]; + + // Calculate the new position and height / width of the element + this.calc(diffX, diffY); + + // Emit an event to say we have changed. + this.el.fire('resizing', {dx: diffX, dy: diffY, event: event}); + }; + + // Is called on mouseup. + // Removes the update-function from the mousemove event + ResizeHandler.prototype.done = function () { + this.lastUpdateCall = null; + SVG.off(window, 'mousemove.resize'); + SVG.off(window, 'mouseup.resize'); + SVG.off(window, 'touchmove.resize'); + SVG.off(window, 'touchend.resize'); + this.el.fire('resizedone'); + }; + + // The flag is used to determine whether the resizing is used with a left-Point (first bit) and top-point (second bit) + // In this cases the temp-values are calculated differently + ResizeHandler.prototype.snapToGrid = function (diffX, diffY, flag, pointCoordsY) { + + var temp; + + // If `pointCoordsY` is given, a single Point has to be snapped (deepSelect). That's why we need a different temp-value + if (typeof pointCoordsY !== 'undefined') { + // Note that flag = pointCoordsX in this case + temp = [(flag + diffX) % this.options.snapToGrid, (pointCoordsY + diffY) % this.options.snapToGrid]; + } else { + // We check if the flag is set and if not we set a default-value (both bits set - which means upper-left-edge) + flag = flag == null ? 1 | 1 << 1 : flag; + temp = [(this.parameters.box.x + diffX + (flag & 1 ? 0 : this.parameters.box.width)) % this.options.snapToGrid, (this.parameters.box.y + diffY + (flag & (1 << 1) ? 0 : this.parameters.box.height)) % this.options.snapToGrid]; + } + + + diffX -= (Math.abs(temp[0]) < this.options.snapToGrid / 2 ? + temp[0] : + temp[0] - (diffX < 0 ? -this.options.snapToGrid : this.options.snapToGrid)); + diffY -= (Math.abs(temp[1]) < this.options.snapToGrid / 2 ? + temp[1] : + temp[1] - (diffY < 0 ? -this.options.snapToGrid : this.options.snapToGrid)); + + return this.constraintToBox(diffX, diffY, flag, pointCoordsY); + + }; + + // keep element within constrained box + ResizeHandler.prototype.constraintToBox = function (diffX, diffY, flag, pointCoordsY) { + //return [diffX, diffY] + var c = this.options.constraint || {}; + var orgX, orgY; + + if (typeof pointCoordsY !== 'undefined') { + orgX = flag; + orgY = pointCoordsY; + } else { + orgX = this.parameters.box.x + (flag & 1 ? 0 : this.parameters.box.width); + orgY = this.parameters.box.y + (flag & (1<<1) ? 0 : this.parameters.box.height); + } + + if (typeof c.minX !== 'undefined' && orgX + diffX < c.minX) { + diffX = c.minX - orgX; + } + + if (typeof c.maxX !== 'undefined' && orgX + diffX > c.maxX) { + diffX = c.maxX - orgX; + } + + if (typeof c.minY !== 'undefined' && orgY + diffY < c.minY) { + diffY = c.minY - orgY; + } + + if (typeof c.maxY !== 'undefined' && orgY + diffY > c.maxY) { + diffY = c.maxY - orgY; + } + + return [diffX, diffY]; + }; + + ResizeHandler.prototype.checkAspectRatio = function (snap) { + if (!this.options.saveAspectRatio) { + return snap; + } + + var updatedSnap = snap.slice(); + var aspectRatio = this.parameters.box.width / this.parameters.box.height; + var newW = this.parameters.box.width + snap[0]; + var newH = this.parameters.box.height - snap[1]; + var newAspectRatio = newW / newH; + + if (newAspectRatio < aspectRatio) { + // Height is too big. Adapt it + updatedSnap[1] = newW / aspectRatio - this.parameters.box.height; + } else if (newAspectRatio > aspectRatio) { + // Width is too big. Adapt it + updatedSnap[0] = this.parameters.box.width - newH * aspectRatio; + } + + return updatedSnap; + + }; + + SVG.extend(SVG.Element, { + // Resize element with mouse + resize: function (options) { + + (this.remember('_resizeHandler') || new ResizeHandler(this)).init(options || {}); + + return this; + + } + + }); + + SVG.Element.prototype.resize.defaults = { + snapToAngle: 0.1, // Specifies the speed the rotation is happening when moving the mouse + snapToGrid: 1, // Snaps to a grid of `snapToGrid` Pixels + constraint: {}, // keep element within constrained box + saveAspectRatio: false // Save aspect ratio when resizing using lt, rt, rb or lb points + }; + +}).call(this); +}()); + +function styleInject(css, ref) { + if ( ref === void 0 ) ref = {}; + var insertAt = ref.insertAt; + + if (!css || typeof document === 'undefined') { return; } + + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.type = 'text/css'; + + if (insertAt === 'top') { + if (head.firstChild) { + head.insertBefore(style, head.firstChild); + } else { + head.appendChild(style); + } + } else { + head.appendChild(style); + } + + if (style.styleSheet) { + style.styleSheet.cssText = css; + } else { + style.appendChild(document.createTextNode(css)); + } +} + +var css = ".apexcharts-canvas {\n position: relative;\n user-select: none;\n /* cannot give overflow: hidden as it will crop tooltips which overflow outside chart area */\n}\n\n/* scrollbar is not visible by default for legend, hence forcing the visibility */\n.apexcharts-canvas ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 6px;\n}\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0,0,0,.5);\n box-shadow: 0 0 1px rgba(255,255,255,.5);\n -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);\n}\n\n.apexcharts-inner {\n position: relative;\n}\n\n.legend-mouseover-inactive {\n transition: 0.15s ease all;\n opacity: 0.20;\n}\n\n.apexcharts-series-collapsed {\n opacity: 0;\n}\n\n.apexcharts-gridline, .apexcharts-text {\n pointer-events: none;\n}\n\n.apexcharts-tooltip {\n border-radius: 5px;\n box-shadow: 2px 2px 6px -4px #999;\n cursor: default;\n font-size: 14px;\n left: 62px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n top: 20px;\n overflow: hidden;\n white-space: nowrap;\n z-index: 12;\n transition: 0.15s ease all;\n}\n.apexcharts-tooltip.light {\n border: 1px solid #e3e3e3;\n background: rgba(255, 255, 255, 0.96);\n}\n.apexcharts-tooltip.dark {\n color: #fff;\n background: rgba(30,30,30, 0.8);\n}\n.apexcharts-tooltip * {\n font-family: inherit;\n}\n\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-line {\n pointer-events: none;\n}\n\n.apexcharts-tooltip.active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-tooltip-title {\n padding: 6px;\n font-size: 15px;\n margin-bottom: 4px;\n}\n.apexcharts-tooltip.light .apexcharts-tooltip-title {\n background: #ECEFF1;\n border-bottom: 1px solid #ddd;\n}\n.apexcharts-tooltip.dark .apexcharts-tooltip-title {\n background: rgba(0, 0, 0, 0.7);\n border-bottom: 1px solid #222;\n}\n\n.apexcharts-tooltip-text-value,\n.apexcharts-tooltip-text-z-value {\n display: inline-block;\n font-weight: 600;\n margin-left: 5px;\n}\n\n.apexcharts-tooltip-text-z-label:empty,\n.apexcharts-tooltip-text-z-value:empty {\n display: none;\n}\n\n.apexcharts-tooltip-text-value, \n.apexcharts-tooltip-text-z-value {\n font-weight: 600;\n}\n\n.apexcharts-tooltip-marker {\n width: 12px;\n height: 12px;\n position: relative;\n top: 0px;\n margin-right: 10px;\n border-radius: 50%;\n}\n\n.apexcharts-tooltip-series-group {\n padding: 0 10px;\n display: none;\n text-align: left;\n justify-content: left;\n align-items: center;\n}\n\n.apexcharts-tooltip-series-group.active .apexcharts-tooltip-marker {\n opacity: 1;\n}\n.apexcharts-tooltip-series-group.active, .apexcharts-tooltip-series-group:last-child {\n padding-bottom: 4px;\n}\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px;\n}\n.apexcharts-tooltip-candlestick {\n padding: 4px 8px;\n}\n.apexcharts-tooltip-candlestick > div {\n margin: 4px 0;\n}\n.apexcharts-tooltip-candlestick span.value {\n font-weight: bold;\n}\n\n.apexcharts-xaxistooltip {\n opacity: 0;\n padding: 9px 10px;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n\tbackground: #ECEFF1;\n border: 1px solid #90A4AE;\n transition: 0.15s ease all;\n}\n\n.apexcharts-xaxistooltip:after, .apexcharts-xaxistooltip:before {\n\tleft: 50%;\n\tborder: solid transparent;\n\tcontent: \" \";\n\theight: 0;\n\twidth: 0;\n\tposition: absolute;\n\tpointer-events: none;\n}\n\n.apexcharts-xaxistooltip:after {\n\tborder-color: rgba(236, 239, 241, 0);\n\tborder-width: 6px;\n\tmargin-left: -6px;\n}\n.apexcharts-xaxistooltip:before {\n\tborder-color: rgba(144, 164, 174, 0);\n\tborder-width: 7px;\n\tmargin-left: -7px;\n}\n\n.apexcharts-xaxistooltip-bottom:after, .apexcharts-xaxistooltip-bottom:before {\n bottom: 100%;\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: #ECEFF1;\n}\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: #90A4AE;\n}\n\n.apexcharts-xaxistooltip-top:after, .apexcharts-xaxistooltip-top:before {\n top: 100%;\n}\n.apexcharts-xaxistooltip-top:after {\n border-top-color: #ECEFF1;\n}\n.apexcharts-xaxistooltip-top:before {\n border-top-color: #90A4AE;\n}\n\n.apexcharts-xaxistooltip.active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-yaxistooltip {\n opacity: 0;\n padding: 4px 10px;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n\tbackground: #ECEFF1;\n border: 1px solid #90A4AE;\n}\n\n.apexcharts-yaxistooltip:after, .apexcharts-yaxistooltip:before {\n\ttop: 50%;\n\tborder: solid transparent;\n\tcontent: \" \";\n\theight: 0;\n\twidth: 0;\n\tposition: absolute;\n\tpointer-events: none;\n}\n.apexcharts-yaxistooltip:after {\n\tborder-color: rgba(236, 239, 241, 0);\n\tborder-width: 6px;\n\tmargin-top: -6px;\n}\n.apexcharts-yaxistooltip:before {\n\tborder-color: rgba(144, 164, 174, 0);\n\tborder-width: 7px;\n\tmargin-top: -7px;\n}\n\n.apexcharts-yaxistooltip-left:after, .apexcharts-yaxistooltip-left:before {\n left: 100%;\n}\n.apexcharts-yaxistooltip-left:after {\n border-left-color: #ECEFF1;\n}\n.apexcharts-yaxistooltip-left:before {\n border-left-color: #90A4AE;\n}\n\n.apexcharts-yaxistooltip-right:after, .apexcharts-yaxistooltip-right:before {\n right: 100%;\n}\n.apexcharts-yaxistooltip-right:after {\n border-right-color: #ECEFF1;\n}\n.apexcharts-yaxistooltip-right:before {\n border-right-color: #90A4AE;\n}\n\n.apexcharts-yaxistooltip.active {\n opacity: 1;\n}\n\n.apexcharts-xcrosshairs, .apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: 0.15s ease all;\n}\n\n.apexcharts-xcrosshairs.active, .apexcharts-ycrosshairs.active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-ycrosshairs-hidden {\n opacity: 0;\n}\n\n.apexcharts-zoom-rect {\n pointer-events: none;\n}\n.apexcharts-selection-rect {\n cursor: move;\n}\n\n.svg_select_points, .svg_select_points_rot {\n opacity: 0;\n visibility: hidden;\n}\n.svg_select_points_l, .svg_select_points_r {\n cursor: ew-resize;\n opacity: 1;\n visibility: visible;\n fill: #888;\n}\n.apexcharts-canvas.zoomable .hovering-zoom {\n cursor: crosshair\n}\n.apexcharts-canvas.zoomable .hovering-pan {\n cursor: move\n}\n\n.apexcharts-xaxis,\n.apexcharts-yaxis {\n pointer-events: none;\n}\n\n.apexcharts-zoom-icon, \n.apexcharts-zoom-in-icon,\n.apexcharts-zoom-out-icon,\n.apexcharts-reset-zoom-icon, \n.apexcharts-pan-icon, \n.apexcharts-selection-icon,\n.apexcharts-menu-icon, \n.apexcharts-toolbar-custom-icon {\n cursor: pointer;\n width: 20px;\n height: 20px;\n line-height: 24px;\n color: #6E8192;\n text-align: center;\n}\n\n.apexcharts-zoom-icon svg, \n.apexcharts-zoom-in-icon svg,\n.apexcharts-zoom-out-icon svg,\n.apexcharts-reset-zoom-icon svg,\n.apexcharts-menu-icon svg {\n fill: #6E8192;\n}\n.apexcharts-selection-icon svg {\n fill: #444;\n transform: scale(0.76)\n}\n.apexcharts-zoom-icon.selected svg, \n.apexcharts-selection-icon.selected svg, \n.apexcharts-reset-zoom-icon.selected svg {\n fill: #008FFB;\n}\n.apexcharts-selection-icon:not(.selected):hover svg,\n.apexcharts-zoom-icon:not(.selected):hover svg, \n.apexcharts-zoom-in-icon:hover svg, \n.apexcharts-zoom-out-icon:hover svg, \n.apexcharts-reset-zoom-icon:hover svg, \n.apexcharts-menu-icon:hover svg {\n fill: #333;\n}\n\n.apexcharts-selection-icon, .apexcharts-menu-icon {\n position: relative;\n}\n.apexcharts-reset-zoom-icon {\n margin-left: 5px;\n}\n.apexcharts-zoom-icon, .apexcharts-reset-zoom-icon, .apexcharts-menu-icon {\n transform: scale(0.85);\n}\n\n.apexcharts-zoom-in-icon, .apexcharts-zoom-out-icon {\n transform: scale(0.7)\n}\n\n.apexcharts-zoom-out-icon {\n margin-right: 3px;\n}\n\n.apexcharts-pan-icon {\n transform: scale(0.62);\n position: relative;\n left: 1px;\n top: 0px;\n}\n.apexcharts-pan-icon svg {\n fill: #fff;\n stroke: #6E8192;\n stroke-width: 2;\n}\n.apexcharts-pan-icon.selected svg {\n stroke: #008FFB;\n}\n.apexcharts-pan-icon:not(.selected):hover svg {\n stroke: #333;\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n top: 0px;\n right: 3px;\n max-width: 176px;\n text-align: right;\n border-radius: 3px;\n padding: 0px 6px 2px 6px;\n display: flex;\n justify-content: space-between;\n align-items: center; \n}\n\n.apexcharts-toolbar svg {\n pointer-events: none;\n}\n\n.apexcharts-menu {\n background: #fff;\n position: absolute;\n top: 100%;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 3px;\n right: 10px;\n opacity: 0;\n min-width: 110px;\n transition: 0.15s ease all;\n pointer-events: none;\n}\n\n.apexcharts-menu.open {\n opacity: 1;\n pointer-events: all;\n transition: 0.15s ease all;\n}\n\n.apexcharts-menu-item {\n padding: 6px 7px;\n font-size: 12px;\n cursor: pointer;\n}\n.apexcharts-menu-item:hover {\n background: #eee;\n}\n\n@media screen and (min-width: 768px) {\n .apexcharts-toolbar {\n /*opacity: 0;*/\n }\n\n .apexcharts-canvas:hover .apexcharts-toolbar {\n opacity: 1;\n } \n}\n\n.apexcharts-datalabel.hidden {\n opacity: 0;\n}\n\n.apexcharts-pie-label,\n.apexcharts-datalabel, .apexcharts-datalabel-label, .apexcharts-datalabel-value {\n cursor: default;\n pointer-events: none;\n}\n\n.apexcharts-pie-label-delay {\n opacity: 0;\n animation-name: opaque;\n animation-duration: 0.3s;\n animation-fill-mode: forwards;\n animation-timing-function: ease;\n}\n\n.apexcharts-canvas .hidden {\n opacity: 0;\n}\n\n.apexcharts-hide .apexcharts-series-points {\n opacity: 0;\n}\n\n.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events, .apexcharts-radar-series path, .apexcharts-radar-series polygon {\n pointer-events: none;\n}\n\n/* markers */\n\n.apexcharts-marker {\n transition: 0.15s ease all;\n}\n\n@keyframes opaque {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}"; +styleInject(css); + +/* + * classList.js: Cross-browser full element.classList implementation. + * 1.2.20171210 + * + * By Eli Grey, http://eligrey.com + * License: Dedicated to the public domain. + * See https://github.com/eligrey/classList.js/blob/master/LICENSE.md + */ + +/*global self, document, DOMException */ + +/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */ +if ("document" in self) { + // Full polyfill for browsers with no classList support + // Including IE < Edge missing SVGElement.classList + if (!("classList" in document.createElement("_")) || document.createElementNS && !("classList" in document.createElementNS("http://www.w3.org/2000/svg", "g"))) { + (function (view) { + + if (!('Element' in view)) return; + + var classListProp = "classList", + protoProp = "prototype", + elemCtrProto = view.Element[protoProp], + objCtr = Object, + strTrim = String[protoProp].trim || function () { + return this.replace(/^\s+|\s+$/g, ""); + }, + arrIndexOf = Array[protoProp].indexOf || function (item) { + var i = 0, + len = this.length; + + for (; i < len; i++) { + if (i in this && this[i] === item) { + return i; + } + } + + return -1; + } // Vendors: please allow content code to instantiate DOMExceptions + , + DOMEx = function DOMEx(type, message) { + this.name = type; + this.code = DOMException[type]; + this.message = message; + }, + checkTokenAndGetIndex = function checkTokenAndGetIndex(classList, token) { + if (token === "") { + throw new DOMEx("SYNTAX_ERR", "The token must not be empty."); + } + + if (/\s/.test(token)) { + throw new DOMEx("INVALID_CHARACTER_ERR", "The token must not contain space characters."); + } + + return arrIndexOf.call(classList, token); + }, + ClassList = function ClassList(elem) { + var trimmedClasses = strTrim.call(elem.getAttribute("class") || ""), + classes = trimmedClasses ? trimmedClasses.split(/\s+/) : [], + i = 0, + len = classes.length; + + for (; i < len; i++) { + this.push(classes[i]); + } + + this._updateClassName = function () { + elem.setAttribute("class", this.toString()); + }; + }, + classListProto = ClassList[protoProp] = [], + classListGetter = function classListGetter() { + return new ClassList(this); + }; // Most DOMException implementations don't allow calling DOMException's toString() + // on non-DOMExceptions. Error's toString() is sufficient here. + + + DOMEx[protoProp] = Error[protoProp]; + + classListProto.item = function (i) { + return this[i] || null; + }; + + classListProto.contains = function (token) { + return ~checkTokenAndGetIndex(this, token + ""); + }; + + classListProto.add = function () { + var tokens = arguments, + i = 0, + l = tokens.length, + token, + updated = false; + + do { + token = tokens[i] + ""; + + if (!~checkTokenAndGetIndex(this, token)) { + this.push(token); + updated = true; + } + } while (++i < l); + + if (updated) { + this._updateClassName(); + } + }; + + classListProto.remove = function () { + var tokens = arguments, + i = 0, + l = tokens.length, + token, + updated = false, + index; + + do { + token = tokens[i] + ""; + index = checkTokenAndGetIndex(this, token); + + while (~index) { + this.splice(index, 1); + updated = true; + index = checkTokenAndGetIndex(this, token); + } + } while (++i < l); + + if (updated) { + this._updateClassName(); + } + }; + + classListProto.toggle = function (token, force) { + var result = this.contains(token), + method = result ? force !== true && "remove" : force !== false && "add"; + + if (method) { + this[method](token); + } + + if (force === true || force === false) { + return force; + } else { + return !result; + } + }; + + classListProto.replace = function (token, replacement_token) { + var index = checkTokenAndGetIndex(token + ""); + + if (~index) { + this.splice(index, 1, replacement_token); + + this._updateClassName(); + } + }; + + classListProto.toString = function () { + return this.join(" "); + }; + + if (objCtr.defineProperty) { + var classListPropDesc = { + get: classListGetter, + enumerable: true, + configurable: true + }; + + try { + objCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc); + } catch (ex) { + // IE 8 doesn't support enumerable:true + // adding undefined to fight this issue https://github.com/eligrey/classList.js/issues/36 + // modernie IE8-MSW7 machine has IE8 8.0.6001.18702 and is affected + if (ex.number === undefined || ex.number === -0x7FF5EC54) { + classListPropDesc.enumerable = false; + objCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc); + } + } + } else if (objCtr[protoProp].__defineGetter__) { + elemCtrProto.__defineGetter__(classListProp, classListGetter); + } + })(self); + } // There is full or partial native classList support, so just check if we need + // to normalize the add/remove and toggle APIs. + + + (function () { + + var testElement = document.createElement("_"); + testElement.classList.add("c1", "c2"); // Polyfill for IE 10/11 and Firefox <26, where classList.add and + // classList.remove exist but support only one argument at a time. + + if (!testElement.classList.contains("c2")) { + var createMethod = function createMethod(method) { + var original = DOMTokenList.prototype[method]; + + DOMTokenList.prototype[method] = function (token) { + var i, + len = arguments.length; + + for (i = 0; i < len; i++) { + token = arguments[i]; + original.call(this, token); + } + }; + }; + + createMethod('add'); + createMethod('remove'); + } + + testElement.classList.toggle("c3", false); // Polyfill for IE 10 and Firefox <24, where classList.toggle does not + // support the second argument. + + if (testElement.classList.contains("c3")) { + var _toggle = DOMTokenList.prototype.toggle; + + DOMTokenList.prototype.toggle = function (token, force) { + if (1 in arguments && !this.contains(token) === !force) { + return force; + } else { + return _toggle.call(this, token); + } + }; + } // replace() polyfill + + + if (!("replace" in document.createElement("_").classList)) { + DOMTokenList.prototype.replace = function (token, replacement_token) { + var tokens = this.toString().split(" "), + index = tokens.indexOf(token + ""); + + if (~index) { + tokens = tokens.slice(index); + this.remove.apply(this, tokens); + this.add(replacement_token); + this.add.apply(this, tokens.slice(1)); + } + }; + } + + testElement = null; + })(); +} + +/** +* Detect Element Resize +* +* https://github.com/sdecima/javascript-detect-element-resize +* Sebastian Decima +* +* version: 0.5.3 +**/ +(function () { + var stylesCreated = false; + + function resetTriggers(element) { + var triggers = element.__resizeTriggers__, + expand = triggers.firstElementChild, + contract = triggers.lastElementChild, + expandChild = expand.firstElementChild; + contract.scrollLeft = contract.scrollWidth; + contract.scrollTop = contract.scrollHeight; + expandChild.style.width = expand.offsetWidth + 1 + 'px'; + expandChild.style.height = expand.offsetHeight + 1 + 'px'; + expand.scrollLeft = expand.scrollWidth; + expand.scrollTop = expand.scrollHeight; + } + + function checkTriggers(element) { + return element.offsetWidth != element.__resizeLast__.width || element.offsetHeight != element.__resizeLast__.height; + } + + function scrollListener(e) { + var element = this; + resetTriggers(this); + if (this.__resizeRAF__) cancelFrame(this.__resizeRAF__); + this.__resizeRAF__ = requestFrame(function () { + if (checkTriggers(element)) { + element.__resizeLast__.width = element.offsetWidth; + element.__resizeLast__.height = element.offsetHeight; + + element.__resizeListeners__.forEach(function (fn) { + fn.call(e); + }); + } + }); + } + + function createStyles() { + if (!stylesCreated) { + // opacity:0 works around a chrome bug https://code.google.com/p/chromium/issues/detail?id=286360 + var css = (animationKeyframes || '') + '.resize-triggers { ' + (animationStyle || '') + 'visibility: hidden; opacity: 0; } ' + '.resize-triggers, .resize-triggers > div, .contract-trigger:before { content: \" \"; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', + head = document.head || document.getElementsByTagName('head')[0], + style = document.createElement('style'); + style.type = 'text/css'; + + if (style.styleSheet) { + style.styleSheet.cssText = css; + } else { + style.appendChild(document.createTextNode(css)); + } + + head.appendChild(style); + stylesCreated = true; + } + } + + var requestFrame = function () { + var raf = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || function (fn) { + return window.setTimeout(fn, 20); + }; + + return function (fn) { + return raf(fn); + }; + }(); + + var cancelFrame = function () { + var cancel = window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || window.clearTimeout; + return function (id) { + return cancel(id); + }; + }(); + /* Detect CSS Animations support to detect element display/re-attach */ + + + var animation = false, + keyframeprefix = '', + animationstartevent = 'animationstart', + domPrefixes = 'Webkit Moz O ms'.split(' '), + startEvents = 'webkitAnimationStart animationstart oAnimationStart MSAnimationStart'.split(' '), + pfx = ''; + { + var elm = document.createElement('fakeelement'); + + if (elm.style.animationName !== undefined) { + animation = true; + } + + if (animation === false) { + for (var i = 0; i < domPrefixes.length; i++) { + if (elm.style[domPrefixes[i] + 'AnimationName'] !== undefined) { + pfx = domPrefixes[i]; + keyframeprefix = '-' + pfx.toLowerCase() + '-'; + animationstartevent = startEvents[i]; + break; + } + } + } + } + var animationName = 'resizeanim'; + var animationKeyframes = '@' + keyframeprefix + 'keyframes ' + animationName + ' { from { opacity: 0; } to { opacity: 0; } } '; + var animationStyle = keyframeprefix + 'animation: 1ms ' + animationName + '; '; + + window.addResizeListener = function (element, fn) { + if (!element.__resizeTriggers__) { + if (getComputedStyle(element).position == 'static') element.style.position = 'relative'; + createStyles(); + element.__resizeLast__ = {}; + element.__resizeListeners__ = []; + (element.__resizeTriggers__ = document.createElement('div')).className = 'resize-triggers'; + element.__resizeTriggers__.innerHTML = '
' + '
'; + element.appendChild(element.__resizeTriggers__); + resetTriggers(element); + element.addEventListener('scroll', scrollListener, true); + /* Listen for a css animation to detect element display/re-attach */ + + animationstartevent && element.__resizeTriggers__.addEventListener(animationstartevent, function (e) { + if (e.animationName == animationName) { + resetTriggers(element); + } + }); + } + + element.__resizeListeners__.push(fn); + }; + + window.removeResizeListener = function (element, fn) { + if (element) { + element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1); + + if (!element.__resizeListeners__.length) { + element.removeEventListener('scroll', scrollListener); + element.__resizeTriggers__ = !element.removeChild(element.__resizeTriggers__); + } + } + }; +})(); + +window.Apex = {}; +/** + * + * @module ApexCharts + **/ + +var ApexCharts$1 = +/*#__PURE__*/ +function () { + function ApexCharts(el, opts) { + _classCallCheck(this, ApexCharts); + + this.opts = opts; + this.ctx = this; // Pass the user supplied options to the Base Class where these options will be extended with defaults. The returned object from Base Class will become the config object in the entire codebase. + + this.w = new Base(opts).init(); + this.el = el; + this.w.globals.cuid = (Math.random() + 1).toString(36).substring(4); + this.w.globals.chartID = this.w.config.chart.id ? this.w.config.chart.id : this.w.globals.cuid; + this.initModules(); + this.create = Utils.bind(this.create, this); + this.windowResizeHandler = this.windowResize.bind(this); + } + /** + * The primary method user will call to render the chart. + */ + + + _createClass(ApexCharts, [{ + key: "render", + value: function render() { + var _this = this; + + // main method + return new Promise$1(function (resolve, reject) { + // only draw chart, if element found + if (_this.el !== null) { + if (typeof Apex._chartInstances === 'undefined') { + Apex._chartInstances = []; + } + + if (_this.w.config.chart.id) { + Apex._chartInstances.push({ + id: _this.w.globals.chartID, + group: _this.w.config.chart.group, + chart: _this + }); + } // set the locale here + + + _this.setLocale(_this.w.config.chart.defaultLocale); + + var beforeMount = _this.w.config.chart.events.beforeMount; + + if (typeof beforeMount === 'function') { + beforeMount(_this, _this.w); + } + + _this.fireEvent('beforeMount', [_this, _this.w]); + + window.addEventListener('resize', _this.windowResizeHandler); + window.addResizeListener(_this.el.parentNode, _this.parentResizeCallback.bind(_this)); + + var graphData = _this.create(_this.w.config.series, {}); + + if (!graphData) return resolve(_this); + + _this.mount(graphData).then(function () { + resolve(graphData); + + if (typeof _this.w.config.chart.events.mounted === 'function') { + _this.w.config.chart.events.mounted(_this, _this.w); + } + + _this.fireEvent('mounted', [_this, _this.w]); + }).catch(function (e) { + reject(e); // handle error in case no data or element not found + }); + } else { + reject(new Error('Element not found')); + } + }); + } + }, { + key: "initModules", + value: function initModules() { + this.animations = new Animations(this.ctx); + this.annotations = new Annotations(this.ctx); + this.core = new Core(this.el, this); + this.grid = new Grid(this); + this.coreUtils = new CoreUtils(this); + this.config = new Config({}); + this.crosshairs = new Crosshairs(this.ctx); + this.options = new Options(); + this.responsive = new Responsive(this.ctx); + this.series = new Series(this.ctx); + this.theme = new Theme(this.ctx); + this.formatters = new Formatters(this.ctx); + this.titleSubtitle = new TitleSubtitle(this.ctx); + this.legend = new Legend(this.ctx); + this.toolbar = new Toolbar(this.ctx); + this.dimensions = new Dimensions(this.ctx); + this.zoomPanSelection = new ZoomPanSelection(this.ctx); + this.w.globals.tooltip = new Tooltip(this.ctx); + } + }, { + key: "addEventListener", + value: function addEventListener(name$$1, handler) { + var w = this.w; + + if (w.globals.events.hasOwnProperty(name$$1)) { + w.globals.events[name$$1].push(handler); + } else { + w.globals.events[name$$1] = [handler]; + } + } + }, { + key: "removeEventListener", + value: function removeEventListener(name$$1, handler) { + var w = this.w; + + if (!w.globals.events.hasOwnProperty(name$$1)) { + return; + } + + var index = w.globals.events[name$$1].indexOf(handler); + + if (index !== -1) { + w.globals.events[name$$1].splice(index, 1); + } + } + }, { + key: "fireEvent", + value: function fireEvent(name$$1, args) { + var w = this.w; + + if (!w.globals.events.hasOwnProperty(name$$1)) { + return; + } + + if (!args || !args.length) { + args = []; + } + + var evs = w.globals.events[name$$1]; + var l = evs.length; + + for (var i = 0; i < l; i++) { + evs[i].apply(null, args); + } + } + }, { + key: "create", + value: function create(ser, opts) { + var w = this.w; + this.initModules(); + var gl = this.w.globals; + gl.noData = false; + gl.animationEnded = false; + this.responsive.checkResponsiveConfig(opts); + + if (this.el === null) { + gl.animationEnded = true; + return null; + } + + this.core.setupElements(); + + if (gl.svgWidth === 0) { + // if the element is hidden, skip drawing + gl.animationEnded = true; + return null; + } + + var combo = CoreUtils.checkComboSeries(ser); + gl.comboCharts = combo.comboCharts; + gl.comboChartsHasBars = combo.comboChartsHasBars; + + if (ser.length === 0 || ser.length === 1 && ser[0].data && ser[0].data.length === 0) { + this.series.handleNoData(); + } + + this.setupEventHandlers(); + this.core.parseData(ser); // this is a good time to set theme colors first + + this.theme.init(); // labelFormatters should be called before dimensions as in dimensions we need text labels width + // as markers accepts array, we need to setup global markers for easier access + + var markers = new Markers(this); + markers.setGlobalMarkerSize(); + this.formatters.setLabelFormatters(); + this.titleSubtitle.draw(); // legend is calculated here before coreCalculations because it affects the plottable area + + this.legend.init(); // check whether in multiple series, all series share the same X + + this.series.hasAllSeriesEqualX(); // coreCalculations will give the min/max range and yaxis/axis values. It should be called here to set series variable from config to globals + + if (gl.axisCharts) { + this.core.coreCalculations(); + + if (w.config.xaxis.type !== 'category') { + // as we have minX and maxX values, determine the default DateTimeFormat for time series + this.formatters.setLabelFormatters(); + } + } // we need to generate yaxis for heatmap separately as we are not showing numerics there, but seriesNames. There are some tweaks which are required for heatmap to align labels correctly which are done in below function + // Also we need to do this before calcuting Dimentions plotCoords() method of Dimensions + + + this.formatters.heatmapLabelFormatters(); // We got plottable area here, next task would be to calculate axis areas + + this.dimensions.plotCoords(); + var xyRatios = this.core.xySettings(); + this.grid.createGridMask(); + var elGraph = this.core.plotChartType(ser, xyRatios); // after all the drawing calculations, shift the graphical area (actual charts/bars) excluding legends + + this.core.shiftGraphPosition(); + var dim = { + plot: { + left: w.globals.translateX, + top: w.globals.translateY, + width: w.globals.gridWidth, + height: w.globals.gridHeight + } + }; + return { + elGraph: elGraph, + xyRatios: xyRatios, + elInner: w.globals.dom.elGraphical, + dimensions: dim + }; + } + }, { + key: "mount", + value: function mount() { + var graphData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + var me = this; + var w = me.w; + return new Promise$1(function (resolve, reject) { + // no data to display + if (me.el === null) { + return reject(new Error('Not enough data to display or target element not found')); + } else if (graphData === null || w.globals.allSeriesCollapsed) { + me.series.handleNoData(); + } + + me.core.drawAxis(w.config.chart.type, graphData.xyRatios); + me.grid = new Grid(me); + + if (w.config.grid.position === 'back') { + me.grid.drawGrid(); + } + + if (w.config.annotations.position === 'back') { + me.annotations.drawAnnotations(); + } + + if (graphData.elGraph instanceof Array) { + for (var g = 0; g < graphData.elGraph.length; g++) { + w.globals.dom.elGraphical.add(graphData.elGraph[g]); + } + } else { + w.globals.dom.elGraphical.add(graphData.elGraph); + } + + if (w.config.grid.position === 'front') { + me.grid.drawGrid(); + } + + if (w.config.xaxis.crosshairs.position === 'front') { + me.crosshairs.drawXCrosshairs(); + } + + if (w.config.yaxis[0].crosshairs.position === 'front') { + me.crosshairs.drawYCrosshairs(); + } + + if (w.config.annotations.position === 'front') { + me.annotations.drawAnnotations(); + } + + if (!w.globals.noData) { + // draw tooltips at the end + if (w.config.tooltip.enabled && !w.globals.noData) { + me.w.globals.tooltip.drawTooltip(graphData.xyRatios); + } + + if (w.globals.axisCharts && w.globals.isXNumeric) { + if (w.config.chart.zoom.enabled || w.config.chart.selection && w.config.chart.selection.enabled || w.config.chart.pan && w.config.chart.pan.enabled) { + me.zoomPanSelection.init({ + xyRatios: graphData.xyRatios + }); + } + } else { + var tools = w.config.chart.toolbar.tools; + tools.zoom = false; + tools.zoomin = false; + tools.zoomout = false; + tools.selection = false; + tools.pan = false; + tools.reset = false; + } + + if (w.config.chart.toolbar.show && !w.globals.allSeriesCollapsed) { + me.toolbar.createToolbar(); + } + } + + if (w.globals.memory.methodsToExec.length > 0) { + w.globals.memory.methodsToExec.forEach(function (fn) { + fn.method(fn.params, false, fn.context); + }); + } + + resolve(me); + }); + } + }, { + key: "clearPreviousPaths", + value: function clearPreviousPaths() { + var w = this.w; + w.globals.previousPaths = []; + w.globals.allSeriesCollapsed = false; + w.globals.collapsedSeries = []; + w.globals.collapsedSeriesIndices = []; + } + /** + * Allows users to update Options after the chart has rendered. + * + * @param {object} options - A new config object can be passed which will be merged with the existing config object + * @param {boolean} redraw - should redraw from beginning or should use existing paths and redraw from there + * @param {boolean} animate - should animate or not on updating Options + */ + + }, { + key: "updateOptions", + value: function updateOptions(options$$1) { + var redraw = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + var animate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + var overwriteInitialConfig = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true; + var w = this.w; + + if (options$$1.series) { + if (options$$1.series[0].data) { + options$$1.series = options$$1.series.map(function (s, i) { + return _objectSpread({}, w.config.series[i], { + name: s.name ? s.name : w.config.series[i].name, + type: s.type, + data: s.data + }); + }); + } // user updated the series via updateOptions() function. + // Hence, we need to reset axis min/max to avoid zooming issues + + + this.revertDefaultAxisMinMax(); + } // user has set x-axis min/max externally - hence we need to forcefully set the xaxis min/max + + + if (options$$1.xaxis) { + if (options$$1.xaxis.min || options$$1.xaxis.max) { + this.forceXAxisUpdate(options$$1); + } + /* fixes apexcharts.js#369 and react-apexcharts#46 */ + + + if (options$$1.xaxis.categories && options$$1.xaxis.categories.length && w.config.xaxis.convertedCatToNumeric) { + options$$1 = Defaults.convertCatToNumeric(options$$1); + } + } + + if (w.globals.collapsedSeriesIndices.length > 0) { + this.clearPreviousPaths(); + } + + return this._updateOptions(options$$1, redraw, animate, overwriteInitialConfig); + } + /** + * private method to update Options. + * + * @param {object} options - A new config object can be passed which will be merged with the existing config object + * @param {boolean} redraw - should redraw from beginning or should use existing paths and redraw from there + * @param {boolean} animate - should animate or not on updating Options + * @param {boolean} overwriteInitialConfig - should update the initial config or not + */ + + }, { + key: "_updateOptions", + value: function _updateOptions(options$$1) { + var redraw = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + var animate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + var overwriteInitialConfig = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; + var charts = this.getSyncedCharts(); + charts.forEach(function (ch) { + var w = ch.w; + w.globals.shouldAnimate = animate; + + if (!redraw) { + w.globals.resized = true; + w.globals.dataChanged = true; + + if (animate) { + ch.series.getPreviousPaths(); + } + } + + if (options$$1 && _typeof(options$$1) === 'object') { + ch.config = new Config(options$$1); + options$$1 = CoreUtils.extendArrayProps(ch.config, options$$1); + w.config = Utils.extend(w.config, options$$1); + + if (overwriteInitialConfig) { + // we need to forget the lastXAxis and lastYAxis is user forcefully overwriteInitialConfig. If we do not do this, and next time when user zooms the chart after setting yaxis.min/max or xaxis.min/max - the stored lastXAxis will never allow the chart to use the updated min/max by user. + w.globals.lastXAxis = []; + w.globals.lastYAxis = []; // After forgetting lastAxes, we need to restore the new config in initialConfig/initialSeries + + w.globals.initialConfig = Utils.extend({}, w.config); + w.globals.initialSeries = JSON.parse(JSON.stringify(w.config.series)); + } + } + + return ch.update(options$$1); + }); + } + /** + * Allows users to update Series after the chart has rendered. + * + * @param {array} series - New series which will override the existing + */ + + }, { + key: "updateSeries", + value: function updateSeries() { + var newSeries = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var animate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var overwriteInitialSeries = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + this.revertDefaultAxisMinMax(); + return this._updateSeries(newSeries, animate, overwriteInitialSeries); + } + /** + * Allows users to append a new series after the chart has rendered. + * + * @param {array} newSerie - New serie which will be appended to the existing series + */ + + }, { + key: "appendSeries", + value: function appendSeries(newSerie) { + var animate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var newSeries = this.w.config.series.slice(); + newSeries.push(newSerie); + this.revertDefaultAxisMinMax(); + return this._updateSeries(newSeries, animate); + } + /** + * Private method to update Series. + * + * @param {array} series - New series which will override the existing + */ + + }, { + key: "_updateSeries", + value: function _updateSeries(newSeries, animate) { + var overwriteInitialSeries = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; + var w = this.w; + this.w.globals.shouldAnimate = animate; + w.globals.dataChanged = true; // if user has collapsed some series with legend, we need to clear those + + if (w.globals.allSeriesCollapsed) { + w.globals.allSeriesCollapsed = false; + } + + if (animate) { + this.series.getPreviousPaths(); + } + + var existingSeries; // axis charts + + if (newSeries[0].data) { + existingSeries = newSeries.map(function (s, i) { + return _objectSpread({}, w.config.series[i], { + name: s.name ? s.name : w.config.series[i].name, + type: s.type, + data: s.data + }); + }); + w.config.series = existingSeries; + } else { + // non-axis chart (pie/radialbar) + w.config.series = newSeries.slice(); + } + + if (overwriteInitialSeries) { + w.globals.initialConfig.series = JSON.parse(JSON.stringify(w.config.series)); + w.globals.initialSeries = JSON.parse(JSON.stringify(w.config.series)); + } + + return this.update(); + } + /** + * Get all charts in the same "group" (including the instance which is called upon) to sync them when user zooms in/out or pan. + */ + + }, { + key: "getSyncedCharts", + value: function getSyncedCharts() { + var chartGroups = this.getGroupedCharts(); + var allCharts = [this]; + + if (chartGroups.length) { + allCharts = []; + chartGroups.forEach(function (ch) { + allCharts.push(ch); + }); + } + + return allCharts; + } + /** + * Get charts in the same "group" (excluding the instance which is called upon) to perform operations on the other charts of the same group (eg., tooltip hovering) + */ + + }, { + key: "getGroupedCharts", + value: function getGroupedCharts() { + var _this2 = this; + + return Apex._chartInstances.filter(function (ch) { + if (ch.group) { + return true; + } + }).map(function (ch) { + return _this2.w.config.chart.group === ch.group ? ch.chart : _this2; + }); + } + /** + * Allows users to append Data to series. + * + * @param {array} newData - New data in the same format as series + */ + + }, { + key: "appendData", + value: function appendData(newData) { + var overwriteInitialSeries = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var me = this; + me.w.globals.dataChanged = true; + me.series.getPreviousPaths(); + var newSeries = me.w.config.series.slice(); + + for (var i = 0; i < newSeries.length; i++) { + if (typeof newData[i] !== 'undefined') { + for (var j = 0; j < newData[i].data.length; j++) { + newSeries[i].data.push(newData[i].data[j]); + } + } + } + + me.w.config.series = newSeries; + + if (overwriteInitialSeries) { + me.w.globals.initialSeries = JSON.parse(JSON.stringify(me.w.config.series)); + } + + return this.update(); + } + }, { + key: "update", + value: function update(options$$1) { + var _this3 = this; + + return new Promise$1(function (resolve, reject) { + _this3.clear(); + + var graphData = _this3.create(_this3.w.config.series, options$$1); + + if (!graphData) return resolve(_this3); + + _this3.mount(graphData).then(function () { + if (typeof _this3.w.config.chart.events.updated === 'function') { + _this3.w.config.chart.events.updated(_this3, _this3.w); + } + + _this3.fireEvent('updated', [_this3, _this3.w]); + + _this3.w.globals.isDirty = true; + resolve(_this3); + }).catch(function (e) { + reject(e); + }); + }); + } + }, { + key: "forceXAxisUpdate", + value: function forceXAxisUpdate(options$$1) { + var w = this.w; + + if (typeof options$$1.xaxis.min !== 'undefined') { + w.config.xaxis.min = options$$1.xaxis.min; + w.globals.lastXAxis.min = options$$1.xaxis.min; + } + + if (typeof options$$1.xaxis.max !== 'undefined') { + w.config.xaxis.max = options$$1.xaxis.max; + w.globals.lastXAxis.max = options$$1.xaxis.max; + } + } + /** + * This function reverts the yaxis and xaxis min/max values to what it was when the chart was defined. + * This function fixes an important bug where a user might load a new series after zooming in/out of previous series which resulted in wrong min/max + * Also, this should never be called internally on zoom/pan - the reset should only happen when user calls the updateSeries() function externally + */ + + }, { + key: "revertDefaultAxisMinMax", + value: function revertDefaultAxisMinMax() { + var w = this.w; + w.config.xaxis.min = w.globals.lastXAxis.min; + w.config.xaxis.max = w.globals.lastXAxis.max; + w.config.yaxis.map(function (yaxe, index) { + if (w.globals.zoomed) { + // if user has zoomed, and this function is called + // then we need to get the lastAxis min and max + if (typeof w.globals.lastYAxis[index] !== 'undefined') { + yaxe.min = w.globals.lastYAxis[index].min; + yaxe.max = w.globals.lastYAxis[index].max; + } + } + }); + } + }, { + key: "clear", + value: function clear() { + if (this.zoomPanSelection) { + this.zoomPanSelection.destroy(); + } + + if (this.toolbar) { + this.toolbar.destroy(); + } + + this.animations = null; + this.annotations = null; + this.core = null; + this.grid = null; + this.series = null; + this.responsive = null; + this.theme = null; + this.formatters = null; + this.titleSubtitle = null; + this.legend = null; + this.dimensions = null; + this.options = null; + this.crosshairs = null; + this.zoomPanSelection = null; + this.toolbar = null; + this.w.globals.tooltip = null; + this.clearDomElements(); + } + }, { + key: "killSVG", + value: function killSVG(draw) { + return new Promise$1(function (resolve, reject) { + draw.each(function (i, children) { + this.removeClass('*'); + this.off(); + this.stop(); + }, true); + draw.ungroup(); + draw.clear(); + resolve('done'); + }); + } + }, { + key: "clearDomElements", + value: function clearDomElements() { + var domEls = this.w.globals.dom; + + if (this.el !== null) { + // remove all child elements - resetting the whole chart + while (this.el.firstChild) { + this.el.removeChild(this.el.firstChild); + } + } + + this.killSVG(domEls.Paper); + domEls.Paper.remove(); + domEls.elWrap = null; + domEls.elGraphical = null; + domEls.elLegendWrap = null; + domEls.baseEl = null; + domEls.elGridRect = null; + domEls.elGridRectMask = null; + domEls.elGridRectMarkerMask = null; + domEls.elDefs = null; + } + /** + * Destroy the chart instance by removing all elements which also clean up event listeners on those elements. + */ + + }, { + key: "destroy", + value: function destroy() { + this.clear(); // remove the chart's instance from the global Apex._chartInstances + + var chartID = this.w.config.chart.id; + + if (chartID) { + Apex._chartInstances.forEach(function (c, i) { + if (c.id === chartID) { + Apex._chartInstances.splice(i, 1); + } + }); + } + + window.removeEventListener('resize', this.windowResizeHandler); + window.removeResizeListener(this.el.parentNode, this.parentResizeCallback.bind(this)); + } + /** + * Allows the user to provide data attrs in the element and the chart will render automatically when this method is called by searching for the elements containing 'data-apexcharts' attribute + */ + + }, { + key: "toggleSeries", + value: function toggleSeries(seriesName) { + var targetElement = this.series.getSeriesByName(seriesName); + var seriesCnt = parseInt(targetElement.getAttribute('data:realIndex')); + var isHidden = targetElement.classList.contains('apexcharts-series-collapsed'); + this.legend.toggleDataSeries(seriesCnt, isHidden); + } + }, { + key: "resetToggleSeries", + value: function resetToggleSeries() { + this.legend.resetToggleDataSeries(); + } + }, { + key: "setupEventHandlers", + value: function setupEventHandlers() { + var w = this.w; + var me = this; + var clickableArea = w.globals.dom.baseEl.querySelector(w.globals.chartClass); + var eventList = ['mousedown', 'mousemove', 'touchstart', 'touchmove', 'mouseup', 'touchend']; + eventList.forEach(function (event) { + clickableArea.addEventListener(event, function (e) { + if (e.type === 'mousedown' && e.which === 1) ; else if (e.type === 'mouseup' && e.which === 1 || e.type === 'touchend') { + if (typeof w.config.chart.events.click === 'function') { + w.config.chart.events.click(e, me, w); + } + + me.fireEvent('click', [e, me, w]); + } + }, { + capture: false, + passive: true + }); + }); + this.core.setupBrushHandler(); + } + }, { + key: "addXaxisAnnotation", + value: function addXaxisAnnotation(opts) { + var pushToMemory = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined; + var me = this; + + if (context) { + me = context; + } + + me.annotations.addXaxisAnnotationExternal(opts, pushToMemory, me); + } + }, { + key: "addYaxisAnnotation", + value: function addYaxisAnnotation(opts) { + var pushToMemory = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined; + var me = this; + + if (context) { + me = context; + } + + me.annotations.addYaxisAnnotationExternal(opts, pushToMemory, me); + } + }, { + key: "addPointAnnotation", + value: function addPointAnnotation(opts) { + var pushToMemory = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined; + var me = this; + + if (context) { + me = context; + } + + me.annotations.addPointAnnotationExternal(opts, pushToMemory, me); + } + }, { + key: "clearAnnotations", + value: function clearAnnotations() { + var context = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined; + var me = this; + + if (context) { + me = context; + } + + me.annotations.clearAnnotations(me); + } // This method is never used internally and will be only called externally on the chart instance. + // Hence, we need to keep all these elements in memory when the chart gets updated and redraw again + + }, { + key: "addText", + value: function addText(options$$1) { + var pushToMemory = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined; + var me = this; + + if (context) { + me = context; + } + + me.annotations.addText(options$$1, pushToMemory, me); + } + }, { + key: "getChartArea", + value: function getChartArea() { + var el = this.w.globals.dom.baseEl.querySelector('.apexcharts-inner'); + return el; + } + }, { + key: "getSeriesTotalXRange", + value: function getSeriesTotalXRange(minX, maxX) { + return this.coreUtils.getSeriesTotalsXRange(minX, maxX); + } + }, { + key: "getHighestValueInSeries", + value: function getHighestValueInSeries() { + var seriesIndex = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; + var range = new Range$1(this.ctx); + var minYmaxY = range.getMinYMaxY(seriesIndex); + return minYmaxY.highestY; + } + }, { + key: "getLowestValueInSeries", + value: function getLowestValueInSeries() { + var seriesIndex = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; + var range = new Range$1(this.ctx); + var minYmaxY = range.getMinYMaxY(seriesIndex); + return minYmaxY.lowestY; + } + }, { + key: "getSeriesTotal", + value: function getSeriesTotal() { + return this.w.globals.seriesTotals; + } + }, { + key: "setLocale", + value: function setLocale(localeName) { + this.setCurrentLocaleValues(localeName); + } + }, { + key: "setCurrentLocaleValues", + value: function setCurrentLocaleValues(localeName) { + var locales = this.w.config.chart.locales; // check if user has specified locales in global Apex variable + // if yes - then extend those with local chart's locale + + if (window.Apex.chart && window.Apex.chart.locales && window.Apex.chart.locales.length > 0) { + locales = this.w.config.chart.locales.concat(window.Apex.chart.locales); + } // find the locale from the array of locales which user has set (either by chart.defaultLocale or by calling setLocale() method.) + + + var selectedLocale = locales.filter(function (c) { + return c.name === localeName; + })[0]; + + if (selectedLocale) { + // create a complete locale object by extending defaults so you don't get undefined errors. + var ret = Utils.extend(en, selectedLocale); // store these locale options in global var for ease access + + this.w.globals.locale = ret.options; + } else { + throw new Error('Wrong locale name provided. Please make sure you set the correct locale name in options'); + } + } + }, { + key: "svgUrl", + value: function svgUrl() { + var exp = new Exports(this.ctx); + return exp.svgUrl(); + } + }, { + key: "dataURI", + value: function dataURI() { + var exp = new Exports(this.ctx); + return exp.dataURI(); + } + }, { + key: "paper", + value: function paper() { + return this.w.globals.dom.Paper; + } + }, { + key: "parentResizeCallback", + value: function parentResizeCallback() { + if (this.w.globals.animationEnded) { + this.windowResize(); + } + } + /** + * Handle window resize and re-draw the whole chart. + */ + + }, { + key: "windowResize", + value: function windowResize() { + var _this4 = this; + + clearTimeout(this.w.globals.resizeTimer); + this.w.globals.resizeTimer = window.setTimeout(function () { + _this4.w.globals.resized = true; + _this4.w.globals.dataChanged = false; // we need to redraw the whole chart on window resize (with a small delay). + + _this4.update(); + }, 150); + } + }], [{ + key: "initOnLoad", + value: function initOnLoad() { + var els = document.querySelectorAll('[data-apexcharts]'); + + for (var i = 0; i < els.length; i++) { + var el = els[i]; + var options$$1 = JSON.parse(els[i].getAttribute('data-options')); + var apexChart = new ApexCharts(el, options$$1); + apexChart.render(); + } + } + /** + * This static method allows users to call chart methods without necessarily from the + * instance of the chart in case user has assigned chartID to the targetted chart. + * The chartID is used for mapping the instance stored in Apex._chartInstances global variable + * + * This is helpful in cases when you don't have reference of the chart instance + * easily and need to call the method from anywhere. + * For eg, in React/Vue applications when you have many parent/child components, + * and need easy reference to other charts for performing dynamic operations + * + * @param {string} chartID - The unique identifier which will be used to call methods + * on that chart instance + * @param {function} fn - The method name to call + * @param {object} opts - The parameters which are accepted in the original method will be passed here in the same order. + */ + + }, { + key: "exec", + value: function exec(chartID, fn) { + var chart = this.getChartByID(chartID); + if (!chart) return; + + for (var _len = arguments.length, opts = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + opts[_key - 2] = arguments[_key]; + } + + switch (fn) { + case 'updateOptions': + { + return chart.updateOptions.apply(chart, opts); + } + + case 'updateSeries': + { + return chart.updateSeries.apply(chart, opts); + } + + case 'appendData': + { + return chart.appendData.apply(chart, opts); + } + + case 'addXaxisAnnotation': + { + return chart.addXaxisAnnotation.apply(chart, opts); + } + + case 'addYaxisAnnotation': + { + return chart.addYaxisAnnotation.apply(chart, opts); + } + + case 'addPointAnnotation': + { + return chart.addPointAnnotation.apply(chart, opts); + } + + case 'clearAnnotations': + { + return chart.clearAnnotations.apply(chart, opts); + } + + case 'destroy': + { + return chart.destroy(); + } + } + } + }, { + key: "merge", + value: function merge(target, source) { + return Utils.extend(target, source); + } + }, { + key: "getChartByID", + value: function getChartByID(chartID) { + var c = Apex._chartInstances.filter(function (ch) { + return ch.id === chartID; + })[0]; + + return c.chart; + } + }]); + + return ApexCharts; +}(); + +export default ApexCharts$1; diff --git a/libs/apexcharts/apexcharts.js b/libs/apexcharts/apexcharts.js new file mode 100644 index 000000000..0661f2fe2 --- /dev/null +++ b/libs/apexcharts/apexcharts.js @@ -0,0 +1,27549 @@ +/*! + * ApexCharts v3.6.2 + * (c) 2018-2019 Juned Chhipa + * Released under the MIT License. + */ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : + typeof define === 'function' && define.amd ? define(factory) : + (global = global || self, global.ApexCharts = factory()); +}(this, function () { 'use strict'; + + function _typeof(obj) { + if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { + _typeof = function (obj) { + return typeof obj; + }; + } else { + _typeof = function (obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + } + + return _typeof(obj); + } + + function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + } + + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + + function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + return Constructor; + } + + function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + + return obj; + } + + function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? arguments[i] : {}; + var ownKeys = Object.keys(source); + + if (typeof Object.getOwnPropertySymbols === 'function') { + ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + })); + } + + ownKeys.forEach(function (key) { + _defineProperty(target, key, source[key]); + }); + } + + return target; + } + + function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function"); + } + + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + writable: true, + configurable: true + } + }); + if (superClass) _setPrototypeOf(subClass, superClass); + } + + function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); + } + + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + + return _setPrototypeOf(o, p); + } + + function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; + } + + function _possibleConstructorReturn(self, call) { + if (call && (typeof call === "object" || typeof call === "function")) { + return call; + } + + return _assertThisInitialized(self); + } + + function _toConsumableArray(arr) { + return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); + } + + function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) { + for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; + + return arr2; + } + } + + function _iterableToArray(iter) { + if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); + } + + function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance"); + } + + /* + ** Generic functions which are not dependent on ApexCharts + */ + var Utils = + /*#__PURE__*/ + function () { + function Utils() { + _classCallCheck(this, Utils); + } + + _createClass(Utils, [{ + key: "shadeRGBColor", + value: function shadeRGBColor(percent, color) { + var f = color.split(','), + t = percent < 0 ? 0 : 255, + p = percent < 0 ? percent * -1 : percent, + R = parseInt(f[0].slice(4)), + G = parseInt(f[1]), + B = parseInt(f[2]); + return 'rgb(' + (Math.round((t - R) * p) + R) + ',' + (Math.round((t - G) * p) + G) + ',' + (Math.round((t - B) * p) + B) + ')'; + } + }, { + key: "shadeHexColor", + value: function shadeHexColor(percent, color) { + var f = parseInt(color.slice(1), 16), + t = percent < 0 ? 0 : 255, + p = percent < 0 ? percent * -1 : percent, + R = f >> 16, + G = f >> 8 & 0x00ff, + B = f & 0x0000ff; + return '#' + (0x1000000 + (Math.round((t - R) * p) + R) * 0x10000 + (Math.round((t - G) * p) + G) * 0x100 + (Math.round((t - B) * p) + B)).toString(16).slice(1); + } // beautiful color shading blending code + // http://stackoverflow.com/questions/5560248/programmatically-lighten-or-darken-a-hex-color-or-rgb-and-blend-colors + + }, { + key: "shadeColor", + value: function shadeColor(p, color) { + if (color.length > 7) return this.shadeRGBColor(p, color);else return this.shadeHexColor(p, color); + } + }], [{ + key: "bind", + value: function bind(fn, me) { + return function () { + return fn.apply(me, arguments); + }; + } + }, { + key: "isObject", + value: function isObject(item) { + return item && _typeof(item) === 'object' && !Array.isArray(item) && item != null; + } // to extend defaults with user options + // credit: http://stackoverflow.com/questions/27936772/deep-object-merging-in-es6-es7#answer-34749873 + + }, { + key: "extend", + value: function extend(target, source) { + var _this = this; + + if (typeof Object.assign !== 'function') { + + (function () { + Object.assign = function (target) { + + if (target === undefined || target === null) { + throw new TypeError('Cannot convert undefined or null to object'); + } + + var output = Object(target); + + for (var index = 1; index < arguments.length; index++) { + var _source = arguments[index]; + + if (_source !== undefined && _source !== null) { + for (var nextKey in _source) { + if (_source.hasOwnProperty(nextKey)) { + output[nextKey] = _source[nextKey]; + } + } + } + } + + return output; + }; + })(); + } + + var output = Object.assign({}, target); + + if (this.isObject(target) && this.isObject(source)) { + Object.keys(source).forEach(function (key) { + if (_this.isObject(source[key])) { + if (!(key in target)) { + Object.assign(output, _defineProperty({}, key, source[key])); + } else { + output[key] = _this.extend(target[key], source[key]); + } + } else { + Object.assign(output, _defineProperty({}, key, source[key])); + } + }); + } + + return output; + } + }, { + key: "extendArray", + value: function extendArray(arrToExtend, resultArr) { + var extendedArr = []; + arrToExtend.map(function (item) { + extendedArr.push(Utils.extend(resultArr, item)); + }); + arrToExtend = extendedArr; + return arrToExtend; + } // If month counter exceeds 12, it starts again from 1 + + }, { + key: "monthMod", + value: function monthMod(month) { + return month % 12; + } + }, { + key: "addProps", + value: function addProps(obj, arr, val) { + if (typeof arr === 'string') { + arr = arr.split('.'); + } + + obj[arr[0]] = obj[arr[0]] || {}; + var tmpObj = obj[arr[0]]; + + if (arr.length > 1) { + arr.shift(); + this.addProps(tmpObj, arr, val); + } else { + obj[arr[0]] = val; + } + + return obj; + } + }, { + key: "clone", + value: function clone(source) { + if (Object.prototype.toString.call(source) === '[object Array]') { + var cloneResult = []; + + for (var i = 0; i < source.length; i++) { + cloneResult[i] = this.clone(source[i]); + } + + return cloneResult; + } else if (_typeof(source) === 'object') { + var _cloneResult = {}; + + for (var prop in source) { + if (source.hasOwnProperty(prop)) { + _cloneResult[prop] = this.clone(source[prop]); + } + } + + return _cloneResult; + } else { + return source; + } + } + }, { + key: "log10", + value: function log10(x) { + return Math.log(x) / Math.LN10; + } + }, { + key: "roundToBase10", + value: function roundToBase10(x) { + return Math.pow(10, Math.floor(Math.log10(x))); + } + }, { + key: "roundToBase", + value: function roundToBase(x, base) { + return Math.pow(base, Math.floor(Math.log(x) / Math.log(base))); + } + }, { + key: "parseNumber", + value: function parseNumber(val) { + if (val === null) return val; + return parseFloat(val); + } + }, { + key: "getDimensions", + value: function getDimensions(el) { + var computedStyle = getComputedStyle(el); + var ret = []; + var elementHeight = el.clientHeight; + var elementWidth = el.clientWidth; + elementHeight -= parseFloat(computedStyle.paddingTop) + parseFloat(computedStyle.paddingBottom); + elementWidth -= parseFloat(computedStyle.paddingLeft) + parseFloat(computedStyle.paddingRight); + ret.push(elementWidth); + ret.push(elementHeight); + return ret; + } + }, { + key: "getBoundingClientRect", + value: function getBoundingClientRect(element) { + var rect = element.getBoundingClientRect(); + return { + top: rect.top, + right: rect.right, + bottom: rect.bottom, + left: rect.left, + width: rect.width, + height: rect.height, + x: rect.x, + y: rect.y + }; + } // http://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb#answer-12342275 + + }, { + key: "hexToRgba", + value: function hexToRgba() { + var hex = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '#999999'; + var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.6; + + if (hex.substring(0, 1) !== '#') { + hex = '#999999'; + } + + var h = hex.replace('#', ''); + h = h.match(new RegExp('(.{' + h.length / 3 + '})', 'g')); + + for (var i = 0; i < h.length; i++) { + h[i] = parseInt(h[i].length === 1 ? h[i] + h[i] : h[i], 16); + } + + if (typeof opacity !== 'undefined') h.push(opacity); + return 'rgba(' + h.join(',') + ')'; + } + }, { + key: "getOpacityFromRGBA", + value: function getOpacityFromRGBA(rgba) { + rgba = rgba.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i); + return rgba[3]; + } + }, { + key: "rgb2hex", + value: function rgb2hex(rgb) { + rgb = rgb.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i); + return rgb && rgb.length === 4 ? '#' + ('0' + parseInt(rgb[1], 10).toString(16)).slice(-2) + ('0' + parseInt(rgb[2], 10).toString(16)).slice(-2) + ('0' + parseInt(rgb[3], 10).toString(16)).slice(-2) : ''; + } + }, { + key: "isColorHex", + value: function isColorHex(color) { + return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(color); + } + }, { + key: "polarToCartesian", + value: function polarToCartesian(centerX, centerY, radius, angleInDegrees) { + var angleInRadians = (angleInDegrees - 90) * Math.PI / 180.0; + return { + x: centerX + radius * Math.cos(angleInRadians), + y: centerY + radius * Math.sin(angleInRadians) + }; + } + }, { + key: "escapeString", + value: function escapeString(str) { + var escapeWith = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'x'; + var newStr = str.toString().slice(); + newStr = newStr.replace(/[` ~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi, escapeWith); + return newStr; + } + }, { + key: "negToZero", + value: function negToZero(val) { + return val < 0 ? 0 : val; + } + }, { + key: "moveIndexInArray", + value: function moveIndexInArray(arr, old_index, new_index) { + if (new_index >= arr.length) { + var k = new_index - arr.length + 1; + + while (k--) { + arr.push(undefined); + } + } + + arr.splice(new_index, 0, arr.splice(old_index, 1)[0]); + return arr; + } + }, { + key: "extractNumber", + value: function extractNumber(s) { + return parseFloat(s.replace(/[^\d\.]*/g, '')); + } + }, { + key: "randomString", + value: function randomString(len) { + var text = ''; + var possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; + + for (var i = 0; i < len; i++) { + text += possible.charAt(Math.floor(Math.random() * possible.length)); + } + + return text; + } + }, { + key: "findAncestor", + value: function findAncestor(el, cls) { + while ((el = el.parentElement) && !el.classList.contains(cls)) { + } + + return el; + } + }, { + key: "setELstyles", + value: function setELstyles(el, styles) { + for (var key in styles) { + if (styles.hasOwnProperty(key)) { + el.style.key = styles[key]; + } + } + } + }, { + key: "isNumber", + value: function isNumber(value) { + return !isNaN(value) && parseFloat(Number(value)) === value && !isNaN(parseInt(value, 10)); + } + }, { + key: "isFloat", + value: function isFloat(n) { + return Number(n) === n && n % 1 !== 0; + } + }, { + key: "isSafari", + value: function isSafari() { + return /^((?!chrome|android).)*safari/i.test(navigator.userAgent); + } + }, { + key: "isFirefox", + value: function isFirefox() { + return navigator.userAgent.toLowerCase().indexOf('firefox') > -1; + } + }, { + key: "isIE11", + value: function isIE11() { + if (window.navigator.userAgent.indexOf('MSIE') !== -1 || window.navigator.appVersion.indexOf('Trident/') > -1) { + return true; + } + } + }, { + key: "isIE", + value: function isIE() { + var ua = window.navigator.userAgent; + var msie = ua.indexOf('MSIE '); + + if (msie > 0) { + // IE 10 or older => return version number + return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10); + } + + var trident = ua.indexOf('Trident/'); + + if (trident > 0) { + // IE 11 => return version number + var rv = ua.indexOf('rv:'); + return parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10); + } + + var edge = ua.indexOf('Edge/'); + + if (edge > 0) { + // Edge (IE 12+) => return version number + return parseInt(ua.substring(edge + 5, ua.indexOf('.', edge)), 10); + } // other browser + + + return false; + } + }]); + + return Utils; + }(); + + /** + * ApexCharts Filters Class for setting hover/active states on the paths. + * + * @module Formatters + **/ + + var Filters = + /*#__PURE__*/ + function () { + function Filters(ctx) { + _classCallCheck(this, Filters); + + this.ctx = ctx; + this.w = ctx.w; + } // create a re-usable filter which can be appended other filter effects and applied to multiple elements + + + _createClass(Filters, [{ + key: "getDefaultFilter", + value: function getDefaultFilter(el) { + var w = this.w; + el.unfilter(true); + var filter = new window.SVG.Filter(); + filter.size('120%', '180%', '-5%', '-40%'); + + if (w.config.states.normal.filter !== 'none') { + this.applyFilter(el, w.config.states.normal.filter.type, w.config.states.normal.filter.value); + } else { + if (w.config.chart.dropShadow.enabled) { + this.dropShadow(el, w.config.chart.dropShadow); + } + } + } + }, { + key: "addNormalFilter", + value: function addNormalFilter(el) { + var w = this.w; + + if (w.config.chart.dropShadow.enabled) { + this.dropShadow(el, w.config.chart.dropShadow); + } + } + }, { + key: "addDesaturateFilter", + value: function addDesaturateFilter(el) { + var _this = this; + + var w = this.w; + el.unfilter(true); + var filter = new window.SVG.Filter(); + filter.size('120%', '180%', '-5%', '-40%'); + el.filter(function (add) { + var shadowAttr = w.config.chart.dropShadow; + + if (shadowAttr.enabled) { + filter = _this.addShadow(add, shadowAttr); + } else { + filter = add; + } + + filter.colorMatrix('matrix', [0, 0, 0, 0, 0.5, 0, 0, 0, 0, 0.5, 0, 0, 0, 0, 0.5, 0, 0, 0, 1.0, 0]).colorMatrix('saturate', 0); + }); + el.filterer.node.setAttribute('filterUnits', 'userSpaceOnUse'); + } // appends dropShadow to the filter object which can be chained with other filter effects + + }, { + key: "addLightenFilter", + value: function addLightenFilter(el, attrs) { + var _this2 = this; + + var w = this.w; + var intensity = attrs.intensity; + + if (Utils.isFirefox()) { + return; + } + + el.unfilter(true); + var filter = new window.SVG.Filter(); + filter.size('120%', '180%', '-5%', '-40%'); + el.filter(function (add) { + var shadowAttr = w.config.chart.dropShadow; + + if (shadowAttr.enabled) { + filter = _this2.addShadow(add, shadowAttr); + } else { + filter = add; + } + + filter.componentTransfer({ + rgb: { + type: 'linear', + slope: 1.5, + intercept: intensity + } + }); + }); + el.filterer.node.setAttribute('filterUnits', 'userSpaceOnUse'); + } // appends dropShadow to the filter object which can be chained with other filter effects + + }, { + key: "addDarkenFilter", + value: function addDarkenFilter(el, attrs) { + var _this3 = this; + + var w = this.w; + var intensity = attrs.intensity; + + if (Utils.isFirefox()) { + return; + } + + el.unfilter(true); + var filter = new window.SVG.Filter(); + filter.size('120%', '180%', '-5%', '-40%'); + el.filter(function (add) { + var shadowAttr = w.config.chart.dropShadow; + + if (shadowAttr.enabled) { + filter = _this3.addShadow(add, shadowAttr); + } else { + filter = add; + } + + filter.componentTransfer({ + rgb: { + type: 'linear', + slope: intensity + } + }); + }); + el.filterer.node.setAttribute('filterUnits', 'userSpaceOnUse'); + } + }, { + key: "applyFilter", + value: function applyFilter(el, filter) { + var intensity = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0.5; + + switch (filter) { + case 'none': + { + this.addNormalFilter(el); + break; + } + + case 'lighten': + { + this.addLightenFilter(el, { + intensity: intensity + }); + break; + } + + case 'darken': + { + this.addDarkenFilter(el, { + intensity: intensity + }); + break; + } + + case 'desaturate': + { + this.addDesaturateFilter(el); + break; + } + + default: + // do nothing + break; + } + } // appends dropShadow to the filter object which can be chained with other filter effects + + }, { + key: "addShadow", + value: function addShadow(add, attrs) { + var blur = attrs.blur, + top = attrs.top, + left = attrs.left, + color = attrs.color, + opacity = attrs.opacity; + var shadowBlur = add.flood(color, opacity).composite(add.sourceAlpha, 'in').offset(left, top).gaussianBlur(blur).merge(add.source); + return add.blend(add.source, shadowBlur); + } // directly adds dropShadow to the element and returns the same element. + // the only way it is different from the addShadow() function is that addShadow is chainable to other filters, while this function discards all filters and add dropShadow + + }, { + key: "dropShadow", + value: function dropShadow(el, attrs) { + var top = attrs.top, + left = attrs.left, + blur = attrs.blur, + color = attrs.color, + opacity = attrs.opacity, + noUserSpaceOnUse = attrs.noUserSpaceOnUse; + el.unfilter(true); + var filter = new window.SVG.Filter(); + filter.size('120%', '180%', '-5%', '-40%'); + el.filter(function (add) { + var shadowBlur = null; + + if (Utils.isSafari() || Utils.isFirefox() || Utils.isIE()) { + // safari/firefox has some alternative way to use this filter + shadowBlur = add.flood(color, opacity).composite(add.sourceAlpha, 'in').offset(left, top).gaussianBlur(blur); + } else { + shadowBlur = add.flood(color, opacity).composite(add.sourceAlpha, 'in').offset(left, top).gaussianBlur(blur).merge(add.source); + } + + add.blend(add.source, shadowBlur); + }); + + if (!noUserSpaceOnUse) { + el.filterer.node.setAttribute('filterUnits', 'userSpaceOnUse'); + } + + return el; + } + }, { + key: "setSelectionFilter", + value: function setSelectionFilter(el, realIndex, dataPointIndex) { + var w = this.w; + + if (typeof w.globals.selectedDataPoints[realIndex] !== 'undefined') { + if (w.globals.selectedDataPoints[realIndex].indexOf(dataPointIndex) > -1) { + el.node.setAttribute('selected', true); + var activeFilter = w.config.states.active.filter; + + if (activeFilter !== 'none') { + this.applyFilter(el, activeFilter.type, activeFilter.value); + } + } + } + } + }]); + + return Filters; + }(); + + /** + * ApexCharts Animation Class. + * + * @module Animations + **/ + + var Animations = + /*#__PURE__*/ + function () { + function Animations(ctx) { + _classCallCheck(this, Animations); + + this.ctx = ctx; + this.w = ctx.w; + this.setEasingFunctions(); + } + + _createClass(Animations, [{ + key: "setEasingFunctions", + value: function setEasingFunctions() { + var easing; + var userDefinedEasing = this.w.config.chart.animations.easing; + + switch (userDefinedEasing) { + case 'linear': + { + easing = '-'; + break; + } + + case 'easein': + { + easing = '<'; + break; + } + + case 'easeout': + { + easing = '>'; + break; + } + + case 'easeinout': + { + easing = '<>'; + break; + } + + case 'swing': + { + easing = function easing(pos) { + var s = 1.70158; + return (pos -= 1) * pos * ((s + 1) * pos + s) + 1; + }; + + break; + } + + case 'bounce': + { + easing = function easing(pos) { + if (pos < 1 / 2.75) { + return 7.5625 * pos * pos; + } else if (pos < 2 / 2.75) { + return 7.5625 * (pos -= 1.5 / 2.75) * pos + 0.75; + } else if (pos < 2.5 / 2.75) { + return 7.5625 * (pos -= 2.25 / 2.75) * pos + 0.9375; + } else { + return 7.5625 * (pos -= 2.625 / 2.75) * pos + 0.984375; + } + }; + + break; + } + + case 'elastic': + { + easing = function easing(pos) { + if (pos === !!pos) return pos; + return Math.pow(2, -10 * pos) * Math.sin((pos - 0.075) * (2 * Math.PI) / 0.3) + 1; + }; + + break; + } + + default: + { + easing = '<>'; + } + } + + this.w.globals.easing = easing; + } + }, { + key: "animateLine", + value: function animateLine(el, from, to, speed) { + el.attr(from).animate(speed).attr(to); + } + /* + ** Animate radius of a circle element + */ + + }, { + key: "animateCircleRadius", + value: function animateCircleRadius(el, from, to, speed, easing) { + if (!from) from = 0; + el.attr({ + r: from + }).animate(speed, easing).attr({ + r: to + }); + } + /* + ** Animate radius and position of a circle element + */ + + }, { + key: "animateCircle", + value: function animateCircle(el, from, to, speed, easing) { + el.attr({ + r: from.r, + cx: from.cx, + cy: from.cy + }).animate(speed, easing).attr({ + r: to.r, + cx: to.cx, + cy: to.cy + }); + } + /* + ** Animate rect properties + */ + + }, { + key: "animateRect", + value: function animateRect(el, from, to, speed, fn) { + el.attr(from).animate(speed).attr(to).afterAll(function () { + fn(); + }); + } + }, { + key: "animatePathsGradually", + value: function animatePathsGradually(params) { + var el = params.el, + j = params.j, + pathFrom = params.pathFrom, + pathTo = params.pathTo, + speed = params.speed, + delay = params.delay, + strokeWidth = params.strokeWidth; + var me = this; + var w = this.w; + var delayFactor = 0; + + if (w.config.chart.animations.animateGradually.enabled) { + delayFactor = w.config.chart.animations.animateGradually.delay; + } + + if (w.config.chart.animations.dynamicAnimation.enabled && w.globals.dataChanged) { + delayFactor = 0; + } + + me.morphSVG(el, j, pathFrom, pathTo, speed, strokeWidth, delay * delayFactor); + } + }, { + key: "showDelayedElements", + value: function showDelayedElements() { + this.w.globals.delayedElements.forEach(function (d) { + var ele = d.el; + ele.classList.remove('hidden'); + }); + } // SVG.js animation for morphing one path to another + + }, { + key: "morphSVG", + value: function morphSVG(el, j, pathFrom, pathTo, speed, strokeWidth, delay) { + var _this = this; + + var w = this.w; + + if (!pathFrom) { + pathFrom = el.attr('pathFrom'); + } + + if (!pathTo) { + pathTo = el.attr('pathTo'); + } + + if (!pathFrom || pathFrom.indexOf('undefined') > -1 || pathFrom.indexOf('NaN') > -1) { + pathFrom = "M 0 ".concat(w.globals.gridHeight); + speed = 1; + } + + if (pathTo.indexOf('undefined') > -1 || pathTo.indexOf('NaN') > -1) { + pathTo = "M 0 ".concat(w.globals.gridHeight); + speed = 1; + } + + if (!w.globals.shouldAnimate) { + speed = 1; + } + + el.plot(pathFrom).animate(1, w.globals.easing, delay).plot(pathFrom).animate(speed, w.globals.easing, delay).plot(pathTo).afterAll(function () { + // a flag to indicate that the original mount function can return true now as animation finished here + if (Utils.isNumber(j)) { + if (j === w.globals.series[w.globals.maxValsInArrayIndex].length - 2 && w.globals.shouldAnimate) { + w.globals.animationEnded = true; + } + } else if (w.globals.shouldAnimate) { + w.globals.animationEnded = true; + + if (typeof w.config.chart.events.animationEnd === 'function') { + w.config.chart.events.animationEnd(_this.ctx, w); + } + } + + _this.showDelayedElements(); + }); + } + }]); + + return Animations; + }(); + + /** + * ApexCharts Graphics Class for all drawing operations. + * + * @module Graphics + **/ + + var Graphics = + /*#__PURE__*/ + function () { + function Graphics(ctx) { + _classCallCheck(this, Graphics); + + this.ctx = ctx; + this.w = ctx.w; + } + + _createClass(Graphics, [{ + key: "drawLine", + value: function drawLine(x1, y1, x2, y2) { + var lineColor = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '#a8a8a8'; + var dashArray = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0; + var strokeWidth = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null; + var w = this.w; + var line = w.globals.dom.Paper.line().attr({ + x1: x1, + y1: y1, + x2: x2, + y2: y2, + stroke: lineColor, + 'stroke-dasharray': dashArray, + 'stroke-width': strokeWidth + }); + return line; + } + }, { + key: "drawRect", + value: function drawRect() { + var x1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; + var y1 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; + var x2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; + var y2 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0; + var radius = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0; + var color = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '#fefefe'; + var opacity = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : 1; + var strokeWidth = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : null; + var strokeColor = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : null; + var strokeDashArray = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : 0; + var w = this.w; + var rect = w.globals.dom.Paper.rect(); + rect.attr({ + x: x1, + y: y1, + width: x2 > 0 ? x2 : 0, + height: y2 > 0 ? y2 : 0, + rx: radius, + ry: radius, + fill: color, + opacity: opacity, + 'stroke-width': strokeWidth !== null ? strokeWidth : 0, + stroke: strokeColor !== null ? strokeColor : 'none', + 'stroke-dasharray': strokeDashArray + }); + return rect; + } + }, { + key: "drawPolygon", + value: function drawPolygon(polygonString) { + var stroke = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '#e1e1e1'; + var fill = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'none'; + var w = this.w; + var polygon = w.globals.dom.Paper.polygon(polygonString).attr({ + fill: fill, + stroke: stroke + }); + return polygon; + } + }, { + key: "drawCircle", + value: function drawCircle(radius) { + var attrs = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + var w = this.w; + var c = w.globals.dom.Paper.circle(radius * 2); + + if (attrs !== null) { + c.attr(attrs); + } + + return c; + } + }, { + key: "drawPath", + value: function drawPath(_ref) { + var _ref$d = _ref.d, + d = _ref$d === void 0 ? '' : _ref$d, + _ref$stroke = _ref.stroke, + stroke = _ref$stroke === void 0 ? '#a8a8a8' : _ref$stroke, + _ref$strokeWidth = _ref.strokeWidth, + strokeWidth = _ref$strokeWidth === void 0 ? 1 : _ref$strokeWidth, + fill = _ref.fill, + _ref$fillOpacity = _ref.fillOpacity, + fillOpacity = _ref$fillOpacity === void 0 ? 1 : _ref$fillOpacity, + _ref$strokeOpacity = _ref.strokeOpacity, + strokeOpacity = _ref$strokeOpacity === void 0 ? 1 : _ref$strokeOpacity, + classes = _ref.classes, + _ref$strokeLinecap = _ref.strokeLinecap, + strokeLinecap = _ref$strokeLinecap === void 0 ? null : _ref$strokeLinecap, + _ref$strokeDashArray = _ref.strokeDashArray, + strokeDashArray = _ref$strokeDashArray === void 0 ? 0 : _ref$strokeDashArray; + var w = this.w; + + if (strokeLinecap === null) { + strokeLinecap = w.config.stroke.lineCap; + } + + if (d.indexOf('undefined') > -1 || d.indexOf('NaN') > -1) { + d = "M 0 ".concat(w.globals.gridHeight); + } + + var p = w.globals.dom.Paper.path(d).attr({ + fill: fill, + 'fill-opacity': fillOpacity, + stroke: stroke, + 'stroke-opacity': strokeOpacity, + 'stroke-linecap': strokeLinecap, + 'stroke-width': strokeWidth, + 'stroke-dasharray': strokeDashArray, + class: classes + }); + return p; + } + }, { + key: "group", + value: function group() { + var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + var w = this.w; + var g = w.globals.dom.Paper.group(); + + if (attrs !== null) { + g.attr(attrs); + } + + return g; + } + }, { + key: "move", + value: function move(x, y) { + var move = ['M', x, y].join(' '); + return move; + } + }, { + key: "line", + value: function line(x, y) { + var hORv = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + var line = null; + + if (hORv === null) { + line = ['L', x, y].join(' '); + } else if (hORv === 'H') { + line = ['H', x].join(' '); + } else if (hORv === 'V') { + line = ['V', y].join(' '); + } + + return line; + } + }, { + key: "curve", + value: function curve(x1, y1, x2, y2, x, y) { + var curve = ['C', x1, y1, x2, y2, x, y].join(' '); + return curve; + } + }, { + key: "quadraticCurve", + value: function quadraticCurve(x1, y1, x, y) { + var curve = ['Q', x1, y1, x, y].join(' '); + return curve; + } + }, { + key: "arc", + value: function arc(rx, ry, axisRotation, largeArcFlag, sweepFlag, x, y) { + var relative = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : false; + var coord = 'A'; + if (relative) coord = 'a'; + var arc = [coord, rx, ry, axisRotation, largeArcFlag, sweepFlag, x, y].join(' '); + return arc; + } + /** + * @memberof Graphics + * @param {object} + * i = series's index + * realIndex = realIndex is series's actual index when it was drawn time. After several redraws, the iterating "i" may change in loops, but realIndex doesn't + * pathFrom = existing pathFrom to animateTo + * pathTo = new Path to which d attr will be animated from pathFrom to pathTo + * stroke = line Color + * strokeWidth = width of path Line + * fill = it can be gradient, single color, pattern or image + * animationDelay = how much to delay when starting animation (in milliseconds) + * dataChangeSpeed = for dynamic animations, when data changes + * className = class attribute to add + * @return {object} svg.js path object + **/ + + }, { + key: "renderPaths", + value: function renderPaths(_ref2) { + var i = _ref2.i, + j = _ref2.j, + realIndex = _ref2.realIndex, + pathFrom = _ref2.pathFrom, + pathTo = _ref2.pathTo, + stroke = _ref2.stroke, + strokeWidth = _ref2.strokeWidth, + strokeLinecap = _ref2.strokeLinecap, + fill = _ref2.fill, + animationDelay = _ref2.animationDelay, + initialSpeed = _ref2.initialSpeed, + dataChangeSpeed = _ref2.dataChangeSpeed, + className = _ref2.className, + id = _ref2.id, + _ref2$shouldClipToGri = _ref2.shouldClipToGrid, + shouldClipToGrid = _ref2$shouldClipToGri === void 0 ? true : _ref2$shouldClipToGri, + _ref2$bindEventsOnPat = _ref2.bindEventsOnPaths, + bindEventsOnPaths = _ref2$bindEventsOnPat === void 0 ? true : _ref2$bindEventsOnPat; + var w = this.w; + var filters = new Filters(this.ctx); + var anim = new Animations(this.ctx); + var initialAnim = this.w.config.chart.animations.enabled; + var dynamicAnim = initialAnim && this.w.config.chart.animations.dynamicAnimation.enabled; + var d; + var shouldAnimate = !!(initialAnim && !w.globals.resized || dynamicAnim && w.globals.dataChanged && w.globals.shouldAnimate); + + if (shouldAnimate) { + d = pathFrom; + } else { + d = pathTo; + this.w.globals.animationEnded = true; + } + + var strokeDashArrayOpt = w.config.stroke.dashArray; + var strokeDashArray = 0; + + if (Array.isArray(strokeDashArrayOpt)) { + strokeDashArray = strokeDashArrayOpt[realIndex]; + } else { + strokeDashArray = w.config.stroke.dashArray; + } + + var el = this.drawPath({ + d: d, + stroke: stroke, + strokeWidth: strokeWidth, + fill: fill, + fillOpacity: 1, + classes: className, + strokeLinecap: strokeLinecap, + strokeDashArray: strokeDashArray + }); + el.attr('id', "".concat(id, "-").concat(i)); + el.attr('index', realIndex); + + if (shouldClipToGrid) { + el.attr({ + 'clip-path': "url(#gridRectMask".concat(w.globals.cuid, ")") + }); + } // const defaultFilter = el.filterer + + + if (w.config.states.normal.filter.type !== 'none') { + filters.getDefaultFilter(el, w.config.states.normal.filter.type, w.config.states.normal.filter.value); + } else { + if (w.config.chart.dropShadow.enabled) { + if (!w.config.chart.dropShadow.enabledSeries || w.config.chart.dropShadow.enabledSeries && w.config.chart.dropShadow.enabledSeries.indexOf(realIndex) !== -1) { + var shadow = w.config.chart.dropShadow; + filters.dropShadow(el, shadow); + } + } + } + + if (bindEventsOnPaths) { + el.node.addEventListener('mouseenter', this.pathMouseEnter.bind(this, el)); + el.node.addEventListener('mouseleave', this.pathMouseLeave.bind(this, el)); + el.node.addEventListener('mousedown', this.pathMouseDown.bind(this, el)); + } + + el.attr({ + pathTo: pathTo, + pathFrom: pathFrom + }); + var defaultAnimateOpts = { + el: el, + j: j, + pathFrom: pathFrom, + pathTo: pathTo, + strokeWidth: strokeWidth + }; + + if (initialAnim && !w.globals.resized && !w.globals.dataChanged) { + anim.animatePathsGradually(_objectSpread({}, defaultAnimateOpts, { + speed: initialSpeed, + delay: animationDelay + })); + } else { + if (w.globals.resized || !w.globals.dataChanged) { + anim.showDelayedElements(); + } + } + + if (w.globals.dataChanged && dynamicAnim && shouldAnimate) { + anim.animatePathsGradually(_objectSpread({}, defaultAnimateOpts, { + speed: dataChangeSpeed + })); + } + + return el; + } + }, { + key: "drawPattern", + value: function drawPattern(style, width, height) { + var stroke = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '#a8a8a8'; + var strokeWidth = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0; + var w = this.w; + var p = w.globals.dom.Paper.pattern(width, height, function (add) { + if (style === 'horizontalLines') { + add.line(0, 0, height, 0).stroke({ + color: stroke, + width: strokeWidth + 1 + }); + } else if (style === 'verticalLines') { + add.line(0, 0, 0, width).stroke({ + color: stroke, + width: strokeWidth + 1 + }); + } else if (style === 'slantedLines') { + add.line(0, 0, width, height).stroke({ + color: stroke, + width: strokeWidth + }); + } else if (style === 'squares') { + add.rect(width, height).fill('none').stroke({ + color: stroke, + width: strokeWidth + }); + } else if (style === 'circles') { + add.circle(width).fill('none').stroke({ + color: stroke, + width: strokeWidth + }); + } + }); + return p; + } + }, { + key: "drawGradient", + value: function drawGradient(style, gfrom, gto, opacityFrom, opacityTo) { + var size = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null; + var stops = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : null; + var colorStops = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : null; + var i = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : 0; + var w = this.w; + var g; + gfrom = Utils.hexToRgba(gfrom, opacityFrom); + gto = Utils.hexToRgba(gto, opacityTo); + var stop1 = 0; + var stop2 = 1; + var stop3 = 1; + var stop4 = null; + + if (stops !== null) { + stop1 = typeof stops[0] !== 'undefined' ? stops[0] / 100 : 0; + stop2 = typeof stops[1] !== 'undefined' ? stops[1] / 100 : 1; + stop3 = typeof stops[2] !== 'undefined' ? stops[2] / 100 : 1; + stop4 = typeof stops[3] !== 'undefined' ? stops[3] / 100 : null; + } + + var radial = !!(w.config.chart.type === 'donut' || w.config.chart.type === 'pie' || w.config.chart.type === 'bubble'); + + if (colorStops === null || colorStops.length === 0) { + g = w.globals.dom.Paper.gradient(radial ? 'radial' : 'linear', function (stop) { + stop.at(stop1, gfrom, opacityFrom); + stop.at(stop2, gto, opacityTo); + stop.at(stop3, gto, opacityTo); + + if (stop4 !== null) { + stop.at(stop4, gfrom, opacityFrom); + } + }); + } else { + g = w.globals.dom.Paper.gradient(radial ? 'radial' : 'linear', function (stop) { + var stops = Array.isArray(colorStops[i]) ? colorStops[i] : colorStops; + stops.forEach(function (s) { + stop.at(s.offset / 100, s.color, s.opacity); + }); + }); + } + + if (!radial) { + if (style === 'vertical') { + g.from(0, 0).to(0, 1); + } else if (style === 'diagonal') { + g.from(0, 0).to(1, 1); + } else if (style === 'horizontal') { + g.from(0, 1).to(1, 1); + } else if (style === 'diagonal2') { + g.from(0, 1).to(2, 2); + } + } else { + var offx = w.globals.gridWidth / 2; + var offy = w.globals.gridHeight / 2; + + if (w.config.chart.type !== 'bubble') { + g.attr({ + gradientUnits: 'userSpaceOnUse', + cx: offx, + cy: offy, + r: size + }); + } else { + g.attr({ + cx: 0.5, + cy: 0.5, + r: 0.8, + fx: 0.2, + fy: 0.2 + }); + } + } + + return g; + } + }, { + key: "drawText", + value: function drawText(opts) { + var w = this.w; + var x = opts.x, + y = opts.y, + text = opts.text, + textAnchor = opts.textAnchor, + fontSize = opts.fontSize, + fontFamily = opts.fontFamily, + foreColor = opts.foreColor, + opacity = opts.opacity; + + if (!textAnchor) { + textAnchor = 'start'; + } + + if (!foreColor) { + foreColor = w.config.chart.foreColor; + } + + fontFamily = fontFamily || w.config.chart.fontFamily; + var elText; + + if (Array.isArray(text)) { + elText = w.globals.dom.Paper.text(function (add) { + for (var i = 0; i < text.length; i++) { + add.tspan(text[i]); + } + }); + } else { + elText = w.globals.dom.Paper.plain(text); + } + + elText.attr({ + x: x, + y: y, + 'text-anchor': textAnchor, + 'dominant-baseline': 'central', + 'font-size': fontSize, + 'font-family': fontFamily, + fill: foreColor, + class: 'apexcharts-text ' + opts.cssClass ? opts.cssClass : '' + }); + elText.node.style.fontFamily = fontFamily; + elText.node.style.opacity = opacity; + return elText; + } + }, { + key: "addTspan", + value: function addTspan(textEl, text, fontFamily) { + var tspan = textEl.tspan(text); + + if (!fontFamily) { + fontFamily = this.w.config.chart.fontFamily; + } + + tspan.node.style.fontFamily = fontFamily; + } + }, { + key: "drawMarker", + value: function drawMarker(x, y, opts) { + x = x || 0; + var size = opts.pSize || 0; + var elPoint = null; + + if (opts.shape === 'square') { + var radius = opts.pRadius === undefined ? size / 2 : opts.pRadius; + + if (y === null) { + size = 0; + radius = 0; + } + + var nSize = size * 1.2 + radius; + var p = this.drawRect(nSize, nSize, nSize, nSize, radius); + p.attr({ + x: x - nSize / 2, + y: y - nSize / 2, + cx: x, + cy: y, + class: opts.class ? opts.class : '', + fill: opts.pointFillColor, + 'fill-opacity': opts.pointFillOpacity ? opts.pointFillOpacity : 1, + stroke: opts.pointStrokeColor, + 'stroke-width': opts.pWidth ? opts.pWidth : 0, + 'stroke-opacity': opts.pointStrokeOpacity ? opts.pointStrokeOpacity : 1 + }); + elPoint = p; + } else if (opts.shape === 'circle') { + if (!Utils.isNumber(y)) { + size = 0; + y = 0; + } // let nSize = size - opts.pRadius / 2 < 0 ? 0 : size - opts.pRadius / 2 + + + elPoint = this.drawCircle(size, { + cx: x, + cy: y, + class: opts.class ? opts.class : '', + stroke: opts.pointStrokeColor, + fill: opts.pointFillColor, + 'fill-opacity': opts.pointFillOpacity ? opts.pointFillOpacity : 1, + 'stroke-width': opts.pWidth ? opts.pWidth : 0, + 'stroke-opacity': opts.pointStrokeOpacity ? opts.pointStrokeOpacity : 1 + }); + } + + return elPoint; + } + }, { + key: "pathMouseEnter", + value: function pathMouseEnter(path, e) { + var w = this.w; + var filters = new Filters(this.ctx); + var i = parseInt(path.node.getAttribute('index')); + var j = parseInt(path.node.getAttribute('j')); + + if (typeof w.config.chart.events.dataPointMouseEnter === 'function') { + w.config.chart.events.dataPointMouseEnter(e, this.ctx, { + seriesIndex: i, + dataPointIndex: j, + w: w + }); + } + + this.ctx.fireEvent('dataPointMouseEnter', [e, this.ctx, { + seriesIndex: i, + dataPointIndex: j, + w: w + }]); + + if (w.config.states.active.filter.type !== 'none') { + if (path.node.getAttribute('selected') === 'true') { + return; + } + } + + if (w.config.states.hover.filter.type !== 'none') { + if (w.config.states.active.filter.type !== 'none' && !w.globals.isTouchDevice) { + var hoverFilter = w.config.states.hover.filter; + filters.applyFilter(path, hoverFilter.type, hoverFilter.value); + } + } + } + }, { + key: "pathMouseLeave", + value: function pathMouseLeave(path, e) { + var w = this.w; + var filters = new Filters(this.ctx); + var i = parseInt(path.node.getAttribute('index')); + var j = parseInt(path.node.getAttribute('j')); + + if (typeof w.config.chart.events.dataPointMouseLeave === 'function') { + w.config.chart.events.dataPointMouseLeave(e, this.ctx, { + seriesIndex: i, + dataPointIndex: j, + w: w + }); + } + + this.ctx.fireEvent('dataPointMouseLeave', [e, this.ctx, { + seriesIndex: i, + dataPointIndex: j, + w: w + }]); + + if (w.config.states.active.filter.type !== 'none') { + if (path.node.getAttribute('selected') === 'true') { + return; + } + } + + if (w.config.states.hover.filter.type !== 'none') { + filters.getDefaultFilter(path); + } + } + }, { + key: "pathMouseDown", + value: function pathMouseDown(path, e) { + var w = this.w; + var filters = new Filters(this.ctx); + var i = parseInt(path.node.getAttribute('index')); + var j = parseInt(path.node.getAttribute('j')); + var selected = 'false'; + + if (path.node.getAttribute('selected') === 'true') { + path.node.setAttribute('selected', 'false'); + + if (w.globals.selectedDataPoints[i].indexOf(j) > -1) { + var index = w.globals.selectedDataPoints[i].indexOf(j); + w.globals.selectedDataPoints[i].splice(index, 1); + } + } else { + if (!w.config.states.active.allowMultipleDataPointsSelection && w.globals.selectedDataPoints.length > 0) { + w.globals.selectedDataPoints = []; + var elPaths = w.globals.dom.Paper.select('.apexcharts-series path').members; + var elCircles = w.globals.dom.Paper.select('.apexcharts-series circle, .apexcharts-series rect').members; + elPaths.forEach(function (elPath) { + elPath.node.setAttribute('selected', 'false'); + filters.getDefaultFilter(elPath); + }); + elCircles.forEach(function (circle) { + circle.node.setAttribute('selected', 'false'); + filters.getDefaultFilter(circle); + }); + } + + path.node.setAttribute('selected', 'true'); + selected = 'true'; + + if (typeof w.globals.selectedDataPoints[i] === 'undefined') { + w.globals.selectedDataPoints[i] = []; + } + + w.globals.selectedDataPoints[i].push(j); + } + + if (selected === 'true') { + var activeFilter = w.config.states.active.filter; + + if (activeFilter !== 'none') { + filters.applyFilter(path, activeFilter.type, activeFilter.value); + } + } else { + if (w.config.states.active.filter.type !== 'none') { + filters.getDefaultFilter(path); + } + } + + if (typeof w.config.chart.events.dataPointSelection === 'function') { + w.config.chart.events.dataPointSelection(e, this.ctx, { + selectedDataPoints: w.globals.selectedDataPoints, + seriesIndex: i, + dataPointIndex: j, + w: w + }); + } + + this.ctx.fireEvent('dataPointSelection', [e, this.ctx, { + selectedDataPoints: w.globals.selectedDataPoints, + seriesIndex: i, + dataPointIndex: j, + w: w + }]); // if (this.w.config.chart.selection.selectedPoints !== undefined) { + // this.w.config.chart.selection.selectedPoints(w.globals.selectedDataPoints) + // } + } + }, { + key: "rotateAroundCenter", + value: function rotateAroundCenter(el) { + var coord = el.getBBox(); + var x = coord.x + coord.width / 2; + var y = coord.y + coord.height / 2; + return { + x: x, + y: y + }; + } + }, { + key: "getTextRects", + value: function getTextRects(text, fontSize, fontFamily, transform) { + var useBBox = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : true; + var w = this.w; + var virtualText = this.drawText({ + x: -200, + y: -200, + text: text, + textAnchor: 'start', + fontSize: fontSize, + fontFamily: fontFamily, + foreColor: '#fff', + opacity: 0 + }); + + if (transform) { + virtualText.attr('transform', transform); + } + + w.globals.dom.Paper.add(virtualText); + var rect = virtualText.bbox(); + + if (!useBBox) { + rect = virtualText.node.getBoundingClientRect(); + } + + virtualText.remove(); + return { + width: rect.width, + height: rect.height + }; + } + /** + * append ... to long text + * http://stackoverflow.com/questions/9241315/trimming-text-to-a-given-pixel-width-in-svg + * @memberof Graphics + **/ + + }, { + key: "placeTextWithEllipsis", + value: function placeTextWithEllipsis(textObj, textString, width) { + textObj.textContent = textString; + + if (textString.length > 0) { + // ellipsis is needed + if (textObj.getSubStringLength(0, textString.length) >= width) { + for (var x = textString.length - 3; x > 0; x -= 3) { + if (textObj.getSubStringLength(0, x) <= width) { + textObj.textContent = textString.substring(0, x) + '...'; + return; + } + } + + textObj.textContent = '...'; // can't place at all + } + } + } + }], [{ + key: "setAttrs", + value: function setAttrs(el, attrs) { + for (var key in attrs) { + if (attrs.hasOwnProperty(key)) { + el.setAttribute(key, attrs[key]); + } + } + } + }]); + + return Graphics; + }(); + + const name = "en"; + const options = { + months: [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" + ], + shortMonths: [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" + ], + days: [ + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" + ], + shortDays: [ + "Sun", + "Mon", + "Tue", + "Wed", + "Thu", + "Fri", + "Sat" + ], + toolbar: { + exportToSVG: "Download SVG", + exportToPNG: "Download PNG", + menu: "Menu", + selection: "Selection", + selectionZoom: "Selection Zoom", + zoomIn: "Zoom In", + zoomOut: "Zoom Out", + pan: "Panning", + reset: "Reset Zoom" + } + }; + var en = { + name: name, + options: options + }; + + var Options = + /*#__PURE__*/ + function () { + function Options() { + _classCallCheck(this, Options); + + this.yAxis = { + show: true, + showAlways: false, + seriesName: undefined, + opposite: false, + reversed: false, + logarithmic: false, + tickAmount: undefined, + forceNiceScale: false, + max: undefined, + min: undefined, + floating: false, + decimalsInFloat: 2, + labels: { + show: true, + minWidth: 0, + maxWidth: 160, + offsetX: 0, + offsetY: 0, + rotate: 0, + padding: 20, + style: { + colors: [], + fontSize: '11px', + fontFamily: undefined, + cssClass: '' + }, + formatter: undefined + }, + axisBorder: { + show: false, + color: '#78909C', + offsetX: 0, + offsetY: 0 + }, + axisTicks: { + show: false, + color: '#78909C', + width: 6, + offsetX: 0, + offsetY: 0 + }, + title: { + text: undefined, + rotate: 90, + offsetY: 0, + offsetX: 0, + style: { + color: undefined, + fontSize: '11px', + fontFamily: undefined, + cssClass: '' + } + }, + tooltip: { + enabled: false, + offsetX: 0 + }, + crosshairs: { + show: true, + position: 'front', + stroke: { + color: '#b6b6b6', + width: 1, + dashArray: 0 + } + } + }; + this.xAxisAnnotation = { + x: 0, + x2: null, + strokeDashArray: 1, + fillColor: '#c2c2c2', + borderColor: '#c2c2c2', + opacity: 0.3, + offsetX: 0, + offsetY: 0, + label: { + borderColor: '#c2c2c2', + borderWidth: 1, + text: undefined, + textAnchor: 'middle', + orientation: 'vertical', + position: 'top', + offsetX: 0, + offsetY: 0, + style: { + background: '#fff', + color: undefined, + fontSize: '11px', + fontFamily: undefined, + cssClass: '', + padding: { + left: 5, + right: 5, + top: 2, + bottom: 2 + } + } + } + }; + this.yAxisAnnotation = { + y: 0, + y2: null, + strokeDashArray: 1, + fillColor: '#c2c2c2', + borderColor: '#c2c2c2', + opacity: 0.3, + offsetX: 0, + offsetY: 0, + yAxisIndex: 0, + label: { + borderColor: '#c2c2c2', + borderWidth: 1, + text: undefined, + textAnchor: 'end', + position: 'right', + offsetX: 0, + offsetY: -3, + style: { + background: '#fff', + color: undefined, + fontSize: '11px', + fontFamily: undefined, + cssClass: '', + padding: { + left: 5, + right: 5, + top: 0, + bottom: 2 + } + } + } + }; + this.pointAnnotation = { + x: 0, + y: null, + yAxisIndex: 0, + seriesIndex: 0, + marker: { + size: 0, + fillColor: '#fff', + strokeWidth: 2, + strokeColor: '#333', + shape: 'circle', + offsetX: 0, + offsetY: 0, + radius: 2, + cssClass: '' + }, + label: { + borderColor: '#c2c2c2', + borderWidth: 1, + text: undefined, + textAnchor: 'middle', + offsetX: 0, + offsetY: -15, + style: { + background: '#fff', + color: undefined, + fontSize: '11px', + fontFamily: undefined, + cssClass: '', + padding: { + left: 5, + right: 5, + top: 0, + bottom: 2 + } + } + }, + customSVG: { + SVG: undefined, + cssClass: undefined, + offsetX: 0, + offsetY: 0 + } + }; + } + + _createClass(Options, [{ + key: "init", + value: function init() { + return { + annotations: { + position: 'front', + yaxis: [this.yAxisAnnotation], + xaxis: [this.xAxisAnnotation], + points: [this.pointAnnotation] + }, + chart: { + animations: { + enabled: true, + easing: 'easeinout', + // linear, easeout, easein, easeinout, swing, bounce, elastic + speed: 800, + animateGradually: { + delay: 150, + enabled: true + }, + dynamicAnimation: { + enabled: true, + speed: 350 + } + }, + background: 'transparent', + locales: [en], + defaultLocale: 'en', + dropShadow: { + enabled: false, + enabledSeries: undefined, + top: 2, + left: 2, + blur: 4, + color: '#000', + opacity: 0.35 + }, + events: { + animationEnd: undefined, + beforeMount: undefined, + mounted: undefined, + updated: undefined, + click: undefined, + legendClick: undefined, + selection: undefined, + dataPointSelection: undefined, + dataPointMouseEnter: undefined, + dataPointMouseLeave: undefined, + beforeZoom: undefined, + zoomed: undefined, + scrolled: undefined + }, + foreColor: '#373d3f', + fontFamily: 'Helvetica, Arial, sans-serif', + height: 'auto', + id: undefined, + group: undefined, + offsetX: 0, + offsetY: 0, + selection: { + enabled: false, + type: 'x', + // selectedPoints: undefined, // default datapoints that should be selected automatically + fill: { + color: '#24292e', + opacity: 0.1 + }, + stroke: { + width: 1, + color: '#24292e', + opacity: 0.4, + dashArray: 3 + }, + xaxis: { + min: undefined, + max: undefined + }, + yaxis: { + min: undefined, + max: undefined + } + }, + sparkline: { + enabled: false + }, + brush: { + enabled: false, + autoScaleYaxis: false, + target: undefined + }, + stacked: false, + stackType: 'normal', + toolbar: { + show: true, + tools: { + download: true, + selection: true, + zoom: true, + zoomin: true, + zoomout: true, + pan: true, + reset: true, + customIcons: [] + }, + autoSelected: 'zoom' // accepts -> zoom, pan, selection + + }, + type: 'line', + width: '100%', + zoom: { + enabled: true, + type: 'x', + // autoScaleYaxis: false, // TODO: rewrite the autoScaleY function + zoomedArea: { + fill: { + color: '#90CAF9', + opacity: 0.4 + }, + stroke: { + color: '#0D47A1', + opacity: 0.4, + width: 1 + } + } + } + }, + plotOptions: { + bar: { + horizontal: false, + endingShape: 'flat', + // TODO: deprecate in 4.0 + columnWidth: '70%', + // should be in percent 0 - 100 + barHeight: '70%', + // should be in percent 0 - 100 + distributed: false, + colors: { + ranges: [], + backgroundBarColors: [], + backgroundBarOpacity: 1 + }, + dataLabels: { + position: 'top' // top, center, bottom + // TODO: provide stackedLabels for stacked charts which gives additions of values + + } + }, + candlestick: { + colors: { + upward: '#00B746', + downward: '#EF403C' + }, + wick: { + useFillColor: true + } + }, + heatmap: { + radius: 2, + enableShades: true, + shadeIntensity: 0.5, + distributed: false, + colorScale: { + inverse: false, + ranges: [], + min: undefined, + max: undefined + } + }, + radialBar: { + size: undefined, + inverseOrder: false, + startAngle: 0, + endAngle: 360, + offsetX: 0, + offsetY: 0, + hollow: { + margin: 5, + size: '50%', + background: 'transparent', + image: undefined, + imageWidth: 150, + imageHeight: 150, + imageOffsetX: 0, + imageOffsetY: 0, + imageClipped: true, + position: 'front', + dropShadow: { + enabled: false, + top: 0, + left: 0, + blur: 3, + color: '#000', + opacity: 0.5 + } + }, + track: { + show: true, + startAngle: undefined, + endAngle: undefined, + background: '#f2f2f2', + strokeWidth: '97%', + opacity: 1, + margin: 5, + // margin is in pixels + dropShadow: { + enabled: false, + top: 0, + left: 0, + blur: 3, + color: '#000', + opacity: 0.5 + } + }, + dataLabels: { + show: true, + name: { + show: true, + fontSize: '16px', + fontFamily: undefined, + color: undefined, + offsetY: 0 + }, + value: { + show: true, + fontSize: '14px', + fontFamily: undefined, + color: undefined, + offsetY: 16, + formatter: function formatter(val) { + return val + '%'; + } + }, + total: { + show: false, + label: 'Total', + color: '#373d3f', + formatter: function formatter(w) { + return w.globals.seriesTotals.reduce(function (a, b) { + return a + b; + }, 0) / w.globals.series.length + '%'; + } + } + } + }, + pie: { + size: undefined, + customScale: 1, + offsetX: 0, + offsetY: 0, + expandOnClick: true, + dataLabels: { + // These are the percentage values which are displayed on slice + offset: 0 // offset by which labels will move outside + + }, + donut: { + size: '65%', + background: 'transparent', + labels: { + // These are the inner labels appearing inside donut + show: false, + name: { + show: true, + fontSize: '16px', + fontFamily: undefined, + color: undefined, + offsetY: -10 + }, + value: { + show: true, + fontSize: '20px', + fontFamily: undefined, + color: undefined, + offsetY: 10, + formatter: function formatter(val) { + return val; + } + }, + total: { + show: false, + label: 'Total', + color: '#373d3f', + formatter: function formatter(w) { + return w.globals.seriesTotals.reduce(function (a, b) { + return a + b; + }, 0); + } + } + } + } + }, + radar: { + size: undefined, + offsetX: 0, + offsetY: 0, + polygons: { + // strokeColor: '#e8e8e8', // should be deprecated in the minor version i.e 3.2 + strokeColors: '#e8e8e8', + connectorColors: '#e8e8e8', + fill: { + colors: undefined + } + } + } + }, + colors: undefined, + dataLabels: { + enabled: true, + enabledOnSeries: undefined, + formatter: function formatter(val) { + return val; + }, + textAnchor: 'middle', + offsetX: 0, + offsetY: 0, + style: { + fontSize: '12px', + fontFamily: undefined, + colors: undefined + }, + dropShadow: { + enabled: false, + top: 1, + left: 1, + blur: 1, + color: '#000', + opacity: 0.45 + } + }, + fill: { + type: 'solid', + colors: undefined, + // array of colors + opacity: 0.85, + gradient: { + shade: 'dark', + type: 'horizontal', + shadeIntensity: 0.5, + gradientToColors: undefined, + inverseColors: true, + opacityFrom: 1, + opacityTo: 1, + stops: [0, 50, 100], + colorStops: [] + }, + image: { + src: [], + width: undefined, + // optional + height: undefined // optional + + }, + pattern: { + style: 'sqaures', + // String | Array of Strings + width: 6, + height: 6, + strokeWidth: 2 + } + }, + grid: { + show: true, + borderColor: '#e0e0e0', + strokeDashArray: 0, + position: 'back', + xaxis: { + lines: { + show: false, + animate: false + } + }, + yaxis: { + lines: { + show: true, + animate: true + } + }, + row: { + colors: undefined, + // takes as array which will be repeated on rows + opacity: 0.5 + }, + column: { + colors: undefined, + // takes an array which will be repeated on columns + opacity: 0.5 + }, + padding: { + top: 0, + right: 10, + bottom: 0, + left: 12 + } + }, + labels: [], + legend: { + show: true, + showForSingleSeries: false, + showForNullSeries: true, + showForZeroSeries: true, + floating: false, + position: 'bottom', + // whether to position legends in 1 of 4 + // direction - top, bottom, left, right + horizontalAlign: 'center', + // when position top/bottom, you can specify whether to align legends left, right or center + fontSize: '12px', + fontFamily: undefined, + width: undefined, + height: undefined, + formatter: undefined, + offsetX: -20, + offsetY: 0, + labels: { + colors: undefined, + useSeriesColors: false + }, + markers: { + width: 12, + height: 12, + strokeWidth: 0, + strokeColor: '#fff', + radius: 12, + customHTML: undefined, + offsetX: 0, + offsetY: 0, + onClick: undefined + }, + itemMargin: { + horizontal: 0, + vertical: 5 + }, + onItemClick: { + toggleDataSeries: true + }, + onItemHover: { + highlightDataSeries: true + } + }, + markers: { + discrete: [], + size: 0, + colors: undefined, + //strokeColor: '#fff', // TODO: deprecate in major version 4.0 + strokeColors: '#fff', + strokeWidth: 2, + strokeOpacity: 0.9, + fillOpacity: 1, + shape: 'circle', + radius: 2, + offsetX: 0, + offsetY: 0, + hover: { + size: undefined, + sizeOffset: 3 + } + }, + noData: { + text: undefined, + align: 'center', + verticalAlign: 'middle', + offsetX: 0, + offsetY: 0, + style: { + color: undefined, + fontSize: '14px', + fontFamily: undefined + } + }, + responsive: [], + // breakpoints should follow ascending order 400, then 700, then 1000 + series: undefined, + states: { + normal: { + filter: { + type: 'none', + value: 0 + } + }, + hover: { + filter: { + type: 'lighten', + value: 0.15 + } + }, + active: { + allowMultipleDataPointsSelection: false, + filter: { + type: 'darken', + value: 0.65 + } + } + }, + title: { + text: undefined, + align: 'left', + margin: 10, + offsetX: 0, + offsetY: 0, + floating: false, + style: { + fontSize: '14px', + fontFamily: undefined, + color: undefined + } + }, + subtitle: { + text: undefined, + align: 'left', + margin: 10, + offsetX: 0, + offsetY: 30, + floating: false, + style: { + fontSize: '12px', + fontFamily: undefined, + color: undefined + } + }, + stroke: { + show: true, + curve: 'smooth', + // "smooth" / "straight" / "stepline" + lineCap: 'butt', + // round, butt , square + width: 2, + colors: undefined, + // array of colors + dashArray: 0 // single value or array of values + + }, + tooltip: { + enabled: true, + shared: true, + followCursor: false, + // when disabled, the tooltip will show on top of the series instead of mouse position + intersect: false, + // when enabled, tooltip will only show when user directly hovers over point + inverseOrder: false, + custom: undefined, + fillSeriesColor: false, + theme: 'light', + style: { + fontSize: '12px', + fontFamily: undefined + }, + onDatasetHover: { + highlightDataSeries: false + }, + x: { + // x value + show: true, + format: 'dd MMM', + // dd/MM, dd MMM yy, dd MMM yyyy + formatter: undefined // a custom user supplied formatter function + + }, + y: { + formatter: undefined, + title: { + formatter: function formatter(seriesName) { + return seriesName; + } + } + }, + z: { + formatter: undefined, + title: 'Size: ' + }, + marker: { + show: true + }, + items: { + display: 'flex' + }, + fixed: { + enabled: false, + position: 'topRight', + // topRight, topLeft, bottomRight, bottomLeft + offsetX: 0, + offsetY: 0 + } + }, + xaxis: { + type: 'category', + categories: [], + offsetX: 0, + offsetY: 0, + labels: { + show: true, + rotate: -45, + rotateAlways: false, + hideOverlappingLabels: true, + trim: true, + minHeight: undefined, + maxHeight: 120, + showDuplicates: true, + style: { + colors: [], + fontSize: '12px', + fontFamily: undefined, + cssClass: '' + }, + offsetX: 0, + offsetY: 0, + format: undefined, + formatter: undefined, + // custom formatter function which will override format + datetimeFormatter: { + year: 'yyyy', + month: "MMM 'yy", + day: 'dd MMM', + hour: 'HH:mm', + minute: 'HH:mm:ss' + } + }, + axisBorder: { + show: true, + color: '#78909C', + width: '100%', + height: 1, + offsetX: 0, + offsetY: 0 + }, + axisTicks: { + show: true, + color: '#78909C', + height: 6, + offsetX: 0, + offsetY: 0 + }, + tickAmount: undefined, + tickPlacement: 'on', + min: undefined, + max: undefined, + range: undefined, + floating: false, + position: 'bottom', + title: { + text: undefined, + offsetX: 0, + offsetY: 0, + style: { + color: undefined, + fontSize: '12px', + fontFamily: undefined, + cssClass: '' + } + }, + crosshairs: { + show: true, + width: 1, + // tickWidth/barWidth or an integer + position: 'back', + opacity: 0.9, + stroke: { + color: '#b6b6b6', + width: 1, + dashArray: 3 + }, + fill: { + type: 'solid', + // solid, gradient + color: '#B1B9C4', + gradient: { + colorFrom: '#D8E3F0', + colorTo: '#BED1E6', + stops: [0, 100], + opacityFrom: 0.4, + opacityTo: 0.5 + } + }, + dropShadow: { + enabled: false, + left: 0, + top: 0, + blur: 1, + opacity: 0.4 + } + }, + tooltip: { + enabled: true, + offsetY: 0, + formatter: undefined, + style: { + fontSize: '12px', + fontFamily: undefined + } + } + }, + yaxis: this.yAxis, + theme: { + palette: 'palette1', + // If defined, it will overwrite globals.colors variable + monochrome: { + // monochrome allows you to select just 1 color and fill out the rest with light/dark shade (intensity can be selected) + enabled: false, + color: '#008FFB', + shadeTo: 'light', + shadeIntensity: 0.65 + } + } + }; + } + }]); + + return Options; + }(); + + /** + * ApexCharts Annotations Class for drawing lines/rects on both xaxis and yaxis. + * + * @module Annotations + **/ + + var Annotations = + /*#__PURE__*/ + function () { + function Annotations(ctx) { + _classCallCheck(this, Annotations); + + this.ctx = ctx; + this.w = ctx.w; + this.graphics = new Graphics(this.ctx); + + if (this.w.config.chart.type === 'bar' && this.w.config.plotOptions.bar.horizontal) { + this.invertAxis = true; + } + + this.xDivision = this.w.globals.gridWidth / this.w.globals.dataPoints; + } + + _createClass(Annotations, [{ + key: "drawAnnotations", + value: function drawAnnotations() { + var w = this.w; + + if (w.globals.axisCharts) { + var yAnnotations = this.drawYAxisAnnotations(); + var xAnnotations = this.drawXAxisAnnotations(); + var pointAnnotations = this.drawPointAnnotations(); + var initialAnim = w.config.chart.animations.enabled; + var annoArray = [yAnnotations, xAnnotations, pointAnnotations]; + var annoElArray = [xAnnotations.node, yAnnotations.node, pointAnnotations.node]; + + for (var i = 0; i < 3; i++) { + w.globals.dom.elGraphical.add(annoArray[i]); + + if (initialAnim && !w.globals.resized && !w.globals.dataChanged) { + annoElArray[i].classList.add('hidden'); + } + + w.globals.delayedElements.push({ + el: annoElArray[i], + index: 0 + }); + } // after placing the annotations on svg, set any vertically placed annotations + + + this.setOrientations(w.config.annotations.xaxis); // background sizes needs to be calculated after text is drawn, so calling them last + + this.annotationsBackground(); + } + } + }, { + key: "addXaxisAnnotation", + value: function addXaxisAnnotation(anno, parent, index) { + var w = this.w; + var min = this.invertAxis ? w.globals.minY : w.globals.minX; + var range = this.invertAxis ? w.globals.yRange[0] : w.globals.xRange; + var x1 = (anno.x - min) / (range / w.globals.gridWidth); + + if (w.config.xaxis.type === 'category' || w.config.xaxis.convertedCatToNumeric) { + var catIndex = w.globals.labels.indexOf(anno.x); + var xLabel = w.globals.dom.baseEl.querySelector('.apexcharts-xaxis-texts-g text:nth-child(' + (catIndex + 1) + ')'); + x1 = parseFloat(xLabel.getAttribute('x')); + } + + var strokeDashArray = anno.strokeDashArray; + if (x1 < 0 || x1 > w.globals.gridWidth) return; + + if (anno.x2 === null) { + var line = this.graphics.drawLine(x1 + anno.offsetX, // x1 + 0 + anno.offsetY, // y1 + x1 + anno.offsetX, // x2 + w.globals.gridHeight + anno.offsetY, // y2 + anno.borderColor, // lineColor + strokeDashArray //dashArray + ); + parent.appendChild(line.node); + } else { + var x2 = (anno.x2 - min) / (range / w.globals.gridWidth); + + if (x2 < x1) { + var temp = x1; + x1 = x2; + x2 = temp; + } + + var rect = this.graphics.drawRect(x1 + anno.offsetX, // x1 + 0 + anno.offsetY, // y1 + x2 - x1, // x2 + w.globals.gridHeight + anno.offsetY, // y2 + 0, // radius + anno.fillColor, // color + anno.opacity, // opacity, + 1, // strokeWidth + anno.borderColor, // strokeColor + strokeDashArray // stokeDashArray + ); + parent.appendChild(rect.node); + } + + var textY = anno.label.position === 'top' ? -3 : w.globals.gridHeight; + var text = anno.label.text ? anno.label.text : ''; + var elText = this.graphics.drawText({ + x: x1 + anno.label.offsetX, + y: textY + anno.label.offsetY, + text: text, + textAnchor: anno.label.textAnchor, + fontSize: anno.label.style.fontSize, + fontFamily: anno.label.style.fontFamily, + foreColor: anno.label.style.color, + cssClass: 'apexcharts-xaxis-annotation-label ' + anno.label.style.cssClass + }); + elText.attr({ + rel: index + }); + parent.appendChild(elText.node); + } + }, { + key: "drawXAxisAnnotations", + value: function drawXAxisAnnotations() { + var _this = this; + + var w = this.w; + var elg = this.graphics.group({ + class: 'apexcharts-xaxis-annotations' + }); + w.config.annotations.xaxis.map(function (anno, index) { + _this.addXaxisAnnotation(anno, elg.node, index); + }); + return elg; + } + }, { + key: "addYaxisAnnotation", + value: function addYaxisAnnotation(anno, parent, index) { + var w = this.w; + var strokeDashArray = anno.strokeDashArray; + var y1; + var y2; + + if (this.invertAxis) { + var catIndex = w.globals.labels.indexOf(anno.y); + var xLabel = w.globals.dom.baseEl.querySelector('.apexcharts-yaxis-texts-g text:nth-child(' + (catIndex + 1) + ')'); + y1 = parseFloat(xLabel.getAttribute('y')); + } else { + y1 = w.globals.gridHeight - (anno.y - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); + + if (w.config.yaxis[anno.yAxisIndex].reversed) { + y1 = (anno.y - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); + } + } + + var text = anno.label.text ? anno.label.text : ''; + + if (anno.y2 === null) { + var line = this.graphics.drawLine(0 + anno.offsetX, // x1 + y1 + anno.offsetY, // y1 + w.globals.gridWidth + anno.offsetX, // x2 + y1 + anno.offsetY, // y2 + anno.borderColor, // lineColor + strokeDashArray // dashArray + ); + parent.appendChild(line.node); + } else { + if (this.invertAxis) { + var _catIndex = w.globals.labels.indexOf(anno.y2); + + var _xLabel = w.globals.dom.baseEl.querySelector('.apexcharts-yaxis-texts-g text:nth-child(' + (_catIndex + 1) + ')'); + + y2 = parseFloat(_xLabel.getAttribute('y')); + } else { + y2 = w.globals.gridHeight - (anno.y2 - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); + + if (w.config.yaxis[anno.yAxisIndex].reversed) { + y2 = (anno.y2 - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); + } + } + + if (y2 > y1) { + var temp = y1; + y1 = y2; + y2 = temp; + } + + var rect = this.graphics.drawRect(0 + anno.offsetX, // x1 + y2 + anno.offsetY, // y1 + w.globals.gridWidth + anno.offsetX, // x2 + y1 - y2, // y2 + 0, // radius + anno.fillColor, // color + anno.opacity, // opacity, + 1, // strokeWidth + anno.borderColor, // strokeColor + strokeDashArray // stokeDashArray + ); + parent.appendChild(rect.node); + } + + var textX = anno.label.position === 'right' ? w.globals.gridWidth : 0; + var elText = this.graphics.drawText({ + x: textX + anno.label.offsetX, + y: (y2 || y1) + anno.label.offsetY - 3, + text: text, + textAnchor: anno.label.textAnchor, + fontSize: anno.label.style.fontSize, + fontFamily: anno.label.style.fontFamily, + foreColor: anno.label.style.color, + cssClass: 'apexcharts-yaxis-annotation-label ' + anno.label.style.cssClass + }); + elText.attr({ + rel: index + }); + parent.appendChild(elText.node); + } + }, { + key: "drawYAxisAnnotations", + value: function drawYAxisAnnotations() { + var _this2 = this; + + var w = this.w; + var elg = this.graphics.group({ + class: 'apexcharts-yaxis-annotations' + }); + w.config.annotations.yaxis.map(function (anno, index) { + _this2.addYaxisAnnotation(anno, elg.node, index); + }); + return elg; + } + }, { + key: "clearAnnotations", + value: function clearAnnotations(ctx) { + var w = ctx.w; + var annos = w.globals.dom.baseEl.querySelectorAll('.apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations'); + annos.forEach(function (a) { + while (a.firstChild) { + a.removeChild(a.firstChild); + } + }); + } + }, { + key: "addPointAnnotation", + value: function addPointAnnotation(anno, parent, index) { + var w = this.w; + var x = 0; + var y = 0; + var pointY = 0; + + if (this.invertAxis) { + console.warn('Point annotation is not supported in horizontal bar charts.'); + } + + if (typeof anno.x === 'string') { + var catIndex = w.globals.labels.indexOf(anno.x); + var xLabel = w.globals.dom.baseEl.querySelector('.apexcharts-xaxis-texts-g text:nth-child(' + (catIndex + 1) + ')'); + var xPos = parseFloat(xLabel.getAttribute('x')); + x = xPos; + var annoY = anno.y; + + if (anno.y === null) { + annoY = w.globals.series[anno.seriesIndex][catIndex]; + } + + y = w.globals.gridHeight - (annoY - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight) - parseInt(anno.label.style.fontSize) - anno.marker.size; + pointY = w.globals.gridHeight - (annoY - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); + + if (w.config.yaxis[anno.yAxisIndex].reversed) { + y = (annoY - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight) + parseInt(anno.label.style.fontSize) + anno.marker.size; + pointY = (annoY - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); + } + } else { + x = (anno.x - w.globals.minX) / (w.globals.xRange / w.globals.gridWidth); + y = w.globals.gridHeight - (parseFloat(anno.y) - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight) - parseInt(anno.label.style.fontSize) - anno.marker.size; + pointY = w.globals.gridHeight - (anno.y - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); + + if (w.config.yaxis[anno.yAxisIndex].reversed) { + y = (parseFloat(anno.y) - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight) - parseInt(anno.label.style.fontSize) - anno.marker.size; + pointY = (anno.y - w.globals.minYArr[anno.yAxisIndex]) / (w.globals.yRange[anno.yAxisIndex] / w.globals.gridHeight); + } + } + + if (x < 0 || x > w.globals.gridWidth) return; + var optsPoints = { + pSize: anno.marker.size, + pWidth: anno.marker.strokeWidth, + pointFillColor: anno.marker.fillColor, + pointStrokeColor: anno.marker.strokeColor, + shape: anno.marker.shape, + radius: anno.marker.radius, + class: 'apexcharts-point-annotation-marker ' + anno.marker.cssClass + }; + var point = this.graphics.drawMarker(x + anno.marker.offsetX, pointY + anno.marker.offsetY, optsPoints); + parent.appendChild(point.node); + var text = anno.label.text ? anno.label.text : ''; + var elText = this.graphics.drawText({ + x: x + anno.label.offsetX, + y: y + anno.label.offsetY, + text: text, + textAnchor: anno.label.textAnchor, + fontSize: anno.label.style.fontSize, + fontFamily: anno.label.style.fontFamily, + foreColor: anno.label.style.color, + cssClass: 'apexcharts-point-annotation-label ' + anno.label.style.cssClass + }); + elText.attr({ + rel: index + }); + parent.appendChild(elText.node); + + if (anno.customSVG.SVG) { + var g = this.graphics.group({ + class: 'apexcharts-point-annotations-custom-svg ' + anno.customSVG.cssClass + }); + g.attr({ + transform: "translate(".concat(x + anno.customSVG.offsetX, ", ").concat(y + anno.customSVG.offsetY, ")") + }); + g.node.innerHTML = anno.customSVG.SVG; + parent.appendChild(g.node); + } + } + }, { + key: "drawPointAnnotations", + value: function drawPointAnnotations() { + var _this3 = this; + + var w = this.w; + var elg = this.graphics.group({ + class: 'apexcharts-point-annotations' + }); + w.config.annotations.points.map(function (anno, index) { + _this3.addPointAnnotation(anno, elg.node, index); + }); + return elg; + } + }, { + key: "setOrientations", + value: function setOrientations(annos) { + var _this4 = this; + + var annoIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + var w = this.w; + annos.map(function (anno, index) { + if (anno.label.orientation === 'vertical') { + var i = annoIndex !== null ? annoIndex : index; + var xAnno = w.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(i, "']")); + + if (xAnno !== null) { + var xAnnoCoord = xAnno.getBoundingClientRect(); + xAnno.setAttribute('x', parseFloat(xAnno.getAttribute('x')) - xAnnoCoord.height + 4); + + if (anno.label.position === 'top') { + xAnno.setAttribute('y', parseFloat(xAnno.getAttribute('y')) + xAnnoCoord.width); + } else { + xAnno.setAttribute('y', parseFloat(xAnno.getAttribute('y')) - xAnnoCoord.width); + } + + var annoRotatingCenter = _this4.graphics.rotateAroundCenter(xAnno); + + var x = annoRotatingCenter.x; + var y = annoRotatingCenter.y; + xAnno.setAttribute('transform', "rotate(-90 ".concat(x, " ").concat(y, ")")); + } + } + }); + } + }, { + key: "addBackgroundToAnno", + value: function addBackgroundToAnno(annoEl, anno) { + var w = this.w; + var elGridRect = w.globals.dom.baseEl.querySelector('.apexcharts-grid').getBoundingClientRect(); + var coords = annoEl.getBoundingClientRect(); + var pleft = anno.label.style.padding.left; + var pright = anno.label.style.padding.right; + var ptop = anno.label.style.padding.top; + var pbottom = anno.label.style.padding.bottom; + + if (anno.label.orientation === 'vertical') { + ptop = anno.label.style.padding.left; + pbottom = anno.label.style.padding.right; + pleft = anno.label.style.padding.top; + pright = anno.label.style.padding.bottom; + } + + var x1 = coords.left - elGridRect.left - pleft; + var y1 = coords.top - elGridRect.top - ptop; + var elRect = this.graphics.drawRect(x1, y1, coords.width + pleft + pright, coords.height + ptop + pbottom, 0, anno.label.style.background, 1, anno.label.borderWidth, anno.label.borderColor, 0); + return elRect; + } + }, { + key: "annotationsBackground", + value: function annotationsBackground() { + var _this5 = this; + + var w = this.w; + + var add = function add(anno, i, type) { + var annoLabel = w.globals.dom.baseEl.querySelector(".apexcharts-".concat(type, "-annotations .apexcharts-").concat(type, "-annotation-label[rel='").concat(i, "']")); + + if (annoLabel) { + var parent = annoLabel.parentNode; + + var elRect = _this5.addBackgroundToAnno(annoLabel, anno); + + parent.insertBefore(elRect.node, annoLabel); + } + }; + + w.config.annotations.xaxis.map(function (anno, i) { + add(anno, i, 'xaxis'); + }); + w.config.annotations.yaxis.map(function (anno, i) { + add(anno, i, 'yaxis'); + }); + w.config.annotations.points.map(function (anno, i) { + add(anno, i, 'point'); + }); + } + }, { + key: "addText", + value: function addText(params, pushToMemory, context) { + var x = params.x, + y = params.y, + text = params.text, + textAnchor = params.textAnchor, + _params$appendTo = params.appendTo, + appendTo = _params$appendTo === void 0 ? '.apexcharts-inner' : _params$appendTo, + foreColor = params.foreColor, + fontSize = params.fontSize, + fontFamily = params.fontFamily, + cssClass = params.cssClass, + backgroundColor = params.backgroundColor, + borderWidth = params.borderWidth, + strokeDashArray = params.strokeDashArray, + radius = params.radius, + borderColor = params.borderColor, + _params$paddingLeft = params.paddingLeft, + paddingLeft = _params$paddingLeft === void 0 ? 4 : _params$paddingLeft, + _params$paddingRight = params.paddingRight, + paddingRight = _params$paddingRight === void 0 ? 4 : _params$paddingRight, + _params$paddingBottom = params.paddingBottom, + paddingBottom = _params$paddingBottom === void 0 ? 2 : _params$paddingBottom, + _params$paddingTop = params.paddingTop, + paddingTop = _params$paddingTop === void 0 ? 2 : _params$paddingTop; + var me = context; + var w = me.w; + var parentNode = w.globals.dom.baseEl.querySelector(appendTo); + var elText = this.graphics.drawText({ + x: x, + y: y, + text: text, + textAnchor: textAnchor || 'start', + fontSize: fontSize || '12px', + fontFamily: fontFamily || w.config.chart.fontFamily, + foreColor: foreColor || w.config.chart.foreColor, + cssClass: 'apexcharts-text ' + cssClass ? cssClass : '' + }); + parentNode.appendChild(elText.node); + var textRect = elText.bbox(); + var elRect = this.graphics.drawRect(textRect.x - paddingLeft, textRect.y - paddingTop, textRect.width + paddingLeft + paddingRight, textRect.height + paddingBottom + paddingTop, radius, backgroundColor, 1, borderWidth, borderColor, strokeDashArray); + elText.before(elRect); + + if (pushToMemory) { + w.globals.memory.methodsToExec.push({ + context: me, + method: me.addText, + params: { + x: x, + y: y, + text: text, + textAnchor: textAnchor, + appendTo: appendTo, + foreColor: foreColor, + fontSize: fontSize, + cssClass: cssClass, + backgroundColor: backgroundColor, + borderWidth: borderWidth, + strokeDashArray: strokeDashArray, + radius: radius, + borderColor: borderColor, + paddingLeft: paddingLeft, + paddingRight: paddingRight, + paddingBottom: paddingBottom, + paddingTop: paddingTop + } + }); + } + + return context; + } + }, { + key: "addPointAnnotationExternal", + value: function addPointAnnotationExternal(params, pushToMemory, context) { + this.addAnnotationExternal({ + params: params, + pushToMemory: pushToMemory, + context: context, + type: 'point', + contextMethod: context.addPointAnnotation + }); + return context; + } + }, { + key: "addYaxisAnnotationExternal", + value: function addYaxisAnnotationExternal(params, pushToMemory, context) { + this.addAnnotationExternal({ + params: params, + pushToMemory: pushToMemory, + context: context, + type: 'yaxis', + contextMethod: context.addYaxisAnnotation + }); + return context; + } // The addXaxisAnnotation method requires a parent class, and user calling this method externally on the chart instance may not specify parent, hence a different method + + }, { + key: "addXaxisAnnotationExternal", + value: function addXaxisAnnotationExternal(params, pushToMemory, context) { + this.addAnnotationExternal({ + params: params, + pushToMemory: pushToMemory, + context: context, + type: 'xaxis', + contextMethod: context.addXaxisAnnotation + }); + return context; + } + }, { + key: "addAnnotationExternal", + value: function addAnnotationExternal(_ref) { + var params = _ref.params, + pushToMemory = _ref.pushToMemory, + context = _ref.context, + type = _ref.type, + contextMethod = _ref.contextMethod; + var me = context; + var w = me.w; + var parent = w.globals.dom.baseEl.querySelector(".apexcharts-".concat(type, "-annotations")); + var index = parent.childNodes.length + 1; + var opt = new Options(); + var axesAnno = Object.assign({}, type === 'xaxis' ? opt.xAxisAnnotation : type === 'yaxis' ? opt.yAxisAnnotation : opt.pointAnnotation); + var anno = Utils.extend(axesAnno, params); + + switch (type) { + case 'xaxis': + this.addXaxisAnnotation(anno, parent, index); + break; + + case 'yaxis': + this.addYaxisAnnotation(anno, parent, index); + break; + + case 'point': + this.addPointAnnotation(anno, parent, index); + break; + } // add background + + + var axesAnnoLabel = w.globals.dom.baseEl.querySelector(".apexcharts-".concat(type, "-annotations .apexcharts-").concat(type, "-annotation-label[rel='").concat(index, "']")); + var elRect = this.addBackgroundToAnno(axesAnnoLabel, anno); + parent.insertBefore(elRect.node, axesAnnoLabel); + + if (pushToMemory) { + w.globals.memory.methodsToExec.push({ + context: me, + method: contextMethod, + params: params + }); + } + + return context; + } + }]); + + return Annotations; + }(); + + /** + * ApexCharts Default Class for setting default options for all chart types. + * + * @module Defaults + **/ + + var Defaults = + /*#__PURE__*/ + function () { + function Defaults(opts) { + _classCallCheck(this, Defaults); + + this.opts = opts; + } + + _createClass(Defaults, [{ + key: "line", + value: function line() { + return { + chart: { + animations: { + easing: 'swing' + } + }, + dataLabels: { + enabled: false + }, + stroke: { + width: 5, + curve: 'straight' + }, + markers: { + size: 0, + hover: { + sizeOffset: 6 + } + }, + xaxis: { + crosshairs: { + width: 1 + } + } + }; + } + }, { + key: "sparkline", + value: function sparkline(defaults) { + this.opts.yaxis[0].labels.show = false; + this.opts.yaxis[0].floating = true; + var ret = { + grid: { + show: false, + padding: { + left: 0, + right: 0, + top: 0, + bottom: 0 + } + }, + legend: { + show: false + }, + xaxis: { + labels: { + show: false + }, + tooltip: { + enabled: false + }, + axisBorder: { + show: false + } + }, + chart: { + toolbar: { + show: false + }, + zoom: { + enabled: false + } + }, + dataLabels: { + enabled: false + } + }; + return Utils.extend(defaults, ret); + } + }, { + key: "bar", + value: function bar() { + return { + chart: { + stacked: false, + animations: { + easing: 'swing' + } + }, + plotOptions: { + bar: { + dataLabels: { + position: 'center' + } + } + }, + dataLabels: { + style: { + colors: ['#fff'] + } + }, + stroke: { + width: 0 + }, + fill: { + opacity: 0.85 + }, + legend: { + markers: { + shape: 'square', + radius: 2, + size: 8 + } + }, + tooltip: { + shared: false + }, + xaxis: { + tooltip: { + enabled: false + }, + crosshairs: { + width: 'barWidth', + position: 'back', + fill: { + type: 'gradient' + }, + dropShadow: { + enabled: false + }, + stroke: { + width: 0 + } + } + } + }; + } + }, { + key: "candlestick", + value: function candlestick() { + return { + stroke: { + width: 1, + colors: ['#333'] + }, + dataLabels: { + enabled: false + }, + tooltip: { + shared: true, + custom: function custom(_ref) { + var seriesIndex = _ref.seriesIndex, + dataPointIndex = _ref.dataPointIndex, + w = _ref.w; + var o = w.globals.seriesCandleO[seriesIndex][dataPointIndex]; + var h = w.globals.seriesCandleH[seriesIndex][dataPointIndex]; + var l = w.globals.seriesCandleL[seriesIndex][dataPointIndex]; + var c = w.globals.seriesCandleC[seriesIndex][dataPointIndex]; + return '
' + '
Open: ' + o + '
' + '
High: ' + h + '
' + '
Low: ' + l + '
' + '
Close: ' + c + '
' + '
'; + } + }, + states: { + active: { + filter: { + type: 'none' + } + } + }, + xaxis: { + crosshairs: { + width: 1 + } + } + }; + } + }, { + key: "area", + value: function area() { + return { + stroke: { + width: 4 + }, + fill: { + type: 'gradient', + gradient: { + inverseColors: false, + shade: 'light', + type: 'vertical', + opacityFrom: 0.65, + opacityTo: 0.5, + stops: [0, 100, 100] + } + }, + markers: { + size: 0, + hover: { + sizeOffset: 6 + } + }, + tooltip: { + followCursor: false + } + }; + } + }, { + key: "brush", + value: function brush(defaults) { + var ret = { + chart: { + toolbar: { + autoSelected: 'selection', + show: false + }, + zoom: { + enabled: false + } + }, + dataLabels: { + enabled: false + }, + stroke: { + width: 1 + }, + tooltip: { + enabled: false + }, + xaxis: { + tooltip: { + enabled: false + } + } + }; + return Utils.extend(defaults, ret); + } + }, { + key: "stacked100", + value: function stacked100() { + var _this = this; + + this.opts.dataLabels = this.opts.dataLabels || {}; + this.opts.dataLabels.formatter = this.opts.dataLabels.formatter || undefined; + var existingDataLabelFormatter = this.opts.dataLabels.formatter; + this.opts.yaxis.forEach(function (yaxe, index) { + _this.opts.yaxis[index].min = 0; + _this.opts.yaxis[index].max = 100; + }); + var isBar = this.opts.chart.type === 'bar'; + + if (isBar) { + this.opts.dataLabels.formatter = existingDataLabelFormatter || function (val) { + if (typeof val === 'number') { + return val ? val.toFixed(0) + '%' : val; + } + + return val; + }; + } + } // This function removes the left and right spacing in chart for line/area/scatter if xaxis type = category for those charts by converting xaxis = numeric. Numeric/Datetime xaxis prevents the unnecessary spacing in the left/right of the chart area + + }, { + key: "bubble", + value: function bubble() { + return { + dataLabels: { + style: { + colors: ['#fff'] + } + }, + tooltip: { + shared: false, + intersect: true + }, + xaxis: { + crosshairs: { + width: 0 + } + }, + fill: { + type: 'solid', + gradient: { + shade: 'light', + inverse: true, + shadeIntensity: 0.55, + opacityFrom: 0.4, + opacityTo: 0.8 + } + } + }; + } + }, { + key: "scatter", + value: function scatter() { + return { + dataLabels: { + enabled: false + }, + tooltip: { + shared: false, + intersect: true + }, + markers: { + size: 6, + strokeWidth: 2, + hover: { + sizeOffset: 2 + } + } + }; + } + }, { + key: "heatmap", + value: function heatmap() { + return { + chart: { + stacked: false, + zoom: { + enabled: false + } + }, + fill: { + opacity: 1 + }, + dataLabels: { + style: { + colors: ['#fff'] + } + }, + stroke: { + colors: ['#fff'] + }, + tooltip: { + followCursor: true, + marker: { + show: false + }, + x: { + show: false + } + }, + legend: { + position: 'top', + markers: { + shape: 'square', + size: 10, + offsetY: 2 + } + }, + grid: { + padding: { + right: 20 + } + } + }; + } + }, { + key: "pie", + value: function pie() { + return { + chart: { + toolbar: { + show: false + } + }, + plotOptions: { + pie: { + donut: { + labels: { + show: false + } + } + } + }, + dataLabels: { + formatter: function formatter(val) { + return val.toFixed(1) + '%'; + }, + style: { + colors: ['#fff'] + }, + dropShadow: { + enabled: true + } + }, + stroke: { + colors: ['#fff'] + }, + fill: { + opacity: 1, + gradient: { + shade: 'dark', + shadeIntensity: 0.35, + inverseColors: false, + stops: [0, 100, 100] + } + }, + padding: { + right: 0, + left: 0 + }, + tooltip: { + theme: 'dark', + fillSeriesColor: true + }, + legend: { + position: 'right' + } + }; + } + }, { + key: "donut", + value: function donut() { + return { + chart: { + toolbar: { + show: false + } + }, + dataLabels: { + formatter: function formatter(val) { + return val.toFixed(1) + '%'; + }, + style: { + colors: ['#fff'] + }, + dropShadow: { + enabled: true + } + }, + stroke: { + colors: ['#fff'] + }, + fill: { + opacity: 1, + gradient: { + shade: 'dark', + shadeIntensity: 0.4, + inverseColors: false, + type: 'vertical', + opacityFrom: 1, + opacityTo: 1, + stops: [70, 98, 100] + } + }, + padding: { + right: 0, + left: 0 + }, + tooltip: { + theme: 'dark', + fillSeriesColor: true + }, + legend: { + position: 'right' + } + }; + } + }, { + key: "radar", + value: function radar() { + this.opts.yaxis[0].labels.style.fontSize = '13px'; + this.opts.yaxis[0].labels.offsetY = 6; + return { + dataLabels: { + enabled: true, + style: { + colors: ['#a8a8a8'], + fontSize: '11px' + } + }, + stroke: { + width: 2 + }, + markers: { + size: 3, + strokeWidth: 1, + strokeOpacity: 1 + }, + fill: { + opacity: 0.2 + }, + tooltip: { + shared: false, + intersect: true, + followCursor: true + }, + grid: { + show: false + }, + xaxis: { + tooltip: { + enabled: false + }, + crosshairs: { + show: false + } + } + }; + } + }, { + key: "radialBar", + value: function radialBar() { + return { + chart: { + animations: { + dynamicAnimation: { + enabled: true, + speed: 800 + } + }, + toolbar: { + show: false + } + }, + fill: { + gradient: { + shade: 'dark', + shadeIntensity: 0.4, + inverseColors: false, + type: 'diagonal2', + opacityFrom: 1, + opacityTo: 1, + stops: [70, 98, 100] + } + }, + padding: { + right: 0, + left: 0 + }, + legend: { + show: false, + position: 'right' + }, + tooltip: { + enabled: false, + fillSeriesColor: true + } + }; + } + }], [{ + key: "convertCatToNumeric", + value: function convertCatToNumeric(opts) { + opts.xaxis.type = 'numeric'; + opts.xaxis.convertedCatToNumeric = true; + opts.xaxis.labels = opts.xaxis.labels || {}; + + opts.xaxis.labels.formatter = opts.xaxis.labels.formatter || function (val) { + return val; + }; + + opts.chart = opts.chart || {}; + opts.chart.zoom = opts.chart.zoom || window.Apex.chart && window.Apex.chart.zoom || {}; + var defaultFormatter = opts.xaxis.labels.formatter; + var labels = opts.xaxis.categories && opts.xaxis.categories.length ? opts.xaxis.categories : opts.labels; + + if (labels && labels.length) { + opts.xaxis.labels.formatter = function (val) { + return defaultFormatter(labels[val - 1]); + }; + } + + opts.xaxis.categories = []; + opts.labels = []; + opts.chart.zoom.enabled = false; + return opts; + } + }]); + + return Defaults; + }(); + + /* + ** Util functions which are dependent on ApexCharts instance + */ + var CoreUtils = + /*#__PURE__*/ + function () { + function CoreUtils(ctx) { + _classCallCheck(this, CoreUtils); + + this.ctx = ctx; + this.w = ctx.w; + } + + _createClass(CoreUtils, [{ + key: "getStackedSeriesTotals", + + /** + * @memberof CoreUtils + * returns the sum of all individual values in a multiple stacked series + * Eg. w.globals.series = [[32,33,43,12], [2,3,5,1]] + * @return [34,36,48,13] + **/ + value: function getStackedSeriesTotals() { + var w = this.w; + var total = []; + + for (var i = 0; i < w.globals.series[w.globals.maxValsInArrayIndex].length; i++) { + var t = 0; + + for (var j = 0; j < w.globals.series.length; j++) { + t += w.globals.series[j][i]; + } + + total.push(t); + } + + w.globals.stackedSeriesTotals = total; + return total; + } // get total of the all values inside all series + + }, { + key: "getSeriesTotalByIndex", + value: function getSeriesTotalByIndex() { + var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + + if (index === null) { + // non-plot chart types - pie / donut / circle + return this.w.config.series.reduce(function (acc, cur) { + return acc + cur; + }, 0); + } else { + // axis charts - supporting multiple series + return this.w.globals.series[index].reduce(function (acc, cur) { + return acc + cur; + }, 0); + } + } + }, { + key: "isSeriesNull", + value: function isSeriesNull() { + var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + var r = []; + + if (index === null) { + // non-plot chart types - pie / donut / circle + r = this.w.config.series.filter(function (d) { + return d !== null; + }); + } else { + // axis charts - supporting multiple series + r = this.w.globals.series[index].filter(function (d) { + return d !== null; + }); + } + + return r.length === 0; + } + }, { + key: "seriesHaveSameValues", + value: function seriesHaveSameValues(index) { + return this.w.globals.series[index].every(function (val, i, arr) { + return val === arr[0]; + }); + } // maxValsInArrayIndex is the index of series[] which has the largest number of items + + }, { + key: "getLargestSeries", + value: function getLargestSeries() { + var w = this.w; + w.globals.maxValsInArrayIndex = w.globals.series.map(function (a) { + return a.length; + }).indexOf(Math.max.apply(Math, w.globals.series.map(function (a) { + return a.length; + }))); + } + }, { + key: "getLargestMarkerSize", + value: function getLargestMarkerSize() { + var w = this.w; + var size = 0; + w.globals.markers.size.forEach(function (m) { + size = Math.max(size, m); + }); + w.globals.markers.largestSize = size; + return size; + } + /** + * @memberof Core + * returns the sum of all values in a series + * Eg. w.globals.series = [[32,33,43,12], [2,3,5,1]] + * @return [120, 11] + **/ + + }, { + key: "getSeriesTotals", + value: function getSeriesTotals() { + var w = this.w; + w.globals.seriesTotals = w.globals.series.map(function (ser, index) { + var total = 0; + + if (Array.isArray(ser)) { + for (var j = 0; j < ser.length; j++) { + total += ser[j]; + } + } else { + // for pie/donuts/gauges + total += ser; + } + + return total; + }); + } + }, { + key: "getSeriesTotalsXRange", + value: function getSeriesTotalsXRange(minX, maxX) { + var w = this.w; + var seriesTotalsXRange = w.globals.series.map(function (ser, index) { + var total = 0; + + for (var j = 0; j < ser.length; j++) { + if (w.globals.seriesX[index][j] > minX && w.globals.seriesX[index][j] < maxX) { + total += ser[j]; + } + } + + return total; + }); + return seriesTotalsXRange; + } + /** + * @memberof CoreUtils + * returns the percentage value of all individual values which can be used in a 100% stacked series + * Eg. w.globals.series = [[32, 33, 43, 12], [2, 3, 5, 1]] + * @return [[94.11, 91.66, 89.58, 92.30], [5.88, 8.33, 10.41, 7.7]] + **/ + + }, { + key: "getPercentSeries", + value: function getPercentSeries() { + var w = this.w; + w.globals.seriesPercent = w.globals.series.map(function (ser, index) { + var seriesPercent = []; + + if (Array.isArray(ser)) { + for (var j = 0; j < ser.length; j++) { + var total = w.globals.stackedSeriesTotals[j]; + var percent = 100 * ser[j] / total; + seriesPercent.push(percent); + } + } else { + var _total = w.globals.seriesTotals.reduce(function (acc, val) { + return acc + val; + }, 0); + + var _percent = 100 * ser / _total; + + seriesPercent.push(_percent); + } + + return seriesPercent; + }); + } + }, { + key: "getCalculatedRatios", + value: function getCalculatedRatios() { + var gl = this.w.globals; + var yRatio = []; + var invertedYRatio = 0; + var xRatio = 0; + var initialXRatio = 0; + var invertedXRatio = 0; + var zRatio = 0; + var baseLineY = []; + var baseLineInvertedY = 0.1; + var baseLineX = 0; + gl.yRange = []; + + if (gl.isMultipleYAxis) { + for (var i = 0; i < gl.minYArr.length; i++) { + gl.yRange.push(Math.abs(gl.minYArr[i] - gl.maxYArr[i])); + baseLineY.push(0); + } + } else { + gl.yRange.push(Math.abs(gl.minY - gl.maxY)); + } + + gl.xRange = Math.abs(gl.maxX - gl.minX); + gl.zRange = Math.abs(gl.maxZ - gl.minZ); // multiple y axis + + for (var _i = 0; _i < gl.yRange.length; _i++) { + yRatio.push(gl.yRange[_i] / gl.gridHeight); + } + + xRatio = gl.xRange / gl.gridWidth; + initialXRatio = Math.abs(gl.initialmaxX - gl.initialminX) / gl.gridWidth; + invertedYRatio = gl.yRange / gl.gridWidth; + invertedXRatio = gl.xRange / gl.gridHeight; + zRatio = gl.zRange / gl.gridHeight * 16; + + if (gl.minY !== Number.MIN_VALUE && Math.abs(gl.minY) !== 0) { + // Negative numbers present in series + gl.hasNegs = true; + baseLineY = []; // baseline variables is the 0 of the yaxis which will be needed when there are negatives + + if (gl.isMultipleYAxis) { + for (var _i2 = 0; _i2 < yRatio.length; _i2++) { + baseLineY.push(-gl.minYArr[_i2] / yRatio[_i2]); + } + } else { + baseLineY.push(-gl.minY / yRatio[0]); + } + + baseLineInvertedY = -gl.minY / invertedYRatio; // this is for bar chart + + baseLineX = gl.minX / xRatio; + } else { + baseLineY.push(0); + } + + return { + yRatio: yRatio, + invertedYRatio: invertedYRatio, + zRatio: zRatio, + xRatio: xRatio, + initialXRatio: initialXRatio, + invertedXRatio: invertedXRatio, + baseLineInvertedY: baseLineInvertedY, + baseLineY: baseLineY, + baseLineX: baseLineX + }; + } + }, { + key: "getLogSeries", + value: function getLogSeries(series) { + var w = this.w; + w.globals.seriesLog = series.map(function (s, i) { + if (w.config.yaxis[i] && w.config.yaxis[i].logarithmic) { + return s.map(function (d) { + if (d === null) return null; + var logVal = (Math.log(d) - Math.log(w.globals.minYArr[i])) / (Math.log(w.globals.maxYArr[i]) - Math.log(w.globals.minYArr[i])); + return logVal; + }); + } else { + return s; + } + }); + return w.globals.seriesLog; + } + }, { + key: "getLogYRatios", + value: function getLogYRatios(yRatio) { + var _this = this; + + var w = this.w; + var gl = this.w.globals; + gl.yLogRatio = yRatio.slice(); + gl.logYRange = gl.yRange.map(function (yRange, i) { + if (w.config.yaxis[i] && _this.w.config.yaxis[i].logarithmic) { + var maxY = -Number.MAX_VALUE; + var minY = Number.MIN_VALUE; + var range = 1; + gl.seriesLog.forEach(function (s, si) { + s.forEach(function (v) { + if (w.config.yaxis[si] && w.config.yaxis[si].logarithmic) { + maxY = Math.max(v, maxY); + minY = Math.min(v, minY); + } + }); + }); + range = Math.pow(gl.yRange[i], Math.abs(minY - maxY) / gl.yRange[i]); + gl.yLogRatio[i] = range / gl.gridHeight; + return range; + } + }); + return gl.yLogRatio; + } // Some config objects can be array - and we need to extend them correctly + + }], [{ + key: "checkComboSeries", + value: function checkComboSeries(series) { + var comboCharts = false; + var comboChartsHasBars = false; // if user specified a type in series too, turn on comboCharts flag + + if (series.length && typeof series[0].type !== 'undefined') { + comboCharts = true; + series.forEach(function (s) { + if (s.type === 'bar' || s.type === 'column') { + comboChartsHasBars = true; + } + }); + } + + return { + comboCharts: comboCharts, + comboChartsHasBars: comboChartsHasBars + }; + } + }, { + key: "extendArrayProps", + value: function extendArrayProps(configInstance, options) { + if (options.yaxis) { + options = configInstance.extendYAxis(options); + } + + if (options.annotations) { + if (options.annotations.yaxis) { + options = configInstance.extendYAxisAnnotations(options); + } + + if (options.annotations.xaxis) { + options = configInstance.extendXAxisAnnotations(options); + } + + if (options.annotations.points) { + options = configInstance.extendPointAnnotations(options); + } + } + + return options; + } + }]); + + return CoreUtils; + }(); + + /** + * ApexCharts Config Class for extending user options with pre-defined ApexCharts config. + * + * @module Config + **/ + + var Config = + /*#__PURE__*/ + function () { + function Config(opts) { + _classCallCheck(this, Config); + + this.opts = opts; + } + + _createClass(Config, [{ + key: "init", + value: function init() { + var opts = this.opts; + var options = new Options(); + var defaults = new Defaults(opts); + this.chartType = opts.chart.type; + + if (this.chartType === 'histogram') { + // technically, a histogram can be drawn by a column chart with no spaces in between + opts.chart.type = 'bar'; + opts = Utils.extend({ + plotOptions: { + bar: { + columnWidth: '99.99%' + } + } + }, opts); + } + + opts.series = this.checkEmptySeries(opts.series); + opts = this.extendYAxis(opts); + opts = this.extendAnnotations(opts); + var config = options.init(); + var newDefaults = {}; + + if (opts && _typeof(opts) === 'object') { + var chartDefaults = {}; + + switch (this.chartType) { + case 'line': + chartDefaults = defaults.line(); + break; + + case 'area': + chartDefaults = defaults.area(); + break; + + case 'bar': + chartDefaults = defaults.bar(); + break; + + case 'candlestick': + chartDefaults = defaults.candlestick(); + break; + + case 'histogram': + chartDefaults = defaults.bar(); + break; + + case 'bubble': + chartDefaults = defaults.bubble(); + break; + + case 'scatter': + chartDefaults = defaults.scatter(); + break; + + case 'heatmap': + chartDefaults = defaults.heatmap(); + break; + + case 'pie': + chartDefaults = defaults.pie(); + break; + + case 'donut': + chartDefaults = defaults.donut(); + break; + + case 'radar': + chartDefaults = defaults.radar(); + break; + + case 'radialBar': + chartDefaults = defaults.radialBar(); + break; + + default: + chartDefaults = defaults.line(); + } + + if (opts.chart.brush && opts.chart.brush.enabled) { + chartDefaults = defaults.brush(chartDefaults); + } + + if (opts.chart.stacked && opts.chart.stackType === '100%') { + defaults.stacked100(); + } + + opts.xaxis = opts.xaxis || window.Apex.xaxis || {}; + var combo = CoreUtils.checkComboSeries(opts.series); + + if ((opts.chart.type === 'line' || opts.chart.type === 'area' || opts.chart.type === 'scatter') && !combo.comboChartsHasBars && opts.xaxis.type !== 'datetime' && opts.xaxis.tickPlacement !== 'between') { + opts = Defaults.convertCatToNumeric(opts); + } + + if (opts.chart.sparkline && opts.chart.sparkline.enabled || window.Apex.chart && window.Apex.chart.sparkline && window.Apex.chart.sparkline.enabled) { + chartDefaults = defaults.sparkline(chartDefaults); + } + + newDefaults = Utils.extend(config, chartDefaults); + } // config should cascade in this fashion + // default-config < global-apex-variable-config < user-defined-config + // get GLOBALLY defined options and merge with the default config + + + var mergedWithDefaultConfig = Utils.extend(newDefaults, window.Apex); // get the merged config and extend with user defined config + + config = Utils.extend(mergedWithDefaultConfig, opts); // some features are not supported. those mismatches should be handled + + config = this.handleUserInputErrors(config); + return config; + } + }, { + key: "extendYAxis", + value: function extendYAxis(opts) { + var options = new Options(); + + if (typeof opts.yaxis === 'undefined') { + opts.yaxis = {}; + } // extend global yaxis config (only if object is provided / not an array) + + + if (opts.yaxis.constructor !== Array && window.Apex.yaxis && window.Apex.yaxis.constructor !== Array) { + opts.yaxis = Utils.extend(opts.yaxis, window.Apex.yaxis); + } // as we can't extend nested object's array with extend, we need to do it first + // user can provide either an array or object in yaxis config + + + if (opts.yaxis.constructor !== Array) { + // convert the yaxis to array if user supplied object + opts.yaxis = [Utils.extend(options.yAxis, opts.yaxis)]; + } else { + opts.yaxis = Utils.extendArray(opts.yaxis, options.yAxis); + } + + return opts; + } // annotations also accepts array, so we need to extend them manually + + }, { + key: "extendAnnotations", + value: function extendAnnotations(opts) { + if (typeof opts.annotations === 'undefined') { + opts.annotations = {}; + opts.annotations.yaxis = []; + opts.annotations.xaxis = []; + opts.annotations.points = []; + } + + opts = this.extendYAxisAnnotations(opts); + opts = this.extendXAxisAnnotations(opts); + opts = this.extendPointAnnotations(opts); + return opts; + } + }, { + key: "extendYAxisAnnotations", + value: function extendYAxisAnnotations(opts) { + var options = new Options(); + opts.annotations.yaxis = Utils.extendArray(typeof opts.annotations.yaxis !== 'undefined' ? opts.annotations.yaxis : [], options.yAxisAnnotation); + return opts; + } + }, { + key: "extendXAxisAnnotations", + value: function extendXAxisAnnotations(opts) { + var options = new Options(); + opts.annotations.xaxis = Utils.extendArray(typeof opts.annotations.xaxis !== 'undefined' ? opts.annotations.xaxis : [], options.xAxisAnnotation); + return opts; + } + }, { + key: "extendPointAnnotations", + value: function extendPointAnnotations(opts) { + var options = new Options(); + opts.annotations.points = Utils.extendArray(typeof opts.annotations.points !== 'undefined' ? opts.annotations.points : [], options.pointAnnotation); + return opts; + } + }, { + key: "checkEmptySeries", + value: function checkEmptySeries(ser) { + if (ser.length === 0) { + return [{ + data: [] + }]; + } + + return ser; + } + }, { + key: "handleUserInputErrors", + value: function handleUserInputErrors(opts) { + var config = opts; // conflicting tooltip option. intersect makes sure to focus on 1 point at a time. Shared cannot be used along with it + + if (config.tooltip.shared && config.tooltip.intersect) { + throw new Error('tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.'); + } + + if (config.chart.scroller) { + console.warn('Scroller has been deprecated since v2.0.0. Please remove the configuration for chart.scroller'); + } + + if (config.chart.type === 'bar' && config.plotOptions.bar.horizontal) { + // No time series for horizontal bars + if (config.xaxis.type === 'datetime') { + throw new Error('Timelines on bars are not supported yet. Switch to column chart by setting plotOptions.bar.horizontal=false'); + } // No multiple yaxis for bars + + + if (config.yaxis.length > 1) { + throw new Error('Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false'); + } + + if (config.yaxis[0].reversed) { + config.yaxis[0].opposite = true; + } + + config.xaxis.tooltip.enabled = false; // no xaxis tooltip for horizontal bar + + config.yaxis[0].tooltip.enabled = false; // no xaxis tooltip for horizontal bar + + config.chart.zoom.enabled = false; // no zooming for horz bars + } + + if (config.chart.type === 'bar') { + if (config.tooltip.shared) { + if (config.xaxis.crosshairs.width === 'barWidth' && config.series.length > 1) { + console.warn('crosshairs.width = "barWidth" is only supported in single series, not in a multi-series barChart.'); + config.xaxis.crosshairs.width = 'tickWidth'; + } + + if (config.plotOptions.bar.horizontal) { + config.states.hover.type = 'none'; + } + + if (!config.tooltip.followCursor) { + console.warn('followCursor option in shared columns cannot be turned off.'); + config.tooltip.followCursor = true; + } + } + } + + if (config.chart.type === 'candlestick') { + if (config.yaxis[0].reversed) { + console.warn('Reversed y-axis in candlestick chart is not supported.'); + config.yaxis[0].reversed = false; + } + } + + if (config.chart.group && config.yaxis[0].labels.minWidth === 0) { + console.warn('It looks like you have multiple charts in synchronization. You must provide yaxis.labels.minWidth which must be EQUAL for all grouped charts to prevent incorrect behaviour.'); + } // if user supplied array for stroke width, it will only be applicable to line/area charts, for any other charts, revert back to Number + + + if (Array.isArray(config.stroke.width)) { + if (config.chart.type !== 'line' && config.chart.type !== 'area') { + console.warn('stroke.width option accepts array only for line and area charts. Reverted back to Number'); + config.stroke.width = config.stroke.width[0]; + } + } + + return config; + } + }]); + + return Config; + }(); + + var Globals = + /*#__PURE__*/ + function () { + function Globals() { + _classCallCheck(this, Globals); + } + + _createClass(Globals, [{ + key: "globalVars", + value: function globalVars(config) { + return { + chartID: null, + // chart ID - apexcharts-cuid + cuid: null, + // chart ID - random numbers excluding "apexcharts" part + events: { + beforeMount: [], + mounted: [], + updated: [], + clicked: [], + selection: [], + dataPointSelection: [], + zoomed: [], + scrolled: [] + }, + colors: [], + fill: { + colors: [] + }, + stroke: { + colors: [] + }, + dataLabels: { + style: { + colors: [] + } + }, + radarPolygons: { + fill: { + colors: [] + } + }, + markers: { + colors: [], + size: config.markers.size, + largestSize: 0 + }, + animationEnded: false, + isTouchDevice: 'ontouchstart' in window || navigator.msMaxTouchPoints, + isDirty: false, + // chart has been updated after the initial render. This is different than dataChanged property. isDirty means user manually called some method to update + initialConfig: null, + // we will store the first config user has set to go back when user finishes interactions like zooming and come out of it + lastXAxis: [], + lastYAxis: [], + series: [], + // the MAIN series array (y values) + seriesPercent: [], + // the percentage values of the given series + seriesTotals: [], + stackedSeriesTotals: [], + seriesX: [], + // store the numeric x values in this array (x values) + seriesZ: [], + // The 3rd "Z" dimension for bubbles chart (z values) + labels: [], + // store the text to draw on x axis + // Don't mutate the labels, many things including tooltips depends on it! + timelineLabels: [], + // store the timeline Labels in another variable + seriesNames: [], + // same as labels, used in non axis charts + noLabelsProvided: false, + // if user didn't provide any categories/labels or x values, fallback to 1,2,3,4... + allSeriesCollapsed: false, + collapsedSeries: [], + // when user collapses a series, it goes into this array + collapsedSeriesIndices: [], + // this stores the index of the collapsedSeries instead of whole object for quick access + ancillaryCollapsedSeries: [], + // when user collapses an "alwaysVisible" series, it goes into this array + ancillaryCollapsedSeriesIndices: [], + // this stores the index of the collapsedSeries whose y-axis is always visible + risingSeries: [], + // when user re-opens a collapsed series, it goes here + selectedDataPoints: [], + ignoreYAxisIndexes: [], + // when series are being collapsed in multiple y axes, ignore certain index + padHorizontal: 0, + maxValsInArrayIndex: 0, + zoomEnabled: config.chart.toolbar.autoSelected === 'zoom' && config.chart.toolbar.tools.zoom && config.chart.zoom.enabled, + panEnabled: config.chart.toolbar.autoSelected === 'pan' && config.chart.toolbar.tools.pan, + selectionEnabled: config.chart.toolbar.autoSelected === 'selection' && config.chart.toolbar.tools.selection, + yaxis: null, + minY: Number.MIN_VALUE, + // is 5e-324, i.e. the smallest positive number + // NOTE: If there are multiple y axis, the first yaxis array element will be considered for all y values calculations. Rest all will be calculated based on that + maxY: -Number.MAX_VALUE, + // is -1.7976931348623157e+308 + // NOTE: The above note for minY applies here as well + minYArr: [], + maxYArr: [], + maxX: -Number.MAX_VALUE, + // is -1.7976931348623157e+308 + initialmaxX: -Number.MAX_VALUE, + minX: Number.MIN_VALUE, + // is 5e-324, i.e. the smallest positive number + initialminX: Number.MIN_VALUE, + minZ: Number.MIN_VALUE, + // Max Z value in charts with Z axis + maxZ: -Number.MAX_VALUE, + // Max Z value in charts with Z axis + mousedown: false, + lastClientPosition: {}, + // don't reset this variable this the chart is destroyed. It is used to detect right or left mousemove in panning + visibleXRange: undefined, + yRange: [], + // this property is the absolute sum of positive and negative values [eg (-100 + 200 = 300)] - yAxis + zRange: 0, + // zAxis Range (for bubble charts) + xRange: 0, + // xAxis range + yValueDecimal: 0, + // are there floating numbers in the series. If yes, this represent the len of the decimals + total: 0, + SVGNS: 'http://www.w3.org/2000/svg', + // svg namespace + svgWidth: 0, + // the whole svg width + svgHeight: 0, + // the whole svg height + noData: false, + // whether there is any data to display or not + locale: {}, + // the current locale values will be preserved here for global access + dom: {}, + // for storing all dom nodes in this particular property + // elWrap: null, // the element that wraps everything + // elGraphical: null, // this contains lines/areas/bars/pies + // elGridRect: null, // paths going outside this area will be clipped + // elGridRectMask: null, // clipping will happen with this mask + // elGridRectMarkerMask: null, // clipping will happen with this mask + // elLegendWrap: null, // the whole legend area + // elDefs: null, // [defs] element + memory: { + methodsToExec: [] + }, + shouldAnimate: true, + delayedElements: [], + // element which appear after animation has finished + axisCharts: true, + // chart type = line or area or bar + // (refer them also as plot charts in the code) + isXNumeric: false, + // bool: data was provided in a {[x,y], [x,y]} pattern + isDataXYZ: false, + // bool: data was provided in a {[x,y,z]} pattern + resized: false, + // bool: user has resized + resizeTimer: null, + // timeout function to make a small delay before + // drawing when user resized + comboCharts: false, + // bool: whether it's a combination of line/column + comboChartsHasBars: false, + // bool: whether it's a combination of line/column + dataChanged: false, + // bool: has data changed dynamically + previousPaths: [], + // array: when data is changed, it will animate from + // previous paths + seriesXvalues: [], + // we will need this in tooltip (it's x position) + // when we will have unequal x values, we will need + // some way to get x value depending on mouse pointer + seriesYvalues: [], + // we will need this when deciding which series + // user hovered on + seriesCandleO: [], + // candle stick open values + seriesCandleH: [], + // candle stick high values + seriesCandleL: [], + // candle stick low values + seriesCandleC: [], + // candle stick close values + allSeriesHasEqualX: true, + dataPoints: 0, + // the longest series length + pointsArray: [], + // store the points positions here to draw later on hover + // format is - [[x,y],[x,y]... [x,y]] + dataLabelsRects: [], + // store the positions of datalabels to prevent collision + lastDrawnDataLabelsIndexes: [], + hasNullValues: false, + // bool: whether series contains null values + easing: null, + // function: animation effect to apply + zoomed: false, + // whether user has zoomed or not + gridWidth: 0, + // drawable width of actual graphs (series paths) + gridHeight: 0, + // drawable height of actual graphs (series paths) + yAxisScale: [], + xAxisScale: null, + xAxisTicksPositions: [], + timescaleTicks: [], + rotateXLabels: false, + defaultLabels: false, + xLabelFormatter: undefined, + // formatter for x axis labels + yLabelFormatters: [], + xaxisTooltipFormatter: undefined, + // formatter for x axis tooltip + ttKeyFormatter: undefined, + ttVal: undefined, + ttZFormatter: undefined, + LINE_HEIGHT_RATIO: 1.618, + xAxisLabelsHeight: 0, + yAxisLabelsWidth: 0, + scaleX: 1, + scaleY: 1, + translateX: 0, + translateY: 0, + translateYAxisX: [], + yLabelsCoords: [], + yTitleCoords: [], + yAxisWidths: [], + translateXAxisY: 0, + translateXAxisX: 0, + tooltip: null, + tooltipOpts: null + }; + } + }, { + key: "init", + value: function init(config) { + var globals = this.globalVars(config); + globals.initialConfig = Utils.extend({}, config); + globals.initialSeries = JSON.parse(JSON.stringify(globals.initialConfig.series)); + globals.lastXAxis = JSON.parse(JSON.stringify(globals.initialConfig.xaxis)); + globals.lastYAxis = JSON.parse(JSON.stringify(globals.initialConfig.yaxis)); + return globals; + } + }]); + + return Globals; + }(); + + /** + * ApexCharts Base Class for extending user options with pre-defined ApexCharts config. + * + * @module Base + **/ + + var Base = + /*#__PURE__*/ + function () { + function Base(opts) { + _classCallCheck(this, Base); + + this.opts = opts; + } + + _createClass(Base, [{ + key: "init", + value: function init() { + var config = new Config(this.opts).init(); + var globals = new Globals().init(config); + var w = { + config: config, + globals: globals + }; + return w; + } + }]); + + return Base; + }(); + + /** + * ApexCharts Fill Class for setting fill options of the paths. + * + * @module Fill + **/ + + var Fill = + /*#__PURE__*/ + function () { + function Fill(ctx) { + _classCallCheck(this, Fill); + + this.ctx = ctx; + this.w = ctx.w; + this.opts = null; + this.seriesIndex = 0; + } + + _createClass(Fill, [{ + key: "clippedImgArea", + value: function clippedImgArea(params) { + var w = this.w; + var cnf = w.config; + var svgW = parseInt(w.globals.gridWidth); + var svgH = parseInt(w.globals.gridHeight); + var size = svgW > svgH ? svgW : svgH; + var fillImg = params.image; + var imgWidth = 0; + var imgHeight = 0; + + if (typeof params.width === 'undefined' && typeof params.height === 'undefined') { + if (cnf.fill.image.width !== undefined && cnf.fill.image.height !== undefined) { + imgWidth = cnf.fill.image.width + 1; + imgHeight = cnf.fill.image.height; + } else { + imgWidth = size + 1; + imgHeight = size; + } + } else { + imgWidth = params.width; + imgHeight = params.height; + } + + var elPattern = document.createElementNS(w.globals.SVGNS, 'pattern'); + Graphics.setAttrs(elPattern, { + id: params.patternID, + patternUnits: params.patternUnits ? params.patternUnits : 'userSpaceOnUse', + width: imgWidth + 'px', + height: imgHeight + 'px' + }); + var elImage = document.createElementNS(w.globals.SVGNS, 'image'); + elPattern.appendChild(elImage); + elImage.setAttributeNS('http://www.w3.org/1999/xlink', 'href', fillImg); + Graphics.setAttrs(elImage, { + x: 0, + y: 0, + preserveAspectRatio: 'none', + width: imgWidth + 'px', + height: imgHeight + 'px' + }); + elImage.style.opacity = params.opacity; + w.globals.dom.elDefs.node.appendChild(elPattern); + } + }, { + key: "getSeriesIndex", + value: function getSeriesIndex(opts) { + var w = this.w; + + if (w.config.chart.type === 'bar' && w.config.plotOptions.bar.distributed || w.config.chart.type === 'heatmap') { + this.seriesIndex = opts.seriesNumber; + } else { + this.seriesIndex = opts.seriesNumber % w.globals.series.length; + } + + return this.seriesIndex; + } + }, { + key: "fillPath", + value: function fillPath(opts) { + var w = this.w; + this.opts = opts; + var cnf = this.w.config; + var pathFill; + var patternFill, gradientFill; + this.seriesIndex = this.getSeriesIndex(opts); + var fillColors = this.getFillColors(); + var fillColor = fillColors[this.seriesIndex]; + var fillType = this.getFillType(this.seriesIndex); + var fillOpacity = Array.isArray(cnf.fill.opacity) ? cnf.fill.opacity[this.seriesIndex] : cnf.fill.opacity; + var defaultColor = fillColor; + + if (opts.color) { + fillColor = opts.color; + } + + if (fillColor.indexOf('rgb') === -1) { + defaultColor = Utils.hexToRgba(fillColor, fillOpacity); + } else { + if (fillColor.indexOf('rgba') > -1) { + fillOpacity = 0 + '.' + Utils.getOpacityFromRGBA(fillColors[this.seriesIndex]); + } + } + + if (fillType === 'pattern') { + patternFill = this.handlePatternFill(patternFill, fillColor, fillOpacity, defaultColor); + } + + if (fillType === 'gradient') { + gradientFill = this.handleGradientFill(gradientFill, fillColor, fillOpacity, this.seriesIndex); + } + + if (cnf.fill.image.src.length > 0 && fillType === 'image') { + if (opts.seriesNumber < cnf.fill.image.src.length) { + this.clippedImgArea({ + opacity: fillOpacity, + image: cnf.fill.image.src[opts.seriesNumber], + patternUnits: opts.patternUnits, + patternID: "pattern".concat(w.globals.cuid).concat(opts.seriesNumber + 1) + }); + pathFill = "url(#pattern".concat(w.globals.cuid).concat(opts.seriesNumber + 1, ")"); + } else { + pathFill = defaultColor; + } + } else if (fillType === 'gradient') { + pathFill = gradientFill; + } else if (fillType === 'pattern') { + pathFill = patternFill; + } else { + pathFill = defaultColor; + } // override pattern/gradient if opts.solid is true + + + if (opts.solid) { + pathFill = defaultColor; + } + + return pathFill; + } + }, { + key: "getFillType", + value: function getFillType(seriesIndex) { + var w = this.w; + + if (Array.isArray(w.config.fill.type)) { + return w.config.fill.type[seriesIndex]; + } else { + return w.config.fill.type; + } + } + }, { + key: "getFillColors", + value: function getFillColors() { + var w = this.w; + var cnf = w.config; + var opts = this.opts; + var fillColors = []; + + if (w.globals.comboCharts) { + if (w.config.series[this.seriesIndex].type === 'line') { + if (w.globals.stroke.colors instanceof Array) { + fillColors = w.globals.stroke.colors; + } else { + fillColors.push(w.globals.stroke.colors); + } + } else { + if (w.globals.fill.colors instanceof Array) { + fillColors = w.globals.fill.colors; + } else { + fillColors.push(w.globals.fill.colors); + } + } + } else { + if (cnf.chart.type === 'line') { + if (w.globals.stroke.colors instanceof Array) { + fillColors = w.globals.stroke.colors; + } else { + fillColors.push(w.globals.stroke.colors); + } + } else { + if (w.globals.fill.colors instanceof Array) { + fillColors = w.globals.fill.colors; + } else { + fillColors.push(w.globals.fill.colors); + } + } + } // colors passed in arguments + + + if (typeof opts.fillColors !== 'undefined') { + fillColors = []; + + if (opts.fillColors instanceof Array) { + fillColors = opts.fillColors.slice(); + } else { + fillColors.push(opts.fillColors); + } + } + + return fillColors; + } + }, { + key: "handlePatternFill", + value: function handlePatternFill(patternFill, fillColor, fillOpacity, defaultColor) { + var cnf = this.w.config; + var opts = this.opts; + var graphics = new Graphics(this.ctx); + var patternStrokeWidth = cnf.fill.pattern.strokeWidth === undefined ? Array.isArray(cnf.stroke.width) ? cnf.stroke.width[this.seriesIndex] : cnf.stroke.width : Array.isArray(cnf.fill.pattern.strokeWidth) ? cnf.fill.pattern.strokeWidth[this.seriesIndex] : cnf.fill.pattern.strokeWidth; + var patternLineColor = fillColor; + + if (cnf.fill.pattern.style instanceof Array) { + if (typeof cnf.fill.pattern.style[opts.seriesNumber] !== 'undefined') { + var pf = graphics.drawPattern(cnf.fill.pattern.style[opts.seriesNumber], cnf.fill.pattern.width, cnf.fill.pattern.height, patternLineColor, patternStrokeWidth, fillOpacity); + patternFill = pf; + } else { + patternFill = defaultColor; + } + } else { + patternFill = graphics.drawPattern(cnf.fill.pattern.style, cnf.fill.pattern.width, cnf.fill.pattern.height, patternLineColor, patternStrokeWidth, fillOpacity); + } + + return patternFill; + } + }, { + key: "handleGradientFill", + value: function handleGradientFill(gradientFill, fillColor, fillOpacity, i) { + var cnf = this.w.config; + var opts = this.opts; + var graphics = new Graphics(this.ctx); + var utils = new Utils(); + var type = cnf.fill.gradient.type; + var gradientFrom, gradientTo; + var opacityFrom = cnf.fill.gradient.opacityFrom === undefined ? fillOpacity : Array.isArray(cnf.fill.gradient.opacityFrom) ? cnf.fill.gradient.opacityFrom[i] : cnf.fill.gradient.opacityFrom; + var opacityTo = cnf.fill.gradient.opacityTo === undefined ? fillOpacity : Array.isArray(cnf.fill.gradient.opacityTo) ? cnf.fill.gradient.opacityTo[i] : cnf.fill.gradient.opacityTo; + gradientFrom = fillColor; + + if (cnf.fill.gradient.gradientToColors === undefined || cnf.fill.gradient.gradientToColors.length === 0) { + if (cnf.fill.gradient.shade === 'dark') { + gradientTo = utils.shadeColor(parseFloat(cnf.fill.gradient.shadeIntensity) * -1, fillColor); + } else { + gradientTo = utils.shadeColor(parseFloat(cnf.fill.gradient.shadeIntensity), fillColor); + } + } else { + gradientTo = cnf.fill.gradient.gradientToColors[opts.seriesNumber]; + } + + if (cnf.fill.gradient.inverseColors) { + var t = gradientFrom; + gradientFrom = gradientTo; + gradientTo = t; + } + + gradientFill = graphics.drawGradient(type, gradientFrom, gradientTo, opacityFrom, opacityTo, opts.size, cnf.fill.gradient.stops, cnf.fill.gradient.colorStops, i); + return gradientFill; + } + }]); + + return Fill; + }(); + + /** + * ApexCharts Markers Class for drawing points on y values in axes charts. + * + * @module Markers + **/ + + var Markers = + /*#__PURE__*/ + function () { + function Markers(ctx, opts) { + _classCallCheck(this, Markers); + + this.ctx = ctx; + this.w = ctx.w; + } + + _createClass(Markers, [{ + key: "setGlobalMarkerSize", + value: function setGlobalMarkerSize() { + var w = this.w; + w.globals.markers.size = Array.isArray(w.config.markers.size) ? w.config.markers.size : [w.config.markers.size]; + + if (w.globals.markers.size.length > 0) { + if (w.globals.markers.size.length < w.globals.series.length + 1) { + for (var i = 0; i <= w.globals.series.length; i++) { + if (typeof w.globals.markers.size[i] === 'undefined') { + w.globals.markers.size.push(w.globals.markers.size[0]); + } + } + } + } else { + w.globals.markers.size = w.config.series.map(function (s) { + return w.config.markers.size; + }); + } + } + }, { + key: "plotChartMarkers", + value: function plotChartMarkers(pointsPos, seriesIndex, j) { + var _this = this; + + var w = this.w; + var p = pointsPos; + var elPointsWrap = null; + var graphics = new Graphics(this.ctx); + var point; + + if (w.globals.markers.size[seriesIndex] > 0) { + elPointsWrap = graphics.group({ + class: 'apexcharts-series-markers' + }); + elPointsWrap.attr('clip-path', "url(#gridRectMarkerMask".concat(w.globals.cuid, ")")); + } + + if (p.x instanceof Array) { + var _loop = function _loop(q) { + var dataPointIndex = j; // a small hack as we have 2 points for the first val to connect it + + if (j === 1 && q === 0) dataPointIndex = 0; + if (j === 1 && q === 1) dataPointIndex = 1; + var PointClasses = 'apexcharts-marker'; + + if ((w.config.chart.type === 'line' || w.config.chart.type === 'area') && !w.globals.comboCharts && !w.config.tooltip.intersect) { + PointClasses += ' no-pointer-events'; + } + + var shouldMarkerDraw = Array.isArray(w.config.markers.size) ? w.globals.markers.size[seriesIndex] > 0 : w.config.markers.size > 0; + + if (shouldMarkerDraw) { + if (Utils.isNumber(p.y[q])) { + PointClasses += " w".concat((Math.random() + 1).toString(36).substring(4)); + } else { + PointClasses = 'apexcharts-nullpoint'; + } + + var opts = _this.getMarkerConfig(PointClasses, seriesIndex); // discrete markers is an option where user can specify a particular marker with different size and color + + + w.config.markers.discrete.map(function (marker) { + if (marker.seriesIndex === seriesIndex && marker.dataPointIndex === dataPointIndex) { + opts.pointStrokeColor = marker.strokeColor; + opts.pointFillColor = marker.fillColor; + opts.pSize = marker.size; + } + }); + point = graphics.drawMarker(p.x[q], p.y[q], opts); + point.attr('rel', dataPointIndex); + point.attr('j', dataPointIndex); + point.attr('index', seriesIndex); + point.node.setAttribute('default-marker-size', opts.pSize); + var filters = new Filters(_this.ctx); + filters.setSelectionFilter(point, seriesIndex, dataPointIndex); + + _this.addEvents(point); + + if (elPointsWrap) { + elPointsWrap.add(point); + } + } else { + // dynamic array creation - multidimensional + if (typeof w.globals.pointsArray[seriesIndex] === 'undefined') w.globals.pointsArray[seriesIndex] = []; + w.globals.pointsArray[seriesIndex].push([p.x[q], p.y[q]]); + } + }; + + for (var q = 0; q < p.x.length; q++) { + _loop(q); + } + } + + return elPointsWrap; + } + }, { + key: "getMarkerConfig", + value: function getMarkerConfig(cssClass, seriesIndex) { + var w = this.w; + var pStyle = this.getMarkerStyle(seriesIndex); + var pSize = w.globals.markers.size[seriesIndex]; + return { + pSize: pSize, + pRadius: w.config.markers.radius, + pWidth: w.config.markers.strokeWidth, + pointStrokeColor: pStyle.pointStrokeColor, + pointFillColor: pStyle.pointFillColor, + shape: w.config.markers.shape instanceof Array ? w.config.markers.shape[seriesIndex] : w.config.markers.shape, + class: cssClass, + pointStrokeOpacity: w.config.markers.strokeOpacity, + pointFillOpacity: w.config.markers.fillOpacity, + seriesIndex: seriesIndex + }; + } + }, { + key: "addEvents", + value: function addEvents(circle) { + var graphics = new Graphics(this.ctx); + circle.node.addEventListener('mouseenter', graphics.pathMouseEnter.bind(this.ctx, circle)); + circle.node.addEventListener('mouseleave', graphics.pathMouseLeave.bind(this.ctx, circle)); + circle.node.addEventListener('mousedown', graphics.pathMouseDown.bind(this.ctx, circle)); + circle.node.addEventListener('touchstart', graphics.pathMouseDown.bind(this.ctx, circle), { + passive: true + }); + } + }, { + key: "getMarkerStyle", + value: function getMarkerStyle(seriesIndex) { + var w = this.w; + var colors = w.globals.markers.colors; + var strokeColors = w.config.markers.strokeColor || w.config.markers.strokeColors; + var pointStrokeColor = strokeColors instanceof Array ? strokeColors[seriesIndex] : strokeColors; + var pointFillColor = colors instanceof Array ? colors[seriesIndex] : colors; + return { + pointStrokeColor: pointStrokeColor, + pointFillColor: pointFillColor + }; + } + }]); + + return Markers; + }(); + + /** + * ApexCharts Scatter Class. + * This Class also handles bubbles chart as currently there is no major difference in drawing them, + * @module Scatter + **/ + + var Scatter = + /*#__PURE__*/ + function () { + function Scatter(ctx) { + _classCallCheck(this, Scatter); + + this.ctx = ctx; + this.w = ctx.w; + this.initialAnim = this.w.config.chart.animations.enabled; + this.dynamicAnim = this.initialAnim && this.w.config.chart.animations.dynamicAnimation.enabled; // this array will help in centering the label in bubbles + + this.radiusSizes = []; + } + + _createClass(Scatter, [{ + key: "draw", + value: function draw(elSeries, j, opts) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var realIndex = opts.realIndex; + var pointsPos = opts.pointsPos; + var zRatio = opts.zRatio; + var elPointsMain = opts.elParent; + var elPointsWrap = graphics.group({ + class: "apexcharts-series-markers apexcharts-series-".concat(w.config.chart.type) + }); + elPointsWrap.attr('clip-path', "url(#gridRectMarkerMask".concat(w.globals.cuid, ")")); + + if (pointsPos.x instanceof Array) { + for (var q = 0; q < pointsPos.x.length; q++) { + var dataPointIndex = j + 1; + var shouldDraw = true; // a small hack as we have 2 points for the first val to connect it + + if (j === 0 && q === 0) dataPointIndex = 0; + if (j === 0 && q === 1) dataPointIndex = 1; + var radius = 0; + var finishRadius = w.globals.markers.size[realIndex]; + + if (zRatio !== Infinity) { + // means we have a bubble + finishRadius = w.globals.seriesZ[realIndex][dataPointIndex] / zRatio; + + if (typeof this.radiusSizes[realIndex] === 'undefined') { + this.radiusSizes.push([]); + } + + this.radiusSizes[realIndex].push(finishRadius); + } + + if (!w.config.chart.animations.enabled) { + radius = finishRadius; + } + + var x = pointsPos.x[q]; + var y = pointsPos.y[q]; + radius = radius || 0; + + if (x === 0 && y === 0 || y === null || typeof w.globals.series[realIndex][dataPointIndex] === 'undefined') { + shouldDraw = false; + } + + if (shouldDraw) { + var circle = this.drawPoint(x, y, radius, finishRadius, realIndex, dataPointIndex, j); + elPointsWrap.add(circle); + } + + elPointsMain.add(elPointsWrap); + } + } + } + }, { + key: "drawPoint", + value: function drawPoint(x, y, radius, finishRadius, realIndex, dataPointIndex, j) { + var w = this.w; + var anim = new Animations(this.ctx); + var filters = new Filters(this.ctx); + var fill = new Fill(this.ctx); + var graphics = new Graphics(this.ctx); + var pathFillCircle = fill.fillPath({ + seriesNumber: realIndex, + patternUnits: 'objectBoundingBox' + }); + var circle = graphics.drawCircle(radius); + circle.attr({ + cx: x, + cy: y, + fill: pathFillCircle + }); + + if (w.config.chart.dropShadow.enabled) { + filters.dropShadow(circle, { + top: w.config.chart.dropShadow.top, + left: w.config.chart.dropShadow.left, + blur: w.config.chart.dropShadow.blur, + color: w.config.chart.dropShadow.color, + opacity: w.config.chart.dropShadow.opacity + }); + } + + if (this.initialAnim && !w.globals.dataChanged) { + var speed = 1; + + if (!w.globals.resized) { + speed = w.config.chart.animations.speed; + } + + anim.animateCircleRadius(circle, 0, finishRadius, speed, w.globals.easing); + } + + if (w.globals.dataChanged) { + if (this.dynamicAnim) { + var _speed = w.config.chart.animations.dynamicAnimation.speed; + var prevX, prevY, prevR; + var prevPathJ = null; + prevPathJ = w.globals.previousPaths[realIndex] && w.globals.previousPaths[realIndex][j]; + + if (typeof prevPathJ !== 'undefined' && prevPathJ !== null) { + // series containing less elements will ignore these values and revert to 0 + prevX = prevPathJ.x; + prevY = prevPathJ.y; + prevR = typeof prevPathJ.r !== 'undefined' ? prevPathJ.r : finishRadius; + } + + for (var cs = 0; cs < w.globals.collapsedSeries.length; cs++) { + if (w.globals.collapsedSeries[cs].index === realIndex) { + _speed = 1; + finishRadius = 0; + } + } + + if (x === 0 && y === 0) finishRadius = 0; + anim.animateCircle(circle, { + cx: prevX, + cy: prevY, + r: prevR + }, { + cx: x, + cy: y, + r: finishRadius + }, _speed, w.globals.easing); + } else { + circle.attr({ + r: finishRadius + }); + } + } + + circle.attr({ + rel: dataPointIndex, + j: dataPointIndex, + index: realIndex, + 'default-marker-size': finishRadius + }); + var markers = new Markers(this.ctx); + filters.setSelectionFilter(circle, realIndex, dataPointIndex); + markers.addEvents(circle); + circle.node.classList.add('apexcharts-marker'); + return circle; + } + }, { + key: "centerTextInBubble", + value: function centerTextInBubble(y) { + var w = this.w; + y = y + parseInt(w.config.dataLabels.style.fontSize) / 4; + return { + y: y + }; + } + }]); + + return Scatter; + }(); + + /** + * ApexCharts DataLabels Class for drawing dataLabels on Axes based Charts. + * + * @module DataLabels + **/ + + var DataLabels = + /*#__PURE__*/ + function () { + function DataLabels(ctx) { + _classCallCheck(this, DataLabels); + + this.ctx = ctx; + this.w = ctx.w; + } // When there are many datalabels to be printed, and some of them overlaps each other in the same series, this method will take care of that + // Also, when datalabels exceeds the drawable area and get clipped off, we need to adjust and move some pixels to make them visible again + + + _createClass(DataLabels, [{ + key: "dataLabelsCorrection", + value: function dataLabelsCorrection(x, y, val, i, dataPointIndex, alwaysDrawDataLabel, fontSize) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var drawnextLabel = false; // + + var textRects = graphics.getTextRects(val, fontSize); + var width = textRects.width; + var height = textRects.height; // first value in series, so push an empty array + + if (typeof w.globals.dataLabelsRects[i] === 'undefined') w.globals.dataLabelsRects[i] = []; // then start pushing actual rects in that sub-array + + w.globals.dataLabelsRects[i].push({ + x: x, + y: y, + width: width, + height: height + }); + var len = w.globals.dataLabelsRects[i].length - 2; + var lastDrawnIndex = typeof w.globals.lastDrawnDataLabelsIndexes[i] !== 'undefined' ? w.globals.lastDrawnDataLabelsIndexes[i][w.globals.lastDrawnDataLabelsIndexes[i].length - 1] : 0; + + if (typeof w.globals.dataLabelsRects[i][len] !== 'undefined') { + var lastDataLabelRect = w.globals.dataLabelsRects[i][lastDrawnIndex]; + + if ( // next label forward and x not intersecting + x > lastDataLabelRect.x + lastDataLabelRect.width + 2 || y > lastDataLabelRect.y + lastDataLabelRect.height + 2 || x + width < lastDataLabelRect.x // next label is going to be drawn backwards + ) { + // the 2 indexes don't override, so OK to draw next label + drawnextLabel = true; + } + } + + if (dataPointIndex === 0 || alwaysDrawDataLabel) { + drawnextLabel = true; + } + + return { + x: x, + y: y, + drawnextLabel: drawnextLabel + }; + } + }, { + key: "drawDataLabel", + value: function drawDataLabel(pos, i, j) { + // this method handles line, area, bubble, scatter charts as those charts contains markers/points which have pre-defined x/y positions + // all other charts like bars / heatmaps will define their own drawDataLabel routine + var w = this.w; + var graphics = new Graphics(this.ctx); + var dataLabelsConfig = w.config.dataLabels; + var x = 0; + var y = 0; + var dataPointIndex = j; + var elDataLabelsWrap = null; + + if (!dataLabelsConfig.enabled || pos.x instanceof Array !== true) { + return elDataLabelsWrap; + } + + elDataLabelsWrap = graphics.group({ + class: 'apexcharts-data-labels' + }); + elDataLabelsWrap.attr('clip-path', "url(#gridRectMarkerMask".concat(w.globals.cuid, ")")); + + for (var q = 0; q < pos.x.length; q++) { + x = pos.x[q] + dataLabelsConfig.offsetX; + y = pos.y[q] + dataLabelsConfig.offsetY - w.globals.markers.size[i] - 5; + + if (!isNaN(x)) { + // a small hack as we have 2 points for the first val to connect it + if (j === 1 && q === 0) dataPointIndex = 0; + if (j === 1 && q === 1) dataPointIndex = 1; + var val = w.globals.series[i][dataPointIndex]; + var text = ''; + + if (w.config.chart.type === 'bubble') { + text = w.globals.seriesZ[i][dataPointIndex]; + y = pos.y[q] + w.config.dataLabels.offsetY; + var scatter = new Scatter(this.ctx); + var centerTextInBubbleCoords = scatter.centerTextInBubble(y, i, dataPointIndex); + y = centerTextInBubbleCoords.y; + } else { + if (typeof val !== 'undefined') { + text = w.config.dataLabels.formatter(val, { + seriesIndex: i, + dataPointIndex: dataPointIndex, + w: w + }); + } + } + + this.plotDataLabelsText({ + x: x, + y: y, + text: text, + i: i, + j: dataPointIndex, + parent: elDataLabelsWrap, + offsetCorrection: true, + dataLabelsConfig: w.config.dataLabels + }); + } + } + + return elDataLabelsWrap; + } + }, { + key: "plotDataLabelsText", + value: function plotDataLabelsText(opts) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var x = opts.x, + y = opts.y, + i = opts.i, + j = opts.j, + text = opts.text, + textAnchor = opts.textAnchor, + parent = opts.parent, + dataLabelsConfig = opts.dataLabelsConfig, + alwaysDrawDataLabel = opts.alwaysDrawDataLabel, + offsetCorrection = opts.offsetCorrection; + + if (Array.isArray(w.config.dataLabels.enabledOnSeries)) { + if (w.config.dataLabels.enabledOnSeries.indexOf(i) > -1) { + return; + } + } + + var correctedLabels = { + x: x, + y: y, + drawnextLabel: true + }; + + if (offsetCorrection) { + correctedLabels = this.dataLabelsCorrection(x, y, text, i, j, alwaysDrawDataLabel, parseInt(dataLabelsConfig.style.fontSize)); + } // when zoomed, we don't need to correct labels offsets, + // but if normally, labels get cropped, correct them + + + if (!w.globals.zoomed) { + x = correctedLabels.x; + y = correctedLabels.y; + } + + if (correctedLabels.drawnextLabel) { + var dataLabelText = graphics.drawText({ + width: 100, + height: parseInt(dataLabelsConfig.style.fontSize), + x: x, + y: y, + foreColor: w.globals.dataLabels.style.colors[i], + textAnchor: textAnchor || dataLabelsConfig.textAnchor, + text: text, + fontSize: dataLabelsConfig.style.fontSize, + fontFamily: dataLabelsConfig.style.fontFamily + }); + dataLabelText.attr({ + class: 'apexcharts-datalabel', + cx: x, + cy: y + }); + + if (dataLabelsConfig.dropShadow.enabled) { + var textShadow = dataLabelsConfig.dropShadow; + var filters = new Filters(this.ctx); + filters.dropShadow(dataLabelText, textShadow); + } + + parent.add(dataLabelText); + + if (typeof w.globals.lastDrawnDataLabelsIndexes[i] === 'undefined') { + w.globals.lastDrawnDataLabelsIndexes[i] = []; + } + + w.globals.lastDrawnDataLabelsIndexes[i].push(j); + } + } + }]); + + return DataLabels; + }(); + + /** + * ApexCharts Bar Class responsible for drawing both Columns and Bars. + * + * @module Bar + **/ + + var DATA_LABELS_WARNING_THRESHOLD = 50; + + var Bar = + /*#__PURE__*/ + function () { + function Bar(ctx, xyRatios) { + _classCallCheck(this, Bar); + + this.ctx = ctx; + this.w = ctx.w; + var w = this.w; + this.barOptions = w.config.plotOptions.bar; + this.isHorizontal = this.barOptions.horizontal; + this.strokeWidth = w.config.stroke.width; + this.isNullValue = false; + this.xyRatios = xyRatios; + + if (this.xyRatios !== null) { + this.xRatio = xyRatios.xRatio; + this.yRatio = xyRatios.yRatio; + this.invertedXRatio = xyRatios.invertedXRatio; + this.invertedYRatio = xyRatios.invertedYRatio; + this.baseLineY = xyRatios.baseLineY; + this.baseLineInvertedY = xyRatios.baseLineInvertedY; + } + + this.minXDiff = Number.MAX_VALUE; + this.yaxisIndex = 0; + this.seriesLen = 0; + } + /** primary draw method which is called on bar object + * @memberof Bar + * @param {array} series - user supplied series values + * @param {int} seriesIndex - the index by which series will be drawn on the svg + * @return {node} element which is supplied to parent chart draw method for appending + **/ + + + _createClass(Bar, [{ + key: "draw", + value: function draw(series, seriesIndex) { + var _this = this; + + var w = this.w; + var graphics = new Graphics(this.ctx); + var fill = new Fill(this.ctx); + var coreUtils = new CoreUtils(this.ctx, w); + this.series = coreUtils.getLogSeries(series); + series = this.series; + this.yRatio = coreUtils.getLogYRatios(this.yRatio); + this.initVariables(series); + var ret = graphics.group({ + class: 'apexcharts-bar-series apexcharts-plot-series' + }); + ret.attr('clip-path', "url(#gridRectMask".concat(w.globals.cuid, ")")); + + if (w.config.dataLabels.enabled) { + if (this.totalItems > DATA_LABELS_WARNING_THRESHOLD) { + console.warn('WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering.'); + } + } + + var _loop = function _loop(i, bc) { + var pathTo = void 0, + pathFrom = void 0; + var x = void 0, + y = void 0, + xDivision = void 0, + // xDivision is the GRIDWIDTH divided by number of datapoints (columns) + yDivision = void 0, + // yDivision is the GRIDHEIGHT divided by number of datapoints (bars) + zeroH = void 0, + // zeroH is the baseline where 0 meets y axis + zeroW = void 0; // zeroW is the baseline where 0 meets x axis + + var yArrj = []; // hold y values of current iterating series + + var xArrj = []; // hold x values of current iterating series + + var realIndex = w.globals.comboCharts ? seriesIndex[i] : i; // el to which series will be drawn + + var elSeries = graphics.group({ + class: "apexcharts-series ".concat(Utils.escapeString(w.globals.seriesNames[realIndex])), + rel: i + 1, + 'data:realIndex': realIndex + }); + + _this.ctx.series.addCollapsedClassToSeries(elSeries, realIndex); + + if (series[i].length > 0) { + _this.visibleI = _this.visibleI + 1; + } + + var strokeWidth = 0; + var barHeight = 0; + var barWidth = 0; + + if (_this.yRatio.length > 1) { + _this.yaxisIndex = realIndex; + } + + _this.isReversed = w.config.yaxis[_this.yaxisIndex] && w.config.yaxis[_this.yaxisIndex].reversed; + + var initPositions = _this.initialPositions(); + + y = initPositions.y; + barHeight = initPositions.barHeight; + yDivision = initPositions.yDivision; + zeroW = initPositions.zeroW; + x = initPositions.x; + barWidth = initPositions.barWidth; + xDivision = initPositions.xDivision; + zeroH = initPositions.zeroH; + + if (!_this.horizontal) { + xArrj.push(x + barWidth / 2); + } // eldatalabels + + + var elDataLabelsWrap = graphics.group({ + class: 'apexcharts-datalabels' + }); + + var _loop2 = function _loop2(j, tj) { + if (typeof _this.series[i][j] === 'undefined' || series[i][j] === null) { + _this.isNullValue = true; + } else { + _this.isNullValue = false; + } + + if (w.config.stroke.show) { + if (_this.isNullValue) { + strokeWidth = 0; + } else { + strokeWidth = Array.isArray(_this.strokeWidth) ? _this.strokeWidth[realIndex] : _this.strokeWidth; + } + } + + var paths = null; + + if (_this.isHorizontal) { + paths = _this.drawBarPaths({ + indexes: { + i: i, + j: j, + realIndex: realIndex, + bc: bc + }, + barHeight: barHeight, + strokeWidth: strokeWidth, + pathTo: pathTo, + pathFrom: pathFrom, + zeroW: zeroW, + x: x, + y: y, + yDivision: yDivision, + elSeries: elSeries + }); + } else { + paths = _this.drawColumnPaths({ + indexes: { + i: i, + j: j, + realIndex: realIndex, + bc: bc + }, + x: x, + y: y, + xDivision: xDivision, + pathTo: pathTo, + pathFrom: pathFrom, + barWidth: barWidth, + zeroH: zeroH, + strokeWidth: strokeWidth, + elSeries: elSeries + }); + } + + pathTo = paths.pathTo; + pathFrom = paths.pathFrom; + y = paths.y; + x = paths.x; // push current X + + if (j > 0) { + xArrj.push(x + barWidth / 2); + } + + yArrj.push(y); + var seriesNumber = _this.barOptions.distributed ? j : i; + var fillColor = null; + + if (_this.barOptions.colors.ranges.length > 0) { + var colorRange = _this.barOptions.colors.ranges; + colorRange.map(function (range) { + if (series[i][j] >= range.from && series[i][j] <= range.to) { + fillColor = range.color; + } + }); + } + + var pathFill = fill.fillPath({ + seriesNumber: _this.barOptions.distributed ? seriesNumber : realIndex, + color: fillColor + }); + elSeries = _this.renderSeries({ + realIndex: realIndex, + pathFill: pathFill, + j: j, + i: i, + pathFrom: pathFrom, + pathTo: pathTo, + strokeWidth: strokeWidth, + elSeries: elSeries, + x: x, + y: y, + series: series, + barHeight: barHeight, + barWidth: barWidth, + elDataLabelsWrap: elDataLabelsWrap, + visibleSeries: _this.visibleI, + type: 'bar' + }); + }; + + for (var j = 0, tj = w.globals.dataPoints; j < w.globals.dataPoints; j++, tj--) { + _loop2(j, tj); + } // push all x val arrays into main xArr + + + w.globals.seriesXvalues[realIndex] = xArrj; + w.globals.seriesYvalues[realIndex] = yArrj; + ret.add(elSeries); + }; + + for (var i = 0, bc = 0; i < series.length; i++, bc++) { + _loop(i, bc); + } + + return ret; + } + }, { + key: "renderSeries", + value: function renderSeries(_ref) { + var realIndex = _ref.realIndex, + pathFill = _ref.pathFill, + lineFill = _ref.lineFill, + j = _ref.j, + i = _ref.i, + pathFrom = _ref.pathFrom, + pathTo = _ref.pathTo, + strokeWidth = _ref.strokeWidth, + elSeries = _ref.elSeries, + x = _ref.x, + y = _ref.y, + series = _ref.series, + barHeight = _ref.barHeight, + barWidth = _ref.barWidth, + elDataLabelsWrap = _ref.elDataLabelsWrap, + visibleSeries = _ref.visibleSeries, + type = _ref.type; + var w = this.w; + var graphics = new Graphics(this.ctx); + + if (!lineFill) { + /* fix apexcharts#341 */ + lineFill = this.barOptions.distributed ? w.globals.stroke.colors[j] : w.globals.stroke.colors[realIndex]; + } + + if (this.isNullValue) { + pathFill = 'none'; + } + + var delay = j / w.config.chart.animations.animateGradually.delay * (w.config.chart.animations.speed / w.globals.dataPoints) / 2.4; + var renderedPath = graphics.renderPaths({ + i: i, + j: j, + realIndex: realIndex, + pathFrom: pathFrom, + pathTo: pathTo, + stroke: lineFill, + strokeWidth: strokeWidth, + strokeLineCap: w.config.stroke.lineCap, + fill: pathFill, + animationDelay: delay, + initialSpeed: w.config.chart.animations.speed, + dataChangeSpeed: w.config.chart.animations.dynamicAnimation.speed, + className: "apexcharts-".concat(type, "-area"), + id: "apexcharts-".concat(type, "-area") + }); + var filters = new Filters(this.ctx); + filters.setSelectionFilter(renderedPath, realIndex, j); + elSeries.add(renderedPath); + var dataLabels = this.calculateDataLabelsPos({ + x: x, + y: y, + i: i, + j: j, + series: series, + realIndex: realIndex, + barHeight: barHeight, + barWidth: barWidth, + renderedPath: renderedPath, + visibleSeries: visibleSeries + }); + + if (dataLabels !== null) { + elDataLabelsWrap.add(dataLabels); + } + + elSeries.add(elDataLabelsWrap); + return elSeries; + } + }, { + key: "initVariables", + value: function initVariables(series) { + var _this2 = this; + + var w = this.w; + this.series = series; + this.totalItems = 0; + this.seriesLen = 0; + this.visibleI = -1; + this.visibleItems = 1; // number of visible bars after user zoomed in/out + + for (var sl = 0; sl < series.length; sl++) { + if (series[sl].length > 0) { + this.seriesLen = this.seriesLen + 1; + this.totalItems += series[sl].length; + } + + if (w.globals.isXNumeric) { + // get the least x diff if numeric x axis is present + w.globals.seriesX.forEach(function (sX, i) { + sX.forEach(function (s, j) { + if (j > 0) { + var xDiff = s - w.globals.seriesX[i][j - 1]; + _this2.minXDiff = Math.min(xDiff, _this2.minXDiff); + } + }); + }); // get max visible items + + for (var j = 0; j < series[sl].length; j++) { + if (w.globals.seriesX[sl][j] > w.globals.minX && w.globals.seriesX[sl][j] < w.globals.maxX) { + this.visibleItems++; + } + } + } else { + this.visibleItems = w.globals.dataPoints; + } + } + + if (this.seriesLen === 0) { + // A small adjustment when combo charts are used + this.seriesLen = 1; + } + } + }, { + key: "initialPositions", + value: function initialPositions() { + var w = this.w; + var x, y, yDivision, xDivision, barHeight, barWidth, zeroH, zeroW; + + if (this.isHorizontal) { + // height divided into equal parts + yDivision = w.globals.gridHeight / w.globals.dataPoints; + barHeight = yDivision / this.seriesLen; + + if (w.globals.isXNumeric) { + yDivision = w.globals.gridHeight / this.totalItems; + barHeight = yDivision / this.seriesLen; + } + + barHeight = barHeight * parseInt(this.barOptions.barHeight) / 100; + zeroW = this.baseLineInvertedY + w.globals.padHorizontal + (this.isReversed ? w.globals.gridWidth : 0) - (this.isReversed ? this.baseLineInvertedY * 2 : 0); + y = (yDivision - barHeight * this.seriesLen) / 2; + } else { + // width divided into equal parts + xDivision = w.globals.gridWidth / this.visibleItems; + barWidth = xDivision / this.seriesLen * parseInt(this.barOptions.columnWidth) / 100; + + if (w.globals.isXNumeric) { + // max barwidth should be equal to minXDiff to avoid overlap + if (this.minXDiff === Number.MAX_VALUE) { + // possibly a single dataPoint (fixes react-apexcharts/issue#34) + var len = w.globals.labels.length; + + if (w.globals.timelineLabels.length > 0) { + len = w.globals.timelineLabels.length; + } + + if (len < 3) { + len = 3; + } + + this.minXDiff = (w.globals.maxX - w.globals.minX) / len; + } + + xDivision = this.minXDiff / this.xRatio; + barWidth = xDivision / this.seriesLen * parseInt(this.barOptions.columnWidth) / 100; + } + + zeroH = w.globals.gridHeight - this.baseLineY[this.yaxisIndex] - (this.isReversed ? w.globals.gridHeight : 0) + (this.isReversed ? this.baseLineY[this.yaxisIndex] * 2 : 0); + x = w.globals.padHorizontal + (xDivision - barWidth * this.seriesLen) / 2; + } + + return { + x: x, + y: y, + yDivision: yDivision, + xDivision: xDivision, + barHeight: barHeight, + barWidth: barWidth, + zeroH: zeroH, + zeroW: zeroW + }; + } + }, { + key: "drawBarPaths", + value: function drawBarPaths(_ref2) { + var indexes = _ref2.indexes, + barHeight = _ref2.barHeight, + strokeWidth = _ref2.strokeWidth, + pathTo = _ref2.pathTo, + pathFrom = _ref2.pathFrom, + zeroW = _ref2.zeroW, + x = _ref2.x, + y = _ref2.y, + yDivision = _ref2.yDivision, + elSeries = _ref2.elSeries; + var w = this.w; + var graphics = new Graphics(this.ctx); + var i = indexes.i; + var j = indexes.j; + var realIndex = indexes.realIndex; + var bc = indexes.bc; + + if (w.globals.isXNumeric) { + y = (w.globals.seriesX[i][j] - w.globals.minX) / this.invertedXRatio - barHeight; + } + + var barYPosition = y + barHeight * this.visibleI; + pathTo = graphics.move(zeroW, barYPosition); + pathFrom = graphics.move(zeroW, barYPosition); + + if (w.globals.previousPaths.length > 0) { + pathFrom = this.getPathFrom(realIndex, j); + } + + if (typeof this.series[i][j] === 'undefined' || this.series[i][j] === null) { + x = zeroW; + } else { + x = zeroW + this.series[i][j] / this.invertedYRatio - (this.isReversed ? this.series[i][j] / this.invertedYRatio : 0) * 2; + } + + pathTo = pathTo + graphics.line(x, barYPosition) + graphics.line(x, barYPosition + barHeight - strokeWidth) + graphics.line(zeroW, barYPosition + barHeight - strokeWidth) + graphics.line(zeroW, barYPosition); + pathFrom = pathFrom + graphics.line(zeroW, barYPosition) + graphics.line(zeroW, barYPosition + barHeight - strokeWidth) + graphics.line(zeroW, barYPosition + barHeight - strokeWidth) + graphics.line(zeroW, barYPosition); + + if (!w.globals.isXNumeric) { + y = y + yDivision; + } + + if (this.barOptions.colors.backgroundBarColors.length > 0 && i === 0) { + if (bc >= this.barOptions.colors.backgroundBarColors.length) { + bc = 0; + } + + var bcolor = this.barOptions.colors.backgroundBarColors[bc]; + var rect = graphics.drawRect(0, barYPosition - barHeight * this.visibleI, w.globals.gridWidth, barHeight * this.seriesLen, 0, bcolor, this.barOptions.colors.backgroundBarOpacity); + elSeries.add(rect); + rect.node.classList.add('apexcharts-backgroundBar'); + } + + return { + pathTo: pathTo, + pathFrom: pathFrom, + x: x, + y: y, + barYPosition: barYPosition + }; + } + }, { + key: "drawColumnPaths", + value: function drawColumnPaths(_ref3) { + var indexes = _ref3.indexes, + x = _ref3.x, + y = _ref3.y, + xDivision = _ref3.xDivision, + pathTo = _ref3.pathTo, + pathFrom = _ref3.pathFrom, + barWidth = _ref3.barWidth, + zeroH = _ref3.zeroH, + strokeWidth = _ref3.strokeWidth, + elSeries = _ref3.elSeries; + var w = this.w; + var graphics = new Graphics(this.ctx); + var i = indexes.i; + var j = indexes.j; + var realIndex = indexes.realIndex; + var bc = indexes.bc; + + if (w.globals.isXNumeric) { + x = (w.globals.seriesX[i][j] - w.globals.minX) / this.xRatio - barWidth / 2; + } + + var barXPosition = x + barWidth * this.visibleI; + pathTo = graphics.move(barXPosition, zeroH); + pathFrom = graphics.move(barXPosition, zeroH); + + if (w.globals.previousPaths.length > 0) { + pathFrom = this.getPathFrom(realIndex, j); + } + + if (typeof this.series[i][j] === 'undefined' || this.series[i][j] === null) { + y = zeroH; + } else { + y = zeroH - this.series[i][j] / this.yRatio[this.yaxisIndex] + (this.isReversed ? this.series[i][j] / this.yRatio[this.yaxisIndex] : 0) * 2; + } + + pathTo = pathTo + graphics.line(barXPosition, y) + graphics.line(barXPosition + barWidth - strokeWidth, y) + graphics.line(barXPosition + barWidth - strokeWidth, zeroH) + graphics.line(barXPosition, zeroH); + pathFrom = pathFrom + graphics.line(barXPosition, zeroH) + graphics.line(barXPosition + barWidth - strokeWidth, zeroH) + graphics.line(barXPosition + barWidth - strokeWidth, zeroH) + graphics.line(barXPosition, zeroH); + + if (!w.globals.isXNumeric) { + x = x + xDivision; + } + + if (this.barOptions.colors.backgroundBarColors.length > 0 && i === 0) { + if (bc >= this.barOptions.colors.backgroundBarColors.length) { + bc = 0; + } + + var bcolor = this.barOptions.colors.backgroundBarColors[bc]; + var rect = graphics.drawRect(barXPosition - barWidth * this.visibleI, 0, barWidth * this.seriesLen, w.globals.gridHeight, 0, bcolor, this.barOptions.colors.backgroundBarOpacity); + elSeries.add(rect); + rect.node.classList.add('apexcharts-backgroundBar'); + } + + return { + pathTo: pathTo, + pathFrom: pathFrom, + x: x, + y: y, + barXPosition: barXPosition + }; + } + /** getPathFrom is a common function for bars/columns which is used to get previous paths when data changes. + * @memberof Bar + * @param {int} realIndex - current iterating i + * @param {int} j - current iterating series's j index + * @return {string} pathFrom is the string which will be appended in animations + **/ + + }, { + key: "getPathFrom", + value: function getPathFrom(realIndex, j) { + var w = this.w; + var pathFrom; + + for (var pp = 0; pp < w.globals.previousPaths.length; pp++) { + var gpp = w.globals.previousPaths[pp]; + + if (gpp.paths.length > 0 && parseInt(gpp.realIndex) === parseInt(realIndex)) { + if (typeof w.globals.previousPaths[pp].paths[j] !== 'undefined') { + pathFrom = w.globals.previousPaths[pp].paths[j].d; + } + } + } + + return pathFrom; + } + /** calculateBarDataLabels is used to calculate the positions for the data-labels + * It also sets the element's data attr for bars and calls drawCalculatedBarDataLabels() + * @memberof Bar + * @param {object} {barProps} most of the bar properties used throughout the bar + * drawing function + * @return {object} dataLabels node-element which you can append later + **/ + + }, { + key: "calculateDataLabelsPos", + value: function calculateDataLabelsPos(_ref4) { + var x = _ref4.x, + y = _ref4.y, + i = _ref4.i, + j = _ref4.j, + realIndex = _ref4.realIndex, + series = _ref4.series, + barHeight = _ref4.barHeight, + barWidth = _ref4.barWidth, + visibleSeries = _ref4.visibleSeries, + renderedPath = _ref4.renderedPath; + var w = this.w; + var graphics = new Graphics(this.ctx); + var strokeWidth = Array.isArray(this.strokeWidth) ? this.strokeWidth[realIndex] : this.strokeWidth; + var bcx = x + parseFloat(barWidth * visibleSeries); + var bcy = y + parseFloat(barHeight * visibleSeries); + + if (w.globals.isXNumeric) { + bcx = x + parseFloat(barWidth * (visibleSeries + 1)) - strokeWidth; + bcy = y + parseFloat(barHeight * (visibleSeries + 1)) - strokeWidth; + } + + var dataLabels = null; + var dataLabelsX = x; + var dataLabelsY = y; + var dataLabelsPos = {}; + var dataLabelsConfig = w.config.dataLabels; + var barDataLabelsConfig = this.barOptions.dataLabels; + var offX = dataLabelsConfig.offsetX; + var offY = dataLabelsConfig.offsetY; + var textRects = { + width: 0, + height: 0 + }; + + if (w.config.dataLabels.enabled) { + textRects = graphics.getTextRects(w.globals.yLabelFormatters[0](w.globals.maxY), parseInt(dataLabelsConfig.style.fontSize)); + } + + if (this.isHorizontal) { + dataLabelsPos = this.calculateBarsDataLabelsPosition({ + x: x, + y: y, + i: i, + j: j, + renderedPath: renderedPath, + bcy: bcy, + barHeight: barHeight, + textRects: textRects, + strokeWidth: strokeWidth, + dataLabelsX: dataLabelsX, + dataLabelsY: dataLabelsY, + barDataLabelsConfig: barDataLabelsConfig, + offX: offX, + offY: offY + }); + } else { + dataLabelsPos = this.calculateColumnsDataLabelsPosition({ + x: x, + y: y, + i: i, + j: j, + renderedPath: renderedPath, + realIndex: realIndex, + bcx: bcx, + bcy: bcy, + barHeight: barHeight, + barWidth: barWidth, + textRects: textRects, + strokeWidth: strokeWidth, + dataLabelsY: dataLabelsY, + barDataLabelsConfig: barDataLabelsConfig, + offX: offX, + offY: offY + }); + } + + renderedPath.attr({ + cy: dataLabelsPos.bcy, + cx: dataLabelsPos.bcx, + j: j, + val: series[i][j], + barHeight: barHeight, + barWidth: barWidth + }); + dataLabels = this.drawCalculatedDataLabels({ + x: dataLabelsPos.dataLabelsX, + y: dataLabelsPos.dataLabelsY, + val: series[i][j], + i: realIndex, + j: j, + dataLabelsConfig: dataLabelsConfig + }); + return dataLabels; + } + }, { + key: "calculateColumnsDataLabelsPosition", + value: function calculateColumnsDataLabelsPosition(opts) { + var w = this.w; + var i = opts.i, + j = opts.j, + realIndex = opts.realIndex, + y = opts.y, + bcx = opts.bcx, + barWidth = opts.barWidth, + textRects = opts.textRects, + dataLabelsY = opts.dataLabelsY, + barDataLabelsConfig = opts.barDataLabelsConfig, + strokeWidth = opts.strokeWidth, + offX = opts.offX, + offY = opts.offY; + var dataLabelsX; + var barHeight = this.series[i][j] / this.yRatio[this.yaxisIndex]; + var dataPointsDividedWidth = w.globals.gridWidth / w.globals.dataPoints; + bcx = bcx - strokeWidth / 2; + + if (w.globals.isXNumeric) { + dataLabelsX = bcx - barWidth / 2 + offX; + } else { + dataLabelsX = bcx - dataPointsDividedWidth + barWidth / 2 + offX; + } + + var valIsNegative = this.series[i][j] <= 0; + + if (w.config.yaxis[this.yaxisIndex].reversed) { + y = y - barHeight; + } + + switch (barDataLabelsConfig.position) { + case 'center': + if (valIsNegative) { + dataLabelsY = y + barHeight / 2 + textRects.height / 2 + offY; + } else { + dataLabelsY = y + barHeight / 2 + textRects.height / 2 - offY; + } + + break; + + case 'bottom': + if (valIsNegative) { + dataLabelsY = y + barHeight + textRects.height + strokeWidth + offY; + } else { + dataLabelsY = y + barHeight - textRects.height / 2 + strokeWidth - offY; + } + + break; + + case 'top': + if (valIsNegative) { + dataLabelsY = y - textRects.height / 2 - offY; + } else { + dataLabelsY = y + textRects.height + offY; + } + + break; + } + + return { + bcx: bcx, + bcy: y, + dataLabelsX: dataLabelsX, + dataLabelsY: dataLabelsY + }; + } + }, { + key: "calculateBarsDataLabelsPosition", + value: function calculateBarsDataLabelsPosition(opts) { + var w = this.w; + var x = opts.x, + i = opts.i, + j = opts.j, + bcy = opts.bcy, + barHeight = opts.barHeight, + textRects = opts.textRects, + dataLabelsX = opts.dataLabelsX, + strokeWidth = opts.strokeWidth, + barDataLabelsConfig = opts.barDataLabelsConfig, + offX = opts.offX, + offY = opts.offY; + var dataPointsDividedHeight = w.globals.gridHeight / w.globals.dataPoints; + var dataLabelsY = bcy - dataPointsDividedHeight + barHeight / 2 + textRects.height / 2 + offY - 3; + var barWidth = this.series[i][j] / this.invertedYRatio; + var valIsNegative = this.series[i][j] <= 0; + + if (w.config.yaxis[this.yaxisIndex].reversed) { + x = x + barWidth; + } + + switch (barDataLabelsConfig.position) { + case 'center': + if (valIsNegative) { + dataLabelsX = x - barWidth / 2 - offX; + } else { + dataLabelsX = x - barWidth / 2 + offX; + } + + break; + + case 'bottom': + if (valIsNegative) { + dataLabelsX = x - barWidth - strokeWidth - Math.round(textRects.width / 2) - offX; + } else { + dataLabelsX = x - barWidth + strokeWidth + Math.round(textRects.width / 2) + offX; + } + + break; + + case 'top': + if (valIsNegative) { + dataLabelsX = x - strokeWidth + Math.round(textRects.width / 2) - offX; + } else { + dataLabelsX = x - strokeWidth - Math.round(textRects.width / 2) + offX; + } + + break; + } + + if (dataLabelsX < 0) { + dataLabelsX = textRects.width + strokeWidth; + } else if (dataLabelsX + textRects.width / 2 > w.globals.gridWidth) { + dataLabelsX = dataLabelsX - textRects.width - strokeWidth; + } + + return { + bcx: x, + bcy: bcy, + dataLabelsX: dataLabelsX, + dataLabelsY: dataLabelsY + }; + } + }, { + key: "drawCalculatedDataLabels", + value: function drawCalculatedDataLabels(_ref5) { + var x = _ref5.x, + y = _ref5.y, + val = _ref5.val, + i = _ref5.i, + j = _ref5.j, + dataLabelsConfig = _ref5.dataLabelsConfig; + var w = this.w; + var dataLabels = new DataLabels(this.ctx); + var graphics = new Graphics(this.ctx); + var formatter = dataLabelsConfig.formatter; + var elDataLabelsWrap = null; + var isSeriesNotCollapsed = w.globals.collapsedSeriesIndices.indexOf(i) > -1; + + if (dataLabelsConfig.enabled && !isSeriesNotCollapsed) { + elDataLabelsWrap = graphics.group({ + class: 'apexcharts-data-labels' + }); + var text = ''; + + if (typeof val !== 'undefined' && val !== null) { + text = formatter(val, { + seriesIndex: i, + dataPointIndex: j, + w: w + }); + } + + dataLabels.plotDataLabelsText({ + x: x, + y: y, + text: text, + i: i, + j: j, + parent: elDataLabelsWrap, + dataLabelsConfig: dataLabelsConfig, + alwaysDrawDataLabel: true, + offsetCorrection: true + }); + } + + return elDataLabelsWrap; + } + }]); + + return Bar; + }(); + + /** + * ApexCharts BarStacked Class responsible for drawing both Stacked Columns and Bars. + * + * @module BarStacked + * The whole calculation for stacked bar/column is different from normal bar/column, + * hence it makes sense to derive a new class for it extending most of the props of Parent Bar + **/ + + var BarStacked = + /*#__PURE__*/ + function (_Bar) { + _inherits(BarStacked, _Bar); + + function BarStacked() { + _classCallCheck(this, BarStacked); + + return _possibleConstructorReturn(this, _getPrototypeOf(BarStacked).apply(this, arguments)); + } + + _createClass(BarStacked, [{ + key: "draw", + value: function draw(series, seriesIndex) { + var _this = this; + + var w = this.w; + this.graphics = new Graphics(this.ctx); + this.fill = new Fill(this.ctx); + this.bar = new Bar(this.ctx, this.xyRatios); + var coreUtils = new CoreUtils(this.ctx, w); + this.series = coreUtils.getLogSeries(series); + series = this.series; + this.yRatio = coreUtils.getLogYRatios(this.yRatio); + this.series = series; + this.initVariables(series); + + if (w.config.chart.stackType === '100%') { + this.series = w.globals.seriesPercent.slice(); + series = this.series; + } + + this.totalItems = 0; + this.prevY = []; // y position on chart + + this.prevX = []; // x position on chart + + this.prevYF = []; // y position including shapes on chart + + this.prevXF = []; // x position including shapes on chart + + this.prevYVal = []; // y values (series[i][j]) in columns + + this.prevXVal = []; // x values (series[i][j]) in bars + + this.xArrj = []; // xj indicates x position on graph in bars + + this.xArrjF = []; // xjF indicates bar's x position + endingshape's positions in bars + + this.xArrjVal = []; // x val means the actual series's y values in horizontal/bars + + this.yArrj = []; // yj indicates y position on graph in columns + + this.yArrjF = []; // yjF indicates bar's y position + endingshape's positions in columns + + this.yArrjVal = []; // y val means the actual series's y values in columns + + for (var sl = 0; sl < series.length; sl++) { + if (series[sl].length > 0) { + this.totalItems += series[sl].length; + } + } + + var ret = this.graphics.group({ + class: 'apexcharts-bar-series apexcharts-plot-series' + }); + ret.attr('clip-path', "url(#gridRectMask".concat(w.globals.cuid, ")")); + var x = 0; + var y = 0; + + var _loop = function _loop(i, bc) { + var pathTo = void 0, + pathFrom = void 0; + var xDivision = void 0; // xDivision is the GRIDWIDTH divided by number of datapoints (columns) + + var yDivision = void 0; // yDivision is the GRIDHEIGHT divided by number of datapoints (bars) + + var zeroH = void 0; // zeroH is the baseline where 0 meets y axis + + var zeroW = void 0; // zeroW is the baseline where 0 meets x axis + + var xArrValues = []; + var yArrValues = []; + var realIndex = w.globals.comboCharts ? seriesIndex[i] : i; + + if (_this.yRatio.length > 1) { + _this.yaxisIndex = realIndex; + } + + _this.isReversed = w.config.yaxis[_this.yaxisIndex] && w.config.yaxis[_this.yaxisIndex].reversed; // el to which series will be drawn + + var elSeries = _this.graphics.group({ + class: "apexcharts-series ".concat(Utils.escapeString(w.globals.seriesNames[realIndex])), + rel: i + 1, + 'data:realIndex': realIndex + }); // eldatalabels + + + var elDataLabelsWrap = _this.graphics.group({ + class: 'apexcharts-datalabels' + }); + + var strokeWidth = 0; + var barHeight = 0; + var barWidth = 0; + + var initPositions = _this.initialPositions(x, y, xDivision, yDivision, zeroH, zeroW); + + y = initPositions.y; + barHeight = initPositions.barHeight; + yDivision = initPositions.yDivision; + zeroW = initPositions.zeroW; + x = initPositions.x; + barWidth = initPositions.barWidth; + xDivision = initPositions.xDivision; + zeroH = initPositions.zeroH; + _this.yArrj = []; + _this.yArrjF = []; + _this.yArrjVal = []; + _this.xArrj = []; + _this.xArrjF = []; + _this.xArrjVal = []; // if (!this.horizontal) { + // this.xArrj.push(x + barWidth / 2) + // } + + var _loop2 = function _loop2(j) { + if (w.config.stroke.show) { + if (_this.isNullValue) { + strokeWidth = 0; + } else { + strokeWidth = Array.isArray(_this.strokeWidth) ? _this.strokeWidth[realIndex] : _this.strokeWidth; + } + } + + var paths = null; + + if (_this.isHorizontal) { + paths = _this.drawBarPaths({ + indexes: { + i: i, + j: j, + realIndex: realIndex, + bc: bc + }, + barHeight: barHeight, + strokeWidth: strokeWidth, + pathTo: pathTo, + pathFrom: pathFrom, + zeroW: zeroW, + x: x, + y: y, + yDivision: yDivision, + elSeries: elSeries + }); + } else { + paths = _this.drawColumnPaths({ + indexes: { + i: i, + j: j, + realIndex: realIndex, + bc: bc + }, + x: x, + y: y, + xDivision: xDivision, + pathTo: pathTo, + pathFrom: pathFrom, + barWidth: barWidth, + zeroH: zeroH, + strokeWidth: strokeWidth, + elSeries: elSeries + }); + } + + pathTo = paths.pathTo; + pathFrom = paths.pathFrom; + y = paths.y; + x = paths.x; + xArrValues.push(x); + yArrValues.push(y); + var seriesNumber = w.config.plotOptions.bar.distributed ? j : i; + var fillColor = null; + + if (_this.barOptions.colors.ranges.length > 0) { + var colorRange = _this.barOptions.colors.ranges; + colorRange.map(function (range, index) { + if (series[i][j] >= range.from && series[i][j] <= range.to) { + fillColor = range.color; + } + }); + } + + var pathFill = _this.fill.fillPath({ + seriesNumber: _this.barOptions.distributed ? seriesNumber : realIndex, + color: fillColor + }); + + elSeries = _this.renderSeries({ + realIndex: realIndex, + pathFill: pathFill, + j: j, + i: i, + pathFrom: pathFrom, + pathTo: pathTo, + strokeWidth: strokeWidth, + elSeries: elSeries, + x: x, + y: y, + series: series, + barHeight: barHeight, + barWidth: barWidth, + elDataLabelsWrap: elDataLabelsWrap, + type: 'bar', + visibleSeries: 0 + }); + }; + + for (var j = 0; j < w.globals.dataPoints; j++) { + _loop2(j); + } // push all x val arrays into main xArr + + + w.globals.seriesXvalues[realIndex] = xArrValues; + w.globals.seriesYvalues[realIndex] = yArrValues; // push all current y values array to main PrevY Array + + _this.prevY.push(_this.yArrj); + + _this.prevYF.push(_this.yArrjF); + + _this.prevYVal.push(_this.yArrjVal); + + _this.prevX.push(_this.xArrj); + + _this.prevXF.push(_this.xArrjF); + + _this.prevXVal.push(_this.xArrjVal); + + ret.add(elSeries); + }; + + for (var i = 0, bc = 0; i < series.length; i++, bc++) { + _loop(i, bc); + } + + return ret; + } + }, { + key: "initialPositions", + value: function initialPositions(x, y, xDivision, yDivision, zeroH, zeroW) { + var w = this.w; + var barHeight, barWidth; + + if (this.isHorizontal) { + // height divided into equal parts + yDivision = w.globals.gridHeight / w.globals.dataPoints; + barHeight = yDivision; + barHeight = barHeight * parseInt(w.config.plotOptions.bar.barHeight) / 100; + zeroW = this.baseLineInvertedY + w.globals.padHorizontal + (this.isReversed ? w.globals.gridWidth : 0) - (this.isReversed ? this.baseLineInvertedY * 2 : 0); // initial y position is half of barHeight * half of number of Bars + + y = (yDivision - barHeight) / 2; + } else { + // width divided into equal parts + xDivision = w.globals.gridWidth / w.globals.dataPoints; + barWidth = xDivision; + + if (w.globals.isXNumeric) { + // max barwidth should be equal to minXDiff to avoid overlap + xDivision = this.minXDiff / this.xRatio; + barWidth = xDivision * parseInt(this.barOptions.columnWidth) / 100; + } else { + barWidth = barWidth * parseInt(w.config.plotOptions.bar.columnWidth) / 100; + } + + zeroH = this.baseLineY[this.yaxisIndex] + (this.isReversed ? w.globals.gridHeight : 0) - (this.isReversed ? this.baseLineY[this.yaxisIndex] * 2 : 0); // initial x position is one third of barWidth + + x = w.globals.padHorizontal + (xDivision - barWidth) / 2; + } + + return { + x: x, + y: y, + yDivision: yDivision, + xDivision: xDivision, + barHeight: barHeight, + barWidth: barWidth, + zeroH: zeroH, + zeroW: zeroW + }; + } + }, { + key: "drawBarPaths", + value: function drawBarPaths(_ref) { + var indexes = _ref.indexes, + barHeight = _ref.barHeight, + strokeWidth = _ref.strokeWidth, + pathTo = _ref.pathTo, + pathFrom = _ref.pathFrom, + zeroW = _ref.zeroW, + x = _ref.x, + y = _ref.y, + yDivision = _ref.yDivision, + elSeries = _ref.elSeries; + var w = this.w; + var barYPosition = y; + var barXPosition; + var i = indexes.i; + var j = indexes.j; + var realIndex = indexes.realIndex; + var bc = indexes.bc; + var prevBarW = 0; + + for (var k = 0; k < this.prevXF.length; k++) { + prevBarW = prevBarW + this.prevXF[k][j]; + } + + if (i > 0) { + var bXP = zeroW; + + if (this.prevXVal[i - 1][j] < 0) { + if (this.series[i][j] >= 0) { + bXP = this.prevX[i - 1][j] + prevBarW - (this.isReversed ? prevBarW : 0) * 2; + } else { + bXP = this.prevX[i - 1][j]; + } + } else if (this.prevXVal[i - 1][j] >= 0) { + if (this.series[i][j] >= 0) { + bXP = this.prevX[i - 1][j]; + } else { + bXP = this.prevX[i - 1][j] - prevBarW + (this.isReversed ? prevBarW : 0) * 2; + } + } + + barXPosition = bXP; + } else { + // the first series will not have prevX values + barXPosition = zeroW; + } + + if (this.series[i][j] === null) { + x = barXPosition; + } else { + x = barXPosition + this.series[i][j] / this.invertedYRatio - (this.isReversed ? this.series[i][j] / this.invertedYRatio : 0) * 2; + } + + this.xArrj.push(x); + this.xArrjF.push(Math.abs(barXPosition - x)); + this.xArrjVal.push(this.series[i][j]); + pathTo = this.graphics.move(barXPosition, barYPosition); + pathFrom = this.graphics.move(barXPosition, barYPosition); + + if (w.globals.previousPaths.length > 0) { + pathFrom = this.bar.getPathFrom(realIndex, j, false); + } + + pathTo = pathTo + this.graphics.line(x, barYPosition) + this.graphics.line(x, barYPosition + barHeight - strokeWidth) + this.graphics.line(barXPosition, barYPosition + barHeight - strokeWidth) + this.graphics.line(barXPosition, barYPosition); + pathFrom = pathFrom + this.graphics.line(barXPosition, barYPosition) + this.graphics.line(barXPosition, barYPosition + barHeight - strokeWidth) + this.graphics.line(barXPosition, barYPosition + barHeight - strokeWidth) + this.graphics.line(barXPosition, barYPosition + barHeight - strokeWidth) + this.graphics.line(barXPosition, barYPosition); + + if (w.config.plotOptions.bar.colors.backgroundBarColors.length > 0 && i === 0) { + if (bc >= w.config.plotOptions.bar.colors.backgroundBarColors.length) { + bc = 0; + } + + var bcolor = w.config.plotOptions.bar.colors.backgroundBarColors[bc]; + var rect = this.graphics.drawRect(0, barYPosition, w.globals.gridWidth, barHeight, 0, bcolor, w.config.plotOptions.bar.colors.backgroundBarOpacity); + elSeries.add(rect); + rect.node.classList.add('apexcharts-backgroundBar'); + } + + y = y + yDivision; + return { + pathTo: pathTo, + pathFrom: pathFrom, + x: x, + y: y + }; + } + }, { + key: "drawColumnPaths", + value: function drawColumnPaths(_ref2) { + var indexes = _ref2.indexes, + x = _ref2.x, + y = _ref2.y, + xDivision = _ref2.xDivision, + pathTo = _ref2.pathTo, + pathFrom = _ref2.pathFrom, + barWidth = _ref2.barWidth, + zeroH = _ref2.zeroH, + strokeWidth = _ref2.strokeWidth, + elSeries = _ref2.elSeries; + var w = this.w; + var i = indexes.i; + var j = indexes.j; + var realIndex = indexes.realIndex; + var bc = indexes.bc; + + if (w.globals.isXNumeric) { + var seriesVal = w.globals.seriesX[i][j]; + if (!seriesVal) seriesVal = 0; + x = (seriesVal - w.globals.minX) / this.xRatio - barWidth / 2; + } + + var barXPosition = x; + var barYPosition; + var prevBarH = 0; + + for (var k = 0; k < this.prevYF.length; k++) { + prevBarH = prevBarH + this.prevYF[k][j]; + } + + if (i > 0 && !w.globals.isXNumeric || i > 0 && w.globals.isXNumeric && w.globals.seriesX[i - 1][j] === w.globals.seriesX[i][j]) { + var bYP; + var prevYValue = this.prevY[i - 1][j]; + + if (this.prevYVal[i - 1][j] < 0) { + if (this.series[i][j] >= 0) { + bYP = prevYValue - prevBarH + (this.isReversed ? prevBarH : 0) * 2; + } else { + bYP = prevYValue; + } + } else { + if (this.series[i][j] >= 0) { + bYP = prevYValue; + } else { + bYP = prevYValue + prevBarH - (this.isReversed ? prevBarH : 0) * 2; + } + } + + barYPosition = bYP; + } else { + // the first series will not have prevY values, also if the prev index's series X doesn't matches the current index's series X, then start from zero + barYPosition = w.globals.gridHeight - zeroH; + } + + y = barYPosition - this.series[i][j] / this.yRatio[this.yaxisIndex] + (this.isReversed ? this.series[i][j] / this.yRatio[this.yaxisIndex] : 0) * 2; + this.yArrj.push(y); + this.yArrjF.push(Math.abs(barYPosition - y)); + this.yArrjVal.push(this.series[i][j]); + pathTo = this.graphics.move(barXPosition, barYPosition); + pathFrom = this.graphics.move(barXPosition, barYPosition); + + if (w.globals.previousPaths.length > 0) { + pathFrom = this.bar.getPathFrom(realIndex, j, false); + } + + pathTo = pathTo + this.graphics.line(barXPosition, y) + this.graphics.line(barXPosition + barWidth - strokeWidth, y) + this.graphics.line(barXPosition + barWidth - strokeWidth, barYPosition) + this.graphics.line(barXPosition, barYPosition); + pathFrom = pathFrom + this.graphics.line(barXPosition, barYPosition) + this.graphics.line(barXPosition + barWidth - strokeWidth, barYPosition) + this.graphics.line(barXPosition + barWidth - strokeWidth, barYPosition) + this.graphics.line(barXPosition + barWidth - strokeWidth, barYPosition) + this.graphics.line(barXPosition, barYPosition); + + if (w.config.plotOptions.bar.colors.backgroundBarColors.length > 0 && i === 0) { + if (bc >= w.config.plotOptions.bar.colors.backgroundBarColors.length) { + bc = 0; + } + + var bcolor = w.config.plotOptions.bar.colors.backgroundBarColors[bc]; + var rect = this.graphics.drawRect(barXPosition, 0, barWidth, w.globals.gridHeight, 0, bcolor, w.config.plotOptions.bar.colors.backgroundBarOpacity); + elSeries.add(rect); + rect.node.classList.add('apexcharts-backgroundBar'); + } + + x = x + xDivision; + return { + pathTo: pathTo, + pathFrom: pathFrom, + x: w.globals.isXNumeric ? x - xDivision : x, + y: y + }; + } + }]); + + return BarStacked; + }(Bar); + + /** + * ApexCharts CandleStick Class responsible for drawing both Stacked Columns and Bars. + * + * @module CandleStick + * The whole calculation for stacked bar/column is different from normal bar/column, + * hence it makes sense to derive a new class for it extending most of the props of Parent Bar + **/ + + var CandleStick = + /*#__PURE__*/ + function (_Bar) { + _inherits(CandleStick, _Bar); + + function CandleStick() { + _classCallCheck(this, CandleStick); + + return _possibleConstructorReturn(this, _getPrototypeOf(CandleStick).apply(this, arguments)); + } + + _createClass(CandleStick, [{ + key: "draw", + value: function draw(series, seriesIndex) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var fill = new Fill(this.ctx); + this.candlestickOptions = this.w.config.plotOptions.candlestick; + var coreUtils = new CoreUtils(this.ctx, w); + this.series = coreUtils.getLogSeries(series); + series = this.series; + this.yRatio = coreUtils.getLogYRatios(this.yRatio); + this.initVariables(series); + var ret = graphics.group({ + class: 'apexcharts-candlestick-series apexcharts-plot-series' + }); + ret.attr('clip-path', "url(#gridRectMask".concat(w.globals.cuid, ")")); + + for (var i = 0, bc = 0; i < series.length; i++, bc++) { + var pathTo = void 0, + pathFrom = void 0; + var x = void 0, + y = void 0, + xDivision = void 0, + // xDivision is the GRIDWIDTH divided by number of datapoints (columns) + zeroH = void 0; // zeroH is the baseline where 0 meets y axis + + var yArrj = []; // hold y values of current iterating series + + var xArrj = []; // hold x values of current iterating series + + var realIndex = w.globals.comboCharts ? seriesIndex[i] : i; // el to which series will be drawn + + var elSeries = graphics.group({ + class: "apexcharts-series ".concat(Utils.escapeString(w.globals.seriesNames[realIndex])), + rel: i + 1, + 'data:realIndex': realIndex + }); + + if (series[i].length > 0) { + this.visibleI = this.visibleI + 1; + } + + var strokeWidth = 0; + var barHeight = 0; + var barWidth = 0; + + if (this.yRatio.length > 1) { + this.yaxisIndex = realIndex; + } + + var initPositions = this.initialPositions(); + y = initPositions.y; + barHeight = initPositions.barHeight; + x = initPositions.x; + barWidth = initPositions.barWidth; + xDivision = initPositions.xDivision; + zeroH = initPositions.zeroH; + xArrj.push(x + barWidth / 2); // eldatalabels + + var elDataLabelsWrap = graphics.group({ + class: 'apexcharts-datalabels' + }); + + for (var j = 0, tj = w.globals.dataPoints; j < w.globals.dataPoints; j++, tj--) { + if (typeof this.series[i][j] === 'undefined' || series[i][j] === null) { + this.isNullValue = true; + } else { + this.isNullValue = false; + } + + if (w.config.stroke.show) { + if (this.isNullValue) { + strokeWidth = 0; + } else { + strokeWidth = Array.isArray(this.strokeWidth) ? this.strokeWidth[realIndex] : this.strokeWidth; + } + } + + var color = void 0; + var paths = this.drawCandleStickPaths({ + indexes: { + i: i, + j: j, + realIndex: realIndex, + bc: bc + }, + x: x, + y: y, + xDivision: xDivision, + pathTo: pathTo, + pathFrom: pathFrom, + barWidth: barWidth, + zeroH: zeroH, + strokeWidth: strokeWidth, + elSeries: elSeries + }); + pathTo = paths.pathTo; + pathFrom = paths.pathFrom; + y = paths.y; + x = paths.x; + color = paths.color; // push current X + + if (j > 0) { + xArrj.push(x + barWidth / 2); + } + + yArrj.push(y); + var pathFill = fill.fillPath({ + seriesNumber: realIndex, + color: color + }); + var lineFill = this.candlestickOptions.wick.useFillColor ? color : undefined; + elSeries = this.renderSeries({ + realIndex: realIndex, + pathFill: pathFill, + lineFill: lineFill, + j: j, + i: i, + pathFrom: pathFrom, + pathTo: pathTo, + strokeWidth: strokeWidth, + elSeries: elSeries, + x: x, + y: y, + series: series, + barHeight: barHeight, + barWidth: barWidth, + elDataLabelsWrap: elDataLabelsWrap, + visibleSeries: this.visibleI, + type: 'candlestick' + }); + } // push all x val arrays into main xArr + + + w.globals.seriesXvalues[realIndex] = xArrj; + w.globals.seriesYvalues[realIndex] = yArrj; + ret.add(elSeries); + } + + return ret; + } + }, { + key: "drawCandleStickPaths", + value: function drawCandleStickPaths(_ref) { + var indexes = _ref.indexes, + x = _ref.x, + y = _ref.y, + xDivision = _ref.xDivision, + pathTo = _ref.pathTo, + pathFrom = _ref.pathFrom, + barWidth = _ref.barWidth, + zeroH = _ref.zeroH, + strokeWidth = _ref.strokeWidth; + var w = this.w; + var graphics = new Graphics(this.ctx); + var i = indexes.i; + var j = indexes.j; + var isPositive = true; + var colorPos = w.config.plotOptions.candlestick.colors.upward; + var colorNeg = w.config.plotOptions.candlestick.colors.downward; + var yRatio = this.yRatio[this.yaxisIndex]; + var realIndex = indexes.realIndex; + var ohlc = this.getOHLCValue(realIndex, j); + var l1 = zeroH; + var l2 = zeroH; + + if (ohlc.o > ohlc.c) { + isPositive = false; + } + + var y1 = Math.min(ohlc.o, ohlc.c); + var y2 = Math.max(ohlc.o, ohlc.c); + + if (w.globals.isXNumeric) { + x = (w.globals.seriesX[i][j] - w.globals.minX) / this.xRatio - barWidth / 2; + } + + var barXPosition = x + barWidth * this.visibleI; + pathTo = graphics.move(barXPosition, zeroH); + pathFrom = graphics.move(barXPosition, zeroH); + + if (w.globals.previousPaths.length > 0) { + pathFrom = this.getPathFrom(realIndex, j, true); + } + + if (typeof this.series[i][j] === 'undefined' || this.series[i][j] === null) { + y1 = zeroH; + } else { + y1 = zeroH - y1 / yRatio; + y2 = zeroH - y2 / yRatio; + l1 = zeroH - ohlc.h / yRatio; + l2 = zeroH - ohlc.l / yRatio; + } + + pathTo = graphics.move(barXPosition, y2) + graphics.line(barXPosition + barWidth / 2, y2) + graphics.line(barXPosition + barWidth / 2, l1) + graphics.line(barXPosition + barWidth / 2, y2) + graphics.line(barXPosition + barWidth, y2) + graphics.line(barXPosition + barWidth, y1) + graphics.line(barXPosition + barWidth / 2, y1) + graphics.line(barXPosition + barWidth / 2, l2) + graphics.line(barXPosition + barWidth / 2, y1) + graphics.line(barXPosition, y1) + graphics.line(barXPosition, y2 - strokeWidth / 2); + + if (!w.globals.isXNumeric) { + x = x + xDivision; + } + + return { + pathTo: pathTo, + pathFrom: pathFrom, + x: x, + y: y2, + barXPosition: barXPosition, + color: isPositive ? colorPos : colorNeg + }; + } + }, { + key: "getOHLCValue", + value: function getOHLCValue(i, j) { + var w = this.w; + return { + o: w.globals.seriesCandleO[i][j], + h: w.globals.seriesCandleH[i][j], + l: w.globals.seriesCandleL[i][j], + c: w.globals.seriesCandleC[i][j] + }; + } + }]); + + return CandleStick; + }(Bar); + + var Crosshairs = + /*#__PURE__*/ + function () { + function Crosshairs(ctx) { + _classCallCheck(this, Crosshairs); + + this.ctx = ctx; + this.w = ctx.w; + } + + _createClass(Crosshairs, [{ + key: "drawXCrosshairs", + value: function drawXCrosshairs() { + var w = this.w; + var graphics = new Graphics(this.ctx); + var filters = new Filters(this.ctx); + var crosshairGradient = w.config.xaxis.crosshairs.fill.gradient; + var crosshairShadow = w.config.xaxis.crosshairs.dropShadow; + var fillType = w.config.xaxis.crosshairs.fill.type; + var gradientFrom = crosshairGradient.colorFrom; + var gradientTo = crosshairGradient.colorTo; + var opacityFrom = crosshairGradient.opacityFrom; + var opacityTo = crosshairGradient.opacityTo; + var stops = crosshairGradient.stops; + var shadow = 'none'; + var dropShadow = crosshairShadow.enabled; + var shadowLeft = crosshairShadow.left; + var shadowTop = crosshairShadow.top; + var shadowBlur = crosshairShadow.blur; + var shadowColor = crosshairShadow.color; + var shadowOpacity = crosshairShadow.opacity; + var xcrosshairsFill = w.config.xaxis.crosshairs.fill.color; + + if (w.config.xaxis.crosshairs.show) { + if (fillType === 'gradient') { + xcrosshairsFill = graphics.drawGradient('vertical', gradientFrom, gradientTo, opacityFrom, opacityTo, null, stops, null); + } + + var xcrosshairs = graphics.drawRect(); + + if (w.config.xaxis.crosshairs.width === 1) { + // to prevent drawing 2 lines, convert rect to line + xcrosshairs = graphics.drawLine(); + } + + xcrosshairs.attr({ + class: 'apexcharts-xcrosshairs', + x: 0, + y: 0, + y2: w.globals.gridHeight, + width: Utils.isNumber(w.config.xaxis.crosshairs.width) ? w.config.xaxis.crosshairs.width : 0, + height: w.globals.gridHeight, + fill: xcrosshairsFill, + filter: shadow, + 'fill-opacity': w.config.xaxis.crosshairs.opacity, + stroke: w.config.xaxis.crosshairs.stroke.color, + 'stroke-width': w.config.xaxis.crosshairs.stroke.width, + 'stroke-dasharray': w.config.xaxis.crosshairs.stroke.dashArray + }); + + if (dropShadow) { + xcrosshairs = filters.dropShadow(xcrosshairs, { + left: shadowLeft, + top: shadowTop, + blur: shadowBlur, + color: shadowColor, + opacity: shadowOpacity + }); + } + + w.globals.dom.elGraphical.add(xcrosshairs); + } + } + }, { + key: "drawYCrosshairs", + value: function drawYCrosshairs() { + var w = this.w; + var graphics = new Graphics(this.ctx); + var crosshair = w.config.yaxis[0].crosshairs; + + if (w.config.yaxis[0].crosshairs.show) { + var ycrosshairs = graphics.drawLine(0, 0, w.globals.gridWidth, 0, crosshair.stroke.color, crosshair.stroke.dashArray, crosshair.stroke.width); + ycrosshairs.attr({ + class: 'apexcharts-ycrosshairs' + }); + w.globals.dom.elGraphical.add(ycrosshairs); + } // draw an invisible crosshair to help in positioning the yaxis tooltip + + + var ycrosshairsHidden = graphics.drawLine(0, 0, w.globals.gridWidth, 0, crosshair.stroke.color, 0, 0); + ycrosshairsHidden.attr({ + class: 'apexcharts-ycrosshairs-hidden' + }); + w.globals.dom.elGraphical.add(ycrosshairsHidden); + } + }]); + + return Crosshairs; + }(); + + /** + * DateTime Class to manipulate datetime values. + * + * @module DateTime + **/ + + var DateTime = + /*#__PURE__*/ + function () { + function DateTime(ctx) { + _classCallCheck(this, DateTime); + + this.ctx = ctx; + this.w = ctx.w; + this.months31 = [1, 3, 5, 7, 8, 10, 12]; + this.months30 = [2, 4, 6, 9, 11]; + this.daysCntOfYear = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334]; + } + + _createClass(DateTime, [{ + key: "isValidDate", + value: function isValidDate(date) { + return !isNaN(this.parseDate(date)); + } + }, { + key: "getUTCTimeStamp", + value: function getUTCTimeStamp(dateStr) { + if (!Date.parse(dateStr)) { + return dateStr; + } + + return new Date(new Date(dateStr).toISOString().substr(0, 25)).getTime(); + } + }, { + key: "parseDate", + value: function parseDate(dateStr) { + var parsed = Date.parse(dateStr); + + if (!isNaN(parsed)) { + return this.getUTCTimeStamp(dateStr); + } + + var output = Date.parse(dateStr.replace(/-/g, '/').replace(/[a-z]+/gi, ' ')); + output = this.getUTCTimeStamp(output); + return output; + } // https://stackoverflow.com/a/11252167/6495043 + + }, { + key: "treatAsUtc", + value: function treatAsUtc(dateStr) { + var result = new Date(dateStr); + result.setMinutes(result.getMinutes() - result.getTimezoneOffset()); + return result; + } // http://stackoverflow.com/questions/14638018/current-time-formatting-with-javascript#answer-14638191 + + }, { + key: "formatDate", + value: function formatDate(date, format) { + var utc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + var convertToUTC = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true; + var locale = this.w.globals.locale; + var MMMM = ['\x00'].concat(_toConsumableArray(locale.months)); + var MMM = ['\x01'].concat(_toConsumableArray(locale.shortMonths)); + var dddd = ['\x02'].concat(_toConsumableArray(locale.days)); + var ddd = ['\x03'].concat(_toConsumableArray(locale.shortDays)); + + function ii(i, len) { + var s = i + ''; + len = len || 2; + + while (s.length < len) { + s = '0' + s; + } + + return s; + } + + if (convertToUTC) { + date = this.treatAsUtc(date); + } + + var y = utc ? date.getUTCFullYear() : date.getFullYear(); + format = format.replace(/(^|[^\\])yyyy+/g, '$1' + y); + format = format.replace(/(^|[^\\])yy/g, '$1' + y.toString().substr(2, 2)); + format = format.replace(/(^|[^\\])y/g, '$1' + y); + var M = (utc ? date.getUTCMonth() : date.getMonth()) + 1; + format = format.replace(/(^|[^\\])MMMM+/g, '$1' + MMMM[0]); + format = format.replace(/(^|[^\\])MMM/g, '$1' + MMM[0]); + format = format.replace(/(^|[^\\])MM/g, '$1' + ii(M)); + format = format.replace(/(^|[^\\])M/g, '$1' + M); + var d = utc ? date.getUTCDate() : date.getDate(); + format = format.replace(/(^|[^\\])dddd+/g, '$1' + dddd[0]); + format = format.replace(/(^|[^\\])ddd/g, '$1' + ddd[0]); + format = format.replace(/(^|[^\\])dd/g, '$1' + ii(d)); + format = format.replace(/(^|[^\\])d/g, '$1' + d); + var H = utc ? date.getUTCHours() : date.getHours(); + format = format.replace(/(^|[^\\])HH+/g, '$1' + ii(H)); + format = format.replace(/(^|[^\\])H/g, '$1' + H); + var h = H > 12 ? H - 12 : H === 0 ? 12 : H; + format = format.replace(/(^|[^\\])hh+/g, '$1' + ii(h)); + format = format.replace(/(^|[^\\])h/g, '$1' + h); + var m = utc ? date.getUTCMinutes() : date.getMinutes(); + format = format.replace(/(^|[^\\])mm+/g, '$1' + ii(m)); + format = format.replace(/(^|[^\\])m/g, '$1' + m); + var s = utc ? date.getUTCSeconds() : date.getSeconds(); + format = format.replace(/(^|[^\\])ss+/g, '$1' + ii(s)); + format = format.replace(/(^|[^\\])s/g, '$1' + s); + var f = utc ? date.getUTCMilliseconds() : date.getMilliseconds(); + format = format.replace(/(^|[^\\])fff+/g, '$1' + ii(f, 3)); + f = Math.round(f / 10); + format = format.replace(/(^|[^\\])ff/g, '$1' + ii(f)); + f = Math.round(f / 10); + format = format.replace(/(^|[^\\])f/g, '$1' + f); + var T = H < 12 ? 'AM' : 'PM'; + format = format.replace(/(^|[^\\])TT+/g, '$1' + T); + format = format.replace(/(^|[^\\])T/g, '$1' + T.charAt(0)); + var t = T.toLowerCase(); + format = format.replace(/(^|[^\\])tt+/g, '$1' + t); + format = format.replace(/(^|[^\\])t/g, '$1' + t.charAt(0)); + var tz = -date.getTimezoneOffset(); + var K = utc || !tz ? 'Z' : tz > 0 ? '+' : '-'; + + if (!utc) { + tz = Math.abs(tz); + var tzHrs = Math.floor(tz / 60); + var tzMin = tz % 60; + K += ii(tzHrs) + ':' + ii(tzMin); + } + + format = format.replace(/(^|[^\\])K/g, '$1' + K); + var day = (utc ? date.getUTCDay() : date.getDay()) + 1; + format = format.replace(new RegExp(dddd[0], 'g'), dddd[day]); + format = format.replace(new RegExp(ddd[0], 'g'), ddd[day]); + format = format.replace(new RegExp(MMMM[0], 'g'), MMMM[M]); + format = format.replace(new RegExp(MMM[0], 'g'), MMM[M]); + format = format.replace(/\\(.)/g, '$1'); + return format; + } + }, { + key: "getTimeUnitsfromTimestamp", + value: function getTimeUnitsfromTimestamp(minX, maxX) { + var w = this.w; + + if (w.config.xaxis.min !== undefined) { + minX = w.config.xaxis.min; + } + + if (w.config.xaxis.max !== undefined) { + maxX = w.config.xaxis.max; + } + + var minYear = new Date(minX).getFullYear(); + var maxYear = new Date(maxX).getFullYear(); + var minMonth = new Date(minX).getMonth(); + var maxMonth = new Date(maxX).getMonth(); + var minDate = new Date(minX).getDate(); + var maxDate = new Date(maxX).getDate(); + var minHour = new Date(minX).getHours(); + var maxHour = new Date(maxX).getHours(); + var minMinute = new Date(minX).getMinutes(); + var maxMinute = new Date(maxX).getMinutes(); + return { + minMinute: minMinute, + maxMinute: maxMinute, + minHour: minHour, + maxHour: maxHour, + minDate: minDate, + maxDate: maxDate, + minMonth: minMonth, + maxMonth: maxMonth, + minYear: minYear, + maxYear: maxYear + }; + } + }, { + key: "isLeapYear", + value: function isLeapYear(year) { + return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0; + } + }, { + key: "calculcateLastDaysOfMonth", + value: function calculcateLastDaysOfMonth(month, year, subtract) { + var days = this.determineDaysOfMonths(month, year); // whatever days we get, subtract the number of days asked + + return days - subtract; + } + }, { + key: "determineDaysOfYear", + value: function determineDaysOfYear(year) { + var days = 365; + + if (this.isLeapYear(year)) { + days = 366; + } + + return days; + } + }, { + key: "determineRemainingDaysOfYear", + value: function determineRemainingDaysOfYear(year, month, date) { + var dayOfYear = this.daysCntOfYear[month] + date; + if (month > 1 && this.isLeapYear()) dayOfYear++; + return dayOfYear; + } + }, { + key: "determineDaysOfMonths", + value: function determineDaysOfMonths(month, year) { + var days = 30; + month = Utils.monthMod(month); + + switch (true) { + case this.months30.indexOf(month) > -1: + if (month === 2) { + if (this.isLeapYear(year)) { + days = 29; + } else { + days = 28; + } + } + + break; + + case this.months31.indexOf(month) > -1: + days = 31; + break; + + default: + days = 31; + break; + } + + return days; + } + }]); + + return DateTime; + }(); + + /** + * ApexCharts HeatMap Class. + * @module HeatMap + **/ + + var HeatMap = + /*#__PURE__*/ + function () { + function HeatMap(ctx, xyRatios) { + _classCallCheck(this, HeatMap); + + this.ctx = ctx; + this.w = ctx.w; + this.xRatio = xyRatios.xRatio; + this.yRatio = xyRatios.yRatio; + this.dynamicAnim = this.w.config.chart.animations.dynamicAnimation; + this.rectRadius = this.w.config.plotOptions.heatmap.radius; + this.strokeWidth = this.w.config.stroke.width; + } + + _createClass(HeatMap, [{ + key: "draw", + value: function draw(series) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var ret = graphics.group({ + class: 'apexcharts-heatmap' + }); + ret.attr('clip-path', "url(#gridRectMask".concat(w.globals.cuid, ")")); // width divided into equal parts + + var xDivision = w.globals.gridWidth / w.globals.dataPoints; + var yDivision = w.globals.gridHeight / w.globals.series.length; + var y1 = 0; + var rev = false; + var heatSeries = series.slice(); + + if (w.config.yaxis[0].reversed) { + rev = true; + heatSeries.reverse(); + } + + for (var i = rev ? 0 : heatSeries.length - 1; rev ? i < heatSeries.length : i >= 0; rev ? i++ : i--) { + // el to which series will be drawn + var elSeries = graphics.group({ + class: "apexcharts-series apexcharts-heatmap-series ".concat(Utils.escapeString(w.globals.seriesNames[i])), + rel: i + 1, + 'data:realIndex': i + }); + + if (w.config.chart.dropShadow.enabled) { + var shadow = w.config.chart.dropShadow; + var filters = new Filters(this.ctx); + filters.dropShadow(elSeries, shadow); + } + + var x1 = 0; + + for (var j = 0; j < heatSeries[i].length; j++) { + var colorShadePercent = 1; + var heatColorProps = this.determineHeatColor(i, j); + + if (w.globals.hasNegs) { + var shadeIntensity = w.config.plotOptions.heatmap.shadeIntensity; + + if (heatColorProps.percent < 0) { + colorShadePercent = 1 - (1 + heatColorProps.percent / 100) * shadeIntensity; + } else { + colorShadePercent = (1 - heatColorProps.percent / 100) * shadeIntensity; + } + } else { + colorShadePercent = 1 - heatColorProps.percent / 100; + } + + var color = heatColorProps.color; + + if (w.config.plotOptions.heatmap.enableShades) { + var utils = new Utils(); + color = Utils.hexToRgba(utils.shadeColor(colorShadePercent, heatColorProps.color), w.config.fill.opacity); + } + + var radius = this.rectRadius; + var rect = graphics.drawRect(x1, y1, xDivision, yDivision, radius); + rect.attr({ + cx: x1, + cy: y1 + }); + rect.node.classList.add('apexcharts-heatmap-rect'); + elSeries.add(rect); + rect.attr({ + fill: color, + i: i, + index: i, + j: j, + val: heatSeries[i][j], + 'stroke-width': this.strokeWidth, + stroke: w.globals.stroke.colors[0], + color: color + }); + rect.node.addEventListener('mouseenter', graphics.pathMouseEnter.bind(this, rect)); + rect.node.addEventListener('mouseleave', graphics.pathMouseLeave.bind(this, rect)); + rect.node.addEventListener('mousedown', graphics.pathMouseDown.bind(this, rect)); + + if (w.config.chart.animations.enabled && !w.globals.dataChanged) { + var speed = 1; + + if (!w.globals.resized) { + speed = w.config.chart.animations.speed; + } + + this.animateHeatMap(rect, x1, y1, xDivision, yDivision, speed); + } + + if (w.globals.dataChanged) { + var _speed = 1; + + if (this.dynamicAnim.enabled && w.globals.shouldAnimate) { + _speed = this.dynamicAnim.speed; + var colorFrom = w.globals.previousPaths[i] && w.globals.previousPaths[i][j] && w.globals.previousPaths[i][j].color; + if (!colorFrom) colorFrom = 'rgba(255, 255, 255, 0)'; + this.animateHeatColor(rect, Utils.isColorHex(colorFrom) ? colorFrom : Utils.rgb2hex(colorFrom), Utils.isColorHex(color) ? color : Utils.rgb2hex(color), _speed); + } + } + + var dataLabels = this.calculateHeatmapDataLabels({ + x: x1, + y: y1, + i: i, + j: j, + series: heatSeries, + rectHeight: yDivision, + rectWidth: xDivision + }); + + if (dataLabels !== null) { + elSeries.add(dataLabels); + } + + x1 = x1 + xDivision; + } + + y1 = y1 + yDivision; + ret.add(elSeries); + } // adjust yaxis labels for heatmap + + + var yAxisScale = w.globals.yAxisScale[0].result.slice(); + + if (w.config.yaxis[0].reversed) { + yAxisScale.unshift(''); + } else { + yAxisScale.push(''); + } + + w.globals.yAxisScale[0].result = yAxisScale; + var divisor = w.globals.gridHeight / w.globals.series.length; + w.config.yaxis[0].labels.offsetY = -(divisor / 2); + return ret; + } + }, { + key: "determineHeatColor", + value: function determineHeatColor(i, j) { + var w = this.w; + var val = w.globals.series[i][j]; + var heatmap = w.config.plotOptions.heatmap; + var seriesNumber = heatmap.colorScale.inverse ? j : i; + var color = w.globals.colors[seriesNumber]; + var min = Math.min.apply(Math, _toConsumableArray(w.globals.series[i])); + var max = Math.max.apply(Math, _toConsumableArray(w.globals.series[i])); + + if (!heatmap.distributed) { + min = w.globals.minY; + max = w.globals.maxY; + } + + if (typeof heatmap.colorScale.min !== 'undefined') { + min = heatmap.colorScale.min < w.globals.minY ? heatmap.colorScale.min : w.globals.minY; + max = heatmap.colorScale.max > w.globals.maxY ? heatmap.colorScale.max : w.globals.maxY; + } + + var total = Math.abs(max) + Math.abs(min); + var percent = 100 * val / (total === 0 ? total - 0.000001 : total); + + if (heatmap.colorScale.ranges.length > 0) { + var colorRange = heatmap.colorScale.ranges; + colorRange.map(function (range, index) { + if (val >= range.from && val <= range.to) { + color = range.color; + min = range.from; + max = range.to; + total = Math.abs(max) + Math.abs(min); + percent = 100 * val / total; + } + }); + } + + return { + color: color, + percent: percent + }; + } + }, { + key: "calculateHeatmapDataLabels", + value: function calculateHeatmapDataLabels(_ref) { + var x = _ref.x, + y = _ref.y, + i = _ref.i, + j = _ref.j, + series = _ref.series, + rectHeight = _ref.rectHeight, + rectWidth = _ref.rectWidth; + var w = this.w; // let graphics = new Graphics(this.ctx) + + var dataLabelsConfig = w.config.dataLabels; + var graphics = new Graphics(this.ctx); + var dataLabels = new DataLabels(this.ctx); + var formatter = dataLabelsConfig.formatter; + var elDataLabelsWrap = null; + + if (dataLabelsConfig.enabled) { + elDataLabelsWrap = graphics.group({ + class: 'apexcharts-data-labels' + }); + var offX = dataLabelsConfig.offsetX; + var offY = dataLabelsConfig.offsetY; + var dataLabelsX = x + rectWidth / 2 + offX; + var dataLabelsY = y + rectHeight / 2 + parseInt(dataLabelsConfig.style.fontSize) / 3 + offY; + var text = formatter(w.globals.series[i][j], { + seriesIndex: i, + dataPointIndex: j, + w: w + }); + dataLabels.plotDataLabelsText({ + x: dataLabelsX, + y: dataLabelsY, + text: text, + i: i, + j: j, + parent: elDataLabelsWrap, + dataLabelsConfig: dataLabelsConfig + }); + } + + return elDataLabelsWrap; + } + }, { + key: "animateHeatMap", + value: function animateHeatMap(el, x, y, width, height, speed) { + var _this = this; + + var animations = new Animations(this.ctx); + animations.animateRect(el, { + x: x + width / 2, + y: y + height / 2, + width: 0, + height: 0 + }, { + x: x, + y: y, + width: width, + height: height + }, speed, function () { + _this.w.globals.animationEnded = true; + }); + } + }, { + key: "animateHeatColor", + value: function animateHeatColor(el, colorFrom, colorTo, speed) { + el.attr({ + fill: colorFrom + }).animate(speed).attr({ + fill: colorTo + }); + } + }]); + + return HeatMap; + }(); + + /** + * ApexCharts Pie Class for drawing Pie / Donut Charts. + * @module Pie + **/ + + var Pie = + /*#__PURE__*/ + function () { + function Pie(ctx) { + _classCallCheck(this, Pie); + + this.ctx = ctx; + this.w = ctx.w; + this.chartType = this.w.config.chart.type; + this.initialAnim = this.w.config.chart.animations.enabled; + this.dynamicAnim = this.initialAnim && this.w.config.chart.animations.dynamicAnimation.enabled; + this.animBeginArr = [0]; + this.animDur = 0; + this.donutDataLabels = this.w.config.plotOptions.pie.donut.labels; + var w = this.w; + this.lineColorArr = w.globals.stroke.colors !== undefined ? w.globals.stroke.colors : w.globals.colors; + this.defaultSize = w.globals.svgHeight < w.globals.svgWidth ? w.globals.svgHeight - 35 : w.globals.gridWidth; + this.centerY = this.defaultSize / 2; + this.centerX = w.globals.gridWidth / 2; + this.fullAngle = 360; + this.size = 0; + this.donutSize = 0; + this.sliceLabels = []; + this.prevSectorAngleArr = []; // for dynamic animations + } + + _createClass(Pie, [{ + key: "draw", + value: function draw(series) { + var self = this; + var w = this.w; + var graphics = new Graphics(this.ctx); + var ret = graphics.group({ + class: 'apexcharts-pie' + }); + var total = 0; + + for (var k = 0; k < series.length; k++) { + // CALCULATE THE TOTAL + total += Utils.negToZero(series[k]); + } + + var sectorAngleArr = []; // el to which series will be drawn + + var elSeries = graphics.group(); // prevent division by zero error if there is no data + + if (total === 0) { + total = 0.00001; + } + + for (var i = 0; i < series.length; i++) { + // CALCULATE THE ANGLES + var angle = this.fullAngle * Utils.negToZero(series[i]) / total; + sectorAngleArr.push(angle); + } + + if (w.globals.dataChanged) { + var prevTotal = 0; + + for (var _k = 0; _k < w.globals.previousPaths.length; _k++) { + // CALCULATE THE PREV TOTAL + prevTotal += Utils.negToZero(w.globals.previousPaths[_k]); + } + + var previousAngle; + + for (var _i = 0; _i < w.globals.previousPaths.length; _i++) { + // CALCULATE THE PREVIOUS ANGLES + previousAngle = this.fullAngle * Utils.negToZero(w.globals.previousPaths[_i]) / prevTotal; + this.prevSectorAngleArr.push(previousAngle); + } + } + + this.size = this.defaultSize / 2.05 - w.config.stroke.width - w.config.chart.dropShadow.blur; + + if (w.config.plotOptions.pie.size !== undefined) { + this.size = w.config.plotOptions.pie.size; + } + + this.donutSize = this.size * parseInt(w.config.plotOptions.pie.donut.size) / 100; + var scaleSize = w.config.plotOptions.pie.customScale; + var halfW = w.globals.gridWidth / 2; + var halfH = w.globals.gridHeight / 2; + var translateX = halfW - w.globals.gridWidth / 2 * scaleSize; + var translateY = halfH - w.globals.gridHeight / 2 * scaleSize; + + if (this.donutDataLabels.show) { + var dataLabels = this.renderInnerDataLabels(this.donutDataLabels, { + hollowSize: this.donutSize, + centerX: this.centerX, + centerY: this.centerY, + opacity: this.donutDataLabels.show, + translateX: translateX, + translateY: translateY + }); + ret.add(dataLabels); + } + + if (w.config.chart.type === 'donut') { + // draw the inner circle and add some text to it + var circle = graphics.drawCircle(this.donutSize); + circle.attr({ + cx: this.centerX, + cy: this.centerY, + fill: w.config.plotOptions.pie.donut.background + }); + elSeries.add(circle); + } + + var elG = self.drawArcs(sectorAngleArr, series); // add slice dataLabels at the end + + this.sliceLabels.forEach(function (s) { + elG.add(s); + }); + elSeries.attr({ + transform: "translate(".concat(translateX, ", ").concat(translateY - 5, ") scale(").concat(scaleSize, ")") + }); + ret.attr({ + 'data:innerTranslateX': translateX, + 'data:innerTranslateY': translateY - 25 + }); + elSeries.add(elG); + ret.add(elSeries); + return ret; + } // core function for drawing pie arcs + + }, { + key: "drawArcs", + value: function drawArcs(sectorAngleArr, series) { + var w = this.w; + var filters = new Filters(this.ctx); + var graphics = new Graphics(this.ctx); + var fill = new Fill(this.ctx); + var g = graphics.group(); + var startAngle = 0; + var prevStartAngle = 0; + var endAngle = 0; + var prevEndAngle = 0; + this.strokeWidth = w.config.stroke.show ? w.config.stroke.width : 0; + + for (var i = 0; i < sectorAngleArr.length; i++) { + // if(sectorAngleArr[i]>0) { + var elPieArc = graphics.group({ + class: "apexcharts-series apexcharts-pie-series ".concat(Utils.escapeString(w.globals.seriesNames[i])), + id: 'apexcharts-series-' + i, + rel: i + 1 + }); + g.add(elPieArc); + startAngle = endAngle; + prevStartAngle = prevEndAngle; + endAngle = startAngle + sectorAngleArr[i]; + prevEndAngle = prevStartAngle + this.prevSectorAngleArr[i]; + var angle = endAngle - startAngle; + var pathFill = fill.fillPath({ + seriesNumber: i, + size: this.size + }); // additionaly, pass size for gradient drawing in the fillPath function + + var path = this.getChangedPath(prevStartAngle, prevEndAngle); + var elPath = graphics.drawPath({ + d: path, + stroke: this.lineColorArr instanceof Array ? this.lineColorArr[i] : this.lineColorArr, + strokeWidth: this.strokeWidth, + fill: pathFill, + fillOpacity: w.config.fill.opacity, + classes: 'apexcharts-pie-area' + }); + elPath.attr({ + id: 'apexcharts-pie-slice-' + i, + index: 0, + j: i + }); + + if (w.config.chart.dropShadow.enabled) { + var shadow = w.config.chart.dropShadow; + filters.dropShadow(elPath, shadow); + } + + this.addListeners(elPath, this.donutDataLabels); + Graphics.setAttrs(elPath.node, { + 'data:angle': angle, + 'data:startAngle': startAngle, + 'data:strokeWidth': this.strokeWidth, + 'data:value': series[i] + }); + var labelPosition = { + x: 0, + y: 0 + }; + + if (w.config.chart.type === 'pie') { + labelPosition = Utils.polarToCartesian(this.centerX, this.centerY, this.size / 1.25 + w.config.plotOptions.pie.dataLabels.offset, startAngle + (endAngle - startAngle) / 2); + } else if (w.config.chart.type === 'donut') { + labelPosition = Utils.polarToCartesian(this.centerX, this.centerY, (this.size + this.donutSize) / 2 + w.config.plotOptions.pie.dataLabels.offset, startAngle + (endAngle - startAngle) / 2); + } + + elPieArc.add(elPath); // Animation code starts + + var dur = 0; + + if (this.initialAnim && !w.globals.resized && !w.globals.dataChanged) { + dur = (endAngle - startAngle) / this.fullAngle * w.config.chart.animations.speed; + this.animDur = dur + this.animDur; + this.animBeginArr.push(this.animDur); + } else { + this.animBeginArr.push(0); + } + + if (this.dynamicAnim && w.globals.dataChanged) { + this.animatePaths(elPath, { + endAngle: endAngle, + startAngle: startAngle, + prevStartAngle: prevStartAngle, + prevEndAngle: prevEndAngle, + animateStartingPos: true, + i: i, + animBeginArr: this.animBeginArr, + dur: w.config.chart.animations.dynamicAnimation.speed + }); + } else { + this.animatePaths(elPath, { + endAngle: endAngle, + startAngle: startAngle, + i: i, + totalItems: sectorAngleArr.length - 1, + animBeginArr: this.animBeginArr, + dur: dur + }); + } // animation code ends + + + if (w.config.plotOptions.pie.expandOnClick) { + elPath.click(this.pieClicked.bind(this, i)); + } + + if (w.config.dataLabels.enabled) { + var xPos = labelPosition.x; + var yPos = labelPosition.y; + var text = 100 * (endAngle - startAngle) / 360 + '%'; + + if (angle !== 0) { + var formatter = w.config.dataLabels.formatter; + + if (formatter !== undefined) { + text = formatter(w.globals.seriesPercent[i][0], { + seriesIndex: i, + w: w + }); + } + + var foreColor = w.globals.dataLabels.style.colors[i]; + var elPieLabel = graphics.drawText({ + x: xPos, + y: yPos, + text: text, + textAnchor: 'middle', + fontSize: w.config.dataLabels.style.fontSize, + fontFamily: w.config.dataLabels.style.fontFamily, + foreColor: foreColor + }); + + if (w.config.dataLabels.dropShadow.enabled) { + var textShadow = w.config.dataLabels.dropShadow; + + var _filters = new Filters(this.ctx); + + _filters.dropShadow(elPieLabel, textShadow); + } + + elPieLabel.node.classList.add('apexcharts-pie-label'); + + if (w.config.chart.animations.animate && w.globals.resized === false) { + elPieLabel.node.classList.add('apexcharts-pie-label-delay'); + elPieLabel.node.style.animationDelay = w.config.chart.animations.speed / 940 + 's'; + } + + this.sliceLabels.push(elPieLabel); + } + } // } + + } + + return g; + } + }, { + key: "addListeners", + value: function addListeners(elPath, dataLabels) { + var graphics = new Graphics(this.ctx); // append filters on mouseenter and mouseleave + + elPath.node.addEventListener('mouseenter', graphics.pathMouseEnter.bind(this, elPath)); + elPath.node.addEventListener('mouseenter', this.printDataLabelsInner.bind(this, elPath.node, dataLabels)); + elPath.node.addEventListener('mouseleave', graphics.pathMouseLeave.bind(this, elPath)); + elPath.node.addEventListener('mouseleave', this.revertDataLabelsInner.bind(this, elPath.node, dataLabels)); + elPath.node.addEventListener('mousedown', graphics.pathMouseDown.bind(this, elPath)); + elPath.node.addEventListener('mousedown', this.printDataLabelsInner.bind(this, elPath.node, dataLabels)); + } // This function can be used for other circle charts too + + }, { + key: "animatePaths", + value: function animatePaths(el, opts) { + var w = this.w; + var me = this; + var angle = opts.endAngle - opts.startAngle; + var prevAngle = angle; + var fromStartAngle = opts.startAngle; + var toStartAngle = opts.startAngle; + + if (opts.prevStartAngle !== undefined && opts.prevEndAngle !== undefined) { + fromStartAngle = opts.prevEndAngle; + prevAngle = opts.prevEndAngle - opts.prevStartAngle; + } + + if (opts.i === w.config.series.length - 1) { + // some adjustments for the last overlapping paths + if (angle + toStartAngle > this.fullAngle) { + opts.endAngle = opts.endAngle - (angle + toStartAngle); + } else if (angle + toStartAngle < this.fullAngle) { + opts.endAngle = opts.endAngle + (this.fullAngle - (angle + toStartAngle)); + } + } + + if (angle === this.fullAngle) angle = this.fullAngle - 0.01; + me.animateArc(el, fromStartAngle, toStartAngle, angle, prevAngle, opts); + } + }, { + key: "animateArc", + value: function animateArc(el, fromStartAngle, toStartAngle, angle, prevAngle, opts) { + var me = this; + var w = this.w; + var size = me.size; + + if (!size) { + size = opts.size; + } + + var path; + + if (isNaN(fromStartAngle) || isNaN(prevAngle)) { + fromStartAngle = toStartAngle; + prevAngle = angle; + opts.dur = 0; + } + + var currAngle = angle; + var startAngle = toStartAngle; + var fromAngle = fromStartAngle - toStartAngle; + + if (w.globals.dataChanged && opts.shouldSetPrevPaths) { + // to avoid flickering, set prev path first and then we will animate from there + path = me.getPiePath({ + me: me, + startAngle: startAngle, + angle: prevAngle, + size: size + }); + el.attr({ + d: path + }); + } + + if (opts.dur !== 0) { + el.animate(opts.dur, w.globals.easing, opts.animBeginArr[opts.i]).afterAll(function () { + if (w.config.chart.type === 'pie' || w.config.chart.type === 'donut') { + this.animate(300).attr({ + 'stroke-width': w.config.stroke.width + }); + } + + w.globals.animationEnded = true; + }).during(function (pos) { + currAngle = fromAngle + (angle - fromAngle) * pos; + + if (opts.animateStartingPos) { + currAngle = prevAngle + (angle - prevAngle) * pos; + startAngle = fromStartAngle - prevAngle + (toStartAngle - (fromStartAngle - prevAngle)) * pos; + } + + path = me.getPiePath({ + me: me, + startAngle: startAngle, + angle: currAngle, + size: size + }); + el.node.setAttribute('data:pathOrig', path); + el.attr({ + d: path + }); + }); + } else { + path = me.getPiePath({ + me: me, + startAngle: startAngle, + angle: angle, + size: size + }); + + if (!opts.isTrack) { + w.globals.animationEnded = true; + } + + el.node.setAttribute('data:pathOrig', path); + el.attr({ + d: path + }); + } + } + }, { + key: "pieClicked", + value: function pieClicked(i) { + var w = this.w; + var me = this; + var path; + var size = me.size + 3; + var elPath = w.globals.dom.Paper.select('#apexcharts-pie-slice-' + i).members[0]; + var pathFrom = elPath.attr('d'); + + if (elPath.attr('data:pieClicked') === 'true') { + elPath.attr({ + 'data:pieClicked': 'false' + }); + var origPath = elPath.attr('data:pathOrig'); + elPath.attr({ + d: origPath + }); + return; + } else { + // reset all elems + var allEls = w.globals.dom.baseEl.querySelectorAll('.apexcharts-pie-area'); + Array.prototype.forEach.call(allEls, function (pieSlice) { + pieSlice.setAttribute('data:pieClicked', 'false'); + var origPath = pieSlice.getAttribute('data:pathOrig'); + pieSlice.setAttribute('d', origPath); + }); + elPath.attr('data:pieClicked', 'true'); + } + + var startAngle = parseInt(elPath.attr('data:startAngle')); + var angle = parseInt(elPath.attr('data:angle')); + path = me.getPiePath({ + me: me, + startAngle: startAngle, + angle: angle, + size: size + }); + if (angle === 360) return; + elPath.plot(path).animate(1).plot(pathFrom).animate(100).plot(path); + } + }, { + key: "getChangedPath", + value: function getChangedPath(prevStartAngle, prevEndAngle) { + var path = ''; + + if (this.dynamicAnim && this.w.globals.dataChanged) { + path = this.getPiePath({ + me: this, + startAngle: prevStartAngle, + angle: prevEndAngle - prevStartAngle, + size: this.size + }); + } + + return path; + } + }, { + key: "getPiePath", + value: function getPiePath(_ref) { + var me = _ref.me, + startAngle = _ref.startAngle, + angle = _ref.angle, + size = _ref.size; + var w = this.w; + var path; + var startDeg = startAngle; + var startRadians = Math.PI * (startDeg - 90) / 180; + var endDeg = angle + startAngle; + if (Math.ceil(endDeg) >= 360) endDeg = 359.99; + var endRadians = Math.PI * (endDeg - 90) / 180; + var x1 = me.centerX + size * Math.cos(startRadians); + var y1 = me.centerY + size * Math.sin(startRadians); + var x2 = me.centerX + size * Math.cos(endRadians); + var y2 = me.centerY + size * Math.sin(endRadians); + var startInner = Utils.polarToCartesian(me.centerX, me.centerY, me.donutSize, endDeg); + var endInner = Utils.polarToCartesian(me.centerX, me.centerY, me.donutSize, startDeg); + var largeArc = angle > 180 ? 1 : 0; + + if (w.config.chart.type === 'donut') { + path = ['M', x1, y1, 'A', size, size, 0, largeArc, 1, x2, y2, 'L', startInner.x, startInner.y, 'A', me.donutSize, me.donutSize, 0, largeArc, 0, endInner.x, endInner.y, 'L', x1, y1, 'z'].join(' '); + } else if (w.config.chart.type === 'pie') { + path = ['M', x1, y1, 'A', size, size, 0, largeArc, 1, x2, y2, 'L', me.centerX, me.centerY, 'L', x1, y1].join(' '); + } else { + path = ['M', x1, y1, 'A', size, size, 0, largeArc, 1, x2, y2].join(' '); + } + + return path; + } + }, { + key: "renderInnerDataLabels", + value: function renderInnerDataLabels(dataLabelsConfig, opts) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var g = graphics.group({ + class: 'apexcharts-datalabels-group', + transform: "translate(".concat(opts.translateX ? opts.translateX : 0, ", ").concat(opts.translateY ? opts.translateY : 0, ")") + }); + var showTotal = dataLabelsConfig.total.show; + g.node.style.opacity = opts.opacity; + var x = opts.centerX; + var y = opts.centerY; + var labelColor, valueColor; + + if (dataLabelsConfig.name.color === undefined) { + labelColor = w.globals.colors[0]; + } else { + labelColor = dataLabelsConfig.name.color; + } + + if (dataLabelsConfig.value.color === undefined) { + valueColor = w.config.chart.foreColor; + } else { + valueColor = dataLabelsConfig.value.color; + } + + var lbFormatter = dataLabelsConfig.value.formatter; + var val = ''; + var name = ''; + + if (showTotal) { + labelColor = dataLabelsConfig.total.color; + name = dataLabelsConfig.total.label; + val = dataLabelsConfig.total.formatter(w); + } else { + if (w.globals.series.length === 1) { + val = lbFormatter(w.globals.series[0], w); + name = w.globals.seriesNames[0]; + } + } + + if (dataLabelsConfig.name.show) { + var elLabel = graphics.drawText({ + x: x, + y: y + parseInt(dataLabelsConfig.name.offsetY), + text: name, + textAnchor: 'middle', + foreColor: labelColor, + fontSize: dataLabelsConfig.name.fontSize, + fontFamily: dataLabelsConfig.name.fontFamily + }); + elLabel.node.classList.add('apexcharts-datalabel-label'); + g.add(elLabel); + } + + if (dataLabelsConfig.value.show) { + var valOffset = dataLabelsConfig.name.show ? parseInt(dataLabelsConfig.value.offsetY) + 16 : dataLabelsConfig.value.offsetY; + var elValue = graphics.drawText({ + x: x, + y: y + valOffset, + text: val, + textAnchor: 'middle', + foreColor: valueColor, + fontSize: dataLabelsConfig.value.fontSize, + fontFamily: dataLabelsConfig.value.fontFamily + }); + elValue.node.classList.add('apexcharts-datalabel-value'); + g.add(elValue); + } // for a multi-series circle chart, we need to show total value instead of first series labels + + + return g; + } + /** + * + * @param {string} name - The name of the series + * @param {string} val - The value of that series + * @param {object} el - Optional el (indicates which series was hovered/clicked). If this param is not present, means we need to show total + */ + + }, { + key: "printInnerLabels", + value: function printInnerLabels(labelsConfig, name, val, el) { + var w = this.w; + var labelColor; + + if (el) { + if (labelsConfig.name.color === undefined) { + labelColor = w.globals.colors[parseInt(el.parentNode.getAttribute('rel')) - 1]; + } else { + labelColor = labelsConfig.name.color; + } + } else { + if (w.globals.series.length > 1 && labelsConfig.total.show) { + labelColor = labelsConfig.total.color; + } + } + + var elLabel = w.globals.dom.baseEl.querySelector('.apexcharts-datalabel-label'); + var elValue = w.globals.dom.baseEl.querySelector('.apexcharts-datalabel-value'); + var lbFormatter = labelsConfig.value.formatter; + val = lbFormatter(val, w); // we need to show Total Val - so get the formatter of it + + if (!el && typeof labelsConfig.total.formatter === 'function') { + val = labelsConfig.total.formatter(w); + } + + if (elLabel !== null) { + elLabel.textContent = name; + } + + if (elValue !== null) { + elValue.textContent = val; + } + + if (elLabel !== null) { + elLabel.style.fill = labelColor; + } + } + }, { + key: "printDataLabelsInner", + value: function printDataLabelsInner(el, dataLabelsConfig) { + var w = this.w; + var val = el.getAttribute('data:value'); + var name = w.globals.seriesNames[parseInt(el.parentNode.getAttribute('rel')) - 1]; + + if (w.globals.series.length > 1) { + this.printInnerLabels(dataLabelsConfig, name, val, el); + } + + var dataLabelsGroup = w.globals.dom.baseEl.querySelector('.apexcharts-datalabels-group'); + + if (dataLabelsGroup !== null) { + dataLabelsGroup.style.opacity = 1; + } + } + }, { + key: "revertDataLabelsInner", + value: function revertDataLabelsInner(el, dataLabelsConfig) { + var w = this.w; + var dataLabelsGroup = w.globals.dom.baseEl.querySelector('.apexcharts-datalabels-group'); + + if (dataLabelsConfig.total.show && w.globals.series.length > 1) { + var pie = new Pie(this.ctx); + pie.printInnerLabels(dataLabelsConfig, dataLabelsConfig.total.label, dataLabelsConfig.total.formatter(w)); + } else { + if (w.globals.selectedDataPoints.length) { + if (w.globals.selectedDataPoints[0].length > 0) { + var index = w.globals.selectedDataPoints[0]; + + var _el = w.globals.dom.baseEl.querySelector("#apexcharts-pie-slice-".concat(index)); + + this.printDataLabelsInner(_el, dataLabelsConfig); + } else { + dataLabelsGroup.style.opacity = 0; + } + } else if (w.globals.selectedDataPoints.length === 0 || dataLabelsGroup !== null && w.globals.series.length > 1) { + dataLabelsGroup.style.opacity = 0; + } + } + } + }]); + + return Pie; + }(); + + /** + * ApexCharts Radar Class for Spider/Radar Charts. + * @module Radar + **/ + + var Radar = + /*#__PURE__*/ + function () { + function Radar(ctx) { + _classCallCheck(this, Radar); + + this.ctx = ctx; + this.w = ctx.w; + this.chartType = this.w.config.chart.type; + this.initialAnim = this.w.config.chart.animations.enabled; + this.dynamicAnim = this.initialAnim && this.w.config.chart.animations.dynamicAnimation.enabled; + this.animDur = 0; + var w = this.w; + this.graphics = new Graphics(this.ctx); + this.lineColorArr = w.globals.stroke.colors !== undefined ? w.globals.stroke.colors : w.globals.colors; + this.defaultSize = w.globals.svgHeight < w.globals.svgWidth ? w.globals.svgHeight - 35 : w.globals.gridWidth; + this.maxValue = this.w.globals.maxY; + this.polygons = w.config.plotOptions.radar.polygons; + this.maxLabelWidth = 20; + var longestLabel = w.globals.labels.slice().sort(function (a, b) { + return b.length - a.length; + })[0]; + var labelWidth = this.graphics.getTextRects(longestLabel, w.config.dataLabels.style.fontSize); + this.size = this.defaultSize / 2.1 - w.config.stroke.width - w.config.chart.dropShadow.blur - labelWidth.width / 1.75; + + if (w.config.plotOptions.radar.size !== undefined) { + this.size = w.config.plotOptions.radar.size; + } + + this.dataRadiusOfPercent = []; + this.dataRadius = []; + this.angleArr = []; + this.yaxisLabelsTextsPos = []; + } + + _createClass(Radar, [{ + key: "draw", + value: function draw(series) { + var _this = this; + + var w = this.w; + var fill = new Fill(this.ctx); + var allSeries = []; + this.dataPointsLen = series[w.globals.maxValsInArrayIndex].length; + this.disAngle = Math.PI * 2 / this.dataPointsLen; + var halfW = w.globals.gridWidth / 2; + var halfH = w.globals.gridHeight / 2; + var translateX = halfW; + var translateY = halfH; + var ret = this.graphics.group({ + class: 'apexcharts-radar-series', + 'data:innerTranslateX': translateX, + 'data:innerTranslateY': translateY - 25, + transform: "translate(".concat(translateX || 0, ", ").concat(translateY || 0, ")") + }); + var dataPointsPos = []; + var elPointsMain = null; + this.yaxisLabels = this.graphics.group({ + class: 'apexcharts-yaxis' + }); + series.forEach(function (s, i) { + // el to which series will be drawn + var elSeries = _this.graphics.group().attr({ + class: "apexcharts-series ".concat(Utils.escapeString(w.globals.seriesNames[i])), + rel: i + 1, + 'data:realIndex': i + }); + + _this.dataRadiusOfPercent[i] = []; + _this.dataRadius[i] = []; + _this.angleArr[i] = []; + s.forEach(function (dv, j) { + _this.dataRadiusOfPercent[i][j] = dv / _this.maxValue; + _this.dataRadius[i][j] = _this.dataRadiusOfPercent[i][j] * _this.size; + _this.angleArr[i][j] = j * _this.disAngle; + }); + dataPointsPos = _this.getDataPointsPos(_this.dataRadius[i], _this.angleArr[i]); + + var paths = _this.createPaths(dataPointsPos, { + x: 0, + y: 0 + }); // points + + + elPointsMain = _this.graphics.group({ + class: 'apexcharts-series-markers-wrap hidden' + }); + w.globals.delayedElements.push({ + el: elPointsMain.node, + index: i + }); + var defaultRenderedPathOptions = { + i: i, + realIndex: i, + animationDelay: i, + initialSpeed: w.config.chart.animations.speed, + dataChangeSpeed: w.config.chart.animations.dynamicAnimation.speed, + className: "apexcharts-radar", + id: "apexcharts-radar", + shouldClipToGrid: false, + bindEventsOnPaths: false, + stroke: w.globals.stroke.colors[i], + strokeLineCap: w.config.stroke.lineCap + }; + var pathFrom = null; + + if (w.globals.previousPaths.length > 0) { + pathFrom = _this.getPathFrom(i); + } + + for (var p = 0; p < paths.linePathsTo.length; p++) { + var renderedLinePath = _this.graphics.renderPaths(_objectSpread({}, defaultRenderedPathOptions, { + pathFrom: pathFrom === null ? paths.linePathsFrom[p] : pathFrom, + pathTo: paths.linePathsTo[p], + strokeWidth: Array.isArray(w.config.stroke.width) ? w.config.stroke.width[i] : w.config.stroke.width, + fill: 'none' + })); + + elSeries.add(renderedLinePath); + var pathFill = fill.fillPath({ + seriesNumber: i + }); + + var renderedAreaPath = _this.graphics.renderPaths(_objectSpread({}, defaultRenderedPathOptions, { + pathFrom: pathFrom === null ? paths.areaPathsFrom[p] : pathFrom, + pathTo: paths.areaPathsTo[p], + strokeWidth: 0, + fill: pathFill + })); + + if (w.config.chart.dropShadow.enabled) { + var filters = new Filters(_this.ctx); + var shadow = w.config.chart.dropShadow; + filters.dropShadow(renderedAreaPath, _objectSpread({}, shadow, { + noUserSpaceOnUse: true + })); + } + + elSeries.add(renderedAreaPath); + } + + s.forEach(function (sj, j) { + var markers = new Markers(_this.ctx); + var opts = markers.getMarkerConfig('apexcharts-marker', i); + + var point = _this.graphics.drawMarker(dataPointsPos[j].x, dataPointsPos[j].y, opts); + + point.attr('rel', j); + point.attr('j', j); + point.attr('index', i); + point.node.setAttribute('default-marker-size', opts.pSize); + + var elPointsWrap = _this.graphics.group({ + class: 'apexcharts-series-markers' + }); + + if (elPointsWrap) { + elPointsWrap.add(point); + } + + elPointsMain.add(elPointsWrap); + elSeries.add(elPointsMain); + }); + allSeries.push(elSeries); + }); + this.drawPolygons({ + parent: ret + }); + + if (w.config.dataLabels.enabled) { + var dataLabels = this.drawLabels(); + ret.add(dataLabels); + } + + ret.add(this.yaxisLabels); + allSeries.forEach(function (elS) { + ret.add(elS); + }); + return ret; + } + }, { + key: "drawPolygons", + value: function drawPolygons(opts) { + var _this2 = this; + + var w = this.w; + var parent = opts.parent; + var yaxisTexts = w.globals.yAxisScale[0].result.reverse(); + var layers = yaxisTexts.length; + var radiusSizes = []; + var layerDis = this.size / (layers - 1); + + for (var i = 0; i < layers; i++) { + radiusSizes[i] = layerDis * i; + } + + radiusSizes.reverse(); + var polygonStrings = []; + var lines = []; + radiusSizes.forEach(function (radiusSize, r) { + var polygon = _this2.getPolygonPos(radiusSize); + + var string = ''; + polygon.forEach(function (p, i) { + if (r === 0) { + var line = _this2.graphics.drawLine(p.x, p.y, 0, 0, Array.isArray(_this2.polygons.connectorColors) ? _this2.polygons.connectorColors[i] : _this2.polygons.connectorColors); + + lines.push(line); + } + + if (i === 0) { + _this2.yaxisLabelsTextsPos.push({ + x: p.x, + y: p.y + }); + } + + string += p.x + ',' + p.y + ' '; + }); + polygonStrings.push(string); + }); + polygonStrings.forEach(function (p, i) { + var strokeColors = _this2.polygons.strokeColors; + + var polygon = _this2.graphics.drawPolygon(p, Array.isArray(strokeColors) ? strokeColors[i] : strokeColors, w.globals.radarPolygons.fill.colors[i]); + + parent.add(polygon); + }); + lines.forEach(function (l) { + parent.add(l); + }); + + if (w.config.yaxis[0].show) { + this.yaxisLabelsTextsPos.forEach(function (p, i) { + var yText = _this2.drawYAxisText(p.x, p.y, i, yaxisTexts[i]); + + _this2.yaxisLabels.add(yText); + }); + } + } + }, { + key: "drawYAxisText", + value: function drawYAxisText(x, y, i, text) { + var w = this.w; + var yaxisConfig = w.config.yaxis[0]; + var formatter = w.globals.yLabelFormatters[0]; + var yaxisLabel = this.graphics.drawText({ + x: x + yaxisConfig.labels.offsetX, + y: y + yaxisConfig.labels.offsetY, + text: formatter(text, i), + textAnchor: 'middle', + fontSize: yaxisConfig.labels.style.fontSize, + fontFamily: yaxisConfig.labels.style.fontFamily, + foreColor: yaxisConfig.labels.style.color + }); + return yaxisLabel; + } + }, { + key: "drawLabels", + value: function drawLabels() { + var _this3 = this; + + var w = this.w; + var limit = 10; + var textAnchor = 'middle'; + var dataLabelsConfig = w.config.dataLabels; + var elDataLabelsWrap = this.graphics.group({ + class: 'apexcharts-datalabels' + }); + var polygonPos = this.getPolygonPos(this.size); + var currPosX = 0; + var currPosY = 0; + w.globals.labels.forEach(function (label, i) { + var formatter = dataLabelsConfig.formatter; + var dataLabels = new DataLabels(_this3.ctx); + + if (polygonPos[i]) { + currPosX = polygonPos[i].x; + currPosY = polygonPos[i].y; + + if (Math.abs(polygonPos[i].x) >= limit) { + if (polygonPos[i].x > 0) { + textAnchor = 'start'; + currPosX += 10; + } else if (polygonPos[i].x < 0) { + textAnchor = 'end'; + currPosX -= 10; + } + } else { + textAnchor = 'middle'; + } + + if (Math.abs(polygonPos[i].y) >= _this3.size - limit) { + if (polygonPos[i].y < 0) { + currPosY -= 10; + } else if (polygonPos[i].y > 0) { + currPosY += 10; + } + } + + var text = formatter(label, { + seriesIndex: -1, + dataPointIndex: i, + w: w + }); + dataLabels.plotDataLabelsText({ + x: currPosX, + y: currPosY, + text: text, + textAnchor: textAnchor, + i: i, + j: i, + parent: elDataLabelsWrap, + dataLabelsConfig: dataLabelsConfig, + offsetCorrection: false + }); + } + }); + return elDataLabelsWrap; + } + }, { + key: "createPaths", + value: function createPaths(pos, origin) { + var _this4 = this; + + var linePathsTo = []; + var linePathsFrom = []; + var areaPathsTo = []; + var areaPathsFrom = []; + + if (pos.length) { + linePathsFrom = [this.graphics.move(origin.x, origin.y)]; + areaPathsFrom = [this.graphics.move(origin.x, origin.y)]; + var linePathTo = this.graphics.move(pos[0].x, pos[0].y); + var areaPathTo = this.graphics.move(pos[0].x, pos[0].y); + pos.forEach(function (p, i) { + linePathTo += _this4.graphics.line(p.x, p.y); + areaPathTo += _this4.graphics.line(p.x, p.y); + + if (i === pos.length - 1) { + linePathTo += 'Z'; + areaPathTo += 'Z'; + } + }); + linePathsTo.push(linePathTo); + areaPathsTo.push(areaPathTo); + } + + return { + linePathsFrom: linePathsFrom, + linePathsTo: linePathsTo, + areaPathsFrom: areaPathsFrom, + areaPathsTo: areaPathsTo + }; + } + }, { + key: "getPathFrom", + value: function getPathFrom(realIndex) { + var w = this.w; + var pathFrom = null; + + for (var pp = 0; pp < w.globals.previousPaths.length; pp++) { + var gpp = w.globals.previousPaths[pp]; + + if (gpp.paths.length > 0 && parseInt(gpp.realIndex) === parseInt(realIndex)) { + if (typeof w.globals.previousPaths[pp].paths[0] !== 'undefined') { + pathFrom = w.globals.previousPaths[pp].paths[0].d; + } + } + } + + return pathFrom; + } + }, { + key: "getDataPointsPos", + value: function getDataPointsPos(dataRadiusArr, angleArr) { + var dataPointsLen = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.dataPointsLen; + dataRadiusArr = dataRadiusArr || []; + angleArr = angleArr || []; + var dataPointsPosArray = []; + + for (var j = 0; j < dataPointsLen; j++) { + var curPointPos = {}; + curPointPos.x = dataRadiusArr[j] * Math.sin(angleArr[j]); + curPointPos.y = -dataRadiusArr[j] * Math.cos(angleArr[j]); + dataPointsPosArray.push(curPointPos); + } + + return dataPointsPosArray; + } + }, { + key: "getPolygonPos", + value: function getPolygonPos(size) { + var dotsArray = []; + var angle = Math.PI * 2 / this.dataPointsLen; + + for (var i = 0; i < this.dataPointsLen; i++) { + var curPos = {}; + curPos.x = size * Math.sin(i * angle); + curPos.y = -size * Math.cos(i * angle); + dotsArray.push(curPos); + } + + return dotsArray; + } + }]); + + return Radar; + }(); + + /** + * ApexCharts Radial Class for drawing Circle / Semi Circle Charts. + * @module Radial + **/ + + var Radial = + /*#__PURE__*/ + function (_Pie) { + _inherits(Radial, _Pie); + + function Radial(ctx) { + var _this; + + _classCallCheck(this, Radial); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(Radial).call(this, ctx)); + _this.ctx = ctx; + _this.w = ctx.w; + _this.animBeginArr = [0]; + _this.animDur = 0; + var w = _this.w; + _this.startAngle = w.config.plotOptions.radialBar.startAngle; + _this.endAngle = w.config.plotOptions.radialBar.endAngle; + _this.trackStartAngle = w.config.plotOptions.radialBar.track.startAngle; + _this.trackEndAngle = w.config.plotOptions.radialBar.track.endAngle; + _this.radialDataLabels = w.config.plotOptions.radialBar.dataLabels; + if (!_this.trackStartAngle) _this.trackStartAngle = _this.startAngle; + if (!_this.trackEndAngle) _this.trackEndAngle = _this.endAngle; + if (_this.endAngle === 360) _this.endAngle = 359.99; + _this.fullAngle = 360 - w.config.plotOptions.radialBar.endAngle - w.config.plotOptions.radialBar.startAngle; + _this.margin = parseInt(w.config.plotOptions.radialBar.track.margin); + return _this; + } + + _createClass(Radial, [{ + key: "draw", + value: function draw(series) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var ret = graphics.group({ + class: 'apexcharts-radialbar' + }); + var elSeries = graphics.group(); + var centerY = this.defaultSize / 2; + var centerX = w.globals.gridWidth / 2; + var size = this.defaultSize / 2.05 - w.config.stroke.width - w.config.chart.dropShadow.blur; + + if (w.config.plotOptions.radialBar.size !== undefined) { + size = w.config.plotOptions.radialBar.size; + } + + var colorArr = w.globals.fill.colors; + + if (w.config.plotOptions.radialBar.track.show) { + var elTracks = this.drawTracks({ + size: size, + centerX: centerX, + centerY: centerY, + colorArr: colorArr, + series: series + }); + elSeries.add(elTracks); + } + + var elG = this.drawArcs({ + size: size, + centerX: centerX, + centerY: centerY, + colorArr: colorArr, + series: series + }); + elSeries.add(elG.g); + + if (w.config.plotOptions.radialBar.hollow.position === 'front') { + elG.g.add(elG.elHollow); + + if (elG.dataLabels) { + elG.g.add(elG.dataLabels); + } + } + + ret.add(elSeries); + return ret; + } + }, { + key: "drawTracks", + value: function drawTracks(opts) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var g = graphics.group(); + var filters = new Filters(this.ctx); + var fill = new Fill(this.ctx); + var strokeWidth = this.getStrokeWidth(opts); + opts.size = opts.size - strokeWidth / 2; + + for (var i = 0; i < opts.series.length; i++) { + var elRadialBarTrack = graphics.group({ + class: 'apexcharts-radialbar-track apexcharts-track' + }); + g.add(elRadialBarTrack); + elRadialBarTrack.attr({ + id: 'apexcharts-track-' + i, + rel: i + 1 + }); + opts.size = opts.size - strokeWidth - this.margin; + var trackConfig = w.config.plotOptions.radialBar.track; + var pathFill = fill.fillPath({ + seriesNumber: 0, + size: opts.size, + fillColors: Array.isArray(trackConfig.background) ? trackConfig.background[i] : trackConfig.background, + solid: true + }); + var startAngle = this.trackStartAngle; + var endAngle = this.trackEndAngle; + if (Math.abs(endAngle) + Math.abs(startAngle) >= 360) endAngle = 360 - Math.abs(this.startAngle) - 0.1; + var elPath = graphics.drawPath({ + d: '', + stroke: pathFill, + strokeWidth: strokeWidth * parseInt(trackConfig.strokeWidth) / 100, + fill: 'none', + strokeOpacity: trackConfig.opacity, + classes: 'apexcharts-radialbar-area' + }); + + if (trackConfig.dropShadow.enabled) { + var shadow = trackConfig.dropShadow; + filters.dropShadow(elPath, shadow); + } + + elRadialBarTrack.add(elPath); + elPath.attr('id', 'apexcharts-radialbarTrack-' + i); + var pie = new Pie(this.ctx); + pie.animatePaths(elPath, { + centerX: opts.centerX, + centerY: opts.centerY, + endAngle: endAngle, + startAngle: startAngle, + size: opts.size, + i: i, + totalItems: 2, + animBeginArr: 0, + dur: 0, + isTrack: true, + easing: w.globals.easing + }); + } + + return g; + } + }, { + key: "drawArcs", + value: function drawArcs(opts) { + var w = this.w; // size, donutSize, centerX, centerY, colorArr, lineColorArr, sectorAngleArr, series + + var graphics = new Graphics(this.ctx); + var fill = new Fill(this.ctx); + var filters = new Filters(this.ctx); + var g = graphics.group(); + var strokeWidth = this.getStrokeWidth(opts); + opts.size = opts.size - strokeWidth / 2; + var hollowFillID = w.config.plotOptions.radialBar.hollow.background; + var hollowSize = opts.size - strokeWidth * opts.series.length - this.margin * opts.series.length - strokeWidth * parseInt(w.config.plotOptions.radialBar.track.strokeWidth) / 100 / 2; + var hollowRadius = hollowSize - w.config.plotOptions.radialBar.hollow.margin; + + if (w.config.plotOptions.radialBar.hollow.image !== undefined) { + hollowFillID = this.drawHollowImage(opts, g, hollowSize, hollowFillID); + } + + var elHollow = this.drawHollow({ + size: hollowRadius, + centerX: opts.centerX, + centerY: opts.centerY, + fill: hollowFillID + }); + + if (w.config.plotOptions.radialBar.hollow.dropShadow.enabled) { + var shadow = w.config.plotOptions.radialBar.hollow.dropShadow; + filters.dropShadow(elHollow, shadow); + } + + var shown = 1; + + if (!this.radialDataLabels.total.show && w.globals.series.length > 1) { + shown = 0; + } + + var pie = new Pie(this.ctx); + var dataLabels = null; + + if (this.radialDataLabels.show) { + dataLabels = pie.renderInnerDataLabels(this.radialDataLabels, { + hollowSize: hollowSize, + centerX: opts.centerX, + centerY: opts.centerY, + opacity: shown + }); + } + + if (w.config.plotOptions.radialBar.hollow.position === 'back') { + g.add(elHollow); + + if (dataLabels) { + g.add(dataLabels); + } + } + + var reverseLoop = false; + + if (w.config.plotOptions.radialBar.inverseOrder) { + reverseLoop = true; + } + + for (var i = reverseLoop ? opts.series.length - 1 : 0; reverseLoop ? i >= 0 : i < opts.series.length; reverseLoop ? i-- : i++) { + var elRadialBarArc = graphics.group({ + class: "apexcharts-series apexcharts-radial-series ".concat(Utils.escapeString(w.globals.seriesNames[i])) + }); + g.add(elRadialBarArc); + elRadialBarArc.attr({ + id: 'apexcharts-series-' + i, + rel: i + 1 + }); + this.ctx.series.addCollapsedClassToSeries(elRadialBarArc, i); + opts.size = opts.size - strokeWidth - this.margin; + var pathFill = fill.fillPath({ + seriesNumber: i, + size: opts.size + }); + var startAngle = this.startAngle; + var prevStartAngle = void 0; + var totalAngle = Math.abs(w.config.plotOptions.radialBar.endAngle - w.config.plotOptions.radialBar.startAngle); // if data exceeds 100, make it 100 + + var dataValue = Utils.negToZero(opts.series[i] > 100 ? 100 : opts.series[i]) / 100; + var endAngle = Math.round(totalAngle * dataValue) + this.startAngle; + var prevEndAngle = void 0; + + if (w.globals.dataChanged) { + prevStartAngle = this.startAngle; + prevEndAngle = Math.round(totalAngle * Utils.negToZero(w.globals.previousPaths[i]) / 100) + prevStartAngle; + } + + var currFullAngle = Math.abs(endAngle) + Math.abs(startAngle); + + if (currFullAngle >= 360) { + endAngle = endAngle - 0.01; + } + + var prevFullAngle = Math.abs(prevEndAngle) + Math.abs(prevStartAngle); + + if (prevFullAngle >= 360) { + prevEndAngle = prevEndAngle - 0.01; + } + + var angle = endAngle - startAngle; + var dashArray = Array.isArray(w.config.stroke.dashArray) ? w.config.stroke.dashArray[i] : w.config.stroke.dashArray; + var elPath = graphics.drawPath({ + d: '', + stroke: pathFill, + strokeWidth: strokeWidth, + fill: 'none', + fillOpacity: w.config.fill.opacity, + classes: 'apexcharts-radialbar-area', + strokeDashArray: dashArray + }); + Graphics.setAttrs(elPath.node, { + 'data:angle': angle, + 'data:value': opts.series[i] + }); + + if (w.config.chart.dropShadow.enabled) { + var _shadow = w.config.chart.dropShadow; + filters.dropShadow(elPath, _shadow); + } + + this.addListeners(elPath, this.radialDataLabels); + + var _pie = new Pie(this.ctx); + + elRadialBarArc.add(elPath); + elPath.attr({ + id: 'apexcharts-radialArc-' + i, + index: 0, + j: i + }); + var dur = 0; + + if (_pie.initialAnim && !w.globals.resized && !w.globals.dataChanged) { + dur = (endAngle - startAngle) / 360 * w.config.chart.animations.speed; + this.animDur = dur / (opts.series.length * 1.2) + this.animDur; + this.animBeginArr.push(this.animDur); + } + + if (w.globals.dataChanged) { + dur = (endAngle - startAngle) / 360 * w.config.chart.animations.dynamicAnimation.speed; + this.animDur = dur / (opts.series.length * 1.2) + this.animDur; + this.animBeginArr.push(this.animDur); + } + + _pie.animatePaths(elPath, { + centerX: opts.centerX, + centerY: opts.centerY, + endAngle: endAngle, + startAngle: startAngle, + prevEndAngle: prevEndAngle, + prevStartAngle: prevStartAngle, + size: opts.size, + i: i, + totalItems: 2, + animBeginArr: this.animBeginArr, + dur: dur, + shouldSetPrevPaths: true, + easing: w.globals.easing + }); + } + + return { + g: g, + elHollow: elHollow, + dataLabels: dataLabels + }; + } + }, { + key: "drawHollow", + value: function drawHollow(opts) { + var graphics = new Graphics(this.ctx); + var circle = graphics.drawCircle(opts.size * 2); + circle.attr({ + class: 'apexcharts-radialbar-hollow', + cx: opts.centerX, + cy: opts.centerY, + r: opts.size, + fill: opts.fill + }); + return circle; + } + }, { + key: "drawHollowImage", + value: function drawHollowImage(opts, g, hollowSize, hollowFillID) { + var w = this.w; + var fill = new Fill(this.ctx); + var randID = (Math.random() + 1).toString(36).substring(4); + var hollowFillImg = w.config.plotOptions.radialBar.hollow.image; + + if (w.config.plotOptions.radialBar.hollow.imageClipped) { + fill.clippedImgArea({ + width: hollowSize, + height: hollowSize, + image: hollowFillImg, + patternID: "pattern".concat(w.globals.cuid).concat(randID) + }); + hollowFillID = "url(#pattern".concat(w.globals.cuid).concat(randID, ")"); + } else { + var imgWidth = w.config.plotOptions.radialBar.hollow.imageWidth; + var imgHeight = w.config.plotOptions.radialBar.hollow.imageHeight; + + if (imgWidth === undefined && imgHeight === undefined) { + var image = w.globals.dom.Paper.image(hollowFillImg).loaded(function (loader) { + this.move(opts.centerX - loader.width / 2 + w.config.plotOptions.radialBar.hollow.imageOffsetX, opts.centerY - loader.height / 2 + w.config.plotOptions.radialBar.hollow.imageOffsetY); + }); + g.add(image); + } else { + var _image = w.globals.dom.Paper.image(hollowFillImg).loaded(function (loader) { + this.move(opts.centerX - imgWidth / 2 + w.config.plotOptions.radialBar.hollow.imageOffsetX, opts.centerY - imgHeight / 2 + w.config.plotOptions.radialBar.hollow.imageOffsetY); + this.size(imgWidth, imgHeight); + }); + + g.add(_image); + } + } + + return hollowFillID; + } + }, { + key: "getStrokeWidth", + value: function getStrokeWidth(opts) { + var w = this.w; + return opts.size * (100 - parseInt(w.config.plotOptions.radialBar.hollow.size)) / 100 / (opts.series.length + 1) - this.margin; + } + }]); + + return Radial; + }(Pie); + + /** + * ApexCharts Line Class responsible for drawing Line / Area Charts. + * This class is also responsible for generating values for Bubble/Scatter charts, so need to rename it to Axis Charts to avoid confusions + * @module Line + **/ + + var Line = + /*#__PURE__*/ + function () { + function Line(ctx, xyRatios, isPointsChart) { + _classCallCheck(this, Line); + + this.ctx = ctx; + this.w = ctx.w; + this.xyRatios = xyRatios; + this.pointsChart = !(this.w.config.chart.type !== 'bubble' && this.w.config.chart.type !== 'scatter') || isPointsChart; + this.scatter = new Scatter(this.ctx); + this.noNegatives = this.w.globals.minX === Number.MAX_VALUE; + this.yaxisIndex = 0; + } + + _createClass(Line, [{ + key: "draw", + value: function draw(series, ptype, seriesIndex) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var fill = new Fill(this.ctx); + var type = w.globals.comboCharts ? ptype : w.config.chart.type; + var ret = graphics.group({ + class: "apexcharts-".concat(type, "-series apexcharts-plot-series") + }); + var coreUtils = new CoreUtils(this.ctx, w); + series = coreUtils.getLogSeries(series); + var yRatio = this.xyRatios.yRatio; + yRatio = coreUtils.getLogYRatios(yRatio); + var zRatio = this.xyRatios.zRatio; + var xRatio = this.xyRatios.xRatio; + var baseLineY = this.xyRatios.baseLineY; // push all series in an array, so we can draw in reverse order (for stacked charts) + + var allSeries = []; + var prevSeriesY = []; + var categoryAxisCorrection = 0; + + for (var i = 0; i < series.length; i++) { + // width divided into equal parts + var xDivision = w.globals.gridWidth / w.globals.dataPoints; + var realIndex = w.globals.comboCharts ? seriesIndex[i] : i; + + if (yRatio.length > 1) { + this.yaxisIndex = realIndex; + } + + this.isReversed = w.config.yaxis[this.yaxisIndex] && w.config.yaxis[this.yaxisIndex].reversed; + var yArrj = []; // hold y values of current iterating series + + var xArrj = []; // hold x values of current iterating series + // zeroY is the 0 value in y series which can be used in negative charts + + var zeroY = w.globals.gridHeight - baseLineY[this.yaxisIndex] - (this.isReversed ? w.globals.gridHeight : 0) + (this.isReversed ? baseLineY[this.yaxisIndex] * 2 : 0); + var areaBottomY = zeroY; + + if (zeroY > w.globals.gridHeight) { + areaBottomY = w.globals.gridHeight; + } + + categoryAxisCorrection = xDivision / 2; + var x = w.globals.padHorizontal + categoryAxisCorrection; + var y = 1; + + if (w.globals.isXNumeric) { + x = (w.globals.seriesX[realIndex][0] - w.globals.minX) / xRatio; + } + + xArrj.push(x); + var linePath = void 0, + areaPath = void 0, + pathFromLine = void 0, + pathFromArea = void 0; + var linePaths = []; + var areaPaths = []; // el to which series will be drawn + + var elSeries = graphics.group({ + class: "apexcharts-series ".concat(Utils.escapeString(w.globals.seriesNames[realIndex])) + }); // points + + var elPointsMain = graphics.group({ + class: 'apexcharts-series-markers-wrap' + }); // eldatalabels + + var elDataLabelsWrap = graphics.group({ + class: 'apexcharts-datalabels' + }); + this.ctx.series.addCollapsedClassToSeries(elSeries, realIndex); + var longestSeries = series[i].length === w.globals.dataPoints; + elSeries.attr({ + 'data:longestSeries': longestSeries, + rel: i + 1, + 'data:realIndex': realIndex + }); + this.appendPathFrom = true; + var pX = x; + var pY = void 0; + var prevX = pX; + var prevY = zeroY; // w.globals.svgHeight; + + var lineYPosition = 0; // the first value in the current series is not null or undefined + + var firstPrevY = this.determineFirstPrevY({ + i: i, + series: series, + yRatio: yRatio[this.yaxisIndex], + zeroY: zeroY, + prevY: prevY, + prevSeriesY: prevSeriesY, + lineYPosition: lineYPosition + }); + prevY = firstPrevY.prevY; + yArrj.push(prevY); + pY = prevY; + + if (series[i][0] === null) { + // when the first value itself is null, we need to move the pointer to a location where a null value is not found + for (var s = 0; s < series[i].length; s++) { + if (series[i][s] !== null) { + prevX = xDivision * s; + prevY = zeroY - series[i][s] / yRatio[this.yaxisIndex]; + linePath = graphics.move(prevX, prevY); + areaPath = graphics.move(prevX, areaBottomY); + break; + } + } + } else { + linePath = graphics.move(prevX, prevY); + areaPath = graphics.move(prevX, areaBottomY) + graphics.line(prevX, prevY); + } + + pathFromLine = graphics.move(-1, zeroY) + graphics.line(-1, zeroY); + pathFromArea = graphics.move(-1, zeroY) + graphics.line(-1, zeroY); + + if (w.globals.previousPaths.length > 0) { + var pathFrom = this.checkPreviousPaths({ + pathFromLine: pathFromLine, + pathFromArea: pathFromArea, + realIndex: realIndex + }); + pathFromLine = pathFrom.pathFromLine; + pathFromArea = pathFrom.pathFromArea; + } + + var iterations = w.globals.dataPoints > 1 ? w.globals.dataPoints - 1 : w.globals.dataPoints; + + for (var j = 0; j < iterations; j++) { + if (w.globals.isXNumeric) { + var sX = w.globals.seriesX[realIndex][j + 1]; + + if (typeof w.globals.seriesX[realIndex][j + 1] === 'undefined') { + /* fix #374 */ + sX = w.globals.seriesX[realIndex][iterations - 1]; + } + + x = (sX - w.globals.minX) / xRatio; + } else { + x = x + xDivision; + } + + var minY = Utils.isNumber(w.globals.minYArr[realIndex]) ? w.globals.minYArr[realIndex] : w.globals.minY; + + if (w.config.chart.stacked) { + if (i > 0 && w.globals.collapsedSeries.length < w.config.series.length - 1) { + lineYPosition = prevSeriesY[i - 1][j + 1]; + } else { + // the first series will not have prevY values + lineYPosition = zeroY; + } + + if (typeof series[i][j + 1] === 'undefined' || series[i][j + 1] === null) { + y = lineYPosition - minY / yRatio[this.yaxisIndex] + (this.isReversed ? minY / yRatio[this.yaxisIndex] : 0) * 2; + } else { + y = lineYPosition - series[i][j + 1] / yRatio[this.yaxisIndex] + (this.isReversed ? series[i][j + 1] / yRatio[this.yaxisIndex] : 0) * 2; + } + } else { + if (typeof series[i][j + 1] === 'undefined' || series[i][j + 1] === null) { + y = zeroY - minY / yRatio[this.yaxisIndex] + (this.isReversed ? minY / yRatio[this.yaxisIndex] : 0) * 2; + } else { + y = zeroY - series[i][j + 1] / yRatio[this.yaxisIndex] + (this.isReversed ? series[i][j + 1] / yRatio[this.yaxisIndex] : 0) * 2; + } + } // push current X + + + xArrj.push(x); // push current Y that will be used as next series's bottom position + + yArrj.push(y); + var calculatedPaths = this.createPaths({ + series: series, + i: i, + j: j, + x: x, + y: y, + xDivision: xDivision, + pX: pX, + pY: pY, + areaBottomY: areaBottomY, + linePath: linePath, + areaPath: areaPath, + linePaths: linePaths, + areaPaths: areaPaths + }); + areaPaths = calculatedPaths.areaPaths; + linePaths = calculatedPaths.linePaths; + pX = calculatedPaths.pX; + pY = calculatedPaths.pY; + areaPath = calculatedPaths.areaPath; + linePath = calculatedPaths.linePath; + + if (this.appendPathFrom) { + pathFromLine = pathFromLine + graphics.line(x, zeroY); + pathFromArea = pathFromArea + graphics.line(x, zeroY); + } + + var pointsPos = this.calculatePoints({ + series: series, + x: x, + y: y, + realIndex: realIndex, + i: i, + j: j, + prevY: prevY, + categoryAxisCorrection: categoryAxisCorrection, + xRatio: xRatio + }); + + if (!this.pointsChart) { + var markers = new Markers(this.ctx); + + if (w.globals.dataPoints > 1) { + elPointsMain.node.classList.add('hidden'); + } + + var elPointsWrap = markers.plotChartMarkers(pointsPos, realIndex, j + 1); + + if (elPointsWrap !== null) { + elPointsMain.add(elPointsWrap); + } + } else { + // scatter / bubble chart points creation + this.scatter.draw(elSeries, j, { + realIndex: realIndex, + pointsPos: pointsPos, + zRatio: zRatio, + elParent: elPointsMain + }); + } + + var dataLabels = new DataLabels(this.ctx); + var drawnLabels = dataLabels.drawDataLabel(pointsPos, realIndex, j + 1); + + if (drawnLabels !== null) { + elDataLabelsWrap.add(drawnLabels); + } + } // push all current y values array to main PrevY Array + + + prevSeriesY.push(yArrj); // push all x val arrays into main xArr + + w.globals.seriesXvalues[realIndex] = xArrj; + w.globals.seriesYvalues[realIndex] = yArrj; // these elements will be shown after area path animation completes + + if (!this.pointsChart) { + w.globals.delayedElements.push({ + el: elPointsMain.node, + index: realIndex + }); + } + + var defaultRenderedPathOptions = { + i: i, + realIndex: realIndex, + animationDelay: i, + initialSpeed: w.config.chart.animations.speed, + dataChangeSpeed: w.config.chart.animations.dynamicAnimation.speed, + className: "apexcharts-".concat(type), + id: "apexcharts-".concat(type) + }; + + if (w.config.stroke.show && !this.pointsChart) { + var lineFill = null; + + if (type === 'line') { + // fillable lines only for lineChart + lineFill = fill.fillPath({ + seriesNumber: realIndex, + i: i + }); + } else { + lineFill = w.globals.stroke.colors[realIndex]; + } + + for (var p = 0; p < linePaths.length; p++) { + var renderedPath = graphics.renderPaths(_objectSpread({}, defaultRenderedPathOptions, { + pathFrom: pathFromLine, + pathTo: linePaths[p], + stroke: lineFill, + strokeWidth: Array.isArray(w.config.stroke.width) ? w.config.stroke.width[realIndex] : w.config.stroke.width, + strokeLineCap: w.config.stroke.lineCap, + fill: 'none' + })); + elSeries.add(renderedPath); + } + } // we have drawn the lines, now if it is area chart, we need to fill paths + + + if (type === 'area') { + var pathFill = fill.fillPath({ + seriesNumber: realIndex + }); + + for (var _p = 0; _p < areaPaths.length; _p++) { + var _renderedPath = graphics.renderPaths(_objectSpread({}, defaultRenderedPathOptions, { + pathFrom: pathFromArea, + pathTo: areaPaths[_p], + stroke: 'none', + strokeWidth: 0, + strokeLineCap: null, + fill: pathFill + })); + + elSeries.add(_renderedPath); + } + } + + elSeries.add(elPointsMain); + elSeries.add(elDataLabelsWrap); + allSeries.push(elSeries); + } + + for (var _s = allSeries.length; _s > 0; _s--) { + ret.add(allSeries[_s - 1]); + } + + return ret; + } + }, { + key: "createPaths", + value: function createPaths(_ref) { + var series = _ref.series, + i = _ref.i, + j = _ref.j, + x = _ref.x, + y = _ref.y, + pX = _ref.pX, + pY = _ref.pY, + xDivision = _ref.xDivision, + areaBottomY = _ref.areaBottomY, + linePath = _ref.linePath, + areaPath = _ref.areaPath, + linePaths = _ref.linePaths, + areaPaths = _ref.areaPaths; + var w = this.w; + var graphics = new Graphics(this.ctx); + var curve = Array.isArray(w.config.stroke.curve) ? w.config.stroke.curve[i] : w.config.stroke.curve; // logic of smooth curve derived from chartist + // CREDITS: https://gionkunz.github.io/chartist-js/ + + if (curve === 'smooth') { + var length = (x - pX) * 0.35; + + if (w.globals.hasNullValues) { + if (series[i][j] !== null) { + if (series[i][j + 1] !== null) { + linePath = graphics.move(pX, pY) + graphics.curve(pX + length, pY, x - length, y, x + 1, y); + areaPath = graphics.move(pX + 1, pY) + graphics.curve(pX + length, pY, x - length, y, x + 1, y) + graphics.line(x, areaBottomY) + graphics.line(pX, areaBottomY) + 'z'; + } else { + linePath = graphics.move(pX, pY); + areaPath = graphics.move(pX, pY) + 'z'; + } + } + + linePaths.push(linePath); + areaPaths.push(areaPath); + } else { + linePath = linePath + graphics.curve(pX + length, pY, x - length, y, x, y); + areaPath = areaPath + graphics.curve(pX + length, pY, x - length, y, x, y); + } + + pX = x; + pY = y; + + if (j === series[i].length - 2) { + // last loop, close path + areaPath = areaPath + graphics.curve(pX, pY, x, y, x, areaBottomY) + graphics.move(x, y) + 'z'; + + if (!w.globals.hasNullValues) { + linePaths.push(linePath); + areaPaths.push(areaPath); + } + } + } else { + if (series[i][j + 1] === null) { + linePath = linePath + graphics.move(x, y); + areaPath = areaPath + graphics.line(x - xDivision, areaBottomY) + graphics.move(x, y); + } + + if (series[i][j] === null) { + linePath = linePath + graphics.move(x, y); + areaPath = areaPath + graphics.move(x, areaBottomY); + } + + if (curve === 'stepline') { + linePath = linePath + graphics.line(x, null, 'H') + graphics.line(null, y, 'V'); + areaPath = areaPath + graphics.line(x, null, 'H') + graphics.line(null, y, 'V'); + } else if (curve === 'straight') { + linePath = linePath + graphics.line(x, y); + areaPath = areaPath + graphics.line(x, y); + } + + if (j === series[i].length - 2) { + // last loop, close path + areaPath = areaPath + graphics.line(x, areaBottomY) + graphics.move(x, y) + 'z'; + linePaths.push(linePath); + areaPaths.push(areaPath); + } + } + + return { + linePaths: linePaths, + areaPaths: areaPaths, + pX: pX, + pY: pY, + linePath: linePath, + areaPath: areaPath + }; + } + }, { + key: "calculatePoints", + value: function calculatePoints(_ref2) { + var series = _ref2.series, + realIndex = _ref2.realIndex, + x = _ref2.x, + y = _ref2.y, + i = _ref2.i, + j = _ref2.j, + prevY = _ref2.prevY, + categoryAxisCorrection = _ref2.categoryAxisCorrection, + xRatio = _ref2.xRatio; + var w = this.w; + var ptX = []; + var ptY = []; + + if (j === 0) { + var xPT1st = categoryAxisCorrection + w.config.markers.offsetX; // the first point for line series + // we need to check whether it's not a time series, because a time series may + // start from the middle of the x axis + + if (w.globals.isXNumeric) { + xPT1st = (w.globals.seriesX[realIndex][0] - w.globals.minX) / xRatio + w.config.markers.offsetX; + } // push 2 points for the first data values + + + ptX.push(xPT1st); + ptY.push(Utils.isNumber(series[i][0]) ? prevY + w.config.markers.offsetY : null); + ptX.push(x + w.config.markers.offsetX); + ptY.push(Utils.isNumber(series[i][j + 1]) ? y + w.config.markers.offsetY : null); + } else { + ptX.push(x + w.config.markers.offsetX); + ptY.push(Utils.isNumber(series[i][j + 1]) ? y + w.config.markers.offsetY : null); + } + + var pointsPos = { + x: ptX, + y: ptY + }; + return pointsPos; + } + }, { + key: "checkPreviousPaths", + value: function checkPreviousPaths(_ref3) { + var pathFromLine = _ref3.pathFromLine, + pathFromArea = _ref3.pathFromArea, + realIndex = _ref3.realIndex; + var w = this.w; + + for (var pp = 0; pp < w.globals.previousPaths.length; pp++) { + var gpp = w.globals.previousPaths[pp]; + + if ((gpp.type === 'line' || gpp.type === 'area') && gpp.paths.length > 0 && parseInt(gpp.realIndex) === parseInt(realIndex)) { + if (gpp.type === 'line') { + this.appendPathFrom = false; + pathFromLine = w.globals.previousPaths[pp].paths[0].d; + } else if (gpp.type === 'area') { + this.appendPathFrom = false; + + if (w.config.stroke.show) { + pathFromLine = w.globals.previousPaths[pp].paths[0].d; + pathFromArea = w.globals.previousPaths[pp].paths[1].d; + } else { + pathFromArea = w.globals.previousPaths[pp].paths[0].d; + } + } + } + } + + return { + pathFromLine: pathFromLine, + pathFromArea: pathFromArea + }; + } + }, { + key: "determineFirstPrevY", + value: function determineFirstPrevY(_ref4) { + var i = _ref4.i, + series = _ref4.series, + yRatio = _ref4.yRatio, + zeroY = _ref4.zeroY, + prevY = _ref4.prevY, + prevSeriesY = _ref4.prevSeriesY, + lineYPosition = _ref4.lineYPosition; + var w = this.w; + + if (typeof series[i][0] !== 'undefined') { + if (w.config.chart.stacked) { + if (i > 0) { + // 1st y value of previous series + lineYPosition = prevSeriesY[i - 1][0]; + } else { + // the first series will not have prevY values + lineYPosition = zeroY; + } + + prevY = lineYPosition - series[i][0] / yRatio + (this.isReversed ? series[i][0] / yRatio : 0) * 2; + } else { + prevY = zeroY - series[i][0] / yRatio + (this.isReversed ? series[i][0] / yRatio : 0) * 2; + } + } else { + // the first value in the current series is null + if (w.config.chart.stacked && i > 0 && typeof series[i][0] === 'undefined') { + // check for undefined value (undefined value will occur when we clear the series while user clicks on legend to hide serieses) + for (var s = i - 1; s >= 0; s--) { + // for loop to get to 1st previous value until we get it + if (series[s][0] !== null && typeof series[s][0] !== 'undefined') { + lineYPosition = prevSeriesY[s][0]; + prevY = lineYPosition; + break; + } + } + } + } + + return { + prevY: prevY, + lineYPosition: lineYPosition + }; + } + }]); + + return Line; + }(); + + /** + * ApexCharts YAxis Class for drawing Y-Axis. + * + * @module YAxis + **/ + + var YAxis = + /*#__PURE__*/ + function () { + function YAxis(ctx) { + _classCallCheck(this, YAxis); + + this.ctx = ctx; + this.w = ctx.w; + this.xaxisFontSize = this.w.config.xaxis.labels.style.fontSize; + this.axisFontFamily = this.w.config.xaxis.labels.style.fontFamily; + this.isBarHorizontal = !!(this.w.config.chart.type === 'bar' && this.w.config.plotOptions.bar.horizontal); + this.xaxisForeColors = this.w.config.xaxis.labels.style.colors; + this.xAxisoffX = 0; + + if (this.w.config.xaxis.position === 'bottom') { + this.xAxisoffX = this.w.globals.gridHeight; + } + } + + _createClass(YAxis, [{ + key: "drawYaxis", + value: function drawYaxis(realIndex) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var yaxisFontSize = w.config.yaxis[realIndex].labels.style.fontSize; + var yaxisFontFamily = w.config.yaxis[realIndex].labels.style.fontFamily; + var elYaxis = graphics.group({ + class: 'apexcharts-yaxis', + rel: realIndex, + transform: 'translate(' + w.globals.translateYAxisX[realIndex] + ', 0)' + }); + + if (!w.config.yaxis[realIndex].show) { + return elYaxis; + } + + var elYaxisTexts = graphics.group({ + class: 'apexcharts-yaxis-texts-g' + }); + elYaxis.add(elYaxisTexts); + var tickAmount = w.globals.yAxisScale[realIndex].result.length - 1; // labelsDivider is simply svg height/number of ticks + + var labelsDivider = w.globals.gridHeight / tickAmount + 0.1; // initial label position = 0; + + var l = w.globals.translateY; + var lbFormatter = w.globals.yLabelFormatters[realIndex]; + var labels = w.globals.yAxisScale[realIndex].result.slice(); + + if (w.config.yaxis[realIndex].reversed) { + labels.reverse(); + } + + if (w.config.yaxis[realIndex].labels.show) { + for (var i = tickAmount; i >= 0; i--) { + var val = labels[i]; + val = lbFormatter(val, i); + var xPad = w.config.yaxis[realIndex].labels.padding; + + if (w.config.yaxis[realIndex].opposite && w.config.yaxis.length !== 0) { + xPad = xPad * -1; + } + + var label = graphics.drawText({ + x: xPad, + y: l + tickAmount / 10 + w.config.yaxis[realIndex].labels.offsetY + 1, + text: val, + textAnchor: w.config.yaxis[realIndex].opposite ? 'start' : 'end', + fontSize: yaxisFontSize, + fontFamily: yaxisFontFamily, + foreColor: w.config.yaxis[realIndex].labels.style.color, + cssClass: 'apexcharts-yaxis-label ' + w.config.yaxis[realIndex].labels.style.cssClass + }); + elYaxisTexts.add(label); + var labelRotatingCenter = graphics.rotateAroundCenter(label.node); + + if (w.config.yaxis[realIndex].labels.rotate !== 0) { + label.node.setAttribute('transform', "rotate(".concat(w.config.yaxis[realIndex].labels.rotate, " ").concat(labelRotatingCenter.x, " ").concat(labelRotatingCenter.y, ")")); + } + + l = l + labelsDivider; + } + } + + if (w.config.yaxis[realIndex].title.text !== undefined) { + var elYaxisTitle = graphics.group({ + class: 'apexcharts-yaxis-title' + }); + var x = 0; + + if (w.config.yaxis[realIndex].opposite) { + x = w.globals.translateYAxisX[realIndex]; + } + + var elYAxisTitleText = graphics.drawText({ + x: x, + y: w.globals.gridHeight / 2 + w.globals.translateY, + text: w.config.yaxis[realIndex].title.text, + textAnchor: 'end', + foreColor: w.config.yaxis[realIndex].title.style.color, + fontSize: w.config.yaxis[realIndex].title.style.fontSize, + fontFamily: w.config.yaxis[realIndex].title.style.fontFamily, + cssClass: 'apexcharts-yaxis-title-text ' + w.config.yaxis[realIndex].title.style.cssClass + }); + elYaxisTitle.add(elYAxisTitleText); + elYaxis.add(elYaxisTitle); + } + + var axisBorder = w.config.yaxis[realIndex].axisBorder; + + if (axisBorder.show) { + var _x = 31 + axisBorder.offsetX; + + if (w.config.yaxis[realIndex].opposite) { + _x = -31 - axisBorder.offsetX; + } + + var elVerticalLine = graphics.drawLine(_x, w.globals.translateY + axisBorder.offsetY - 2, _x, w.globals.gridHeight + w.globals.translateY + axisBorder.offsetY + 2, axisBorder.color); + elYaxis.add(elVerticalLine); + this.drawAxisTicks(_x, tickAmount, axisBorder, w.config.yaxis[realIndex].axisTicks, realIndex, labelsDivider, elYaxis); + } + + return elYaxis; + } // This actually becomes horizonal axis (for bar charts) + + }, { + key: "drawYaxisInversed", + value: function drawYaxisInversed(realIndex) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var elXaxis = graphics.group({ + class: 'apexcharts-xaxis apexcharts-yaxis-inversed' + }); + var elXaxisTexts = graphics.group({ + class: 'apexcharts-xaxis-texts-g', + transform: "translate(".concat(w.globals.translateXAxisX, ", ").concat(w.globals.translateXAxisY, ")") + }); + elXaxis.add(elXaxisTexts); + var tickAmount = w.globals.yAxisScale[realIndex].result.length - 1; // labelsDivider is simply svg width/number of ticks + + var labelsDivider = w.globals.gridWidth / tickAmount + 0.1; // initial label position; + + var l = labelsDivider + w.config.xaxis.labels.offsetX; + var lbFormatter = w.globals.xLabelFormatter; + var labels = w.globals.yAxisScale[realIndex].result.slice(); + + if (w.config.yaxis[realIndex].reversed) { + labels.reverse(); + } + + if (w.config.xaxis.labels.show) { + for (var i = tickAmount; i >= 0; i--) { + var val = labels[i]; + val = lbFormatter(val, i); + var elTick = graphics.drawText({ + x: w.globals.gridWidth + w.globals.padHorizontal - (l - labelsDivider + w.config.xaxis.labels.offsetX), + y: this.xAxisoffX + w.config.xaxis.labels.offsetY + 30, + text: '', + textAnchor: 'middle', + foreColor: Array.isArray(this.xaxisForeColors) ? this.xaxisForeColors[realIndex] : this.xaxisForeColors, + fontSize: this.xaxisFontSize, + fontFamily: this.xaxisFontFamily, + cssClass: 'apexcharts-xaxis-label ' + w.config.xaxis.labels.style.cssClass + }); + elXaxisTexts.add(elTick); + elTick.tspan(val); + var elTooltipTitle = document.createElementNS(w.globals.SVGNS, 'title'); + elTooltipTitle.textContent = val; + elTick.node.appendChild(elTooltipTitle); + l = l + labelsDivider; + } + } + + if (w.config.xaxis.title.text !== undefined) { + var elYaxisTitle = graphics.group({ + class: 'apexcharts-xaxis-title apexcharts-yaxis-title-inversed' + }); + var elYAxisTitleText = graphics.drawText({ + x: w.globals.gridWidth / 2, + y: this.xAxisoffX + parseInt(this.xaxisFontSize) + parseInt(w.config.xaxis.title.style.fontSize) + 20, + text: w.config.xaxis.title.text, + textAnchor: 'middle', + fontSize: w.config.xaxis.title.style.fontSize, + fontFamily: w.config.xaxis.title.style.fontFamily, + cssClass: 'apexcharts-xaxis-title-text ' + w.config.xaxis.title.style.cssClass + }); + elYaxisTitle.add(elYAxisTitleText); + elXaxis.add(elYaxisTitle); + } + + var axisBorder = w.config.yaxis[realIndex].axisBorder; + + if (axisBorder.show) { + var elVerticalLine = graphics.drawLine(w.globals.padHorizontal + axisBorder.offsetX, 1 + axisBorder.offsetY, w.globals.padHorizontal + axisBorder.offsetX, w.globals.gridHeight + axisBorder.offsetY, axisBorder.color); + elXaxis.add(elVerticalLine); + } + + return elXaxis; + } + }, { + key: "drawAxisTicks", + value: function drawAxisTicks(x, tickAmount, axisBorder, axisTicks, realIndex, labelsDivider, elYaxis) { + var w = this.w; + var graphics = new Graphics(this.ctx); // initial label position = 0; + + var t = w.globals.translateY; + + if (axisTicks.show) { + if (w.config.yaxis[realIndex].opposite === true) x = x + axisTicks.width; + + for (var i = tickAmount; i >= 0; i--) { + var tY = t + tickAmount / 10 + w.config.yaxis[realIndex].labels.offsetY - 1; + + if (this.isBarHorizontal) { + tY = labelsDivider * i; + } + + var elTick = graphics.drawLine(x + axisBorder.offsetX - axisTicks.width + axisTicks.offsetX, tY + axisTicks.offsetY, x + axisBorder.offsetX + axisTicks.offsetX, tY + axisTicks.offsetY, axisBorder.color); + elYaxis.add(elTick); + t = t + labelsDivider; + } + } + } + }, { + key: "yAxisTitleRotate", + value: function yAxisTitleRotate(realIndex, yAxisOpposite) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var yAxisLabelsCoord = { + width: 0, + height: 0 + }; + var yAxisTitleCoord = { + width: 0, + height: 0 + }; + var elYAxisLabelsWrap = w.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(realIndex, "'] .apexcharts-yaxis-texts-g")); + + if (elYAxisLabelsWrap !== null) { + yAxisLabelsCoord = elYAxisLabelsWrap.getBoundingClientRect(); + } + + var yAxisTitle = w.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(realIndex, "'] .apexcharts-yaxis-title text")); + + if (yAxisTitle !== null) { + yAxisTitleCoord = yAxisTitle.getBoundingClientRect(); + } + + if (yAxisTitle !== null) { + var x = this.xPaddingForYAxisTitle(realIndex, yAxisLabelsCoord, yAxisTitleCoord, yAxisOpposite); + yAxisTitle.setAttribute('x', x.xPos - (yAxisOpposite ? 10 : 0)); + } + + if (yAxisTitle !== null) { + var titleRotatingCenter = graphics.rotateAroundCenter(yAxisTitle); + + if (!yAxisOpposite) { + yAxisTitle.setAttribute('transform', "rotate(-".concat(w.config.yaxis[realIndex].title.rotate, " ").concat(titleRotatingCenter.x, " ").concat(titleRotatingCenter.y, ")")); + } else { + yAxisTitle.setAttribute('transform', "rotate(".concat(w.config.yaxis[realIndex].title.rotate, " ").concat(titleRotatingCenter.x, " ").concat(titleRotatingCenter.y, ")")); + } + } + } + }, { + key: "xPaddingForYAxisTitle", + value: function xPaddingForYAxisTitle(realIndex, yAxisLabelsCoord, yAxisTitleCoord, yAxisOpposite) { + var w = this.w; + var oppositeAxisCount = 0; + var x = 0; + var padd = 10; + + if (w.config.yaxis[realIndex].title.text === undefined || realIndex < 0) { + return { + xPos: x, + padd: 0 + }; + } + + if (yAxisOpposite) { + x = yAxisLabelsCoord.width + w.config.yaxis[realIndex].title.offsetX + yAxisTitleCoord.width / 2 + padd / 2; + oppositeAxisCount += 1; + + if (oppositeAxisCount === 0) { + x = x - padd / 2; + } + } else { + x = yAxisLabelsCoord.width * -1 + w.config.yaxis[realIndex].title.offsetX + padd / 2 + yAxisTitleCoord.width / 2; + + if (this.isBarHorizontal) { + padd = 25; + x = yAxisLabelsCoord.width * -1 - w.config.yaxis[realIndex].title.offsetX - padd; + } + } + + return { + xPos: x, + padd: padd + }; + } // sets the x position of the y-axis by counting the labels width, title width and any offset + + }, { + key: "setYAxisXPosition", + value: function setYAxisXPosition(yaxisLabelCoords, yTitleCoords) { + var _this = this; + + var w = this.w; + var xLeft = 0; + var xRight = 0; + var leftOffsetX = 21; + var rightOffsetX = 1; + + if (w.config.yaxis.length > 1) { + this.multipleYs = true; + } + + w.config.yaxis.map(function (yaxe, index) { + var shouldNotDrawAxis = w.globals.ignoreYAxisIndexes.indexOf(index) > -1 || !yaxe.show || yaxe.floating || yaxisLabelCoords[index].width === 0; + var axisWidth = yaxisLabelCoords[index].width + yTitleCoords[index].width; + + if (!yaxe.opposite) { + xLeft = w.globals.translateX - leftOffsetX; + + if (!shouldNotDrawAxis) { + leftOffsetX = leftOffsetX + axisWidth + 20; + } + + w.globals.translateYAxisX[index] = xLeft + yaxe.labels.offsetX; + } else { + if (_this.isBarHorizontal) { + xRight = w.globals.gridWidth + w.globals.translateX - 1; + w.globals.translateYAxisX[index] = xRight - yaxe.labels.offsetX; + } else { + xRight = w.globals.gridWidth + w.globals.translateX + rightOffsetX; + + if (!shouldNotDrawAxis) { + rightOffsetX = rightOffsetX + axisWidth + 20; + } + + w.globals.translateYAxisX[index] = xRight - yaxe.labels.offsetX + 20; + } + } + }); + } + }]); + + return YAxis; + }(); + + /** + * ApexCharts Formatter Class for setting value formatters for axes as well as tooltips. + * + * @module Formatters + **/ + + var Formatters = + /*#__PURE__*/ + function () { + function Formatters(ctx) { + _classCallCheck(this, Formatters); + + this.ctx = ctx; + this.w = ctx.w; + this.tooltipKeyFormat = 'dd MMM'; + } + + _createClass(Formatters, [{ + key: "xLabelFormat", + value: function xLabelFormat(fn, val) { + var w = this.w; + + if (w.config.xaxis.type === 'datetime') { + // if user has not specified a custom formatter, use the default tooltip.x.format + if (w.config.tooltip.x.formatter === undefined) { + var datetimeObj = new DateTime(this.ctx); + return datetimeObj.formatDate(new Date(val), w.config.tooltip.x.format, true, true); + } + } + + return fn(val); + } + }, { + key: "setLabelFormatters", + value: function setLabelFormatters() { + var w = this.w; + + w.globals.xLabelFormatter = function (val) { + return val; + }; + + w.globals.xaxisTooltipFormatter = function (val) { + return val; + }; + + w.globals.ttKeyFormatter = function (val) { + return val; + }; + + w.globals.ttZFormatter = function (val) { + return val; + }; + + w.globals.legendFormatter = function (val) { + return val; + }; + + if (typeof w.config.tooltip.x.formatter === 'function') { + w.globals.ttKeyFormatter = w.config.tooltip.x.formatter; + } + + if (typeof w.config.xaxis.tooltip.formatter === 'function') { + w.globals.xaxisTooltipFormatter = w.config.xaxis.tooltip.formatter; + } + + if (Array.isArray(w.config.tooltip.y)) { + w.globals.ttVal = w.config.tooltip.y; + } else { + if (w.config.tooltip.y.formatter !== undefined) { + w.globals.ttVal = w.config.tooltip.y; + } + } + + if (w.config.tooltip.z.formatter !== undefined) { + w.globals.ttZFormatter = w.config.tooltip.z.formatter; + } // legend formatter - if user wants to append any global values of series to legend text + + + if (w.config.legend.formatter !== undefined) { + w.globals.legendFormatter = w.config.legend.formatter; + } // formatter function will always overwrite format property + + + if (w.config.xaxis.labels.formatter !== undefined) { + w.globals.xLabelFormatter = w.config.xaxis.labels.formatter; + } else { + w.globals.xLabelFormatter = function (val) { + if (Utils.isNumber(val)) { + // numeric xaxis may have smaller range, so defaulting to 1 decimal + if (w.config.xaxis.type === 'numeric' && w.globals.dataPoints < 50) { + return val.toFixed(1); + } + + return val.toFixed(0); + } + + return val; + }; + } // formatter function will always overwrite format property + + + w.config.yaxis.forEach(function (yaxe, i) { + if (yaxe.labels.formatter !== undefined) { + w.globals.yLabelFormatters[i] = yaxe.labels.formatter; + } else { + w.globals.yLabelFormatters[i] = function (val) { + if (Utils.isNumber(val)) { + if (w.globals.yValueDecimal !== 0 || w.globals.maxY - w.globals.minY < 1) { + return val.toFixed(yaxe.decimalsInFloat); + } else { + return val.toFixed(0); + } + } + + return val; + }; + } + }); + return w.globals; + } + }, { + key: "heatmapLabelFormatters", + value: function heatmapLabelFormatters() { + var w = this.w; + + if (w.config.chart.type === 'heatmap') { + w.globals.yAxisScale[0].result = w.globals.seriesNames.slice(); // get the longest string from the labels array and also apply label formatter to it + + var longest = w.globals.seriesNames.reduce(function (a, b) { + return a.length > b.length ? a : b; + }, 0); + w.globals.yAxisScale[0].niceMax = longest; + w.globals.yAxisScale[0].niceMin = longest; + } + } + }]); + + return Formatters; + }(); + + /** + * ApexCharts XAxis Class for drawing X-Axis. + * + * @module XAxis + **/ + + var XAxis = + /*#__PURE__*/ + function () { + function XAxis(ctx) { + _classCallCheck(this, XAxis); + + this.ctx = ctx; + this.w = ctx.w; + var w = this.w; + this.xaxisLabels = w.globals.labels.slice(); + + if (w.globals.timelineLabels.length > 0) { + // timeline labels are there + this.xaxisLabels = w.globals.timelineLabels.slice(); + } + + this.drawnLabels = []; + + if (w.config.xaxis.position === 'top') { + this.offY = 0; + } else { + this.offY = w.globals.gridHeight + 1; + } + + this.offY = this.offY + w.config.xaxis.axisBorder.offsetY; + this.xaxisFontSize = w.config.xaxis.labels.style.fontSize; + this.xaxisFontFamily = w.config.xaxis.labels.style.fontFamily; + this.xaxisForeColors = w.config.xaxis.labels.style.colors; + this.xaxisBorderWidth = w.config.xaxis.axisBorder.width; + + if (this.xaxisBorderWidth.indexOf('%') > -1) { + this.xaxisBorderWidth = w.globals.gridWidth * parseInt(this.xaxisBorderWidth) / 100; + } else { + this.xaxisBorderWidth = parseInt(this.xaxisBorderWidth); + } + + this.xaxisBorderHeight = w.config.xaxis.axisBorder.height; // For bars, we will only consider single y xais, + // as we are not providing multiple yaxis for bar charts + + this.yaxis = w.config.yaxis[0]; + } + + _createClass(XAxis, [{ + key: "drawXaxis", + value: function drawXaxis() { + var w = this.w; + var graphics = new Graphics(this.ctx); + var elXaxis = graphics.group({ + class: 'apexcharts-xaxis', + transform: "translate(".concat(w.config.xaxis.offsetX, ", ").concat(w.config.xaxis.offsetY, ")") + }); + var elXaxisTexts = graphics.group({ + class: 'apexcharts-xaxis-texts-g', + transform: "translate(".concat(w.globals.translateXAxisX, ", ").concat(w.globals.translateXAxisY, ")") + }); + elXaxis.add(elXaxisTexts); + var colWidth; // initial x Position (keep adding column width in the loop) + + var xPos = w.globals.padHorizontal; + var labels = []; + + for (var i = 0; i < this.xaxisLabels.length; i++) { + labels.push(this.xaxisLabels[i]); + } + + if (w.globals.isXNumeric) { + colWidth = w.globals.gridWidth / (labels.length - 1); + xPos = xPos + colWidth / 2 + w.config.xaxis.labels.offsetX; + } else { + colWidth = w.globals.gridWidth / labels.length; + xPos = xPos + colWidth + w.config.xaxis.labels.offsetX; + } + + var xlbFormatter = w.globals.xLabelFormatter; + var customFormatter = w.config.xaxis.labels.formatter; + var labelsLen = labels.length; + + if (w.config.xaxis.labels.show) { + for (var _i = 0; _i <= labelsLen - 1; _i++) { + var rawLabel = typeof labels[_i] === 'undefined' ? '' : labels[_i]; + var label = void 0; + var xFormat = new Formatters(this.ctx); + label = xFormat.xLabelFormat(xlbFormatter, rawLabel); + + if (customFormatter !== undefined) { + label = customFormatter(rawLabel, this.xaxisLabels[_i], _i); + } + + var x = xPos - colWidth / 2 + w.config.xaxis.labels.offsetX; + + if (w.globals.timelineLabels.length > 0) { + x = w.globals.timelineLabels[_i].position; + label = w.globals.timelineLabels[_i].value; + } else { + if (w.config.xaxis.type === 'datetime' && customFormatter === undefined) { + label = ''; + } + } + + label = label.toString(); + + if (label.indexOf('NaN') === 0 || label === 'undefined' || label.toLowerCase().indexOf('invalid') === 0 || label.toLowerCase().indexOf('infinity') >= 0 || this.drawnLabels.indexOf(label) >= 0 && !w.config.xaxis.labels.showDuplicates) { + label = ''; + } + + this.drawnLabels.push(label); + var offsetYCorrection = 28; + + if (w.globals.rotateXLabels) { + offsetYCorrection = 22; + } + + var elTick = graphics.drawText({ + x: x, + y: this.offY + w.config.xaxis.labels.offsetY + offsetYCorrection, + text: '', + textAnchor: 'middle', + fontSize: this.xaxisFontSize, + fontFamily: this.xaxisFontFamily, + foreColor: Array.isArray(this.xaxisForeColors) ? this.xaxisForeColors[_i] : this.xaxisForeColors, + cssClass: 'apexcharts-xaxis-label ' + w.config.xaxis.labels.style.cssClass + }); + elXaxisTexts.add(elTick); + graphics.addTspan(elTick, label, this.xaxisFontFamily); + var elTooltipTitle = document.createElementNS(w.globals.SVGNS, 'title'); + elTooltipTitle.textContent = label; + elTick.node.appendChild(elTooltipTitle); + xPos = xPos + colWidth; + } + } + + if (w.config.xaxis.title.text !== undefined) { + var elXaxisTitle = graphics.group({ + class: 'apexcharts-xaxis-title' + }); + var elXAxisTitleText = graphics.drawText({ + x: w.globals.gridWidth / 2 + w.config.xaxis.title.offsetX, + y: this.offY - parseInt(this.xaxisFontSize) + w.globals.xAxisLabelsHeight + w.config.xaxis.title.offsetY, + text: w.config.xaxis.title.text, + textAnchor: 'middle', + fontSize: w.config.xaxis.title.style.fontSize, + fontFamily: w.config.xaxis.title.style.fontFamily, + foreColor: w.config.xaxis.title.style.color, + cssClass: 'apexcharts-xaxis-title-text ' + w.config.xaxis.title.style.cssClass + }); + elXaxisTitle.add(elXAxisTitleText); + elXaxis.add(elXaxisTitle); + } + + if (w.config.xaxis.axisBorder.show) { + var lineCorrection = 0; + + if (w.config.chart.type === 'bar' && w.globals.isXNumeric) { + lineCorrection = lineCorrection - 15; + } + + var elHorzLine = graphics.drawLine(w.globals.padHorizontal + lineCorrection + w.config.xaxis.axisBorder.offsetX, this.offY, this.xaxisBorderWidth, this.offY, w.config.xaxis.axisBorder.color, 0, this.xaxisBorderHeight); + elXaxis.add(elHorzLine); + } + + return elXaxis; + } // this actually becomes the vertical axis (for bar charts) + + }, { + key: "drawXaxisInversed", + value: function drawXaxisInversed(realIndex) { + var w = this.w; + var graphics = new Graphics(this.ctx); + var translateYAxisX = w.config.yaxis[0].opposite ? w.globals.translateYAxisX[realIndex] : 0; + var elYaxis = graphics.group({ + class: 'apexcharts-yaxis apexcharts-xaxis-inversed', + rel: realIndex + }); + var elYaxisTexts = graphics.group({ + class: 'apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g', + transform: 'translate(' + translateYAxisX + ', 0)' + }); + elYaxis.add(elYaxisTexts); + var colHeight; // initial x Position (keep adding column width in the loop) + + var yPos; + var labels = []; + + for (var i = 0; i < this.xaxisLabels.length; i++) { + labels.push(this.xaxisLabels[i]); + } + + colHeight = w.globals.gridHeight / labels.length; + yPos = -(colHeight / 2.2); + var lbFormatter = w.globals.yLabelFormatters[0]; + var ylabels = w.config.yaxis[0].labels; + + if (ylabels.show) { + for (var _i2 = 0; _i2 <= labels.length - 1; _i2++) { + var label = typeof labels[_i2] === 'undefined' ? '' : labels[_i2]; + label = lbFormatter(label); + var elLabel = graphics.drawText({ + x: ylabels.offsetX - 15, + y: yPos + colHeight + ylabels.offsetY, + text: label, + textAnchor: this.yaxis.opposite ? 'start' : 'end', + foreColor: ylabels.style.color ? ylabels.style.color : ylabels.style.colors[_i2], + fontSize: ylabels.style.fontSize, + fontFamily: ylabels.style.fontFamily, + cssClass: 'apexcharts-yaxis-label ' + ylabels.style.cssClass + }); // let labelRotatingCenter = graphics.rotateAroundCenter(elLabel.node) + // if (ylabels.rotate !== 0) { + // elLabel.node.setAttribute( + // 'transform', + // `rotate(${ylabels.rotate} ${labelRotatingCenter.x} ${labelRotatingCenter.y})` + // ) + // } + + elYaxisTexts.add(elLabel); + yPos = yPos + colHeight; + } + } + + if (w.config.yaxis[0].title.text !== undefined) { + var elXaxisTitle = graphics.group({ + class: 'apexcharts-yaxis-title apexcharts-xaxis-title-inversed', + transform: 'translate(' + translateYAxisX + ', 0)' + }); + var elXAxisTitleText = graphics.drawText({ + x: 0, + y: w.globals.gridHeight / 2, + text: w.config.yaxis[0].title.text, + textAnchor: 'middle', + foreColor: w.config.yaxis[0].title.style.color, + fontSize: w.config.yaxis[0].title.style.fontSize, + fontFamily: w.config.yaxis[0].title.style.fontFamily, + cssClass: 'apexcharts-yaxis-title-text ' + w.config.yaxis[0].title.style.cssClass + }); + elXaxisTitle.add(elXAxisTitleText); + elYaxis.add(elXaxisTitle); + } + + if (w.config.xaxis.axisBorder.show) { + var elHorzLine = graphics.drawLine(w.globals.padHorizontal + w.config.xaxis.axisBorder.offsetX, this.offY, this.xaxisBorderWidth, this.offY, this.yaxis.axisBorder.color, 0, this.xaxisBorderHeight); + elYaxis.add(elHorzLine); // let x = w.globals.yAxisWidths[0] / 2 + // if (w.config.yaxis[0].opposite) { + // x = -w.globals.yAxisWidths[0] / 2 + // } + + var yaxis = new YAxis(this.ctx); + yaxis.drawAxisTicks(0, labels.length, w.config.yaxis[0].axisBorder, w.config.yaxis[0].axisTicks, 0, colHeight, elYaxis); + } + + return elYaxis; + } + }, { + key: "drawXaxisTicks", + value: function drawXaxisTicks(x1, appendToElement) { + var w = this.w; + var x2 = x1; + if (x1 < 0 || x1 > w.globals.gridWidth) return; + var y1 = this.offY + w.config.xaxis.axisTicks.offsetY; + var y2 = y1 + w.config.xaxis.axisTicks.height; + + if (w.config.xaxis.axisTicks.show) { + var graphics = new Graphics(this.ctx); + var line = graphics.drawLine(x1 + w.config.xaxis.axisTicks.offsetX, y1 + w.config.xaxis.offsetY, x2 + w.config.xaxis.axisTicks.offsetX, y2 + w.config.xaxis.offsetY, w.config.xaxis.axisTicks.color); // we are not returning anything, but appending directly to the element pased in param + + appendToElement.add(line); + line.node.classList.add('apexcharts-xaxis-tick'); + } + } + }, { + key: "getXAxisTicksPositions", + value: function getXAxisTicksPositions() { + var w = this.w; + var xAxisTicksPositions = []; + var xCount = this.xaxisLabels.length; + var x1 = w.globals.padHorizontal; + + if (w.globals.timelineLabels.length > 0) { + for (var i = 0; i < xCount; i++) { + x1 = this.xaxisLabels[i].position; + xAxisTicksPositions.push(x1); + } + } else { + var xCountForCategoryCharts = xCount; + + for (var _i3 = 0; _i3 < xCountForCategoryCharts; _i3++) { + var x1Count = xCountForCategoryCharts; + + if (w.globals.isXNumeric && w.config.chart.type !== 'bar') { + x1Count -= 1; + } + + x1 = x1 + w.globals.gridWidth / x1Count; + xAxisTicksPositions.push(x1); + } + } + + return xAxisTicksPositions; + } // to rotate x-axis labels or to put ... for longer text in xaxis + + }, { + key: "xAxisLabelCorrections", + value: function xAxisLabelCorrections() { + var w = this.w; + var graphics = new Graphics(this.ctx); + var xAxis = w.globals.dom.baseEl.querySelector('.apexcharts-xaxis-texts-g'); + var xAxisTexts = w.globals.dom.baseEl.querySelectorAll('.apexcharts-xaxis-texts-g text'); + var yAxisTextsInversed = w.globals.dom.baseEl.querySelectorAll('.apexcharts-yaxis-inversed text'); + var xAxisTextsInversed = w.globals.dom.baseEl.querySelectorAll('.apexcharts-xaxis-inversed-texts-g text'); + + if (w.globals.rotateXLabels || w.config.xaxis.labels.rotateAlways) { + for (var xat = 0; xat < xAxisTexts.length; xat++) { + var textRotatingCenter = graphics.rotateAroundCenter(xAxisTexts[xat]); + textRotatingCenter.y = textRotatingCenter.y - 1; // + tickWidth/4; + + textRotatingCenter.x = textRotatingCenter.x + 1; + xAxisTexts[xat].setAttribute('transform', "rotate(".concat(w.config.xaxis.labels.rotate, " ").concat(textRotatingCenter.x, " ").concat(textRotatingCenter.y, ")")); + xAxisTexts[xat].setAttribute('text-anchor', "end"); + var offsetHeight = 10; + xAxis.setAttribute('transform', "translate(0, ".concat(-offsetHeight, ")")); + var tSpan = xAxisTexts[xat].childNodes; + + if (w.config.xaxis.labels.trim) { + graphics.placeTextWithEllipsis(tSpan[0], tSpan[0].textContent, w.config.xaxis.labels.maxHeight - 40); + } + } + } else { + var width = w.globals.gridWidth / w.globals.labels.length; + + for (var _xat = 0; _xat < xAxisTexts.length; _xat++) { + var _tSpan = xAxisTexts[_xat].childNodes; + + if (w.config.xaxis.labels.trim && w.config.chart.type !== 'bar' && w.config.plotOptions.bar.horizontal) { + graphics.placeTextWithEllipsis(_tSpan[0], _tSpan[0].textContent, width); + } + } + } + + if (yAxisTextsInversed.length > 0) { + // truncate rotated y axis in bar chart (x axis) + var firstLabelPosX = yAxisTextsInversed[yAxisTextsInversed.length - 1].getBBox(); + var lastLabelPosX = yAxisTextsInversed[0].getBBox(); + + if (firstLabelPosX.x < -20) { + yAxisTextsInversed[yAxisTextsInversed.length - 1].parentNode.removeChild(yAxisTextsInversed[yAxisTextsInversed.length - 1]); + } + + if (lastLabelPosX.x + lastLabelPosX.width > w.globals.gridWidth) { + yAxisTextsInversed[0].parentNode.removeChild(yAxisTextsInversed[0]); + } // truncate rotated x axis in bar chart (y axis) + + + for (var _xat2 = 0; _xat2 < xAxisTextsInversed.length; _xat2++) { + graphics.placeTextWithEllipsis(xAxisTextsInversed[_xat2], xAxisTextsInversed[_xat2].textContent, w.config.yaxis[0].labels.maxWidth - parseInt(w.config.yaxis[0].title.style.fontSize) * 2 - 20); + } + } + } // renderXAxisBands() { + // let w = this.w; + // let plotBand = document.createElementNS(w.globals.SVGNS, 'rect') + // w.globals.dom.elGraphical.add(plotBand) + // } + + }]); + + return XAxis; + }(); + + var Range = + /*#__PURE__*/ + function () { + function Range(ctx) { + _classCallCheck(this, Range); + + this.ctx = ctx; + this.w = ctx.w; + this.isBarHorizontal = !!(this.w.config.chart.type === 'bar' && this.w.config.plotOptions.bar.horizontal); + } // http://stackoverflow.com/questions/326679/choosing-an-attractive-linear-scale-for-a-graphs-y-axiss + // This routine creates the Y axis values for a graph. + + + _createClass(Range, [{ + key: "niceScale", + value: function niceScale(yMin, yMax) { + var index = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; + var ticks = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 10; + + if (yMin === Number.MIN_VALUE && yMax === 0 || !Utils.isNumber(yMin) && !Utils.isNumber(yMax) || yMin === Number.MIN_VALUE && yMax === -Number.MAX_VALUE) { + // when all values are 0 + yMin = 0; + yMax = ticks; + var linearScale = this.linearScale(yMin, yMax, ticks); + return linearScale; + } + + if (yMin > yMax) { + // if somehow due to some wrong config, user sent max less than min, + // adjust the min/max again + console.warn('yaxis.min cannot be greater than yaxis.max'); + yMax = yMin + 0.1; + } else if (yMin === yMax) { + // If yMin and yMax are identical, then + // adjust the yMin and yMax values to actually + // make a graph. Also avoids division by zero errors. + yMin = yMin === 0 ? 0 : yMin - 0.1; // some small value + + yMax = yMax === 0 ? 2 : yMax + 0.1; // some small value + } // Calculate Min amd Max graphical labels and graph + // increments. The number of ticks defaults to + // 10 which is the SUGGESTED value. Any tick value + // entered is used as a suggested value which is + // adjusted to be a 'pretty' value. + // + // Output will be an array of the Y axis values that + // encompass the Y values. + + + var result = []; // Determine Range + + var range = yMax - yMin; + var tiks = ticks + 1; // Adjust ticks if needed + + if (tiks < 2) { + tiks = 2; + } else if (tiks > 2) { + tiks -= 2; + } // Get raw step value + + + var tempStep = range / tiks; // Calculate pretty step value + + var mag = Math.floor(Utils.log10(tempStep)); + var magPow = Math.pow(10, mag); + var magMsd = parseInt(tempStep / magPow); + var stepSize = magMsd * magPow; // build Y label array. + // Lower and upper bounds calculations + + var lb = stepSize * Math.floor(yMin / stepSize); + var ub = stepSize * Math.ceil(yMax / stepSize); // Build array + + var val = lb; + + while (1) { + result.push(val); + val += stepSize; + + if (val > ub) { + break; + } + } // TODO: need to remove this condition below which makes this function tightly coupled with w. + + + if (this.w.config.yaxis[index].max === undefined && this.w.config.yaxis[index].min === undefined || this.w.config.yaxis[index].forceNiceScale) { + return { + result: result, + niceMin: result[0], + niceMax: result[result.length - 1] + }; + } else { + result = []; + var v = yMin; + result.push(v); + var valuesDivider = Math.abs(yMax - yMin) / ticks; + + for (var i = 0; i <= ticks - 1; i++) { + v = v + valuesDivider; + result.push(v); + } + + return { + result: result, + niceMin: result[0], + niceMax: result[result.length - 1] + }; + } + } + }, { + key: "linearScale", + value: function linearScale(yMin, yMax) { + var ticks = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10; + var range = Math.abs(yMax - yMin); + var step = range / ticks; + + if (ticks === Number.MAX_VALUE) { + ticks = 10; + step = 1; + } + + var result = []; + var v = yMin; + + while (ticks >= 0) { + result.push(v); + v = v + step; + ticks -= 1; + } + + return { + result: result, + niceMin: result[0], + niceMax: result[result.length - 1] + }; + } + }, { + key: "logarithmicScale", + value: function logarithmicScale(index, yMin, yMax, ticks) { + if (yMin < 0 || yMin === Number.MIN_VALUE) yMin = 0.01; + var base = 10; + var min = Math.log(yMin) / Math.log(base); + var max = Math.log(yMax) / Math.log(base); + var range = Math.abs(yMax - yMin); + var step = range / ticks; + var result = []; + var v = yMin; + + while (ticks >= 0) { + result.push(v); + v = v + step; + ticks -= 1; + } + + var logs = result.map(function (niceNumber, i) { + if (niceNumber <= 0) { + niceNumber = 0.01; + } // calculate adjustment factor + + + var scale = (max - min) / (yMax - yMin); + var logVal = Math.pow(base, min + scale * (niceNumber - min)); + return Math.round(logVal / Utils.roundToBase(logVal, base)) * Utils.roundToBase(logVal, base); + }); // Math.floor may have rounded the value to 0, revert back to 1 + + if (logs[0] === 0) logs[0] = 1; + return { + result: logs, + niceMin: logs[0], + niceMax: logs[logs.length - 1] + }; + } + }, { + key: "setYScaleForIndex", + value: function setYScaleForIndex(index, minY, maxY) { + var gl = this.w.globals; + var cnf = this.w.config; + var y = this.isBarHorizontal ? cnf.xaxis : cnf.yaxis[index]; + + if (typeof gl.yAxisScale[index] === 'undefined') { + gl.yAxisScale[index] = []; + } + + if (y.logarithmic) { + gl.allSeriesCollapsed = false; + gl.yAxisScale[index] = this.logarithmicScale(index, minY, maxY, y.tickAmount ? y.tickAmount : Math.floor(Math.log10(maxY))); + } else { + if (maxY === -Number.MAX_VALUE || !Utils.isNumber(maxY)) { + // no data in the chart. Either all series collapsed or user passed a blank array + gl.yAxisScale[index] = this.linearScale(0, 5, 5); + } else { + // there is some data. Turn off the allSeriesCollapsed flag + gl.allSeriesCollapsed = false; + gl.yAxisScale[index] = this.niceScale(minY, maxY, index, y.tickAmount ? y.tickAmount : 5); + } + } + } + }, { + key: "setMultipleYScales", + value: function setMultipleYScales() { + var _this = this; + + var gl = this.w.globals; + var cnf = this.w.config; + var minYArr = gl.minYArr.concat([]); + var maxYArr = gl.maxYArr.concat([]); + var scalesIndices = []; // here, we loop through the yaxis array and find the item which has "seriesName" property + + cnf.yaxis.forEach(function (yaxe, i) { + var index = i; + cnf.series.forEach(function (s, si) { + // if seriesName matches and that series is not collapsed, we use that scale + if (s.name === yaxe.seriesName && gl.collapsedSeriesIndices.indexOf(si) === -1) { + index = si; + + if (i !== si) { + scalesIndices.push({ + index: si, + similarIndex: i, + alreadyExists: true + }); + } else { + scalesIndices.push({ + index: si + }); + } + } + }); + var minY = minYArr[index]; + var maxY = maxYArr[index]; + + _this.setYScaleForIndex(i, minY, maxY); + }); + this.sameScaleInMultipleAxes(minYArr, maxYArr, scalesIndices); + } + }, { + key: "sameScaleInMultipleAxes", + value: function sameScaleInMultipleAxes(minYArr, maxYArr, scalesIndices) { + var _this2 = this; + + var cnf = this.w.config; + var gl = this.w.globals; // we got the scalesIndices array in the above code, but we need to filter out the items which doesn't have same scales + + var similarIndices = []; + scalesIndices.forEach(function (scale) { + if (scale.alreadyExists) { + if (typeof similarIndices[scale.index] === 'undefined') { + similarIndices[scale.index] = []; + } + + similarIndices[scale.index].push(scale.index); + similarIndices[scale.index].push(scale.similarIndex); + } + }); + + function intersect(a, b) { + return a.filter(function (value) { + return b.indexOf(value) !== -1; + }); + } + + similarIndices.forEach(function (si, i) { + similarIndices.forEach(function (sj, j) { + if (i !== j) { + if (intersect(si, sj).length > 0) { + similarIndices[i] = similarIndices[i].concat(similarIndices[j]); + } + } + }); + }); // then, we remove duplicates from the similarScale array + + var uniqueSimilarIndices = similarIndices.map(function (item) { + return item.filter(function (i, pos) { + return item.indexOf(i) === pos; + }); + }); // sort further to remove whole duplicate arrays later + + var sortedIndices = uniqueSimilarIndices.map(function (s) { + return s.sort(); + }); // remove undefined items + + similarIndices = similarIndices.filter(function (s) { + return !!s; + }); + var indices = sortedIndices.slice(); + var stringIndices = indices.map(function (ind) { + return JSON.stringify(ind); + }); + indices = indices.filter(function (ind, p) { + return stringIndices.indexOf(JSON.stringify(ind)) === p; + }); + var sameScaleMinYArr = []; + var sameScaleMaxYArr = []; + minYArr.forEach(function (minYValue, yi) { + indices.forEach(function (scale, i) { + // we compare only the yIndex which exists in the indices array + if (scale.indexOf(yi) > -1) { + if (typeof sameScaleMinYArr[i] === 'undefined') { + sameScaleMinYArr[i] = []; + sameScaleMaxYArr[i] = []; + } + + sameScaleMinYArr[i].push({ + key: yi, + value: minYValue + }); + sameScaleMaxYArr[i].push({ + key: yi, + value: maxYArr[yi] + }); + } + }); + }); + var sameScaleMin = Array.apply(null, Array(indices.length)).map(Number.prototype.valueOf, Number.MIN_VALUE); + var sameScaleMax = Array.apply(null, Array(indices.length)).map(Number.prototype.valueOf, -Number.MAX_VALUE); + sameScaleMinYArr.forEach(function (s, i) { + s.forEach(function (sc, j) { + sameScaleMin[i] = Math.min(sc.value, sameScaleMin[i]); + }); + }); + sameScaleMaxYArr.forEach(function (s, i) { + s.forEach(function (sc, j) { + sameScaleMax[i] = Math.max(sc.value, sameScaleMax[i]); + }); + }); + minYArr.forEach(function (min, i) { + sameScaleMaxYArr.forEach(function (s, si) { + var minY = sameScaleMin[si]; + var maxY = sameScaleMax[si]; + s.forEach(function (ind, k) { + if (s[k].key === i) { + if (cnf.yaxis[i].min !== undefined) { + if (typeof cnf.yaxis[i].min === 'function') { + minY = cnf.yaxis[i].min(gl.minY); + } else { + minY = cnf.yaxis[i].min; + } + } + + if (cnf.yaxis[i].max !== undefined) { + if (typeof cnf.yaxis[i].max === 'function') { + maxY = cnf.yaxis[i].max(gl.maxY); + } else { + maxY = cnf.yaxis[i].max; + } + } + + _this2.setYScaleForIndex(i, minY, maxY); + } + }); + }); + }); + } + }, { + key: "autoScaleY", + value: function autoScaleY(ctx, e) { + if (!ctx) { + ctx = this; + } + + var ret = []; + ctx.w.config.series.forEach(function (serie) { + var min, max; + var first = serie.data.find(function (x) { + return x[0] >= e.xaxis.min; + }); + var firstValue = first[1]; + max = min = firstValue; + serie.data.forEach(function (data) { + if (data[0] <= e.xaxis.max && data[0] >= e.xaxis.min) { + if (data[1] > max && data[1] !== null) max = data[1]; + if (data[1] < min && data[1] !== null) min = data[1]; + } + }); + min *= 0.95; + max *= 1.05; + ret.push({ + min: min, + max: max + }); + }); + return ret; + } + }]); + + return Range; + }(); + + /** + * Range is used to generates values between min and max. + * + * @module Range + **/ + + var Range$1 = + /*#__PURE__*/ + function () { + function Range$$1(ctx) { + _classCallCheck(this, Range$$1); + + this.ctx = ctx; + this.w = ctx.w; + this.isBarHorizontal = !!(this.w.config.chart.type === 'bar' && this.w.config.plotOptions.bar.horizontal); + this.scales = new Range(ctx); + } + + _createClass(Range$$1, [{ + key: "init", + value: function init() { + this.setYRange(); + this.setXRange(); + this.setZRange(); + } + }, { + key: "getMinYMaxY", + value: function getMinYMaxY(startingIndex) { + var lowestY = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Number.MAX_VALUE; + var highestY = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -Number.MAX_VALUE; + var len = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; + var gl = this.w.globals; + var maxY = -Number.MAX_VALUE; + var minY = Number.MIN_VALUE; + + if (len === null) { + len = startingIndex + 1; + } + + var series = gl.series; + var seriesMin = series; + var seriesMax = series; + + if (this.w.config.chart.type === 'candlestick') { + seriesMin = gl.seriesCandleL; + seriesMax = gl.seriesCandleH; + } + + for (var i = startingIndex; i < len; i++) { + gl.dataPoints = Math.max(gl.dataPoints, series[i].length); + + for (var j = 0; j < gl.series[i].length; j++) { + if (series[i][j] !== null && Utils.isNumber(series[i][j])) { + maxY = Math.max(maxY, seriesMax[i][j]); + lowestY = Math.min(lowestY, seriesMin[i][j]); + highestY = Math.max(highestY, seriesMin[i][j]); + + if (Utils.isFloat(series[i][j])) { + gl.yValueDecimal = Math.max(gl.yValueDecimal, series[i][j].toString().split('.')[1].length); + } + + if (minY > seriesMin[i][j] && seriesMin[i][j] < 0) { + minY = seriesMin[i][j]; + } + } else { + gl.hasNullValues = true; + } + } + } + + return { + minY: minY, + maxY: maxY, + lowestY: lowestY, + highestY: highestY + }; + } + }, { + key: "setYRange", + value: function setYRange() { + var gl = this.w.globals; + var cnf = this.w.config; + gl.maxY = -Number.MAX_VALUE; + gl.minY = Number.MIN_VALUE; + var lowestYInAllSeries = Number.MAX_VALUE; + + if (gl.isMultipleYAxis) { + // we need to get minY and maxY for multiple y axis + for (var i = 0; i < gl.series.length; i++) { + var minYMaxYArr = this.getMinYMaxY(i, lowestYInAllSeries, null, i + 1); + gl.minYArr.push(minYMaxYArr.minY); + gl.maxYArr.push(minYMaxYArr.maxY); + lowestYInAllSeries = minYMaxYArr.lowestY; + } + } // and then, get the minY and maxY from all series + + + var minYMaxY = this.getMinYMaxY(0, lowestYInAllSeries, null, gl.series.length); + gl.minY = minYMaxY.minY; + gl.maxY = minYMaxY.maxY; + lowestYInAllSeries = minYMaxY.lowestY; + + if (cnf.chart.stacked) { + // for stacked charts, we calculate each series's parallel values. i.e, series[0][j] + series[1][j] .... [series[i.length][j]] and get the max out of it + var stackedPoss = []; + var stackedNegs = []; + + for (var j = 0; j < gl.series[gl.maxValsInArrayIndex].length; j++) { + var poss = 0; + var negs = 0; + + for (var _i = 0; _i < gl.series.length; _i++) { + if (gl.series[_i][j] !== null && Utils.isNumber(gl.series[_i][j])) { + if (gl.series[_i][j] > 0) { + // 0.0001 fixes #185 when values are very small + poss = poss + parseFloat(gl.series[_i][j]) + 0.0001; + } else { + negs = negs + parseFloat(gl.series[_i][j]); + } + } + + if (_i === gl.series.length - 1) { + // push all the totals to the array for future use + stackedPoss.push(poss); + stackedNegs.push(negs); + } + } + } // get the max/min out of the added parallel values + + + for (var z = 0; z < stackedPoss.length; z++) { + gl.maxY = Math.max(gl.maxY, stackedPoss[z]); + gl.minY = Math.min(gl.minY, stackedNegs[z]); + } + } // if the numbers are too big, reduce the range + // for eg, if number is between 100000-110000, putting 0 as the lowest value is not so good idea. So change the gl.minY for line/area/candlesticks + + + if (cnf.chart.type === 'line' || cnf.chart.type === 'area' || cnf.chart.type === 'candlestick') { + if (gl.minY === Number.MIN_VALUE && lowestYInAllSeries !== -Number.MAX_VALUE) { + var diff = gl.maxY - lowestYInAllSeries; + + if (lowestYInAllSeries >= 0 && lowestYInAllSeries <= 10) { + // if minY is already 0/low value, we don't want to go negatives here - so this check is essential. + diff = 0; + } + + gl.minY = lowestYInAllSeries - diff * 5 / 100; + gl.maxY = gl.maxY + diff * 5 / 100 + 0.05; + } + } + + cnf.yaxis.map(function (yaxe, index) { + // override all min/max values by user defined values (y axis) + if (yaxe.max !== undefined) { + if (typeof yaxe.max === 'number') { + gl.maxYArr[index] = yaxe.max; + } else if (typeof yaxe.max === 'function') { + gl.maxYArr[index] = yaxe.max(gl.maxY); + } // gl.maxY is for single y-axis chart, it will be ignored in multi-yaxis + + + gl.maxY = gl.maxYArr[index]; + } + + if (yaxe.min !== undefined) { + if (typeof yaxe.min === 'number') { + gl.minYArr[index] = yaxe.min; + } else if (typeof yaxe.min === 'function') { + gl.minYArr[index] = yaxe.min(gl.minY); + } // gl.minY is for single y-axis chart, it will be ignored in multi-yaxis + + + gl.minY = gl.minYArr[index]; + } + }); // for horizontal bar charts, we need to check xaxis min/max as user may have specified there + + if (this.isBarHorizontal) { + if (cnf.xaxis.min !== undefined && typeof cnf.xaxis.min === 'number') { + gl.minY = cnf.xaxis.min; + } + + if (cnf.xaxis.max !== undefined && typeof cnf.xaxis.max === 'number') { + gl.maxY = cnf.xaxis.max; + } + } // for multi y-axis we need different scales for each + + + if (gl.isMultipleYAxis) { + this.scales.setMultipleYScales(); + gl.minY = lowestYInAllSeries; + gl.yAxisScale.forEach(function (scale, i) { + gl.minYArr[i] = scale.niceMin; + gl.maxYArr[i] = scale.niceMax; + }); + } else { + this.scales.setYScaleForIndex(0, gl.minY, gl.maxY); + gl.minY = gl.yAxisScale[0].niceMin; + gl.maxY = gl.yAxisScale[0].niceMax; + gl.minYArr[0] = gl.yAxisScale[0].niceMin; + gl.maxYArr[0] = gl.yAxisScale[0].niceMax; + } + } + }, { + key: "setXRange", + value: function setXRange() { + var gl = this.w.globals; + var cnf = this.w.config; + var isXNumeric = cnf.xaxis.type === 'numeric' || cnf.xaxis.type === 'datetime' || cnf.xaxis.type === 'category' && !gl.noLabelsProvided; // minX maxX starts here + + if (gl.isXNumeric) { + for (var i = 0; i < gl.series.length; i++) { + if (gl.labels[i]) { + for (var j = 0; j < gl.labels[i].length; j++) { + if (gl.labels[i][j] !== null && Utils.isNumber(gl.labels[i][j])) { + gl.maxX = Math.max(gl.maxX, gl.labels[i][j]); + gl.initialmaxX = Math.max(gl.maxX, gl.labels[i][j]); + gl.minX = Math.min(gl.minX, gl.labels[i][j]); + gl.initialminX = Math.min(gl.minX, gl.labels[i][j]); + } + } + } + } + } + + if (gl.noLabelsProvided) { + if (cnf.xaxis.categories.length === 0) { + gl.maxX = gl.labels[gl.labels.length - 1]; + gl.initialmaxX = gl.labels[gl.labels.length - 1]; + gl.minX = 1; + gl.initialminX = 1; + } + } // for numeric xaxis, we need to adjust some padding left and right for bar charts + + + if (gl.comboChartsHasBars || cnf.chart.type === 'candlestick' || cnf.chart.type === 'bar' && cnf.xaxis.type !== 'category') { + if (cnf.xaxis.type !== 'category') { + var minX = gl.minX - gl.svgWidth / gl.dataPoints * (Math.abs(gl.maxX - gl.minX) / gl.svgWidth) / 2; + gl.minX = minX; + gl.initialminX = minX; + var maxX = gl.maxX + gl.svgWidth / gl.dataPoints * (Math.abs(gl.maxX - gl.minX) / gl.svgWidth) / 2; + gl.maxX = maxX; + gl.initialmaxX = maxX; + } + } + + if (gl.isXNumeric || gl.noLabelsProvided) { + var ticks; + + if (cnf.xaxis.tickAmount === undefined) { + ticks = Math.round(gl.svgWidth / 150); // no labels provided and total number of dataPoints is less than 20 + + if (cnf.xaxis.type === 'numeric' && gl.dataPoints < 20) { + ticks = gl.dataPoints - 1; + } // this check is for when ticks exceeds total datapoints and that would result in duplicate labels + + + if (ticks > gl.dataPoints && gl.dataPoints !== 0) { + ticks = gl.dataPoints - 1; + } + } else if (cnf.xaxis.tickAmount === 'dataPoints') { + ticks = gl.series[gl.maxValsInArrayIndex].length - 1; + } else { + ticks = cnf.xaxis.tickAmount; + } // override all min/max values by user defined values (x axis) + + + if (cnf.xaxis.max !== undefined && typeof cnf.xaxis.max === 'number') { + gl.maxX = cnf.xaxis.max; + } + + if (cnf.xaxis.min !== undefined && typeof cnf.xaxis.min === 'number') { + gl.minX = cnf.xaxis.min; + } // if range is provided, adjust the new minX + + + if (cnf.xaxis.range !== undefined) { + gl.minX = gl.maxX - cnf.xaxis.range; + } + + if (gl.minX !== Number.MAX_VALUE && gl.maxX !== -Number.MAX_VALUE) { + gl.xAxisScale = this.scales.linearScale(gl.minX, gl.maxX, ticks); + } else { + gl.xAxisScale = this.scales.linearScale(1, ticks, ticks); + + if (gl.noLabelsProvided && gl.labels.length > 0) { + gl.xAxisScale = this.scales.linearScale(1, gl.labels.length, ticks - 1); + gl.seriesX = gl.labels.slice(); + } + } // we will still store these labels as the count for this will be different (to draw grid and labels placement) + + + if (isXNumeric) { + gl.labels = gl.xAxisScale.result.slice(); + } + } + + if (gl.minX === gl.maxX) { + // single dataPoint + if (cnf.xaxis.type === 'datetime') { + var newMinX = new Date(gl.minX); + newMinX.setDate(newMinX.getDate() - 2); + gl.minX = new Date(newMinX).getTime(); + var newMaxX = new Date(gl.maxX); + newMaxX.setDate(newMaxX.getDate() + 2); + gl.maxX = new Date(newMaxX).getTime(); + } else if (cnf.xaxis.type === 'numeric' || cnf.xaxis.type === 'category' && !gl.noLabelsProvided) { + gl.minX = gl.minX - 2; + gl.maxX = gl.maxX + 2; + } + } + } + }, { + key: "setZRange", + value: function setZRange() { + var gl = this.w.globals; // minZ, maxZ starts here + + if (gl.isDataXYZ) { + for (var i = 0; i < gl.series.length; i++) { + if (typeof gl.seriesZ[i] !== 'undefined') { + for (var j = 0; j < gl.seriesZ[i].length; j++) { + if (gl.seriesZ[i][j] !== null && Utils.isNumber(gl.seriesZ[i][j])) { + gl.maxZ = Math.max(gl.maxZ, gl.seriesZ[i][j]); + gl.minZ = Math.min(gl.minZ, gl.seriesZ[i][j]); + } + } + } + } + } + } + }]); + + return Range$$1; + }(); + + /** + * ApexCharts Series Class for interation with the Series of the chart. + * + * @module Series + **/ + + var Series = + /*#__PURE__*/ + function () { + function Series(ctx) { + _classCallCheck(this, Series); + + this.ctx = ctx; + this.w = ctx.w; + } + + _createClass(Series, [{ + key: "getAllSeriesEls", + value: function getAllSeriesEls() { + return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series"); + } + }, { + key: "getSeriesByName", + value: function getSeriesByName(seriesName) { + return this.w.globals.dom.baseEl.querySelector(".apexcharts-series.".concat(Utils.escapeString(seriesName))); + } + }, { + key: "addCollapsedClassToSeries", + value: function addCollapsedClassToSeries(elSeries, index) { + var w = this.w; + + for (var cs = 0; cs < w.globals.collapsedSeries.length; cs++) { + if (w.globals.collapsedSeries[cs].index === index) { + elSeries.node.classList.add('apexcharts-series-collapsed'); + } + } + } + }, { + key: "toggleSeriesOnHover", + value: function toggleSeriesOnHover(e, targetElement) { + var w = this.w; + var allSeriesEls = w.globals.dom.baseEl.querySelectorAll(".apexcharts-series"); + + if (e.type === 'mousemove') { + var seriesCnt = parseInt(targetElement.getAttribute('rel')) - 1; + var seriesEl = null; + + if (w.globals.axisCharts || w.config.chart.type === 'radialBar') { + if (w.globals.axisCharts) { + seriesEl = w.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(seriesCnt, "']")); + } else { + seriesEl = w.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(seriesCnt + 1, "']")); + } + } else { + seriesEl = w.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(seriesCnt + 1, "'] path")); + } + + for (var se = 0; se < allSeriesEls.length; se++) { + allSeriesEls[se].classList.add('legend-mouseover-inactive'); + } + + if (seriesEl !== null) { + if (!w.globals.axisCharts) { + seriesEl.parentNode.classList.remove('legend-mouseover-inactive'); + } + + seriesEl.classList.remove('legend-mouseover-inactive'); + } + } else if (e.type === 'mouseout') { + for (var _se = 0; _se < allSeriesEls.length; _se++) { + allSeriesEls[_se].classList.remove('legend-mouseover-inactive'); + } + } + } + }, { + key: "highlightRangeInSeries", + value: function highlightRangeInSeries(e, targetElement) { + var w = this.w; + var allHeatMapElements = w.globals.dom.baseEl.querySelectorAll('.apexcharts-heatmap-rect'); + + var allActive = function allActive() { + for (var i = 0; i < allHeatMapElements.length; i++) { + allHeatMapElements[i].classList.remove('legend-mouseover-inactive'); + } + }; + + var allInactive = function allInactive() { + for (var i = 0; i < allHeatMapElements.length; i++) { + allHeatMapElements[i].classList.add('legend-mouseover-inactive'); + } + }; + + var selectedActive = function selectedActive(range) { + for (var i = 0; i < allHeatMapElements.length; i++) { + var val = parseInt(allHeatMapElements[i].getAttribute('val')); + + if (val >= range.from && val <= range.to) { + allHeatMapElements[i].classList.remove('legend-mouseover-inactive'); + } + } + }; + + if (e.type === 'mousemove') { + var seriesCnt = parseInt(targetElement.getAttribute('rel')) - 1; + allActive(); + allInactive(); + var range = w.config.plotOptions.heatmap.colorScale.ranges[seriesCnt]; + selectedActive(range); + } else if (e.type === 'mouseout') { + allActive(); + } + } + }, { + key: "getActiveSeriesIndex", + value: function getActiveSeriesIndex() { + var w = this.w; + var activeIndex = 0; + + if (w.globals.series.length > 1) { + // active series flag is required to know if user has not deactivated via legend click + var firstActiveSeriesIndex = w.globals.series.map(function (series, index) { + if (series.length > 0 && w.config.series[index].type !== 'bar' && w.config.series[index].type !== 'column') { + return index; + } else { + return -1; + } + }); + + for (var a = 0; a < firstActiveSeriesIndex.length; a++) { + if (firstActiveSeriesIndex[a] !== -1) { + activeIndex = firstActiveSeriesIndex[a]; + break; + } + } + } + + return activeIndex; + } + }, { + key: "getActiveConfigSeriesIndex", + value: function getActiveConfigSeriesIndex() { + var w = this.w; + var activeIndex = 0; + + if (w.config.series.length > 1) { + // active series flag is required to know if user has not deactivated via legend click + var firstActiveSeriesIndex = w.config.series.map(function (series, index) { + if (series.data && series.data.length > 0) { + return index; + } else { + return -1; + } + }); + + for (var a = 0; a < firstActiveSeriesIndex.length; a++) { + if (firstActiveSeriesIndex[a] !== -1) { + activeIndex = firstActiveSeriesIndex[a]; + break; + } + } + } + + return activeIndex; + } + }, { + key: "getPreviousPaths", + value: function getPreviousPaths() { + var w = this.w; + w.globals.previousPaths = []; + + function pushPaths(seriesEls, i, type) { + var paths = seriesEls[i].childNodes; + var dArr = { + type: type, + paths: [], + realIndex: seriesEls[i].getAttribute('data:realIndex') + }; + + for (var j = 0; j < paths.length; j++) { + if (paths[j].hasAttribute('pathTo')) { + var d = paths[j].getAttribute('pathTo'); + dArr.paths.push({ + d: d + }); + } + } + + w.globals.previousPaths.push(dArr); + } + + var linePaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-line-series .apexcharts-series'); + + if (linePaths.length > 0) { + for (var p = linePaths.length - 1; p >= 0; p--) { + pushPaths(linePaths, p, 'line'); + } + } + + var areapaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-area-series .apexcharts-series'); + + if (areapaths.length > 0) { + for (var i = areapaths.length - 1; i >= 0; i--) { + pushPaths(areapaths, i, 'area'); + } + } + + var barPaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-bar-series .apexcharts-series'); + + if (barPaths.length > 0) { + for (var _p = 0; _p < barPaths.length; _p++) { + pushPaths(barPaths, _p, 'bar'); + } + } + + var candlestickPaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-candlestick-series .apexcharts-series'); + + if (candlestickPaths.length > 0) { + for (var _p2 = 0; _p2 < candlestickPaths.length; _p2++) { + pushPaths(candlestickPaths, _p2, 'candlestick'); + } + } + + var radarPaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-radar-series .apexcharts-series'); + + if (radarPaths.length > 0) { + for (var _p3 = 0; _p3 < radarPaths.length; _p3++) { + pushPaths(radarPaths, _p3, 'radar'); + } + } + + var bubblepaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-bubble-series .apexcharts-series'); + + if (bubblepaths.length > 0) { + for (var s = 0; s < bubblepaths.length; s++) { + var seriesEls = w.globals.dom.baseEl.querySelectorAll(".apexcharts-bubble-series .apexcharts-series[data\\:realIndex='".concat(s, "'] circle")); + var dArr = []; + + for (var _i = 0; _i < seriesEls.length; _i++) { + dArr.push({ + x: seriesEls[_i].getAttribute('cx'), + y: seriesEls[_i].getAttribute('cy'), + r: seriesEls[_i].getAttribute('r') + }); + } + + w.globals.previousPaths.push(dArr); + } + } + + var scatterpaths = w.globals.dom.baseEl.querySelectorAll('.apexcharts-scatter-series .apexcharts-series'); + + if (scatterpaths.length > 0) { + for (var _s = 0; _s < scatterpaths.length; _s++) { + var _seriesEls = w.globals.dom.baseEl.querySelectorAll(".apexcharts-scatter-series .apexcharts-series[data\\:realIndex='".concat(_s, "'] circle")); + + var _dArr = []; + + for (var _i2 = 0; _i2 < _seriesEls.length; _i2++) { + _dArr.push({ + x: _seriesEls[_i2].getAttribute('cx'), + y: _seriesEls[_i2].getAttribute('cy'), + r: _seriesEls[_i2].getAttribute('r') + }); + } + + w.globals.previousPaths.push(_dArr); + } + } + + var heatmapColors = w.globals.dom.baseEl.querySelectorAll('.apexcharts-heatmap .apexcharts-series'); + + if (heatmapColors.length > 0) { + for (var h = 0; h < heatmapColors.length; h++) { + var _seriesEls2 = w.globals.dom.baseEl.querySelectorAll(".apexcharts-heatmap .apexcharts-series[data\\:realIndex='".concat(h, "'] rect")); + + var _dArr2 = []; + + for (var _i3 = 0; _i3 < _seriesEls2.length; _i3++) { + _dArr2.push({ + color: _seriesEls2[_i3].getAttribute('color') + }); + } + + w.globals.previousPaths.push(_dArr2); + } + } + + if (!w.globals.axisCharts) { + // for non-axis charts (i.e., circular charts, pathFrom is not usable. We need whole series) + w.globals.previousPaths = w.globals.series; + } + } + }, { + key: "handleNoData", + value: function handleNoData() { + var w = this.w; + var me = this; + var noDataOpts = w.config.noData; + var graphics = new Graphics(me.ctx); + var x = w.globals.svgWidth / 2; + var y = w.globals.svgHeight / 2; + var textAnchor = 'middle'; + w.globals.noData = true; + w.globals.animationEnded = true; + + if (noDataOpts.align === 'left') { + x = 10; + textAnchor = 'start'; + } else if (noDataOpts.align === 'right') { + x = w.globals.svgWidth - 10; + textAnchor = 'end'; + } + + if (noDataOpts.verticalAlign === 'top') { + y = 50; + } else if (noDataOpts.verticalAlign === 'bottom') { + y = w.globals.svgHeight - 50; + } + + x = x + noDataOpts.offsetX; + y = y + parseInt(noDataOpts.style.fontSize) + 2; + + if (noDataOpts.text !== undefined && noDataOpts.text !== '') { + var titleText = graphics.drawText({ + x: x, + y: y, + text: noDataOpts.text, + textAnchor: textAnchor, + fontSize: noDataOpts.style.fontSize, + fontFamily: noDataOpts.style.fontFamily, + foreColor: noDataOpts.style.color, + opacity: 1, + class: 'apexcharts-text-nodata' + }); + titleText.node.setAttribute('class', 'apexcharts-title-text'); + w.globals.dom.Paper.add(titleText); + } + } // When user clicks on legends, the collapsed series is filled with [0,0,0,...,0] + // This is because we don't want to alter the series' length as it is used at many places + + }, { + key: "setNullSeriesToZeroValues", + value: function setNullSeriesToZeroValues(series) { + var w = this.w; + + for (var sl = 0; sl < series.length; sl++) { + if (series[sl].length === 0) { + for (var j = 0; j < series[w.globals.maxValsInArrayIndex].length; j++) { + series[sl].push(0); + } + } + } + + return series; + } + }, { + key: "hasAllSeriesEqualX", + value: function hasAllSeriesEqualX() { + var equalLen = true; + var w = this.w; + var filteredSerX = this.filteredSeriesX(); + + for (var i = 0; i < filteredSerX.length - 1; i++) { + if (filteredSerX[i][0] !== filteredSerX[i + 1][0]) { + equalLen = false; + break; + } + } + + w.globals.allSeriesHasEqualX = equalLen; + return equalLen; + } + }, { + key: "filteredSeriesX", + value: function filteredSeriesX() { + var w = this.w; + var filteredSeriesX = w.globals.seriesX.map(function (ser, index) { + if (ser.length > 0) { + return ser; + } else { + return []; + } + }); + return filteredSeriesX; + } + }]); + + return Series; + }(); + + /** + * ApexCharts Dimensions Class for calculating rects of all elements that are drawn and will be drawn. + * + * @module Dimensions + **/ + + var Dimensions = + /*#__PURE__*/ + function () { + function Dimensions(ctx) { + _classCallCheck(this, Dimensions); + + this.ctx = ctx; + this.w = ctx.w; + this.lgRect = {}; + this.yAxisWidth = 0; + this.xAxisHeight = 0; + this.isSparkline = this.w.config.chart.sparkline.enabled; + this.xPadRight = 0; + this.xPadLeft = 0; + this.isBarHorizontal = !!(this.w.config.chart.type === 'bar' && this.w.config.plotOptions.bar.horizontal); + } + /** + * @memberof Dimensions + * @param {object} w - chart context + **/ + + + _createClass(Dimensions, [{ + key: "plotCoords", + value: function plotCoords() { + var w = this.w; + var gl = w.globals; + var lgRect = this.getLegendsRect(); + + if (gl.axisCharts) { + // for line / area / scatter / column + this.setGridCoordsForAxisCharts(lgRect); + } else { + // for pie / donuts / circle + this.setGridCoordsForNonAxisCharts(lgRect); + } + + this.titleSubtitleOffset(); // after calculating everything, apply padding set by user + + gl.gridHeight = gl.gridHeight - w.config.grid.padding.top - w.config.grid.padding.bottom; + gl.gridWidth = gl.gridWidth - w.config.grid.padding.left - w.config.grid.padding.right - this.xPadRight - this.xPadLeft; + gl.translateX = gl.translateX + w.config.grid.padding.left + this.xPadLeft; + gl.translateY = gl.translateY + w.config.grid.padding.top; + } + }, { + key: "conditionalChecksForAxisCoords", + value: function conditionalChecksForAxisCoords(xaxisLabelCoords, xtitleCoords) { + var w = this.w; + this.xAxisHeight = (xaxisLabelCoords.height + xtitleCoords.height) * w.globals.LINE_HEIGHT_RATIO + 15; + this.xAxisWidth = xaxisLabelCoords.width; + + if (this.xAxisHeight - xtitleCoords.height > w.config.xaxis.labels.maxHeight) { + this.xAxisHeight = w.config.xaxis.labels.maxHeight; + } + + if (w.config.xaxis.labels.minHeight && this.xAxisHeight < w.config.xaxis.labels.minHeight) { + this.xAxisHeight = w.config.xaxis.labels.minHeight; + } + + if (w.config.xaxis.floating) { + this.xAxisHeight = 0; + } + + if (!this.isBarHorizontal) { + this.yAxisWidth = this.getTotalYAxisWidth(); + } else { + this.yAxisWidth = w.globals.yLabelsCoords[0].width + w.globals.yTitleCoords[0].width + 15; + } + + if (!w.globals.isMultipleYAxis) { + if (this.yAxisWidth < w.config.yaxis[0].labels.minWidth) { + this.yAxisWidth = w.config.yaxis[0].labels.minWidth; + } + + if (this.yAxisWidth > w.config.yaxis[0].labels.maxWidth) { + this.yAxisWidth = w.config.yaxis[0].labels.maxWidth; + } + } + } + }, { + key: "setGridCoordsForAxisCharts", + value: function setGridCoordsForAxisCharts(lgRect) { + var w = this.w; + var gl = w.globals; + var yaxisLabelCoords = this.getyAxisLabelsCoords(); + var xaxisLabelCoords = this.getxAxisLabelsCoords(); + var yTitleCoords = this.getyAxisTitleCoords(); + var xtitleCoords = this.getxAxisTitleCoords(); + w.globals.yLabelsCoords = []; + w.globals.yTitleCoords = []; + w.config.yaxis.map(function (yaxe, index) { + // store the labels and titles coords in global vars + w.globals.yLabelsCoords.push({ + width: yaxisLabelCoords[index].width, + index: index + }); + w.globals.yTitleCoords.push({ + width: yTitleCoords[index].width, + index: index + }); + }); + this.conditionalChecksForAxisCoords(xaxisLabelCoords, xtitleCoords); + gl.translateXAxisY = w.globals.rotateXLabels ? this.xAxisHeight / 8 : -4; + gl.translateXAxisX = w.globals.rotateXLabels && w.globals.isXNumeric && w.config.xaxis.labels.rotate <= -45 ? -this.xAxisWidth / 4 : 0; + + if (this.isBarHorizontal) { + gl.rotateXLabels = false; + gl.translateXAxisY = -1 * (parseInt(w.config.xaxis.labels.style.fontSize) / 1.5); + } + + gl.translateXAxisY = gl.translateXAxisY + w.config.xaxis.labels.offsetY; + gl.translateXAxisX = gl.translateXAxisX + w.config.xaxis.labels.offsetX; + var yAxisWidth = this.yAxisWidth; + var xAxisHeight = this.xAxisHeight; + gl.xAxisLabelsHeight = this.xAxisHeight; + gl.xAxisHeight = this.xAxisHeight; + var translateY = 10; + + if (!w.config.grid.show || w.config.chart.type === 'radar') { + yAxisWidth = 0; + xAxisHeight = 35; + } + + if (this.isSparkline) { + lgRect = { + height: 0, + width: 0 + }; + xAxisHeight = 0; + yAxisWidth = 0; + translateY = 0; + } + + this.additionalPaddingXLabels(xaxisLabelCoords); + + switch (w.config.legend.position) { + case 'bottom': + gl.translateY = translateY; + gl.translateX = yAxisWidth; + gl.gridHeight = gl.svgHeight - lgRect.height - xAxisHeight - (!this.isSparkline ? w.globals.rotateXLabels ? 10 : 15 : 0); + gl.gridWidth = gl.svgWidth - yAxisWidth; + break; + + case 'top': + gl.translateY = lgRect.height + translateY; + gl.translateX = yAxisWidth; + gl.gridHeight = gl.svgHeight - lgRect.height - xAxisHeight - (!this.isSparkline ? w.globals.rotateXLabels ? 10 : 15 : 0); + gl.gridWidth = gl.svgWidth - yAxisWidth; + break; + + case 'left': + gl.translateY = translateY; + gl.translateX = lgRect.width + yAxisWidth; + gl.gridHeight = gl.svgHeight - xAxisHeight - 12; + gl.gridWidth = gl.svgWidth - lgRect.width - yAxisWidth; + break; + + case 'right': + gl.translateY = translateY; + gl.translateX = yAxisWidth; + gl.gridHeight = gl.svgHeight - xAxisHeight - 12; + gl.gridWidth = gl.svgWidth - lgRect.width - yAxisWidth - 5; + break; + + default: + throw new Error('Legend position not supported'); + } + + this.setGridXPosForDualYAxis(yTitleCoords, yaxisLabelCoords); // after drawing everything, set the Y axis positions + + var objyAxis = new YAxis(this.ctx); + objyAxis.setYAxisXPosition(yaxisLabelCoords, yTitleCoords); + } + }, { + key: "setGridCoordsForNonAxisCharts", + value: function setGridCoordsForNonAxisCharts(lgRect) { + var w = this.w; + var gl = w.globals; + var xPad = 0; + + if (w.config.legend.show && !w.config.legend.floating) { + xPad = 20; + } + + var offY = 10; + var offX = 0; + + if (w.config.chart.type === 'pie' || w.config.chart.type === 'donut') { + offY = offY + w.config.plotOptions.pie.offsetY; + offX = offX + w.config.plotOptions.pie.offsetX; + } else if (w.config.chart.type === 'radialBar') { + offY = offY + w.config.plotOptions.radialBar.offsetY; + offX = offX + w.config.plotOptions.radialBar.offsetX; + } + + if (!w.config.legend.show) { + gl.gridHeight = gl.svgHeight - 35; + gl.gridWidth = gl.gridHeight; + gl.translateY = offY - 10; + gl.translateX = offX + (gl.svgWidth - gl.gridWidth) / 2; + return; + } + + switch (w.config.legend.position) { + case 'bottom': + gl.gridHeight = gl.svgHeight - lgRect.height - 35; + gl.gridWidth = gl.gridHeight; + gl.translateY = offY - 20; + gl.translateX = offX + (gl.svgWidth - gl.gridWidth) / 2; + break; + + case 'top': + gl.gridHeight = gl.svgHeight - lgRect.height - 35; + gl.gridWidth = gl.gridHeight; + gl.translateY = lgRect.height + offY; + gl.translateX = offX + (gl.svgWidth - gl.gridWidth) / 2; + break; + + case 'left': + gl.gridWidth = gl.svgWidth - lgRect.width - xPad; + gl.gridHeight = gl.gridWidth; + gl.translateY = offY; + gl.translateX = offX + lgRect.width + xPad; + break; + + case 'right': + gl.gridWidth = gl.svgWidth - lgRect.width - xPad - 5; + gl.gridHeight = gl.gridWidth; + gl.translateY = offY; + gl.translateX = offX + 10; + break; + + default: + throw new Error('Legend position not supported'); + } + } + }, { + key: "setGridXPosForDualYAxis", + value: function setGridXPosForDualYAxis(yTitleCoords, yaxisLabelCoords) { + var w = this.w; + w.config.yaxis.map(function (yaxe, index) { + if (w.globals.ignoreYAxisIndexes.indexOf(index) === -1 && !w.config.yaxis[index].floating && w.config.yaxis[index].show) { + if (yaxe.opposite) { + w.globals.translateX = w.globals.translateX - (yaxisLabelCoords[index].width + yTitleCoords[index].width) - parseInt(w.config.yaxis[index].labels.style.fontSize) / 1.2 - 12; + } + } + }); + } // Sometimes, the last labels gets cropped in category/numeric xaxis. + // Hence, we add some additional padding based on the label length to avoid the last label being cropped. + // NOTE: datetime x-axis won't have any effect with this as we don't know the label length there due to many constraints. + + }, { + key: "additionalPaddingXLabels", + value: function additionalPaddingXLabels(xaxisLabelCoords) { + var _this = this; + + var w = this.w; + + if (w.config.xaxis.type === 'category' && this.isBarHorizontal || w.config.xaxis.type === 'numeric') { + var rightPad = function rightPad(labels) { + if (w.config.grid.padding.right < labels.width) { + _this.xPadRight = labels.width / 2 + 1; + } + }; + + var leftPad = function leftPad(labels) { + if (w.config.grid.padding.left < labels.width) { + _this.xPadLeft = labels.width / 2 + 1; + } + }; + + var lineArea = w.config.chart.type === 'line' || w.config.chart.type === 'area'; + w.config.yaxis.forEach(function (yaxe, i) { + var shouldPad = !yaxe.show || yaxe.floating || w.globals.collapsedSeriesIndices.indexOf(i) !== -1 || lineArea || yaxe.opposite && _this.isBarHorizontal; + + if (shouldPad) { + if (lineArea && w.globals.isMultipleYAxis && w.globals.collapsedSeriesIndices.indexOf(i) !== -1 || _this.isBarHorizontal && yaxe.opposite) { + leftPad(xaxisLabelCoords); + } + + if (!_this.isBarHorizontal && yaxe.opposite && w.globals.collapsedSeriesIndices.indexOf(i) !== -1 || lineArea && !w.globals.isMultipleYAxis) { + rightPad(xaxisLabelCoords); + } + } + }); + } + } + }, { + key: "titleSubtitleOffset", + value: function titleSubtitleOffset() { + var w = this.w; + var gl = w.globals; + var gridShrinkOffset = this.isSparkline ? 0 : 10; + + if (w.config.title.text !== undefined) { + gridShrinkOffset += w.config.title.margin; + } else { + gridShrinkOffset += this.isSparkline ? 0 : 5; + } + + if (w.config.subtitle.text !== undefined) { + gridShrinkOffset += w.config.subtitle.margin; + } else { + gridShrinkOffset += this.isSparkline ? 0 : 5; + } + + if (w.config.legend.show && w.config.legend.position === 'bottom' && !w.config.legend.floating && w.config.series.length > 1) { + gridShrinkOffset += 10; + } + + var titleCoords = this.getTitleSubtitleCoords('title'); + var subtitleCoords = this.getTitleSubtitleCoords('subtitle'); + gl.gridHeight = gl.gridHeight - titleCoords.height - subtitleCoords.height - gridShrinkOffset; + gl.translateY = gl.translateY + titleCoords.height + subtitleCoords.height + gridShrinkOffset; + } + }, { + key: "getTotalYAxisWidth", + value: function getTotalYAxisWidth() { + var w = this.w; + var yAxisWidth = 0; + var padding = 10; + + var isHiddenYAxis = function isHiddenYAxis(index) { + return w.globals.ignoreYAxisIndexes.indexOf(index) > -1; + }; + + w.globals.yLabelsCoords.map(function (yLabelCoord, index) { + var floating = w.config.yaxis[index].floating; + + if (yLabelCoord.width > 0 && !floating) { + yAxisWidth = yAxisWidth + yLabelCoord.width + padding; + + if (isHiddenYAxis(index)) { + yAxisWidth = yAxisWidth - yLabelCoord.width - padding; + } + } else { + yAxisWidth = yAxisWidth + (floating || !w.config.yaxis[index].show ? 0 : 5); + } + }); + w.globals.yTitleCoords.map(function (yTitleCoord, index) { + var floating = w.config.yaxis[index].floating; + padding = parseInt(w.config.yaxis[index].title.style.fontSize); + + if (yTitleCoord.width > 0 && !floating) { + yAxisWidth = yAxisWidth + yTitleCoord.width + padding; + + if (isHiddenYAxis(index)) { + yAxisWidth = yAxisWidth - yTitleCoord.width - padding; + } + } else { + yAxisWidth = yAxisWidth + (floating || !w.config.yaxis[index].show ? 0 : 5); + } + }); + return yAxisWidth; + } + }, { + key: "getxAxisTimeScaleLabelsCoords", + value: function getxAxisTimeScaleLabelsCoords() { + var w = this.w; + var rect; + var timescaleLabels = w.globals.timelineLabels.slice(); + var labels = timescaleLabels.map(function (label) { + return label.value; + }); // get the longest string from the labels array and also apply label formatter to it + + var val = labels.reduce(function (a, b) { + // if undefined, maybe user didn't pass the datetime(x) values + if (typeof a === 'undefined') { + console.error('You have possibly supplied invalid Date format. Please supply a valid JavaScript Date'); + return 0; + } else { + return a.length > b.length ? a : b; + } + }, 0); + var graphics = new Graphics(this.ctx); + rect = graphics.getTextRects(val, w.config.xaxis.labels.style.fontSize); + var totalWidthRotated = rect.width * 1.05 * labels.length; + + if (totalWidthRotated > w.globals.gridWidth && w.config.xaxis.labels.rotate !== 0) { + w.globals.overlappingXLabels = true; + } + + return rect; + } + /** + * Get X Axis Dimensions + * @memberof Dimensions + * @return {{width, height}} + **/ + + }, { + key: "getxAxisLabelsCoords", + value: function getxAxisLabelsCoords() { + var w = this.w; + var xaxisLabels = w.globals.labels.slice(); + var rect; + + if (w.globals.timelineLabels.length > 0) { + var coords = this.getxAxisTimeScaleLabelsCoords(); + rect = { + width: coords.width, + height: coords.height + }; + } else { + var lgWidthForSideLegends = w.config.legend.position === 'left' && w.config.legend.position === 'right' && !w.config.legend.floating ? this.lgRect.width : 0; // get the longest string from the labels array and also apply label formatter to it + + var val = xaxisLabels.reduce(function (a, b) { + return a.length > b.length ? a : b; + }, 0); // the labels gets changed for bar charts + + if (this.isBarHorizontal) { + val = w.globals.yAxisScale[0].result.reduce(function (a, b) { + return a.length > b.length ? a : b; + }, 0); + } + + var xlbFormatter = w.globals.xLabelFormatter; + var xFormat = new Formatters(this.ctx); + val = xFormat.xLabelFormat(xlbFormatter, val); + var graphics = new Graphics(this.ctx); + var xLabelrect = graphics.getTextRects(val, w.config.xaxis.labels.style.fontSize); + rect = { + width: xLabelrect.width, + height: xLabelrect.height + }; + + if (rect.width * xaxisLabels.length > w.globals.svgWidth - lgWidthForSideLegends - this.yAxisWidth && w.config.xaxis.labels.rotate !== 0) { + if (!this.isBarHorizontal) { + w.globals.rotateXLabels = true; + xLabelrect = graphics.getTextRects(val, w.config.xaxis.labels.style.fontSize, w.config.xaxis.labels.style.fontFamily, "rotate(".concat(w.config.xaxis.labels.rotate, " 0 0)"), false); + rect.height = xLabelrect.height / 1.66; + } + } else { + w.globals.rotateXLabels = false; + } + } + + if (!w.config.xaxis.labels.show) { + rect = { + width: 0, + height: 0 + }; + } + + return { + width: rect.width, + height: rect.height + }; + } + /** + * Get Y Axis Dimensions + * @memberof Dimensions + * @return {{width, height}} + **/ + + }, { + key: "getyAxisLabelsCoords", + value: function getyAxisLabelsCoords() { + var _this2 = this; + + var w = this.w; + var width = 0; + var height = 0; + var ret = []; + var labelPad = 10; + w.config.yaxis.map(function (yaxe, index) { + if (yaxe.show && yaxe.labels.show && w.globals.yAxisScale[index].result.length) { + var lbFormatter = w.globals.yLabelFormatters[index]; // the second parameter -1 is the index of tick which user can use in the formatter + + var val = lbFormatter(w.globals.yAxisScale[index].niceMax, -1); // if user has specified a custom formatter, and the result is null or empty, we need to discard the formatter and take the value as it is. + + if (typeof val === 'undefined' || val.length === 0) { + val = w.globals.yAxisScale[index].niceMax; + } + + if (_this2.isBarHorizontal) { + labelPad = 0; + var barYaxisLabels = w.globals.labels.slice(); // get the longest string from the labels array and also apply label formatter to it + + val = barYaxisLabels.reduce(function (a, b) { + return a.length > b.length ? a : b; + }, 0); + val = lbFormatter(val, -1); + } + + var graphics = new Graphics(_this2.ctx); + var rect = graphics.getTextRects(val, yaxe.labels.style.fontSize); + ret.push({ + width: rect.width + labelPad, + height: rect.height + }); + } else { + ret.push({ + width: width, + height: height + }); + } + }); + return ret; + } + /** + * Get X Axis Title Dimensions + * @memberof Dimensions + * @return {{width, height}} + **/ + + }, { + key: "getxAxisTitleCoords", + value: function getxAxisTitleCoords() { + var w = this.w; + var width = 0; + var height = 0; + + if (w.config.xaxis.title.text !== undefined) { + var graphics = new Graphics(this.ctx); + var rect = graphics.getTextRects(w.config.xaxis.title.text, w.config.xaxis.title.style.fontSize); + width = rect.width; + height = rect.height; + } + + return { + width: width, + height: height + }; + } + /** + * Get Y Axis Dimensions + * @memberof Dimensions + * @return {{width, height}} + **/ + + }, { + key: "getyAxisTitleCoords", + value: function getyAxisTitleCoords() { + var _this3 = this; + + var w = this.w; + var ret = []; + w.config.yaxis.map(function (yaxe, index) { + if (yaxe.show && yaxe.title.text !== undefined) { + var graphics = new Graphics(_this3.ctx); + var rect = graphics.getTextRects(yaxe.title.text, yaxe.title.style.fontSize, yaxe.title.style.fontFamily, 'rotate(-90 0 0)', false); + ret.push({ + width: rect.width, + height: rect.height + }); + } else { + ret.push({ + width: 0, + height: 0 + }); + } + }); + return ret; + } + /** + * Get Chart Title/Subtitle Dimensions + * @memberof Dimensions + * @return {{width, height}} + **/ + + }, { + key: "getTitleSubtitleCoords", + value: function getTitleSubtitleCoords(type) { + var w = this.w; + var width = 0; + var height = 0; + var floating = type === 'title' ? w.config.title.floating : w.config.subtitle.floating; + var el = w.globals.dom.baseEl.querySelector(".apexcharts-".concat(type, "-text")); + + if (el !== null && !floating) { + var coord = el.getBoundingClientRect(); + width = coord.width; + height = w.globals.axisCharts ? coord.height + 5 : coord.height; + } + + return { + width: width, + height: height + }; + } + }, { + key: "getLegendsRect", + value: function getLegendsRect() { + var w = this.w; + var elLegendWrap = w.globals.dom.baseEl.querySelector('.apexcharts-legend'); + var lgRect = Object.assign({}, Utils.getBoundingClientRect(elLegendWrap)); + + if (elLegendWrap !== null && !w.config.legend.floating && w.config.legend.show) { + this.lgRect = { + x: lgRect.x, + y: lgRect.y, + height: lgRect.height, + width: lgRect.height === 0 ? 0 : lgRect.width + }; + } else { + this.lgRect = { + x: 0, + y: 0, + height: 0, + width: 0 + }; + } + + return this.lgRect; + } + }]); + + return Dimensions; + }(); + + /** + * ApexCharts TimeScale Class for generating time ticks for x-axis. + * + * @module TimeScale + **/ + + var TimeScale = + /*#__PURE__*/ + function () { + function TimeScale(ctx) { + _classCallCheck(this, TimeScale); + + this.ctx = ctx; + this.w = ctx.w; + this.timeScaleArray = []; + } + + _createClass(TimeScale, [{ + key: "calculateTimeScaleTicks", + value: function calculateTimeScaleTicks(minX, maxX) { + var _this = this; + + var w = this.w; // null check when no series to show + + if (w.globals.allSeriesCollapsed) { + w.globals.labels = []; + w.globals.timelineLabels = []; + return []; + } + + var dt = new DateTime(this.ctx); + var daysDiff = (maxX - minX) / (1000 * 60 * 60 * 24); + this.determineInterval(daysDiff); + w.globals.disableZoomIn = false; + w.globals.disableZoomOut = false; + + if (daysDiff < 0.005) { + w.globals.disableZoomIn = true; + } else if (daysDiff > 50000) { + w.globals.disableZoomOut = true; + } + + var timeIntervals = dt.getTimeUnitsfromTimestamp(minX, maxX); + var daysWidthOnXAxis = w.globals.gridWidth / daysDiff; + var hoursWidthOnXAxis = daysWidthOnXAxis / 24; + var minutesWidthOnXAxis = hoursWidthOnXAxis / 60; + var numberOfHours = Math.floor(daysDiff * 24); + var numberOfMinutes = Math.floor(daysDiff * 24 * 60); + var numberOfDays = Math.floor(daysDiff); + var numberOfMonths = Math.floor(daysDiff / 30); + var numberOfYears = Math.floor(daysDiff / 365); + var firstVal = { + minMinute: timeIntervals.minMinute, + minHour: timeIntervals.minHour, + minDate: timeIntervals.minDate, + minMonth: timeIntervals.minMonth, + minYear: timeIntervals.minYear + }; + var currentMinute = firstVal.minMinute; + var currentHour = firstVal.minHour; + var currentMonthDate = firstVal.minDate; + var currentDate = firstVal.minDate; + var currentMonth = firstVal.minMonth; + var currentYear = firstVal.minYear; + var params = { + firstVal: firstVal, + currentMinute: currentMinute, + currentHour: currentHour, + currentMonthDate: currentMonthDate, + currentDate: currentDate, + currentMonth: currentMonth, + currentYear: currentYear, + daysWidthOnXAxis: daysWidthOnXAxis, + hoursWidthOnXAxis: hoursWidthOnXAxis, + minutesWidthOnXAxis: minutesWidthOnXAxis, + numberOfMinutes: numberOfMinutes, + numberOfHours: numberOfHours, + numberOfDays: numberOfDays, + numberOfMonths: numberOfMonths, + numberOfYears: numberOfYears + }; + + switch (this.tickInterval) { + case 'years': + { + this.generateYearScale(params); + break; + } + + case 'months': + case 'half_year': + { + this.generateMonthScale(params); + break; + } + + case 'months_days': + case 'months_fortnight': + case 'days': + case 'week_days': + { + this.generateDayScale(params); + break; + } + + case 'hours': + { + this.generateHourScale(params); + break; + } + + case 'minutes': + this.generateMinuteScale(params); + break; + } // first, we will adjust the month values index + // as in the upper function, it is starting from 0 + // we will start them from 1 + + + var adjustedMonthInTimeScaleArray = this.timeScaleArray.map(function (ts) { + var defaultReturn = { + position: ts.position, + unit: ts.unit, + year: ts.year, + day: ts.day ? ts.day : 1, + hour: ts.hour ? ts.hour : 0, + month: ts.month + 1 + }; + + if (ts.unit === 'month') { + return _objectSpread({}, defaultReturn, { + value: ts.value + 1 + }); + } else if (ts.unit === 'day' || ts.unit === 'hour') { + return _objectSpread({}, defaultReturn, { + value: ts.value + }); + } else if (ts.unit === 'minute') { + return _objectSpread({}, defaultReturn, { + value: ts.value, + minute: ts.value + }); + } + + return ts; + }); + var filteredTimeScale = adjustedMonthInTimeScaleArray.filter(function (ts) { + var modulo = 1; + var ticks = Math.ceil(w.globals.gridWidth / 120); + var value = ts.value; + + if (w.config.xaxis.tickAmount !== undefined) { + ticks = w.config.xaxis.tickAmount; + } + + if (adjustedMonthInTimeScaleArray.length > ticks) { + modulo = Math.floor(adjustedMonthInTimeScaleArray.length / ticks); + } + + var shouldNotSkipUnit = false; // there is a big change in unit i.e days to months + + var shouldNotPrint = false; // should skip these values + + switch (_this.tickInterval) { + case 'half_year': + modulo = 7; + + if (ts.unit === 'year') { + shouldNotSkipUnit = true; + } + + break; + + case 'months': + modulo = 1; + + if (ts.unit === 'year') { + shouldNotSkipUnit = true; + } + + break; + + case 'months_fortnight': + modulo = 15; + + if (ts.unit === 'year' || ts.unit === 'month') { + shouldNotSkipUnit = true; + } + + if (value === 30) { + shouldNotPrint = true; + } + + break; + + case 'months_days': + modulo = 10; + + if (ts.unit === 'month') { + shouldNotSkipUnit = true; + } + + if (value === 30) { + shouldNotPrint = true; + } + + break; + + case 'week_days': + modulo = 8; + + if (ts.unit === 'month') { + shouldNotSkipUnit = true; + } + + break; + + case 'days': + modulo = 1; + + if (ts.unit === 'month') { + shouldNotSkipUnit = true; + } + + break; + + case 'hours': + if (ts.unit === 'day') { + shouldNotSkipUnit = true; + } + + break; + + case 'minutes': + if (value % 5 !== 0) { + shouldNotPrint = true; + } + + break; + } + + if (_this.tickInterval === 'minutes' || _this.tickInterval === 'hours') { + if (!shouldNotPrint) { + return true; + } + } else { + if ((value % modulo === 0 || shouldNotSkipUnit) && !shouldNotPrint) { + return true; + } + } + }); + return filteredTimeScale; + } + }, { + key: "recalcDimensionsBasedOnFormat", + value: function recalcDimensionsBasedOnFormat(filteredTimeScale) { + var w = this.w; + var reformattedTimescaleArray = this.formatDates(filteredTimeScale); + var removedOverlappingTS = this.removeOverlappingTS(reformattedTimescaleArray); + w.globals.timelineLabels = removedOverlappingTS.slice(); // at this stage, we need to re-calculate coords of the grid as timeline labels may have altered the xaxis labels coords + // The reason we can't do this prior to this stage is because timeline labels depends on gridWidth, and as the ticks are calculated based on available gridWidth, there can be unknown number of ticks generated for different minX and maxX + // Dependency on Dimensions(), need to refactor correctly + // TODO - find an alternate way to avoid calling this Heavy method twice + + var dimensions = new Dimensions(this.ctx); + dimensions.plotCoords(); + } + }, { + key: "determineInterval", + value: function determineInterval(daysDiff) { + switch (true) { + case daysDiff > 1825: + // difference is more than 5 years + this.tickInterval = 'years'; + break; + + case daysDiff > 800 && daysDiff <= 1825: + this.tickInterval = 'half_year'; + break; + + case daysDiff > 180 && daysDiff <= 800: + this.tickInterval = 'months'; + break; + + case daysDiff > 90 && daysDiff <= 180: + this.tickInterval = 'months_fortnight'; + break; + + case daysDiff > 60 && daysDiff <= 90: + this.tickInterval = 'months_days'; + break; + + case daysDiff > 30 && daysDiff <= 60: + this.tickInterval = 'week_days'; + break; + + case daysDiff > 2 && daysDiff <= 30: + this.tickInterval = 'days'; + break; + + case daysDiff > 0.1 && daysDiff <= 2: + // less than 2 days + this.tickInterval = 'hours'; + break; + + case daysDiff < 0.1: + this.tickInterval = 'minutes'; + break; + + default: + this.tickInterval = 'days'; + break; + } + } + }, { + key: "generateYearScale", + value: function generateYearScale(params) { + var firstVal = params.firstVal, + currentMonth = params.currentMonth, + currentYear = params.currentYear, + daysWidthOnXAxis = params.daysWidthOnXAxis, + numberOfYears = params.numberOfYears; + var firstTickValue = firstVal.minYear; + var firstTickPosition = 0; + var dt = new DateTime(this.ctx); + var unit = 'year'; + + if (firstVal.minDate > 1 && firstVal.minMonth > 0) { + var remainingDays = dt.determineRemainingDaysOfYear(firstVal.minYear, firstVal.minMonth, firstVal.minDate); // remainingDaysofFirstMonth is used to reacht the 2nd tick position + + var remainingDaysOfFirstYear = dt.determineDaysOfYear(firstVal.minYear) - remainingDays + 1; // calculate the first tick position + + firstTickPosition = remainingDaysOfFirstYear * daysWidthOnXAxis; + firstTickValue = firstVal.minYear + 1; // push the first tick in the array + + this.timeScaleArray.push({ + position: firstTickPosition, + value: firstTickValue, + unit: unit, + year: firstTickValue, + month: Utils.monthMod(currentMonth + 1) + }); + } else if (firstVal.minDate === 1 && firstVal.minMonth === 0) { + // push the first tick in the array + this.timeScaleArray.push({ + position: firstTickPosition, + value: firstTickValue, + unit: unit, + year: currentYear, + month: Utils.monthMod(currentMonth + 1) + }); + } + + var year = firstTickValue; + var pos = firstTickPosition; // keep drawing rest of the ticks + + for (var i = 0; i < numberOfYears; i++) { + year++; + pos = dt.determineDaysOfYear(year - 1) * daysWidthOnXAxis + pos; + this.timeScaleArray.push({ + position: pos, + value: year, + unit: unit, + year: year, + month: 1 + }); + } + } + }, { + key: "generateMonthScale", + value: function generateMonthScale(params) { + var firstVal = params.firstVal, + currentMonthDate = params.currentMonthDate, + currentMonth = params.currentMonth, + currentYear = params.currentYear, + daysWidthOnXAxis = params.daysWidthOnXAxis, + numberOfMonths = params.numberOfMonths; + var firstTickValue = currentMonth; + var firstTickPosition = 0; + var dt = new DateTime(this.ctx); + var unit = 'month'; + var yrCounter = 0; + + if (firstVal.minDate > 1) { + // remainingDaysofFirstMonth is used to reacht the 2nd tick position + var remainingDaysOfFirstMonth = dt.determineDaysOfMonths(currentMonth + 1, firstVal.minYear) - currentMonthDate + 1; // calculate the first tick position + + firstTickPosition = remainingDaysOfFirstMonth * daysWidthOnXAxis; + firstTickValue = Utils.monthMod(currentMonth + 1); + var year = currentYear + yrCounter; + + var _month = Utils.monthMod(firstTickValue); + + var value = firstTickValue; // it's Jan, so update the year + + if (firstTickValue === 0) { + unit = 'year'; + value = year; + _month = 1; + yrCounter += 1; + year = year + yrCounter; + } // push the first tick in the array + + + this.timeScaleArray.push({ + position: firstTickPosition, + value: value, + unit: unit, + year: year, + month: _month + }); + } else { + // push the first tick in the array + this.timeScaleArray.push({ + position: firstTickPosition, + value: firstTickValue, + unit: unit, + year: currentYear, + month: Utils.monthMod(currentMonth) + }); + } + + var month = firstTickValue + 1; + var pos = firstTickPosition; // keep drawing rest of the ticks + + for (var i = 0, j = 1; i < numberOfMonths; i++, j++) { + month = Utils.monthMod(month); + + if (month === 0) { + unit = 'year'; + yrCounter += 1; + } else { + unit = 'month'; + } + + var _year = currentYear + Math.floor(month / 12) + yrCounter; + + pos = dt.determineDaysOfMonths(month, _year) * daysWidthOnXAxis + pos; + var monthVal = month === 0 ? _year : month; + this.timeScaleArray.push({ + position: pos, + value: monthVal, + unit: unit, + year: _year, + month: month === 0 ? 1 : month + }); + month++; + } + } + }, { + key: "generateDayScale", + value: function generateDayScale(params) { + var firstVal = params.firstVal, + currentMonth = params.currentMonth, + currentYear = params.currentYear, + hoursWidthOnXAxis = params.hoursWidthOnXAxis, + numberOfDays = params.numberOfDays; + var dt = new DateTime(this.ctx); + var unit = 'day'; + var remainingHours = 24 - firstVal.minHour; + var yrCounter = 0; // calculate the first tick position + + var firstTickPosition = remainingHours * hoursWidthOnXAxis; + var firstTickValue = firstVal.minDate + 1; + var val = firstTickValue; + + var changeMonth = function changeMonth(dateVal, month, year) { + var monthdays = dt.determineDaysOfMonths(month + 1, year); + + if (dateVal > monthdays) { + month = month + 1; + date = 1; + unit = 'month'; + val = month; + return month; + } + + return month; + }; + + var date = firstTickValue; + var month = changeMonth(date, currentMonth, currentYear); // push the first tick in the array + + this.timeScaleArray.push({ + position: firstTickPosition, + value: val, + unit: unit, + year: currentYear, + month: Utils.monthMod(month), + day: date + }); + var pos = firstTickPosition; // keep drawing rest of the ticks + + for (var i = 0; i < numberOfDays; i++) { + date += 1; + unit = 'day'; + month = changeMonth(date, month, currentYear + Math.floor(month / 12) + yrCounter); + var year = currentYear + Math.floor(month / 12) + yrCounter; + pos = 24 * hoursWidthOnXAxis + pos; + + var _val = date === 1 ? Utils.monthMod(month) : date; + + this.timeScaleArray.push({ + position: pos, + value: _val, + unit: unit, + year: year, + month: Utils.monthMod(month), + day: _val + }); + } + } + }, { + key: "generateHourScale", + value: function generateHourScale(params) { + var firstVal = params.firstVal, + currentDate = params.currentDate, + currentMonth = params.currentMonth, + currentYear = params.currentYear, + minutesWidthOnXAxis = params.minutesWidthOnXAxis, + numberOfHours = params.numberOfHours; + var dt = new DateTime(this.ctx); + var yrCounter = 0; + var unit = 'hour'; + + var changeDate = function changeDate(dateVal, month) { + var monthdays = dt.determineDaysOfMonths(month + 1, currentYear); + + if (dateVal > monthdays) { + date = 1; + month = month + 1; + } + + return { + month: month, + date: date + }; + }; + + var changeMonth = function changeMonth(dateVal, month) { + var monthdays = dt.determineDaysOfMonths(month + 1, currentYear); + + if (dateVal > monthdays) { + month = month + 1; + return month; + } + + return month; + }; + + var remainingMins = 60 - firstVal.minMinute; + var firstTickPosition = remainingMins * minutesWidthOnXAxis; + var firstTickValue = firstVal.minHour + 1; + var hour = firstTickValue + 1; + + if (remainingMins === 60) { + firstTickPosition = 0; + firstTickValue = firstVal.minHour; + hour = firstTickValue + 1; + } + + var date = currentDate; + var month = changeMonth(date, currentMonth); // push the first tick in the array + + this.timeScaleArray.push({ + position: firstTickPosition, + value: firstTickValue, + unit: unit, + day: date, + hour: hour, + year: currentYear, + month: Utils.monthMod(month) + }); + var pos = firstTickPosition; // keep drawing rest of the ticks + + for (var i = 0; i < numberOfHours; i++) { + unit = 'hour'; + + if (hour >= 24) { + hour = 0; + date += 1; + unit = 'day'; + var checkNextMonth = changeDate(date, month); + month = checkNextMonth.month; + month = changeMonth(date, month); + } + + var year = currentYear + Math.floor(month / 12) + yrCounter; + pos = hour === 0 && i === 0 ? remainingMins * minutesWidthOnXAxis : 60 * minutesWidthOnXAxis + pos; + var val = hour === 0 ? date : hour; + this.timeScaleArray.push({ + position: pos, + value: val, + unit: unit, + hour: hour, + day: date, + year: year, + month: Utils.monthMod(month) + }); + hour++; + } + } + }, { + key: "generateMinuteScale", + value: function generateMinuteScale(params) { + var firstVal = params.firstVal, + currentMinute = params.currentMinute, + currentHour = params.currentHour, + currentDate = params.currentDate, + currentMonth = params.currentMonth, + currentYear = params.currentYear, + minutesWidthOnXAxis = params.minutesWidthOnXAxis, + numberOfMinutes = params.numberOfMinutes; + var yrCounter = 0; + var unit = 'minute'; + var remainingMins = currentMinute - firstVal.minMinute; + var firstTickPosition = minutesWidthOnXAxis - remainingMins; + var firstTickValue = firstVal.minMinute + 1; + var minute = firstTickValue + 1; + var date = currentDate; + var month = currentMonth; + var year = currentYear; + var hour = currentHour; // push the first tick in the array + + this.timeScaleArray.push({ + position: firstTickPosition, + value: firstTickValue, + unit: unit, + day: date, + hour: hour, + minute: minute, + year: year, + month: Utils.monthMod(month) + }); + var pos = firstTickPosition; // keep drawing rest of the ticks + + for (var i = 0; i < numberOfMinutes; i++) { + if (minute >= 60) { + minute = 0; + hour += 1; + + if (hour === 24) { + hour = 0; + } + } + + var _year2 = currentYear + Math.floor(month / 12) + yrCounter; + + pos = minutesWidthOnXAxis + pos; + var val = minute; + this.timeScaleArray.push({ + position: pos, + value: val, + unit: unit, + hour: hour, + minute: minute, + day: date, + year: _year2, + month: Utils.monthMod(month) + }); + minute++; + } + } + }, { + key: "createRawDateString", + value: function createRawDateString(ts, value) { + var raw = ts.year; + raw += '-' + ('0' + ts.month.toString()).slice(-2); // unit is day + + if (ts.unit === 'day') { + raw += ts.unit === 'day' ? '-' + ('0' + value).slice(-2) : '-01'; + } else { + raw += '-' + ('0' + (ts.day ? ts.day : '1')).slice(-2); + } // unit is hour + + + if (ts.unit === 'hour') { + raw += ts.unit === 'hour' ? 'T' + ('0' + value).slice(-2) : 'T00'; + } else { + raw += 'T' + ('0' + (ts.hour ? ts.hour : '0')).slice(-2); + } // unit is minute + + + raw += ts.unit === 'minute' ? ':' + ('0' + value).slice(-2) + ':00.000Z' : ':00:00.000Z'; + return raw; + } + }, { + key: "formatDates", + value: function formatDates(filteredTimeScale) { + var _this2 = this; + + var w = this.w; + var reformattedTimescaleArray = filteredTimeScale.map(function (ts) { + var value = ts.value.toString(); + var dt = new DateTime(_this2.ctx); + + var raw = _this2.createRawDateString(ts, value); // parse the whole ISO datestring + + + var dateString = new Date(Date.parse(raw)); + + if (w.config.xaxis.labels.format === undefined) { + var customFormat = 'dd MMM'; + var dtFormatter = w.config.xaxis.labels.datetimeFormatter; + if (ts.unit === 'year') customFormat = dtFormatter.year; + if (ts.unit === 'month') customFormat = dtFormatter.month; + if (ts.unit === 'day') customFormat = dtFormatter.day; + if (ts.unit === 'hour') customFormat = dtFormatter.hour; + if (ts.unit === 'minute') customFormat = dtFormatter.minute; + value = dt.formatDate(dateString, customFormat, true, false); + } else { + value = dt.formatDate(dateString, w.config.xaxis.labels.format); + } + + return { + dateString: raw, + position: ts.position, + value: value, + unit: ts.unit, + year: ts.year, + month: ts.month + }; + }); + return reformattedTimescaleArray; + } + }, { + key: "removeOverlappingTS", + value: function removeOverlappingTS(arr) { + var _this3 = this; + + var graphics = new Graphics(this.ctx); + var lastDrawnIndex = 0; + var filteredArray = arr.map(function (item, index) { + if (index > 0 && _this3.w.config.xaxis.labels.hideOverlappingLabels) { + var prevLabelWidth = graphics.getTextRects(arr[lastDrawnIndex].value).width; + var prevPos = arr[lastDrawnIndex].position; + var pos = item.position; + + if (pos > prevPos + prevLabelWidth + 10) { + lastDrawnIndex = index; + return item; + } else { + return null; + } + } else { + return item; + } + }); + filteredArray = filteredArray.filter(function (f) { + return f !== null; + }); + return filteredArray; + } + }]); + + return TimeScale; + }(); + + /** + * ApexCharts Core Class responsible for major calculations and creating elements. + * + * @module Core + **/ + + var Core = + /*#__PURE__*/ + function () { + function Core(el, ctx) { + _classCallCheck(this, Core); + + this.ctx = ctx; + this.w = ctx.w; + this.el = el; + this.coreUtils = new CoreUtils(this.ctx); + this.twoDSeries = []; + this.threeDSeries = []; + this.twoDSeriesX = []; + } // get data and store into appropriate vars + + + _createClass(Core, [{ + key: "setupElements", + value: function setupElements() { + var gl = this.w.globals; + var cnf = this.w.config; // const graphics = new Graphics(this.ctx) + + var ct = cnf.chart.type; + var axisChartsArrTypes = ['line', 'area', 'bar', 'candlestick', 'radar', 'scatter', 'bubble', 'heatmap']; + var xyChartsArrTypes = ['line', 'area', 'bar', 'candlestick', 'scatter', 'bubble']; + gl.axisCharts = axisChartsArrTypes.indexOf(ct) > -1; + gl.xyCharts = xyChartsArrTypes.indexOf(ct) > -1; + gl.chartClass = '.apexcharts' + gl.cuid; + gl.dom.baseEl = this.el; + gl.dom.elWrap = document.createElement('div'); + Graphics.setAttrs(gl.dom.elWrap, { + id: gl.chartClass.substring(1), + class: 'apexcharts-canvas ' + gl.chartClass.substring(1) + }); + this.el.appendChild(gl.dom.elWrap); + gl.dom.Paper = new window.SVG.Doc(gl.dom.elWrap); + gl.dom.Paper.attr({ + class: 'apexcharts-svg', + 'xmlns:data': 'ApexChartsNS', + transform: "translate(".concat(cnf.chart.offsetX, ", ").concat(cnf.chart.offsetY, ")") + }); + gl.dom.Paper.node.style.background = cnf.chart.background; + this.setSVGDimensions(); + gl.dom.elGraphical = gl.dom.Paper.group().attr({ + class: 'apexcharts-inner apexcharts-graphical' + }); + gl.dom.elDefs = gl.dom.Paper.defs(); + gl.dom.elLegendWrap = document.createElement('div'); + gl.dom.elLegendWrap.classList.add('apexcharts-legend'); + gl.dom.elWrap.appendChild(gl.dom.elLegendWrap); // gl.dom.Paper.add(gl.dom.elLegendWrap) + + gl.dom.Paper.add(gl.dom.elGraphical); + gl.dom.elGraphical.add(gl.dom.elDefs); + } + }, { + key: "plotChartType", + value: function plotChartType(ser, xyRatios) { + var w = this.w; + var cnf = w.config; + var gl = w.globals; + var lineSeries = { + series: [], + i: [] + }; + var areaSeries = { + series: [], + i: [] + }; + var scatterSeries = { + series: [], + i: [] + }; + var columnSeries = { + series: [], + i: [] + }; + var candlestickSeries = { + series: [], + i: [] + }; + gl.series.map(function (series, st) { + // if user has specified a particular type for particular series + if (typeof ser[st].type !== 'undefined') { + if (ser[st].type === 'column' || ser[st].type === 'bar') { + w.config.plotOptions.bar.horizontal = false; // bar not supported in mixed charts + + columnSeries.series.push(series); + columnSeries.i.push(st); + } else if (ser[st].type === 'area') { + areaSeries.series.push(series); + areaSeries.i.push(st); + } else if (ser[st].type === 'line') { + lineSeries.series.push(series); + lineSeries.i.push(st); + } else if (ser[st].type === 'scatter') { + scatterSeries.series.push(series); + scatterSeries.i.push(st); + } else if (ser[st].type === 'bubble') ; else if (ser[st].type === 'candlestick') { + candlestickSeries.series.push(series); + candlestickSeries.i.push(st); + } else { + // user has specified type, but it is not valid (other than line/area/column) + console.warn('You have specified an unrecognized chart type. Available types for this propery are line/area/column/bar/scatter/bubble'); + } + + gl.comboCharts = true; + } else { + lineSeries.series.push(series); + lineSeries.i.push(st); + } + }); + var line = new Line(this.ctx, xyRatios); + var candlestick = new CandleStick(this.ctx, xyRatios); + var pie = new Pie(this.ctx); + var radialBar = new Radial(this.ctx); + var radar = new Radar(this.ctx); + var elGraph = []; + + if (gl.comboCharts) { + if (areaSeries.series.length > 0) { + elGraph.push(line.draw(areaSeries.series, 'area', areaSeries.i)); + } + + if (columnSeries.series.length > 0) { + if (w.config.chart.stacked) { + var barStacked = new BarStacked(this.ctx, xyRatios); + elGraph.push(barStacked.draw(columnSeries.series, columnSeries.i)); + } else { + var bar = new Bar(this.ctx, xyRatios); + elGraph.push(bar.draw(columnSeries.series, columnSeries.i)); + } + } + + if (lineSeries.series.length > 0) { + elGraph.push(line.draw(lineSeries.series, 'line', lineSeries.i)); + } + + if (candlestickSeries.series.length > 0) { + elGraph.push(candlestick.draw(candlestickSeries.series, candlestickSeries.i)); + } + + if (scatterSeries.series.length > 0) { + var scatterLine = new Line(this.ctx, xyRatios, true); + elGraph.push(scatterLine.draw(scatterSeries.series, 'scatter', scatterSeries.i)); + } // TODO: allow bubble series in a combo chart + // if (bubbleSeries.series.length > 0) { + // const bubbleLine = new Line(this.ctx, xyRatios, true) + // elGraph.push( + // bubbleLine.draw(bubbleSeries.series, 'bubble', bubbleSeries.i) + // ) + // } + + } else { + switch (cnf.chart.type) { + case 'line': + elGraph = line.draw(gl.series, 'line'); + break; + + case 'area': + elGraph = line.draw(gl.series, 'area'); + break; + + case 'bar': + if (cnf.chart.stacked) { + var _barStacked = new BarStacked(this.ctx, xyRatios); + + elGraph = _barStacked.draw(gl.series); + } else { + var _bar = new Bar(this.ctx, xyRatios); + + elGraph = _bar.draw(gl.series); + } + + break; + + case 'candlestick': + var candleStick = new CandleStick(this.ctx, xyRatios); + elGraph = candleStick.draw(gl.series); + break; + + case 'heatmap': + var heatmap = new HeatMap(this.ctx, xyRatios); + elGraph = heatmap.draw(gl.series); + break; + + case 'pie': + case 'donut': + elGraph = pie.draw(gl.series); + break; + + case 'radialBar': + elGraph = radialBar.draw(gl.series); + break; + + case 'radar': + elGraph = radar.draw(gl.series); + break; + + default: + elGraph = line.draw(gl.series); + } + } + + return elGraph; + } + }, { + key: "setSVGDimensions", + value: function setSVGDimensions() { + var gl = this.w.globals; + var cnf = this.w.config; + gl.svgWidth = cnf.chart.width; + gl.svgHeight = cnf.chart.height; + var elDim = Utils.getDimensions(this.el); + var widthUnit = cnf.chart.width.toString().split(/[0-9]+/g).pop(); + + if (widthUnit === '%') { + if (Utils.isNumber(elDim[0])) { + if (elDim[0].width === 0) { + elDim = Utils.getDimensions(this.el.parentNode); + } + + gl.svgWidth = elDim[0] * parseInt(cnf.chart.width) / 100; + } + } else if (widthUnit === 'px' || widthUnit === '') { + gl.svgWidth = parseInt(cnf.chart.width); + } + + if (gl.svgHeight !== 'auto' && gl.svgHeight !== '') { + var heightUnit = cnf.chart.height.toString().split(/[0-9]+/g).pop(); + + if (heightUnit === '%') { + var elParentDim = Utils.getDimensions(this.el.parentNode); + gl.svgHeight = elParentDim[1] * parseInt(cnf.chart.height) / 100; + } else { + gl.svgHeight = parseInt(cnf.chart.height); + } + } else { + if (gl.axisCharts) { + gl.svgHeight = gl.svgWidth / 1.61; + } else { + gl.svgHeight = gl.svgWidth; + } + } + + Graphics.setAttrs(gl.dom.Paper.node, { + width: gl.svgWidth, + height: gl.svgHeight + }); // gl.dom.Paper.node.parentNode.parentNode.style.minWidth = gl.svgWidth + "px"; + + var offsetY = cnf.chart.sparkline.enabled ? 0 : gl.axisCharts ? 14 : 5; + gl.dom.Paper.node.parentNode.parentNode.style.minHeight = gl.svgHeight + offsetY + 'px'; + gl.dom.elWrap.style.width = gl.svgWidth + 'px'; + gl.dom.elWrap.style.height = gl.svgHeight + 'px'; + } + }, { + key: "shiftGraphPosition", + value: function shiftGraphPosition() { + var gl = this.w.globals; + var tY = gl.translateY; + var tX = gl.translateX; + var scalingAttrs = { + transform: 'translate(' + tX + ', ' + tY + ')' + }; + Graphics.setAttrs(gl.dom.elGraphical.node, scalingAttrs); + } + /* + ** All the calculations for setting range in charts will be done here + */ + + }, { + key: "coreCalculations", + value: function coreCalculations() { + var range = new Range$1(this.ctx); + range.init(); + } + }, { + key: "resetGlobals", + value: function resetGlobals() { + var _this = this; + + var gl = this.w.globals; + gl.series = []; + gl.seriesCandleO = []; + gl.seriesCandleH = []; + gl.seriesCandleL = []; + gl.seriesCandleC = []; + gl.seriesPercent = []; + gl.seriesX = []; + gl.seriesZ = []; + gl.seriesNames = []; + gl.seriesTotals = []; + gl.stackedSeriesTotals = []; + gl.labels = []; + gl.timelineLabels = []; + gl.noLabelsProvided = false; + gl.timescaleTicks = []; + gl.resizeTimer = null; + gl.selectionResizeTimer = null; + + gl.seriesXvalues = function () { + return _this.w.config.series.map(function (s) { + return []; + }); + }(); + + gl.seriesYvalues = function () { + return _this.w.config.series.map(function (s) { + return []; + }); + }(); + + gl.delayedElements = []; + gl.pointsArray = []; + gl.dataLabelsRects = []; + gl.isXNumeric = false; + gl.isDataXYZ = false; + gl.maxY = -Number.MAX_VALUE; + gl.minY = Number.MIN_VALUE; + gl.minYArr = []; + gl.maxYArr = []; + gl.maxX = -Number.MAX_VALUE; + gl.minX = Number.MAX_VALUE; + gl.initialmaxX = -Number.MAX_VALUE; + gl.initialminX = Number.MAX_VALUE; + gl.maxDate = 0; + gl.minDate = Number.MAX_VALUE; + gl.minZ = Number.MAX_VALUE; + gl.maxZ = -Number.MAX_VALUE; + gl.yAxisScale = []; + gl.xAxisScale = null; + gl.xAxisTicksPositions = []; + gl.yLabelsCoords = []; + gl.yTitleCoords = []; + gl.xRange = 0; + gl.yRange = []; + gl.zRange = 0; + gl.dataPoints = 0; + } + }, { + key: "isMultipleY", + value: function isMultipleY() { + // user has supplied an array in yaxis property. So, turn on multipleYAxis flag + if (this.w.config.yaxis.constructor === Array && this.w.config.yaxis.length > 1) { + // first, turn off stacking if multiple y axis + this.w.config.chart.stacked = false; + this.w.globals.isMultipleYAxis = true; + return true; + } + } + }, { + key: "excludeCollapsedSeriesInYAxis", + value: function excludeCollapsedSeriesInYAxis() { + var _this2 = this; + + var w = this.w; + w.globals.ignoreYAxisIndexes = w.globals.collapsedSeries.map(function (collapsed, i) { + if (_this2.w.globals.isMultipleYAxis) { + return collapsed.index; + } + }); + } + }, { + key: "isMultiFormat", + value: function isMultiFormat() { + return this.isFormatXY() || this.isFormat2DArray(); + } // given format is [{x, y}, {x, y}] + + }, { + key: "isFormatXY", + value: function isFormatXY() { + var series = this.w.config.series.slice(); + var sr = new Series(this.ctx); + this.activeSeriesIndex = sr.getActiveConfigSeriesIndex(); + + if (typeof series[this.activeSeriesIndex].data !== 'undefined' && series[this.activeSeriesIndex].data.length > 0 && series[this.activeSeriesIndex].data[0] !== null && typeof series[this.activeSeriesIndex].data[0].x !== 'undefined' && series[this.activeSeriesIndex].data[0] !== null) { + return true; + } + } // given format is [[x, y], [x, y]] + + }, { + key: "isFormat2DArray", + value: function isFormat2DArray() { + var series = this.w.config.series.slice(); + var sr = new Series(this.ctx); + this.activeSeriesIndex = sr.getActiveConfigSeriesIndex(); + + if (typeof series[this.activeSeriesIndex].data !== 'undefined' && series[this.activeSeriesIndex].data.length > 0 && typeof series[this.activeSeriesIndex].data[0] !== 'undefined' && series[this.activeSeriesIndex].data[0] !== null && series[this.activeSeriesIndex].data[0].constructor === Array) { + return true; + } + } + }, { + key: "handleFormat2DArray", + value: function handleFormat2DArray(ser, i) { + var cnf = this.w.config; + var gl = this.w.globals; + + for (var j = 0; j < ser[i].data.length; j++) { + if (typeof ser[i].data[j][1] !== 'undefined') { + if (Array.isArray(ser[i].data[j][1]) && ser[i].data[j][1].length === 4) { + this.twoDSeries.push(Utils.parseNumber(ser[i].data[j][1][3])); + } else { + this.twoDSeries.push(Utils.parseNumber(ser[i].data[j][1])); + } + } + + if (cnf.xaxis.type === 'datetime') { + // if timestamps are provided and xaxis type is datettime, + var ts = new Date(ser[i].data[j][0]); + ts = new Date(ts).getTime(); + this.twoDSeriesX.push(ts); + } else { + this.twoDSeriesX.push(ser[i].data[j][0]); + } + } + + for (var _j = 0; _j < ser[i].data.length; _j++) { + if (typeof ser[i].data[_j][2] !== 'undefined') { + this.threeDSeries.push(ser[i].data[_j][2]); + gl.isDataXYZ = true; + } + } + } + }, { + key: "handleFormatXY", + value: function handleFormatXY(ser, i) { + var cnf = this.w.config; + var gl = this.w.globals; + var dt = new DateTime(this.ctx); + var activeI = i; + + if (gl.collapsedSeriesIndices.indexOf(i) > -1) { + // fix #368 + activeI = this.activeSeriesIndex; + } // get series + + + for (var j = 0; j < ser[i].data.length; j++) { + if (typeof ser[i].data[j].y !== 'undefined') { + if (Array.isArray(ser[i].data[j].y) && ser[i].data[j].y.length === 4) { + this.twoDSeries.push(Utils.parseNumber(ser[i].data[j].y[3])); + } else { + this.twoDSeries.push(Utils.parseNumber(ser[i].data[j].y)); + } + } + } // get seriesX + + + for (var _j2 = 0; _j2 < ser[activeI].data.length; _j2++) { + var isXString = typeof ser[activeI].data[_j2].x === 'string'; + var isXDate = !!dt.isValidDate(ser[activeI].data[_j2].x.toString()); + + if (isXString || isXDate) { + // user supplied '01/01/2017' or a date string (a JS date object is not supported) + if (isXString) { + if (cnf.xaxis.type === 'datetime') { + this.twoDSeriesX.push(dt.parseDate(ser[activeI].data[_j2].x)); + } else { + // a category and not a numeric x value + this.fallbackToCategory = true; + this.twoDSeriesX.push(ser[activeI].data[_j2].x); + } + } else { + if (cnf.xaxis.type === 'datetime') { + this.twoDSeriesX.push(dt.parseDate(ser[activeI].data[_j2].x.toString())); + } else { + this.twoDSeriesX.push(parseFloat(ser[activeI].data[_j2].x)); + } + } + } else { + // a numeric value in x property + this.twoDSeriesX.push(ser[activeI].data[_j2].x); + } + } + + if (ser[i].data[0] && typeof ser[i].data[0].z !== 'undefined') { + for (var t = 0; t < ser[i].data.length; t++) { + this.threeDSeries.push(ser[i].data[t].z); + } + + gl.isDataXYZ = true; + } + } + }, { + key: "handleCandleStickData", + value: function handleCandleStickData(ser, i) { + var gl = this.w.globals; + var ohlc = {}; + + if (this.isFormat2DArray()) { + ohlc = this.handleCandleStickDataFormat('array', ser, i); + } else if (this.isFormatXY()) { + ohlc = this.handleCandleStickDataFormat('xy', ser, i); + } + + gl.seriesCandleO.push(ohlc.o); + gl.seriesCandleH.push(ohlc.h); + gl.seriesCandleL.push(ohlc.l); + gl.seriesCandleC.push(ohlc.c); + return ohlc; + } + }, { + key: "handleCandleStickDataFormat", + value: function handleCandleStickDataFormat(format, ser, i) { + var serO = []; + var serH = []; + var serL = []; + var serC = []; + var err = 'Please provide [Open, High, Low and Close] values in valid format. Read more https://apexcharts.com/docs/series/#candlestick'; + + if (format === 'array') { + if (ser[i].data[0][1].length !== 4) { + throw new Error(err); + } + + for (var j = 0; j < ser[i].data.length; j++) { + serO.push(ser[i].data[j][1][0]); + serH.push(ser[i].data[j][1][1]); + serL.push(ser[i].data[j][1][2]); + serC.push(ser[i].data[j][1][3]); + } + } else if (format === 'xy') { + if (ser[i].data[0].y.length !== 4) { + throw new Error(err); + } + + for (var _j3 = 0; _j3 < ser[i].data.length; _j3++) { + serO.push(ser[i].data[_j3].y[0]); + serH.push(ser[i].data[_j3].y[1]); + serL.push(ser[i].data[_j3].y[2]); + serC.push(ser[i].data[_j3].y[3]); + } + } + + return { + o: serO, + h: serH, + l: serL, + c: serC + }; + } + }, { + key: "parseDataAxisCharts", + value: function parseDataAxisCharts(ser) { + var ctx = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.ctx; + var cnf = this.w.config; + var gl = this.w.globals; + var dt = new DateTime(ctx); + + for (var i = 0; i < ser.length; i++) { + this.twoDSeries = []; + this.twoDSeriesX = []; + this.threeDSeries = []; + + if (typeof ser[i].data === 'undefined') { + console.error("It is a possibility that you may have not included 'data' property in series."); + return; + } + + if (this.isMultiFormat()) { + if (this.isFormat2DArray()) { + this.handleFormat2DArray(ser, i); + } else if (this.isFormatXY()) { + this.handleFormatXY(ser, i); + } + + if (cnf.chart.type === 'candlestick' || ser[i].type === 'candlestick') { + this.handleCandleStickData(ser, i); + } + + gl.series.push(this.twoDSeries); + gl.labels.push(this.twoDSeriesX); + gl.seriesX.push(this.twoDSeriesX); + + if (!this.fallbackToCategory) { + gl.isXNumeric = true; + } + } else { + if (cnf.xaxis.type === 'datetime') { + // user didn't supplied [{x,y}] or [[x,y]], but single array in data. + // Also labels/categories were supplied differently + gl.isXNumeric = true; + var dates = cnf.labels.length > 0 ? cnf.labels.slice() : cnf.xaxis.categories.slice(); + + for (var j = 0; j < dates.length; j++) { + if (typeof dates[j] === 'string') { + var isDate = dt.isValidDate(dates[j]); + + if (isDate) { + this.twoDSeriesX.push(dt.parseDate(dates[j])); + } else { + throw new Error('You have provided invalid Date format. Please provide a valid JavaScript Date'); + } + } + } + + gl.seriesX.push(this.twoDSeriesX); + } else if (cnf.xaxis.type === 'numeric') { + gl.isXNumeric = true; + var x = cnf.labels.length > 0 ? cnf.labels.slice() : cnf.xaxis.categories.slice(); + + if (x.length > 0) { + this.twoDSeriesX = x; + gl.seriesX.push(this.twoDSeriesX); + } + } + + gl.labels.push(this.twoDSeriesX); + var singleArray = ser[i].data.map(function (d) { + return Utils.parseNumber(d); + }); + gl.series.push(singleArray); + } + + gl.seriesZ.push(this.threeDSeries); + + if (ser[i].name !== undefined) { + gl.seriesNames.push(ser[i].name); + } else { + gl.seriesNames.push('series-' + parseInt(i + 1)); + } + } + + return this.w; + } + }, { + key: "parseDataNonAxisCharts", + value: function parseDataNonAxisCharts(ser) { + var gl = this.w.globals; + var cnf = this.w.config; + gl.series = ser.slice(); + gl.seriesNames = cnf.labels.slice(); + + for (var i = 0; i < gl.series.length; i++) { + if (gl.seriesNames[i] === undefined) { + gl.seriesNames.push('series-' + (i + 1)); + } + } + + return this.w; + } + }, { + key: "handleExternalLabelsData", + value: function handleExternalLabelsData(ser) { + var cnf = this.w.config; + var gl = this.w.globals; // user provided labels in category axis + + if (cnf.xaxis.categories.length > 0) { + gl.labels = cnf.xaxis.categories; + } else if (cnf.labels.length > 0) { + gl.labels = cnf.labels.slice(); + } else if (this.fallbackToCategory) { + gl.labels = gl.labels[0]; + } else { + // user didn't provided labels, fallback to 1-2-3-4-5 + var labelArr = []; + + if (gl.axisCharts) { + for (var i = 0; i < gl.series[gl.maxValsInArrayIndex].length; i++) { + labelArr.push(i + 1); + } + + for (var _i = 0; _i < ser.length; _i++) { + gl.seriesX.push(labelArr); + } + + gl.isXNumeric = true; + } // no series to pull labels from, put a 0-10 series + + + if (labelArr.length === 0) { + labelArr = [0, 10]; + + for (var _i2 = 0; _i2 < ser.length; _i2++) { + gl.seriesX.push(labelArr); + } + } + + gl.labels = labelArr; + gl.noLabelsProvided = true; + + if (cnf.xaxis.type === 'category') { + gl.isXNumeric = false; + } + } + } // Segregate user provided data into appropriate vars + + }, { + key: "parseData", + value: function parseData(ser) { + var w = this.w; + var cnf = w.config; + var gl = w.globals; + this.excludeCollapsedSeriesInYAxis(); + this.fallbackToCategory = false; + this.resetGlobals(); + this.isMultipleY(); + + if (gl.axisCharts) { + this.parseDataAxisCharts(ser); + } else { + this.parseDataNonAxisCharts(ser); + } + + this.coreUtils.getLargestSeries(); // set Null values to 0 in all series when user hides/shows some series + + if (cnf.chart.type === 'bar' && cnf.chart.stacked) { + var series = new Series(this.ctx); + gl.series = series.setNullSeriesToZeroValues(gl.series); + } + + this.coreUtils.getSeriesTotals(); + + if (gl.axisCharts) { + this.coreUtils.getStackedSeriesTotals(); + } + + this.coreUtils.getPercentSeries(); // user didn't provide a [[x,y],[x,y]] series, but a named series + + if (!gl.isXNumeric || cnf.xaxis.type === 'numeric' && cnf.labels.length === 0 && cnf.xaxis.categories.length === 0) { + this.handleExternalLabelsData(ser); + } + } + }, { + key: "xySettings", + value: function xySettings() { + var xyRatios = null; + var w = this.w; + + if (w.globals.axisCharts) { + if (w.config.xaxis.crosshairs.position === 'back') { + var crosshairs = new Crosshairs(this.ctx); + crosshairs.drawXCrosshairs(); + } + + if (w.config.yaxis[0].crosshairs.position === 'back') { + var _crosshairs = new Crosshairs(this.ctx); + + _crosshairs.drawYCrosshairs(); + } + + xyRatios = this.coreUtils.getCalculatedRatios(); + + if (w.config.xaxis.type === 'datetime' && w.config.xaxis.labels.formatter === undefined && isFinite(w.globals.minX) && isFinite(w.globals.maxX)) { + var ts = new TimeScale(this.ctx); + var formattedTimeScale = ts.calculateTimeScaleTicks(w.globals.minX, w.globals.maxX); + ts.recalcDimensionsBasedOnFormat(formattedTimeScale); + } + } + + return xyRatios; + } + }, { + key: "drawAxis", + value: function drawAxis(type, xyRatios) { + var gl = this.w.globals; + var cnf = this.w.config; + var xAxis = new XAxis(this.ctx); + var yAxis = new YAxis(this.ctx); + + if (gl.axisCharts && type !== 'radar') { + var elXaxis, elYaxis; + + if (type === 'bar' && cnf.plotOptions.bar.horizontal) { + elYaxis = yAxis.drawYaxisInversed(0); + elXaxis = xAxis.drawXaxisInversed(0); + gl.dom.elGraphical.add(elXaxis); + gl.dom.elGraphical.add(elYaxis); + } else { + elXaxis = xAxis.drawXaxis(); + gl.dom.elGraphical.add(elXaxis); + cnf.yaxis.map(function (yaxe, index) { + if (gl.ignoreYAxisIndexes.indexOf(index) === -1) { + elYaxis = yAxis.drawYaxis(index); + gl.dom.Paper.add(elYaxis); + } + }); + } + } + + cnf.yaxis.map(function (yaxe, index) { + if (gl.ignoreYAxisIndexes.indexOf(index) === -1) { + yAxis.yAxisTitleRotate(index, yaxe.opposite); + } + }); + } + }, { + key: "setupBrushHandler", + value: function setupBrushHandler() { + var _this3 = this; + + var w = this.w; // only for brush charts + + if (!w.config.chart.brush.enabled) { + return; + } // if user has not defined a custom function for selection - we handle the brush chart + // otherwise we leave it to the user to define the functionality for selection + + + if (typeof w.config.chart.events.selection !== 'function') { + var targets = w.config.chart.brush.targets || [w.config.chart.brush.target]; // retro compatibility with single target option + + targets.forEach(function (target) { + var targetChart = ApexCharts.getChartByID(target); + targetChart.w.globals.brushSource = _this3.ctx; + + var updateSourceChart = function updateSourceChart() { + _this3.ctx._updateOptions({ + chart: { + selection: { + xaxis: { + min: targetChart.w.globals.minX, + max: targetChart.w.globals.maxX + } + } + } + }, false, false); + }; + + if (typeof targetChart.w.config.chart.events.zoomed !== 'function') { + targetChart.w.config.chart.events.zoomed = function () { + updateSourceChart(); + }; + } + + if (typeof targetChart.w.config.chart.events.scrolled !== 'function') { + targetChart.w.config.chart.events.scrolled = function () { + updateSourceChart(); + }; + } + + w.config.chart.events.selection = function (chart, e) { + var yaxis = Utils.clone(w.config.yaxis); + + if (w.config.chart.brush.autoScaleYaxis) { + var scale = new Range(targetChart); + yaxis = scale.autoScaleY(targetChart, e); + } + + targetChart._updateOptions({ + xaxis: { + min: e.xaxis.min, + max: e.xaxis.max + }, + yaxis: yaxis + }, false, false, false); + }; + }); + } + } + }]); + + return Core; + }(); + + /** + * @this {Promise} + */ + function finallyConstructor(callback) { + var constructor = this.constructor; + return this.then( + function(value) { + return constructor.resolve(callback()).then(function() { + return value; + }); + }, + function(reason) { + return constructor.resolve(callback()).then(function() { + return constructor.reject(reason); + }); + } + ); + } + + // Store setTimeout reference so promise-polyfill will be unaffected by + // other code modifying setTimeout (like sinon.useFakeTimers()) + var setTimeoutFunc = setTimeout; + + function noop() {} + + // Polyfill for Function.prototype.bind + function bind(fn, thisArg) { + return function() { + fn.apply(thisArg, arguments); + }; + } + + /** + * @constructor + * @param {Function} fn + */ + function Promise$1(fn) { + if (!(this instanceof Promise$1)) + throw new TypeError('Promises must be constructed via new'); + if (typeof fn !== 'function') throw new TypeError('not a function'); + /** @type {!number} */ + this._state = 0; + /** @type {!boolean} */ + this._handled = false; + /** @type {Promise|undefined} */ + this._value = undefined; + /** @type {!Array} */ + this._deferreds = []; + + doResolve(fn, this); + } + + function handle(self, deferred) { + while (self._state === 3) { + self = self._value; + } + if (self._state === 0) { + self._deferreds.push(deferred); + return; + } + self._handled = true; + Promise$1._immediateFn(function() { + var cb = self._state === 1 ? deferred.onFulfilled : deferred.onRejected; + if (cb === null) { + (self._state === 1 ? resolve : reject)(deferred.promise, self._value); + return; + } + var ret; + try { + ret = cb(self._value); + } catch (e) { + reject(deferred.promise, e); + return; + } + resolve(deferred.promise, ret); + }); + } + + function resolve(self, newValue) { + try { + // Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure + if (newValue === self) + throw new TypeError('A promise cannot be resolved with itself.'); + if ( + newValue && + (typeof newValue === 'object' || typeof newValue === 'function') + ) { + var then = newValue.then; + if (newValue instanceof Promise$1) { + self._state = 3; + self._value = newValue; + finale(self); + return; + } else if (typeof then === 'function') { + doResolve(bind(then, newValue), self); + return; + } + } + self._state = 1; + self._value = newValue; + finale(self); + } catch (e) { + reject(self, e); + } + } + + function reject(self, newValue) { + self._state = 2; + self._value = newValue; + finale(self); + } + + function finale(self) { + if (self._state === 2 && self._deferreds.length === 0) { + Promise$1._immediateFn(function() { + if (!self._handled) { + Promise$1._unhandledRejectionFn(self._value); + } + }); + } + + for (var i = 0, len = self._deferreds.length; i < len; i++) { + handle(self, self._deferreds[i]); + } + self._deferreds = null; + } + + /** + * @constructor + */ + function Handler(onFulfilled, onRejected, promise) { + this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null; + this.onRejected = typeof onRejected === 'function' ? onRejected : null; + this.promise = promise; + } + + /** + * Take a potentially misbehaving resolver function and make sure + * onFulfilled and onRejected are only called once. + * + * Makes no guarantees about asynchrony. + */ + function doResolve(fn, self) { + var done = false; + try { + fn( + function(value) { + if (done) return; + done = true; + resolve(self, value); + }, + function(reason) { + if (done) return; + done = true; + reject(self, reason); + } + ); + } catch (ex) { + if (done) return; + done = true; + reject(self, ex); + } + } + + Promise$1.prototype['catch'] = function(onRejected) { + return this.then(null, onRejected); + }; + + Promise$1.prototype.then = function(onFulfilled, onRejected) { + // @ts-ignore + var prom = new this.constructor(noop); + + handle(this, new Handler(onFulfilled, onRejected, prom)); + return prom; + }; + + Promise$1.prototype['finally'] = finallyConstructor; + + Promise$1.all = function(arr) { + return new Promise$1(function(resolve, reject) { + if (!arr || typeof arr.length === 'undefined') + throw new TypeError('Promise.all accepts an array'); + var args = Array.prototype.slice.call(arr); + if (args.length === 0) return resolve([]); + var remaining = args.length; + + function res(i, val) { + try { + if (val && (typeof val === 'object' || typeof val === 'function')) { + var then = val.then; + if (typeof then === 'function') { + then.call( + val, + function(val) { + res(i, val); + }, + reject + ); + return; + } + } + args[i] = val; + if (--remaining === 0) { + resolve(args); + } + } catch (ex) { + reject(ex); + } + } + + for (var i = 0; i < args.length; i++) { + res(i, args[i]); + } + }); + }; + + Promise$1.resolve = function(value) { + if (value && typeof value === 'object' && value.constructor === Promise$1) { + return value; + } + + return new Promise$1(function(resolve) { + resolve(value); + }); + }; + + Promise$1.reject = function(value) { + return new Promise$1(function(resolve, reject) { + reject(value); + }); + }; + + Promise$1.race = function(values) { + return new Promise$1(function(resolve, reject) { + for (var i = 0, len = values.length; i < len; i++) { + values[i].then(resolve, reject); + } + }); + }; + + // Use polyfill for setImmediate for performance gains + Promise$1._immediateFn = + (typeof setImmediate === 'function' && + function(fn) { + setImmediate(fn); + }) || + function(fn) { + setTimeoutFunc(fn, 0); + }; + + Promise$1._unhandledRejectionFn = function _unhandledRejectionFn(err) { + if (typeof console !== 'undefined' && console) { + console.warn('Possible Unhandled Promise Rejection:', err); // eslint-disable-line no-console + } + }; + + var Exports = + /*#__PURE__*/ + function () { + function Exports(ctx) { + _classCallCheck(this, Exports); + + this.ctx = ctx; + this.w = ctx.w; + } + + _createClass(Exports, [{ + key: "getSvgString", + value: function getSvgString() { + return this.w.globals.dom.Paper.svg(); + } + }, { + key: "cleanup", + value: function cleanup() { + var w = this.w; // hide some elements to avoid printing them on exported svg + + var xcrosshairs = w.globals.dom.baseEl.querySelector('.apexcharts-xcrosshairs'); + var ycrosshairs = w.globals.dom.baseEl.querySelector('.apexcharts-ycrosshairs'); + + if (xcrosshairs) { + xcrosshairs.setAttribute('x', -500); + } + + if (ycrosshairs) { + ycrosshairs.setAttribute('y1', -100); + ycrosshairs.setAttribute('y2', -100); + } + } + }, { + key: "svgUrl", + value: function svgUrl() { + this.cleanup(); + var svgData = this.getSvgString(); + var svgBlob = new Blob([svgData], { + type: 'image/svg+xml;charset=utf-8' + }); + return URL.createObjectURL(svgBlob); + } + }, { + key: "dataURI", + value: function dataURI() { + var _this = this; + + return new Promise$1(function (resolve) { + var w = _this.w; + + _this.cleanup(); + + var canvas = document.createElement('canvas'); + canvas.width = w.globals.svgWidth; + canvas.height = w.globals.svgHeight; + var canvasBg = w.config.chart.background === 'transparent' ? '#fff' : w.config.chart.background; + var ctx = canvas.getContext('2d'); + ctx.fillStyle = canvasBg; + ctx.fillRect(0, 0, canvas.width, canvas.height); + var DOMURL = window.URL || window.webkitURL || window; + var img = new Image(); + img.crossOrigin = 'anonymous'; + + var svgData = _this.getSvgString(); + + var svgUrl = 'data:image/svg+xml,' + encodeURIComponent(svgData); + + img.onload = function () { + ctx.drawImage(img, 0, 0); + DOMURL.revokeObjectURL(svgUrl); + var imgURI = canvas.toDataURL('image/png'); + resolve(imgURI); + }; + + img.src = svgUrl; + }); + } + }, { + key: "exportToSVG", + value: function exportToSVG() { + this.triggerDownload(this.svgUrl(), '.svg'); + } + }, { + key: "exportToPng", + value: function exportToPng() { + var _this2 = this; + + this.dataURI().then(function (imgURI) { + _this2.triggerDownload(imgURI, '.png'); + }); + } + }, { + key: "triggerDownload", + value: function triggerDownload(href, ext) { + var downloadLink = document.createElement('a'); + downloadLink.href = href; + downloadLink.download = this.w.globals.chartID + ext; + document.body.appendChild(downloadLink); + downloadLink.click(); + document.body.removeChild(downloadLink); + } + }]); + + return Exports; + }(); + + /** + * ApexCharts Grid Class for drawing Cartesian Grid. + * + * @module Grid + **/ + + var Grid = + /*#__PURE__*/ + function () { + function Grid(ctx) { + _classCallCheck(this, Grid); + + this.ctx = ctx; + this.w = ctx.w; + var w = this.w; + this.anim = new Animations(this.ctx); + this.xaxisLabels = w.globals.labels.slice(); + this.animX = w.config.grid.xaxis.lines.animate && w.config.chart.animations.enabled; + this.animY = w.config.grid.yaxis.lines.animate && w.config.chart.animations.enabled; + + if (w.globals.timelineLabels.length > 0) { + // timeline labels are there + this.xaxisLabels = w.globals.timelineLabels.slice(); + } + } // .when using sparklines or when showing no grid, we need to have a grid area which is reused at many places for other calculations as well + + + _createClass(Grid, [{ + key: "drawGridArea", + value: function drawGridArea() { + var elGrid = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + var w = this.w; + var graphics = new Graphics(this.ctx); + + if (elGrid === null) { + elGrid = graphics.group({ + class: 'apexcharts-grid' + }); + } + + var elVerticalLine = graphics.drawLine(w.globals.padHorizontal, 1, w.globals.padHorizontal, w.globals.gridHeight, 'transparent'); + var elHorzLine = graphics.drawLine(w.globals.padHorizontal, w.globals.gridHeight, w.globals.gridWidth, w.globals.gridHeight, 'transparent'); + elGrid.add(elHorzLine); + elGrid.add(elVerticalLine); + return elGrid; + } + }, { + key: "drawGrid", + value: function drawGrid() { + var w = this.w; + var xAxis = new XAxis(this.ctx); + var gl = this.w.globals; + var elgrid = null; + + if (gl.axisCharts) { + if (w.config.grid.show) { + // grid is drawn after xaxis and yaxis are drawn + elgrid = this.renderGrid(); + gl.dom.elGraphical.add(elgrid.el); + this.drawGridArea(elgrid.el); + } else { + var elgridArea = this.drawGridArea(); + gl.dom.elGraphical.add(elgridArea); + } + + if (elgrid !== null) { + xAxis.xAxisLabelCorrections(elgrid.xAxisTickWidth); + } + } + } // This mask will clip off overflowing graphics from the drawable area + + }, { + key: "createGridMask", + value: function createGridMask() { + var w = this.w; + var gl = w.globals; + var graphics = new Graphics(this.ctx); + var strokeSize = Array.isArray(w.config.stroke.width) ? 0 : w.config.stroke.width; + + if (Array.isArray(w.config.stroke.width)) { + var strokeMaxSize = 0; + w.config.stroke.width.forEach(function (m) { + strokeMaxSize = Math.max(strokeMaxSize, m); + }); + strokeSize = strokeMaxSize; + } + + gl.dom.elGridRectMask = document.createElementNS(gl.SVGNS, 'clipPath'); + gl.dom.elGridRectMask.setAttribute('id', "gridRectMask".concat(gl.cuid)); + gl.dom.elGridRectMarkerMask = document.createElementNS(gl.SVGNS, 'clipPath'); + gl.dom.elGridRectMarkerMask.setAttribute('id', "gridRectMarkerMask".concat(gl.cuid)); + gl.dom.elGridRect = graphics.drawRect(-strokeSize / 2, -strokeSize / 2, gl.gridWidth + strokeSize, gl.gridHeight + strokeSize, 0, '#fff'); + var coreUtils = new CoreUtils(this); + coreUtils.getLargestMarkerSize(); + var markerSize = w.globals.markers.largestSize + w.config.markers.hover.sizeOffset + 1; + gl.dom.elGridRectMarker = graphics.drawRect(-markerSize, -markerSize, gl.gridWidth + markerSize * 2, gl.gridHeight + markerSize * 2, 0, '#fff'); + gl.dom.elGridRectMask.appendChild(gl.dom.elGridRect.node); + gl.dom.elGridRectMarkerMask.appendChild(gl.dom.elGridRectMarker.node); + var defs = gl.dom.baseEl.querySelector('defs'); + defs.appendChild(gl.dom.elGridRectMask); + defs.appendChild(gl.dom.elGridRectMarkerMask); + } // actual grid rendering + + }, { + key: "renderGrid", + value: function renderGrid() { + var w = this.w; + var graphics = new Graphics(this.ctx); + var strokeDashArray = w.config.grid.strokeDashArray; + var elg = graphics.group({ + class: 'apexcharts-grid' + }); + var tickAmount = 8; + + for (var i = 0; i < w.globals.series.length; i++) { + if (typeof w.globals.yAxisScale[i] !== 'undefined') { + tickAmount = w.globals.yAxisScale[i].result.length - 1; + } + + if (tickAmount > 2) break; + } + + var xCount; + var inversedGrid = !!(w.config.plotOptions.bar.horizontal && w.config.chart.type === 'bar'); + + if (!inversedGrid) { + xCount = this.xaxisLabels.length; // draw vertical lines + + if (w.config.grid.xaxis.lines.show || w.config.xaxis.axisTicks.show) { + var x1 = w.globals.padHorizontal; + var y1 = 0; + var x2; + var y2 = w.globals.gridHeight; + + if (w.globals.timelineLabels.length > 0) { + for (var _i = 0; _i < xCount; _i++) { + x1 = this.xaxisLabels[_i].position; + x2 = this.xaxisLabels[_i].position; + + if (w.config.grid.xaxis.lines.show && x1 > 0 && x1 < w.globals.gridWidth) { + var line = graphics.drawLine(x1, y1, x2, y2, w.config.grid.borderColor, strokeDashArray); + line.node.classList.add('apexcharts-gridline'); + elg.add(line); + + if (this.animX) { + this.animateLine(line, { + x1: 0, + x2: 0 + }, { + x1: x1, + x2: x2 + }); + } + } + + var xAxis = new XAxis(this.ctx); + xAxis.drawXaxisTicks(x1, elg); + } + } else { + var xCountForCategoryCharts = xCount; + + for (var _i2 = 0; _i2 < xCountForCategoryCharts; _i2++) { + var x1Count = xCountForCategoryCharts; + + if (w.globals.isXNumeric && w.config.chart.type !== 'bar') { + x1Count -= 1; + } + + x1 = x1 + w.globals.gridWidth / x1Count; + x2 = x1; // skip the last line + + if (_i2 === x1Count - 1) break; + + if (w.config.grid.xaxis.lines.show) { + var _line = graphics.drawLine(x1, y1, x2, y2, w.config.grid.borderColor, strokeDashArray); + + _line.node.classList.add('apexcharts-gridline'); + + elg.add(_line); + + if (this.animX) { + this.animateLine(_line, { + x1: 0, + x2: 0 + }, { + x1: x1, + x2: x2 + }); + } + } + + var _xAxis = new XAxis(this.ctx); + + _xAxis.drawXaxisTicks(x1, elg); + } + } + } // draw horizontal lines + + + if (w.config.grid.yaxis.lines.show) { + var _x = 0; + var _y = 0; + var _y2 = 0; + var _x2 = w.globals.gridWidth; + + for (var _i3 = 0; _i3 < tickAmount + 1; _i3++) { + var _line2 = graphics.drawLine(_x, _y, _x2, _y2, w.config.grid.borderColor, strokeDashArray); + + elg.add(_line2); + + _line2.node.classList.add('apexcharts-gridline'); + + if (this.animY) { + this.animateLine(_line2, { + y1: _y + 20, + y2: _y2 + 20 + }, { + y1: _y, + y2: _y2 + }); + } + + _y = _y + w.globals.gridHeight / tickAmount; + _y2 = _y; + } + } + } else { + xCount = tickAmount; // draw vertical lines + + if (w.config.grid.xaxis.lines.show || w.config.xaxis.axisTicks.show) { + var _x3 = w.globals.padHorizontal; + var _y3 = 0; + + var _x4; + + var _y4 = w.globals.gridHeight; + + for (var _i4 = 0; _i4 < xCount + 1; _i4++) { + _x3 = _x3 + w.globals.gridWidth / xCount + 0.3; + _x4 = _x3; // skip the last vertical line + + if (_i4 === xCount - 1) break; + + if (w.config.grid.xaxis.lines.show) { + var _line3 = graphics.drawLine(_x3, _y3, _x4, _y4, w.config.grid.borderColor, strokeDashArray); + + _line3.node.classList.add('apexcharts-gridline'); + + elg.add(_line3); + + if (this.animX) { + this.animateLine(_line3, { + x1: 0, + x2: 0 + }, { + x1: _x3, + x2: _x4 + }); + } + } // skip the first vertical line + + + var _xAxis2 = new XAxis(this.ctx); + + _xAxis2.drawXaxisTicks(_x3, elg); + } + } // draw horizontal lines + + + if (w.config.grid.yaxis.lines.show) { + var _x5 = 0; + var _y5 = 0; + var _y6 = 0; + var _x6 = w.globals.gridWidth; + + for (var _i5 = 0; _i5 < w.globals.dataPoints + 1; _i5++) { + var _line4 = graphics.drawLine(_x5, _y5, _x6, _y6, w.config.grid.borderColor, strokeDashArray); + + elg.add(_line4); + + _line4.node.classList.add('apexcharts-gridline'); + + if (this.animY) { + this.animateLine(_line4, { + y1: _y5 + 20, + y2: _y6 + 20 + }, { + y1: _y5, + y2: _y6 + }); + } + + _y5 = _y5 + w.globals.gridHeight / w.globals.dataPoints; + _y6 = _y5; + } + } + } + + this.drawGridBands(elg, xCount, tickAmount); + return { + el: elg, + xAxisTickWidth: w.globals.gridWidth / xCount + }; + } + }, { + key: "drawGridBands", + value: function drawGridBands(elg, xCount, tickAmount) { + var w = this.w; + var graphics = new Graphics(this.ctx); // rows background bands + + if (w.config.grid.row.colors !== undefined && w.config.grid.row.colors.length > 0) { + var x1 = 0; + var y1 = 0; + var y2 = w.globals.gridHeight / tickAmount; + var x2 = w.globals.gridWidth; + + for (var i = 0, c = 0; i < tickAmount; i++, c++) { + if (c >= w.config.grid.row.colors.length) { + c = 0; + } + + var color = w.config.grid.row.colors[c]; + var rect = graphics.drawRect(x1, y1, x2, y2, 0, color, w.config.grid.row.opacity); + elg.add(rect); + rect.node.classList.add('apexcharts-gridRow'); + y1 = y1 + w.globals.gridHeight / tickAmount; + } + } // columns background bands + + + if (w.config.grid.column.colors !== undefined && w.config.grid.column.colors.length > 0) { + var _x7 = w.globals.padHorizontal; + var _y7 = 0; + + var _x8 = w.globals.padHorizontal + w.globals.gridWidth / xCount; + + var _y8 = w.globals.gridHeight; + + for (var _i6 = 0, _c = 0; _i6 < xCount; _i6++, _c++) { + if (_c >= w.config.grid.column.colors.length) { + _c = 0; + } + + var _color = w.config.grid.column.colors[_c]; + + var _rect = graphics.drawRect(_x7, _y7, _x8, _y8, 0, _color, w.config.grid.column.opacity); + + _rect.node.classList.add('apexcharts-gridColumn'); + + elg.add(_rect); + _x7 = _x7 + w.globals.gridWidth / xCount; + } + } + } + }, { + key: "animateLine", + value: function animateLine(line, from, to) { + var w = this.w; + var initialAnim = w.config.chart.animations; + + if (initialAnim && !w.globals.resized && !w.globals.dataChanged) { + var speed = initialAnim.speed; + this.anim.animateLine(line, from, to, speed); + } + } + }]); + + return Grid; + }(); + + /** + * ApexCharts Legend Class to draw legend. + * + * @module Legend + **/ + + var Legend = + /*#__PURE__*/ + function () { + function Legend(ctx, opts) { + _classCallCheck(this, Legend); + + this.ctx = ctx; + this.w = ctx.w; + this.onLegendClick = this.onLegendClick.bind(this); + this.onLegendHovered = this.onLegendHovered.bind(this); + } + + _createClass(Legend, [{ + key: "init", + value: function init() { + var w = this.w; + var gl = w.globals; + var cnf = w.config; + var showLegendAlways = cnf.legend.showForSingleSeries && gl.series.length === 1 || gl.series.length > 1; + + if ((showLegendAlways || !gl.axisCharts) && cnf.legend.show) { + while (gl.dom.elLegendWrap.firstChild) { + gl.dom.elLegendWrap.removeChild(gl.dom.elLegendWrap.firstChild); + } + + this.drawLegends(); + + if (!Utils.isIE11()) { + this.appendToForeignObject(); + } else { + // IE11 doesn't supports foreignObject, hence append it to + document.getElementsByTagName('head')[0].appendChild(this.getLegendStyles()); + } + + if (cnf.legend.position === 'bottom' || cnf.legend.position === 'top') { + this.legendAlignHorizontal(); + } else if (cnf.legend.position === 'right' || cnf.legend.position === 'left') { + this.legendAlignVertical(); + } + } + } + }, { + key: "appendToForeignObject", + value: function appendToForeignObject() { + var gl = this.w.globals; + var elForeign = document.createElementNS(gl.SVGNS, 'foreignObject'); + elForeign.setAttribute('x', 0); + elForeign.setAttribute('y', 0); + elForeign.setAttribute('width', gl.svgWidth); + elForeign.setAttribute('height', gl.svgHeight); + gl.dom.elLegendWrap.setAttribute('xmlns', 'http://www.w3.org/1999/xhtml'); + elForeign.appendChild(gl.dom.elLegendWrap); + elForeign.appendChild(this.getLegendStyles()); + gl.dom.Paper.node.insertBefore(elForeign, gl.dom.elGraphical.node); + } + }, { + key: "drawLegends", + value: function drawLegends() { + var self = this; + var w = this.w; + var fontFamily = w.config.legend.fontFamily; + var legendNames = w.globals.seriesNames; + var fillcolor = w.globals.colors.slice(); + + if (w.config.chart.type === 'heatmap') { + var ranges = w.config.plotOptions.heatmap.colorScale.ranges; + legendNames = ranges.map(function (colorScale) { + return colorScale.name ? colorScale.name : colorScale.from + ' - ' + colorScale.to; + }); + fillcolor = ranges.map(function (color) { + return color.color; + }); + } + + var legendFormatter = w.globals.legendFormatter; + + for (var i = 0; i <= legendNames.length - 1; i++) { + var text = legendFormatter(legendNames[i], { + seriesIndex: i, + w: w + }); + var collapsedSeries = false; + var ancillaryCollapsedSeries = false; + + if (w.globals.collapsedSeries.length > 0) { + for (var c = 0; c < w.globals.collapsedSeries.length; c++) { + if (w.globals.collapsedSeries[c].index === i) { + collapsedSeries = true; + } + } + } + + if (w.globals.ancillaryCollapsedSeriesIndices.length > 0) { + for (var _c = 0; _c < w.globals.ancillaryCollapsedSeriesIndices.length; _c++) { + if (w.globals.ancillaryCollapsedSeriesIndices[_c] === i) { + ancillaryCollapsedSeries = true; + } + } + } + + var elMarker = document.createElement('span'); + elMarker.classList.add('apexcharts-legend-marker'); + var mOffsetX = w.config.legend.markers.offsetX; + var mOffsetY = w.config.legend.markers.offsetY; + var mHeight = w.config.legend.markers.height; + var mWidth = w.config.legend.markers.width; + var mBorderWidth = w.config.legend.markers.strokeWidth; + var mBorderColor = w.config.legend.markers.strokeColor; + var mBorderRadius = w.config.legend.markers.radius; + var mStyle = elMarker.style; + mStyle.background = fillcolor[i]; + mStyle.color = fillcolor[i]; + mStyle.height = Array.isArray(mHeight) ? parseFloat(mHeight[i]) + 'px' : parseFloat(mHeight) + 'px'; + mStyle.width = Array.isArray(mWidth) ? parseFloat(mWidth[i]) + 'px' : parseFloat(mWidth) + 'px'; + mStyle.left = Array.isArray(mOffsetX) ? mOffsetX[i] : mOffsetX; + mStyle.top = Array.isArray(mOffsetY) ? mOffsetY[i] : mOffsetY; + mStyle.borderWidth = Array.isArray(mBorderWidth) ? mBorderWidth[i] : mBorderWidth; + mStyle.borderColor = Array.isArray(mBorderColor) ? mBorderColor[i] : mBorderColor; + mStyle.borderRadius = Array.isArray(mBorderRadius) ? parseFloat(mBorderRadius[i]) + 'px' : parseFloat(mBorderRadius) + 'px'; + + if (w.config.legend.markers.customHTML) { + if (Array.isArray(w.config.legend.markers.customHTML)) { + elMarker.innerHTML = w.config.legend.markers.customHTML[i](); + } else { + elMarker.innerHTML = w.config.legend.markers.customHTML(); + } + } + + Graphics.setAttrs(elMarker, { + rel: i + 1, + 'data:collapsed': collapsedSeries || ancillaryCollapsedSeries + }); + + if (collapsedSeries || ancillaryCollapsedSeries) { + elMarker.classList.add('inactive-legend'); + } + + var elLegend = document.createElement('div'); + var elLegendText = document.createElement('span'); + elLegendText.classList.add('apexcharts-legend-text'); + elLegendText.innerHTML = text; + var textColor = w.config.legend.labels.useSeriesColors ? w.globals.colors[i] : w.config.legend.labels.colors; + + if (!textColor) { + textColor = w.config.chart.foreColor; + } + + elLegendText.style.color = textColor; + elLegendText.style.fontSize = parseFloat(w.config.legend.fontSize) + 'px'; + elLegendText.style.fontFamily = fontFamily || w.config.chart.fontFamily; + Graphics.setAttrs(elLegendText, { + rel: i + 1, + 'data:collapsed': collapsedSeries || ancillaryCollapsedSeries + }); + elLegend.appendChild(elMarker); + elLegend.appendChild(elLegendText); + var coreUtils = new CoreUtils(this.ctx); + + if (!w.config.legend.showForZeroSeries) { + var total = coreUtils.getSeriesTotalByIndex(i); + + if (total === 0 && coreUtils.seriesHaveSameValues(i) && !coreUtils.isSeriesNull(i) && w.globals.collapsedSeriesIndices.indexOf(i) === -1 && w.globals.ancillaryCollapsedSeriesIndices.indexOf(i) === -1) { + elLegend.classList.add('apexcharts-hidden-zero-series'); + } + } + + if (!w.config.legend.showForNullSeries) { + if (coreUtils.isSeriesNull(i) && w.globals.collapsedSeriesIndices.indexOf(i) === -1 && w.globals.ancillaryCollapsedSeriesIndices.indexOf(i) === -1) { + elLegend.classList.add('apexcharts-hidden-null-series'); + } + } + + w.globals.dom.elLegendWrap.appendChild(elLegend); + w.globals.dom.elLegendWrap.classList.add(w.config.legend.horizontalAlign); // w.globals.dom.elLegendWrap.classList.add(w.config.legend.verticalAlign) + + w.globals.dom.elLegendWrap.classList.add('position-' + w.config.legend.position); + elLegend.classList.add('apexcharts-legend-series'); + elLegend.style.margin = "".concat(w.config.legend.itemMargin.horizontal, "px ").concat(w.config.legend.itemMargin.vertical, "px"); + w.globals.dom.elLegendWrap.style.width = w.config.legend.width ? w.config.legend.width + 'px' : ''; + w.globals.dom.elLegendWrap.style.height = w.config.legend.height ? w.config.legend.height + 'px' : ''; + Graphics.setAttrs(elLegend, { + rel: i + 1, + 'data:collapsed': collapsedSeries || ancillaryCollapsedSeries + }); + + if (collapsedSeries || ancillaryCollapsedSeries) { + elLegend.classList.add('inactive-legend'); + } + + if (!w.config.legend.onItemClick.toggleDataSeries) { + elLegend.classList.add('no-click'); + } + } // for now - just prevent click on heatmap legend - and allow hover only + + + var clickAllowed = w.config.chart.type !== 'heatmap'; + + if (clickAllowed && w.config.legend.onItemClick.toggleDataSeries) { + w.globals.dom.elWrap.addEventListener('click', self.onLegendClick, true); + } + + if (w.config.legend.onItemHover.highlightDataSeries) { + w.globals.dom.elWrap.addEventListener('mousemove', self.onLegendHovered, true); + w.globals.dom.elWrap.addEventListener('mouseout', self.onLegendHovered, true); + } + } + }, { + key: "getLegendBBox", + value: function getLegendBBox() { + var w = this.w; + var currLegendsWrap = w.globals.dom.baseEl.querySelector('.apexcharts-legend'); + var currLegendsWrapRect = currLegendsWrap.getBoundingClientRect(); + var currLegendsWrapWidth = currLegendsWrapRect.width; + var currLegendsWrapHeight = currLegendsWrapRect.height; + return { + clwh: currLegendsWrapHeight, + clww: currLegendsWrapWidth + }; + } + }, { + key: "setLegendWrapXY", + value: function setLegendWrapXY(offsetX, offsetY) { + var w = this.w; + var elLegendWrap = w.globals.dom.baseEl.querySelector('.apexcharts-legend'); + var legendRect = elLegendWrap.getBoundingClientRect(); + var x = 0; + var y = 0; + + if (w.config.legend.position === 'bottom') { + y = y + (w.globals.svgHeight - legendRect.height / 2); + } else if (w.config.legend.position === 'top') { + var dim = new Dimensions(this.ctx); + var titleH = dim.getTitleSubtitleCoords('title').height; + var subtitleH = dim.getTitleSubtitleCoords('subtitle').height; + y = y + (titleH > 0 ? titleH - 10 : 0) + (subtitleH > 0 ? subtitleH - 10 : 0); + } + + elLegendWrap.style.position = 'absolute'; + x = x + offsetX + w.config.legend.offsetX; + y = y + offsetY + w.config.legend.offsetY; + elLegendWrap.style.left = x + 'px'; + elLegendWrap.style.top = y + 'px'; + + if (w.config.legend.position === 'bottom') { + elLegendWrap.style.top = 'auto'; + elLegendWrap.style.bottom = 10 + w.config.legend.offsetY + 'px'; + } else if (w.config.legend.position === 'right') { + elLegendWrap.style.left = 'auto'; + elLegendWrap.style.right = 25 + w.config.legend.offsetX + 'px'; + } + + if (elLegendWrap.style.width) { + elLegendWrap.style.width = parseInt(w.config.legend.width) + 'px'; + } + + if (elLegendWrap.style.height) { + elLegendWrap.style.height = parseInt(w.config.legend.height) + 'px'; + } + } + }, { + key: "legendAlignHorizontal", + value: function legendAlignHorizontal() { + var w = this.w; + var elLegendWrap = w.globals.dom.baseEl.querySelector('.apexcharts-legend'); + elLegendWrap.style.right = 0; + var lRect = this.getLegendBBox(); + var dimensions = new Dimensions(this.ctx); + var titleRect = dimensions.getTitleSubtitleCoords('title'); + var subtitleRect = dimensions.getTitleSubtitleCoords('subtitle'); + var offsetX = 20; + var offsetY = 0; // the whole legend box is set to bottom + + if (w.config.legend.position === 'bottom') { + offsetY = -lRect.clwh / 1.8; + } else if (w.config.legend.position === 'top') { + offsetY = titleRect.height + subtitleRect.height + w.config.title.margin + w.config.subtitle.margin - 15; + } + + this.setLegendWrapXY(offsetX, offsetY); + } + }, { + key: "legendAlignVertical", + value: function legendAlignVertical() { + var w = this.w; + var lRect = this.getLegendBBox(); + var offsetY = 20; + var offsetX = 0; + + if (w.config.legend.position === 'left') { + offsetX = 20; + } + + if (w.config.legend.position === 'right') { + offsetX = w.globals.svgWidth - lRect.clww - 10; + } + + this.setLegendWrapXY(offsetX, offsetY); + } + }, { + key: "onLegendHovered", + value: function onLegendHovered(e) { + var w = this.w; + var hoverOverLegend = e.target.classList.contains('apexcharts-legend-text') || e.target.classList.contains('apexcharts-legend-marker'); + + if (w.config.chart.type !== 'heatmap') { + if (!e.target.classList.contains('inactive-legend') && hoverOverLegend) { + var series = new Series(this.ctx); + series.toggleSeriesOnHover(e, e.target); + } + } else { + // for heatmap handling + if (hoverOverLegend) { + var seriesCnt = parseInt(e.target.getAttribute('rel')) - 1; + this.ctx.fireEvent('legendHover', [this.ctx, seriesCnt, this.w]); + + var _series = new Series(this.ctx); + + _series.highlightRangeInSeries(e, e.target); + } + } + } + }, { + key: "onLegendClick", + value: function onLegendClick(e) { + if (e.target.classList.contains('apexcharts-legend-text') || e.target.classList.contains('apexcharts-legend-marker')) { + var seriesCnt = parseInt(e.target.getAttribute('rel')) - 1; + var isHidden = e.target.getAttribute('data:collapsed') === 'true'; + var legendClick = this.w.config.chart.events.legendClick; + + if (typeof legendClick === 'function') { + legendClick(this.ctx, seriesCnt, this.w); + } + + this.ctx.fireEvent('legendClick', [this.ctx, seriesCnt, this.w]); + var markerClick = this.w.config.legend.markers.onClick; + + if (typeof markerClick === 'function' && e.target.classList.contains('apexcharts-legend-marker')) { + markerClick(this.ctx, seriesCnt, this.w); + this.ctx.fireEvent('legendMarkerClick', [this.ctx, seriesCnt, this.w]); + } + + this.toggleDataSeries(seriesCnt, isHidden); + } + } + }, { + key: "getLegendStyles", + value: function getLegendStyles() { + var stylesheet = document.createElement('style'); + stylesheet.setAttribute('type', 'text/css'); + var text = "\n \n .apexcharts-legend {\n display: flex;\n overflow: auto;\n padding: 0 10px;\n }\n\n .apexcharts-legend.position-bottom, .apexcharts-legend.position-top {\n flex-wrap: wrap\n }\n .apexcharts-legend.position-right, .apexcharts-legend.position-left {\n flex-direction: column;\n bottom: 0;\n }\n\n .apexcharts-legend.position-bottom.left, .apexcharts-legend.position-top.left, .apexcharts-legend.position-right, .apexcharts-legend.position-left {\n justify-content: flex-start;\n }\n\n .apexcharts-legend.position-bottom.center, .apexcharts-legend.position-top.center {\n justify-content: center; \n }\n\n .apexcharts-legend.position-bottom.right, .apexcharts-legend.position-top.right {\n justify-content: flex-end;\n }\n\n .apexcharts-legend-series {\n cursor: pointer;\n line-height: normal;\n }\n\n .apexcharts-legend.position-bottom .apexcharts-legend-series, .apexcharts-legend.position-top .apexcharts-legend-series{\n display: flex;\n align-items: center;\n }\n\n .apexcharts-legend-text {\n position: relative;\n font-size: 14px;\n }\n\n .apexcharts-legend-text *, .apexcharts-legend-marker * {\n pointer-events: none;\n }\n\n .apexcharts-legend-marker {\n position: relative;\n display: inline-block;\n cursor: pointer;\n margin-right: 3px;\n }\n \n .apexcharts-legend.right .apexcharts-legend-series, .apexcharts-legend.left .apexcharts-legend-series{\n display: inline-block;\n }\n\n .apexcharts-legend-series.no-click {\n cursor: auto;\n }\n\n .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\n display: none !important;\n }\n\n .inactive-legend {\n opacity: 0.45;\n }"; + var rules = document.createTextNode(text); + stylesheet.appendChild(rules); + return stylesheet; + } + }, { + key: "resetToggleDataSeries", + value: function resetToggleDataSeries() { + var w = this.w; + var seriesEls = null; + var realIndexes = []; + + if (w.globals.axisCharts) { + seriesEls = w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex]"); + seriesEls.forEach(function (v) { + realIndexes.push(parseInt(v.getAttribute('data:realIndex'))); + }); + } else { + seriesEls = w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[rel]"); + seriesEls.forEach(function (v) { + realIndexes.push(parseInt(v.getAttribute('rel')) - 1); + }); + } + + realIndexes.sort(); + + if (w.globals.collapsedSeries.length > 0) { + var risingSeries = w.globals.risingSeries.slice(); + var series = w.config.series.slice(); + + for (var c = 0; c < w.globals.collapsedSeries.length; c++) { + var index = realIndexes.indexOf(w.globals.collapsedSeries[c].index); + + if (index !== -1) { + if (w.globals.axisCharts) { + series[index].data = w.globals.collapsedSeries.slice()[c].data.slice(); + } else { + series[index] = w.globals.collapsedSeries.slice()[c].data; + } + + risingSeries.push(index); + } + } + + w.globals.collapsedSeries = []; + w.globals.ancillaryCollapsedSeries = []; + w.globals.collapsedSeriesIndices = []; + w.globals.ancillaryCollapsedSeriesIndices = []; + w.globals.risingSeries = risingSeries; + w.config.series = series; + + this.ctx._updateSeries(w.config.series, w.config.chart.animations.dynamicAnimation.enabled); + } + } + }, { + key: "toggleDataSeries", + value: function toggleDataSeries(seriesCnt, isHidden) { + var w = this.w; + + if (w.globals.axisCharts || w.config.chart.type === 'radialBar') { + w.globals.resized = true; // we don't want initial animations again + + var seriesEl = null; + var realIndex = null; // yes, make it null. 1 series will rise at a time + + w.globals.risingSeries = []; + + if (w.globals.axisCharts) { + seriesEl = w.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(seriesCnt, "']")); + realIndex = parseInt(seriesEl.getAttribute('data:realIndex')); + } else { + seriesEl = w.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(seriesCnt + 1, "']")); + realIndex = parseInt(seriesEl.getAttribute('rel')) - 1; + } + + if (isHidden) { + this.riseCollapsedSeries(w.globals.collapsedSeries, w.globals.collapsedSeriesIndices, realIndex); + this.riseCollapsedSeries(w.globals.ancillaryCollapsedSeries, w.globals.ancillaryCollapsedSeriesIndices, realIndex); + } else { + if (w.globals.axisCharts) { + var shouldNotHideYAxis = false; + + if (w.config.yaxis[realIndex] && w.config.yaxis[realIndex].show && w.config.yaxis[realIndex].showAlways) { + shouldNotHideYAxis = true; + + if (w.globals.ancillaryCollapsedSeriesIndices.indexOf(realIndex) < 0) { + w.globals.ancillaryCollapsedSeries.push({ + index: realIndex, + data: w.config.series[realIndex].data.slice(), + type: seriesEl.parentNode.className.baseVal.split('-')[1] + }); + w.globals.ancillaryCollapsedSeriesIndices.push(realIndex); + } + } + + if (!shouldNotHideYAxis) { + w.globals.collapsedSeries.push({ + index: realIndex, + data: w.config.series[realIndex].data.slice(), + type: seriesEl.parentNode.className.baseVal.split('-')[1] + }); + w.globals.collapsedSeriesIndices.push(realIndex); + var removeIndexOfRising = w.globals.risingSeries.indexOf(realIndex); + w.globals.risingSeries.splice(removeIndexOfRising, 1); + } // TODO: AVOID mutating the user's config object below + + + w.config.series[realIndex].data = []; + } else { + w.globals.collapsedSeries.push({ + index: realIndex, + data: w.config.series[realIndex] + }); + w.globals.collapsedSeriesIndices.push(realIndex); + w.config.series[realIndex] = 0; + } + + var seriesChildren = seriesEl.childNodes; + + for (var sc = 0; sc < seriesChildren.length; sc++) { + if (seriesChildren[sc].classList.contains('apexcharts-series-markers-wrap')) { + if (seriesChildren[sc].classList.contains('apexcharts-hide')) { + seriesChildren[sc].classList.remove('apexcharts-hide'); + } else { + seriesChildren[sc].classList.add('apexcharts-hide'); + } + } + } + + w.globals.allSeriesCollapsed = w.globals.collapsedSeries.length === w.globals.series.length; + + this.ctx._updateSeries(w.config.series, w.config.chart.animations.dynamicAnimation.enabled); + } + } else { + // for non-axis charts i.e pie / donuts + var _seriesEl = w.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(seriesCnt + 1, "'] path")); + + _seriesEl.fire('click'); + } + } + }, { + key: "riseCollapsedSeries", + value: function riseCollapsedSeries(series, seriesIndices, realIndex) { + var w = this.w; + + if (series.length > 0) { + for (var c = 0; c < series.length; c++) { + if (series[c].index === realIndex) { + if (w.globals.axisCharts) { + w.config.series[realIndex].data = series[c].data.slice(); + series.splice(c, 1); + seriesIndices.splice(c, 1); + w.globals.risingSeries.push(realIndex); + } else { + w.config.series[realIndex] = series[c].data; + series.splice(c, 1); + seriesIndices.splice(c, 1); + w.globals.risingSeries.push(realIndex); + } + + this.ctx._updateSeries(w.config.series, w.config.chart.animations.dynamicAnimation.enabled); + } + } + } + } + }]); + + return Legend; + }(); + + /** + * ApexCharts Responsive Class to override options for different screen sizes. + * + * @module Responsive + **/ + + var Responsive = + /*#__PURE__*/ + function () { + function Responsive(ctx) { + _classCallCheck(this, Responsive); + + this.ctx = ctx; + this.w = ctx.w; + } // the opts parameter if not null has to be set overriding everything + // as the opts is set by user externally + + + _createClass(Responsive, [{ + key: "checkResponsiveConfig", + value: function checkResponsiveConfig(opts) { + var _this = this; + + var w = this.w; + var cnf = w.config; // check if responsive config exists + + if (cnf.responsive.length === 0) return; + var res = cnf.responsive.slice(); + res.sort(function (a, b) { + return a.breakpoint > b.breakpoint ? 1 : b.breakpoint > a.breakpoint ? -1 : 0; + }).reverse(); + var config = new Config({}); + + var iterateResponsiveOptions = function iterateResponsiveOptions() { + var newOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; + var largestBreakpoint = res[0].breakpoint; + var width = window.innerWidth > 0 ? window.innerWidth : screen.width; + + if (width > largestBreakpoint) { + var options = CoreUtils.extendArrayProps(config, w.globals.initialConfig); + newOptions = Utils.extend(options, newOptions); + newOptions = Utils.extend(w.config, newOptions); + + _this.overrideResponsiveOptions(newOptions); + } else { + for (var i = 0; i < res.length; i++) { + if (width < res[i].breakpoint) { + newOptions = Utils.extend(config, newOptions); + newOptions = CoreUtils.extendArrayProps(newOptions, res[i].options); + newOptions = Utils.extend(w.config, newOptions); + + _this.overrideResponsiveOptions(newOptions); + } + } + } + }; + + if (opts) { + var options = CoreUtils.extendArrayProps(config, opts); + options = Utils.extend(w.config, options); + options = Utils.extend(options, opts); + iterateResponsiveOptions(options); + } else { + iterateResponsiveOptions({}); + } + } + }, { + key: "overrideResponsiveOptions", + value: function overrideResponsiveOptions(newOptions) { + var newConfig = new Config(newOptions).init(); + this.w.config = newConfig; + } + }]); + + return Responsive; + }(); + + /** + * ApexCharts Theme Class for setting the colors and palettes. + * + * @module Theme + **/ + + var Theme = + /*#__PURE__*/ + function () { + function Theme(ctx) { + _classCallCheck(this, Theme); + + this.ctx = ctx; + this.w = ctx.w; + this.colors = []; + } + + _createClass(Theme, [{ + key: "init", + value: function init() { + this.setDefaultColors(); + } + }, { + key: "setDefaultColors", + value: function setDefaultColors() { + var w = this.w; + var utils = new Utils(); + + if (w.config.colors === undefined) { + w.globals.colors = this.predefined(); + } else { + w.globals.colors = w.config.colors; + } + + if (w.config.theme.monochrome.enabled) { + var monoArr = []; + var glsCnt = w.globals.series.length; + + if (w.config.plotOptions.bar.distributed && w.config.chart.type === 'bar') { + glsCnt = w.globals.series[0].length * w.globals.series.length; + } + + var mainColor = w.config.theme.monochrome.color; + var part = 1 / (glsCnt / w.config.theme.monochrome.shadeIntensity); + var shade = w.config.theme.monochrome.shadeTo; + var percent = 0; + + for (var gsl = 0; gsl < glsCnt; gsl++) { + var newColor = void 0; + + if (shade === 'dark') { + newColor = utils.shadeColor(percent * -1, mainColor); + percent = percent + part; + } else { + newColor = utils.shadeColor(percent, mainColor); + percent = percent + part; + } + + monoArr.push(newColor); + } + + w.globals.colors = monoArr.slice(); + } + + var defaultColors = w.globals.colors.slice(); // if user specfied less colors than no. of series, push the same colors again + + this.pushExtraColors(w.globals.colors); // The Border colors + + if (w.config.stroke.colors === undefined) { + w.globals.stroke.colors = defaultColors; + } else { + w.globals.stroke.colors = w.config.stroke.colors; + } + + this.pushExtraColors(w.globals.stroke.colors); // The FILL colors + + if (w.config.fill.colors === undefined) { + w.globals.fill.colors = defaultColors; + } else { + w.globals.fill.colors = w.config.fill.colors; + } + + this.pushExtraColors(w.globals.fill.colors); + + if (w.config.dataLabels.style.colors === undefined) { + w.globals.dataLabels.style.colors = defaultColors; + } else { + w.globals.dataLabels.style.colors = w.config.dataLabels.style.colors; + } + + this.pushExtraColors(w.globals.dataLabels.style.colors, 50); + + if (w.config.plotOptions.radar.polygons.fill.colors === undefined) { + w.globals.radarPolygons.fill.colors = ['#fff']; + } else { + w.globals.radarPolygons.fill.colors = w.config.plotOptions.radar.polygons.fill.colors; + } + + this.pushExtraColors(w.globals.radarPolygons.fill.colors, 20); // The point colors + + if (w.config.markers.colors === undefined) { + w.globals.markers.colors = defaultColors; + } else { + w.globals.markers.colors = w.config.markers.colors; + } + + this.pushExtraColors(w.globals.markers.colors); + } // When the number of colors provided is less than the number of series, this method + // will push same colors to the list + // params: + // distributed is only valid for distributed column/bar charts + + }, { + key: "pushExtraColors", + value: function pushExtraColors(colorSeries, length) { + var distributed = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + var w = this.w; + var len = length || w.globals.series.length; + + if (distributed === null) { + distributed = w.config.chart.type === 'bar' && w.config.plotOptions.bar.distributed || w.config.chart.type === 'heatmap' && w.config.plotOptions.heatmap.colorScale.inverse; + } + + if (distributed) { + len = w.globals.series[0].length * w.globals.series.length; + } + + if (colorSeries.length < len) { + var diff = len - colorSeries.length; + + for (var i = 0; i < diff; i++) { + colorSeries.push(colorSeries[i]); + } + } + } + }, { + key: "predefined", + value: function predefined() { + var palette = this.w.config.theme.palette; // D6E3F8, FCEFEF, DCE0D9, A5978B, EDDDD4, D6E3F8, FEF5EF + + switch (palette) { + case 'palette1': + this.colors = ['#008FFB', '#00E396', '#FEB019', '#FF4560', '#775DD0']; + break; + + case 'palette2': + this.colors = ['#3f51b5', '#03a9f4', '#4caf50', '#f9ce1d', '#FF9800']; + break; + + case 'palette3': + this.colors = ['#33b2df', '#546E7A', '#d4526e', '#13d8aa', '#A5978B']; + break; + + case 'palette4': + this.colors = ['#546E7A', '#4ecdc4', '#c7f464', '#81D4FA', '#fd6a6a']; + break; + + case 'palette5': + this.colors = ['#2b908f', '#f9a3a4', '#90ee7e', '#fa4443', '#69d2e7']; + break; + + case 'palette6': + this.colors = ['#449DD1', '#F86624', '#EA3546', '#662E9B', '#C5D86D']; + break; + + case 'palette7': + this.colors = ['#D7263D', '#1B998B', '#2E294E', '#F46036', '#E2C044']; + break; + + case 'palette8': + this.colors = ['#662E9B', '#F86624', '#F9C80E', '#EA3546', '#43BCCD']; + break; + + case 'palette9': + this.colors = ['#5C4742', '#A5978B', '#8D5B4C', '#5A2A27', '#C4BBAF']; + break; + + case 'palette10': + this.colors = ['#A300D6', '#7D02EB', '#5653FE', '#2983FF', '#00B1F2']; + break; + + default: + this.colors = ['#008FFB', '#00E396', '#FEB019', '#FF4560', '#775DD0']; + break; + } + + return this.colors; + } + }]); + + return Theme; + }(); + + var Utils$1 = + /*#__PURE__*/ + function () { + function Utils(tooltipContext) { + _classCallCheck(this, Utils); + + this.w = tooltipContext.w; + this.ttCtx = tooltipContext; + this.ctx = tooltipContext.ctx; + } + /** + ** When hovering over series, you need to capture which series is being hovered on. + ** This function will return both capturedseries index as well as inner index of that series + * @memberof Utils + * @param {object} + * - hoverArea = the rect on which user hovers + * - elGrid = dimensions of the hover rect (it can be different than hoverarea) + */ + + + _createClass(Utils, [{ + key: "getNearestValues", + value: function getNearestValues(_ref) { + var hoverArea = _ref.hoverArea, + elGrid = _ref.elGrid, + clientX = _ref.clientX, + clientY = _ref.clientY, + hasBars = _ref.hasBars; + var w = this.w; + var hoverWidth = w.globals.gridWidth; + var xDivisor = hoverWidth / (w.globals.dataPoints - 1); + var seriesBound = elGrid.getBoundingClientRect(); + + if (hasBars && w.globals.comboCharts || hasBars) { + xDivisor = hoverWidth / w.globals.dataPoints; + } + + var hoverX = clientX - seriesBound.left; + var hoverY = clientY - seriesBound.top; + var inRect = hoverX < 0 || hoverY < 0 || hoverX > w.globals.gridWidth || hoverY > w.globals.gridHeight; + + if (inRect) { + hoverArea.classList.remove('hovering-zoom'); + hoverArea.classList.remove('hovering-pan'); + } else { + if (w.globals.zoomEnabled) { + hoverArea.classList.remove('hovering-pan'); + hoverArea.classList.add('hovering-zoom'); + } else if (w.globals.panEnabled) { + hoverArea.classList.remove('hovering-zoom'); + hoverArea.classList.add('hovering-pan'); + } + } + + var j = Math.round(hoverX / xDivisor); + + if (hasBars) { + j = Math.ceil(hoverX / xDivisor); + j = j - 1; + } + + var capturedSeries = null; + var closest = null; + var seriesXValArr = []; + var seriesYValArr = []; + + for (var s = 0; s < w.globals.seriesXvalues.length; s++) { + seriesXValArr.push([w.globals.seriesXvalues[s][0] - 0.000001].concat(w.globals.seriesXvalues[s])); + } + + seriesXValArr = seriesXValArr.map(function (seriesXVal) { + return seriesXVal.filter(function (s) { + return s; + }); + }); + seriesYValArr = w.globals.seriesYvalues.map(function (seriesYVal) { + return seriesYVal.filter(function (s) { + return s; + }); + }); // if X axis type is not category and tooltip is not shared, then we need to find the cursor position and get the nearest value + + if (w.globals.isXNumeric) { + closest = this.closestInMultiArray(hoverX, hoverY, seriesXValArr, seriesYValArr); + capturedSeries = closest.index; + j = closest.j; + + if (capturedSeries !== null) { + // initial push, it should be a little smaller than the 1st val + seriesXValArr = w.globals.seriesXvalues[capturedSeries]; + closest = this.closestInArray(hoverX, seriesXValArr); + j = closest.index; + } + } + + if (!j || j < 1) j = 0; + return { + capturedSeries: capturedSeries, + j: j, + hoverX: hoverX, + hoverY: hoverY + }; + } + }, { + key: "closestInMultiArray", + value: function closestInMultiArray(hoverX, hoverY, Xarrays, Yarrays) { + var w = this.w; + var activeIndex = 0; + var currIndex = null; + var j = -1; + + if (w.globals.series.length > 1) { + activeIndex = this.getFirstActiveXArray(Xarrays); + } else { + currIndex = 0; + } + + var currY = Yarrays[activeIndex][0]; + var currX = Xarrays[activeIndex][0]; + var diffX = Math.abs(hoverX - currX); + var diffY = Math.abs(hoverY - currY); + var diff = diffY + diffX; + Yarrays.map(function (arrY, arrIndex) { + arrY.map(function (y, innerKey) { + var newdiffY = Math.abs(hoverY - Yarrays[arrIndex][innerKey]); + var newdiffX = Math.abs(hoverX - Xarrays[arrIndex][innerKey]); + var newdiff = newdiffX + newdiffY; + + if (newdiff < diff) { + diff = newdiff; + diffX = newdiffX; + diffY = newdiffY; + currIndex = arrIndex; + j = innerKey; + } + }); + }); + return { + index: currIndex, + j: j + }; + } + }, { + key: "getFirstActiveXArray", + value: function getFirstActiveXArray(Xarrays) { + var activeIndex = 0; + var coreUtils = new CoreUtils(this.ctx); + var firstActiveSeriesIndex = Xarrays.map(function (xarr, index) { + if (xarr.length > 0) { + return index; + } else { + return -1; + } + }); + + for (var a = 0; a < firstActiveSeriesIndex.length; a++) { + var total = coreUtils.getSeriesTotalByIndex(a); + + if (firstActiveSeriesIndex[a] !== -1 && total !== 0 && !coreUtils.seriesHaveSameValues(a)) { + activeIndex = firstActiveSeriesIndex[a]; + break; + } + } + + return activeIndex; + } + }, { + key: "closestInArray", + value: function closestInArray(val, arr) { + var curr = arr[0]; + var currIndex = null; + var diff = Math.abs(val - curr); + + for (var i = 0; i < arr.length; i++) { + var newdiff = Math.abs(val - arr[i]); + + if (newdiff < diff) { + diff = newdiff; + curr = arr[i]; + currIndex = i; + } + } + + return { + index: currIndex + }; + } + /** + * When there are multiple series, it is possible to have different x values for each series. + * But it may be possible in those multiple series, that there is same x value for 2 or more + * series. + * @memberof Utils + * @param {int} + * - j = is the inner index of series -> (series[i][j]) + * @return {bool} + */ + + }, { + key: "isXoverlap", + value: function isXoverlap(j) { + var w = this.w; + var xSameForAllSeriesJArr = []; + var seriesX = w.globals.seriesX.filter(function (s) { + return typeof s[0] !== 'undefined'; + }); + + if (seriesX.length > 0) { + for (var i = 0; i < seriesX.length - 1; i++) { + if (typeof seriesX[i][j] !== 'undefined' && typeof seriesX[i + 1][j] !== 'undefined') { + if (seriesX[i][j] !== seriesX[i + 1][j]) { + xSameForAllSeriesJArr.push('unEqual'); + } + } + } + } + + if (xSameForAllSeriesJArr.length === 0) { + return true; + } + + return false; + } + }, { + key: "isinitialSeriesSameLen", + value: function isinitialSeriesSameLen() { + var sameLen = true; + var initialSeries = this.w.globals.initialSeries; + + for (var i = 0; i < initialSeries.length - 1; i++) { + if (initialSeries[i].data.length !== initialSeries[i + 1].data.length) { + sameLen = false; + break; + } + } + + return sameLen; + } + }, { + key: "getBarsHeight", + value: function getBarsHeight(allbars) { + var bars = _toConsumableArray(allbars); + + var totalHeight = bars.reduce(function (acc, bar) { + return acc + bar.getBBox().height; + }, 0); + return totalHeight; + } + }, { + key: "toggleAllTooltipSeriesGroups", + value: function toggleAllTooltipSeriesGroups(state) { + var w = this.w; + var ttCtx = this.ttCtx; + + if (ttCtx.allTooltipSeriesGroups.length === 0) { + ttCtx.allTooltipSeriesGroups = w.globals.dom.baseEl.querySelectorAll('.apexcharts-tooltip-series-group'); + } + + var allTooltipSeriesGroups = ttCtx.allTooltipSeriesGroups; + + for (var i = 0; i < allTooltipSeriesGroups.length; i++) { + if (state === 'enable') { + allTooltipSeriesGroups[i].classList.add('active'); + allTooltipSeriesGroups[i].style.display = w.config.tooltip.items.display; + } else { + allTooltipSeriesGroups[i].classList.remove('active'); + allTooltipSeriesGroups[i].style.display = 'none'; + } + } + } + }]); + + return Utils; + }(); + + /** + * ApexCharts Tooltip.Labels Class to draw texts on the tooltip. + * + * @module Tooltip.Labels + **/ + + var Labels = + /*#__PURE__*/ + function () { + function Labels(tooltipContext) { + _classCallCheck(this, Labels); + + this.w = tooltipContext.w; + this.ctx = tooltipContext.ctx; + this.ttCtx = tooltipContext; + this.tooltipUtil = new Utils$1(tooltipContext); + } + + _createClass(Labels, [{ + key: "drawSeriesTexts", + value: function drawSeriesTexts(_ref) { + var _ref$shared = _ref.shared, + shared = _ref$shared === void 0 ? true : _ref$shared, + ttItems = _ref.ttItems, + _ref$i = _ref.i, + i = _ref$i === void 0 ? 0 : _ref$i, + _ref$j = _ref.j, + j = _ref$j === void 0 ? null : _ref$j; + var w = this.w; + + if (w.config.tooltip.custom !== undefined) { + this.handleCustomTooltip({ + i: i, + j: j + }); + } else { + this.toggleActiveInactiveSeries(shared); + } + + var values = this.getValuesToPrint({ + i: i, + j: j + }); + this.printLabels({ + i: i, + j: j, + values: values, + ttItems: ttItems, + shared: shared + }); // Re-calculate tooltip dimensions now that we have drawn the text + + var tooltipEl = this.ttCtx.getElTooltip(); + this.ttCtx.tooltipRect.ttWidth = tooltipEl.getBoundingClientRect().width; + this.ttCtx.tooltipRect.ttHeight = tooltipEl.getBoundingClientRect().height; + } + }, { + key: "printLabels", + value: function printLabels(_ref2) { + var i = _ref2.i, + j = _ref2.j, + values = _ref2.values, + ttItems = _ref2.ttItems, + shared = _ref2.shared; + var w = this.w; + var val; + var xVal = values.xVal, + zVal = values.zVal, + xAxisTTVal = values.xAxisTTVal; + var seriesName = ''; + var pColor = w.globals.colors[i]; + + if (j !== null && w.config.plotOptions.bar.distributed) { + pColor = w.globals.colors[j]; + } + + for (var t = 0, inverset = w.globals.series.length - 1; t < w.globals.series.length; t++, inverset--) { + var f = this.getFormatters(i); + seriesName = this.getSeriesName({ + fn: f.yLbTitleFormatter, + index: i, + seriesIndex: i, + j: j + }); + + if (shared) { + var tIndex = w.config.tooltip.inverseOrder ? inverset : t; + f = this.getFormatters(tIndex); + seriesName = this.getSeriesName({ + fn: f.yLbTitleFormatter, + index: tIndex, + seriesIndex: i, + j: j + }); + pColor = w.globals.colors[tIndex]; // for plot charts, not for pie/donuts + + val = f.yLbFormatter(w.globals.series[tIndex][j], { + series: w.globals.series, + seriesIndex: i, + dataPointIndex: j, + w: w + }); // discard 0 values in BARS + + if (this.ttCtx.hasBars() && w.config.chart.stacked && w.globals.series[tIndex][j] === 0 || typeof w.globals.series[tIndex][j] === 'undefined') { + val = undefined; + } + } else { + val = f.yLbFormatter(w.globals.series[i][j], { + series: w.globals.series, + seriesIndex: i, + dataPointIndex: j, + w: w + }); + } // for pie / donuts + + + if (j === null) { + val = f.yLbFormatter(w.globals.series[i], w); + } + + this.DOMHandling({ + t: t, + ttItems: ttItems, + values: { + val: val, + xVal: xVal, + xAxisTTVal: xAxisTTVal, + zVal: zVal + }, + seriesName: seriesName, + shared: shared, + pColor: pColor + }); + } + } + }, { + key: "getFormatters", + value: function getFormatters(i) { + var w = this.w; + var yLbFormatter = w.globals.yLabelFormatters[i]; + var yLbTitleFormatter; + + if (w.globals.ttVal !== undefined) { + if (Array.isArray(w.globals.ttVal)) { + yLbFormatter = w.globals.ttVal[i] && w.globals.ttVal[i].formatter; + yLbTitleFormatter = w.globals.ttVal[i] && w.globals.ttVal[i].title && w.globals.ttVal[i].title.formatter; + } else { + yLbFormatter = w.globals.ttVal.formatter; + + if (typeof w.globals.ttVal.title.formatter === 'function') { + yLbTitleFormatter = w.globals.ttVal.title.formatter; + } + } + } else { + yLbTitleFormatter = w.config.tooltip.y.title.formatter; + } + + if (typeof yLbFormatter !== 'function') { + if (w.globals.yLabelFormatters[0]) { + yLbFormatter = w.globals.yLabelFormatters[0]; + } else { + yLbFormatter = function yLbFormatter(label) { + return label; + }; + } + } + + if (typeof yLbTitleFormatter !== 'function') { + yLbTitleFormatter = function yLbTitleFormatter(label) { + return label; + }; + } + + return { + yLbFormatter: yLbFormatter, + yLbTitleFormatter: yLbTitleFormatter + }; + } + }, { + key: "getSeriesName", + value: function getSeriesName(_ref3) { + var fn = _ref3.fn, + index = _ref3.index, + seriesIndex = _ref3.seriesIndex, + j = _ref3.j; + var w = this.w; + return fn(String(w.globals.seriesNames[index]), { + series: w.globals.series, + seriesIndex: seriesIndex, + dataPointIndex: j, + w: w + }); + } + }, { + key: "DOMHandling", + value: function DOMHandling(_ref4) { + var t = _ref4.t, + ttItems = _ref4.ttItems, + values = _ref4.values, + seriesName = _ref4.seriesName, + shared = _ref4.shared, + pColor = _ref4.pColor; + var w = this.w; + var ttCtx = this.ttCtx; + var val = values.val, + xVal = values.xVal, + xAxisTTVal = values.xAxisTTVal, + zVal = values.zVal; + var ttItemsChildren = null; + ttItemsChildren = ttItems[t].children; + + if (w.config.tooltip.fillSeriesColor) { + // elTooltip.style.backgroundColor = pColor + ttItems[t].style.backgroundColor = pColor; + ttItemsChildren[0].style.display = 'none'; + } + + if (ttCtx.showTooltipTitle) { + if (ttCtx.tooltipTitle === null) { + // get it once if null, and store it in class property + ttCtx.tooltipTitle = w.globals.dom.baseEl.querySelector('.apexcharts-tooltip-title'); + } + + ttCtx.tooltipTitle.innerHTML = xVal; + } // if xaxis tooltip is constructed, we need to replace the innerHTML + + + if (ttCtx.blxaxisTooltip) { + ttCtx.xaxisTooltipText.innerHTML = xAxisTTVal !== '' ? xAxisTTVal : xVal; + } + + var ttYLabel = ttItems[t].querySelector('.apexcharts-tooltip-text-label'); + + if (ttYLabel) { + ttYLabel.innerHTML = seriesName ? seriesName + ': ' : ''; + } + + var ttYVal = ttItems[t].querySelector('.apexcharts-tooltip-text-value'); + + if (ttYVal) { + ttYVal.innerHTML = val; + } + + if (ttItemsChildren[0] && ttItemsChildren[0].classList.contains('apexcharts-tooltip-marker')) { + ttItemsChildren[0].style.backgroundColor = pColor; + } + + if (!w.config.tooltip.marker.show) { + ttItemsChildren[0].style.display = 'none'; + } + + if (zVal !== null) { + var ttZLabel = ttItems[t].querySelector('.apexcharts-tooltip-text-z-label'); + ttZLabel.innerHTML = w.config.tooltip.z.title; + var ttZVal = ttItems[t].querySelector('.apexcharts-tooltip-text-z-value'); + ttZVal.innerHTML = zVal; + } + + if (shared && ttItemsChildren[0]) { + // hide when no Val or series collapsed + if (typeof val === 'undefined' || val === null || w.globals.collapsedSeriesIndices.indexOf(t) > -1) { + ttItemsChildren[0].parentNode.style.display = 'none'; + } else { + ttItemsChildren[0].parentNode.style.display = w.config.tooltip.items.display; + } + } + } + }, { + key: "toggleActiveInactiveSeries", + value: function toggleActiveInactiveSeries(shared) { + var w = this.w; + + if (shared) { + // make all tooltips active + this.tooltipUtil.toggleAllTooltipSeriesGroups('enable'); + } else { + // disable all tooltip text groups + this.tooltipUtil.toggleAllTooltipSeriesGroups('disable'); // enable the first tooltip text group + + var firstTooltipSeriesGroup = w.globals.dom.baseEl.querySelector('.apexcharts-tooltip-series-group'); + + if (firstTooltipSeriesGroup) { + firstTooltipSeriesGroup.classList.add('active'); + firstTooltipSeriesGroup.style.display = w.config.tooltip.items.display; + } + } + } + }, { + key: "getValuesToPrint", + value: function getValuesToPrint(_ref5) { + var i = _ref5.i, + j = _ref5.j; + var w = this.w; + var filteredSeriesX = this.ctx.series.filteredSeriesX(); + var xVal = ''; + var xAxisTTVal = ''; + var zVal = null; + var val = null; + var customFormatterOpts = { + series: w.globals.series, + seriesIndex: i, + dataPointIndex: j, + w: w + }; + var zFormatter = w.globals.ttZFormatter; + + if (j === null) { + val = w.globals.series[i]; + } else { + if (w.globals.isXNumeric) { + xVal = filteredSeriesX[i][j]; + + if (filteredSeriesX[i].length === 0) { + // a series (possibly the first one) might be collapsed, so get the next active index + var firstActiveSeriesIndex = this.tooltipUtil.getFirstActiveXArray(filteredSeriesX); + xVal = filteredSeriesX[firstActiveSeriesIndex][j]; + } + } else { + xVal = typeof w.globals.labels[j] !== 'undefined' ? w.globals.labels[j] : ''; + } + } + + var bufferXVal = xVal; + + if (w.globals.isXNumeric && w.config.xaxis.type === 'datetime') { + var xFormat = new Formatters(this.ctx); + xVal = xFormat.xLabelFormat(w.globals.ttKeyFormatter, bufferXVal); + } else { + xVal = w.globals.xLabelFormatter(bufferXVal, customFormatterOpts); + } // override default x-axis formatter with tooltip formatter + + + if (w.config.tooltip.x.formatter !== undefined) { + xVal = w.globals.ttKeyFormatter(bufferXVal, customFormatterOpts); + } + + if (w.globals.seriesZ.length > 0 && w.globals.seriesZ[0].length > 0) { + zVal = zFormatter(w.globals.seriesZ[i][j], w); + } + + if (typeof w.config.xaxis.tooltip.formatter === 'function') { + xAxisTTVal = w.globals.xaxisTooltipFormatter(bufferXVal, customFormatterOpts); + } else { + xAxisTTVal = xVal; + } + + return { + val: val, + xVal: xVal, + xAxisTTVal: xAxisTTVal, + zVal: zVal + }; + } + }, { + key: "handleCustomTooltip", + value: function handleCustomTooltip(_ref6) { + var i = _ref6.i, + j = _ref6.j; + var w = this.w; + var tooltipEl = this.ttCtx.getElTooltip(); // override everything with a custom html tooltip and replace it + + tooltipEl.innerHTML = w.config.tooltip.custom({ + series: w.globals.series, + seriesIndex: i, + dataPointIndex: j, + w: w + }); + } + }]); + + return Labels; + }(); + + /** + * ApexCharts Tooltip.Position Class to move the tooltip based on x and y position. + * + * @module Tooltip.Position + **/ + + var Position = + /*#__PURE__*/ + function () { + function Position(tooltipContext) { + _classCallCheck(this, Position); + + this.ttCtx = tooltipContext; + this.ctx = tooltipContext.ctx; + this.w = tooltipContext.w; + } + /** + * This will move the crosshair (the vertical/horz line that moves along with mouse) + * Along with this, this function also calls the xaxisMove function + * @memberof Position + * @param {int} - cx = point's x position, wherever point's x is, you need to move crosshair + */ + + + _createClass(Position, [{ + key: "moveXCrosshairs", + value: function moveXCrosshairs(cx) { + var j = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; + var ttCtx = this.ttCtx; + var w = this.w; + var xcrosshairs = ttCtx.getElXCrosshairs(); + var x = cx - ttCtx.xcrosshairsWidth / 2; + var tickAmount = w.globals.labels.slice().length; + + if (j !== null) { + x = w.globals.gridWidth / tickAmount * j; + } + + if (w.config.xaxis.crosshairs.width === 'tickWidth' || w.config.xaxis.crosshairs.width === 'barWidth') { + if (x + ttCtx.xcrosshairsWidth > w.globals.gridWidth) { + x = w.globals.gridWidth - ttCtx.xcrosshairsWidth; + } + } else { + if (j !== null) { + x = x + w.globals.gridWidth / tickAmount / 2; + } + } + + if (x < 0) { + x = 0; + } + + if (x > w.globals.gridWidth) { + x = w.globals.gridWidth; + } + + if (xcrosshairs !== null) { + xcrosshairs.setAttribute('x', x); + xcrosshairs.setAttribute('x1', x); + xcrosshairs.setAttribute('x2', x); + xcrosshairs.setAttribute('y2', w.globals.gridHeight); + xcrosshairs.classList.add('active'); + } + + if (ttCtx.blxaxisTooltip) { + var tx = x; + + if (w.config.xaxis.crosshairs.width === 'tickWidth' || w.config.xaxis.crosshairs.width === 'barWidth') { + tx = x + ttCtx.xcrosshairsWidth / 2; + } + + this.moveXAxisTooltip(tx); + } + } + /** + * This will move the crosshair (the vertical/horz line that moves along with mouse) + * Along with this, this function also calls the xaxisMove function + * @memberof Position + * @param {int} - cx = point's x position, wherever point's x is, you need to move crosshair + */ + + }, { + key: "moveYCrosshairs", + value: function moveYCrosshairs(cy) { + var ttCtx = this.ttCtx; + + if (ttCtx.ycrosshairs !== null) { + Graphics.setAttrs(ttCtx.ycrosshairs, { + y1: cy, + y2: cy + }); + Graphics.setAttrs(ttCtx.ycrosshairsHidden, { + y1: cy, + y2: cy + }); + } + } + /** + ** AxisTooltip is the small rectangle which appears on x axis with x value, when user moves + * @memberof Position + * @param {int} - cx = point's x position, wherever point's x is, you need to move + */ + + }, { + key: "moveXAxisTooltip", + value: function moveXAxisTooltip(cx) { + var w = this.w; + var ttCtx = this.ttCtx; + + if (ttCtx.xaxisTooltip !== null) { + ttCtx.xaxisTooltip.classList.add('active'); + var cy = ttCtx.xaxisOffY + w.config.xaxis.tooltip.offsetY + w.globals.translateY + 1 + w.config.xaxis.offsetY; + var xaxisTTText = ttCtx.xaxisTooltip.getBoundingClientRect(); + var xaxisTTTextWidth = xaxisTTText.width; + cx = cx - xaxisTTTextWidth / 2; + + if (!isNaN(cx)) { + cx = cx + w.globals.translateX; + var textRect = 0; + var graphics = new Graphics(this.ctx); + textRect = graphics.getTextRects(ttCtx.xaxisTooltipText.innerHTML); + ttCtx.xaxisTooltipText.style.minWidth = textRect.width + 'px'; + ttCtx.xaxisTooltip.style.left = cx + 'px'; + ttCtx.xaxisTooltip.style.top = cy + 'px'; + } + } + } + }, { + key: "moveYAxisTooltip", + value: function moveYAxisTooltip(index) { + var w = this.w; + var ttCtx = this.ttCtx; + + if (ttCtx.yaxisTTEls === null) { + ttCtx.yaxisTTEls = w.globals.dom.baseEl.querySelectorAll('.apexcharts-yaxistooltip'); + } + + var ycrosshairsHiddenRectY1 = parseInt(ttCtx.ycrosshairsHidden.getAttribute('y1')); + var cy = w.globals.translateY + ycrosshairsHiddenRectY1; + var yAxisTTRect = ttCtx.yaxisTTEls[index].getBoundingClientRect(); + var yAxisTTHeight = yAxisTTRect.height; + var cx = w.globals.translateYAxisX[index] - 2; + + if (w.config.yaxis[index].opposite) { + cx = cx - 26; + } + + cy = cy - yAxisTTHeight / 2; + + if (w.globals.ignoreYAxisIndexes.indexOf(index) === -1) { + ttCtx.yaxisTTEls[index].classList.add('active'); + ttCtx.yaxisTTEls[index].style.top = cy + 'px'; + ttCtx.yaxisTTEls[index].style.left = cx + w.config.yaxis[index].tooltip.offsetX + 'px'; + } else { + ttCtx.yaxisTTEls[index].classList.remove('active'); + } + } + /** + ** moves the whole tooltip by changing x, y attrs + * @memberof Position + * @param {int} - cx = point's x position, wherever point's x is, you need to move tooltip + * @param {int} - cy = point's y position, wherever point's y is, you need to move tooltip + * @param {int} - r = point's radius + */ + + }, { + key: "moveTooltip", + value: function moveTooltip(cx, cy) { + var r = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; + var w = this.w; + var ttCtx = this.ttCtx; + var tooltipEl = ttCtx.getElTooltip(); + var tooltipRect = ttCtx.tooltipRect; + var pointR = r !== null ? parseInt(r) : 1; + var x = parseInt(cx) + pointR + 5; + var y = parseInt(cy) + pointR / 2; // - tooltipRect.ttHeight / 2 + + if (x > w.globals.gridWidth / 2) { + x = x - tooltipRect.ttWidth - pointR - 15; + } + + if (x > w.globals.gridWidth - tooltipRect.ttWidth - 10) { + x = w.globals.gridWidth - tooltipRect.ttWidth; + } + + if (x < -20) { + x = -20; + } + + if (w.config.tooltip.followCursor) { + var elGrid = ttCtx.getElGrid(); + var seriesBound = elGrid.getBoundingClientRect(); + y = ttCtx.e.clientY - seriesBound.top - tooltipRect.ttHeight / 2; + } + + var newPositions = this.positionChecks(tooltipRect, x, y); + x = newPositions.x; + y = newPositions.y; + + if (!isNaN(x)) { + x = x + w.globals.translateX; + tooltipEl.style.left = x + 'px'; + tooltipEl.style.top = y + 'px'; + } + } + }, { + key: "positionChecks", + value: function positionChecks(tooltipRect, x, y) { + var w = this.w; + + if (tooltipRect.ttHeight + y > w.globals.gridHeight) { + y = w.globals.gridHeight - tooltipRect.ttHeight + w.globals.translateY; + } + + if (y < 0) { + y = 0; + } + + return { + x: x, + y: y + }; + } + }, { + key: "moveMarkers", + value: function moveMarkers(i, j) { + var w = this.w; + var ttCtx = this.ttCtx; + + if (w.globals.markers.size[i] > 0) { + var allPoints = w.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(i, "'] .apexcharts-marker")); + + for (var p = 0; p < allPoints.length; p++) { + if (parseInt(allPoints[p].getAttribute('rel')) === j) { + ttCtx.marker.resetPointsSize(); + ttCtx.marker.enlargeCurrentPoint(j, allPoints[p]); + } + } + } else { + ttCtx.marker.resetPointsSize(); + this.moveDynamicPointOnHover(j, i); + } + } // This function is used when you need to show markers/points only on hover - + // DIFFERENT X VALUES in multiple series + + }, { + key: "moveDynamicPointOnHover", + value: function moveDynamicPointOnHover(j, capturedSeries) { + var w = this.w; + var ttCtx = this.ttCtx; + var cx = 0; + var cy = 0; + var pointsArr = w.globals.pointsArray; + var hoverSize = w.config.markers.hover.size; + + if (hoverSize === undefined) { + hoverSize = w.globals.markers.size[capturedSeries] + w.config.markers.hover.sizeOffset; + } + + cx = pointsArr[capturedSeries][j][0]; + cy = pointsArr[capturedSeries][j][1] ? pointsArr[capturedSeries][j][1] : 0; + var point = w.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(capturedSeries, "'] .apexcharts-series-markers circle")); + point.setAttribute('r', hoverSize); + point.setAttribute('cx', cx); + point.setAttribute('cy', cy); // point.style.opacity = w.config.markers.hover.opacity + + this.moveXCrosshairs(cx); + + if (!ttCtx.fixedTooltip) { + this.moveTooltip(cx, cy, hoverSize); + } + } // This function is used when you need to show markers/points only on hover - + // SAME X VALUES in multiple series + + }, { + key: "moveDynamicPointsOnHover", + value: function moveDynamicPointsOnHover(j) { + var ttCtx = this.ttCtx; + var w = ttCtx.w; + var cx = 0; + var cy = 0; + var activeSeries = 0; + var pointsArr = w.globals.pointsArray; + var series = new Series(this.ctx); + activeSeries = series.getActiveSeriesIndex(); + var hoverSize = w.config.markers.hover.size; + + if (hoverSize === undefined) { + hoverSize = w.globals.markers.size[activeSeries] + w.config.markers.hover.sizeOffset; + } + + if (pointsArr[activeSeries]) { + cx = pointsArr[activeSeries][j][0]; + cy = pointsArr[activeSeries][j][1]; + } + + var points = null; + var allPoints = ttCtx.getAllMarkers(); + + if (allPoints !== null) { + points = allPoints; + } else { + points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series-markers circle'); + } + + if (points !== null) { + for (var p = 0; p < points.length; p++) { + var pointArr = pointsArr[p]; + + if (pointArr && pointArr.length) { + var pcy = pointsArr[p][j][1]; + points[p].setAttribute('cx', cx); + var realIndex = parseInt(points[p].parentNode.parentNode.parentNode.getAttribute('data:realIndex')); + + if (pcy !== null) { + points[realIndex] && points[realIndex].setAttribute('r', hoverSize); + points[realIndex] && points[realIndex].setAttribute('cy', pcy); + } else { + points[realIndex] && points[realIndex].setAttribute('r', 0); + } + } + } + } + + this.moveXCrosshairs(cx); + + if (!ttCtx.fixedTooltip) { + var tcy = cy || w.globals.gridHeight; + this.moveTooltip(cx, tcy, hoverSize); + } + } + }, { + key: "moveStickyTooltipOverBars", + value: function moveStickyTooltipOverBars(j) { + var w = this.w; + var ttCtx = this.ttCtx; + var jBar = w.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='1'] path[j='".concat(j, "'], .apexcharts-candlestick-series .apexcharts-series[rel='1'] path[j='").concat(j, "']")); + var bcx = jBar ? parseFloat(jBar.getAttribute('cx')) : 0; + var bcy = 0; + var bw = jBar ? parseFloat(jBar.getAttribute('barWidth')) : 0; + + if (w.globals.isXNumeric) { + bcx = bcx - bw / 2; + } else { + bcx = ttCtx.xAxisTicksPositions[j - 1] + ttCtx.dataPointsDividedWidth / 2; + + if (isNaN(bcx)) { + bcx = ttCtx.xAxisTicksPositions[j] - ttCtx.dataPointsDividedWidth / 2; + } + } // tooltip will move vertically along with mouse as it is a shared tooltip + + + var elGrid = ttCtx.getElGrid(); + var seriesBound = elGrid.getBoundingClientRect(); + bcy = ttCtx.e.clientY - seriesBound.top - ttCtx.tooltipRect.ttHeight / 2; + this.moveXCrosshairs(bcx); + + if (!ttCtx.fixedTooltip) { + var tcy = bcy || w.globals.gridHeight; + this.moveTooltip(bcx, tcy); + } + } + }]); + + return Position; + }(); + + /** + * ApexCharts Tooltip.Marker Class to draw texts on the tooltip. + * + * @module Tooltip.Marker + **/ + + var Marker = + /*#__PURE__*/ + function () { + function Marker(tooltipContext) { + _classCallCheck(this, Marker); + + this.w = tooltipContext.w; + this.ttCtx = tooltipContext; + this.ctx = tooltipContext.ctx; + this.tooltipPosition = new Position(tooltipContext); + } + + _createClass(Marker, [{ + key: "drawDynamicPoints", + value: function drawDynamicPoints() { + var w = this.w; + var graphics = new Graphics(this.ctx); + var marker = new Markers(this.ctx); + var elsSeries = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series'); + + for (var i = 0; i < elsSeries.length; i++) { + var seriesIndex = parseInt(elsSeries[i].getAttribute('data:realIndex')); + var pointsMain = w.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(seriesIndex, "'] .apexcharts-series-markers-wrap")); + + if (pointsMain !== null) { + // it can be null as we have tooltips in donut/bar charts + var point = void 0; + var PointClasses = "apexcharts-marker w".concat((Math.random() + 1).toString(36).substring(4)); + + if ((w.config.chart.type === 'line' || w.config.chart.type === 'area') && !w.globals.comboCharts && !w.config.tooltip.intersect) { + PointClasses += ' no-pointer-events'; + } + + var elPointOptions = marker.getMarkerConfig(PointClasses, seriesIndex); + point = graphics.drawMarker(0, 0, elPointOptions); + point.node.setAttribute('default-marker-size', 0); + var elPointsG = document.createElementNS(w.globals.SVGNS, 'g'); + elPointsG.classList.add('apexcharts-series-markers'); + elPointsG.appendChild(point.node); + pointsMain.appendChild(elPointsG); + } + } + } + }, { + key: "enlargeCurrentPoint", + value: function enlargeCurrentPoint(rel, point) { + var w = this.w; + + if (w.config.chart.type !== 'bubble') { + this.newPointSize(rel, point); + } + + var cx = point.getAttribute('cx'); + var cy = point.getAttribute('cy'); + this.tooltipPosition.moveXCrosshairs(cx); + + if (!this.fixedTooltip) { + if (w.config.chart.type === 'radar') { + var elGrid = this.ttCtx.getElGrid(); + var seriesBound = elGrid.getBoundingClientRect(); + cx = this.ttCtx.e.clientX - seriesBound.left; + } + + this.tooltipPosition.moveTooltip(cx, cy, w.config.markers.hover.size); + } + } + }, { + key: "enlargePoints", + value: function enlargePoints(j) { + var w = this.w; + var me = this; + var ttCtx = this.ttCtx; + var col = j; + var points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker'); + var newSize = w.config.markers.hover.size; + + for (var p = 0; p < points.length; p++) { + var rel = points[p].getAttribute('rel'); + var index = points[p].getAttribute('index'); + + if (newSize === undefined) { + newSize = w.globals.markers.size[index] + w.config.markers.hover.sizeOffset; + } + + if (col === parseInt(rel)) { + me.newPointSize(col, points[p]); + var cx = points[p].getAttribute('cx'); + var cy = points[p].getAttribute('cy'); + me.tooltipPosition.moveXCrosshairs(cx); + + if (!ttCtx.fixedTooltip) { + me.tooltipPosition.moveTooltip(cx, cy, newSize); + } + } else { + me.oldPointSize(points[p]); + } + } + } + }, { + key: "newPointSize", + value: function newPointSize(rel, point) { + var w = this.w; + var newSize = w.config.markers.hover.size; + var elPoint = null; + + if (rel === 0) { + elPoint = point.parentNode.firstChild; + } else { + elPoint = point.parentNode.lastChild; + } + + var index = parseInt(elPoint.getAttribute('index')); + + if (newSize === undefined) { + newSize = w.globals.markers.size[index] + w.config.markers.hover.sizeOffset; + } + + elPoint.setAttribute('r', newSize); + } + }, { + key: "oldPointSize", + value: function oldPointSize(point) { + var size = parseInt(point.getAttribute('default-marker-size')); + point.setAttribute('r', size); + } + }, { + key: "resetPointsSize", + value: function resetPointsSize() { + var w = this.w; + var points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker'); + + for (var p = 0; p < points.length; p++) { + var size = parseInt(points[p].getAttribute('default-marker-size')); + + if (Utils.isNumber(size)) { + points[p].setAttribute('r', size); + } else { + points[p].setAttribute('r', 0); + } + } + } + }]); + + return Marker; + }(); + + /** + * ApexCharts Tooltip.Intersect Class. + * + * @module Tooltip.Intersect + **/ + + var Intersect = + /*#__PURE__*/ + function () { + function Intersect(tooltipContext) { + _classCallCheck(this, Intersect); + + this.w = tooltipContext.w; + this.ttCtx = tooltipContext; + } + + _createClass(Intersect, [{ + key: "getAttr", + value: function getAttr(e, attr) { + return parseFloat(e.target.getAttribute(attr)); + } + }, { + key: "handleHeatTooltip", + value: function handleHeatTooltip(_ref) { + var e = _ref.e, + opt = _ref.opt, + x = _ref.x, + y = _ref.y; + var ttCtx = this.ttCtx; + var w = this.w; + + if (e.target.classList.contains('apexcharts-heatmap-rect')) { + var i = this.getAttr(e, 'i'); + var j = this.getAttr(e, 'j'); + var cx = this.getAttr(e, 'cx'); + var cy = this.getAttr(e, 'cy'); + var width = this.getAttr(e, 'width'); + var height = this.getAttr(e, 'height'); + ttCtx.tooltipLabels.drawSeriesTexts({ + ttItems: opt.ttItems, + i: i, + j: j, + shared: false + }); + x = cx + ttCtx.tooltipRect.ttWidth / 2 + width; + y = cy + ttCtx.tooltipRect.ttHeight / 2 - height / 2; + ttCtx.tooltipPosition.moveXCrosshairs(cx + width / 2); + + if (x > w.globals.gridWidth / 2) { + x = cx - ttCtx.tooltipRect.ttWidth / 2 + width; + } + + if (ttCtx.w.config.tooltip.followCursor) { + var elGrid = ttCtx.getElGrid(); + var seriesBound = elGrid.getBoundingClientRect(); // x = ttCtx.e.clientX - seriesBound.left + + y = ttCtx.e.clientY - seriesBound.top + w.globals.translateY / 2 - 10; + } + } + + return { + x: x, + y: y + }; + } + }, { + key: "handleMarkerTooltip", + value: function handleMarkerTooltip(_ref2) { + var e = _ref2.e, + opt = _ref2.opt, + x = _ref2.x, + y = _ref2.y; + var w = this.w; + var ttCtx = this.ttCtx; + var i; + var j; + + if (e.target.classList.contains('apexcharts-marker')) { + var cx = parseInt(opt.paths.getAttribute('cx')); + var cy = parseInt(opt.paths.getAttribute('cy')); + var val = parseFloat(opt.paths.getAttribute('val')); + j = parseInt(opt.paths.getAttribute('rel')); + i = parseInt(opt.paths.parentNode.parentNode.parentNode.getAttribute('rel')) - 1; + + if (ttCtx.intersect) { + var el = Utils.findAncestor(opt.paths, 'apexcharts-series'); + + if (el) { + i = parseInt(el.getAttribute('data:realIndex')); + } + } + + ttCtx.tooltipLabels.drawSeriesTexts({ + ttItems: opt.ttItems, + i: i, + j: j, + shared: ttCtx.intersect ? false : w.config.tooltip.shared + }); + ttCtx.marker.enlargeCurrentPoint(j, opt.paths); + x = cx; + y = cy - ttCtx.tooltipRect.ttHeight * 1.4; + + if (ttCtx.w.config.tooltip.followCursor) { + var elGrid = ttCtx.getElGrid(); + var seriesBound = elGrid.getBoundingClientRect(); + y = ttCtx.e.clientY - seriesBound.top; + } + + if (val < 0) { + y = cy; + } + } + + return { + x: x, + y: y + }; + } + }, { + key: "handleBarTooltip", + value: function handleBarTooltip(_ref3) { + var e = _ref3.e, + opt = _ref3.opt; + var w = this.w; + var ttCtx = this.ttCtx; + var tooltipEl = ttCtx.getElTooltip(); + var bx = 0; + var x = 0; + var y = 0; // let bW = 0 + + var i = 0; + var strokeWidth; + var barXY = this.getBarTooltipXY({ + e: e, + opt: opt + }); + i = barXY.i; + var barHeight = barXY.barHeight; + var j = barXY.j; + + if (ttCtx.isBarHorizontal && ttCtx.hasBars() || !w.config.tooltip.shared) { + x = barXY.x; + y = barXY.y; + strokeWidth = Array.isArray(w.config.stroke.width) ? w.config.stroke.width[i] : w.config.stroke.width; // bW = barXY.barWidth + + bx = x; + } else { + if (!w.globals.comboCharts && !w.config.tooltip.shared) { + bx = bx / 2; + } + } // y is NaN, make it touch the bottom of grid area + + + if (isNaN(y)) { + y = w.globals.svgHeight - ttCtx.tooltipRect.ttHeight; + } // x exceeds gridWidth + + + if (x + ttCtx.tooltipRect.ttWidth > w.globals.gridWidth) { + x = x - ttCtx.tooltipRect.ttWidth; + } else if (x < 0) { + x = x + ttCtx.tooltipRect.ttWidth; + } + + if (ttCtx.w.config.tooltip.followCursor) { + var elGrid = ttCtx.getElGrid(); + var seriesBound = elGrid.getBoundingClientRect(); + y = ttCtx.e.clientY - seriesBound.top; + } // if tooltip is still null, querySelector + + + if (ttCtx.tooltip === null) { + ttCtx.tooltip = w.globals.dom.baseEl.querySelector('.apexcharts-tooltip'); + } + + if (!w.config.tooltip.shared) { + if (w.globals.comboChartsHasBars) { + ttCtx.tooltipPosition.moveXCrosshairs(bx + strokeWidth / 2); + } else { + ttCtx.tooltipPosition.moveXCrosshairs(bx); + } + } // move tooltip here + + + if (!ttCtx.fixedTooltip && (!w.config.tooltip.shared || ttCtx.isBarHorizontal && ttCtx.hasBars())) { + if (isReversed) { + x = w.globals.gridWidth - x; + } + + tooltipEl.style.left = x + w.globals.translateX + 'px'; + var seriesIndex = parseInt(opt.paths.parentNode.getAttribute('data:realIndex')); + var isReversed = w.globals.isMultipleYAxis ? w.config.yaxis[seriesIndex].reversed : w.config.yaxis[0].reversed; + + if (isReversed && !(ttCtx.isBarHorizontal && ttCtx.hasBars())) { + y = y + barHeight - (w.globals.series[i][j] < 0 ? barHeight : 0) * 2; + } + + if (ttCtx.tooltipRect.ttHeight + y > w.globals.gridHeight) { + y = w.globals.gridHeight - ttCtx.tooltipRect.ttHeight + w.globals.translateY; + tooltipEl.style.top = y + 'px'; + } else { + tooltipEl.style.top = y + w.globals.translateY - ttCtx.tooltipRect.ttHeight / 2 + 'px'; + } + } + } + }, { + key: "getBarTooltipXY", + value: function getBarTooltipXY(_ref4) { + var e = _ref4.e, + opt = _ref4.opt; + var w = this.w; + var j = null; + var ttCtx = this.ttCtx; + var i = 0; + var x = 0; + var y = 0; + var barWidth = 0; + var barHeight = 0; + var cl = e.target.classList; + + if (cl.contains('apexcharts-bar-area') || cl.contains('apexcharts-candlestick-area')) { + var bar = e.target; + var barRect = bar.getBoundingClientRect(); + var seriesBound = opt.elGrid.getBoundingClientRect(); + var bh = barRect.height; + barHeight = barRect.height; + var bw = barRect.width; + var cx = parseInt(bar.getAttribute('cx')); + var cy = parseInt(bar.getAttribute('cy')); + barWidth = parseFloat(bar.getAttribute('barWidth')); + var clientX = e.type === 'touchmove' ? e.touches[0].clientX : e.clientX; + j = parseInt(bar.getAttribute('j')); + i = parseInt(bar.parentNode.getAttribute('rel')) - 1; + + if (w.globals.comboCharts) { + i = parseInt(bar.parentNode.getAttribute('data:realIndex')); + } // if (w.config.tooltip.shared) { + // this check not needed at the moment + // const yDivisor = w.globals.gridHeight / (w.globals.series.length) + // const hoverY = ttCtx.clientY - ttCtx.seriesBound.top + // j = Math.ceil(hoverY / yDivisor) + // } + + + ttCtx.tooltipLabels.drawSeriesTexts({ + ttItems: opt.ttItems, + i: i, + j: j, + shared: ttCtx.showOnIntersect ? false : w.config.tooltip.shared + }); + + if (w.config.tooltip.followCursor) { + if (w.config.plotOptions.bar.horizontal) { + x = clientX - seriesBound.left + 15; + y = cy - ttCtx.dataPointsDividedHeight + bh / 2 - ttCtx.tooltipRect.ttHeight / 2; + } else { + if (w.globals.isXNumeric) { + x = cx - bw / 2; + } else { + x = cx - ttCtx.dataPointsDividedWidth + bw / 2; + } + + y = e.clientY - seriesBound.top - ttCtx.tooltipRect.ttHeight / 2 - 15; + } + } else { + if (w.config.plotOptions.bar.horizontal) { + x = cx; + + if (x < ttCtx.xyRatios.baseLineInvertedY) { + x = cx - ttCtx.tooltipRect.ttWidth; + } + + y = cy - ttCtx.dataPointsDividedHeight + bh / 2 - ttCtx.tooltipRect.ttHeight / 2; + } else { + // if columns + if (w.globals.isXNumeric) { + x = cx - bw / 2; + } else { + x = cx - ttCtx.dataPointsDividedWidth + bw / 2; + } + + y = cy; // - ttCtx.tooltipRect.ttHeight / 2 + 10 + } + } + } + + return { + x: x, + y: y, + barHeight: barHeight, + barWidth: barWidth, + i: i, + j: j + }; + } + }]); + + return Intersect; + }(); + + /** + * ApexCharts Tooltip.AxesTooltip Class. + * + * @module Tooltip.AxesTooltip + **/ + var AxesTooltip = + /*#__PURE__*/ + function () { + function AxesTooltip(tooltipContext) { + _classCallCheck(this, AxesTooltip); + + this.w = tooltipContext.w; + this.ttCtx = tooltipContext; + } + /** + * This method adds the secondary tooltip which appears below x axis + * @memberof Tooltip + **/ + + + _createClass(AxesTooltip, [{ + key: "drawXaxisTooltip", + value: function drawXaxisTooltip() { + var w = this.w; + var ttCtx = this.ttCtx; + var isBottom = w.config.xaxis.position === 'bottom'; + ttCtx.xaxisOffY = isBottom ? w.globals.gridHeight + 1 : 1; + var tooltipCssClass = isBottom ? 'apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom' : 'apexcharts-xaxistooltip apexcharts-xaxistooltip-top'; + var renderTo = w.globals.dom.elWrap; + + if (ttCtx.blxaxisTooltip) { + var xaxisTooltip = w.globals.dom.baseEl.querySelector('.apexcharts-xaxistooltip'); + + if (xaxisTooltip === null) { + ttCtx.xaxisTooltip = document.createElement('div'); + ttCtx.xaxisTooltip.setAttribute('class', tooltipCssClass); + renderTo.appendChild(ttCtx.xaxisTooltip); + ttCtx.xaxisTooltipText = document.createElement('div'); + ttCtx.xaxisTooltipText.classList.add('apexcharts-xaxistooltip-text'); + ttCtx.xaxisTooltipText.style.fontFamily = w.config.xaxis.tooltip.style.fontFamily || w.config.chart.fontFamily; + ttCtx.xaxisTooltipText.style.fontSize = w.config.xaxis.tooltip.style.fontSize; + ttCtx.xaxisTooltip.appendChild(ttCtx.xaxisTooltipText); + } + } + } + /** + * This method adds the secondary tooltip which appears below x axis + * @memberof Tooltip + **/ + + }, { + key: "drawYaxisTooltip", + value: function drawYaxisTooltip() { + var w = this.w; + var ttCtx = this.ttCtx; + + for (var i = 0; i < w.config.yaxis.length; i++) { + var isRight = w.config.yaxis[i].opposite || w.config.yaxis[i].crosshairs.opposite; + ttCtx.yaxisOffX = isRight ? w.globals.gridWidth + 1 : 1; + var tooltipCssClass = isRight ? "apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i, " apexcharts-yaxistooltip-right") : "apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i, " apexcharts-yaxistooltip-left"); + var renderTo = w.globals.dom.elWrap; + + if (ttCtx.blyaxisTooltip) { + var yaxisTooltip = w.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i)); + + if (yaxisTooltip === null) { + ttCtx.yaxisTooltip = document.createElement('div'); + ttCtx.yaxisTooltip.setAttribute('class', tooltipCssClass); + renderTo.appendChild(ttCtx.yaxisTooltip); + if (i === 0) ttCtx.yaxisTooltipText = []; + ttCtx.yaxisTooltipText.push(document.createElement('div')); + ttCtx.yaxisTooltipText[i].classList.add('apexcharts-yaxistooltip-text'); + ttCtx.yaxisTooltip.appendChild(ttCtx.yaxisTooltipText[i]); + } + } + } + } + /** + * @memberof Tooltip + **/ + + }, { + key: "setXCrosshairWidth", + value: function setXCrosshairWidth() { + var w = this.w; + var ttCtx = this.ttCtx; // set xcrosshairs width + + var xcrosshairs = ttCtx.getElXCrosshairs(); + ttCtx.xcrosshairsWidth = parseInt(w.config.xaxis.crosshairs.width); + + if (!w.globals.comboCharts) { + if (w.config.xaxis.crosshairs.width === 'tickWidth') { + var count = w.globals.labels.length; + ttCtx.xcrosshairsWidth = w.globals.gridWidth / count; + } else if (w.config.xaxis.crosshairs.width === 'barWidth') { + var bar = w.globals.dom.baseEl.querySelector('.apexcharts-bar-area'); + + if (bar !== null) { + var barWidth = parseFloat(bar.getAttribute('barWidth')); + ttCtx.xcrosshairsWidth = barWidth; + } else { + ttCtx.xcrosshairsWidth = 1; + } + } + } else { + var _bar = w.globals.dom.baseEl.querySelector('.apexcharts-bar-area'); + + if (_bar !== null && w.config.xaxis.crosshairs.width === 'barWidth') { + var _barWidth = parseFloat(_bar.getAttribute('barWidth')); + + ttCtx.xcrosshairsWidth = _barWidth; + } else { + if (w.config.xaxis.crosshairs.width === 'tickWidth') { + var _count = w.globals.labels.length; + ttCtx.xcrosshairsWidth = w.globals.gridWidth / _count; + } + } + } + + if (w.config.chart.type === 'bar' && w.config.plotOptions.bar.horizontal) { + ttCtx.xcrosshairsWidth = 0; + } + + if (xcrosshairs !== null && ttCtx.xcrosshairsWidth > 0) { + xcrosshairs.setAttribute('width', ttCtx.xcrosshairsWidth); + } + } + }, { + key: "handleYCrosshair", + value: function handleYCrosshair() { + var w = this.w; + var ttCtx = this.ttCtx; // set ycrosshairs height + + ttCtx.ycrosshairs = w.globals.dom.baseEl.querySelector('.apexcharts-ycrosshairs'); + ttCtx.ycrosshairsHidden = w.globals.dom.baseEl.querySelector('.apexcharts-ycrosshairs-hidden'); + } + }, { + key: "drawYaxisTooltipText", + value: function drawYaxisTooltipText(index, clientY, xyRatios) { + var ttCtx = this.ttCtx; + var w = this.w; + var lbFormatter = w.globals.yLabelFormatters[index]; + + if (ttCtx.blyaxisTooltip) { + var elGrid = ttCtx.getElGrid(); + var seriesBound = elGrid.getBoundingClientRect(); + var hoverY = (clientY - seriesBound.top) * xyRatios.yRatio[index]; + var height = w.globals.maxYArr[index] - w.globals.minYArr[index]; + var val = w.globals.minYArr[index] + (height - hoverY); + ttCtx.tooltipPosition.moveYCrosshairs(clientY - seriesBound.top); + ttCtx.yaxisTooltipText[index].innerHTML = lbFormatter(val); + ttCtx.tooltipPosition.moveYAxisTooltip(index); + } + } + }]); + + return AxesTooltip; + }(); + + /** + * ApexCharts Core Tooltip Class to handle the tooltip generation. + * + * @module Tooltip + **/ + + var Tooltip = + /*#__PURE__*/ + function () { + function Tooltip(ctx) { + _classCallCheck(this, Tooltip); + + this.ctx = ctx; + this.w = ctx.w; + var w = this.w; + this.tooltipUtil = new Utils$1(this); + this.tooltipLabels = new Labels(this); + this.tooltipPosition = new Position(this); + this.marker = new Marker(this); + this.intersect = new Intersect(this); + this.axesTooltip = new AxesTooltip(this); + this.showOnIntersect = w.config.tooltip.intersect; + this.showTooltipTitle = w.config.tooltip.x.show; + this.fixedTooltip = w.config.tooltip.fixed.enabled; + this.xaxisTooltip = null; + this.yaxisTTEls = null; + this.isBarHorizontal = w.config.plotOptions.bar.horizontal; + this.isBarShared = !w.config.plotOptions.bar.horizontal && w.config.tooltip.shared; + } + + _createClass(Tooltip, [{ + key: "getElTooltip", + value: function getElTooltip(ctx) { + if (!ctx) ctx = this; + return ctx.w.globals.dom.baseEl.querySelector('.apexcharts-tooltip'); + } + }, { + key: "getElXCrosshairs", + value: function getElXCrosshairs() { + return this.w.globals.dom.baseEl.querySelector('.apexcharts-xcrosshairs'); + } + }, { + key: "getElGrid", + value: function getElGrid() { + return this.w.globals.dom.baseEl.querySelector('.apexcharts-grid'); + } + }, { + key: "drawTooltip", + value: function drawTooltip(xyRatios) { + var w = this.w; + this.xyRatios = xyRatios; + this.blxaxisTooltip = w.config.xaxis.tooltip.enabled && w.globals.axisCharts; + this.blyaxisTooltip = w.config.yaxis[0].tooltip.enabled && w.globals.axisCharts; + this.allTooltipSeriesGroups = []; + + if (!w.globals.axisCharts) { + this.showTooltipTitle = false; + } + + var tooltipEl = document.createElement('div'); + tooltipEl.classList.add('apexcharts-tooltip'); + tooltipEl.classList.add(w.config.tooltip.theme); + w.globals.dom.elWrap.appendChild(tooltipEl); + + if (w.globals.axisCharts) { + this.axesTooltip.drawXaxisTooltip(); + this.axesTooltip.drawYaxisTooltip(); + this.axesTooltip.setXCrosshairWidth(); + this.axesTooltip.handleYCrosshair(); + var xAxis = new XAxis(this.ctx); + this.xAxisTicksPositions = xAxis.getXAxisTicksPositions(); + } // we forcefully set intersect true for these conditions + + + if (w.globals.comboCharts && !w.config.tooltip.shared || w.config.tooltip.intersect && !w.config.tooltip.shared || w.config.chart.type === 'bar' && !w.config.tooltip.shared) { + this.showOnIntersect = true; + } + + if (w.config.markers.size === 0 || w.globals.markers.largestSize === 0) { + // when user don't want to show points all the time, but only on when hovering on series + this.marker.drawDynamicPoints(this); + } // no visible series, exit + + + if (w.globals.collapsedSeries.length === w.globals.series.length) return; + this.dataPointsDividedHeight = w.globals.gridHeight / w.globals.dataPoints; + this.dataPointsDividedWidth = w.globals.gridWidth / w.globals.dataPoints; + + if (this.showTooltipTitle) { + this.tooltipTitle = document.createElement('div'); + this.tooltipTitle.classList.add('apexcharts-tooltip-title'); + this.tooltipTitle.style.fontFamily = w.config.tooltip.style.fontFamily || w.config.chart.fontFamily; + this.tooltipTitle.style.fontSize = w.config.tooltip.style.fontSize; + tooltipEl.appendChild(this.tooltipTitle); + } + + var ttItemsCnt = w.globals.series.length; // whether shared or not, default is shared + + if ((w.globals.xyCharts || w.globals.comboCharts) && w.config.tooltip.shared) { + if (!this.showOnIntersect) { + ttItemsCnt = w.globals.series.length; + } else { + ttItemsCnt = 1; + } + } + + this.ttItems = this.createTTElements(ttItemsCnt); + this.addSVGEvents(); + } + }, { + key: "createTTElements", + value: function createTTElements(ttItemsCnt) { + var w = this.w; + var ttItems = []; + var tooltipEl = this.getElTooltip(); + + for (var i = 0; i < ttItemsCnt; i++) { + var gTxt = document.createElement('div'); + gTxt.classList.add('apexcharts-tooltip-series-group'); + var point = document.createElement('span'); + point.classList.add('apexcharts-tooltip-marker'); + point.style.backgroundColor = w.globals.colors[i]; + gTxt.appendChild(point); + var gYZ = document.createElement('div'); + gYZ.classList.add('apexcharts-tooltip-text'); + gYZ.style.fontFamily = w.config.tooltip.style.fontFamily || w.config.chart.fontFamily; + gYZ.style.fontSize = w.config.tooltip.style.fontSize; // y values group + + var gYValText = document.createElement('div'); + gYValText.classList.add('apexcharts-tooltip-y-group'); + var txtLabel = document.createElement('span'); + txtLabel.classList.add('apexcharts-tooltip-text-label'); + gYValText.appendChild(txtLabel); + var txtValue = document.createElement('span'); + txtValue.classList.add('apexcharts-tooltip-text-value'); + gYValText.appendChild(txtValue); // z values group + + var gZValText = document.createElement('div'); + gZValText.classList.add('apexcharts-tooltip-z-group'); + var txtZLabel = document.createElement('span'); + txtZLabel.classList.add('apexcharts-tooltip-text-z-label'); + gZValText.appendChild(txtZLabel); + var txtZValue = document.createElement('span'); + txtZValue.classList.add('apexcharts-tooltip-text-z-value'); + gZValText.appendChild(txtZValue); + gYZ.appendChild(gYValText); + gYZ.appendChild(gZValText); + gTxt.appendChild(gYZ); + tooltipEl.appendChild(gTxt); + ttItems.push(gTxt); + } + + return ttItems; + } + }, { + key: "addSVGEvents", + value: function addSVGEvents() { + var w = this.w; + var type = w.config.chart.type; + var tooltipEl = this.getElTooltip(); + var barOrCandlestick = !!(type === 'bar' || type === 'candlestick'); + var hoverArea = w.globals.dom.Paper.node; + var elGrid = this.getElGrid(); + + if (elGrid) { + this.seriesBound = elGrid.getBoundingClientRect(); + } + + var tooltipY = []; + var tooltipX = []; + var seriesHoverParams = { + hoverArea: hoverArea, + elGrid: elGrid, + tooltipEl: tooltipEl, + tooltipY: tooltipY, + tooltipX: tooltipX, + ttItems: this.ttItems + }; + var points; + + if (w.globals.axisCharts) { + if (type === 'area' || type === 'line' || type === 'scatter' || type === 'bubble') { + points = w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"); + } else if (barOrCandlestick) { + points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series .apexcharts-bar-area', '.apexcharts-series .apexcharts-candlestick-area'); + } else if (type === 'heatmap') { + points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series .apexcharts-heatmap'); + } else if (type === 'radar') { + points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series .apexcharts-marker'); + } + + if (points && points.length) { + for (var p = 0; p < points.length; p++) { + tooltipY.push(points[p].getAttribute('cy')); + tooltipX.push(points[p].getAttribute('cx')); + } + } + } + + var validSharedChartTypes = w.globals.xyCharts && !this.showOnIntersect || w.globals.comboCharts && !this.showOnIntersect || barOrCandlestick && this.hasBars() && w.config.tooltip.shared; + + if (validSharedChartTypes) { + this.addPathsEventListeners([hoverArea], seriesHoverParams); + } else if (barOrCandlestick && !w.globals.comboCharts) { + this.addBarsEventListeners(seriesHoverParams); + } else if (type === 'bubble' || type === 'scatter' || type === 'radar' || this.showOnIntersect && (type === 'area' || type === 'line')) { + this.addPointsEventsListeners(seriesHoverParams); + } else if (!w.globals.axisCharts || type === 'heatmap') { + var seriesAll = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series'); + this.addPathsEventListeners(seriesAll, seriesHoverParams); + } + + if (this.showOnIntersect) { + var linePoints = w.globals.dom.baseEl.querySelectorAll('.apexcharts-line-series .apexcharts-marker'); + + if (linePoints.length > 0) { + // if we find any lineSeries, addEventListeners for them + this.addPathsEventListeners(linePoints, seriesHoverParams); + } + + var areaPoints = w.globals.dom.baseEl.querySelectorAll('.apexcharts-area-series .apexcharts-marker'); + + if (areaPoints.length > 0) { + // if we find any areaSeries, addEventListeners for them + this.addPathsEventListeners(areaPoints, seriesHoverParams); + } // combo charts may have bars, so add event listeners here too + + + if (this.hasBars() && !w.config.tooltip.shared) { + this.addBarsEventListeners(seriesHoverParams); + } + } + } + }, { + key: "drawFixedTooltipRect", + value: function drawFixedTooltipRect() { + var w = this.w; + var tooltipEl = this.getElTooltip(); + var tooltipRect = tooltipEl.getBoundingClientRect(); + var ttWidth = tooltipRect.width + 10; + var ttHeight = tooltipRect.height + 10; + var x = w.config.tooltip.fixed.offsetX; + var y = w.config.tooltip.fixed.offsetY; + + if (w.config.tooltip.fixed.position.toLowerCase().indexOf('right') > -1) { + x = x + w.globals.svgWidth - ttWidth + 10; + } + + if (w.config.tooltip.fixed.position.toLowerCase().indexOf('bottom') > -1) { + y = y + w.globals.svgHeight - ttHeight - 10; + } + + tooltipEl.style.left = x + 'px'; + tooltipEl.style.top = y + 'px'; + return { + x: x, + y: y, + ttWidth: ttWidth, + ttHeight: ttHeight + }; + } + }, { + key: "addPointsEventsListeners", + value: function addPointsEventsListeners(seriesHoverParams) { + var w = this.w; + var points = w.globals.dom.baseEl.querySelectorAll('.apexcharts-series-markers .apexcharts-marker'); + this.addPathsEventListeners(points, seriesHoverParams); + } + }, { + key: "addBarsEventListeners", + value: function addBarsEventListeners(seriesHoverParams) { + var w = this.w; + var bars = w.globals.dom.baseEl.querySelectorAll('.apexcharts-bar-area, .apexcharts-candlestick-area'); + this.addPathsEventListeners(bars, seriesHoverParams); + } + }, { + key: "addPathsEventListeners", + value: function addPathsEventListeners(paths, opts) { + var _this = this; + + var self = this; + + var _loop = function _loop(p) { + var extendedOpts = { + paths: paths[p], + tooltipEl: opts.tooltipEl, + tooltipY: opts.tooltipY, + tooltipX: opts.tooltipX, + elGrid: opts.elGrid, + hoverArea: opts.hoverArea, + ttItems: opts.ttItems + }; + _this.w.globals.tooltipOpts = extendedOpts; + var events = ['mousemove', 'touchmove', 'mouseout', 'touchend']; + events.map(function (ev) { + return paths[p].addEventListener(ev, self.seriesHover.bind(self, extendedOpts), { + capture: false, + passive: true + }); + }); + }; + + for (var p = 0; p < paths.length; p++) { + _loop(p); + } + } + /* + ** The actual series hover function + */ + + }, { + key: "seriesHover", + value: function seriesHover(opt, e) { + var _this2 = this; + + var chartGroups = []; + var w = this.w; // if user has more than one charts in group, we need to sync + + if (w.config.chart.group) { + chartGroups = this.ctx.getGroupedCharts(); + } + + if (w.globals.axisCharts && (w.globals.minX === -Infinity && w.globals.maxX === Infinity || w.globals.dataPoints === 0)) { + return; + } + + if (chartGroups.length) { + chartGroups.forEach(function (ch) { + var tooltipEl = _this2.getElTooltip(ch); + + var newOpts = { + paths: opt.paths, + tooltipEl: tooltipEl, + tooltipY: opt.tooltipY, + tooltipX: opt.tooltipX, + elGrid: opt.elGrid, + hoverArea: opt.hoverArea, + ttItems: ch.w.globals.tooltip.ttItems // all the charts should have the same minX and maxX (same xaxis) for multiple tooltips to work correctly + + }; + + if (ch.w.globals.minX === _this2.w.globals.minX && ch.w.globals.maxX === _this2.w.globals.maxX) { + ch.w.globals.tooltip.seriesHoverByContext({ + chartCtx: ch, + ttCtx: ch.w.globals.tooltip, + opt: newOpts, + e: e + }); + } + }); + } else { + this.seriesHoverByContext({ + chartCtx: this.ctx, + ttCtx: this.w.globals.tooltip, + opt: opt, + e: e + }); + } + } + }, { + key: "seriesHoverByContext", + value: function seriesHoverByContext(_ref) { + var chartCtx = _ref.chartCtx, + ttCtx = _ref.ttCtx, + opt = _ref.opt, + e = _ref.e; + var w = chartCtx.w; + var tooltipEl = this.getElTooltip(); // tooltipRect is calculated on every mousemove, because the text is dynamic + + ttCtx.tooltipRect = { + x: 0, + y: 0, + ttWidth: tooltipEl.getBoundingClientRect().width, + ttHeight: tooltipEl.getBoundingClientRect().height + }; + ttCtx.e = e; // highlight the current hovered bars + + if (ttCtx.hasBars() && !w.globals.comboCharts && !ttCtx.isBarShared) { + if (w.config.tooltip.onDatasetHover.highlightDataSeries) { + var series = new Series(chartCtx); + series.toggleSeriesOnHover(e, e.target.parentNode); + } + } + + if (ttCtx.fixedTooltip) { + ttCtx.drawFixedTooltipRect(); + } + + if (w.globals.axisCharts) { + ttCtx.axisChartsTooltips({ + e: e, + opt: opt, + tooltipRect: ttCtx.tooltipRect + }); + } else { + // non-plot charts i.e pie/donut/circle + ttCtx.nonAxisChartsTooltips({ + e: e, + opt: opt, + tooltipRect: ttCtx.tooltipRect + }); + } + } // tooltip handling for line/area/bar/columns/scatter + + }, { + key: "axisChartsTooltips", + value: function axisChartsTooltips(_ref2) { + var e = _ref2.e, + opt = _ref2.opt; + var w = this.w; + var j, x, y; + var self = this; + var capj = null; + var seriesBound = opt.elGrid.getBoundingClientRect(); + var clientX = e.type === 'touchmove' ? e.touches[0].clientX : e.clientX; + var clientY = e.type === 'touchmove' ? e.touches[0].clientY : e.clientY; + this.clientY = clientY; + this.clientX = clientX; + + if (clientY < seriesBound.top || clientY > seriesBound.top + seriesBound.height) { + self.handleMouseOut(opt); + return; + } + + var tooltipEl = this.getElTooltip(); + var xcrosshairs = this.getElXCrosshairs(); + var isStickyTooltip = w.globals.xyCharts || w.config.chart.type === 'bar' && !this.isBarHorizontal && this.hasBars() && w.config.tooltip.shared || w.globals.comboCharts && this.hasBars; + + if (w.config.chart.type === 'bar' && this.isBarHorizontal && this.hasBars()) { + isStickyTooltip = false; + } + + if (e.type === 'mousemove' || e.type === 'touchmove') { + if (xcrosshairs !== null) { + xcrosshairs.classList.add('active'); + } + + if (self.ycrosshairs !== null && self.blyaxisTooltip) { + self.ycrosshairs.classList.add('active'); + } + + if (isStickyTooltip && !self.showOnIntersect) { + capj = self.tooltipUtil.getNearestValues({ + context: self, + hoverArea: opt.hoverArea, + elGrid: opt.elGrid, + clientX: clientX, + clientY: clientY, + hasBars: self.hasBars + }); + j = capj.j; + var capturedSeries = capj.capturedSeries; + + if (capj.hoverX < 0 || capj.hoverX > w.globals.gridWidth) { + self.handleMouseOut(opt); + return; + } + + if (capturedSeries !== null) { + var ignoreNull = w.globals.series[capturedSeries][j] === null; + + if (ignoreNull) { + opt.tooltipEl.classList.remove('active'); + return; + } + + if (typeof w.globals.series[capturedSeries][j] !== 'undefined') { + if (w.config.tooltip.shared && this.tooltipUtil.isXoverlap(j) && this.tooltipUtil.isinitialSeriesSameLen()) { + this.create(self, capturedSeries, j, opt.ttItems); + } else { + this.create(self, capturedSeries, j, opt.ttItems, false); + } + } else { + if (this.tooltipUtil.isXoverlap(j)) { + self.create(self, 0, j, opt.ttItems); + } + } + } else { + // couldn't capture any series. check if shared X is same, + // if yes, draw a grouped tooltip + if (this.tooltipUtil.isXoverlap(j)) { + self.create(self, 0, j, opt.ttItems); + } + } + } else { + if (w.config.chart.type === 'heatmap') { + var markerXY = this.intersect.handleHeatTooltip({ + e: e, + opt: opt, + x: x, + y: y + }); + x = markerXY.x; + y = markerXY.y; + tooltipEl.style.left = x + 'px'; + tooltipEl.style.top = y + 'px'; + } else { + if (this.hasBars) { + this.intersect.handleBarTooltip({ + e: e, + opt: opt + }); + } + + if (this.hasMarkers) { + // intersect - line/area/scatter/bubble + this.intersect.handleMarkerTooltip({ + e: e, + opt: opt, + x: x, + y: y + }); + } + } + } + + if (this.blyaxisTooltip) { + for (var yt = 0; yt < w.config.yaxis.length; yt++) { + self.axesTooltip.drawYaxisTooltipText(yt, clientY, self.xyRatios); + } + } + + opt.tooltipEl.classList.add('active'); + } else if (e.type === 'mouseout' || e.type === 'touchend') { + this.handleMouseOut(opt); + } + } // tooltip handling for pie/donuts + + }, { + key: "nonAxisChartsTooltips", + value: function nonAxisChartsTooltips(_ref3) { + var e = _ref3.e, + opt = _ref3.opt, + tooltipRect = _ref3.tooltipRect; + var w = this.w; + var rel = opt.paths.getAttribute('rel'); + var tooltipEl = this.getElTooltip(); + var trX = 0; + var trY = 0; + var elPie = null; + var clientX = e.type === 'touchmove' ? e.touches[0].clientX : e.clientX; + + if (w.config.chart.type === 'radialBar') { + elPie = w.globals.dom.baseEl.querySelector('.apexcharts-radialbar'); + } else { + elPie = w.globals.dom.baseEl.querySelector('.apexcharts-pie'); + trX = parseInt(elPie.getAttribute('data:innerTranslateX')); + trY = parseInt(elPie.getAttribute('data:innerTranslateY')); + } + + var seriesBound = elPie.getBoundingClientRect(); + + if (e.type === 'mousemove' || e.type === 'touchmove') { + tooltipEl.classList.add('active'); + this.tooltipLabels.drawSeriesTexts({ + ttItems: opt.ttItems, + i: parseInt(rel) - 1, + shared: false + }); + var x = clientX - seriesBound.left - tooltipRect.ttWidth / 2.2 + trX; + var y = e.clientY - seriesBound.top - tooltipRect.ttHeight / 2 - 15 + trY; + + if (x < 0) { + x = 0; + } else if (x + tooltipRect.ttWidth > w.globals.gridWidth) { + x = clientX - seriesBound.left - tooltipRect.ttWidth + trX; + } + + if (y < 0) y = tooltipRect.ttHeight + 20; + tooltipEl.style.left = x + w.globals.translateX + 'px'; + tooltipEl.style.top = y + 'px'; + } else if (e.type === 'mouseout' || e.type === 'touchend') { + tooltipEl.classList.remove('active'); + } + } + }, { + key: "deactivateHoverFilter", + value: function deactivateHoverFilter() { + var w = this.w; + var graphics = new Graphics(this.ctx); + var allPaths = w.globals.dom.Paper.select(".apexcharts-bar-area"); + + for (var b = 0; b < allPaths.length; b++) { + graphics.pathMouseLeave(allPaths[b]); + } + } + }, { + key: "handleMouseOut", + value: function handleMouseOut(opt) { + var w = this.w; + var xcrosshairs = this.getElXCrosshairs(); + opt.tooltipEl.classList.remove('active'); + this.deactivateHoverFilter(); + + if (w.config.chart.type !== 'bubble') { + this.marker.resetPointsSize(); + } + + if (xcrosshairs !== null) { + xcrosshairs.classList.remove('active'); + } + + if (this.ycrosshairs !== null) { + this.ycrosshairs.classList.remove('active'); + } + + if (this.blxaxisTooltip) { + this.xaxisTooltip.classList.remove('active'); + } + + if (this.blyaxisTooltip) { + if (this.yaxisTTEls === null) { + this.yaxisTTEls = w.globals.dom.baseEl.querySelectorAll('.apexcharts-yaxistooltip'); + } + + for (var i = 0; i < this.yaxisTTEls.length; i++) { + this.yaxisTTEls[i].classList.remove('active'); + } + } + } + }, { + key: "getElMarkers", + value: function getElMarkers() { + return this.w.globals.dom.baseEl.querySelectorAll(' .apexcharts-series-markers'); + } + }, { + key: "getAllMarkers", + value: function getAllMarkers() { + return this.w.globals.dom.baseEl.querySelectorAll('.apexcharts-series-markers .apexcharts-marker'); + } + }, { + key: "hasMarkers", + value: function hasMarkers() { + var markers = this.getElMarkers(); + return markers.length > 0; + } + }, { + key: "getElBars", + value: function getElBars() { + return this.w.globals.dom.baseEl.querySelectorAll('.apexcharts-bar-series, .apexcharts-candlestick-series'); + } + }, { + key: "hasBars", + value: function hasBars() { + var bars = this.getElBars(); + return bars.length > 0; + } + }, { + key: "create", + value: function create(context, capturedSeries, j, ttItems) { + var shared = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null; + var w = this.w; + var self = context; + if (shared === null) shared = w.config.tooltip.shared; + var hasMarkers = this.hasMarkers(); + var bars = this.getElBars(); + + if (shared) { + self.tooltipLabels.drawSeriesTexts({ + ttItems: ttItems, + i: capturedSeries, + j: j, + shared: this.showOnIntersect ? false : w.config.tooltip.shared + }); + + if (hasMarkers) { + if (w.globals.markers.largestSize > 0) { + self.marker.enlargePoints(j); + } else { + self.tooltipPosition.moveDynamicPointsOnHover(j); + } + } + + if (this.hasBars()) { + this.barSeriesHeight = this.tooltipUtil.getBarsHeight(bars); + + if (this.barSeriesHeight > 0) { + // hover state, activate snap filter + var graphics = new Graphics(this.ctx); + var paths = w.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(j, "']")); // de-activate first + + this.deactivateHoverFilter(); + this.tooltipPosition.moveStickyTooltipOverBars(j); + + for (var b = 0; b < paths.length; b++) { + graphics.pathMouseEnter(paths[b]); + } + } + } + } else { + self.tooltipLabels.drawSeriesTexts({ + shared: false, + ttItems: ttItems, + i: capturedSeries, + j: j + }); + + if (this.hasBars()) { + self.tooltipPosition.moveStickyTooltipOverBars(j); + } + + if (hasMarkers) { + self.tooltipPosition.moveMarkers(capturedSeries, j); + } + } + } + }]); + + return Tooltip; + }(); + + var icoPan = "\n \n \n \n \n \n \n \n"; + + var icoZoom = "\n \n \n \n"; + + var icoReset = "\n \n \n"; + + var icoZoomIn = "\n \n \n\n"; + + var icoZoomOut = "\n \n \n\n"; + + var icoSelect = "\n \n \n"; + + var icoMenu = ""; + + /** + * ApexCharts Toolbar Class for creating toolbar in axis based charts. + * + * @module Toolbar + **/ + + var Toolbar = + /*#__PURE__*/ + function () { + function Toolbar(ctx) { + _classCallCheck(this, Toolbar); + + this.ctx = ctx; + this.w = ctx.w; + this.ev = this.w.config.chart.events; + this.localeValues = this.w.globals.locale.toolbar; + } + + _createClass(Toolbar, [{ + key: "createToolbar", + value: function createToolbar() { + var w = this.w; + var elToolbarWrap = document.createElement('div'); + elToolbarWrap.setAttribute('class', 'apexcharts-toolbar'); + w.globals.dom.elWrap.appendChild(elToolbarWrap); + this.elZoom = document.createElement('div'); + this.elZoomIn = document.createElement('div'); + this.elZoomOut = document.createElement('div'); + this.elPan = document.createElement('div'); + this.elSelection = document.createElement('div'); + this.elZoomReset = document.createElement('div'); + this.elMenuIcon = document.createElement('div'); + this.elMenu = document.createElement('div'); + this.elCustomIcons = []; + this.t = w.config.chart.toolbar.tools; + + if (Array.isArray(this.t.customIcons)) { + for (var i = 0; i < this.t.customIcons.length; i++) { + this.elCustomIcons.push(document.createElement('div')); + } + } + + this.elMenuItems = []; + var toolbarControls = []; + + if (this.t.zoomin && w.config.chart.zoom.enabled) { + toolbarControls.push({ + el: this.elZoomIn, + icon: typeof this.t.zoomin === 'string' ? this.t.zoomin : icoZoomIn, + title: this.localeValues.zoomIn, + class: 'apexcharts-zoom-in-icon' + }); + } + + if (this.t.zoomout && w.config.chart.zoom.enabled) { + toolbarControls.push({ + el: this.elZoomOut, + icon: typeof this.t.zoomout === 'string' ? this.t.zoomout : icoZoomOut, + title: this.localeValues.zoomOut, + class: 'apexcharts-zoom-out-icon' + }); + } + + if (this.t.zoom && w.config.chart.zoom.enabled) { + toolbarControls.push({ + el: this.elZoom, + icon: typeof this.t.zoom === 'string' ? this.t.zoom : icoZoom, + title: this.localeValues.selectionZoom, + class: w.globals.isTouchDevice ? 'hidden' : 'apexcharts-zoom-icon' + }); + } + + if (this.t.selection && w.config.chart.selection.enabled) { + toolbarControls.push({ + el: this.elSelection, + icon: typeof this.t.selection === 'string' ? this.t.selection : icoSelect, + title: this.localeValues.selection, + class: w.globals.isTouchDevice ? 'hidden' : 'apexcharts-selection-icon' + }); + } + + if (this.t.pan && w.config.chart.zoom.enabled) { + toolbarControls.push({ + el: this.elPan, + icon: typeof this.t.pan === 'string' ? this.t.pan : icoPan, + title: this.localeValues.pan, + class: w.globals.isTouchDevice ? 'hidden' : 'apexcharts-pan-icon' + }); + } + + if (this.t.reset && w.config.chart.zoom.enabled) { + toolbarControls.push({ + el: this.elZoomReset, + icon: typeof this.t.reset === 'string' ? this.t.reset : icoReset, + title: this.localeValues.reset, + class: 'apexcharts-reset-zoom-icon' + }); + } + + if (this.t.download) { + toolbarControls.push({ + el: this.elMenuIcon, + icon: typeof this.t.download === 'string' ? this.t.download : icoMenu, + title: this.localeValues.menu, + class: 'apexcharts-menu-icon' + }); + } + + for (var _i = 0; _i < this.elCustomIcons.length; _i++) { + toolbarControls.push({ + el: this.elCustomIcons[_i], + icon: this.t.customIcons[_i].icon, + title: this.t.customIcons[_i].title, + index: this.t.customIcons[_i].index, + class: 'apexcharts-toolbar-custom-icon ' + this.t.customIcons[_i].class + }); + } + + toolbarControls.forEach(function (t, index) { + if (t.index) { + Utils.moveIndexInArray(toolbarControls, index, t.index); + } + }); + + for (var _i2 = 0; _i2 < toolbarControls.length; _i2++) { + Graphics.setAttrs(toolbarControls[_i2].el, { + class: toolbarControls[_i2].class, + title: toolbarControls[_i2].title + }); + toolbarControls[_i2].el.innerHTML = toolbarControls[_i2].icon; + elToolbarWrap.appendChild(toolbarControls[_i2].el); + } + + elToolbarWrap.appendChild(this.elMenu); + Graphics.setAttrs(this.elMenu, { + class: 'apexcharts-menu' + }); + var menuItems = [{ + name: 'exportSVG', + title: this.localeValues.exportToSVG + }, { + name: 'exportPNG', + title: this.localeValues.exportToPNG + }]; + + for (var _i3 = 0; _i3 < menuItems.length; _i3++) { + this.elMenuItems.push(document.createElement('div')); + this.elMenuItems[_i3].innerHTML = menuItems[_i3].title; + Graphics.setAttrs(this.elMenuItems[_i3], { + class: "apexcharts-menu-item ".concat(menuItems[_i3].name), + title: menuItems[_i3].title + }); + this.elMenu.appendChild(this.elMenuItems[_i3]); + } + + if (w.globals.zoomEnabled) { + this.elZoom.classList.add('selected'); + } else if (w.globals.panEnabled) { + this.elPan.classList.add('selected'); + } else if (w.globals.selectionEnabled) { + this.elSelection.classList.add('selected'); + } + + this.addToolbarEventListeners(); + } + }, { + key: "addToolbarEventListeners", + value: function addToolbarEventListeners() { + var _this = this; + + this.elZoomReset.addEventListener('click', this.handleZoomReset.bind(this)); + this.elSelection.addEventListener('click', this.toggleSelection.bind(this)); + this.elZoom.addEventListener('click', this.toggleZooming.bind(this)); + this.elZoomIn.addEventListener('click', this.handleZoomIn.bind(this)); + this.elZoomOut.addEventListener('click', this.handleZoomOut.bind(this)); + this.elPan.addEventListener('click', this.togglePanning.bind(this)); + this.elMenuIcon.addEventListener('click', this.toggleMenu.bind(this)); + this.elMenuItems.forEach(function (m) { + if (m.classList.contains('exportSVG')) { + m.addEventListener('click', _this.downloadSVG.bind(_this)); + } else if (m.classList.contains('exportPNG')) { + m.addEventListener('click', _this.downloadPNG.bind(_this)); + } + }); + + for (var i = 0; i < this.t.customIcons.length; i++) { + this.elCustomIcons[i].addEventListener('click', this.t.customIcons[i].click); + } + } + }, { + key: "toggleSelection", + value: function toggleSelection() { + this.toggleOtherControls(); + this.w.globals.selectionEnabled = !this.w.globals.selectionEnabled; + + if (!this.elSelection.classList.contains('selected')) { + this.elSelection.classList.add('selected'); + } else { + this.elSelection.classList.remove('selected'); + } + } + }, { + key: "toggleZooming", + value: function toggleZooming() { + this.toggleOtherControls(); + this.w.globals.zoomEnabled = !this.w.globals.zoomEnabled; + + if (!this.elZoom.classList.contains('selected')) { + this.elZoom.classList.add('selected'); + } else { + this.elZoom.classList.remove('selected'); + } + } + }, { + key: "getToolbarIconsReference", + value: function getToolbarIconsReference() { + var w = this.w; + + if (!this.elZoom) { + this.elZoom = w.globals.dom.baseEl.querySelector('.apexcharts-zoom-icon'); + } + + if (!this.elPan) { + this.elPan = w.globals.dom.baseEl.querySelector('.apexcharts-pan-icon'); + } + + if (!this.elSelection) { + this.elSelection = w.globals.dom.baseEl.querySelector('.apexcharts-selection-icon'); + } + } + }, { + key: "enableZooming", + value: function enableZooming() { + this.toggleOtherControls(); + this.w.globals.zoomEnabled = true; + + if (this.elZoom) { + this.elZoom.classList.add('selected'); + } + + if (this.elPan) { + this.elPan.classList.remove('selected'); + } + } + }, { + key: "enablePanning", + value: function enablePanning() { + this.toggleOtherControls(); + this.w.globals.panEnabled = true; + + if (this.elPan) { + this.elPan.classList.add('selected'); + } + + if (this.elZoom) { + this.elZoom.classList.remove('selected'); + } + } + }, { + key: "togglePanning", + value: function togglePanning() { + this.toggleOtherControls(); + this.w.globals.panEnabled = !this.w.globals.panEnabled; + + if (!this.elPan.classList.contains('selected')) { + this.elPan.classList.add('selected'); + } else { + this.elPan.classList.remove('selected'); + } + } + }, { + key: "toggleOtherControls", + value: function toggleOtherControls() { + var w = this.w; + w.globals.panEnabled = false; + w.globals.zoomEnabled = false; + w.globals.selectionEnabled = false; + this.getToolbarIconsReference(); + + if (this.elPan) { + this.elPan.classList.remove('selected'); + } + + if (this.elSelection) { + this.elSelection.classList.remove('selected'); + } + + if (this.elZoom) { + this.elZoom.classList.remove('selected'); + } + } + }, { + key: "handleZoomIn", + value: function handleZoomIn() { + var w = this.w; + var centerX = (w.globals.minX + w.globals.maxX) / 2; + var newMinX = (w.globals.minX + centerX) / 2; + var newMaxX = (w.globals.maxX + centerX) / 2; + + if (!w.globals.disableZoomIn) { + this.zoomUpdateOptions(newMinX, newMaxX); + } + } + }, { + key: "handleZoomOut", + value: function handleZoomOut() { + var w = this.w; // avoid zooming out beyond 1000 which may result in NaN values being printed on x-axis + + if (w.config.xaxis.type === 'datetime' && new Date(w.globals.minX).getUTCFullYear() < 1000) { + return; + } + + var centerX = (w.globals.minX + w.globals.maxX) / 2; + var newMinX = w.globals.minX - (centerX - w.globals.minX); + var newMaxX = w.globals.maxX - (centerX - w.globals.maxX); + + if (!w.globals.disableZoomOut) { + this.zoomUpdateOptions(newMinX, newMaxX); + } + } + }, { + key: "zoomUpdateOptions", + value: function zoomUpdateOptions(newMinX, newMaxX) { + var xaxis = { + min: newMinX, + max: newMaxX + }; + var beforeZoomRange = this.getBeforeZoomRange(xaxis); + + if (beforeZoomRange) { + xaxis = beforeZoomRange.xaxis; + } + + this.w.globals.zoomed = true; + + this.ctx._updateOptions({ + xaxis: xaxis + }, false, this.w.config.chart.animations.dynamicAnimation.enabled); + + this.zoomCallback(xaxis); + } + }, { + key: "zoomCallback", + value: function zoomCallback(xaxis, yaxis) { + if (typeof this.ev.zoomed === 'function') { + this.ev.zoomed(this.ctx, { + xaxis: xaxis, + yaxis: yaxis + }); + } + } + }, { + key: "getBeforeZoomRange", + value: function getBeforeZoomRange(xaxis, yaxis) { + var newRange = null; + + if (typeof this.ev.beforeZoom === 'function') { + newRange = this.ev.beforeZoom(this, { + xaxis: xaxis, + yaxis: yaxis + }); + } + + return newRange; + } + }, { + key: "toggleMenu", + value: function toggleMenu() { + if (this.elMenu.classList.contains('open')) { + this.elMenu.classList.remove('open'); + } else { + this.elMenu.classList.add('open'); + } + } + }, { + key: "downloadPNG", + value: function downloadPNG() { + var downloadPNG = new Exports(this.ctx); + downloadPNG.exportToPng(this.ctx); + this.toggleMenu(); + } + }, { + key: "downloadSVG", + value: function downloadSVG() { + var downloadSVG = new Exports(this.ctx); + downloadSVG.exportToSVG(); + this.toggleMenu(); + } + }, { + key: "handleZoomReset", + value: function handleZoomReset(e) { + var _this2 = this; + + var charts = this.ctx.getSyncedCharts(); + charts.forEach(function (ch) { + var w = ch.w; + + if (w.globals.minX !== w.globals.initialminX && w.globals.maxX !== w.globals.initialmaxX) { + ch.revertDefaultAxisMinMax(); + + if (typeof w.config.chart.events.zoomed === 'function') { + _this2.zoomCallback({ + min: w.config.xaxis.min, + max: w.config.xaxis.max + }); + } + + w.globals.zoomed = false; + + ch._updateSeries(w.globals.initialSeries, w.config.chart.animations.dynamicAnimation.enabled); + } + }); + } + }, { + key: "destroy", + value: function destroy() { + if (this.elZoomReset) { + this.elZoomReset.removeEventListener('click', this.handleZoomReset.bind(this)); + this.elSelection.removeEventListener('click', this.toggleSelection.bind(this)); + this.elZoom.removeEventListener('click', this.toggleZooming.bind(this)); + this.elZoomIn.removeEventListener('click', this.handleZoomIn.bind(this)); + this.elZoomOut.removeEventListener('click', this.handleZoomOut.bind(this)); + this.elPan.removeEventListener('click', this.togglePanning.bind(this)); + this.elMenuIcon.removeEventListener('click', this.toggleMenu.bind(this)); + } + + this.elZoom = null; + this.elZoomIn = null; + this.elZoomOut = null; + this.elPan = null; + this.elSelection = null; + this.elZoomReset = null; + this.elMenuIcon = null; + } + }]); + + return Toolbar; + }(); + + /** + * ApexCharts Zoom Class for handling zooming and panning on axes based charts. + * + * @module ZoomPanSelection + **/ + + var ZoomPanSelection = + /*#__PURE__*/ + function (_Toolbar) { + _inherits(ZoomPanSelection, _Toolbar); + + function ZoomPanSelection(ctx) { + var _this; + + _classCallCheck(this, ZoomPanSelection); + + _this = _possibleConstructorReturn(this, _getPrototypeOf(ZoomPanSelection).call(this, ctx)); + _this.ctx = ctx; + _this.w = ctx.w; + _this.dragged = false; + _this.graphics = new Graphics(_this.ctx); + _this.eventList = ['mousedown', 'mousemove', 'touchstart', 'touchmove', 'mouseup', 'touchend']; + _this.clientX = 0; + _this.clientY = 0; + _this.startX = 0; + _this.endX = 0; + _this.dragX = 0; + _this.startY = 0; + _this.endY = 0; + _this.dragY = 0; + return _this; + } + + _createClass(ZoomPanSelection, [{ + key: "init", + value: function init(_ref) { + var _this2 = this; + + var xyRatios = _ref.xyRatios; + var w = this.w; + var me = this; + this.xyRatios = xyRatios; + this.zoomRect = this.graphics.drawRect(0, 0, 0, 0); + this.selectionRect = this.graphics.drawRect(0, 0, 0, 0); + this.gridRect = w.globals.dom.baseEl.querySelector('.apexcharts-grid'); + this.zoomRect.node.classList.add('apexcharts-zoom-rect'); + this.selectionRect.node.classList.add('apexcharts-selection-rect'); + w.globals.dom.elGraphical.add(this.zoomRect); + w.globals.dom.elGraphical.add(this.selectionRect); + + if (w.config.chart.selection.type === 'x') { + this.slDraggableRect = this.selectionRect.draggable({ + minX: 0, + minY: 0, + maxX: w.globals.gridWidth, + maxY: w.globals.gridHeight + }).on('dragmove', this.selectionDragging.bind(this, 'dragging')); + } else if (w.config.chart.selection.type === 'y') { + this.slDraggableRect = this.selectionRect.draggable({ + minX: 0, + maxX: w.globals.gridWidth + }).on('dragmove', this.selectionDragging.bind(this, 'dragging')); + } else { + this.slDraggableRect = this.selectionRect.draggable().on('dragmove', this.selectionDragging.bind(this, 'dragging')); + } + + this.preselectedSelection(); + this.hoverArea = w.globals.dom.baseEl.querySelector(w.globals.chartClass); + this.hoverArea.classList.add('zoomable'); + this.eventList.forEach(function (event) { + _this2.hoverArea.addEventListener(event, me.svgMouseEvents.bind(me, xyRatios), { + capture: false, + passive: true + }); + }); + } // remove the event listeners which were previously added on hover area + + }, { + key: "destroy", + value: function destroy() { + var _this3 = this; + + var me = this; + this.eventList.forEach(function (event) { + if (_this3.hoverArea) { + _this3.hoverArea.removeEventListener(event, me.svgMouseEvents.bind(me, me.xyRatios), { + capture: false, + passive: true + }); + } + }); + + if (this.slDraggableRect) { + this.slDraggableRect.draggable(false); + this.slDraggableRect.off(); + this.selectionRect.off(); + } + + this.selectionRect = null; + this.zoomRect = null; + this.gridRect = null; + } + }, { + key: "svgMouseEvents", + value: function svgMouseEvents(xyRatios, e) { + var w = this.w; + var me = this; + var toolbar = this.ctx.toolbar; + var zoomtype = w.globals.zoomEnabled ? w.config.chart.zoom.type : w.config.chart.selection.type; + + if (e.shiftKey) { + this.shiftWasPressed = true; + toolbar.enablePanning(); + } else { + if (this.shiftWasPressed) { + toolbar.enableZooming(); + this.shiftWasPressed = false; + } + } + + var falsePositives = e.target.classList.contains('apexcharts-selection-rect') || e.target.parentNode.classList.contains('apexcharts-toolbar'); + if (falsePositives) return; + me.clientX = e.type === 'touchmove' || e.type === 'touchstart' ? e.touches[0].clientX : e.type === 'touchend' ? e.changedTouches[0].clientX : e.clientX; + me.clientY = e.type === 'touchmove' || e.type === 'touchstart' ? e.touches[0].clientY : e.type === 'touchend' ? e.changedTouches[0].clientY : e.clientY; + + if (e.type === 'mousedown' && e.which === 1) { + var gridRectDim = me.gridRect.getBoundingClientRect(); + me.startX = me.clientX - gridRectDim.left; + me.startY = me.clientY - gridRectDim.top; + me.dragged = false; + me.w.globals.mousedown = true; + } + + if (e.type === 'mousemove' && e.which === 1 || e.type === 'touchmove') { + me.dragged = true; + + if (w.globals.panEnabled) { + w.globals.selection = null; + + if (me.w.globals.mousedown) { + me.panDragging({ + context: me, + zoomtype: zoomtype, + xyRatios: xyRatios + }); + } + } else { + if (me.w.globals.mousedown && w.globals.zoomEnabled || me.w.globals.mousedown && w.globals.selectionEnabled) { + me.selection = me.selectionDrawing({ + context: me, + zoomtype: zoomtype + }); + } + } + } + + if (e.type === 'mouseup' || e.type === 'touchend') { + // we will be calling getBoundingClientRect on each mousedown/mousemove/mouseup + var _gridRectDim = me.gridRect.getBoundingClientRect(); + + if (me.w.globals.mousedown) { + // user released the drag, now do all the calculations + me.endX = me.clientX - _gridRectDim.left; + me.endY = me.clientY - _gridRectDim.top; + me.dragX = Math.abs(me.endX - me.startX); + me.dragY = Math.abs(me.endY - me.startY); + + if (w.globals.zoomEnabled || w.globals.selectionEnabled) { + me.selectionDrawn({ + context: me, + zoomtype: zoomtype + }); + } + } + + if (w.globals.zoomEnabled) { + me.hideSelectionRect(this.selectionRect); + } + + me.dragged = false; + me.w.globals.mousedown = false; + } + + this.makeSelectionRectDraggable(); + } + }, { + key: "makeSelectionRectDraggable", + value: function makeSelectionRectDraggable() { + var w = this.w; + if (!this.selectionRect) return; + var rectDim = this.selectionRect.node.getBoundingClientRect(); + + if (rectDim.width > 0 && rectDim.height > 0) { + this.slDraggableRect.selectize().resize({ + constraint: { + minX: 0, + minY: 0, + maxX: w.globals.gridWidth, + maxY: w.globals.gridHeight + } + }).on('resizing', this.selectionDragging.bind(this, 'resizing')); + } + } + }, { + key: "preselectedSelection", + value: function preselectedSelection() { + var w = this.w; + var xyRatios = this.xyRatios; + + if (!w.globals.zoomEnabled) { + if (typeof w.globals.selection !== 'undefined' && w.globals.selection !== null) { + this.drawSelectionRect(w.globals.selection); + } else { + if (w.config.chart.selection.xaxis.min !== undefined && w.config.chart.selection.xaxis.max !== undefined) { + var x = (w.config.chart.selection.xaxis.min - w.globals.minX) / xyRatios.xRatio; + var width = w.globals.gridWidth - (w.globals.maxX - w.config.chart.selection.xaxis.max) / xyRatios.xRatio - x; + var selectionRect = { + x: x, + y: 0, + width: width, + height: w.globals.gridHeight, + translateX: 0, + translateY: 0, + selectionEnabled: true + }; + this.drawSelectionRect(selectionRect); + this.makeSelectionRectDraggable(); + + if (typeof w.config.chart.events.selection === 'function') { + w.config.chart.events.selection(this.ctx, { + xaxis: { + min: w.config.chart.selection.xaxis.min, + max: w.config.chart.selection.xaxis.max + }, + yaxis: {} + }); + } + } + } + } + } + }, { + key: "drawSelectionRect", + value: function drawSelectionRect(_ref2) { + var x = _ref2.x, + y = _ref2.y, + width = _ref2.width, + height = _ref2.height, + translateX = _ref2.translateX, + translateY = _ref2.translateY; + var w = this.w; + var zoomRect = this.zoomRect; + var selectionRect = this.selectionRect; + + if (this.dragged || w.globals.selection !== null) { + var scalingAttrs = { + transform: 'translate(' + translateX + ', ' + translateY + ')' // change styles based on zoom or selection + // zoom is Enabled and user has dragged, so draw blue rect + + }; + + if (w.globals.zoomEnabled && this.dragged) { + zoomRect.attr({ + x: x, + y: y, + width: width, + height: height, + fill: w.config.chart.zoom.zoomedArea.fill.color, + 'fill-opacity': w.config.chart.zoom.zoomedArea.fill.opacity, + stroke: w.config.chart.zoom.zoomedArea.stroke.color, + 'stroke-width': w.config.chart.zoom.zoomedArea.stroke.width, + 'stroke-opacity': w.config.chart.zoom.zoomedArea.stroke.opacity + }); + Graphics.setAttrs(zoomRect.node, scalingAttrs); + } // selection is enabled + + + if (w.globals.selectionEnabled) { + selectionRect.attr({ + x: x, + y: y, + width: width > 0 ? width : 0, + height: height > 0 ? height : 0, + fill: w.config.chart.selection.fill.color, + 'fill-opacity': w.config.chart.selection.fill.opacity, + stroke: w.config.chart.selection.stroke.color, + 'stroke-width': w.config.chart.selection.stroke.width, + 'stroke-dasharray': w.config.chart.selection.stroke.dashArray, + 'stroke-opacity': w.config.chart.selection.stroke.opacity + }); + Graphics.setAttrs(selectionRect.node, scalingAttrs); + } + } + } + }, { + key: "hideSelectionRect", + value: function hideSelectionRect(rect) { + if (rect) { + rect.attr({ + x: 0, + y: 0, + width: 0, + height: 0 + }); + } + } + }, { + key: "selectionDrawing", + value: function selectionDrawing(_ref3) { + var context = _ref3.context, + zoomtype = _ref3.zoomtype; + var w = this.w; + var me = context; + var gridRectDim = this.gridRect.getBoundingClientRect(); + var startX = me.startX - 1; + var startY = me.startY; + var selectionWidth = me.clientX - gridRectDim.left - startX; + var selectionHeight = me.clientY - gridRectDim.top - startY; + var translateX = 0; + var translateY = 0; + var selectionRect = {}; + + if (Math.abs(selectionWidth + startX) > w.globals.gridWidth || me.clientX - gridRectDim.left < 0) { + // user dragged the mouse outside drawing area + // TODO: test the selectionRect and make sure it doesn't crosses drawing area + me.hideSelectionRect(this.zoomRect); + me.dragged = false; + me.w.globals.mousedown = false; + } // inverse selection X + + + if (startX > me.clientX - gridRectDim.left) { + selectionWidth = Math.abs(selectionWidth); + translateX = -selectionWidth; + } // inverse selection Y + + + if (startY > me.clientY - gridRectDim.top) { + selectionHeight = Math.abs(selectionHeight); + translateY = -selectionHeight; + } + + if (zoomtype === 'x') { + selectionRect = { + x: startX, + y: 0, + width: selectionWidth, + height: w.globals.gridHeight, + translateX: translateX, + translateY: 0 + }; + } else if (zoomtype === 'y') { + selectionRect = { + x: 0, + y: startY, + width: w.globals.gridWidth, + height: selectionHeight, + translateX: 0, + translateY: translateY + }; + } else { + selectionRect = { + x: startX, + y: startY, + width: selectionWidth, + height: selectionHeight, + translateX: translateX, + translateY: translateY + }; + } + + me.drawSelectionRect(selectionRect); + return selectionRect; + } + }, { + key: "selectionDragging", + value: function selectionDragging(type, e) { + var _this4 = this; + + var w = this.w; + var xyRatios = this.xyRatios; + var selRect = this.selectionRect; + var timerInterval = 0; + + if (type === 'resizing') { + timerInterval = 30; + } + + if (typeof w.config.chart.events.selection === 'function') { + // a small debouncer is required when resizing to avoid freezing the chart + clearTimeout(this.w.globals.selectionResizeTimer); + this.w.globals.selectionResizeTimer = window.setTimeout(function () { + var gridRectDim = _this4.gridRect.getBoundingClientRect(); + + var selectionRect = selRect.node.getBoundingClientRect(); + var minX = w.globals.xAxisScale.niceMin + (selectionRect.left - gridRectDim.left) * xyRatios.xRatio; + var maxX = w.globals.xAxisScale.niceMin + (selectionRect.right - gridRectDim.left) * xyRatios.xRatio; + var minY = w.globals.yAxisScale[0].niceMin + (gridRectDim.bottom - selectionRect.bottom) * xyRatios.yRatio[0]; + var maxY = w.globals.yAxisScale[0].niceMax - (selectionRect.top - gridRectDim.top) * xyRatios.yRatio[0]; + w.config.chart.events.selection(_this4.ctx, { + xaxis: { + min: minX, + max: maxX + }, + yaxis: { + min: minY, + max: maxY + } + }); + }, timerInterval); + } + } + }, { + key: "selectionDrawn", + value: function selectionDrawn(_ref4) { + var context = _ref4.context, + zoomtype = _ref4.zoomtype; + var w = this.w; + var me = context; + var xyRatios = this.xyRatios; + var toolbar = this.ctx.toolbar; + + if (me.startX > me.endX) { + var tempX = me.startX; + me.startX = me.endX; + me.endX = tempX; + } + + if (me.startY > me.endY) { + var tempY = me.startY; + me.startY = me.endY; + me.endY = tempY; + } + + var xLowestValue = w.globals.xAxisScale.niceMin + me.startX * xyRatios.xRatio; + var xHighestValue = w.globals.xAxisScale.niceMin + me.endX * xyRatios.xRatio; // TODO: we will consider the 1st y axis values here for getting highest and lowest y + + var yHighestValue = []; + var yLowestValue = []; + w.config.yaxis.forEach(function (yaxe, index) { + yHighestValue.push(Math.floor(w.globals.yAxisScale[index].niceMax - xyRatios.yRatio[index] * me.startY)); + yLowestValue.push(Math.floor(w.globals.yAxisScale[index].niceMax - xyRatios.yRatio[index] * me.endY)); + }); + + if (me.dragged && (me.dragX > 10 || me.dragY > 10) && xLowestValue !== xHighestValue) { + if (w.globals.zoomEnabled) { + var yaxis = Utils.clone(w.config.yaxis); // before zooming in/out, store the last yaxis and xaxis range, so that when user hits the RESET button, we get the original range + // also - make sure user is not already zoomed in/out - otherwise we will store zoomed values in lastAxis + + if (!w.globals.zoomed) { + w.globals.lastXAxis = Utils.clone(w.config.xaxis); + w.globals.lastYAxis = Utils.clone(w.config.yaxis); + } + + var xaxis = { + min: xLowestValue, + max: xHighestValue + }; + + if (zoomtype === 'xy' || zoomtype === 'y') { + yaxis.forEach(function (yaxe, index) { + yaxis[index].min = yLowestValue[index]; + yaxis[index].max = yHighestValue[index]; + }); + } + + if (w.config.chart.zoom.autoScaleYaxis) { + var scale = new Range(me.ctx); + yaxis = scale.autoScaleY(me.ctx, { + xaxis: xaxis + }); + } + + if (toolbar) { + var beforeZoomRange = toolbar.getBeforeZoomRange(xaxis, yaxis); + + if (beforeZoomRange) { + xaxis = beforeZoomRange.xaxis ? beforeZoomRange.xaxis : xaxis; + yaxis = beforeZoomRange.yaxis ? beforeZoomRange.yaxe : yaxis; + } + } + + if (zoomtype === 'x') { + me.ctx._updateOptions({ + xaxis: xaxis + }, false, me.w.config.chart.animations.dynamicAnimation.enabled); + } else if (zoomtype === 'y') { + me.ctx._updateOptions({ + yaxis: yaxis + }, false, me.w.config.chart.animations.dynamicAnimation.enabled); + } else { + me.ctx._updateOptions({ + xaxis: xaxis, + yaxis: yaxis + }, false, me.w.config.chart.animations.dynamicAnimation.enabled); + } + + if (typeof w.config.chart.events.zoomed === 'function') { + toolbar.zoomCallback(xaxis, yaxis); + } + + w.globals.zoomed = true; + } else if (w.globals.selectionEnabled) { + var _yaxis = null; + var _xaxis = null; + _xaxis = { + min: xLowestValue, + max: xHighestValue + }; + + if (zoomtype === 'xy' || zoomtype === 'y') { + _yaxis = Utils.clone(w.config.yaxis); + + _yaxis.forEach(function (yaxe, index) { + _yaxis[index].min = yLowestValue[index]; + _yaxis[index].max = yHighestValue[index]; + }); + } + + w.globals.selection = me.selection; + + if (typeof w.config.chart.events.selection === 'function') { + w.config.chart.events.selection(me.ctx, { + xaxis: _xaxis, + yaxis: _yaxis + }); + } + } + } + } + }, { + key: "panDragging", + value: function panDragging(_ref5) { + var context = _ref5.context, + zoomtype = _ref5.zoomtype; + var w = this.w; + var me = context; + var moveDirection; // check to make sure there is data to compare against + + if (typeof w.globals.lastClientPosition.x !== 'undefined') { + // get the change from last position to this position + var deltaX = w.globals.lastClientPosition.x - me.clientX; + var deltaY = w.globals.lastClientPosition.y - me.clientY; // check which direction had the highest amplitude and then figure out direction by checking if the value is greater or less than zero + + if (Math.abs(deltaX) > Math.abs(deltaY) && deltaX > 0) { + moveDirection = 'left'; + } else if (Math.abs(deltaX) > Math.abs(deltaY) && deltaX < 0) { + moveDirection = 'right'; + } else if (Math.abs(deltaY) > Math.abs(deltaX) && deltaY > 0) { + moveDirection = 'up'; + } else if (Math.abs(deltaY) > Math.abs(deltaX) && deltaY < 0) { + moveDirection = 'down'; + } + } // set the new last position to the current for next time (to get the position of drag) + + + w.globals.lastClientPosition = { + x: me.clientX, + y: me.clientY + }; + var xLowestValue = w.globals.minX; + var xHighestValue = w.globals.maxX; + this.panScrolled(moveDirection, xLowestValue, xHighestValue); + } + }, { + key: "panScrolled", + value: function panScrolled(moveDirection, xLowestValue, xHighestValue) { + var w = this.w; + var xyRatios = this.xyRatios; + var yaxis = Utils.clone(w.config.yaxis); + + if (moveDirection === 'left') { + xLowestValue = w.globals.minX + w.globals.gridWidth / 15 * xyRatios.xRatio; + xHighestValue = w.globals.maxX + w.globals.gridWidth / 15 * xyRatios.xRatio; + } else if (moveDirection === 'right') { + xLowestValue = w.globals.minX - w.globals.gridWidth / 15 * xyRatios.xRatio; + xHighestValue = w.globals.maxX - w.globals.gridWidth / 15 * xyRatios.xRatio; + } + + if (xLowestValue < w.globals.initialminX || xHighestValue > w.globals.initialmaxX) { + xLowestValue = w.globals.minX; + xHighestValue = w.globals.maxX; + } + + var xaxis = { + min: xLowestValue, + max: xHighestValue + }; + + if (w.config.chart.zoom.autoScaleYaxis) { + var scale = new Range(me.ctx); + yaxis = scale.autoScaleY(me.ctx, { + xaxis: xaxis + }); + } + + this.ctx._updateOptions({ + xaxis: { + min: xLowestValue, + max: xHighestValue + }, + yaxis: yaxis + }, false, false); + + if (typeof w.config.chart.events.scrolled === 'function') { + w.config.chart.events.scrolled(this.ctx, { + xaxis: { + min: xLowestValue, + max: xHighestValue + } + }); + } + } + }]); + + return ZoomPanSelection; + }(Toolbar); + + var TitleSubtitle = + /*#__PURE__*/ + function () { + function TitleSubtitle(ctx) { + _classCallCheck(this, TitleSubtitle); + + this.ctx = ctx; + this.w = ctx.w; + } + + _createClass(TitleSubtitle, [{ + key: "draw", + value: function draw() { + this.drawTitleSubtitle('title'); + this.drawTitleSubtitle('subtitle'); + } + }, { + key: "drawTitleSubtitle", + value: function drawTitleSubtitle(type) { + var w = this.w; + var tsConfig = type === 'title' ? w.config.title : w.config.subtitle; + var x = w.globals.svgWidth / 2; + var y = tsConfig.offsetY; + var textAnchor = 'middle'; + + if (tsConfig.align === 'left') { + x = 10; + textAnchor = 'start'; + } else if (tsConfig.align === 'right') { + x = w.globals.svgWidth - 10; + textAnchor = 'end'; + } + + x = x + tsConfig.offsetX; + y = y + parseInt(tsConfig.style.fontSize) + 2; + + if (tsConfig.text !== undefined) { + var graphics = new Graphics(this.ctx); + var titleText = graphics.drawText({ + x: x, + y: y, + text: tsConfig.text, + textAnchor: textAnchor, + fontSize: tsConfig.style.fontSize, + fontFamily: tsConfig.style.fontFamily, + foreColor: tsConfig.style.color, + opacity: 1 + }); + titleText.node.setAttribute('class', "apexcharts-".concat(type, "-text")); + w.globals.dom.Paper.add(titleText); + } + } + }]); + + return TitleSubtitle; + }(); + + (function (root, factory) { + /* istanbul ignore next */ + if (typeof define === 'function' && define.amd) { + define(function () { + return factory(root, root.document); + }); + } else if ((typeof exports === "undefined" ? "undefined" : _typeof(exports)) === 'object') { + module.exports = root.document ? factory(root, root.document) : function (w) { + return factory(w, w.document); + }; + } else { + root.SVG = factory(root, root.document); + } + })(typeof window !== 'undefined' ? window : undefined, function (window, document) { + // Find global reference - uses 'this' by default when available, + // falls back to 'window' otherwise (for bundlers like Webpack) + var globalRef = typeof this !== 'undefined' ? this : window; // The main wrapping element + + var SVG = globalRef.SVG = function (element) { + if (SVG.supported) { + element = new SVG.Doc(element); + + if (!SVG.parser.draw) { + SVG.prepare(); + } + + return element; + } + }; // Default namespaces + + + SVG.ns = 'http://www.w3.org/2000/svg'; + SVG.xmlns = 'http://www.w3.org/2000/xmlns/'; + SVG.xlink = 'http://www.w3.org/1999/xlink'; + SVG.svgjs = 'http://svgjs.com/svgjs'; // Svg support test + + SVG.supported = function () { + return true; // !!document.createElementNS && + // !! document.createElementNS(SVG.ns,'svg').createSVGRect + }(); // Don't bother to continue if SVG is not supported + + + if (!SVG.supported) return false; // Element id sequence + + SVG.did = 1000; // Get next named element id + + SVG.eid = function (name) { + return 'Svgjs' + capitalize(name) + SVG.did++; + }; // Method for element creation + + + SVG.create = function (name) { + // create element + var element = document.createElementNS(this.ns, name); // apply unique id + + element.setAttribute('id', this.eid(name)); + return element; + }; // Method for extending objects + + + SVG.extend = function () { + var modules, methods, key, i; // Get list of modules + + modules = [].slice.call(arguments); // Get object with extensions + + methods = modules.pop(); + + for (i = modules.length - 1; i >= 0; i--) { + if (modules[i]) { + for (key in methods) { + modules[i].prototype[key] = methods[key]; + } + } + } // Make sure SVG.Set inherits any newly added methods + + + if (SVG.Set && SVG.Set.inherit) { + SVG.Set.inherit(); + } + }; // Invent new element + + + SVG.invent = function (config) { + // Create element initializer + var initializer = typeof config.create === 'function' ? config.create : function () { + this.constructor.call(this, SVG.create(config.create)); + }; // Inherit prototype + + if (config.inherit) { + initializer.prototype = new config.inherit(); + } // Extend with methods + + + if (config.extend) { + SVG.extend(initializer, config.extend); + } // Attach construct method to parent + + + if (config.construct) { + SVG.extend(config.parent || SVG.Container, config.construct); + } + + return initializer; + }; // Adopt existing svg elements + + + SVG.adopt = function (node) { + // check for presence of node + if (!node) return null; // make sure a node isn't already adopted + + if (node.instance) return node.instance; // initialize variables + + var element; // adopt with element-specific settings + + if (node.nodeName == 'svg') { + element = node.parentNode instanceof window.SVGElement ? new SVG.Nested() : new SVG.Doc(); + } else if (node.nodeName == 'linearGradient') { + element = new SVG.Gradient('linear'); + } else if (node.nodeName == 'radialGradient') { + element = new SVG.Gradient('radial'); + } else if (SVG[capitalize(node.nodeName)]) { + element = new SVG[capitalize(node.nodeName)](); + } else { + element = new SVG.Element(node); + } // ensure references + + + element.type = node.nodeName; + element.node = node; + node.instance = element; // SVG.Class specific preparations + + if (element instanceof SVG.Doc) { + element.namespace().defs(); + } // pull svgjs data from the dom (getAttributeNS doesn't work in html5) + + + element.setData(JSON.parse(node.getAttribute('svgjs:data')) || {}); + return element; + }; // Initialize parsing element + + + SVG.prepare = function () { + // Select document body and create invisible svg element + var body = document.getElementsByTagName('body')[0], + draw = (body ? new SVG.Doc(body) : SVG.adopt(document.documentElement).nested()).size(2, 0); // Create parser object + + SVG.parser = { + body: body || document.documentElement, + draw: draw.style('opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden').node, + poly: draw.polyline().node, + path: draw.path().node, + native: SVG.create('svg') + }; + }; + + SVG.parser = { + native: SVG.create('svg') + }; + document.addEventListener('DOMContentLoaded', function () { + if (!SVG.parser.draw) { + SVG.prepare(); + } + }, false); // Storage for regular expressions + + SVG.regex = { + // Parse unit value + numberAndUnit: /^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i, + // Parse hex value + hex: /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i, + // Parse rgb value + rgb: /rgb\((\d+),(\d+),(\d+)\)/, + // Parse reference id + reference: /#([a-z0-9\-_]+)/i, + // splits a transformation chain + transforms: /\)\s*,?\s*/, + // Whitespace + whitespace: /\s/g, + // Test hex value + isHex: /^#[a-f0-9]{3,6}$/i, + // Test rgb value + isRgb: /^rgb\(/, + // Test css declaration + isCss: /[^:]+:[^;]+;?/, + // Test for blank string + isBlank: /^(\s+)?$/, + // Test for numeric string + isNumber: /^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, + // Test for percent value + isPercent: /^-?[\d\.]+%$/, + // Test for image url + isImage: /\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i, + // split at whitespace and comma + delimiter: /[\s,]+/, + // The following regex are used to parse the d attribute of a path + // Matches all hyphens which are not after an exponent + hyphen: /([^e])\-/gi, + // Replaces and tests for all path letters + pathLetters: /[MLHVCSQTAZ]/gi, + // yes we need this one, too + isPathLetter: /[MLHVCSQTAZ]/i, + // matches 0.154.23.45 + numbersWithDots: /((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi, + // matches . + dots: /\./g + }; + SVG.utils = { + // Map function + map: function map(array, block) { + var i, + il = array.length, + result = []; + + for (i = 0; i < il; i++) { + result.push(block(array[i])); + } + + return result; + }, + // Filter function + filter: function filter(array, block) { + var i, + il = array.length, + result = []; + + for (i = 0; i < il; i++) { + if (block(array[i])) { + result.push(array[i]); + } + } + + return result; + }, + // Degrees to radians + radians: function radians(d) { + return d % 360 * Math.PI / 180; + }, + // Radians to degrees + degrees: function degrees(r) { + return r * 180 / Math.PI % 360; + }, + filterSVGElements: function filterSVGElements(nodes) { + return this.filter(nodes, function (el) { + return el instanceof window.SVGElement; + }); + } + }; + SVG.defaults = { + // Default attribute values + attrs: { + // fill and stroke + 'fill-opacity': 1, + 'stroke-opacity': 1, + 'stroke-width': 0, + 'stroke-linejoin': 'miter', + 'stroke-linecap': 'butt', + fill: '#000000', + stroke: '#000000', + opacity: 1, + // position + x: 0, + y: 0, + cx: 0, + cy: 0, + // size + width: 0, + height: 0, + // radius + r: 0, + rx: 0, + ry: 0, + // gradient + offset: 0, + 'stop-opacity': 1, + 'stop-color': '#000000', + // text + 'font-size': 16, + 'font-family': 'Helvetica, Arial, sans-serif', + 'text-anchor': 'start' + } // Module for color convertions + + }; + + SVG.Color = function (color) { + var match; // initialize defaults + + this.r = 0; + this.g = 0; + this.b = 0; + if (!color) return; // parse color + + if (typeof color === 'string') { + if (SVG.regex.isRgb.test(color)) { + // get rgb values + match = SVG.regex.rgb.exec(color.replace(SVG.regex.whitespace, '')); // parse numeric values + + this.r = parseInt(match[1]); + this.g = parseInt(match[2]); + this.b = parseInt(match[3]); + } else if (SVG.regex.isHex.test(color)) { + // get hex values + match = SVG.regex.hex.exec(fullHex(color)); // parse numeric values + + this.r = parseInt(match[1], 16); + this.g = parseInt(match[2], 16); + this.b = parseInt(match[3], 16); + } + } else if (_typeof(color) === 'object') { + this.r = color.r; + this.g = color.g; + this.b = color.b; + } + }; + + SVG.extend(SVG.Color, { + // Default to hex conversion + toString: function toString() { + return this.toHex(); + }, + // Build hex value + toHex: function toHex() { + return '#' + compToHex(this.r) + compToHex(this.g) + compToHex(this.b); + }, + // Build rgb value + toRgb: function toRgb() { + return 'rgb(' + [this.r, this.g, this.b].join() + ')'; + }, + // Calculate true brightness + brightness: function brightness() { + return this.r / 255 * 0.30 + this.g / 255 * 0.59 + this.b / 255 * 0.11; + }, + // Make color morphable + morph: function morph(color) { + this.destination = new SVG.Color(color); + return this; + }, + // Get morphed color at given position + at: function at(pos) { + // make sure a destination is defined + if (!this.destination) return this; // normalise pos + + pos = pos < 0 ? 0 : pos > 1 ? 1 : pos; // generate morphed color + + return new SVG.Color({ + r: ~~(this.r + (this.destination.r - this.r) * pos), + g: ~~(this.g + (this.destination.g - this.g) * pos), + b: ~~(this.b + (this.destination.b - this.b) * pos) + }); + } + }); // Testers + // Test if given value is a color string + + SVG.Color.test = function (color) { + color += ''; + return SVG.regex.isHex.test(color) || SVG.regex.isRgb.test(color); + }; // Test if given value is a rgb object + + + SVG.Color.isRgb = function (color) { + return color && typeof color.r === 'number' && typeof color.g === 'number' && typeof color.b === 'number'; + }; // Test if given value is a color + + + SVG.Color.isColor = function (color) { + return SVG.Color.isRgb(color) || SVG.Color.test(color); + }; // Module for array conversion + + + SVG.Array = function (array, fallback) { + array = (array || []).valueOf(); // if array is empty and fallback is provided, use fallback + + if (array.length == 0 && fallback) { + array = fallback.valueOf(); + } // parse array + + + this.value = this.parse(array); + }; + + SVG.extend(SVG.Array, { + // Make array morphable + morph: function morph(array) { + this.destination = this.parse(array); // normalize length of arrays + + if (this.value.length != this.destination.length) { + var lastValue = this.value[this.value.length - 1], + lastDestination = this.destination[this.destination.length - 1]; + + while (this.value.length > this.destination.length) { + this.destination.push(lastDestination); + } + + while (this.value.length < this.destination.length) { + this.value.push(lastValue); + } + } + + return this; + }, + // Clean up any duplicate points + settle: function settle() { + // find all unique values + for (var i = 0, il = this.value.length, seen = []; i < il; i++) { + if (seen.indexOf(this.value[i]) == -1) { + seen.push(this.value[i]); + } + } // set new value + + + return this.value = seen; + }, + // Get morphed array at given position + at: function at(pos) { + // make sure a destination is defined + if (!this.destination) return this; // generate morphed array + + for (var i = 0, il = this.value.length, array = []; i < il; i++) { + array.push(this.value[i] + (this.destination[i] - this.value[i]) * pos); + } + + return new SVG.Array(array); + }, + // Convert array to string + toString: function toString() { + return this.value.join(' '); + }, + // Real value + valueOf: function valueOf() { + return this.value; + }, + // Parse whitespace separated string + parse: function parse(array) { + array = array.valueOf(); // if already is an array, no need to parse it + + if (Array.isArray(array)) return array; + return this.split(array); + }, + // Strip unnecessary whitespace + split: function split(string) { + return string.trim().split(SVG.regex.delimiter).map(parseFloat); + }, + // Reverse array + reverse: function reverse() { + this.value.reverse(); + return this; + }, + clone: function clone() { + var clone = new this.constructor(); + clone.value = array_clone(this.value); + return clone; + } + }); // Poly points array + + SVG.PointArray = function (array, fallback) { + SVG.Array.call(this, array, fallback || [[0, 0]]); + }; // Inherit from SVG.Array + + + SVG.PointArray.prototype = new SVG.Array(); + SVG.PointArray.prototype.constructor = SVG.PointArray; + SVG.extend(SVG.PointArray, { + // Convert array to string + toString: function toString() { + // convert to a poly point string + for (var i = 0, il = this.value.length, array = []; i < il; i++) { + array.push(this.value[i].join(',')); + } + + return array.join(' '); + }, + // Convert array to line object + toLine: function toLine() { + return { + x1: this.value[0][0], + y1: this.value[0][1], + x2: this.value[1][0], + y2: this.value[1][1] + }; + }, + // Get morphed array at given position + at: function at(pos) { + // make sure a destination is defined + if (!this.destination) return this; // generate morphed point string + + for (var i = 0, il = this.value.length, array = []; i < il; i++) { + array.push([this.value[i][0] + (this.destination[i][0] - this.value[i][0]) * pos, this.value[i][1] + (this.destination[i][1] - this.value[i][1]) * pos]); + } + + return new SVG.PointArray(array); + }, + // Parse point string and flat array + parse: function parse(array) { + var points = []; + array = array.valueOf(); // if it is an array + + if (Array.isArray(array)) { + // and it is not flat, there is no need to parse it + if (Array.isArray(array[0])) { + // make sure to use a clone + return array.map(function (el) { + return el.slice(); + }); + } else if (array[0].x != null) { + // allow point objects to be passed + return array.map(function (el) { + return [el.x, el.y]; + }); + } + } else { + // Else, it is considered as a string + // parse points + array = array.trim().split(SVG.regex.delimiter).map(parseFloat); + } // validate points - https://svgwg.org/svg2-draft/shapes.html#DataTypePoints + // Odd number of coordinates is an error. In such cases, drop the last odd coordinate. + + + if (array.length % 2 !== 0) array.pop(); // wrap points in two-tuples and parse points as floats + + for (var i = 0, len = array.length; i < len; i = i + 2) { + points.push([array[i], array[i + 1]]); + } + + return points; + }, + // Move point string + move: function move(x, y) { + var box = this.bbox(); // get relative offset + + x -= box.x; + y -= box.y; // move every point + + if (!isNaN(x) && !isNaN(y)) { + for (var i = this.value.length - 1; i >= 0; i--) { + this.value[i] = [this.value[i][0] + x, this.value[i][1] + y]; + } + } + + return this; + }, + // Resize poly string + size: function size(width, height) { + var i, + box = this.bbox(); // recalculate position of all points according to new size + + for (i = this.value.length - 1; i >= 0; i--) { + if (box.width) this.value[i][0] = (this.value[i][0] - box.x) * width / box.width + box.x; + if (box.height) this.value[i][1] = (this.value[i][1] - box.y) * height / box.height + box.y; + } + + return this; + }, + // Get bounding box of points + bbox: function bbox() { + if (!SVG.parser.draw) { + SVG.prepare(); + } + + SVG.parser.poly.setAttribute('points', this.toString()); + return SVG.parser.poly.getBBox(); + } + }); + var pathHandlers = { + M: function M(c, p, p0) { + p.x = p0.x = c[0]; + p.y = p0.y = c[1]; + return ['M', p.x, p.y]; + }, + L: function L(c, p) { + p.x = c[0]; + p.y = c[1]; + return ['L', c[0], c[1]]; + }, + H: function H(c, p) { + p.x = c[0]; + return ['H', c[0]]; + }, + V: function V(c, p) { + p.y = c[0]; + return ['V', c[0]]; + }, + C: function C(c, p) { + p.x = c[4]; + p.y = c[5]; + return ['C', c[0], c[1], c[2], c[3], c[4], c[5]]; + }, + S: function S(c, p) { + p.x = c[2]; + p.y = c[3]; + return ['S', c[0], c[1], c[2], c[3]]; + }, + Q: function Q(c, p) { + p.x = c[2]; + p.y = c[3]; + return ['Q', c[0], c[1], c[2], c[3]]; + }, + T: function T(c, p) { + p.x = c[0]; + p.y = c[1]; + return ['T', c[0], c[1]]; + }, + Z: function Z(c, p, p0) { + p.x = p0.x; + p.y = p0.y; + return ['Z']; + }, + A: function A(c, p) { + p.x = c[5]; + p.y = c[6]; + return ['A', c[0], c[1], c[2], c[3], c[4], c[5], c[6]]; + } + }; + var mlhvqtcsa = 'mlhvqtcsaz'.split(''); + + for (var i = 0, il = mlhvqtcsa.length; i < il; ++i) { + pathHandlers[mlhvqtcsa[i]] = function (i) { + return function (c, p, p0) { + if (i == 'H') c[0] = c[0] + p.x;else if (i == 'V') c[0] = c[0] + p.y;else if (i == 'A') { + c[5] = c[5] + p.x, c[6] = c[6] + p.y; + } else { + for (var j = 0, jl = c.length; j < jl; ++j) { + c[j] = c[j] + (j % 2 ? p.y : p.x); + } + } + return pathHandlers[i](c, p, p0); + }; + }(mlhvqtcsa[i].toUpperCase()); + } // Path points array + + + SVG.PathArray = function (array, fallback) { + SVG.Array.call(this, array, fallback || [['M', 0, 0]]); + }; // Inherit from SVG.Array + + + SVG.PathArray.prototype = new SVG.Array(); + SVG.PathArray.prototype.constructor = SVG.PathArray; + SVG.extend(SVG.PathArray, { + // Convert array to string + toString: function toString() { + return arrayToString(this.value); + }, + // Move path string + move: function move(x, y) { + // get bounding box of current situation + var box = this.bbox(); // get relative offset + + x -= box.x; + y -= box.y; + + if (!isNaN(x) && !isNaN(y)) { + // move every point + for (var l, i = this.value.length - 1; i >= 0; i--) { + l = this.value[i][0]; + + if (l == 'M' || l == 'L' || l == 'T') { + this.value[i][1] += x; + this.value[i][2] += y; + } else if (l == 'H') { + this.value[i][1] += x; + } else if (l == 'V') { + this.value[i][1] += y; + } else if (l == 'C' || l == 'S' || l == 'Q') { + this.value[i][1] += x; + this.value[i][2] += y; + this.value[i][3] += x; + this.value[i][4] += y; + + if (l == 'C') { + this.value[i][5] += x; + this.value[i][6] += y; + } + } else if (l == 'A') { + this.value[i][6] += x; + this.value[i][7] += y; + } + } + } + + return this; + }, + // Resize path string + size: function size(width, height) { + // get bounding box of current situation + var i, + l, + box = this.bbox(); // recalculate position of all points according to new size + + for (i = this.value.length - 1; i >= 0; i--) { + l = this.value[i][0]; + + if (l == 'M' || l == 'L' || l == 'T') { + this.value[i][1] = (this.value[i][1] - box.x) * width / box.width + box.x; + this.value[i][2] = (this.value[i][2] - box.y) * height / box.height + box.y; + } else if (l == 'H') { + this.value[i][1] = (this.value[i][1] - box.x) * width / box.width + box.x; + } else if (l == 'V') { + this.value[i][1] = (this.value[i][1] - box.y) * height / box.height + box.y; + } else if (l == 'C' || l == 'S' || l == 'Q') { + this.value[i][1] = (this.value[i][1] - box.x) * width / box.width + box.x; + this.value[i][2] = (this.value[i][2] - box.y) * height / box.height + box.y; + this.value[i][3] = (this.value[i][3] - box.x) * width / box.width + box.x; + this.value[i][4] = (this.value[i][4] - box.y) * height / box.height + box.y; + + if (l == 'C') { + this.value[i][5] = (this.value[i][5] - box.x) * width / box.width + box.x; + this.value[i][6] = (this.value[i][6] - box.y) * height / box.height + box.y; + } + } else if (l == 'A') { + // resize radii + this.value[i][1] = this.value[i][1] * width / box.width; + this.value[i][2] = this.value[i][2] * height / box.height; // move position values + + this.value[i][6] = (this.value[i][6] - box.x) * width / box.width + box.x; + this.value[i][7] = (this.value[i][7] - box.y) * height / box.height + box.y; + } + } + + return this; + }, + // Test if the passed path array use the same path data commands as this path array + equalCommands: function equalCommands(pathArray) { + var i, il, equalCommands; + pathArray = new SVG.PathArray(pathArray); + equalCommands = this.value.length === pathArray.value.length; + + for (i = 0, il = this.value.length; equalCommands && i < il; i++) { + equalCommands = this.value[i][0] === pathArray.value[i][0]; + } + + return equalCommands; + }, + // Make path array morphable + morph: function morph(pathArray) { + pathArray = new SVG.PathArray(pathArray); + + if (this.equalCommands(pathArray)) { + this.destination = pathArray; + } else { + this.destination = null; + } + + return this; + }, + // Get morphed path array at given position + at: function at(pos) { + // make sure a destination is defined + if (!this.destination) return this; + var sourceArray = this.value, + destinationArray = this.destination.value, + array = [], + pathArray = new SVG.PathArray(), + i, + il, + j, + jl; // Animate has specified in the SVG spec + // See: https://www.w3.org/TR/SVG11/paths.html#PathElement + + for (i = 0, il = sourceArray.length; i < il; i++) { + array[i] = [sourceArray[i][0]]; + + for (j = 1, jl = sourceArray[i].length; j < jl; j++) { + array[i][j] = sourceArray[i][j] + (destinationArray[i][j] - sourceArray[i][j]) * pos; + } // For the two flags of the elliptical arc command, the SVG spec say: + // Flags and booleans are interpolated as fractions between zero and one, with any non-zero value considered to be a value of one/true + // Elliptical arc command as an array followed by corresponding indexes: + // ['A', rx, ry, x-axis-rotation, large-arc-flag, sweep-flag, x, y] + // 0 1 2 3 4 5 6 7 + + + if (array[i][0] === 'A') { + array[i][4] = +(array[i][4] != 0); + array[i][5] = +(array[i][5] != 0); + } + } // Directly modify the value of a path array, this is done this way for performance + + + pathArray.value = array; + return pathArray; + }, + // Absolutize and parse path to array + parse: function parse(array) { + // if it's already a patharray, no need to parse it + if (array instanceof SVG.PathArray) return array.valueOf(); // prepare for parsing + + var s, + arr, + paramCnt = { + 'M': 2, + 'L': 2, + 'H': 1, + 'V': 1, + 'C': 6, + 'S': 4, + 'Q': 4, + 'T': 2, + 'A': 7, + 'Z': 0 + }; + + if (typeof array === 'string') { + array = array.replace(SVG.regex.numbersWithDots, pathRegReplace) // convert 45.123.123 to 45.123 .123 + .replace(SVG.regex.pathLetters, ' $& ') // put some room between letters and numbers + .replace(SVG.regex.hyphen, '$1 -') // add space before hyphen + .trim() // trim + .split(SVG.regex.delimiter); // split into array + } else { + array = array.reduce(function (prev, curr) { + return [].concat.call(prev, curr); + }, []); + } // array now is an array containing all parts of a path e.g. ['M', '0', '0', 'L', '30', '30' ...] + + + var arr = [], + p = new SVG.Point(), + p0 = new SVG.Point(), + index = 0, + len = array.length; + + do { + // Test if we have a path letter + if (SVG.regex.isPathLetter.test(array[index])) { + s = array[index]; + ++index; // If last letter was a move command and we got no new, it defaults to [L]ine + } else if (s == 'M') { + s = 'L'; + } else if (s == 'm') { + s = 'l'; + } + + arr.push(pathHandlers[s].call(null, array.slice(index, index = index + paramCnt[s.toUpperCase()]).map(parseFloat), p, p0)); + } while (len > index); + + return arr; + }, + // Get bounding box of path + bbox: function bbox() { + if (!SVG.parser.draw) { + SVG.prepare(); + } + + SVG.parser.path.setAttribute('d', this.toString()); + return SVG.parser.path.getBBox(); + } + }); // Module for unit convertions + + SVG.Number = SVG.invent({ + // Initialize + create: function create(value, unit) { + // initialize defaults + this.value = 0; + this.unit = unit || ''; // parse value + + if (typeof value === 'number') { + // ensure a valid numeric value + this.value = isNaN(value) ? 0 : !isFinite(value) ? value < 0 ? -3.4e+38 : +3.4e+38 : value; + } else if (typeof value === 'string') { + unit = value.match(SVG.regex.numberAndUnit); + + if (unit) { + // make value numeric + this.value = parseFloat(unit[1]); // normalize + + if (unit[5] == '%') { + this.value /= 100; + } else if (unit[5] == 's') { + this.value *= 1000; + } // store unit + + + this.unit = unit[5]; + } + } else { + if (value instanceof SVG.Number) { + this.value = value.valueOf(); + this.unit = value.unit; + } + } + }, + // Add methods + extend: { + // Stringalize + toString: function toString() { + return (this.unit == '%' ? ~~(this.value * 1e8) / 1e6 : this.unit == 's' ? this.value / 1e3 : this.value) + this.unit; + }, + toJSON: function toJSON() { + return this.toString(); + }, + // Convert to primitive + valueOf: function valueOf() { + return this.value; + }, + // Add number + plus: function plus(number) { + number = new SVG.Number(number); + return new SVG.Number(this + number, this.unit || number.unit); + }, + // Subtract number + minus: function minus(number) { + number = new SVG.Number(number); + return new SVG.Number(this - number, this.unit || number.unit); + }, + // Multiply number + times: function times(number) { + number = new SVG.Number(number); + return new SVG.Number(this * number, this.unit || number.unit); + }, + // Divide number + divide: function divide(number) { + number = new SVG.Number(number); + return new SVG.Number(this / number, this.unit || number.unit); + }, + // Convert to different unit + to: function to(unit) { + var number = new SVG.Number(this); + + if (typeof unit === 'string') { + number.unit = unit; + } + + return number; + }, + // Make number morphable + morph: function morph(number) { + this.destination = new SVG.Number(number); + + if (number.relative) { + this.destination.value += this.value; + } + + return this; + }, + // Get morphed number at given position + at: function at(pos) { + // Make sure a destination is defined + if (!this.destination) return this; // Generate new morphed number + + return new SVG.Number(this.destination).minus(this).times(pos).plus(this); + } + } + }); + SVG.Element = SVG.invent({ + // Initialize node + create: function create(node) { + // make stroke value accessible dynamically + this._stroke = SVG.defaults.attrs.stroke; + this._event = null; // initialize data object + + this.dom = {}; // create circular reference + + if (this.node = node) { + this.type = node.nodeName; + this.node.instance = this; // store current attribute value + + this._stroke = node.getAttribute('stroke') || this._stroke; + } + }, + // Add class methods + extend: { + // Move over x-axis + x: function x(_x) { + return this.attr('x', _x); + }, + // Move over y-axis + y: function y(_y) { + return this.attr('y', _y); + }, + // Move by center over x-axis + cx: function cx(x) { + return x == null ? this.x() + this.width() / 2 : this.x(x - this.width() / 2); + }, + // Move by center over y-axis + cy: function cy(y) { + return y == null ? this.y() + this.height() / 2 : this.y(y - this.height() / 2); + }, + // Move element to given x and y values + move: function move(x, y) { + return this.x(x).y(y); + }, + // Move element by its center + center: function center(x, y) { + return this.cx(x).cy(y); + }, + // Set width of element + width: function width(_width) { + return this.attr('width', _width); + }, + // Set height of element + height: function height(_height) { + return this.attr('height', _height); + }, + // Set element size to given width and height + size: function size(width, height) { + var p = proportionalSize(this, width, height); + return this.width(new SVG.Number(p.width)).height(new SVG.Number(p.height)); + }, + // Clone element + clone: function clone(parent) { + // write dom data to the dom so the clone can pickup the data + this.writeDataToDom(); // clone element and assign new id + + var clone = assignNewId(this.node.cloneNode(true)); // insert the clone in the given parent or after myself + + if (parent) parent.add(clone);else this.after(clone); + return clone; + }, + // Remove element + remove: function remove() { + if (this.parent()) { + this.parent().removeElement(this); + } + + return this; + }, + // Replace element + replace: function replace(element) { + this.after(element).remove(); + return element; + }, + // Add element to given container and return self + addTo: function addTo(parent) { + return parent.put(this); + }, + // Add element to given container and return container + putIn: function putIn(parent) { + return parent.add(this); + }, + // Get / set id + id: function id(_id) { + return this.attr('id', _id); + }, + // Checks whether the given point inside the bounding box of the element + inside: function inside(x, y) { + var box = this.bbox(); + return x > box.x && y > box.y && x < box.x + box.width && y < box.y + box.height; + }, + // Show element + show: function show() { + return this.style('display', ''); + }, + // Hide element + hide: function hide() { + return this.style('display', 'none'); + }, + // Is element visible? + visible: function visible() { + return this.style('display') != 'none'; + }, + // Return id on string conversion + toString: function toString() { + return this.attr('id'); + }, + // Return array of classes on the node + classes: function classes() { + var attr = this.attr('class'); + return attr == null ? [] : attr.trim().split(SVG.regex.delimiter); + }, + // Return true if class exists on the node, false otherwise + hasClass: function hasClass(name) { + return this.classes().indexOf(name) != -1; + }, + // Add class to the node + addClass: function addClass(name) { + if (!this.hasClass(name)) { + var array = this.classes(); + array.push(name); + this.attr('class', array.join(' ')); + } + + return this; + }, + // Remove class from the node + removeClass: function removeClass(name) { + if (this.hasClass(name)) { + this.attr('class', this.classes().filter(function (c) { + return c != name; + }).join(' ')); + } + + return this; + }, + // Toggle the presence of a class on the node + toggleClass: function toggleClass(name) { + return this.hasClass(name) ? this.removeClass(name) : this.addClass(name); + }, + // Get referenced element form attribute value + reference: function reference(attr) { + return SVG.get(this.attr(attr)); + }, + // Returns the parent element instance + parent: function parent(type) { + var parent = this; // check for parent + + if (!parent.node.parentNode) return null; // get parent element + + parent = SVG.adopt(parent.node.parentNode); + if (!type) return parent; // loop trough ancestors if type is given + + while (parent && parent.node instanceof window.SVGElement) { + if (typeof type === 'string' ? parent.matches(type) : parent instanceof type) return parent; + if (!parent.node.parentNode || parent.node.parentNode.nodeName == '#document') return null; // #759, #720 + + parent = SVG.adopt(parent.node.parentNode); + } + }, + // Get parent document + doc: function doc() { + return this instanceof SVG.Doc ? this : this.parent(SVG.Doc); + }, + // return array of all ancestors of given type up to the root svg + parents: function parents(type) { + var parents = [], + parent = this; + + do { + parent = parent.parent(type); + if (!parent || !parent.node) break; + parents.push(parent); + } while (parent.parent); + + return parents; + }, + // matches the element vs a css selector + matches: function matches(selector) { + return _matches(this.node, selector); + }, + // Returns the svg node to call native svg methods on it + native: function native() { + return this.node; + }, + // Import raw svg + svg: function svg(_svg) { + // create temporary holder + var well = document.createElement('svg'); // act as a setter if svg is given + + if (_svg && this instanceof SVG.Parent) { + // dump raw svg + well.innerHTML = '' + _svg.replace(/\n/, '').replace(/<([\w:-]+)([^<]+?)\/>/g, '<$1$2>') + ''; // transplant nodes + + for (var i = 0, il = well.firstChild.childNodes.length; i < il; i++) { + this.node.appendChild(well.firstChild.firstChild); + } // otherwise act as a getter + + } else { + // create a wrapping svg element in case of partial content + well.appendChild(_svg = document.createElement('svg')); // write svgjs data to the dom + + this.writeDataToDom(); // insert a copy of this node + + _svg.appendChild(this.node.cloneNode(true)); // return target element + + + return well.innerHTML.replace(/^/, '').replace(/<\/svg>$/, ''); + } + + return this; + }, + // write svgjs data to the dom + writeDataToDom: function writeDataToDom() { + // dump variables recursively + if (this.each || this.lines) { + var fn = this.each ? this : this.lines(); + fn.each(function () { + this.writeDataToDom(); + }); + } // remove previously set data + + + this.node.removeAttribute('svgjs:data'); + + if (Object.keys(this.dom).length) { + this.node.setAttribute('svgjs:data', JSON.stringify(this.dom)); + } // see #428 + + + return this; + }, + // set given data to the elements data property + setData: function setData(o) { + this.dom = o; + return this; + }, + is: function is(obj) { + return _is(this, obj); + } + } + }); + SVG.easing = { + '-': function _(pos) { + return pos; + }, + '<>': function _(pos) { + return -Math.cos(pos * Math.PI) / 2 + 0.5; + }, + '>': function _(pos) { + return Math.sin(pos * Math.PI / 2); + }, + '<': function _(pos) { + return -Math.cos(pos * Math.PI / 2) + 1; + } + }; + + SVG.morph = function (pos) { + return function (from, to) { + return new SVG.MorphObj(from, to).at(pos); + }; + }; + + SVG.Situation = SVG.invent({ + create: function create(o) { + this.init = false; + this.reversed = false; + this.reversing = false; + this.duration = new SVG.Number(o.duration).valueOf(); + this.delay = new SVG.Number(o.delay).valueOf(); + this.start = +new Date() + this.delay; + this.finish = this.start + this.duration; + this.ease = o.ease; // this.loop is incremented from 0 to this.loops + // it is also incremented when in an infinite loop (when this.loops is true) + + this.loop = 0; + this.loops = false; + this.animations = {// functionToCall: [list of morphable objects] + // e.g. move: [SVG.Number, SVG.Number] + }; + this.attrs = {// holds all attributes which are not represented from a function svg.js provides + // e.g. someAttr: SVG.Number + }; + this.styles = {// holds all styles which should be animated + // e.g. fill-color: SVG.Color + }; + this.transforms = [// holds all transformations as transformation objects + // e.g. [SVG.Rotate, SVG.Translate, SVG.Matrix] + ]; + this.once = {// functions to fire at a specific position + // e.g. "0.5": function foo(){} + }; + } + }); + SVG.FX = SVG.invent({ + create: function create(element) { + this._target = element; + this.situations = []; + this.active = false; + this.situation = null; + this.paused = false; + this.lastPos = 0; + this.pos = 0; // The absolute position of an animation is its position in the context of its complete duration (including delay and loops) + // When performing a delay, absPos is below 0 and when performing a loop, its value is above 1 + + this.absPos = 0; + this._speed = 1; + }, + extend: { + /** + * sets or returns the target of this animation + * @param o object || number In case of Object it holds all parameters. In case of number its the duration of the animation + * @param ease function || string Function which should be used for easing or easing keyword + * @param delay Number indicating the delay before the animation starts + * @return target || this + */ + animate: function animate(o, ease, delay) { + if (_typeof(o) === 'object') { + ease = o.ease; + delay = o.delay; + o = o.duration; + } + + var situation = new SVG.Situation({ + duration: o || 1000, + delay: delay || 0, + ease: SVG.easing[ease || '-'] || ease + }); + this.queue(situation); + return this; + }, + + /** + * sets a delay before the next element of the queue is called + * @param delay Duration of delay in milliseconds + * @return this.target() + */ + delay: function delay(_delay) { + // The delay is performed by an empty situation with its duration + // attribute set to the duration of the delay + var situation = new SVG.Situation({ + duration: _delay, + delay: 0, + ease: SVG.easing['-'] + }); + return this.queue(situation); + }, + + /** + * sets or returns the target of this animation + * @param null || target SVG.Element which should be set as new target + * @return target || this + */ + target: function target(_target) { + if (_target && _target instanceof SVG.Element) { + this._target = _target; + return this; + } + + return this._target; + }, + // returns the absolute position at a given time + timeToAbsPos: function timeToAbsPos(timestamp) { + return (timestamp - this.situation.start) / (this.situation.duration / this._speed); + }, + // returns the timestamp from a given absolute positon + absPosToTime: function absPosToTime(absPos) { + return this.situation.duration / this._speed * absPos + this.situation.start; + }, + // starts the animationloop + startAnimFrame: function startAnimFrame() { + this.stopAnimFrame(); + this.animationFrame = window.requestAnimationFrame(function () { + this.step(); + }.bind(this)); + }, + // cancels the animationframe + stopAnimFrame: function stopAnimFrame() { + window.cancelAnimationFrame(this.animationFrame); + }, + // kicks off the animation - only does something when the queue is currently not active and at least one situation is set + start: function start() { + // dont start if already started + if (!this.active && this.situation) { + this.active = true; + this.startCurrent(); + } + + return this; + }, + // start the current situation + startCurrent: function startCurrent() { + this.situation.start = +new Date() + this.situation.delay / this._speed; + this.situation.finish = this.situation.start + this.situation.duration / this._speed; + return this.initAnimations().step(); + }, + + /** + * adds a function / Situation to the animation queue + * @param fn function / situation to add + * @return this + */ + queue: function queue(fn) { + if (typeof fn === 'function' || fn instanceof SVG.Situation) { + this.situations.push(fn); + } + + if (!this.situation) this.situation = this.situations.shift(); + return this; + }, + + /** + * pulls next element from the queue and execute it + * @return this + */ + dequeue: function dequeue() { + // stop current animation + this.stop(); // get next animation from queue + + this.situation = this.situations.shift(); + + if (this.situation) { + if (this.situation instanceof SVG.Situation) { + this.start(); + } else { + // If it is not a SVG.Situation, then it is a function, we execute it + this.situation.call(this); + } + } + + return this; + }, + // updates all animations to the current state of the element + // this is important when one property could be changed from another property + initAnimations: function initAnimations() { + var i, j, source; + var s = this.situation; + if (s.init) return this; + + for (i in s.animations) { + source = this.target()[i](); + + if (!Array.isArray(source)) { + source = [source]; + } + + if (!Array.isArray(s.animations[i])) { + s.animations[i] = [s.animations[i]]; + } // if(s.animations[i].length > source.length) { + // source.concat = source.concat(s.animations[i].slice(source.length, s.animations[i].length)) + // } + + + for (j = source.length; j--;) { + // The condition is because some methods return a normal number instead + // of a SVG.Number + if (s.animations[i][j] instanceof SVG.Number) { + source[j] = new SVG.Number(source[j]); + } + + s.animations[i][j] = source[j].morph(s.animations[i][j]); + } + } + + for (i in s.attrs) { + s.attrs[i] = new SVG.MorphObj(this.target().attr(i), s.attrs[i]); + } + + for (i in s.styles) { + s.styles[i] = new SVG.MorphObj(this.target().style(i), s.styles[i]); + } + + s.initialTransformation = this.target().matrixify(); + s.init = true; + return this; + }, + clearQueue: function clearQueue() { + this.situations = []; + return this; + }, + clearCurrent: function clearCurrent() { + this.situation = null; + return this; + }, + + /** stops the animation immediately + * @param jumpToEnd A Boolean indicating whether to complete the current animation immediately. + * @param clearQueue A Boolean indicating whether to remove queued animation as well. + * @return this + */ + stop: function stop(jumpToEnd, clearQueue) { + var active = this.active; + this.active = false; + + if (clearQueue) { + this.clearQueue(); + } + + if (jumpToEnd && this.situation) { + // initialize the situation if it was not + !active && this.startCurrent(); + this.atEnd(); + } + + this.stopAnimFrame(); + return this.clearCurrent(); + }, + + /** resets the element to the state where the current element has started + * @return this + */ + reset: function reset() { + if (this.situation) { + var temp = this.situation; + this.stop(); + this.situation = temp; + this.atStart(); + } + + return this; + }, + // Stop the currently-running animation, remove all queued animations, and complete all animations for the element. + finish: function finish() { + this.stop(true, false); + + while (this.dequeue().situation && this.stop(true, false)) { + } + + this.clearQueue().clearCurrent(); + return this; + }, + // set the internal animation pointer at the start position, before any loops, and updates the visualisation + atStart: function atStart() { + return this.at(0, true); + }, + // set the internal animation pointer at the end position, after all the loops, and updates the visualisation + atEnd: function atEnd() { + if (this.situation.loops === true) { + // If in a infinite loop, we end the current iteration + this.situation.loops = this.situation.loop + 1; + } + + if (typeof this.situation.loops === 'number') { + // If performing a finite number of loops, we go after all the loops + return this.at(this.situation.loops, true); + } else { + // If no loops, we just go at the end + return this.at(1, true); + } + }, + // set the internal animation pointer to the specified position and updates the visualisation + // if isAbsPos is true, pos is treated as an absolute position + at: function at(pos, isAbsPos) { + var durDivSpd = this.situation.duration / this._speed; + this.absPos = pos; // If pos is not an absolute position, we convert it into one + + if (!isAbsPos) { + if (this.situation.reversed) this.absPos = 1 - this.absPos; + this.absPos += this.situation.loop; + } + + this.situation.start = +new Date() - this.absPos * durDivSpd; + this.situation.finish = this.situation.start + durDivSpd; + return this.step(true); + }, + + /** + * sets or returns the speed of the animations + * @param speed null || Number The new speed of the animations + * @return Number || this + */ + speed: function speed(_speed) { + if (_speed === 0) return this.pause(); + + if (_speed) { + this._speed = _speed; // We use an absolute position here so that speed can affect the delay before the animation + + return this.at(this.absPos, true); + } else return this._speed; + }, + // Make loopable + loop: function loop(times, reverse) { + var c = this.last(); // store total loops + + c.loops = times != null ? times : true; + c.loop = 0; + if (reverse) c.reversing = true; + return this; + }, + // pauses the animation + pause: function pause() { + this.paused = true; + this.stopAnimFrame(); + return this; + }, + // unpause the animation + play: function play() { + if (!this.paused) return this; + this.paused = false; // We use an absolute position here so that the delay before the animation can be paused + + return this.at(this.absPos, true); + }, + + /** + * toggle or set the direction of the animation + * true sets direction to backwards while false sets it to forwards + * @param reversed Boolean indicating whether to reverse the animation or not (default: toggle the reverse status) + * @return this + */ + reverse: function reverse(reversed) { + var c = this.last(); + if (typeof reversed === 'undefined') c.reversed = !c.reversed;else c.reversed = reversed; + return this; + }, + + /** + * returns a float from 0-1 indicating the progress of the current animation + * @param eased Boolean indicating whether the returned position should be eased or not + * @return number + */ + progress: function progress(easeIt) { + return easeIt ? this.situation.ease(this.pos) : this.pos; + }, + + /** + * adds a callback function which is called when the current animation is finished + * @param fn Function which should be executed as callback + * @return number + */ + after: function after(fn) { + var c = this.last(), + wrapper = function wrapper(e) { + if (e.detail.situation == c) { + fn.call(this, c); + this.off('finished.fx', wrapper); // prevent memory leak + } + }; + + this.target().on('finished.fx', wrapper); + return this._callStart(); + }, + // adds a callback which is called whenever one animation step is performed + during: function during(fn) { + var c = this.last(), + wrapper = function wrapper(e) { + if (e.detail.situation == c) { + fn.call(this, e.detail.pos, SVG.morph(e.detail.pos), e.detail.eased, c); + } + }; // see above + + + this.target().off('during.fx', wrapper).on('during.fx', wrapper); + this.after(function () { + this.off('during.fx', wrapper); + }); + return this._callStart(); + }, + // calls after ALL animations in the queue are finished + afterAll: function afterAll(fn) { + var wrapper = function wrapper(e) { + fn.call(this); + this.off('allfinished.fx', wrapper); + }; // see above + + + this.target().off('allfinished.fx', wrapper).on('allfinished.fx', wrapper); + return this._callStart(); + }, + // calls on every animation step for all animations + duringAll: function duringAll(fn) { + var wrapper = function wrapper(e) { + fn.call(this, e.detail.pos, SVG.morph(e.detail.pos), e.detail.eased, e.detail.situation); + }; + + this.target().off('during.fx', wrapper).on('during.fx', wrapper); + this.afterAll(function () { + this.off('during.fx', wrapper); + }); + return this._callStart(); + }, + last: function last() { + return this.situations.length ? this.situations[this.situations.length - 1] : this.situation; + }, + // adds one property to the animations + add: function add(method, args, type) { + this.last()[type || 'animations'][method] = args; + return this._callStart(); + }, + + /** perform one step of the animation + * @param ignoreTime Boolean indicating whether to ignore time and use position directly or recalculate position based on time + * @return this + */ + step: function step(ignoreTime) { + // convert current time to an absolute position + if (!ignoreTime) this.absPos = this.timeToAbsPos(+new Date()); // This part convert an absolute position to a position + + if (this.situation.loops !== false) { + var absPos, absPosInt, lastLoop; // If the absolute position is below 0, we just treat it as if it was 0 + + absPos = Math.max(this.absPos, 0); + absPosInt = Math.floor(absPos); + + if (this.situation.loops === true || absPosInt < this.situation.loops) { + this.pos = absPos - absPosInt; + lastLoop = this.situation.loop; + this.situation.loop = absPosInt; + } else { + this.absPos = this.situation.loops; + this.pos = 1; // The -1 here is because we don't want to toggle reversed when all the loops have been completed + + lastLoop = this.situation.loop - 1; + this.situation.loop = this.situation.loops; + } + + if (this.situation.reversing) { + // Toggle reversed if an odd number of loops as occured since the last call of step + this.situation.reversed = this.situation.reversed != Boolean((this.situation.loop - lastLoop) % 2); + } + } else { + // If there are no loop, the absolute position must not be above 1 + this.absPos = Math.min(this.absPos, 1); + this.pos = this.absPos; + } // while the absolute position can be below 0, the position must not be below 0 + + + if (this.pos < 0) this.pos = 0; + if (this.situation.reversed) this.pos = 1 - this.pos; // apply easing + + var eased = this.situation.ease(this.pos); // call once-callbacks + + for (var i in this.situation.once) { + if (i > this.lastPos && i <= eased) { + this.situation.once[i].call(this.target(), this.pos, eased); + delete this.situation.once[i]; + } + } // fire during callback with position, eased position and current situation as parameter + + + if (this.active) this.target().fire('during', { + pos: this.pos, + eased: eased, + fx: this, + situation: this.situation + }); // the user may call stop or finish in the during callback + // so make sure that we still have a valid situation + + if (!this.situation) { + return this; + } // apply the actual animation to every property + + + this.eachAt(); // do final code when situation is finished + + if (this.pos == 1 && !this.situation.reversed || this.situation.reversed && this.pos == 0) { + // stop animation callback + this.stopAnimFrame(); // fire finished callback with current situation as parameter + + this.target().fire('finished', { + fx: this, + situation: this.situation + }); + + if (!this.situations.length) { + this.target().fire('allfinished'); // Recheck the length since the user may call animate in the afterAll callback + + if (!this.situations.length) { + this.target().off('.fx'); // there shouldnt be any binding left, but to make sure... + + this.active = false; + } + } // start next animation + + + if (this.active) this.dequeue();else this.clearCurrent(); + } else if (!this.paused && this.active) { + // we continue animating when we are not at the end + this.startAnimFrame(); + } // save last eased position for once callback triggering + + + this.lastPos = eased; + return this; + }, + // calculates the step for every property and calls block with it + eachAt: function eachAt() { + var i, + len, + at, + self = this, + target = this.target(), + s = this.situation; // apply animations which can be called trough a method + + for (i in s.animations) { + at = [].concat(s.animations[i]).map(function (el) { + return typeof el !== 'string' && el.at ? el.at(s.ease(self.pos), self.pos) : el; + }); + target[i].apply(target, at); + } // apply animation which has to be applied with attr() + + + for (i in s.attrs) { + at = [i].concat(s.attrs[i]).map(function (el) { + return typeof el !== 'string' && el.at ? el.at(s.ease(self.pos), self.pos) : el; + }); + target.attr.apply(target, at); + } // apply animation which has to be applied with style() + + + for (i in s.styles) { + at = [i].concat(s.styles[i]).map(function (el) { + return typeof el !== 'string' && el.at ? el.at(s.ease(self.pos), self.pos) : el; + }); + target.style.apply(target, at); + } // animate initialTransformation which has to be chained + + + if (s.transforms.length) { + // get initial initialTransformation + at = s.initialTransformation; + + for (i = 0, len = s.transforms.length; i < len; i++) { + // get next transformation in chain + var a = s.transforms[i]; // multiply matrix directly + + if (a instanceof SVG.Matrix) { + if (a.relative) { + at = at.multiply(new SVG.Matrix().morph(a).at(s.ease(this.pos))); + } else { + at = at.morph(a).at(s.ease(this.pos)); + } + + continue; + } // when transformation is absolute we have to reset the needed transformation first + + + if (!a.relative) { + a.undo(at.extract()); + } // and reapply it after + + + at = at.multiply(a.at(s.ease(this.pos))); + } // set new matrix on element + + + target.matrix(at); + } + + return this; + }, + // adds an once-callback which is called at a specific position and never again + once: function once(pos, fn, isEased) { + var c = this.last(); + if (!isEased) pos = c.ease(pos); + c.once[pos] = fn; + return this; + }, + _callStart: function _callStart() { + setTimeout(function () { + this.start(); + }.bind(this), 0); + return this; + } + }, + parent: SVG.Element, + // Add method to parent elements + construct: { + // Get fx module or create a new one, then animate with given duration and ease + animate: function animate(o, ease, delay) { + return (this.fx || (this.fx = new SVG.FX(this))).animate(o, ease, delay); + }, + delay: function delay(_delay2) { + return (this.fx || (this.fx = new SVG.FX(this))).delay(_delay2); + }, + stop: function stop(jumpToEnd, clearQueue) { + if (this.fx) { + this.fx.stop(jumpToEnd, clearQueue); + } + + return this; + }, + finish: function finish() { + if (this.fx) { + this.fx.finish(); + } + + return this; + }, + // Pause current animation + pause: function pause() { + if (this.fx) { + this.fx.pause(); + } + + return this; + }, + // Play paused current animation + play: function play() { + if (this.fx) { + this.fx.play(); + } + + return this; + }, + // Set/Get the speed of the animations + speed: function speed(_speed2) { + if (this.fx) { + if (_speed2 == null) { + return this.fx.speed(); + } else { + this.fx.speed(_speed2); + } + } + + return this; + } + } + }); // MorphObj is used whenever no morphable object is given + + SVG.MorphObj = SVG.invent({ + create: function create(from, to) { + // prepare color for morphing + if (SVG.Color.isColor(to)) return new SVG.Color(from).morph(to); // check if we have a list of values + + if (SVG.regex.delimiter.test(from)) { + // prepare path for morphing + if (SVG.regex.pathLetters.test(from)) return new SVG.PathArray(from).morph(to); // prepare value list for morphing + else return new SVG.Array(from).morph(to); + } // prepare number for morphing + + + if (SVG.regex.numberAndUnit.test(to)) return new SVG.Number(from).morph(to); // prepare for plain morphing + + this.value = from; + this.destination = to; + }, + extend: { + at: function at(pos, real) { + return real < 1 ? this.value : this.destination; + }, + valueOf: function valueOf() { + return this.value; + } + } + }); + SVG.extend(SVG.FX, { + // Add animatable attributes + attr: function attr(a, v, relative) { + // apply attributes individually + if (_typeof(a) === 'object') { + for (var key in a) { + this.attr(key, a[key]); + } + } else { + this.add(a, v, 'attrs'); + } + + return this; + }, + // Add animatable styles + style: function style(s, v) { + if (_typeof(s) === 'object') { + for (var key in s) { + this.style(key, s[key]); + } + } else { + this.add(s, v, 'styles'); + } + + return this; + }, + // Animatable x-axis + x: function x(_x2, relative) { + if (this.target() instanceof SVG.G) { + this.transform({ + x: _x2 + }, relative); + return this; + } + + var num = new SVG.Number(_x2); + num.relative = relative; + return this.add('x', num); + }, + // Animatable y-axis + y: function y(_y2, relative) { + if (this.target() instanceof SVG.G) { + this.transform({ + y: _y2 + }, relative); + return this; + } + + var num = new SVG.Number(_y2); + num.relative = relative; + return this.add('y', num); + }, + // Animatable center x-axis + cx: function cx(x) { + return this.add('cx', new SVG.Number(x)); + }, + // Animatable center y-axis + cy: function cy(y) { + return this.add('cy', new SVG.Number(y)); + }, + // Add animatable move + move: function move(x, y) { + return this.x(x).y(y); + }, + // Add animatable center + center: function center(x, y) { + return this.cx(x).cy(y); + }, + // Add animatable size + size: function size(width, height) { + if (this.target() instanceof SVG.Text) { + // animate font size for Text elements + this.attr('font-size', width); + } else { + // animate bbox based size for all other elements + var box; + + if (!width || !height) { + box = this.target().bbox(); + } + + if (!width) { + width = box.width / box.height * height; + } + + if (!height) { + height = box.height / box.width * width; + } + + this.add('width', new SVG.Number(width)).add('height', new SVG.Number(height)); + } + + return this; + }, + // Add animatable width + width: function width(_width2) { + return this.add('width', new SVG.Number(_width2)); + }, + // Add animatable height + height: function height(_height2) { + return this.add('height', new SVG.Number(_height2)); + }, + // Add animatable plot + plot: function plot(a, b, c, d) { + // Lines can be plotted with 4 arguments + if (arguments.length == 4) { + return this.plot([a, b, c, d]); + } + + return this.add('plot', new (this.target().morphArray)(a)); + }, + // Add leading method + leading: function leading(value) { + return this.target().leading ? this.add('leading', new SVG.Number(value)) : this; + }, + // Add animatable viewbox + viewbox: function viewbox(x, y, width, height) { + if (this.target() instanceof SVG.Container) { + this.add('viewbox', new SVG.ViewBox(x, y, width, height)); + } + + return this; + }, + update: function update(o) { + if (this.target() instanceof SVG.Stop) { + if (typeof o === 'number' || o instanceof SVG.Number) { + return this.update({ + offset: arguments[0], + color: arguments[1], + opacity: arguments[2] + }); + } + + if (o.opacity != null) this.attr('stop-opacity', o.opacity); + if (o.color != null) this.attr('stop-color', o.color); + if (o.offset != null) this.attr('offset', o.offset); + } + + return this; + } + }); + SVG.Box = SVG.invent({ + create: function create(x, y, width, height) { + if (_typeof(x) === 'object' && !(x instanceof SVG.Element)) { + // chromes getBoundingClientRect has no x and y property + return SVG.Box.call(this, x.left != null ? x.left : x.x, x.top != null ? x.top : x.y, x.width, x.height); + } else if (arguments.length == 4) { + this.x = x; + this.y = y; + this.width = width; + this.height = height; + } // add center, right, bottom... + + + fullBox(this); + }, + extend: { + // Merge rect box with another, return a new instance + merge: function merge(box) { + var b = new this.constructor(); // merge boxes + + b.x = Math.min(this.x, box.x); + b.y = Math.min(this.y, box.y); + b.width = Math.max(this.x + this.width, box.x + box.width) - b.x; + b.height = Math.max(this.y + this.height, box.y + box.height) - b.y; + return fullBox(b); + }, + transform: function transform(m) { + var xMin = Infinity, + xMax = -Infinity, + yMin = Infinity, + yMax = -Infinity, + bbox; + var pts = [new SVG.Point(this.x, this.y), new SVG.Point(this.x2, this.y), new SVG.Point(this.x, this.y2), new SVG.Point(this.x2, this.y2)]; + pts.forEach(function (p) { + p = p.transform(m); + xMin = Math.min(xMin, p.x); + xMax = Math.max(xMax, p.x); + yMin = Math.min(yMin, p.y); + yMax = Math.max(yMax, p.y); + }); + bbox = new this.constructor(); + bbox.x = xMin; + bbox.width = xMax - xMin; + bbox.y = yMin; + bbox.height = yMax - yMin; + fullBox(bbox); + return bbox; + } + } + }); + SVG.BBox = SVG.invent({ + // Initialize + create: function create(element) { + SVG.Box.apply(this, [].slice.call(arguments)); // get values if element is given + + if (element instanceof SVG.Element) { + var box; // yes this is ugly, but Firefox can be a pain when it comes to elements that are not yet rendered + + try { + if (!document.documentElement.contains) { + // This is IE - it does not support contains() for top-level SVGs + var topParent = element.node; + + while (topParent.parentNode) { + topParent = topParent.parentNode; + } + + if (topParent != document) throw new Error('Element not in the dom'); + } // the element is NOT in the dom, throw error + // disabling the check below which fixes issue #76 + // if (!document.documentElement.contains(element.node)) throw new Exception('Element not in the dom') + // find native bbox + + + box = element.node.getBBox(); + } catch (e) { + if (element instanceof SVG.Shape) { + if (!SVG.parser.draw) { + // fixes apexcharts/vue-apexcharts #14 + SVG.prepare(); + } + + var clone = element.clone(SVG.parser.draw.instance).show(); + box = clone.node.getBBox(); + clone.remove(); + } else { + box = { + x: element.node.clientLeft, + y: element.node.clientTop, + width: element.node.clientWidth, + height: element.node.clientHeight + }; + } + } + + SVG.Box.call(this, box); + } + }, + // Define ancestor + inherit: SVG.Box, + // Define Parent + parent: SVG.Element, + // Constructor + construct: { + // Get bounding box + bbox: function bbox() { + return new SVG.BBox(this); + } + } + }); + SVG.BBox.prototype.constructor = SVG.BBox; + SVG.extend(SVG.Element, { + tbox: function tbox() { + console.warn('Use of TBox is deprecated and mapped to RBox. Use .rbox() instead.'); + return this.rbox(this.doc()); + } + }); + SVG.RBox = SVG.invent({ + // Initialize + create: function create(element) { + SVG.Box.apply(this, [].slice.call(arguments)); + + if (element instanceof SVG.Element) { + SVG.Box.call(this, element.node.getBoundingClientRect()); + } + }, + inherit: SVG.Box, + // define Parent + parent: SVG.Element, + extend: { + addOffset: function addOffset() { + // offset by window scroll position, because getBoundingClientRect changes when window is scrolled + this.x += window.pageXOffset; + this.y += window.pageYOffset; + return this; + } + }, + // Constructor + construct: { + // Get rect box + rbox: function rbox(el) { + if (el) return new SVG.RBox(this).transform(el.screenCTM().inverse()); + return new SVG.RBox(this).addOffset(); + } + } + }); + SVG.RBox.prototype.constructor = SVG.RBox; + SVG.Matrix = SVG.invent({ + // Initialize + create: function create(source) { + var i, + base = arrayToMatrix([1, 0, 0, 1, 0, 0]); // ensure source as object + + source = source instanceof SVG.Element ? source.matrixify() : typeof source === 'string' ? arrayToMatrix(source.split(SVG.regex.delimiter).map(parseFloat)) : arguments.length == 6 ? arrayToMatrix([].slice.call(arguments)) : Array.isArray(source) ? arrayToMatrix(source) : _typeof(source) === 'object' ? source : base; // merge source + + for (i = abcdef.length - 1; i >= 0; --i) { + this[abcdef[i]] = source[abcdef[i]] != null ? source[abcdef[i]] : base[abcdef[i]]; + } + }, + // Add methods + extend: { + // Extract individual transformations + extract: function extract() { + // find delta transform points + var px = deltaTransformPoint(this, 0, 1), + py = deltaTransformPoint(this, 1, 0), + skewX = 180 / Math.PI * Math.atan2(px.y, px.x) - 90; + return { + // translation + x: this.e, + y: this.f, + transformedX: (this.e * Math.cos(skewX * Math.PI / 180) + this.f * Math.sin(skewX * Math.PI / 180)) / Math.sqrt(this.a * this.a + this.b * this.b), + transformedY: (this.f * Math.cos(skewX * Math.PI / 180) + this.e * Math.sin(-skewX * Math.PI / 180)) / Math.sqrt(this.c * this.c + this.d * this.d), + // skew + skewX: -skewX, + skewY: 180 / Math.PI * Math.atan2(py.y, py.x), + // scale + scaleX: Math.sqrt(this.a * this.a + this.b * this.b), + scaleY: Math.sqrt(this.c * this.c + this.d * this.d), + // rotation + rotation: skewX, + a: this.a, + b: this.b, + c: this.c, + d: this.d, + e: this.e, + f: this.f, + matrix: new SVG.Matrix(this) + }; + }, + // Clone matrix + clone: function clone() { + return new SVG.Matrix(this); + }, + // Morph one matrix into another + morph: function morph(matrix) { + // store new destination + this.destination = new SVG.Matrix(matrix); + return this; + }, + // Get morphed matrix at a given position + at: function at(pos) { + // make sure a destination is defined + if (!this.destination) return this; // calculate morphed matrix at a given position + + var matrix = new SVG.Matrix({ + a: this.a + (this.destination.a - this.a) * pos, + b: this.b + (this.destination.b - this.b) * pos, + c: this.c + (this.destination.c - this.c) * pos, + d: this.d + (this.destination.d - this.d) * pos, + e: this.e + (this.destination.e - this.e) * pos, + f: this.f + (this.destination.f - this.f) * pos + }); + return matrix; + }, + // Multiplies by given matrix + multiply: function multiply(matrix) { + return new SVG.Matrix(this.native().multiply(parseMatrix(matrix).native())); + }, + // Inverses matrix + inverse: function inverse() { + return new SVG.Matrix(this.native().inverse()); + }, + // Translate matrix + translate: function translate(x, y) { + return new SVG.Matrix(this.native().translate(x || 0, y || 0)); + }, + // Scale matrix + scale: function scale(x, y, cx, cy) { + // support uniformal scale + if (arguments.length == 1) { + y = x; + } else if (arguments.length == 3) { + cy = cx; + cx = y; + y = x; + } + + return this.around(cx, cy, new SVG.Matrix(x, 0, 0, y, 0, 0)); + }, + // Rotate matrix + rotate: function rotate(r, cx, cy) { + // convert degrees to radians + r = SVG.utils.radians(r); + return this.around(cx, cy, new SVG.Matrix(Math.cos(r), Math.sin(r), -Math.sin(r), Math.cos(r), 0, 0)); + }, + // Flip matrix on x or y, at a given offset + flip: function flip(a, o) { + return a == 'x' ? this.scale(-1, 1, o, 0) : a == 'y' ? this.scale(1, -1, 0, o) : this.scale(-1, -1, a, o != null ? o : a); + }, + // Skew + skew: function skew(x, y, cx, cy) { + // support uniformal skew + if (arguments.length == 1) { + y = x; + } else if (arguments.length == 3) { + cy = cx; + cx = y; + y = x; + } // convert degrees to radians + + + x = SVG.utils.radians(x); + y = SVG.utils.radians(y); + return this.around(cx, cy, new SVG.Matrix(1, Math.tan(y), Math.tan(x), 1, 0, 0)); + }, + // SkewX + skewX: function skewX(x, cx, cy) { + return this.skew(x, 0, cx, cy); + }, + // SkewY + skewY: function skewY(y, cx, cy) { + return this.skew(0, y, cx, cy); + }, + // Transform around a center point + around: function around(cx, cy, matrix) { + return this.multiply(new SVG.Matrix(1, 0, 0, 1, cx || 0, cy || 0)).multiply(matrix).multiply(new SVG.Matrix(1, 0, 0, 1, -cx || 0, -cy || 0)); + }, + // Convert to native SVGMatrix + native: function native() { + // create new matrix + var matrix = SVG.parser.native.createSVGMatrix(); // update with current values + + for (var i = abcdef.length - 1; i >= 0; i--) { + matrix[abcdef[i]] = this[abcdef[i]]; + } + + return matrix; + }, + // Convert matrix to string + toString: function toString() { + // Construct the matrix directly, avoid values that are too small + return 'matrix(' + float32String(this.a) + ',' + float32String(this.b) + ',' + float32String(this.c) + ',' + float32String(this.d) + ',' + float32String(this.e) + ',' + float32String(this.f) + ')'; + } + }, + // Define parent + parent: SVG.Element, + // Add parent method + construct: { + // Get current matrix + ctm: function ctm() { + return new SVG.Matrix(this.node.getCTM()); + }, + // Get current screen matrix + screenCTM: function screenCTM() { + /* https://bugzilla.mozilla.org/show_bug.cgi?id=1344537 + This is needed because FF does not return the transformation matrix + for the inner coordinate system when getScreenCTM() is called on nested svgs. + However all other Browsers do that */ + if (this instanceof SVG.Nested) { + var rect = this.rect(1, 1); + var m = rect.node.getScreenCTM(); + rect.remove(); + return new SVG.Matrix(m); + } + + return new SVG.Matrix(this.node.getScreenCTM()); + } + } + }); + SVG.Point = SVG.invent({ + // Initialize + create: function create(x, y) { + var source, + base = { + x: 0, + y: 0 // ensure source as object + + }; + source = Array.isArray(x) ? { + x: x[0], + y: x[1] + } : _typeof(x) === 'object' ? { + x: x.x, + y: x.y + } : x != null ? { + x: x, + y: y != null ? y : x + } : base; // If y has no value, then x is used has its value + // merge source + + this.x = source.x; + this.y = source.y; + }, + // Add methods + extend: { + // Clone point + clone: function clone() { + return new SVG.Point(this); + }, + // Morph one point into another + morph: function morph(x, y) { + // store new destination + this.destination = new SVG.Point(x, y); + return this; + }, + // Get morphed point at a given position + at: function at(pos) { + // make sure a destination is defined + if (!this.destination) return this; // calculate morphed matrix at a given position + + var point = new SVG.Point({ + x: this.x + (this.destination.x - this.x) * pos, + y: this.y + (this.destination.y - this.y) * pos + }); + return point; + }, + // Convert to native SVGPoint + native: function native() { + // create new point + var point = SVG.parser.native.createSVGPoint(); // update with current values + + point.x = this.x; + point.y = this.y; + return point; + }, + // transform point with matrix + transform: function transform(matrix) { + return new SVG.Point(this.native().matrixTransform(matrix.native())); + } + } + }); + SVG.extend(SVG.Element, { + // Get point + point: function point(x, y) { + return new SVG.Point(x, y).transform(this.screenCTM().inverse()); + } + }); + SVG.extend(SVG.Element, { + // Set svg element attribute + attr: function attr(a, v, n) { + // act as full getter + if (a == null) { + // get an object of attributes + a = {}; + v = this.node.attributes; + + for (n = v.length - 1; n >= 0; n--) { + a[v[n].nodeName] = SVG.regex.isNumber.test(v[n].nodeValue) ? parseFloat(v[n].nodeValue) : v[n].nodeValue; + } + + return a; + } else if (_typeof(a) === 'object') { + // apply every attribute individually if an object is passed + for (v in a) { + this.attr(v, a[v]); + } + } else if (v === null) { + // remove value + this.node.removeAttribute(a); + } else if (v == null) { + // act as a getter if the first and only argument is not an object + v = this.node.getAttribute(a); + return v == null ? SVG.defaults.attrs[a] : SVG.regex.isNumber.test(v) ? parseFloat(v) : v; + } else { + // BUG FIX: some browsers will render a stroke if a color is given even though stroke width is 0 + if (a == 'stroke-width') { + this.attr('stroke', parseFloat(v) > 0 ? this._stroke : null); + } else if (a == 'stroke') { + this._stroke = v; + } // convert image fill and stroke to patterns + + + if (a == 'fill' || a == 'stroke') { + if (SVG.regex.isImage.test(v)) { + v = this.doc().defs().image(v, 0, 0); + } + + if (v instanceof SVG.Image) { + v = this.doc().defs().pattern(0, 0, function () { + this.add(v); + }); + } + } // ensure correct numeric values (also accepts NaN and Infinity) + + + if (typeof v === 'number') { + v = new SVG.Number(v); + } // ensure full hex color + else if (SVG.Color.isColor(v)) { + v = new SVG.Color(v); + } // parse array values + else if (Array.isArray(v)) { + v = new SVG.Array(v); + } // if the passed attribute is leading... + + + if (a == 'leading') { + // ... call the leading method instead + if (this.leading) { + this.leading(v); + } + } else { + // set given attribute on node + typeof n === 'string' ? this.node.setAttributeNS(n, a, v.toString()) : this.node.setAttribute(a, v.toString()); + } // rebuild if required + + + if (this.rebuild && (a == 'font-size' || a == 'x')) { + this.rebuild(a, v); + } + } + + return this; + } + }); + SVG.extend(SVG.Element, { + // Add transformations + transform: function transform(o, relative) { + // get target in case of the fx module, otherwise reference this + var target = this, + matrix, + bbox; // act as a getter + + if (_typeof(o) !== 'object') { + // get current matrix + matrix = new SVG.Matrix(target).extract(); + return typeof o === 'string' ? matrix[o] : matrix; + } // get current matrix + + + matrix = new SVG.Matrix(target); // ensure relative flag + + relative = !!relative || !!o.relative; // act on matrix + + if (o.a != null) { + matrix = relative // relative + ? matrix.multiply(new SVG.Matrix(o)) // absolute + : new SVG.Matrix(o); // act on rotation + } else if (o.rotation != null) { + // ensure centre point + ensureCentre(o, target); // apply transformation + + matrix = relative // relative + ? matrix.rotate(o.rotation, o.cx, o.cy) // absolute + : matrix.rotate(o.rotation - matrix.extract().rotation, o.cx, o.cy); // act on scale + } else if (o.scale != null || o.scaleX != null || o.scaleY != null) { + // ensure centre point + ensureCentre(o, target); // ensure scale values on both axes + + o.scaleX = o.scale != null ? o.scale : o.scaleX != null ? o.scaleX : 1; + o.scaleY = o.scale != null ? o.scale : o.scaleY != null ? o.scaleY : 1; + + if (!relative) { + // absolute; multiply inversed values + var e = matrix.extract(); + o.scaleX = o.scaleX * 1 / e.scaleX; + o.scaleY = o.scaleY * 1 / e.scaleY; + } + + matrix = matrix.scale(o.scaleX, o.scaleY, o.cx, o.cy); // act on skew + } else if (o.skew != null || o.skewX != null || o.skewY != null) { + // ensure centre point + ensureCentre(o, target); // ensure skew values on both axes + + o.skewX = o.skew != null ? o.skew : o.skewX != null ? o.skewX : 0; + o.skewY = o.skew != null ? o.skew : o.skewY != null ? o.skewY : 0; + + if (!relative) { + // absolute; reset skew values + var e = matrix.extract(); + matrix = matrix.multiply(new SVG.Matrix().skew(e.skewX, e.skewY, o.cx, o.cy).inverse()); + } + + matrix = matrix.skew(o.skewX, o.skewY, o.cx, o.cy); // act on flip + } else if (o.flip) { + if (o.flip == 'x' || o.flip == 'y') { + o.offset = o.offset == null ? target.bbox()['c' + o.flip] : o.offset; + } else { + if (o.offset == null) { + bbox = target.bbox(); + o.flip = bbox.cx; + o.offset = bbox.cy; + } else { + o.flip = o.offset; + } + } + + matrix = new SVG.Matrix().flip(o.flip, o.offset); // act on translate + } else if (o.x != null || o.y != null) { + if (relative) { + // relative + matrix = matrix.translate(o.x, o.y); + } else { + // absolute + if (o.x != null) matrix.e = o.x; + if (o.y != null) matrix.f = o.y; + } + } + + return this.attr('transform', matrix); + } + }); + SVG.extend(SVG.FX, { + transform: function transform(o, relative) { + // get target in case of the fx module, otherwise reference this + var target = this.target(), + matrix, + bbox; // act as a getter + + if (_typeof(o) !== 'object') { + // get current matrix + matrix = new SVG.Matrix(target).extract(); + return typeof o === 'string' ? matrix[o] : matrix; + } // ensure relative flag + + + relative = !!relative || !!o.relative; // act on matrix + + if (o.a != null) { + matrix = new SVG.Matrix(o); // act on rotation + } else if (o.rotation != null) { + // ensure centre point + ensureCentre(o, target); // apply transformation + + matrix = new SVG.Rotate(o.rotation, o.cx, o.cy); // act on scale + } else if (o.scale != null || o.scaleX != null || o.scaleY != null) { + // ensure centre point + ensureCentre(o, target); // ensure scale values on both axes + + o.scaleX = o.scale != null ? o.scale : o.scaleX != null ? o.scaleX : 1; + o.scaleY = o.scale != null ? o.scale : o.scaleY != null ? o.scaleY : 1; + matrix = new SVG.Scale(o.scaleX, o.scaleY, o.cx, o.cy); // act on skew + } else if (o.skewX != null || o.skewY != null) { + // ensure centre point + ensureCentre(o, target); // ensure skew values on both axes + + o.skewX = o.skewX != null ? o.skewX : 0; + o.skewY = o.skewY != null ? o.skewY : 0; + matrix = new SVG.Skew(o.skewX, o.skewY, o.cx, o.cy); // act on flip + } else if (o.flip) { + if (o.flip == 'x' || o.flip == 'y') { + o.offset = o.offset == null ? target.bbox()['c' + o.flip] : o.offset; + } else { + if (o.offset == null) { + bbox = target.bbox(); + o.flip = bbox.cx; + o.offset = bbox.cy; + } else { + o.flip = o.offset; + } + } + + matrix = new SVG.Matrix().flip(o.flip, o.offset); // act on translate + } else if (o.x != null || o.y != null) { + matrix = new SVG.Translate(o.x, o.y); + } + + if (!matrix) return this; + matrix.relative = relative; + this.last().transforms.push(matrix); + return this._callStart(); + } + }); + SVG.extend(SVG.Element, { + // Reset all transformations + untransform: function untransform() { + return this.attr('transform', null); + }, + // merge the whole transformation chain into one matrix and returns it + matrixify: function matrixify() { + var matrix = (this.attr('transform') || ''). // split transformations + split(SVG.regex.transforms).slice(0, -1).map(function (str) { + // generate key => value pairs + var kv = str.trim().split('('); + return [kv[0], kv[1].split(SVG.regex.delimiter).map(function (str) { + return parseFloat(str); + })]; + }) // merge every transformation into one matrix + .reduce(function (matrix, transform) { + if (transform[0] == 'matrix') return matrix.multiply(arrayToMatrix(transform[1])); + return matrix[transform[0]].apply(matrix, transform[1]); + }, new SVG.Matrix()); + return matrix; + }, + // add an element to another parent without changing the visual representation on the screen + toParent: function toParent(parent) { + if (this == parent) return this; + var ctm = this.screenCTM(); + var pCtm = parent.screenCTM().inverse(); + this.addTo(parent).untransform().transform(pCtm.multiply(ctm)); + return this; + }, + // same as above with parent equals root-svg + toDoc: function toDoc() { + return this.toParent(this.doc()); + } + }); + SVG.Transformation = SVG.invent({ + create: function create(source, inversed) { + if (arguments.length > 1 && typeof inversed !== 'boolean') { + return this.constructor.call(this, [].slice.call(arguments)); + } + + if (Array.isArray(source)) { + for (var i = 0, len = this.arguments.length; i < len; ++i) { + this[this.arguments[i]] = source[i]; + } + } else if (_typeof(source) === 'object') { + for (var i = 0, len = this.arguments.length; i < len; ++i) { + this[this.arguments[i]] = source[this.arguments[i]]; + } + } + + this.inversed = false; + + if (inversed === true) { + this.inversed = true; + } + }, + extend: { + arguments: [], + method: '', + at: function at(pos) { + var params = []; + + for (var i = 0, len = this.arguments.length; i < len; ++i) { + params.push(this[this.arguments[i]]); + } + + var m = this._undo || new SVG.Matrix(); + m = new SVG.Matrix().morph(SVG.Matrix.prototype[this.method].apply(m, params)).at(pos); + return this.inversed ? m.inverse() : m; + }, + undo: function undo(o) { + for (var i = 0, len = this.arguments.length; i < len; ++i) { + o[this.arguments[i]] = typeof this[this.arguments[i]] === 'undefined' ? 0 : o[this.arguments[i]]; + } // The method SVG.Matrix.extract which was used before calling this + // method to obtain a value for the parameter o doesn't return a cx and + // a cy so we use the ones that were provided to this object at its creation + + + o.cx = this.cx; + o.cy = this.cy; + this._undo = new SVG[capitalize(this.method)](o, true).at(1); + return this; + } + } + }); + SVG.Translate = SVG.invent({ + parent: SVG.Matrix, + inherit: SVG.Transformation, + create: function create(source, inversed) { + this.constructor.apply(this, [].slice.call(arguments)); + }, + extend: { + arguments: ['transformedX', 'transformedY'], + method: 'translate' + } + }); + SVG.Rotate = SVG.invent({ + parent: SVG.Matrix, + inherit: SVG.Transformation, + create: function create(source, inversed) { + this.constructor.apply(this, [].slice.call(arguments)); + }, + extend: { + arguments: ['rotation', 'cx', 'cy'], + method: 'rotate', + at: function at(pos) { + var m = new SVG.Matrix().rotate(new SVG.Number().morph(this.rotation - (this._undo ? this._undo.rotation : 0)).at(pos), this.cx, this.cy); + return this.inversed ? m.inverse() : m; + }, + undo: function undo(o) { + this._undo = o; + return this; + } + } + }); + SVG.Scale = SVG.invent({ + parent: SVG.Matrix, + inherit: SVG.Transformation, + create: function create(source, inversed) { + this.constructor.apply(this, [].slice.call(arguments)); + }, + extend: { + arguments: ['scaleX', 'scaleY', 'cx', 'cy'], + method: 'scale' + } + }); + SVG.Skew = SVG.invent({ + parent: SVG.Matrix, + inherit: SVG.Transformation, + create: function create(source, inversed) { + this.constructor.apply(this, [].slice.call(arguments)); + }, + extend: { + arguments: ['skewX', 'skewY', 'cx', 'cy'], + method: 'skew' + } + }); + SVG.extend(SVG.Element, { + // Dynamic style generator + style: function style(s, v) { + if (arguments.length == 0) { + // get full style + return this.node.style.cssText || ''; + } else if (arguments.length < 2) { + // apply every style individually if an object is passed + if (_typeof(s) === 'object') { + for (v in s) { + this.style(v, s[v]); + } + } else if (SVG.regex.isCss.test(s)) { + // parse css string + s = s.split(/\s*;\s*/) // filter out suffix ; and stuff like ;; + .filter(function (e) { + return !!e; + }).map(function (e) { + return e.split(/\s*:\s*/); + }); // apply every definition individually + + while (v = s.pop()) { + this.style(v[0], v[1]); + } + } else { + // act as a getter if the first and only argument is not an object + return this.node.style[camelCase(s)]; + } + } else { + this.node.style[camelCase(s)] = v === null || SVG.regex.isBlank.test(v) ? '' : v; + } + + return this; + } + }); + SVG.Parent = SVG.invent({ + // Initialize node + create: function create(element) { + this.constructor.call(this, element); + }, + // Inherit from + inherit: SVG.Element, + // Add class methods + extend: { + // Returns all child elements + children: function children() { + return SVG.utils.map(SVG.utils.filterSVGElements(this.node.childNodes), function (node) { + return SVG.adopt(node); + }); + }, + // Add given element at a position + add: function add(element, i) { + if (i == null) { + this.node.appendChild(element.node); + } else if (element.node != this.node.childNodes[i]) { + this.node.insertBefore(element.node, this.node.childNodes[i]); + } + + return this; + }, + // Basically does the same as `add()` but returns the added element instead + put: function put(element, i) { + this.add(element, i); + return element; + }, + // Checks if the given element is a child + has: function has(element) { + return this.index(element) >= 0; + }, + // Gets index of given element + index: function index(element) { + return [].slice.call(this.node.childNodes).indexOf(element.node); + }, + // Get a element at the given index + get: function get(i) { + return SVG.adopt(this.node.childNodes[i]); + }, + // Get first child + first: function first() { + return this.get(0); + }, + // Get the last child + last: function last() { + return this.get(this.node.childNodes.length - 1); + }, + // Iterates over all children and invokes a given block + each: function each(block, deep) { + var i, + il, + children = this.children(); + + for (i = 0, il = children.length; i < il; i++) { + if (children[i] instanceof SVG.Element) { + block.apply(children[i], [i, children]); + } + + if (deep && children[i] instanceof SVG.Container) { + children[i].each(block, deep); + } + } + + return this; + }, + // Remove a given child + removeElement: function removeElement(element) { + this.node.removeChild(element.node); + return this; + }, + // Remove all elements in this container + clear: function clear() { + // remove children + while (this.node.hasChildNodes()) { + this.node.removeChild(this.node.lastChild); + } // remove defs reference + + + delete this._defs; + return this; + }, + // Get defs + defs: function defs() { + return this.doc().defs(); + } + } + }); + SVG.extend(SVG.Parent, { + ungroup: function ungroup(parent, depth) { + if (depth === 0 || this instanceof SVG.Defs || this.node == SVG.parser.draw) return this; + parent = parent || (this instanceof SVG.Doc ? this : this.parent(SVG.Parent)); + depth = depth || Infinity; + this.each(function () { + if (this instanceof SVG.Defs) return this; + if (this instanceof SVG.Parent) return this.ungroup(parent, depth - 1); + return this.toParent(parent); + }); + this.node.firstChild || this.remove(); + return this; + }, + flatten: function flatten(parent, depth) { + return this.ungroup(parent, depth); + } + }); + SVG.Container = SVG.invent({ + // Initialize node + create: function create(element) { + this.constructor.call(this, element); + }, + // Inherit from + inherit: SVG.Parent + }); + SVG.ViewBox = SVG.invent({ + create: function create(source) { + var base = [0, 0, 0, 0]; + var x, + y, + width, + height, + box, + view, + we, + he, + wm = 1, + // width multiplier + hm = 1, + // height multiplier + reg = /[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/gi; + + if (source instanceof SVG.Element) { + we = source; + he = source; + view = (source.attr('viewBox') || '').match(reg); + box = source.bbox; // get dimensions of current node + + width = new SVG.Number(source.width()); + height = new SVG.Number(source.height()); // find nearest non-percentual dimensions + + while (width.unit == '%') { + wm *= width.value; + width = new SVG.Number(we instanceof SVG.Doc ? we.parent().offsetWidth : we.parent().width()); + we = we.parent(); + } + + while (height.unit == '%') { + hm *= height.value; + height = new SVG.Number(he instanceof SVG.Doc ? he.parent().offsetHeight : he.parent().height()); + he = he.parent(); + } // ensure defaults + + + this.x = 0; + this.y = 0; + this.width = width * wm; + this.height = height * hm; + this.zoom = 1; + + if (view) { + // get width and height from viewbox + x = parseFloat(view[0]); + y = parseFloat(view[1]); + width = parseFloat(view[2]); + height = parseFloat(view[3]); // calculate zoom accoring to viewbox + + this.zoom = this.width / this.height > width / height ? this.height / height : this.width / width; // calculate real pixel dimensions on parent SVG.Doc element + + this.x = x; + this.y = y; + this.width = width; + this.height = height; + } + } else { + // ensure source as object + source = typeof source === 'string' ? source.match(reg).map(function (el) { + return parseFloat(el); + }) : Array.isArray(source) ? source : _typeof(source) === 'object' ? [source.x, source.y, source.width, source.height] : arguments.length == 4 ? [].slice.call(arguments) : base; + this.x = source[0]; + this.y = source[1]; + this.width = source[2]; + this.height = source[3]; + } + }, + extend: { + toString: function toString() { + return this.x + ' ' + this.y + ' ' + this.width + ' ' + this.height; + }, + morph: function morph(x, y, width, height) { + this.destination = new SVG.ViewBox(x, y, width, height); + return this; + }, + at: function at(pos) { + if (!this.destination) return this; + return new SVG.ViewBox([this.x + (this.destination.x - this.x) * pos, this.y + (this.destination.y - this.y) * pos, this.width + (this.destination.width - this.width) * pos, this.height + (this.destination.height - this.height) * pos]); + } + }, + // Define parent + parent: SVG.Container, + // Add parent method + construct: { + // get/set viewbox + viewbox: function viewbox(x, y, width, height) { + if (arguments.length == 0) // act as a getter if there are no arguments + { + return new SVG.ViewBox(this); + } // otherwise act as a setter + + + return this.attr('viewBox', new SVG.ViewBox(x, y, width, height)); + } + } + }) // Add events to elements + ; + ['click', 'dblclick', 'mousedown', 'mouseup', 'mouseover', 'mouseout', 'mousemove', // , 'mouseenter' -> not supported by IE + // , 'mouseleave' -> not supported by IE + 'touchstart', 'touchmove', 'touchleave', 'touchend', 'touchcancel'].forEach(function (event) { + // add event to SVG.Element + SVG.Element.prototype[event] = function (f) { + // bind event to element rather than element node + SVG.on(this.node, event, f); + return this; + }; + }); // Initialize listeners stack + + SVG.listeners = []; + SVG.handlerMap = []; + SVG.listenerId = 0; // Add event binder in the SVG namespace + + SVG.on = function (node, event, listener, binding, options) { + // create listener, get object-index + var l = listener.bind(binding || node.instance || node), + index = (SVG.handlerMap.indexOf(node) + 1 || SVG.handlerMap.push(node)) - 1, + ev = event.split('.')[0], + ns = event.split('.')[1] || '*'; // ensure valid object + + SVG.listeners[index] = SVG.listeners[index] || {}; + SVG.listeners[index][ev] = SVG.listeners[index][ev] || {}; + SVG.listeners[index][ev][ns] = SVG.listeners[index][ev][ns] || {}; + + if (!listener._svgjsListenerId) { + listener._svgjsListenerId = ++SVG.listenerId; + } // reference listener + + + SVG.listeners[index][ev][ns][listener._svgjsListenerId] = l; // add listener + + node.addEventListener(ev, l, options || false); + }; // Add event unbinder in the SVG namespace + + + SVG.off = function (node, event, listener) { + var index = SVG.handlerMap.indexOf(node), + ev = event && event.split('.')[0], + ns = event && event.split('.')[1], + namespace = ''; + if (index == -1) return; + + if (listener) { + if (typeof listener === 'function') listener = listener._svgjsListenerId; + if (!listener) return; // remove listener reference + + if (SVG.listeners[index][ev] && SVG.listeners[index][ev][ns || '*']) { + // remove listener + node.removeEventListener(ev, SVG.listeners[index][ev][ns || '*'][listener], false); + delete SVG.listeners[index][ev][ns || '*'][listener]; + } + } else if (ns && ev) { + // remove all listeners for a namespaced event + if (SVG.listeners[index][ev] && SVG.listeners[index][ev][ns]) { + for (listener in SVG.listeners[index][ev][ns]) { + SVG.off(node, [ev, ns].join('.'), listener); + } + + delete SVG.listeners[index][ev][ns]; + } + } else if (ns) { + // remove all listeners for a specific namespace + for (event in SVG.listeners[index]) { + for (namespace in SVG.listeners[index][event]) { + if (ns === namespace) { + SVG.off(node, [event, ns].join('.')); + } + } + } + } else if (ev) { + // remove all listeners for the event + if (SVG.listeners[index][ev]) { + for (namespace in SVG.listeners[index][ev]) { + SVG.off(node, [ev, namespace].join('.')); + } + + delete SVG.listeners[index][ev]; + } + } else { + // remove all listeners on a given node + for (event in SVG.listeners[index]) { + SVG.off(node, event); + } + + delete SVG.listeners[index]; + delete SVG.handlerMap[index]; + } + }; // + + + SVG.extend(SVG.Element, { + // Bind given event to listener + on: function on(event, listener, binding, options) { + SVG.on(this.node, event, listener, binding, options); + return this; + }, + // Unbind event from listener + off: function off(event, listener) { + SVG.off(this.node, event, listener); + return this; + }, + // Fire given event + fire: function fire(event, data) { + // Dispatch event + if (event instanceof window.Event) { + this.node.dispatchEvent(event); + } else { + this.node.dispatchEvent(event = new SVG.CustomEvent(event, { + detail: data, + cancelable: true + })); + } + + this._event = event; + return this; + }, + event: function event() { + return this._event; + } + }); + SVG.Defs = SVG.invent({ + // Initialize node + create: 'defs', + // Inherit from + inherit: SVG.Container + }); + SVG.G = SVG.invent({ + // Initialize node + create: 'g', + // Inherit from + inherit: SVG.Container, + // Add class methods + extend: { + // Move over x-axis + x: function x(_x3) { + return _x3 == null ? this.transform('x') : this.transform({ + x: _x3 - this.x() + }, true); + }, + // Move over y-axis + y: function y(_y3) { + return _y3 == null ? this.transform('y') : this.transform({ + y: _y3 - this.y() + }, true); + }, + // Move by center over x-axis + cx: function cx(x) { + return x == null ? this.gbox().cx : this.x(x - this.gbox().width / 2); + }, + // Move by center over y-axis + cy: function cy(y) { + return y == null ? this.gbox().cy : this.y(y - this.gbox().height / 2); + }, + gbox: function gbox() { + var bbox = this.bbox(), + trans = this.transform(); + bbox.x += trans.x; + bbox.x2 += trans.x; + bbox.cx += trans.x; + bbox.y += trans.y; + bbox.y2 += trans.y; + bbox.cy += trans.y; + return bbox; + } + }, + // Add parent method + construct: { + // Create a group element + group: function group() { + return this.put(new SVG.G()); + } + } + }); + SVG.Doc = SVG.invent({ + // Initialize node + create: function create(element) { + if (element) { + // ensure the presence of a dom element + element = typeof element === 'string' ? document.getElementById(element) : element; // If the target is an svg element, use that element as the main wrapper. + // This allows svg.js to work with svg documents as well. + + if (element.nodeName == 'svg') { + this.constructor.call(this, element); + } else { + this.constructor.call(this, SVG.create('svg')); + element.appendChild(this.node); + this.size('100%', '100%'); + } // set svg element attributes and ensure defs node + + + this.namespace().defs(); + } + }, + // Inherit from + inherit: SVG.Container, + // Add class methods + extend: { + // Add namespaces + namespace: function namespace() { + return this.attr({ + xmlns: SVG.ns, + version: '1.1' + }).attr('xmlns:xlink', SVG.xlink, SVG.xmlns).attr('xmlns:svgjs', SVG.svgjs, SVG.xmlns); + }, + // Creates and returns defs element + defs: function defs() { + if (!this._defs) { + var defs; // Find or create a defs element in this instance + + if (defs = this.node.getElementsByTagName('defs')[0]) { + this._defs = SVG.adopt(defs); + } else { + this._defs = new SVG.Defs(); + } // Make sure the defs node is at the end of the stack + + + this.node.appendChild(this._defs.node); + } + + return this._defs; + }, + // custom parent method + parent: function parent() { + if (!this.node.parentNode || this.node.parentNode.nodeName == '#document') return null; + return this.node.parentNode; + }, + // Fix for possible sub-pixel offset. See: + // https://bugzilla.mozilla.org/show_bug.cgi?id=608812 + spof: function spof() { + var pos = this.node.getScreenCTM(); + + if (pos) { + this.style('left', -pos.e % 1 + 'px').style('top', -pos.f % 1 + 'px'); + } + + return this; + }, + // Removes the doc from the DOM + remove: function remove() { + if (this.parent()) { + this.parent().removeChild(this.node); + } + + return this; + }, + clear: function clear() { + // remove children + while (this.node.hasChildNodes()) { + this.node.removeChild(this.node.lastChild); + } // remove defs reference + + + delete this._defs; // add back parser + + if (SVG.parser.draw && !SVG.parser.draw.parentNode) { + this.node.appendChild(SVG.parser.draw); + } + + return this; + }, + clone: function clone(parent) { + // write dom data to the dom so the clone can pickup the data + this.writeDataToDom(); // get reference to node + + var node = this.node; // clone element and assign new id + + var clone = assignNewId(node.cloneNode(true)); // insert the clone in the given parent or after myself + + if (parent) { + (parent.node || parent).appendChild(clone.node); + } else { + node.parentNode.insertBefore(clone.node, node.nextSibling); + } + + return clone; + } + } + }); // ### This module adds backward / forward functionality to elements. + // + + SVG.extend(SVG.Element, { + // Get all siblings, including myself + siblings: function siblings() { + return this.parent().children(); + }, + // Get the curent position siblings + position: function position() { + return this.parent().index(this); + }, + // Get the next element (will return null if there is none) + next: function next() { + return this.siblings()[this.position() + 1]; + }, + // Get the next element (will return null if there is none) + previous: function previous() { + return this.siblings()[this.position() - 1]; + }, + // Send given element one step forward + forward: function forward() { + var i = this.position() + 1, + p = this.parent(); // move node one step forward + + p.removeElement(this).add(this, i); // make sure defs node is always at the top + + if (p instanceof SVG.Doc) { + p.node.appendChild(p.defs().node); + } + + return this; + }, + // Send given element one step backward + backward: function backward() { + var i = this.position(); + + if (i > 0) { + this.parent().removeElement(this).add(this, i - 1); + } + + return this; + }, + // Send given element all the way to the front + front: function front() { + var p = this.parent(); // Move node forward + + p.node.appendChild(this.node); // Make sure defs node is always at the top + + if (p instanceof SVG.Doc) { + p.node.appendChild(p.defs().node); + } + + return this; + }, + // Send given element all the way to the back + back: function back() { + if (this.position() > 0) { + this.parent().removeElement(this).add(this, 0); + } + + return this; + }, + // Inserts a given element before the targeted element + before: function before(element) { + element.remove(); + var i = this.position(); + this.parent().add(element, i); + return this; + }, + // Insters a given element after the targeted element + after: function after(element) { + element.remove(); + var i = this.position(); + this.parent().add(element, i + 1); + return this; + } + }); + SVG.Mask = SVG.invent({ + // Initialize node + create: function create() { + this.constructor.call(this, SVG.create('mask')); // keep references to masked elements + + this.targets = []; + }, + // Inherit from + inherit: SVG.Container, + // Add class methods + extend: { + // Unmask all masked elements and remove itself + remove: function remove() { + // unmask all targets + for (var i = this.targets.length - 1; i >= 0; i--) { + if (this.targets[i]) { + this.targets[i].unmask(); + } + } + + this.targets = []; // remove mask from parent + + SVG.Element.prototype.remove.call(this); + return this; + } + }, + // Add parent method + construct: { + // Create masking element + mask: function mask() { + return this.defs().put(new SVG.Mask()); + } + } + }); + SVG.extend(SVG.Element, { + // Distribute mask to svg element + maskWith: function maskWith(element) { + // use given mask or create a new one + this.masker = element instanceof SVG.Mask ? element : this.parent().mask().add(element); // store reverence on self in mask + + this.masker.targets.push(this); // apply mask + + return this.attr('mask', 'url("#' + this.masker.attr('id') + '")'); + }, + // Unmask element + unmask: function unmask() { + delete this.masker; + return this.attr('mask', null); + } + }); + SVG.ClipPath = SVG.invent({ + // Initialize node + create: function create() { + this.constructor.call(this, SVG.create('clipPath')); // keep references to clipped elements + + this.targets = []; + }, + // Inherit from + inherit: SVG.Container, + // Add class methods + extend: { + // Unclip all clipped elements and remove itself + remove: function remove() { + // unclip all targets + for (var i = this.targets.length - 1; i >= 0; i--) { + if (this.targets[i]) { + this.targets[i].unclip(); + } + } + + this.targets = []; // remove clipPath from parent + + this.parent().removeElement(this); + return this; + } + }, + // Add parent method + construct: { + // Create clipping element + clip: function clip() { + return this.defs().put(new SVG.ClipPath()); + } + } + }); // + + SVG.extend(SVG.Element, { + // Distribute clipPath to svg element + clipWith: function clipWith(element) { + // use given clip or create a new one + this.clipper = element instanceof SVG.ClipPath ? element : this.parent().clip().add(element); // store reverence on self in mask + + this.clipper.targets.push(this); // apply mask + + return this.attr('clip-path', 'url("#' + this.clipper.attr('id') + '")'); + }, + // Unclip element + unclip: function unclip() { + delete this.clipper; + return this.attr('clip-path', null); + } + }); + SVG.Gradient = SVG.invent({ + // Initialize node + create: function create(type) { + this.constructor.call(this, SVG.create(type + 'Gradient')); // store type + + this.type = type; + }, + // Inherit from + inherit: SVG.Container, + // Add class methods + extend: { + // Add a color stop + at: function at(offset, color, opacity) { + return this.put(new SVG.Stop()).update(offset, color, opacity); + }, + // Update gradient + update: function update(block) { + // remove all stops + this.clear(); // invoke passed block + + if (typeof block === 'function') { + block.call(this, this); + } + + return this; + }, + // Return the fill id + fill: function fill() { + return 'url(#' + this.id() + ')'; + }, + // Alias string convertion to fill + toString: function toString() { + return this.fill(); + }, + // custom attr to handle transform + attr: function attr(a, b, c) { + if (a == 'transform') a = 'gradientTransform'; + return SVG.Container.prototype.attr.call(this, a, b, c); + } + }, + // Add parent method + construct: { + // Create gradient element in defs + gradient: function gradient(type, block) { + return this.defs().gradient(type, block); + } + } + }); // Add animatable methods to both gradient and fx module + + SVG.extend(SVG.Gradient, SVG.FX, { + // From position + from: function from(x, y) { + return (this._target || this).type == 'radial' ? this.attr({ + fx: new SVG.Number(x), + fy: new SVG.Number(y) + }) : this.attr({ + x1: new SVG.Number(x), + y1: new SVG.Number(y) + }); + }, + // To position + to: function to(x, y) { + return (this._target || this).type == 'radial' ? this.attr({ + cx: new SVG.Number(x), + cy: new SVG.Number(y) + }) : this.attr({ + x2: new SVG.Number(x), + y2: new SVG.Number(y) + }); + } + }); // Base gradient generation + + SVG.extend(SVG.Defs, { + // define gradient + gradient: function gradient(type, block) { + return this.put(new SVG.Gradient(type)).update(block); + } + }); + SVG.Stop = SVG.invent({ + // Initialize node + create: 'stop', + // Inherit from + inherit: SVG.Element, + // Add class methods + extend: { + // add color stops + update: function update(o) { + if (typeof o === 'number' || o instanceof SVG.Number) { + o = { + offset: arguments[0], + color: arguments[1], + opacity: arguments[2] + }; + } // set attributes + + + if (o.opacity != null) this.attr('stop-opacity', o.opacity); + if (o.color != null) this.attr('stop-color', o.color); + if (o.offset != null) this.attr('offset', new SVG.Number(o.offset)); + return this; + } + } + }); + SVG.Pattern = SVG.invent({ + // Initialize node + create: 'pattern', + // Inherit from + inherit: SVG.Container, + // Add class methods + extend: { + // Return the fill id + fill: function fill() { + return 'url(#' + this.id() + ')'; + }, + // Update pattern by rebuilding + update: function update(block) { + // remove content + this.clear(); // invoke passed block + + if (typeof block === 'function') { + block.call(this, this); + } + + return this; + }, + // Alias string convertion to fill + toString: function toString() { + return this.fill(); + }, + // custom attr to handle transform + attr: function attr(a, b, c) { + if (a == 'transform') a = 'patternTransform'; + return SVG.Container.prototype.attr.call(this, a, b, c); + } + }, + // Add parent method + construct: { + // Create pattern element in defs + pattern: function pattern(width, height, block) { + return this.defs().pattern(width, height, block); + } + } + }); + SVG.extend(SVG.Defs, { + // Define gradient + pattern: function pattern(width, height, block) { + return this.put(new SVG.Pattern()).update(block).attr({ + x: 0, + y: 0, + width: width, + height: height, + patternUnits: 'userSpaceOnUse' + }); + } + }); + SVG.Shape = SVG.invent({ + // Initialize node + create: function create(element) { + this.constructor.call(this, element); + }, + // Inherit from + inherit: SVG.Element + }); + SVG.Bare = SVG.invent({ + // Initialize + create: function create(element, inherit) { + // construct element + this.constructor.call(this, SVG.create(element)); // inherit custom methods + + if (inherit) { + for (var method in inherit.prototype) { + if (typeof inherit.prototype[method] === 'function') { + this[method] = inherit.prototype[method]; + } + } + } + }, + // Inherit from + inherit: SVG.Element, + // Add methods + extend: { + // Insert some plain text + words: function words(text) { + // remove contents + while (this.node.hasChildNodes()) { + this.node.removeChild(this.node.lastChild); + } // create text node + + + this.node.appendChild(document.createTextNode(text)); + return this; + } + } + }); + SVG.extend(SVG.Parent, { + // Create an element that is not described by SVG.js + element: function element(_element, inherit) { + return this.put(new SVG.Bare(_element, inherit)); + } + }); + SVG.Symbol = SVG.invent({ + // Initialize node + create: 'symbol', + // Inherit from + inherit: SVG.Container, + construct: { + // create symbol + symbol: function symbol() { + return this.put(new SVG.Symbol()); + } + } + }); + SVG.Use = SVG.invent({ + // Initialize node + create: 'use', + // Inherit from + inherit: SVG.Shape, + // Add class methods + extend: { + // Use element as a reference + element: function element(_element2, file) { + // Set lined element + return this.attr('href', (file || '') + '#' + _element2, SVG.xlink); + } + }, + // Add parent method + construct: { + // Create a use element + use: function use(element, file) { + return this.put(new SVG.Use()).element(element, file); + } + } + }); + SVG.Rect = SVG.invent({ + // Initialize node + create: 'rect', + // Inherit from + inherit: SVG.Shape, + // Add parent method + construct: { + // Create a rect element + rect: function rect(width, height) { + return this.put(new SVG.Rect()).size(width, height); + } + } + }); + SVG.Circle = SVG.invent({ + // Initialize node + create: 'circle', + // Inherit from + inherit: SVG.Shape, + // Add parent method + construct: { + // Create circle element, based on ellipse + circle: function circle(size) { + return this.put(new SVG.Circle()).rx(new SVG.Number(size).divide(2)).move(0, 0); + } + } + }); + SVG.extend(SVG.Circle, SVG.FX, { + // Radius x value + rx: function rx(_rx) { + return this.attr('r', _rx); + }, + // Alias radius x value + ry: function ry(_ry) { + return this.rx(_ry); + } + }); + SVG.Ellipse = SVG.invent({ + // Initialize node + create: 'ellipse', + // Inherit from + inherit: SVG.Shape, + // Add parent method + construct: { + // Create an ellipse + ellipse: function ellipse(width, height) { + return this.put(new SVG.Ellipse()).size(width, height).move(0, 0); + } + } + }); + SVG.extend(SVG.Ellipse, SVG.Rect, SVG.FX, { + // Radius x value + rx: function rx(_rx2) { + return this.attr('rx', _rx2); + }, + // Radius y value + ry: function ry(_ry2) { + return this.attr('ry', _ry2); + } + }); // Add common method + + SVG.extend(SVG.Circle, SVG.Ellipse, { + // Move over x-axis + x: function x(_x4) { + return _x4 == null ? this.cx() - this.rx() : this.cx(_x4 + this.rx()); + }, + // Move over y-axis + y: function y(_y4) { + return _y4 == null ? this.cy() - this.ry() : this.cy(_y4 + this.ry()); + }, + // Move by center over x-axis + cx: function cx(x) { + return x == null ? this.attr('cx') : this.attr('cx', x); + }, + // Move by center over y-axis + cy: function cy(y) { + return y == null ? this.attr('cy') : this.attr('cy', y); + }, + // Set width of element + width: function width(_width3) { + return _width3 == null ? this.rx() * 2 : this.rx(new SVG.Number(_width3).divide(2)); + }, + // Set height of element + height: function height(_height3) { + return _height3 == null ? this.ry() * 2 : this.ry(new SVG.Number(_height3).divide(2)); + }, + // Custom size function + size: function size(width, height) { + var p = proportionalSize(this, width, height); + return this.rx(new SVG.Number(p.width).divide(2)).ry(new SVG.Number(p.height).divide(2)); + } + }); + SVG.Line = SVG.invent({ + // Initialize node + create: 'line', + // Inherit from + inherit: SVG.Shape, + // Add class methods + extend: { + // Get array + array: function array() { + return new SVG.PointArray([[this.attr('x1'), this.attr('y1')], [this.attr('x2'), this.attr('y2')]]); + }, + // Overwrite native plot() method + plot: function plot(x1, y1, x2, y2) { + if (x1 == null) { + return this.array(); + } else if (typeof y1 !== 'undefined') { + x1 = { + x1: x1, + y1: y1, + x2: x2, + y2: y2 + }; + } else { + x1 = new SVG.PointArray(x1).toLine(); + } + + return this.attr(x1); + }, + // Move by left top corner + move: function move(x, y) { + return this.attr(this.array().move(x, y).toLine()); + }, + // Set element size to given width and height + size: function size(width, height) { + var p = proportionalSize(this, width, height); + return this.attr(this.array().size(p.width, p.height).toLine()); + } + }, + // Add parent method + construct: { + // Create a line element + line: function line(x1, y1, x2, y2) { + // make sure plot is called as a setter + // x1 is not necessarily a number, it can also be an array, a string and a SVG.PointArray + return SVG.Line.prototype.plot.apply(this.put(new SVG.Line()), x1 != null ? [x1, y1, x2, y2] : [0, 0, 0, 0]); + } + } + }); + SVG.Polyline = SVG.invent({ + // Initialize node + create: 'polyline', + // Inherit from + inherit: SVG.Shape, + // Add parent method + construct: { + // Create a wrapped polyline element + polyline: function polyline(p) { + // make sure plot is called as a setter + return this.put(new SVG.Polyline()).plot(p || new SVG.PointArray()); + } + } + }); + SVG.Polygon = SVG.invent({ + // Initialize node + create: 'polygon', + // Inherit from + inherit: SVG.Shape, + // Add parent method + construct: { + // Create a wrapped polygon element + polygon: function polygon(p) { + // make sure plot is called as a setter + return this.put(new SVG.Polygon()).plot(p || new SVG.PointArray()); + } + } + }); // Add polygon-specific functions + + SVG.extend(SVG.Polyline, SVG.Polygon, { + // Get array + array: function array() { + return this._array || (this._array = new SVG.PointArray(this.attr('points'))); + }, + // Plot new path + plot: function plot(p) { + return p == null ? this.array() : this.clear().attr('points', typeof p === 'string' ? p : this._array = new SVG.PointArray(p)); + }, + // Clear array cache + clear: function clear() { + delete this._array; + return this; + }, + // Move by left top corner + move: function move(x, y) { + return this.attr('points', this.array().move(x, y)); + }, + // Set element size to given width and height + size: function size(width, height) { + var p = proportionalSize(this, width, height); + return this.attr('points', this.array().size(p.width, p.height)); + } + }); // unify all point to point elements + + SVG.extend(SVG.Line, SVG.Polyline, SVG.Polygon, { + // Define morphable array + morphArray: SVG.PointArray, + // Move by left top corner over x-axis + x: function x(_x5) { + return _x5 == null ? this.bbox().x : this.move(_x5, this.bbox().y); + }, + // Move by left top corner over y-axis + y: function y(_y5) { + return _y5 == null ? this.bbox().y : this.move(this.bbox().x, _y5); + }, + // Set width of element + width: function width(_width4) { + var b = this.bbox(); + return _width4 == null ? b.width : this.size(_width4, b.height); + }, + // Set height of element + height: function height(_height4) { + var b = this.bbox(); + return _height4 == null ? b.height : this.size(b.width, _height4); + } + }); + SVG.Path = SVG.invent({ + // Initialize node + create: 'path', + // Inherit from + inherit: SVG.Shape, + // Add class methods + extend: { + // Define morphable array + morphArray: SVG.PathArray, + // Get array + array: function array() { + return this._array || (this._array = new SVG.PathArray(this.attr('d'))); + }, + // Plot new path + plot: function plot(d) { + return d == null ? this.array() : this.clear().attr('d', typeof d === 'string' ? d : this._array = new SVG.PathArray(d)); + }, + // Clear array cache + clear: function clear() { + delete this._array; + return this; + }, + // Move by left top corner + move: function move(x, y) { + return this.attr('d', this.array().move(x, y)); + }, + // Move by left top corner over x-axis + x: function x(_x6) { + return _x6 == null ? this.bbox().x : this.move(_x6, this.bbox().y); + }, + // Move by left top corner over y-axis + y: function y(_y6) { + return _y6 == null ? this.bbox().y : this.move(this.bbox().x, _y6); + }, + // Set element size to given width and height + size: function size(width, height) { + var p = proportionalSize(this, width, height); + return this.attr('d', this.array().size(p.width, p.height)); + }, + // Set width of element + width: function width(_width5) { + return _width5 == null ? this.bbox().width : this.size(_width5, this.bbox().height); + }, + // Set height of element + height: function height(_height5) { + return _height5 == null ? this.bbox().height : this.size(this.bbox().width, _height5); + } + }, + // Add parent method + construct: { + // Create a wrapped path element + path: function path(d) { + // make sure plot is called as a setter + return this.put(new SVG.Path()).plot(d || new SVG.PathArray()); + } + } + }); + SVG.Image = SVG.invent({ + // Initialize node + create: 'image', + // Inherit from + inherit: SVG.Shape, + // Add class methods + extend: { + // (re)load image + load: function load(url) { + if (!url) return this; + var self = this, + img = new window.Image(); // preload image + + SVG.on(img, 'load', function () { + SVG.off(img); + var p = self.parent(SVG.Pattern); + if (p === null) return; // ensure image size + + if (self.width() == 0 && self.height() == 0) { + self.size(img.width, img.height); + } // ensure pattern size if not set + + + if (p && p.width() == 0 && p.height() == 0) { + p.size(self.width(), self.height()); + } // callback + + + if (typeof self._loaded === 'function') { + self._loaded.call(self, { + width: img.width, + height: img.height, + ratio: img.width / img.height, + url: url + }); + } + }); + SVG.on(img, 'error', function (e) { + SVG.off(img); + + if (typeof self._error === 'function') { + self._error.call(self, e); + } + }); + return this.attr('href', img.src = this.src = url, SVG.xlink); + }, + // Add loaded callback + loaded: function loaded(_loaded) { + this._loaded = _loaded; + return this; + }, + error: function error(_error) { + this._error = _error; + return this; + } + }, + // Add parent method + construct: { + // create image element, load image and set its size + image: function image(source, width, height) { + return this.put(new SVG.Image()).load(source).size(width || 0, height || width || 0); + } + } + }); + SVG.Text = SVG.invent({ + // Initialize node + create: function create() { + this.constructor.call(this, SVG.create('text')); + this.dom.leading = new SVG.Number(1.3); // store leading value for rebuilding + + this._rebuild = true; // enable automatic updating of dy values + + this._build = false; // disable build mode for adding multiple lines + // set default font + + this.attr('font-family', SVG.defaults.attrs['font-family']); + }, + // Inherit from + inherit: SVG.Shape, + // Add class methods + extend: { + // Move over x-axis + x: function x(_x7) { + // act as getter + if (_x7 == null) { + return this.attr('x'); + } + + return this.attr('x', _x7); + }, + // Move over y-axis + y: function y(_y7) { + var oy = this.attr('y'), + o = typeof oy === 'number' ? oy - this.bbox().y : 0; // act as getter + + if (_y7 == null) { + return typeof oy === 'number' ? oy - o : oy; + } + + return this.attr('y', typeof _y7.valueOf() === 'number' ? _y7 + o : _y7); + }, + // Move center over x-axis + cx: function cx(x) { + return x == null ? this.bbox().cx : this.x(x - this.bbox().width / 2); + }, + // Move center over y-axis + cy: function cy(y) { + return y == null ? this.bbox().cy : this.y(y - this.bbox().height / 2); + }, + // Set the text content + text: function text(_text) { + // act as getter + if (typeof _text === 'undefined') { + var _text = ''; + var children = this.node.childNodes; + + for (var i = 0, len = children.length; i < len; ++i) { + // add newline if its not the first child and newLined is set to true + if (i != 0 && children[i].nodeType != 3 && SVG.adopt(children[i]).dom.newLined == true) { + _text += '\n'; + } // add content of this node + + + _text += children[i].textContent; + } + + return _text; + } // remove existing content + + + this.clear().build(true); + + if (typeof _text === 'function') { + // call block + _text.call(this, this); + } else { + // store text and make sure text is not blank + _text = _text.split('\n'); // build new lines + + for (var i = 0, il = _text.length; i < il; i++) { + this.tspan(_text[i]).newLine(); + } + } // disable build mode and rebuild lines + + + return this.build(false).rebuild(); + }, + // Set font size + size: function size(_size) { + return this.attr('font-size', _size).rebuild(); + }, + // Set / get leading + leading: function leading(value) { + // act as getter + if (value == null) { + return this.dom.leading; + } // act as setter + + + this.dom.leading = new SVG.Number(value); + return this.rebuild(); + }, + // Get all the first level lines + lines: function lines() { + var node = (this.textPath && this.textPath() || this).node; // filter tspans and map them to SVG.js instances + + var lines = SVG.utils.map(SVG.utils.filterSVGElements(node.childNodes), function (el) { + return SVG.adopt(el); + }); // return an instance of SVG.set + + return new SVG.Set(lines); + }, + // Rebuild appearance type + rebuild: function rebuild(_rebuild) { + // store new rebuild flag if given + if (typeof _rebuild === 'boolean') { + this._rebuild = _rebuild; + } // define position of all lines + + + if (this._rebuild) { + var self = this, + blankLineOffset = 0, + dy = this.dom.leading * new SVG.Number(this.attr('font-size')); + this.lines().each(function () { + if (this.dom.newLined) { + if (!self.textPath()) { + this.attr('x', self.attr('x')); + } + + if (this.text() == '\n') { + blankLineOffset += dy; + } else { + this.attr('dy', dy + blankLineOffset); + blankLineOffset = 0; + } + } + }); + this.fire('rebuild'); + } + + return this; + }, + // Enable / disable build mode + build: function build(_build) { + this._build = !!_build; + return this; + }, + // overwrite method from parent to set data properly + setData: function setData(o) { + this.dom = o; + this.dom.leading = new SVG.Number(o.leading || 1.3); + return this; + } + }, + // Add parent method + construct: { + // Create text element + text: function text(_text2) { + return this.put(new SVG.Text()).text(_text2); + }, + // Create plain text element + plain: function plain(text) { + return this.put(new SVG.Text()).plain(text); + } + } + }); + SVG.Tspan = SVG.invent({ + // Initialize node + create: 'tspan', + // Inherit from + inherit: SVG.Shape, + // Add class methods + extend: { + // Set text content + text: function text(_text3) { + if (_text3 == null) return this.node.textContent + (this.dom.newLined ? '\n' : ''); + typeof _text3 === 'function' ? _text3.call(this, this) : this.plain(_text3); + return this; + }, + // Shortcut dx + dx: function dx(_dx) { + return this.attr('dx', _dx); + }, + // Shortcut dy + dy: function dy(_dy) { + return this.attr('dy', _dy); + }, + // Create new line + newLine: function newLine() { + // fetch text parent + var t = this.parent(SVG.Text); // mark new line + + this.dom.newLined = true; // apply new hy¡n + + return this.dy(t.dom.leading * t.attr('font-size')).attr('x', t.x()); + } + } + }); + SVG.extend(SVG.Text, SVG.Tspan, { + // Create plain text node + plain: function plain(text) { + // clear if build mode is disabled + if (this._build === false) { + this.clear(); + } // create text node + + + this.node.appendChild(document.createTextNode(text)); + return this; + }, + // Create a tspan + tspan: function tspan(text) { + var node = (this.textPath && this.textPath() || this).node, + tspan = new SVG.Tspan(); // clear if build mode is disabled + + if (this._build === false) { + this.clear(); + } // add new tspan + + + node.appendChild(tspan.node); + return tspan.text(text); + }, + // Clear all lines + clear: function clear() { + var node = (this.textPath && this.textPath() || this).node; // remove existing child nodes + + while (node.hasChildNodes()) { + node.removeChild(node.lastChild); + } + + return this; + }, + // Get length of text element + length: function length() { + return this.node.getComputedTextLength(); + } + }); + SVG.TextPath = SVG.invent({ + // Initialize node + create: 'textPath', + // Inherit from + inherit: SVG.Parent, + // Define parent class + parent: SVG.Text, + // Add parent method + construct: { + morphArray: SVG.PathArray, + // Create path for text to run on + path: function path(d) { + // create textPath element + var path = new SVG.TextPath(), + track = this.doc().defs().path(d); // move lines to textpath + + while (this.node.hasChildNodes()) { + path.node.appendChild(this.node.firstChild); + } // add textPath element as child node + + + this.node.appendChild(path.node); // link textPath to path and add content + + path.attr('href', '#' + track, SVG.xlink); + return this; + }, + // return the array of the path track element + array: function array() { + var track = this.track(); + return track ? track.array() : null; + }, + // Plot path if any + plot: function plot(d) { + var track = this.track(), + pathArray = null; + + if (track) { + pathArray = track.plot(d); + } + + return d == null ? pathArray : this; + }, + // Get the path track element + track: function track() { + var path = this.textPath(); + + if (path) { + return path.reference('href'); + } + }, + // Get the textPath child + textPath: function textPath() { + if (this.node.firstChild && this.node.firstChild.nodeName == 'textPath') { + return SVG.adopt(this.node.firstChild); + } + } + } + }); + SVG.Nested = SVG.invent({ + // Initialize node + create: function create() { + this.constructor.call(this, SVG.create('svg')); + this.style('overflow', 'visible'); + }, + // Inherit from + inherit: SVG.Container, + // Add parent method + construct: { + // Create nested svg document + nested: function nested() { + return this.put(new SVG.Nested()); + } + } + }); + SVG.A = SVG.invent({ + // Initialize node + create: 'a', + // Inherit from + inherit: SVG.Container, + // Add class methods + extend: { + // Link url + to: function to(url) { + return this.attr('href', url, SVG.xlink); + }, + // Link show attribute + show: function show(target) { + return this.attr('show', target, SVG.xlink); + }, + // Link target attribute + target: function target(_target2) { + return this.attr('target', _target2); + } + }, + // Add parent method + construct: { + // Create a hyperlink element + link: function link(url) { + return this.put(new SVG.A()).to(url); + } + } + }); + SVG.extend(SVG.Element, { + // Create a hyperlink element + linkTo: function linkTo(url) { + var link = new SVG.A(); + + if (typeof url === 'function') { + url.call(link, link); + } else { + link.to(url); + } + + return this.parent().put(link).put(this); + } + }); + SVG.Marker = SVG.invent({ + // Initialize node + create: 'marker', + // Inherit from + inherit: SVG.Container, + // Add class methods + extend: { + // Set width of element + width: function width(_width6) { + return this.attr('markerWidth', _width6); + }, + // Set height of element + height: function height(_height6) { + return this.attr('markerHeight', _height6); + }, + // Set marker refX and refY + ref: function ref(x, y) { + return this.attr('refX', x).attr('refY', y); + }, + // Update marker + update: function update(block) { + // remove all content + this.clear(); // invoke passed block + + if (typeof block === 'function') { + block.call(this, this); + } + + return this; + }, + // Return the fill id + toString: function toString() { + return 'url(#' + this.id() + ')'; + } + }, + // Add parent method + construct: { + marker: function marker(width, height, block) { + // Create marker element in defs + return this.defs().marker(width, height, block); + } + } + }); + SVG.extend(SVG.Defs, { + // Create marker + marker: function marker(width, height, block) { + // Set default viewbox to match the width and height, set ref to cx and cy and set orient to auto + return this.put(new SVG.Marker()).size(width, height).ref(width / 2, height / 2).viewbox(0, 0, width, height).attr('orient', 'auto').update(block); + } + }); + SVG.extend(SVG.Line, SVG.Polyline, SVG.Polygon, SVG.Path, { + // Create and attach markers + marker: function marker(_marker, width, height, block) { + var attr = ['marker']; // Build attribute name + + if (_marker != 'all') attr.push(_marker); + attr = attr.join('-'); // Set marker attribute + + _marker = arguments[1] instanceof SVG.Marker ? arguments[1] : this.doc().marker(width, height, block); + return this.attr(attr, _marker); + } + }); // Define list of available attributes for stroke and fill + + var sugar = { + stroke: ['color', 'width', 'opacity', 'linecap', 'linejoin', 'miterlimit', 'dasharray', 'dashoffset'], + fill: ['color', 'opacity', 'rule'], + prefix: function prefix(t, a) { + return a == 'color' ? t : t + '-' + a; + } // Add sugar for fill and stroke + + }; + ['fill', 'stroke'].forEach(function (m) { + var i, + extension = {}; + + extension[m] = function (o) { + if (typeof o === 'undefined') { + return this; + } + + if (typeof o === 'string' || SVG.Color.isRgb(o) || o && typeof o.fill === 'function') { + this.attr(m, o); + } else // set all attributes from sugar.fill and sugar.stroke list + { + for (i = sugar[m].length - 1; i >= 0; i--) { + if (o[sugar[m][i]] != null) { + this.attr(sugar.prefix(m, sugar[m][i]), o[sugar[m][i]]); + } + } + } + + return this; + }; + + SVG.extend(SVG.Element, SVG.FX, extension); + }); + SVG.extend(SVG.Element, SVG.FX, { + // Map rotation to transform + rotate: function rotate(d, cx, cy) { + return this.transform({ + rotation: d, + cx: cx, + cy: cy + }); + }, + // Map skew to transform + skew: function skew(x, y, cx, cy) { + return arguments.length == 1 || arguments.length == 3 ? this.transform({ + skew: x, + cx: y, + cy: cx + }) : this.transform({ + skewX: x, + skewY: y, + cx: cx, + cy: cy + }); + }, + // Map scale to transform + scale: function scale(x, y, cx, cy) { + return arguments.length == 1 || arguments.length == 3 ? this.transform({ + scale: x, + cx: y, + cy: cx + }) : this.transform({ + scaleX: x, + scaleY: y, + cx: cx, + cy: cy + }); + }, + // Map translate to transform + translate: function translate(x, y) { + return this.transform({ + x: x, + y: y + }); + }, + // Map flip to transform + flip: function flip(a, o) { + o = typeof a === 'number' ? a : o; + return this.transform({ + flip: a || 'both', + offset: o + }); + }, + // Map matrix to transform + matrix: function matrix(m) { + return this.attr('transform', new SVG.Matrix(arguments.length == 6 ? [].slice.call(arguments) : m)); + }, + // Opacity + opacity: function opacity(value) { + return this.attr('opacity', value); + }, + // Relative move over x axis + dx: function dx(x) { + return this.x(new SVG.Number(x).plus(this instanceof SVG.FX ? 0 : this.x()), true); + }, + // Relative move over y axis + dy: function dy(y) { + return this.y(new SVG.Number(y).plus(this instanceof SVG.FX ? 0 : this.y()), true); + }, + // Relative move over x and y axes + dmove: function dmove(x, y) { + return this.dx(x).dy(y); + } + }); + SVG.extend(SVG.Rect, SVG.Ellipse, SVG.Circle, SVG.Gradient, SVG.FX, { + // Add x and y radius + radius: function radius(x, y) { + var type = (this._target || this).type; + return type == 'radial' || type == 'circle' ? this.attr('r', new SVG.Number(x)) : this.rx(x).ry(y == null ? x : y); + } + }); + SVG.extend(SVG.Path, { + // Get path length + length: function length() { + return this.node.getTotalLength(); + }, + // Get point at length + pointAt: function pointAt(length) { + return this.node.getPointAtLength(length); + } + }); + SVG.extend(SVG.Parent, SVG.Text, SVG.Tspan, SVG.FX, { + // Set font + font: function font(a, v) { + if (_typeof(a) === 'object') { + for (v in a) { + this.font(v, a[v]); + } + } + + return a == 'leading' ? this.leading(v) : a == 'anchor' ? this.attr('text-anchor', v) : a == 'size' || a == 'family' || a == 'weight' || a == 'stretch' || a == 'variant' || a == 'style' ? this.attr('font-' + a, v) : this.attr(a, v); + } + }); + SVG.Set = SVG.invent({ + // Initialize + create: function create(members) { + // Set initial state + Array.isArray(members) ? this.members = members : this.clear(); + }, + // Add class methods + extend: { + // Add element to set + add: function add() { + var i, + il, + elements = [].slice.call(arguments); + + for (i = 0, il = elements.length; i < il; i++) { + this.members.push(elements[i]); + } + + return this; + }, + // Remove element from set + remove: function remove(element) { + var i = this.index(element); // remove given child + + if (i > -1) { + this.members.splice(i, 1); + } + + return this; + }, + // Iterate over all members + each: function each(block) { + for (var i = 0, il = this.members.length; i < il; i++) { + block.apply(this.members[i], [i, this.members]); + } + + return this; + }, + // Restore to defaults + clear: function clear() { + // initialize store + this.members = []; + return this; + }, + // Get the length of a set + length: function length() { + return this.members.length; + }, + // Checks if a given element is present in set + has: function has(element) { + return this.index(element) >= 0; + }, + // retuns index of given element in set + index: function index(element) { + return this.members.indexOf(element); + }, + // Get member at given index + get: function get(i) { + return this.members[i]; + }, + // Get first member + first: function first() { + return this.get(0); + }, + // Get last member + last: function last() { + return this.get(this.members.length - 1); + }, + // Default value + valueOf: function valueOf() { + return this.members; + }, + // Get the bounding box of all members included or empty box if set has no items + bbox: function bbox() { + // return an empty box of there are no members + if (this.members.length == 0) { + return new SVG.RBox(); + } // get the first rbox and update the target bbox + + + var rbox = this.members[0].rbox(this.members[0].doc()); + this.each(function () { + // user rbox for correct position and visual representation + rbox = rbox.merge(this.rbox(this.doc())); + }); + return rbox; + } + }, + // Add parent method + construct: { + // Create a new set + set: function set(members) { + return new SVG.Set(members); + } + } + }); + SVG.FX.Set = SVG.invent({ + // Initialize node + create: function create(set) { + // store reference to set + this.set = set; + } + }); // Alias methods + + SVG.Set.inherit = function () { + var m, + methods = []; // gather shape methods + + for (var m in SVG.Shape.prototype) { + if (typeof SVG.Shape.prototype[m] === 'function' && typeof SVG.Set.prototype[m] !== 'function') { + methods.push(m); + } + } // apply shape aliasses + + + methods.forEach(function (method) { + SVG.Set.prototype[method] = function () { + for (var i = 0, il = this.members.length; i < il; i++) { + if (this.members[i] && typeof this.members[i][method] === 'function') { + this.members[i][method].apply(this.members[i], arguments); + } + } + + return method == 'animate' ? this.fx || (this.fx = new SVG.FX.Set(this)) : this; + }; + }); // clear methods for the next round + + methods = []; // gather fx methods + + for (var m in SVG.FX.prototype) { + if (typeof SVG.FX.prototype[m] === 'function' && typeof SVG.FX.Set.prototype[m] !== 'function') { + methods.push(m); + } + } // apply fx aliasses + + + methods.forEach(function (method) { + SVG.FX.Set.prototype[method] = function () { + for (var i = 0, il = this.set.members.length; i < il; i++) { + this.set.members[i].fx[method].apply(this.set.members[i].fx, arguments); + } + + return this; + }; + }); + }; + + SVG.extend(SVG.Element, { + // Store data values on svg nodes + data: function data(a, v, r) { + if (_typeof(a) === 'object') { + for (v in a) { + this.data(v, a[v]); + } + } else if (arguments.length < 2) { + try { + return JSON.parse(this.attr('data-' + a)); + } catch (e) { + return this.attr('data-' + a); + } + } else { + this.attr('data-' + a, v === null ? null : r === true || typeof v === 'string' || typeof v === 'number' ? v : JSON.stringify(v)); + } + + return this; + } + }); + SVG.extend(SVG.Element, { + // Remember arbitrary data + remember: function remember(k, v) { + // remember every item in an object individually + if (_typeof(arguments[0]) === 'object') { + for (var v in k) { + this.remember(v, k[v]); + } + } // retrieve memory + else if (arguments.length == 1) { + return this.memory()[k]; + } // store memory + else { + this.memory()[k] = v; + } + + return this; + }, + // Erase a given memory + forget: function forget() { + if (arguments.length == 0) { + this._memory = {}; + } else { + for (var i = arguments.length - 1; i >= 0; i--) { + delete this.memory()[arguments[i]]; + } + } + + return this; + }, + // Initialize or return local memory object + memory: function memory() { + return this._memory || (this._memory = {}); + } + }); // Method for getting an element by id + + SVG.get = function (id) { + var node = document.getElementById(idFromReference(id) || id); + return SVG.adopt(node); + }; // Select elements by query string + + + SVG.select = function (query, parent) { + return new SVG.Set(SVG.utils.map((parent || document).querySelectorAll(query), function (node) { + return SVG.adopt(node); + })); + }; + + SVG.extend(SVG.Parent, { + // Scoped select method + select: function select(query) { + return SVG.select(query, this.node); + } + }); + + function pathRegReplace(a, b, c, d) { + return c + d.replace(SVG.regex.dots, ' .'); + } // creates deep clone of array + + + function array_clone(arr) { + var clone = arr.slice(0); + + for (var i = clone.length; i--;) { + if (Array.isArray(clone[i])) { + clone[i] = array_clone(clone[i]); + } + } + + return clone; + } // tests if a given element is instance of an object + + + function _is(el, obj) { + return el instanceof obj; + } // tests if a given selector matches an element + + + function _matches(el, selector) { + return (el.matches || el.matchesSelector || el.msMatchesSelector || el.mozMatchesSelector || el.webkitMatchesSelector || el.oMatchesSelector).call(el, selector); + } // Convert dash-separated-string to camelCase + + + function camelCase(s) { + return s.toLowerCase().replace(/-(.)/g, function (m, g) { + return g.toUpperCase(); + }); + } // Capitalize first letter of a string + + + function capitalize(s) { + return s.charAt(0).toUpperCase() + s.slice(1); + } // Ensure to six-based hex + + + function fullHex(hex) { + return hex.length == 4 ? ['#', hex.substring(1, 2), hex.substring(1, 2), hex.substring(2, 3), hex.substring(2, 3), hex.substring(3, 4), hex.substring(3, 4)].join('') : hex; + } // Component to hex value + + + function compToHex(comp) { + var hex = comp.toString(16); + return hex.length == 1 ? '0' + hex : hex; + } // Calculate proportional width and height values when necessary + + + function proportionalSize(element, width, height) { + if (width == null || height == null) { + var box = element.bbox(); + + if (width == null) { + width = box.width / box.height * height; + } else if (height == null) { + height = box.height / box.width * width; + } + } + + return { + width: width, + height: height + }; + } // Delta transform point + + + function deltaTransformPoint(matrix, x, y) { + return { + x: x * matrix.a + y * matrix.c + 0, + y: x * matrix.b + y * matrix.d + 0 + }; + } // Map matrix array to object + + + function arrayToMatrix(a) { + return { + a: a[0], + b: a[1], + c: a[2], + d: a[3], + e: a[4], + f: a[5] + }; + } // Parse matrix if required + + + function parseMatrix(matrix) { + if (!(matrix instanceof SVG.Matrix)) { + matrix = new SVG.Matrix(matrix); + } + + return matrix; + } // Add centre point to transform object + + + function ensureCentre(o, target) { + o.cx = o.cx == null ? target.bbox().cx : o.cx; + o.cy = o.cy == null ? target.bbox().cy : o.cy; + } // PathArray Helpers + + + function arrayToString(a) { + for (var i = 0, il = a.length, s = ''; i < il; i++) { + s += a[i][0]; + + if (a[i][1] != null) { + s += a[i][1]; + + if (a[i][2] != null) { + s += ' '; + s += a[i][2]; + + if (a[i][3] != null) { + s += ' '; + s += a[i][3]; + s += ' '; + s += a[i][4]; + + if (a[i][5] != null) { + s += ' '; + s += a[i][5]; + s += ' '; + s += a[i][6]; + + if (a[i][7] != null) { + s += ' '; + s += a[i][7]; + } + } + } + } + } + } + + return s + ' '; + } // Deep new id assignment + + + function assignNewId(node) { + // do the same for SVG child nodes as well + for (var i = node.childNodes.length - 1; i >= 0; i--) { + if (node.childNodes[i] instanceof window.SVGElement) { + assignNewId(node.childNodes[i]); + } + } + + return SVG.adopt(node).id(SVG.eid(node.nodeName)); + } // Add more bounding box properties + + + function fullBox(b) { + if (b.x == null) { + b.x = 0; + b.y = 0; + b.width = 0; + b.height = 0; + } + + b.w = b.width; + b.h = b.height; + b.x2 = b.x + b.width; + b.y2 = b.y + b.height; + b.cx = b.x + b.width / 2; + b.cy = b.y + b.height / 2; + return b; + } // Get id from reference string + + + function idFromReference(url) { + var m = (url || '').toString().match(SVG.regex.reference); + if (m) return m[1]; + } // If values like 1e-88 are passed, this is not a valid 32 bit float, + // but in those cases, we are so close to 0 that 0 works well! + + + function float32String(v) { + return Math.abs(v) > 1e-37 ? v : 0; + } // Create matrix array for looping + + + var abcdef = 'abcdef'.split(''); // Add CustomEvent to IE9 and IE10 + + if (typeof window.CustomEvent !== 'function') { + // Code from: https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent + var CustomEventPoly = function CustomEventPoly(event, options) { + options = options || { + bubbles: false, + cancelable: false, + detail: undefined + }; + var e = document.createEvent('CustomEvent'); + e.initCustomEvent(event, options.bubbles, options.cancelable, options.detail); + return e; + }; + + CustomEventPoly.prototype = window.Event.prototype; + SVG.CustomEvent = CustomEventPoly; + } else { + SVG.CustomEvent = window.CustomEvent; + } // requestAnimationFrame / cancelAnimationFrame Polyfill with fallback based on Paul Irish + + + (function (w) { + var lastTime = 0; + var vendors = ['moz', 'webkit']; + + for (var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { + w.requestAnimationFrame = w[vendors[x] + 'RequestAnimationFrame']; + w.cancelAnimationFrame = w[vendors[x] + 'CancelAnimationFrame'] || w[vendors[x] + 'CancelRequestAnimationFrame']; + } + + w.requestAnimationFrame = w.requestAnimationFrame || function (callback) { + var currTime = new Date().getTime(); + var timeToCall = Math.max(0, 16 - (currTime - lastTime)); + var id = w.setTimeout(function () { + callback(currTime + timeToCall); + }, timeToCall); + lastTime = currTime + timeToCall; + return id; + }; + + w.cancelAnimationFrame = w.cancelAnimationFrame || w.clearTimeout; + })(window); + + return SVG; + }); + + /*! svg.filter.js - v2.0.2 - 2016-02-24 + * https://github.com/wout/svg.filter.js + * Copyright (c) 2016 Wout Fierens; Licensed MIT */ + (function() { + + // Main filter class + SVG.Filter = SVG.invent({ + create: 'filter', + inherit: SVG.Parent, + extend: { + // Static strings + source: 'SourceGraphic', + sourceAlpha: 'SourceAlpha', + background: 'BackgroundImage', + backgroundAlpha: 'BackgroundAlpha', + fill: 'FillPaint', + stroke: 'StrokePaint', + + autoSetIn: true, + // Custom put method for leaner code + put: function(element, i) { + this.add(element, i); + + if(!element.attr('in') && this.autoSetIn){ + element.attr('in',this.source); + } + if(!element.attr('result')){ + element.attr('result',element); + } + + return element + }, + // Blend effect + blend: function(in1, in2, mode) { + return this.put(new SVG.BlendEffect(in1, in2, mode)) + }, + // ColorMatrix effect + colorMatrix: function(type, values) { + return this.put(new SVG.ColorMatrixEffect(type, values)) + }, + // ConvolveMatrix effect + convolveMatrix: function(matrix) { + return this.put(new SVG.ConvolveMatrixEffect(matrix)) + }, + // ComponentTransfer effect + componentTransfer: function(components) { + return this.put(new SVG.ComponentTransferEffect(components)) + }, + // Composite effect + composite: function(in1, in2, operator) { + return this.put(new SVG.CompositeEffect(in1, in2, operator)) + }, + // Flood effect + flood: function(color, opacity) { + return this.put(new SVG.FloodEffect(color, opacity)) + }, + // Offset effect + offset: function(x, y) { + return this.put(new SVG.OffsetEffect(x,y)) + }, + // Image effect + image: function(src) { + return this.put(new SVG.ImageEffect(src)) + }, + // Merge effect + merge: function() { + //pass the array of arguments to the constructor because we dont know if the user gave us an array as the first arguemnt or wether they listed the effects in the arguments + var args = [undefined]; + for(var i in arguments) args.push(arguments[i]); + return this.put(new (SVG.MergeEffect.bind.apply(SVG.MergeEffect,args))) + }, + // Gaussian Blur effect + gaussianBlur: function(x,y) { + return this.put(new SVG.GaussianBlurEffect(x,y)) + }, + // Morphology effect + morphology: function(operator,radius){ + return this.put(new SVG.MorphologyEffect(operator,radius)) + }, + // DiffuseLighting effect + diffuseLighting: function(surfaceScale,diffuseConstant,kernelUnitLength){ + return this.put(new SVG.DiffuseLightingEffect(surfaceScale,diffuseConstant,kernelUnitLength)) + }, + // DisplacementMap effect + displacementMap: function(in1,in2,scale,xChannelSelector,yChannelSelector){ + return this.put(new SVG.DisplacementMapEffect(in1,in2,scale,xChannelSelector,yChannelSelector)) + }, + // SpecularLighting effect + specularLighting: function(surfaceScale,diffuseConstant,specularExponent,kernelUnitLength){ + return this.put(new SVG.SpecularLightingEffect(surfaceScale,diffuseConstant,specularExponent,kernelUnitLength)) + }, + // Tile effect + tile: function(){ + return this.put(new SVG.TileEffect()); + }, + // Turbulence effect + turbulence: function(baseFrequency,numOctaves,seed,stitchTiles,type){ + return this.put(new SVG.TurbulenceEffect(baseFrequency,numOctaves,seed,stitchTiles,type)) + }, + // Default string value + toString: function() { + return 'url(#' + this.attr('id') + ')' + } + } + }); + + //add .filter function + SVG.extend(SVG.Defs, { + // Define filter + filter: function(block) { + var filter = this.put(new SVG.Filter); + + /* invoke passed block */ + if (typeof block === 'function') + block.call(filter, filter); + + return filter + } + }); + SVG.extend(SVG.Container, { + // Define filter on defs + filter: function(block) { + return this.defs().filter(block) + } + }); + SVG.extend(SVG.Element, SVG.G, SVG.Nested, { + // Create filter element in defs and store reference + filter: function(block) { + this.filterer = block instanceof SVG.Element ? + block : this.doc().filter(block); + + if(this.doc() && this.filterer.doc() !== this.doc()){ + this.doc().defs().add(this.filterer); + } + + this.attr('filter', this.filterer); + + return this.filterer + }, + // Remove filter + unfilter: function(remove) { + /* also remove the filter node */ + if (this.filterer && remove === true) + this.filterer.remove(); + + /* delete reference to filterer */ + delete this.filterer; + + /* remove filter attribute */ + return this.attr('filter', null) + } + }); + + // Create SVG.Effect class + SVG.Effect = SVG.invent({ + create: function(){ + this.constructor.call(this); + }, + inherit: SVG.Element, + extend: { + // Set in attribute + in: function(effect) { + return effect == null? this.parent() && this.parent().select('[result="'+this.attr('in')+'"]').get(0) || this.attr('in') : this.attr('in', effect) + }, + // Named result + result: function(result) { + return result == null? this.attr('result') : this.attr('result',result) + }, + // Stringification + toString: function() { + return this.result() + } + } + }); + + // create class for parent effects like merge + // Inherit from SVG.Parent + SVG.ParentEffect = SVG.invent({ + create: function(){ + this.constructor.call(this); + }, + inherit: SVG.Parent, + extend: { + // Set in attribute + in: function(effect) { + return effect == null? this.parent() && this.parent().select('[result="'+this.attr('in')+'"]').get(0) || this.attr('in') : this.attr('in', effect) + }, + // Named result + result: function(result) { + return result == null? this.attr('result') : this.attr('result',result) + }, + // Stringification + toString: function() { + return this.result() + } + } + }); + + //chaining + var chainingEffects = { + // Blend effect + blend: function(in2, mode) { + return this.parent() && this.parent().blend(this, in2, mode) //pass this as the first input + }, + // ColorMatrix effect + colorMatrix: function(type, values) { + return this.parent() && this.parent().colorMatrix(type, values).in(this) + }, + // ConvolveMatrix effect + convolveMatrix: function(matrix) { + return this.parent() && this.parent().convolveMatrix(matrix).in(this) + }, + // ComponentTransfer effect + componentTransfer: function(components) { + return this.parent() && this.parent().componentTransfer(components).in(this) + }, + // Composite effect + composite: function(in2, operator) { + return this.parent() && this.parent().composite(this, in2, operator) //pass this as the first input + }, + // Flood effect + flood: function(color, opacity) { + return this.parent() && this.parent().flood(color, opacity) //this effect dont have inputs + }, + // Offset effect + offset: function(x, y) { + return this.parent() && this.parent().offset(x,y).in(this) + }, + // Image effect + image: function(src) { + return this.parent() && this.parent().image(src) //this effect dont have inputs + }, + // Merge effect + merge: function() { + return this.parent() && this.parent().merge.apply(this.parent(),[this].concat(arguments)) //pass this as the first argument + }, + // Gaussian Blur effect + gaussianBlur: function(x,y) { + return this.parent() && this.parent().gaussianBlur(x,y).in(this) + }, + // Morphology effect + morphology: function(operator,radius){ + return this.parent() && this.parent().morphology(operator,radius).in(this) + }, + // DiffuseLighting effect + diffuseLighting: function(surfaceScale,diffuseConstant,kernelUnitLength){ + return this.parent() && this.parent().diffuseLighting(surfaceScale,diffuseConstant,kernelUnitLength).in(this) + }, + // DisplacementMap effect + displacementMap: function(in2,scale,xChannelSelector,yChannelSelector){ + return this.parent() && this.parent().displacementMap(this,in2,scale,xChannelSelector,yChannelSelector) //pass this as the first input + }, + // SpecularLighting effect + specularLighting: function(surfaceScale,diffuseConstant,specularExponent,kernelUnitLength){ + return this.parent() && this.parent().specularLighting(surfaceScale,diffuseConstant,specularExponent,kernelUnitLength).in(this) + }, + // Tile effect + tile: function(){ + return this.parent() && this.parent().tile().in(this) + }, + // Turbulence effect + turbulence: function(baseFrequency,numOctaves,seed,stitchTiles,type){ + return this.parent() && this.parent().turbulence(baseFrequency,numOctaves,seed,stitchTiles,type).in(this) + } + }; + SVG.extend(SVG.Effect,chainingEffects); + SVG.extend(SVG.ParentEffect,chainingEffects); + + //crea class for child effects, like MergeNode, FuncR and lights + SVG.ChildEffect = SVG.invent({ + create: function(){ + this.constructor.call(this); + }, + inherit: SVG.Element, + extend: { + in: function(effect){ + this.attr('in',effect); + } + //dont include any "result" functions because these types of nodes dont have them + } + }); + + // Create all different effects + var effects = { + blend: function(in1,in2,mode){ + this.attr({ + in: in1, + in2: in2, + mode: mode || 'normal' + }); + }, + colorMatrix: function(type,values){ + if (type == 'matrix') + values = normaliseMatrix(values); + + this.attr({ + type: type + , values: typeof values == 'undefined' ? null : values + }); + }, + convolveMatrix: function(matrix){ + matrix = normaliseMatrix(matrix); + + this.attr({ + order: Math.sqrt(matrix.split(' ').length) + , kernelMatrix: matrix + }); + }, + composite: function(in1, in2, operator){ + this.attr({ + in: in1, + in2: in2, + operator: operator + }); + }, + flood: function(color,opacity){ + this.attr('flood-color',color); + if(opacity != null) this.attr('flood-opacity',opacity); + }, + offset: function(x,y){ + this.attr({ + dx: x, + dy: y + }); + }, + image: function(src){ + this.attr('href', src, SVG.xlink); + }, + displacementMap: function(in1,in2,scale,xChannelSelector,yChannelSelector){ + this.attr({ + in: in1, + in2: in2, + scale: scale, + xChannelSelector: xChannelSelector, + yChannelSelector: yChannelSelector + }); + }, + gaussianBlur: function(x,y){ + if(x != null || y != null) + this.attr('stdDeviation', listString(Array.prototype.slice.call(arguments))); + else + this.attr('stdDeviation', '0 0'); + }, + morphology: function(operator,radius){ + this.attr({ + operator: operator, + radius: radius + }); + }, + tile: function(){ + + }, + turbulence: function(baseFrequency,numOctaves,seed,stitchTiles,type){ + this.attr({ + numOctaves: numOctaves, + seed: seed, + stitchTiles: stitchTiles, + baseFrequency: baseFrequency, + type: type + }); + } + }; + + // Create all parent effects + var parentEffects = { + merge: function(){ + var children; + + //test to see if we have a set + if(arguments[0] instanceof SVG.Set){ + var that = this; + arguments[0].each(function(i){ + if(this instanceof SVG.MergeNode) + that.put(this); + else if(this instanceof SVG.Effect || this instanceof SVG.ParentEffect) + that.put(new SVG.MergeNode(this)); + }); + } + else{ + //if the first argument is an array use it + if(Array.isArray(arguments[0])) + children = arguments[0]; + else + children = arguments; + + for(var i = 0; i < children.length; i++){ + if(children[i] instanceof SVG.MergeNode){ + this.put(children[i]); + } + else this.put(new SVG.MergeNode(children[i])); + } + } + }, + componentTransfer: function(compontents){ + /* create rgb set */ + this.rgb = new SVG.Set + + /* create components */ + ;(['r', 'g', 'b', 'a']).forEach(function(c) { + /* create component */ + this[c] = new SVG['Func' + c.toUpperCase()]('identity'); + + /* store component in set */ + this.rgb.add(this[c]); + + /* add component node */ + this.node.appendChild(this[c].node); + }.bind(this)); //lost context in foreach + + /* set components */ + if (compontents) { + if (compontents.rgb) { + (['r', 'g', 'b']).forEach(function(c) { + this[c].attr(compontents.rgb); + }.bind(this)); + + delete compontents.rgb; + } + + /* set individual components */ + for (var c in compontents) + this[c].attr(compontents[c]); + } + }, + diffuseLighting: function(surfaceScale,diffuseConstant,kernelUnitLength){ + this.attr({ + surfaceScale: surfaceScale, + diffuseConstant: diffuseConstant, + kernelUnitLength: kernelUnitLength + }); + }, + specularLighting: function(surfaceScale,diffuseConstant,specularExponent,kernelUnitLength){ + this.attr({ + surfaceScale: surfaceScale, + diffuseConstant: diffuseConstant, + specularExponent: specularExponent, + kernelUnitLength: kernelUnitLength + }); + }, + }; + + // Create child effects like PointLight and MergeNode + var childEffects = { + distantLight: function(azimuth, elevation){ + this.attr({ + azimuth: azimuth, + elevation: elevation + }); + }, + pointLight: function(x,y,z){ + this.attr({ + x: x, + y: y, + z: z + }); + }, + spotLight: function(x,y,z,pointsAtX,pointsAtY,pointsAtZ){ + this.attr({ + x: x, + y: y, + z: z, + pointsAtX: pointsAtX, + pointsAtY: pointsAtY, + pointsAtZ: pointsAtZ + }); + }, + mergeNode: function(in1){ + this.attr('in',in1); + } + } + + // Create compontent functions + ;(['r', 'g', 'b', 'a']).forEach(function(c) { + /* create class */ + childEffects['Func' + c.toUpperCase()] = function(type) { + this.attr('type',type); + + // take diffent arguments based on the type + switch(type){ + case 'table': + this.attr('tableValues',arguments[1]); + break + case 'linear': + this.attr('slope',arguments[1]); + this.attr('intercept',arguments[2]); + break + case 'gamma': + this.attr('amplitude',arguments[1]); + this.attr('exponent',arguments[2]); + this.attr('offset',arguments[2]); + break + } + }; + }); + + //create effects + foreach(effects,function(effect,i){ + + /* capitalize name */ + var name = i.charAt(0).toUpperCase() + i.slice(1); + var proto = {}; + + /* create class */ + SVG[name + 'Effect'] = SVG.invent({ + create: function() { + //call super + this.constructor.call(this, SVG.create('fe' + name)); + + //call constructor for this effect + effect.apply(this,arguments); + + //set the result + this.result(this.attr('id') + 'Out'); + }, + inherit: SVG.Effect, + extend: proto + }); + }); + + //create parent effects + foreach(parentEffects,function(effect,i){ + + /* capitalize name */ + var name = i.charAt(0).toUpperCase() + i.slice(1); + var proto = {}; + + /* create class */ + SVG[name + 'Effect'] = SVG.invent({ + create: function() { + //call super + this.constructor.call(this, SVG.create('fe' + name)); + + //call constructor for this effect + effect.apply(this,arguments); + + //set the result + this.result(this.attr('id') + 'Out'); + }, + inherit: SVG.ParentEffect, + extend: proto + }); + }); + + //create child effects + foreach(childEffects,function(effect,i){ + + /* capitalize name */ + var name = i.charAt(0).toUpperCase() + i.slice(1); + var proto = {}; + + /* create class */ + SVG[name] = SVG.invent({ + create: function() { + //call super + this.constructor.call(this, SVG.create('fe' + name)); + + //call constructor for this effect + effect.apply(this,arguments); + }, + inherit: SVG.ChildEffect, + extend: proto + }); + }); + + // Effect-specific extensions + SVG.extend(SVG.MergeEffect,{ + in: function(effect){ + if(effect instanceof SVG.MergeNode) + this.add(effect,0); + else + this.add(new SVG.MergeNode(effect),0); + + return this + } + }); + SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{ + in2: function(effect){ + return effect == null? this.parent() && this.parent().select('[result="'+this.attr('in2')+'"]').get(0) || this.attr('in2') : this.attr('in2', effect) + } + }); + + // Presets + SVG.filter = { + sepiatone: [ .343, .669, .119, 0, 0 + , .249, .626, .130, 0, 0 + , .172, .334, .111, 0, 0 + , .000, .000, .000, 1, 0 ] + }; + + // Helpers + function normaliseMatrix(matrix) { + /* convert possible array value to string */ + if (Array.isArray(matrix)) + matrix = new SVG.Array(matrix); + + /* ensure there are no leading, tailing or double spaces */ + return matrix.toString().replace(/^\s+/, '').replace(/\s+$/, '').replace(/\s+/g, ' ') + } + + function listString(list) { + if (!Array.isArray(list)) + return list + + for (var i = 0, l = list.length, s = []; i < l; i++) + s.push(list[i]); + + return s.join(' ') + } + + function foreach(){ //loops through mutiple objects + var fn = function(){}; + if(typeof arguments[arguments.length-1] == 'function'){ + fn = arguments[arguments.length-1]; + Array.prototype.splice.call(arguments,arguments.length-1,1); + } + for(var k in arguments){ + for(var i in arguments[k]){ + fn(arguments[k][i],i,arguments[k]); + } + } + } + + }).call(undefined); + + (function() { + + SVG.extend(SVG.PathArray, { + morph: function(array) { + + var startArr = this.value + , destArr = this.parse(array); + + var startOffsetM = 0 + , destOffsetM = 0; + + var startOffsetNextM = false + , destOffsetNextM = false; + + while(true){ + // stop if there is no M anymore + if(startOffsetM === false && destOffsetM === false) break + + // find the next M in path array + startOffsetNextM = findNextM(startArr, startOffsetM === false ? false : startOffsetM+1); + destOffsetNextM = findNextM( destArr, destOffsetM === false ? false : destOffsetM+1); + + // We have to add one M to the startArray + if(startOffsetM === false){ + var bbox = new SVG.PathArray(result.start).bbox(); + + // when the last block had no bounding box we simply take the first M we got + if(bbox.height == 0 || bbox.width == 0){ + startOffsetM = startArr.push(startArr[0]) - 1; + }else{ + // we take the middle of the bbox instead when we got one + startOffsetM = startArr.push( ['M', bbox.x + bbox.width/2, bbox.y + bbox.height/2 ] ) - 1; + } + } + + // We have to add one M to the destArray + if( destOffsetM === false){ + var bbox = new SVG.PathArray(result.dest).bbox(); + + if(bbox.height == 0 || bbox.width == 0){ + destOffsetM = destArr.push(destArr[0]) - 1; + }else{ + destOffsetM = destArr.push( ['M', bbox.x + bbox.width/2, bbox.y + bbox.height/2 ] ) - 1; + } + } + + // handle block from M to next M + var result = handleBlock(startArr, startOffsetM, startOffsetNextM, destArr, destOffsetM, destOffsetNextM); + + // update the arrays to their new values + startArr = startArr.slice(0, startOffsetM).concat(result.start, startOffsetNextM === false ? [] : startArr.slice(startOffsetNextM)); + destArr = destArr.slice(0, destOffsetM).concat(result.dest , destOffsetNextM === false ? [] : destArr.slice( destOffsetNextM)); + + // update offsets + startOffsetM = startOffsetNextM === false ? false : startOffsetM + result.start.length; + destOffsetM = destOffsetNextM === false ? false : destOffsetM + result.dest.length; + + } + + // copy back arrays + this.value = startArr; + this.destination = new SVG.PathArray(); + this.destination.value = destArr; + + return this + } + }); + + + + // sorry for the long declaration + // slices out one block (from M to M) and syncronize it so the types and length match + function handleBlock(startArr, startOffsetM, startOffsetNextM, destArr, destOffsetM, destOffsetNextM, undefined){ + + // slice out the block we need + var startArrTemp = startArr.slice(startOffsetM, startOffsetNextM || undefined) + , destArrTemp = destArr.slice( destOffsetM, destOffsetNextM || undefined); + + var i = 0 + , posStart = {pos:[0,0], start:[0,0]} + , posDest = {pos:[0,0], start:[0,0]}; + + do{ + + // convert shorthand types to long form + startArrTemp[i] = simplyfy.call(posStart, startArrTemp[i]); + destArrTemp[i] = simplyfy.call(posDest , destArrTemp[i]); + + // check if both shape types match + // 2 elliptical arc curve commands ('A'), are considered different if the + // flags (large-arc-flag, sweep-flag) don't match + if(startArrTemp[i][0] != destArrTemp[i][0] || startArrTemp[i][0] == 'M' || + (startArrTemp[i][0] == 'A' && + (startArrTemp[i][4] != destArrTemp[i][4] || startArrTemp[i][5] != destArrTemp[i][5]) + ) + ) { + + // if not, convert shapes to beziere + Array.prototype.splice.apply(startArrTemp, [i, 1].concat(toBeziere.call(posStart, startArrTemp[i]))); + Array.prototype.splice.apply(destArrTemp, [i, 1].concat(toBeziere.call(posDest, destArrTemp[i]))); + + } else { + + // only update positions otherwise + startArrTemp[i] = setPosAndReflection.call(posStart, startArrTemp[i]); + destArrTemp[i] = setPosAndReflection.call(posDest , destArrTemp[i]); + + } + + // we are at the end at both arrays. stop here + if(++i == startArrTemp.length && i == destArrTemp.length) break + + // destArray is longer. Add one element + if(i == startArrTemp.length){ + startArrTemp.push([ + 'C', + posStart.pos[0], + posStart.pos[1], + posStart.pos[0], + posStart.pos[1], + posStart.pos[0], + posStart.pos[1], + ]); + } + + // startArr is longer. Add one element + if(i == destArrTemp.length){ + destArrTemp.push([ + 'C', + posDest.pos[0], + posDest.pos[1], + posDest.pos[0], + posDest.pos[1], + posDest.pos[0], + posDest.pos[1] + ]); + } + + + }while(true) + + // return the updated block + return {start:startArrTemp, dest:destArrTemp} + } + + // converts shorthand types to long form + function simplyfy(val){ + + switch(val[0]){ + case 'z': // shorthand line to start + case 'Z': + val[0] = 'L'; + val[1] = this.start[0]; + val[2] = this.start[1]; + break + case 'H': // shorthand horizontal line + val[0] = 'L'; + val[2] = this.pos[1]; + break + case 'V': // shorthand vertical line + val[0] = 'L'; + val[2] = val[1]; + val[1] = this.pos[0]; + break + case 'T': // shorthand quadratic beziere + val[0] = 'Q'; + val[3] = val[1]; + val[4] = val[2]; + val[1] = this.reflection[1]; + val[2] = this.reflection[0]; + break + case 'S': // shorthand cubic beziere + val[0] = 'C'; + val[6] = val[4]; + val[5] = val[3]; + val[4] = val[2]; + val[3] = val[1]; + val[2] = this.reflection[1]; + val[1] = this.reflection[0]; + break + } + + return val + + } + + // updates reflection point and current position + function setPosAndReflection(val){ + + var len = val.length; + + this.pos = [ val[len-2], val[len-1] ]; + + if('SCQT'.indexOf(val[0]) != -1) + this.reflection = [ 2 * this.pos[0] - val[len-4], 2 * this.pos[1] - val[len-3] ]; + + return val + } + + // converts all types to cubic beziere + function toBeziere(val){ + var retVal = [val]; + + switch(val[0]){ + case 'M': // special handling for M + this.pos = this.start = [val[1], val[2]]; + return retVal + case 'L': + val[5] = val[3] = val[1]; + val[6] = val[4] = val[2]; + val[1] = this.pos[0]; + val[2] = this.pos[1]; + break + case 'Q': + val[6] = val[4]; + val[5] = val[3]; + val[4] = val[4] * 1/3 + val[2] * 2/3; + val[3] = val[3] * 1/3 + val[1] * 2/3; + val[2] = this.pos[1] * 1/3 + val[2] * 2/3; + val[1] = this.pos[0] * 1/3 + val[1] * 2/3; + break + case 'A': + retVal = arcToBeziere(this.pos, val); + val = retVal[0]; + break + } + + val[0] = 'C'; + this.pos = [val[5], val[6]]; + this.reflection = [2 * val[5] - val[3], 2 * val[6] - val[4]]; + + return retVal + + } + + // finds the next position of type M + function findNextM(arr, offset){ + + if(offset === false) return false + + for(var i = offset, len = arr.length;i < len;++i){ + + if(arr[i][0] == 'M') return i + + } + + return false + } + + + + // Convert an arc segment into equivalent cubic Bezier curves + // Depending on the arc, up to 4 curves might be used to represent it since a + // curve gives a good approximation for only a quarter of an ellipse + // The curves are returned as an array of SVG curve commands: + // [ ['C', x1, y1, x2, y2, x, y] ... ] + function arcToBeziere(pos, val) { + // Parameters extraction, handle out-of-range parameters as specified in the SVG spec + // See: https://www.w3.org/TR/SVG11/implnote.html#ArcOutOfRangeParameters + var rx = Math.abs(val[1]), ry = Math.abs(val[2]), xAxisRotation = val[3] % 360 + , largeArcFlag = val[4], sweepFlag = val[5], x = val[6], y = val[7] + , A = new SVG.Point(pos), B = new SVG.Point(x, y) + , primedCoord, lambda, mat, k, c, cSquare, t, O, OA, OB, tetaStart, tetaEnd + , deltaTeta, nbSectors, f, arcSegPoints, angle, sinAngle, cosAngle, pt, i, il + , retVal = [], x1, y1, x2, y2; + + // Ensure radii are non-zero + if(rx === 0 || ry === 0 || (A.x === B.x && A.y === B.y)) { + // treat this arc as a straight line segment + return [['C', A.x, A.y, B.x, B.y, B.x, B.y]] + } + + // Ensure radii are large enough using the algorithm provided in the SVG spec + // See: https://www.w3.org/TR/SVG11/implnote.html#ArcCorrectionOutOfRangeRadii + primedCoord = new SVG.Point((A.x-B.x)/2, (A.y-B.y)/2).transform(new SVG.Matrix().rotate(xAxisRotation)); + lambda = (primedCoord.x * primedCoord.x) / (rx * rx) + (primedCoord.y * primedCoord.y) / (ry * ry); + if(lambda > 1) { + lambda = Math.sqrt(lambda); + rx = lambda*rx; + ry = lambda*ry; + } + + // To simplify calculations, we make the arc part of a unit circle (rayon is 1) instead of an ellipse + mat = new SVG.Matrix().rotate(xAxisRotation).scale(1/rx, 1/ry).rotate(-xAxisRotation); + A = A.transform(mat); + B = B.transform(mat); + + // Calculate the horizontal and vertical distance between the initial and final point of the arc + k = [B.x-A.x, B.y-A.y]; + + // Find the length of the chord formed by A and B + cSquare = k[0]*k[0] + k[1]*k[1]; + c = Math.sqrt(cSquare); + + // Calculate the ratios of the horizontal and vertical distance on the length of the chord + k[0] /= c; + k[1] /= c; + + // Calculate the distance between the circle center and the chord midpoint + // using this formula: t = sqrt(r^2 - c^2 / 4) + // where t is the distance between the cirle center and the chord midpoint, + // r is the rayon of the circle and c is the chord length + // From: http://www.ajdesigner.com/phpcircle/circle_segment_chord_t.php + // Because of the imprecision of floating point numbers, cSquare might end + // up being slightly above 4 which would result in a negative radicand + // To prevent that, a test is made before computing the square root + t = (cSquare < 4) ? Math.sqrt(1 - cSquare/4) : 0; + + // For most situations, there are actually two different ellipses that + // satisfy the constraints imposed by the points A and B, the radii rx and ry, + // and the xAxisRotation + // When the flags largeArcFlag and sweepFlag are equal, it means that the + // second ellipse is used as a solution + // See: https://www.w3.org/TR/SVG/paths.html#PathDataEllipticalArcCommands + if(largeArcFlag === sweepFlag) { + t *= -1; + } + + // Calculate the coordinates of the center of the circle from the midpoint of the chord + // This is done by multiplying the ratios calculated previously by the distance between + // the circle center and the chord midpoint and using these values to go from the midpoint + // to the center of the circle + // The negative of the vertical distance ratio is used to modify the x coordinate while + // the horizontal distance ratio is used to modify the y coordinate + // That is because the center of the circle is perpendicular to the chord and perpendicular + // lines are negative reciprocals + O = new SVG.Point((B.x+A.x)/2 + t*-k[1], (B.y+A.y)/2 + t*k[0]); + // Move the center of the circle at the origin + OA = new SVG.Point(A.x-O.x, A.y-O.y); + OB = new SVG.Point(B.x-O.x, B.y-O.y); + + // Calculate the start and end angle + tetaStart = Math.acos(OA.x/Math.sqrt(OA.x*OA.x + OA.y*OA.y)); + if (OA.y < 0) { + tetaStart *= -1; + } + tetaEnd = Math.acos(OB.x/Math.sqrt(OB.x*OB.x + OB.y*OB.y)); + if (OB.y < 0) { + tetaEnd *= -1; + } + + // If sweep-flag is '1', then the arc will be drawn in a "positive-angle" direction, + // make sure that the end angle is above the start angle + if (sweepFlag && tetaStart > tetaEnd) { + tetaEnd += 2*Math.PI; + } + // If sweep-flag is '0', then the arc will be drawn in a "negative-angle" direction, + // make sure that the end angle is below the start angle + if (!sweepFlag && tetaStart < tetaEnd) { + tetaEnd -= 2*Math.PI; + } + + // Find the number of Bezier curves that are required to represent the arc + // A cubic Bezier curve gives a good enough approximation when representing at most a quarter of a circle + nbSectors = Math.ceil(Math.abs(tetaStart-tetaEnd) * 2/Math.PI); + + // Calculate the coordinates of the points of all the Bezier curves required to represent the arc + // For an in-depth explanation of this part see: http://pomax.github.io/bezierinfo/#circles_cubic + arcSegPoints = []; + angle = tetaStart; + deltaTeta = (tetaEnd-tetaStart)/nbSectors; + f = 4*Math.tan(deltaTeta/4)/3; + for (i = 0; i <= nbSectors; i++) { // The <= is because a Bezier curve have a start and a endpoint + cosAngle = Math.cos(angle); + sinAngle = Math.sin(angle); + + pt = new SVG.Point(O.x+cosAngle, O.y+sinAngle); + arcSegPoints[i] = [new SVG.Point(pt.x+f*sinAngle, pt.y-f*cosAngle), pt, new SVG.Point(pt.x-f*sinAngle, pt.y+f*cosAngle)]; + + angle += deltaTeta; + } + + // Remove the first control point of the first segment point and remove the second control point of the last segment point + // These two control points are not used in the approximation of the arc, that is why they are removed + arcSegPoints[0][0] = arcSegPoints[0][1].clone(); + arcSegPoints[arcSegPoints.length-1][2] = arcSegPoints[arcSegPoints.length-1][1].clone(); + + // Revert the transformation that was applied to make the arc part of a unit circle instead of an ellipse + mat = new SVG.Matrix().rotate(xAxisRotation).scale(rx, ry).rotate(-xAxisRotation); + for (i = 0, il = arcSegPoints.length; i < il; i++) { + arcSegPoints[i][0] = arcSegPoints[i][0].transform(mat); + arcSegPoints[i][1] = arcSegPoints[i][1].transform(mat); + arcSegPoints[i][2] = arcSegPoints[i][2].transform(mat); + } + + + // Convert the segments points to SVG curve commands + for (i = 1, il = arcSegPoints.length; i < il; i++) { + pt = arcSegPoints[i-1][2]; + x1 = pt.x; + y1 = pt.y; + + pt = arcSegPoints[i][0]; + x2 = pt.x; + y2 = pt.y; + + pt = arcSegPoints[i][1]; + x = pt.x; + y = pt.y; + + retVal.push(['C', x1, y1, x2, y2, x, y]); + } + + return retVal + } + }()); + + /*! svg.draggable.js - v2.2.1 - 2016-08-25 + * https://github.com/wout/svg.draggable.js + * Copyright (c) 2016 Wout Fierens; Licensed MIT */ + (function() { + + // creates handler, saves it + function DragHandler(el){ + el.remember('_draggable', this); + this.el = el; + } + + + // Sets new parameter, starts dragging + DragHandler.prototype.init = function(constraint, val){ + var _this = this; + this.constraint = constraint; + this.value = val; + this.el.on('mousedown.drag', function(e){ _this.start(e); }); + this.el.on('touchstart.drag', function(e){ _this.start(e); }); + }; + + // transforms one point from screen to user coords + DragHandler.prototype.transformPoint = function(event, offset){ + event = event || window.event; + var touches = event.changedTouches && event.changedTouches[0] || event; + this.p.x = touches.pageX - (offset || 0); + this.p.y = touches.pageY; + return this.p.matrixTransform(this.m) + }; + + // gets elements bounding box with special handling of groups, nested and use + DragHandler.prototype.getBBox = function(){ + + var box = this.el.bbox(); + + if(this.el instanceof SVG.Nested) box = this.el.rbox(); + + if (this.el instanceof SVG.G || this.el instanceof SVG.Use || this.el instanceof SVG.Nested) { + box.x = this.el.x(); + box.y = this.el.y(); + } + + return box + }; + + // start dragging + DragHandler.prototype.start = function(e){ + + // check for left button + if(e.type == 'click'|| e.type == 'mousedown' || e.type == 'mousemove'){ + if((e.which || e.buttons) != 1){ + return + } + } + + var _this = this; + + // fire beforedrag event + this.el.fire('beforedrag', { event: e, handler: this }); + + // search for parent on the fly to make sure we can call + // draggable() even when element is not in the dom currently + this.parent = this.parent || this.el.parent(SVG.Nested) || this.el.parent(SVG.Doc); + this.p = this.parent.node.createSVGPoint(); + + // save current transformation matrix + this.m = this.el.node.getScreenCTM().inverse(); + + var box = this.getBBox(); + + var anchorOffset; + + // fix text-anchor in text-element (#37) + if(this.el instanceof SVG.Text){ + anchorOffset = this.el.node.getComputedTextLength(); + + switch(this.el.attr('text-anchor')){ + case 'middle': + anchorOffset /= 2; + break + case 'start': + anchorOffset = 0; + break; + } + } + + this.startPoints = { + // We take absolute coordinates since we are just using a delta here + point: this.transformPoint(e, anchorOffset), + box: box, + transform: this.el.transform() + }; + + // add drag and end events to window + SVG.on(window, 'mousemove.drag', function(e){ _this.drag(e); }); + SVG.on(window, 'touchmove.drag', function(e){ _this.drag(e); }); + SVG.on(window, 'mouseup.drag', function(e){ _this.end(e); }); + SVG.on(window, 'touchend.drag', function(e){ _this.end(e); }); + + // fire dragstart event + this.el.fire('dragstart', {event: e, p: this.startPoints.point, m: this.m, handler: this}); + + // prevent browser drag behavior + e.preventDefault(); + + // prevent propagation to a parent that might also have dragging enabled + e.stopPropagation(); + }; + + // while dragging + DragHandler.prototype.drag = function(e){ + + var box = this.getBBox() + , p = this.transformPoint(e) + , x = this.startPoints.box.x + p.x - this.startPoints.point.x + , y = this.startPoints.box.y + p.y - this.startPoints.point.y + , c = this.constraint + , gx = p.x - this.startPoints.point.x + , gy = p.y - this.startPoints.point.y; + + var event = new CustomEvent('dragmove', { + detail: { + event: e + , p: p + , m: this.m + , handler: this + } + , cancelable: true + }); + + this.el.fire(event); + + if(event.defaultPrevented) return p + + // move the element to its new position, if possible by constraint + if (typeof c == 'function') { + + var coord = c.call(this.el, x, y, this.m); + + // bool, just show us if movement is allowed or not + if (typeof coord == 'boolean') { + coord = { + x: coord, + y: coord + }; + } + + // if true, we just move. If !false its a number and we move it there + if (coord.x === true) { + this.el.x(x); + } else if (coord.x !== false) { + this.el.x(coord.x); + } + + if (coord.y === true) { + this.el.y(y); + } else if (coord.y !== false) { + this.el.y(coord.y); + } + + } else if (typeof c == 'object') { + + // keep element within constrained box + if (c.minX != null && x < c.minX) + x = c.minX; + else if (c.maxX != null && x > c.maxX - box.width){ + x = c.maxX - box.width; + }if (c.minY != null && y < c.minY) + y = c.minY; + else if (c.maxY != null && y > c.maxY - box.height) + y = c.maxY - box.height; + + if(this.el instanceof SVG.G) + this.el.matrix(this.startPoints.transform).transform({x:gx, y: gy}, true); + else + this.el.move(x, y); + } + + // so we can use it in the end-method, too + return p + }; + + DragHandler.prototype.end = function(e){ + + // final drag + var p = this.drag(e); + + // fire dragend event + this.el.fire('dragend', { event: e, p: p, m: this.m, handler: this }); + + // unbind events + SVG.off(window, 'mousemove.drag'); + SVG.off(window, 'touchmove.drag'); + SVG.off(window, 'mouseup.drag'); + SVG.off(window, 'touchend.drag'); + + }; + + SVG.extend(SVG.Element, { + // Make element draggable + // Constraint might be an object (as described in readme.md) or a function in the form "function (x, y)" that gets called before every move. + // The function can return a boolean or an object of the form {x, y}, to which the element will be moved. "False" skips moving, true moves to raw x, y. + draggable: function(value, constraint) { + + // Check the parameters and reassign if needed + if (typeof value == 'function' || typeof value == 'object') { + constraint = value; + value = true; + } + + var dragHandler = this.remember('_draggable') || new DragHandler(this); + + // When no parameter is given, value is true + value = typeof value === 'undefined' ? true : value; + + if(value) dragHandler.init(constraint || {}, value); + else { + this.off('mousedown.drag'); + this.off('touchstart.drag'); + } + + return this + } + + }); + + }).call(undefined); + + (function() { + + function SelectHandler(el) { + + this.el = el; + el.remember('_selectHandler', this); + this.pointSelection = {isSelected: false}; + this.rectSelection = {isSelected: false}; + + } + + SelectHandler.prototype.init = function (value, options) { + + var bbox = this.el.bbox(); + this.options = {}; + + // Merging the defaults and the options-object together + for (var i in this.el.selectize.defaults) { + this.options[i] = this.el.selectize.defaults[i]; + if (options[i] !== undefined) { + this.options[i] = options[i]; + } + } + + this.parent = this.el.parent(); + this.nested = (this.nested || this.parent.group()); + this.nested.matrix(new SVG.Matrix(this.el).translate(bbox.x, bbox.y)); + + // When deepSelect is enabled and the element is a line/polyline/polygon, draw only points for moving + if (this.options.deepSelect && ['line', 'polyline', 'polygon'].indexOf(this.el.type) !== -1) { + this.selectPoints(value); + } else { + this.selectRect(value); + } + + this.observe(); + this.cleanup(); + + }; + + SelectHandler.prototype.selectPoints = function (value) { + + this.pointSelection.isSelected = value; + + // When set is already there we dont have to create one + if (this.pointSelection.set) { + return this; + } + + // Create our set of elements + this.pointSelection.set = this.parent.set(); + // draw the circles and mark the element as selected + this.drawCircles(); + + return this; + + }; + + // create the point-array which contains the 2 points of a line or simply the points-array of polyline/polygon + SelectHandler.prototype.getPointArray = function () { + var bbox = this.el.bbox(); + + return this.el.array().valueOf().map(function (el) { + return [el[0] - bbox.x, el[1] - bbox.y]; + }); + }; + + // The function to draw the circles + SelectHandler.prototype.drawCircles = function () { + + var _this = this, array = this.getPointArray(); + + // go through the array of points + for (var i = 0, len = array.length; i < len; ++i) { + + var curriedEvent = (function (k) { + return function (ev) { + ev = ev || window.event; + ev.preventDefault ? ev.preventDefault() : ev.returnValue = false; + ev.stopPropagation(); + + var x = ev.pageX || ev.touches[0].pageX; + var y = ev.pageY || ev.touches[0].pageY; + _this.el.fire('point', {x: x, y: y, i: k, event: ev}); + }; + })(i); + + // add every point to the set + this.pointSelection.set.add( + // a circle with our css-classes and a touchstart-event which fires our event for moving points + this.nested.circle(this.options.radius) + .center(array[i][0], array[i][1]) + .addClass(this.options.classPoints) + .addClass(this.options.classPoints + '_point') + .on('touchstart', curriedEvent) + .on('mousedown', curriedEvent) + ); + } + + }; + + // every time a circle is moved, we have to update the positions of our circle + SelectHandler.prototype.updatePointSelection = function () { + var array = this.getPointArray(); + + this.pointSelection.set.each(function (i) { + if (this.cx() === array[i][0] && this.cy() === array[i][1]) { + return; + } + this.center(array[i][0], array[i][1]); + }); + }; + + SelectHandler.prototype.updateRectSelection = function () { + var bbox = this.el.bbox(); + + this.rectSelection.set.get(0).attr({ + width: bbox.width, + height: bbox.height + }); + + // set.get(1) is always in the upper left corner. no need to move it + if (this.options.points) { + this.rectSelection.set.get(2).center(bbox.width, 0); + this.rectSelection.set.get(3).center(bbox.width, bbox.height); + this.rectSelection.set.get(4).center(0, bbox.height); + + this.rectSelection.set.get(5).center(bbox.width / 2, 0); + this.rectSelection.set.get(6).center(bbox.width, bbox.height / 2); + this.rectSelection.set.get(7).center(bbox.width / 2, bbox.height); + this.rectSelection.set.get(8).center(0, bbox.height / 2); + } + + if (this.options.rotationPoint) { + if (this.options.points) { + this.rectSelection.set.get(9).center(bbox.width / 2, 20); + } else { + this.rectSelection.set.get(1).center(bbox.width / 2, 20); + } + } + }; + + SelectHandler.prototype.selectRect = function (value) { + + var _this = this, bbox = this.el.bbox(); + + this.rectSelection.isSelected = value; + + // when set is already p + this.rectSelection.set = this.rectSelection.set || this.parent.set(); + + // helperFunction to create a mouse-down function which triggers the event specified in `eventName` + function getMoseDownFunc(eventName) { + return function (ev) { + ev = ev || window.event; + ev.preventDefault ? ev.preventDefault() : ev.returnValue = false; + ev.stopPropagation(); + + var x = ev.pageX || ev.touches[0].pageX; + var y = ev.pageY || ev.touches[0].pageY; + _this.el.fire(eventName, {x: x, y: y, event: ev}); + }; + } + + // create the selection-rectangle and add the css-class + if (!this.rectSelection.set.get(0)) { + this.rectSelection.set.add(this.nested.rect(bbox.width, bbox.height).addClass(this.options.classRect)); + } + + // Draw Points at the edges, if enabled + if (this.options.points && !this.rectSelection.set.get(1)) { + var ename ="touchstart", mname = "mousedown"; + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(0, 0).attr('class', this.options.classPoints + '_lt').on(mname, getMoseDownFunc('lt')).on(ename, getMoseDownFunc('lt'))); + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(bbox.width, 0).attr('class', this.options.classPoints + '_rt').on(mname, getMoseDownFunc('rt')).on(ename, getMoseDownFunc('rt'))); + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(bbox.width, bbox.height).attr('class', this.options.classPoints + '_rb').on(mname, getMoseDownFunc('rb')).on(ename, getMoseDownFunc('rb'))); + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(0, bbox.height).attr('class', this.options.classPoints + '_lb').on(mname, getMoseDownFunc('lb')).on(ename, getMoseDownFunc('lb'))); + + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(bbox.width / 2, 0).attr('class', this.options.classPoints + '_t').on(mname, getMoseDownFunc('t')).on(ename, getMoseDownFunc('t'))); + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(bbox.width, bbox.height / 2).attr('class', this.options.classPoints + '_r').on(mname, getMoseDownFunc('r')).on(ename, getMoseDownFunc('r'))); + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(bbox.width / 2, bbox.height).attr('class', this.options.classPoints + '_b').on(mname, getMoseDownFunc('b')).on(ename, getMoseDownFunc('b'))); + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(0, bbox.height / 2).attr('class', this.options.classPoints + '_l').on(mname, getMoseDownFunc('l')).on(ename, getMoseDownFunc('l'))); + + this.rectSelection.set.each(function () { + this.addClass(_this.options.classPoints); + }); + } + + // draw rotationPint, if enabled + if (this.options.rotationPoint && ((this.options.points && !this.rectSelection.set.get(9)) || (!this.options.points && !this.rectSelection.set.get(1)))) { + + var curriedEvent = function (ev) { + ev = ev || window.event; + ev.preventDefault ? ev.preventDefault() : ev.returnValue = false; + ev.stopPropagation(); + + var x = ev.pageX || ev.touches[0].pageX; + var y = ev.pageY || ev.touches[0].pageY; + _this.el.fire('rot', {x: x, y: y, event: ev}); + }; + this.rectSelection.set.add(this.nested.circle(this.options.radius).center(bbox.width / 2, 20).attr('class', this.options.classPoints + '_rot') + .on("touchstart", curriedEvent).on("mousedown", curriedEvent)); + + } + + }; + + SelectHandler.prototype.handler = function () { + + var bbox = this.el.bbox(); + this.nested.matrix(new SVG.Matrix(this.el).translate(bbox.x, bbox.y)); + + if (this.rectSelection.isSelected) { + this.updateRectSelection(); + } + + if (this.pointSelection.isSelected) { + this.updatePointSelection(); + } + + }; + + SelectHandler.prototype.observe = function () { + var _this = this; + + if (MutationObserver) { + if (this.rectSelection.isSelected || this.pointSelection.isSelected) { + this.observerInst = this.observerInst || new MutationObserver(function () { + _this.handler(); + }); + this.observerInst.observe(this.el.node, {attributes: true}); + } else { + try { + this.observerInst.disconnect(); + delete this.observerInst; + } catch (e) { + } + } + } else { + this.el.off('DOMAttrModified.select'); + + if (this.rectSelection.isSelected || this.pointSelection.isSelected) { + this.el.on('DOMAttrModified.select', function () { + _this.handler(); + }); + } + } + }; + + SelectHandler.prototype.cleanup = function () { + + //var _this = this; + + if (!this.rectSelection.isSelected && this.rectSelection.set) { + // stop watching the element, remove the selection + this.rectSelection.set.each(function () { + this.remove(); + }); + + this.rectSelection.set.clear(); + delete this.rectSelection.set; + } + + if (!this.pointSelection.isSelected && this.pointSelection.set) { + // Remove all points, clear the set, stop watching the element + this.pointSelection.set.each(function () { + this.remove(); + }); + + this.pointSelection.set.clear(); + delete this.pointSelection.set; + } + + if (!this.pointSelection.isSelected && !this.rectSelection.isSelected) { + this.nested.remove(); + delete this.nested; + + } + }; + + + SVG.extend(SVG.Element, { + // Select element with mouse + selectize: function (value, options) { + + // Check the parameters and reassign if needed + if (typeof value === 'object') { + options = value; + value = true; + } + + var selectHandler = this.remember('_selectHandler') || new SelectHandler(this); + + selectHandler.init(value === undefined ? true : value, options || {}); + + return this; + + } + }); + + SVG.Element.prototype.selectize.defaults = { + points: true, // If true, points at the edges are drawn. Needed for resize! + classRect: 'svg_select_boundingRect', // Css-class added to the rect + classPoints: 'svg_select_points', // Css-class added to the points + radius: 7, // radius of the points + rotationPoint: true, // If true, rotation point is drawn. Needed for rotation! + deepSelect: false // If true, moving of single points is possible (only line, polyline, polyon) + }; + }()); + + (function() { + (function () { + + function ResizeHandler(el) { + + el.remember('_resizeHandler', this); + + this.el = el; + this.parameters = {}; + this.lastUpdateCall = null; + this.p = el.doc().node.createSVGPoint(); + } + + ResizeHandler.prototype.transformPoint = function(x, y, m){ + + this.p.x = x - (this.offset.x - window.pageXOffset); + this.p.y = y - (this.offset.y - window.pageYOffset); + + return this.p.matrixTransform(m || this.m); + + }; + + ResizeHandler.prototype._extractPosition = function(event) { + // Extract a position from a mouse/touch event. + // Returns { x: .., y: .. } + return { + x: event.clientX != null ? event.clientX : event.touches[0].clientX, + y: event.clientY != null ? event.clientY : event.touches[0].clientY + } + }; + + ResizeHandler.prototype.init = function (options) { + + var _this = this; + + this.stop(); + + if (options === 'stop') { + return; + } + + this.options = {}; + + // Merge options and defaults + for (var i in this.el.resize.defaults) { + this.options[i] = this.el.resize.defaults[i]; + if (typeof options[i] !== 'undefined') { + this.options[i] = options[i]; + } + } + + // We listen to all these events which are specifying different edges + this.el.on('lt.resize', function(e){ _this.resize(e || window.event); }); // Left-Top + this.el.on('rt.resize', function(e){ _this.resize(e || window.event); }); // Right-Top + this.el.on('rb.resize', function(e){ _this.resize(e || window.event); }); // Right-Bottom + this.el.on('lb.resize', function(e){ _this.resize(e || window.event); }); // Left-Bottom + + this.el.on('t.resize', function(e){ _this.resize(e || window.event); }); // Top + this.el.on('r.resize', function(e){ _this.resize(e || window.event); }); // Right + this.el.on('b.resize', function(e){ _this.resize(e || window.event); }); // Bottom + this.el.on('l.resize', function(e){ _this.resize(e || window.event); }); // Left + + this.el.on('rot.resize', function(e){ _this.resize(e || window.event); }); // Rotation + + this.el.on('point.resize', function(e){ _this.resize(e || window.event); }); // Point-Moving + + // This call ensures, that the plugin reacts to a change of snapToGrid immediately + this.update(); + + }; + + ResizeHandler.prototype.stop = function(){ + this.el.off('lt.resize'); + this.el.off('rt.resize'); + this.el.off('rb.resize'); + this.el.off('lb.resize'); + + this.el.off('t.resize'); + this.el.off('r.resize'); + this.el.off('b.resize'); + this.el.off('l.resize'); + + this.el.off('rot.resize'); + + this.el.off('point.resize'); + + return this; + }; + + ResizeHandler.prototype.resize = function (event) { + + var _this = this; + + this.m = this.el.node.getScreenCTM().inverse(); + this.offset = { x: window.pageXOffset, y: window.pageYOffset }; + + var txPt = this._extractPosition(event.detail.event); + this.parameters = { + type: this.el.type, // the type of element + p: this.transformPoint(txPt.x, txPt.y), + x: event.detail.x, // x-position of the mouse when resizing started + y: event.detail.y, // y-position of the mouse when resizing started + box: this.el.bbox(), // The bounding-box of the element + rotation: this.el.transform().rotation // The current rotation of the element + }; + + // Add font-size parameter if the element type is text + if (this.el.type === "text") { + this.parameters.fontSize = this.el.attr()["font-size"]; + } + + // the i-param in the event holds the index of the point which is moved, when using `deepSelect` + if (event.detail.i !== undefined) { + + // get the point array + var array = this.el.array().valueOf(); + + // Save the index and the point which is moved + this.parameters.i = event.detail.i; + this.parameters.pointCoords = [array[event.detail.i][0], array[event.detail.i][1]]; + } + + // Lets check which edge of the bounding-box was clicked and resize the this.el according to this + switch (event.type) { + + // Left-Top-Edge + case 'lt': + // We build a calculating function for every case which gives us the new position of the this.el + this.calc = function (diffX, diffY) { + // The procedure is always the same + // First we snap the edge to the given grid (snapping to 1px grid is normal resizing) + var snap = this.snapToGrid(diffX, diffY); + + // Now we check if the new height and width still valid (> 0) + if (this.parameters.box.width - snap[0] > 0 && this.parameters.box.height - snap[1] > 0) { + // ...if valid, we resize the this.el (which can include moving because the coord-system starts at the left-top and this edge is moving sometimes when resized) + + /* + * but first check if the element is text box, so we can change the font size instead of + * the width and height + */ + + if (this.parameters.type === "text") { + this.el.move(this.parameters.box.x + snap[0], this.parameters.box.y); + this.el.attr("font-size", this.parameters.fontSize - snap[0]); + return; + } + + snap = this.checkAspectRatio(snap); + + this.el.move(this.parameters.box.x + snap[0], this.parameters.box.y + snap[1]).size(this.parameters.box.width - snap[0], this.parameters.box.height - snap[1]); + } + }; + break; + + // Right-Top + case 'rt': + // s.a. + this.calc = function (diffX, diffY) { + var snap = this.snapToGrid(diffX, diffY, 1 << 1); + if (this.parameters.box.width + snap[0] > 0 && this.parameters.box.height - snap[1] > 0) { + if (this.parameters.type === "text") { + this.el.move(this.parameters.box.x - snap[0], this.parameters.box.y); + this.el.attr("font-size", this.parameters.fontSize + snap[0]); + return; + } + + snap = this.checkAspectRatio(snap); + + this.el.move(this.parameters.box.x, this.parameters.box.y + snap[1]).size(this.parameters.box.width + snap[0], this.parameters.box.height - snap[1]); + } + }; + break; + + // Right-Bottom + case 'rb': + // s.a. + this.calc = function (diffX, diffY) { + var snap = this.snapToGrid(diffX, diffY, 0); + if (this.parameters.box.width + snap[0] > 0 && this.parameters.box.height + snap[1] > 0) { + if (this.parameters.type === "text") { + this.el.move(this.parameters.box.x - snap[0], this.parameters.box.y); + this.el.attr("font-size", this.parameters.fontSize + snap[0]); + return; + } + + snap = this.checkAspectRatio(snap); + + this.el.move(this.parameters.box.x, this.parameters.box.y).size(this.parameters.box.width + snap[0], this.parameters.box.height + snap[1]); + } + }; + break; + + // Left-Bottom + case 'lb': + // s.a. + this.calc = function (diffX, diffY) { + var snap = this.snapToGrid(diffX, diffY, 1); + if (this.parameters.box.width - snap[0] > 0 && this.parameters.box.height + snap[1] > 0) { + if (this.parameters.type === "text") { + this.el.move(this.parameters.box.x + snap[0], this.parameters.box.y); + this.el.attr("font-size", this.parameters.fontSize - snap[0]); + return; + } + + snap = this.checkAspectRatio(snap); + + this.el.move(this.parameters.box.x + snap[0], this.parameters.box.y).size(this.parameters.box.width - snap[0], this.parameters.box.height + snap[1]); + } + }; + break; + + // Top + case 't': + // s.a. + this.calc = function (diffX, diffY) { + var snap = this.snapToGrid(diffX, diffY, 1 << 1); + if (this.parameters.box.height - snap[1] > 0) { + // Disable the font-resizing if it is not from the corner of bounding-box + if (this.parameters.type === "text") { + return; + } + + this.el.move(this.parameters.box.x, this.parameters.box.y + snap[1]).height(this.parameters.box.height - snap[1]); + } + }; + break; + + // Right + case 'r': + // s.a. + this.calc = function (diffX, diffY) { + var snap = this.snapToGrid(diffX, diffY, 0); + if (this.parameters.box.width + snap[0] > 0) { + if (this.parameters.type === "text") { + return; + } + + this.el.move(this.parameters.box.x, this.parameters.box.y).width(this.parameters.box.width + snap[0]); + } + }; + break; + + // Bottom + case 'b': + // s.a. + this.calc = function (diffX, diffY) { + var snap = this.snapToGrid(diffX, diffY, 0); + if (this.parameters.box.height + snap[1] > 0) { + if (this.parameters.type === "text") { + return; + } + + this.el.move(this.parameters.box.x, this.parameters.box.y).height(this.parameters.box.height + snap[1]); + } + }; + break; + + // Left + case 'l': + // s.a. + this.calc = function (diffX, diffY) { + var snap = this.snapToGrid(diffX, diffY, 1); + if (this.parameters.box.width - snap[0] > 0) { + if (this.parameters.type === "text") { + return; + } + + this.el.move(this.parameters.box.x + snap[0], this.parameters.box.y).width(this.parameters.box.width - snap[0]); + } + }; + break; + + // Rotation + case 'rot': + // s.a. + this.calc = function (diffX, diffY) { + + // yes this is kinda stupid but we need the mouse coords back... + var current = {x: diffX + this.parameters.p.x, y: diffY + this.parameters.p.y}; + + // start minus middle + var sAngle = Math.atan2((this.parameters.p.y - this.parameters.box.y - this.parameters.box.height / 2), (this.parameters.p.x - this.parameters.box.x - this.parameters.box.width / 2)); + + // end minus middle + var pAngle = Math.atan2((current.y - this.parameters.box.y - this.parameters.box.height / 2), (current.x - this.parameters.box.x - this.parameters.box.width / 2)); + + var angle = (pAngle - sAngle) * 180 / Math.PI; + + // We have to move the element to the center of the box first and change the rotation afterwards + // because rotation always works around a rotation-center, which is changed when moving the element + // We also set the new rotation center to the center of the box. + this.el.center(this.parameters.box.cx, this.parameters.box.cy).rotate(this.parameters.rotation + angle - angle % this.options.snapToAngle, this.parameters.box.cx, this.parameters.box.cy); + }; + break; + + // Moving one single Point (needed when an element is deepSelected which means you can move every single point of the object) + case 'point': + this.calc = function (diffX, diffY) { + + // Snapping the point to the grid + var snap = this.snapToGrid(diffX, diffY, this.parameters.pointCoords[0], this.parameters.pointCoords[1]); + + // Get the point array + var array = this.el.array().valueOf(); + + // Changing the moved point in the array + array[this.parameters.i][0] = this.parameters.pointCoords[0] + snap[0]; + array[this.parameters.i][1] = this.parameters.pointCoords[1] + snap[1]; + + // And plot the new this.el + this.el.plot(array); + }; + } + + this.el.fire('resizestart', {dx: this.parameters.x, dy: this.parameters.y, event: event}); + // When resizing started, we have to register events for... + // Touches. + SVG.on(window, 'touchmove.resize', function(e) { + _this.update(e || window.event); + }); + SVG.on(window, 'touchend.resize', function() { + _this.done(); + }); + // Mouse. + SVG.on(window, 'mousemove.resize', function (e) { + _this.update(e || window.event); + }); + SVG.on(window, 'mouseup.resize', function () { + _this.done(); + }); + + }; + + // The update-function redraws the element every time the mouse is moving + ResizeHandler.prototype.update = function (event) { + + if (!event) { + if (this.lastUpdateCall) { + this.calc(this.lastUpdateCall[0], this.lastUpdateCall[1]); + } + return; + } + + // Calculate the difference between the mouseposition at start and now + var txPt = this._extractPosition(event); + var p = this.transformPoint(txPt.x, txPt.y); + + var diffX = p.x - this.parameters.p.x, + diffY = p.y - this.parameters.p.y; + + this.lastUpdateCall = [diffX, diffY]; + + // Calculate the new position and height / width of the element + this.calc(diffX, diffY); + + // Emit an event to say we have changed. + this.el.fire('resizing', {dx: diffX, dy: diffY, event: event}); + }; + + // Is called on mouseup. + // Removes the update-function from the mousemove event + ResizeHandler.prototype.done = function () { + this.lastUpdateCall = null; + SVG.off(window, 'mousemove.resize'); + SVG.off(window, 'mouseup.resize'); + SVG.off(window, 'touchmove.resize'); + SVG.off(window, 'touchend.resize'); + this.el.fire('resizedone'); + }; + + // The flag is used to determine whether the resizing is used with a left-Point (first bit) and top-point (second bit) + // In this cases the temp-values are calculated differently + ResizeHandler.prototype.snapToGrid = function (diffX, diffY, flag, pointCoordsY) { + + var temp; + + // If `pointCoordsY` is given, a single Point has to be snapped (deepSelect). That's why we need a different temp-value + if (typeof pointCoordsY !== 'undefined') { + // Note that flag = pointCoordsX in this case + temp = [(flag + diffX) % this.options.snapToGrid, (pointCoordsY + diffY) % this.options.snapToGrid]; + } else { + // We check if the flag is set and if not we set a default-value (both bits set - which means upper-left-edge) + flag = flag == null ? 1 | 1 << 1 : flag; + temp = [(this.parameters.box.x + diffX + (flag & 1 ? 0 : this.parameters.box.width)) % this.options.snapToGrid, (this.parameters.box.y + diffY + (flag & (1 << 1) ? 0 : this.parameters.box.height)) % this.options.snapToGrid]; + } + + + diffX -= (Math.abs(temp[0]) < this.options.snapToGrid / 2 ? + temp[0] : + temp[0] - (diffX < 0 ? -this.options.snapToGrid : this.options.snapToGrid)); + diffY -= (Math.abs(temp[1]) < this.options.snapToGrid / 2 ? + temp[1] : + temp[1] - (diffY < 0 ? -this.options.snapToGrid : this.options.snapToGrid)); + + return this.constraintToBox(diffX, diffY, flag, pointCoordsY); + + }; + + // keep element within constrained box + ResizeHandler.prototype.constraintToBox = function (diffX, diffY, flag, pointCoordsY) { + //return [diffX, diffY] + var c = this.options.constraint || {}; + var orgX, orgY; + + if (typeof pointCoordsY !== 'undefined') { + orgX = flag; + orgY = pointCoordsY; + } else { + orgX = this.parameters.box.x + (flag & 1 ? 0 : this.parameters.box.width); + orgY = this.parameters.box.y + (flag & (1<<1) ? 0 : this.parameters.box.height); + } + + if (typeof c.minX !== 'undefined' && orgX + diffX < c.minX) { + diffX = c.minX - orgX; + } + + if (typeof c.maxX !== 'undefined' && orgX + diffX > c.maxX) { + diffX = c.maxX - orgX; + } + + if (typeof c.minY !== 'undefined' && orgY + diffY < c.minY) { + diffY = c.minY - orgY; + } + + if (typeof c.maxY !== 'undefined' && orgY + diffY > c.maxY) { + diffY = c.maxY - orgY; + } + + return [diffX, diffY]; + }; + + ResizeHandler.prototype.checkAspectRatio = function (snap) { + if (!this.options.saveAspectRatio) { + return snap; + } + + var updatedSnap = snap.slice(); + var aspectRatio = this.parameters.box.width / this.parameters.box.height; + var newW = this.parameters.box.width + snap[0]; + var newH = this.parameters.box.height - snap[1]; + var newAspectRatio = newW / newH; + + if (newAspectRatio < aspectRatio) { + // Height is too big. Adapt it + updatedSnap[1] = newW / aspectRatio - this.parameters.box.height; + } else if (newAspectRatio > aspectRatio) { + // Width is too big. Adapt it + updatedSnap[0] = this.parameters.box.width - newH * aspectRatio; + } + + return updatedSnap; + + }; + + SVG.extend(SVG.Element, { + // Resize element with mouse + resize: function (options) { + + (this.remember('_resizeHandler') || new ResizeHandler(this)).init(options || {}); + + return this; + + } + + }); + + SVG.Element.prototype.resize.defaults = { + snapToAngle: 0.1, // Specifies the speed the rotation is happening when moving the mouse + snapToGrid: 1, // Snaps to a grid of `snapToGrid` Pixels + constraint: {}, // keep element within constrained box + saveAspectRatio: false // Save aspect ratio when resizing using lt, rt, rb or lb points + }; + + }).call(this); + }()); + + function styleInject(css, ref) { + if ( ref === void 0 ) ref = {}; + var insertAt = ref.insertAt; + + if (!css || typeof document === 'undefined') { return; } + + var head = document.head || document.getElementsByTagName('head')[0]; + var style = document.createElement('style'); + style.type = 'text/css'; + + if (insertAt === 'top') { + if (head.firstChild) { + head.insertBefore(style, head.firstChild); + } else { + head.appendChild(style); + } + } else { + head.appendChild(style); + } + + if (style.styleSheet) { + style.styleSheet.cssText = css; + } else { + style.appendChild(document.createTextNode(css)); + } + } + + var css = ".apexcharts-canvas {\n position: relative;\n user-select: none;\n /* cannot give overflow: hidden as it will crop tooltips which overflow outside chart area */\n}\n\n/* scrollbar is not visible by default for legend, hence forcing the visibility */\n.apexcharts-canvas ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 6px;\n}\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0,0,0,.5);\n box-shadow: 0 0 1px rgba(255,255,255,.5);\n -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);\n}\n\n.apexcharts-inner {\n position: relative;\n}\n\n.legend-mouseover-inactive {\n transition: 0.15s ease all;\n opacity: 0.20;\n}\n\n.apexcharts-series-collapsed {\n opacity: 0;\n}\n\n.apexcharts-gridline, .apexcharts-text {\n pointer-events: none;\n}\n\n.apexcharts-tooltip {\n border-radius: 5px;\n box-shadow: 2px 2px 6px -4px #999;\n cursor: default;\n font-size: 14px;\n left: 62px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n top: 20px;\n overflow: hidden;\n white-space: nowrap;\n z-index: 12;\n transition: 0.15s ease all;\n}\n.apexcharts-tooltip.light {\n border: 1px solid #e3e3e3;\n background: rgba(255, 255, 255, 0.96);\n}\n.apexcharts-tooltip.dark {\n color: #fff;\n background: rgba(30,30,30, 0.8);\n}\n.apexcharts-tooltip * {\n font-family: inherit;\n}\n\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-line {\n pointer-events: none;\n}\n\n.apexcharts-tooltip.active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-tooltip-title {\n padding: 6px;\n font-size: 15px;\n margin-bottom: 4px;\n}\n.apexcharts-tooltip.light .apexcharts-tooltip-title {\n background: #ECEFF1;\n border-bottom: 1px solid #ddd;\n}\n.apexcharts-tooltip.dark .apexcharts-tooltip-title {\n background: rgba(0, 0, 0, 0.7);\n border-bottom: 1px solid #222;\n}\n\n.apexcharts-tooltip-text-value,\n.apexcharts-tooltip-text-z-value {\n display: inline-block;\n font-weight: 600;\n margin-left: 5px;\n}\n\n.apexcharts-tooltip-text-z-label:empty,\n.apexcharts-tooltip-text-z-value:empty {\n display: none;\n}\n\n.apexcharts-tooltip-text-value, \n.apexcharts-tooltip-text-z-value {\n font-weight: 600;\n}\n\n.apexcharts-tooltip-marker {\n width: 12px;\n height: 12px;\n position: relative;\n top: 0px;\n margin-right: 10px;\n border-radius: 50%;\n}\n\n.apexcharts-tooltip-series-group {\n padding: 0 10px;\n display: none;\n text-align: left;\n justify-content: left;\n align-items: center;\n}\n\n.apexcharts-tooltip-series-group.active .apexcharts-tooltip-marker {\n opacity: 1;\n}\n.apexcharts-tooltip-series-group.active, .apexcharts-tooltip-series-group:last-child {\n padding-bottom: 4px;\n}\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px;\n}\n.apexcharts-tooltip-candlestick {\n padding: 4px 8px;\n}\n.apexcharts-tooltip-candlestick > div {\n margin: 4px 0;\n}\n.apexcharts-tooltip-candlestick span.value {\n font-weight: bold;\n}\n\n.apexcharts-xaxistooltip {\n opacity: 0;\n padding: 9px 10px;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n\tbackground: #ECEFF1;\n border: 1px solid #90A4AE;\n transition: 0.15s ease all;\n}\n\n.apexcharts-xaxistooltip:after, .apexcharts-xaxistooltip:before {\n\tleft: 50%;\n\tborder: solid transparent;\n\tcontent: \" \";\n\theight: 0;\n\twidth: 0;\n\tposition: absolute;\n\tpointer-events: none;\n}\n\n.apexcharts-xaxistooltip:after {\n\tborder-color: rgba(236, 239, 241, 0);\n\tborder-width: 6px;\n\tmargin-left: -6px;\n}\n.apexcharts-xaxistooltip:before {\n\tborder-color: rgba(144, 164, 174, 0);\n\tborder-width: 7px;\n\tmargin-left: -7px;\n}\n\n.apexcharts-xaxistooltip-bottom:after, .apexcharts-xaxistooltip-bottom:before {\n bottom: 100%;\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: #ECEFF1;\n}\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: #90A4AE;\n}\n\n.apexcharts-xaxistooltip-top:after, .apexcharts-xaxistooltip-top:before {\n top: 100%;\n}\n.apexcharts-xaxistooltip-top:after {\n border-top-color: #ECEFF1;\n}\n.apexcharts-xaxistooltip-top:before {\n border-top-color: #90A4AE;\n}\n\n.apexcharts-xaxistooltip.active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-yaxistooltip {\n opacity: 0;\n padding: 4px 10px;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n\tbackground: #ECEFF1;\n border: 1px solid #90A4AE;\n}\n\n.apexcharts-yaxistooltip:after, .apexcharts-yaxistooltip:before {\n\ttop: 50%;\n\tborder: solid transparent;\n\tcontent: \" \";\n\theight: 0;\n\twidth: 0;\n\tposition: absolute;\n\tpointer-events: none;\n}\n.apexcharts-yaxistooltip:after {\n\tborder-color: rgba(236, 239, 241, 0);\n\tborder-width: 6px;\n\tmargin-top: -6px;\n}\n.apexcharts-yaxistooltip:before {\n\tborder-color: rgba(144, 164, 174, 0);\n\tborder-width: 7px;\n\tmargin-top: -7px;\n}\n\n.apexcharts-yaxistooltip-left:after, .apexcharts-yaxistooltip-left:before {\n left: 100%;\n}\n.apexcharts-yaxistooltip-left:after {\n border-left-color: #ECEFF1;\n}\n.apexcharts-yaxistooltip-left:before {\n border-left-color: #90A4AE;\n}\n\n.apexcharts-yaxistooltip-right:after, .apexcharts-yaxistooltip-right:before {\n right: 100%;\n}\n.apexcharts-yaxistooltip-right:after {\n border-right-color: #ECEFF1;\n}\n.apexcharts-yaxistooltip-right:before {\n border-right-color: #90A4AE;\n}\n\n.apexcharts-yaxistooltip.active {\n opacity: 1;\n}\n\n.apexcharts-xcrosshairs, .apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: 0.15s ease all;\n}\n\n.apexcharts-xcrosshairs.active, .apexcharts-ycrosshairs.active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-ycrosshairs-hidden {\n opacity: 0;\n}\n\n.apexcharts-zoom-rect {\n pointer-events: none;\n}\n.apexcharts-selection-rect {\n cursor: move;\n}\n\n.svg_select_points, .svg_select_points_rot {\n opacity: 0;\n visibility: hidden;\n}\n.svg_select_points_l, .svg_select_points_r {\n cursor: ew-resize;\n opacity: 1;\n visibility: visible;\n fill: #888;\n}\n.apexcharts-canvas.zoomable .hovering-zoom {\n cursor: crosshair\n}\n.apexcharts-canvas.zoomable .hovering-pan {\n cursor: move\n}\n\n.apexcharts-xaxis,\n.apexcharts-yaxis {\n pointer-events: none;\n}\n\n.apexcharts-zoom-icon, \n.apexcharts-zoom-in-icon,\n.apexcharts-zoom-out-icon,\n.apexcharts-reset-zoom-icon, \n.apexcharts-pan-icon, \n.apexcharts-selection-icon,\n.apexcharts-menu-icon, \n.apexcharts-toolbar-custom-icon {\n cursor: pointer;\n width: 20px;\n height: 20px;\n line-height: 24px;\n color: #6E8192;\n text-align: center;\n}\n\n.apexcharts-zoom-icon svg, \n.apexcharts-zoom-in-icon svg,\n.apexcharts-zoom-out-icon svg,\n.apexcharts-reset-zoom-icon svg,\n.apexcharts-menu-icon svg {\n fill: #6E8192;\n}\n.apexcharts-selection-icon svg {\n fill: #444;\n transform: scale(0.76)\n}\n.apexcharts-zoom-icon.selected svg, \n.apexcharts-selection-icon.selected svg, \n.apexcharts-reset-zoom-icon.selected svg {\n fill: #008FFB;\n}\n.apexcharts-selection-icon:not(.selected):hover svg,\n.apexcharts-zoom-icon:not(.selected):hover svg, \n.apexcharts-zoom-in-icon:hover svg, \n.apexcharts-zoom-out-icon:hover svg, \n.apexcharts-reset-zoom-icon:hover svg, \n.apexcharts-menu-icon:hover svg {\n fill: #333;\n}\n\n.apexcharts-selection-icon, .apexcharts-menu-icon {\n position: relative;\n}\n.apexcharts-reset-zoom-icon {\n margin-left: 5px;\n}\n.apexcharts-zoom-icon, .apexcharts-reset-zoom-icon, .apexcharts-menu-icon {\n transform: scale(0.85);\n}\n\n.apexcharts-zoom-in-icon, .apexcharts-zoom-out-icon {\n transform: scale(0.7)\n}\n\n.apexcharts-zoom-out-icon {\n margin-right: 3px;\n}\n\n.apexcharts-pan-icon {\n transform: scale(0.62);\n position: relative;\n left: 1px;\n top: 0px;\n}\n.apexcharts-pan-icon svg {\n fill: #fff;\n stroke: #6E8192;\n stroke-width: 2;\n}\n.apexcharts-pan-icon.selected svg {\n stroke: #008FFB;\n}\n.apexcharts-pan-icon:not(.selected):hover svg {\n stroke: #333;\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n top: 0px;\n right: 3px;\n max-width: 176px;\n text-align: right;\n border-radius: 3px;\n padding: 0px 6px 2px 6px;\n display: flex;\n justify-content: space-between;\n align-items: center; \n}\n\n.apexcharts-toolbar svg {\n pointer-events: none;\n}\n\n.apexcharts-menu {\n background: #fff;\n position: absolute;\n top: 100%;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 3px;\n right: 10px;\n opacity: 0;\n min-width: 110px;\n transition: 0.15s ease all;\n pointer-events: none;\n}\n\n.apexcharts-menu.open {\n opacity: 1;\n pointer-events: all;\n transition: 0.15s ease all;\n}\n\n.apexcharts-menu-item {\n padding: 6px 7px;\n font-size: 12px;\n cursor: pointer;\n}\n.apexcharts-menu-item:hover {\n background: #eee;\n}\n\n@media screen and (min-width: 768px) {\n .apexcharts-toolbar {\n /*opacity: 0;*/\n }\n\n .apexcharts-canvas:hover .apexcharts-toolbar {\n opacity: 1;\n } \n}\n\n.apexcharts-datalabel.hidden {\n opacity: 0;\n}\n\n.apexcharts-pie-label,\n.apexcharts-datalabel, .apexcharts-datalabel-label, .apexcharts-datalabel-value {\n cursor: default;\n pointer-events: none;\n}\n\n.apexcharts-pie-label-delay {\n opacity: 0;\n animation-name: opaque;\n animation-duration: 0.3s;\n animation-fill-mode: forwards;\n animation-timing-function: ease;\n}\n\n.apexcharts-canvas .hidden {\n opacity: 0;\n}\n\n.apexcharts-hide .apexcharts-series-points {\n opacity: 0;\n}\n\n.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events, .apexcharts-radar-series path, .apexcharts-radar-series polygon {\n pointer-events: none;\n}\n\n/* markers */\n\n.apexcharts-marker {\n transition: 0.15s ease all;\n}\n\n@keyframes opaque {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}"; + styleInject(css); + + /* + * classList.js: Cross-browser full element.classList implementation. + * 1.2.20171210 + * + * By Eli Grey, http://eligrey.com + * License: Dedicated to the public domain. + * See https://github.com/eligrey/classList.js/blob/master/LICENSE.md + */ + + /*global self, document, DOMException */ + + /*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */ + if ("document" in self) { + // Full polyfill for browsers with no classList support + // Including IE < Edge missing SVGElement.classList + if (!("classList" in document.createElement("_")) || document.createElementNS && !("classList" in document.createElementNS("http://www.w3.org/2000/svg", "g"))) { + (function (view) { + + if (!('Element' in view)) return; + + var classListProp = "classList", + protoProp = "prototype", + elemCtrProto = view.Element[protoProp], + objCtr = Object, + strTrim = String[protoProp].trim || function () { + return this.replace(/^\s+|\s+$/g, ""); + }, + arrIndexOf = Array[protoProp].indexOf || function (item) { + var i = 0, + len = this.length; + + for (; i < len; i++) { + if (i in this && this[i] === item) { + return i; + } + } + + return -1; + } // Vendors: please allow content code to instantiate DOMExceptions + , + DOMEx = function DOMEx(type, message) { + this.name = type; + this.code = DOMException[type]; + this.message = message; + }, + checkTokenAndGetIndex = function checkTokenAndGetIndex(classList, token) { + if (token === "") { + throw new DOMEx("SYNTAX_ERR", "The token must not be empty."); + } + + if (/\s/.test(token)) { + throw new DOMEx("INVALID_CHARACTER_ERR", "The token must not contain space characters."); + } + + return arrIndexOf.call(classList, token); + }, + ClassList = function ClassList(elem) { + var trimmedClasses = strTrim.call(elem.getAttribute("class") || ""), + classes = trimmedClasses ? trimmedClasses.split(/\s+/) : [], + i = 0, + len = classes.length; + + for (; i < len; i++) { + this.push(classes[i]); + } + + this._updateClassName = function () { + elem.setAttribute("class", this.toString()); + }; + }, + classListProto = ClassList[protoProp] = [], + classListGetter = function classListGetter() { + return new ClassList(this); + }; // Most DOMException implementations don't allow calling DOMException's toString() + // on non-DOMExceptions. Error's toString() is sufficient here. + + + DOMEx[protoProp] = Error[protoProp]; + + classListProto.item = function (i) { + return this[i] || null; + }; + + classListProto.contains = function (token) { + return ~checkTokenAndGetIndex(this, token + ""); + }; + + classListProto.add = function () { + var tokens = arguments, + i = 0, + l = tokens.length, + token, + updated = false; + + do { + token = tokens[i] + ""; + + if (!~checkTokenAndGetIndex(this, token)) { + this.push(token); + updated = true; + } + } while (++i < l); + + if (updated) { + this._updateClassName(); + } + }; + + classListProto.remove = function () { + var tokens = arguments, + i = 0, + l = tokens.length, + token, + updated = false, + index; + + do { + token = tokens[i] + ""; + index = checkTokenAndGetIndex(this, token); + + while (~index) { + this.splice(index, 1); + updated = true; + index = checkTokenAndGetIndex(this, token); + } + } while (++i < l); + + if (updated) { + this._updateClassName(); + } + }; + + classListProto.toggle = function (token, force) { + var result = this.contains(token), + method = result ? force !== true && "remove" : force !== false && "add"; + + if (method) { + this[method](token); + } + + if (force === true || force === false) { + return force; + } else { + return !result; + } + }; + + classListProto.replace = function (token, replacement_token) { + var index = checkTokenAndGetIndex(token + ""); + + if (~index) { + this.splice(index, 1, replacement_token); + + this._updateClassName(); + } + }; + + classListProto.toString = function () { + return this.join(" "); + }; + + if (objCtr.defineProperty) { + var classListPropDesc = { + get: classListGetter, + enumerable: true, + configurable: true + }; + + try { + objCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc); + } catch (ex) { + // IE 8 doesn't support enumerable:true + // adding undefined to fight this issue https://github.com/eligrey/classList.js/issues/36 + // modernie IE8-MSW7 machine has IE8 8.0.6001.18702 and is affected + if (ex.number === undefined || ex.number === -0x7FF5EC54) { + classListPropDesc.enumerable = false; + objCtr.defineProperty(elemCtrProto, classListProp, classListPropDesc); + } + } + } else if (objCtr[protoProp].__defineGetter__) { + elemCtrProto.__defineGetter__(classListProp, classListGetter); + } + })(self); + } // There is full or partial native classList support, so just check if we need + // to normalize the add/remove and toggle APIs. + + + (function () { + + var testElement = document.createElement("_"); + testElement.classList.add("c1", "c2"); // Polyfill for IE 10/11 and Firefox <26, where classList.add and + // classList.remove exist but support only one argument at a time. + + if (!testElement.classList.contains("c2")) { + var createMethod = function createMethod(method) { + var original = DOMTokenList.prototype[method]; + + DOMTokenList.prototype[method] = function (token) { + var i, + len = arguments.length; + + for (i = 0; i < len; i++) { + token = arguments[i]; + original.call(this, token); + } + }; + }; + + createMethod('add'); + createMethod('remove'); + } + + testElement.classList.toggle("c3", false); // Polyfill for IE 10 and Firefox <24, where classList.toggle does not + // support the second argument. + + if (testElement.classList.contains("c3")) { + var _toggle = DOMTokenList.prototype.toggle; + + DOMTokenList.prototype.toggle = function (token, force) { + if (1 in arguments && !this.contains(token) === !force) { + return force; + } else { + return _toggle.call(this, token); + } + }; + } // replace() polyfill + + + if (!("replace" in document.createElement("_").classList)) { + DOMTokenList.prototype.replace = function (token, replacement_token) { + var tokens = this.toString().split(" "), + index = tokens.indexOf(token + ""); + + if (~index) { + tokens = tokens.slice(index); + this.remove.apply(this, tokens); + this.add(replacement_token); + this.add.apply(this, tokens.slice(1)); + } + }; + } + + testElement = null; + })(); + } + + /** + * Detect Element Resize + * + * https://github.com/sdecima/javascript-detect-element-resize + * Sebastian Decima + * + * version: 0.5.3 + **/ + (function () { + var stylesCreated = false; + + function resetTriggers(element) { + var triggers = element.__resizeTriggers__, + expand = triggers.firstElementChild, + contract = triggers.lastElementChild, + expandChild = expand.firstElementChild; + contract.scrollLeft = contract.scrollWidth; + contract.scrollTop = contract.scrollHeight; + expandChild.style.width = expand.offsetWidth + 1 + 'px'; + expandChild.style.height = expand.offsetHeight + 1 + 'px'; + expand.scrollLeft = expand.scrollWidth; + expand.scrollTop = expand.scrollHeight; + } + + function checkTriggers(element) { + return element.offsetWidth != element.__resizeLast__.width || element.offsetHeight != element.__resizeLast__.height; + } + + function scrollListener(e) { + var element = this; + resetTriggers(this); + if (this.__resizeRAF__) cancelFrame(this.__resizeRAF__); + this.__resizeRAF__ = requestFrame(function () { + if (checkTriggers(element)) { + element.__resizeLast__.width = element.offsetWidth; + element.__resizeLast__.height = element.offsetHeight; + + element.__resizeListeners__.forEach(function (fn) { + fn.call(e); + }); + } + }); + } + + function createStyles() { + if (!stylesCreated) { + // opacity:0 works around a chrome bug https://code.google.com/p/chromium/issues/detail?id=286360 + var css = (animationKeyframes || '') + '.resize-triggers { ' + (animationStyle || '') + 'visibility: hidden; opacity: 0; } ' + '.resize-triggers, .resize-triggers > div, .contract-trigger:before { content: \" \"; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }', + head = document.head || document.getElementsByTagName('head')[0], + style = document.createElement('style'); + style.type = 'text/css'; + + if (style.styleSheet) { + style.styleSheet.cssText = css; + } else { + style.appendChild(document.createTextNode(css)); + } + + head.appendChild(style); + stylesCreated = true; + } + } + + var requestFrame = function () { + var raf = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || function (fn) { + return window.setTimeout(fn, 20); + }; + + return function (fn) { + return raf(fn); + }; + }(); + + var cancelFrame = function () { + var cancel = window.cancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || window.clearTimeout; + return function (id) { + return cancel(id); + }; + }(); + /* Detect CSS Animations support to detect element display/re-attach */ + + + var animation = false, + keyframeprefix = '', + animationstartevent = 'animationstart', + domPrefixes = 'Webkit Moz O ms'.split(' '), + startEvents = 'webkitAnimationStart animationstart oAnimationStart MSAnimationStart'.split(' '), + pfx = ''; + { + var elm = document.createElement('fakeelement'); + + if (elm.style.animationName !== undefined) { + animation = true; + } + + if (animation === false) { + for (var i = 0; i < domPrefixes.length; i++) { + if (elm.style[domPrefixes[i] + 'AnimationName'] !== undefined) { + pfx = domPrefixes[i]; + keyframeprefix = '-' + pfx.toLowerCase() + '-'; + animationstartevent = startEvents[i]; + break; + } + } + } + } + var animationName = 'resizeanim'; + var animationKeyframes = '@' + keyframeprefix + 'keyframes ' + animationName + ' { from { opacity: 0; } to { opacity: 0; } } '; + var animationStyle = keyframeprefix + 'animation: 1ms ' + animationName + '; '; + + window.addResizeListener = function (element, fn) { + if (!element.__resizeTriggers__) { + if (getComputedStyle(element).position == 'static') element.style.position = 'relative'; + createStyles(); + element.__resizeLast__ = {}; + element.__resizeListeners__ = []; + (element.__resizeTriggers__ = document.createElement('div')).className = 'resize-triggers'; + element.__resizeTriggers__.innerHTML = '
' + '
'; + element.appendChild(element.__resizeTriggers__); + resetTriggers(element); + element.addEventListener('scroll', scrollListener, true); + /* Listen for a css animation to detect element display/re-attach */ + + animationstartevent && element.__resizeTriggers__.addEventListener(animationstartevent, function (e) { + if (e.animationName == animationName) { + resetTriggers(element); + } + }); + } + + element.__resizeListeners__.push(fn); + }; + + window.removeResizeListener = function (element, fn) { + if (element) { + element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1); + + if (!element.__resizeListeners__.length) { + element.removeEventListener('scroll', scrollListener); + element.__resizeTriggers__ = !element.removeChild(element.__resizeTriggers__); + } + } + }; + })(); + + window.Apex = {}; + /** + * + * @module ApexCharts + **/ + + var ApexCharts$1 = + /*#__PURE__*/ + function () { + function ApexCharts(el, opts) { + _classCallCheck(this, ApexCharts); + + this.opts = opts; + this.ctx = this; // Pass the user supplied options to the Base Class where these options will be extended with defaults. The returned object from Base Class will become the config object in the entire codebase. + + this.w = new Base(opts).init(); + this.el = el; + this.w.globals.cuid = (Math.random() + 1).toString(36).substring(4); + this.w.globals.chartID = this.w.config.chart.id ? this.w.config.chart.id : this.w.globals.cuid; + this.initModules(); + this.create = Utils.bind(this.create, this); + this.windowResizeHandler = this.windowResize.bind(this); + } + /** + * The primary method user will call to render the chart. + */ + + + _createClass(ApexCharts, [{ + key: "render", + value: function render() { + var _this = this; + + // main method + return new Promise$1(function (resolve, reject) { + // only draw chart, if element found + if (_this.el !== null) { + if (typeof Apex._chartInstances === 'undefined') { + Apex._chartInstances = []; + } + + if (_this.w.config.chart.id) { + Apex._chartInstances.push({ + id: _this.w.globals.chartID, + group: _this.w.config.chart.group, + chart: _this + }); + } // set the locale here + + + _this.setLocale(_this.w.config.chart.defaultLocale); + + var beforeMount = _this.w.config.chart.events.beforeMount; + + if (typeof beforeMount === 'function') { + beforeMount(_this, _this.w); + } + + _this.fireEvent('beforeMount', [_this, _this.w]); + + window.addEventListener('resize', _this.windowResizeHandler); + window.addResizeListener(_this.el.parentNode, _this.parentResizeCallback.bind(_this)); + + var graphData = _this.create(_this.w.config.series, {}); + + if (!graphData) return resolve(_this); + + _this.mount(graphData).then(function () { + resolve(graphData); + + if (typeof _this.w.config.chart.events.mounted === 'function') { + _this.w.config.chart.events.mounted(_this, _this.w); + } + + _this.fireEvent('mounted', [_this, _this.w]); + }).catch(function (e) { + reject(e); // handle error in case no data or element not found + }); + } else { + reject(new Error('Element not found')); + } + }); + } + }, { + key: "initModules", + value: function initModules() { + this.animations = new Animations(this.ctx); + this.annotations = new Annotations(this.ctx); + this.core = new Core(this.el, this); + this.grid = new Grid(this); + this.coreUtils = new CoreUtils(this); + this.config = new Config({}); + this.crosshairs = new Crosshairs(this.ctx); + this.options = new Options(); + this.responsive = new Responsive(this.ctx); + this.series = new Series(this.ctx); + this.theme = new Theme(this.ctx); + this.formatters = new Formatters(this.ctx); + this.titleSubtitle = new TitleSubtitle(this.ctx); + this.legend = new Legend(this.ctx); + this.toolbar = new Toolbar(this.ctx); + this.dimensions = new Dimensions(this.ctx); + this.zoomPanSelection = new ZoomPanSelection(this.ctx); + this.w.globals.tooltip = new Tooltip(this.ctx); + } + }, { + key: "addEventListener", + value: function addEventListener(name$$1, handler) { + var w = this.w; + + if (w.globals.events.hasOwnProperty(name$$1)) { + w.globals.events[name$$1].push(handler); + } else { + w.globals.events[name$$1] = [handler]; + } + } + }, { + key: "removeEventListener", + value: function removeEventListener(name$$1, handler) { + var w = this.w; + + if (!w.globals.events.hasOwnProperty(name$$1)) { + return; + } + + var index = w.globals.events[name$$1].indexOf(handler); + + if (index !== -1) { + w.globals.events[name$$1].splice(index, 1); + } + } + }, { + key: "fireEvent", + value: function fireEvent(name$$1, args) { + var w = this.w; + + if (!w.globals.events.hasOwnProperty(name$$1)) { + return; + } + + if (!args || !args.length) { + args = []; + } + + var evs = w.globals.events[name$$1]; + var l = evs.length; + + for (var i = 0; i < l; i++) { + evs[i].apply(null, args); + } + } + }, { + key: "create", + value: function create(ser, opts) { + var w = this.w; + this.initModules(); + var gl = this.w.globals; + gl.noData = false; + gl.animationEnded = false; + this.responsive.checkResponsiveConfig(opts); + + if (this.el === null) { + gl.animationEnded = true; + return null; + } + + this.core.setupElements(); + + if (gl.svgWidth === 0) { + // if the element is hidden, skip drawing + gl.animationEnded = true; + return null; + } + + var combo = CoreUtils.checkComboSeries(ser); + gl.comboCharts = combo.comboCharts; + gl.comboChartsHasBars = combo.comboChartsHasBars; + + if (ser.length === 0 || ser.length === 1 && ser[0].data && ser[0].data.length === 0) { + this.series.handleNoData(); + } + + this.setupEventHandlers(); + this.core.parseData(ser); // this is a good time to set theme colors first + + this.theme.init(); // labelFormatters should be called before dimensions as in dimensions we need text labels width + // as markers accepts array, we need to setup global markers for easier access + + var markers = new Markers(this); + markers.setGlobalMarkerSize(); + this.formatters.setLabelFormatters(); + this.titleSubtitle.draw(); // legend is calculated here before coreCalculations because it affects the plottable area + + this.legend.init(); // check whether in multiple series, all series share the same X + + this.series.hasAllSeriesEqualX(); // coreCalculations will give the min/max range and yaxis/axis values. It should be called here to set series variable from config to globals + + if (gl.axisCharts) { + this.core.coreCalculations(); + + if (w.config.xaxis.type !== 'category') { + // as we have minX and maxX values, determine the default DateTimeFormat for time series + this.formatters.setLabelFormatters(); + } + } // we need to generate yaxis for heatmap separately as we are not showing numerics there, but seriesNames. There are some tweaks which are required for heatmap to align labels correctly which are done in below function + // Also we need to do this before calcuting Dimentions plotCoords() method of Dimensions + + + this.formatters.heatmapLabelFormatters(); // We got plottable area here, next task would be to calculate axis areas + + this.dimensions.plotCoords(); + var xyRatios = this.core.xySettings(); + this.grid.createGridMask(); + var elGraph = this.core.plotChartType(ser, xyRatios); // after all the drawing calculations, shift the graphical area (actual charts/bars) excluding legends + + this.core.shiftGraphPosition(); + var dim = { + plot: { + left: w.globals.translateX, + top: w.globals.translateY, + width: w.globals.gridWidth, + height: w.globals.gridHeight + } + }; + return { + elGraph: elGraph, + xyRatios: xyRatios, + elInner: w.globals.dom.elGraphical, + dimensions: dim + }; + } + }, { + key: "mount", + value: function mount() { + var graphData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + var me = this; + var w = me.w; + return new Promise$1(function (resolve, reject) { + // no data to display + if (me.el === null) { + return reject(new Error('Not enough data to display or target element not found')); + } else if (graphData === null || w.globals.allSeriesCollapsed) { + me.series.handleNoData(); + } + + me.core.drawAxis(w.config.chart.type, graphData.xyRatios); + me.grid = new Grid(me); + + if (w.config.grid.position === 'back') { + me.grid.drawGrid(); + } + + if (w.config.annotations.position === 'back') { + me.annotations.drawAnnotations(); + } + + if (graphData.elGraph instanceof Array) { + for (var g = 0; g < graphData.elGraph.length; g++) { + w.globals.dom.elGraphical.add(graphData.elGraph[g]); + } + } else { + w.globals.dom.elGraphical.add(graphData.elGraph); + } + + if (w.config.grid.position === 'front') { + me.grid.drawGrid(); + } + + if (w.config.xaxis.crosshairs.position === 'front') { + me.crosshairs.drawXCrosshairs(); + } + + if (w.config.yaxis[0].crosshairs.position === 'front') { + me.crosshairs.drawYCrosshairs(); + } + + if (w.config.annotations.position === 'front') { + me.annotations.drawAnnotations(); + } + + if (!w.globals.noData) { + // draw tooltips at the end + if (w.config.tooltip.enabled && !w.globals.noData) { + me.w.globals.tooltip.drawTooltip(graphData.xyRatios); + } + + if (w.globals.axisCharts && w.globals.isXNumeric) { + if (w.config.chart.zoom.enabled || w.config.chart.selection && w.config.chart.selection.enabled || w.config.chart.pan && w.config.chart.pan.enabled) { + me.zoomPanSelection.init({ + xyRatios: graphData.xyRatios + }); + } + } else { + var tools = w.config.chart.toolbar.tools; + tools.zoom = false; + tools.zoomin = false; + tools.zoomout = false; + tools.selection = false; + tools.pan = false; + tools.reset = false; + } + + if (w.config.chart.toolbar.show && !w.globals.allSeriesCollapsed) { + me.toolbar.createToolbar(); + } + } + + if (w.globals.memory.methodsToExec.length > 0) { + w.globals.memory.methodsToExec.forEach(function (fn) { + fn.method(fn.params, false, fn.context); + }); + } + + resolve(me); + }); + } + }, { + key: "clearPreviousPaths", + value: function clearPreviousPaths() { + var w = this.w; + w.globals.previousPaths = []; + w.globals.allSeriesCollapsed = false; + w.globals.collapsedSeries = []; + w.globals.collapsedSeriesIndices = []; + } + /** + * Allows users to update Options after the chart has rendered. + * + * @param {object} options - A new config object can be passed which will be merged with the existing config object + * @param {boolean} redraw - should redraw from beginning or should use existing paths and redraw from there + * @param {boolean} animate - should animate or not on updating Options + */ + + }, { + key: "updateOptions", + value: function updateOptions(options$$1) { + var redraw = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + var animate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + var overwriteInitialConfig = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true; + var w = this.w; + + if (options$$1.series) { + if (options$$1.series[0].data) { + options$$1.series = options$$1.series.map(function (s, i) { + return _objectSpread({}, w.config.series[i], { + name: s.name ? s.name : w.config.series[i].name, + type: s.type, + data: s.data + }); + }); + } // user updated the series via updateOptions() function. + // Hence, we need to reset axis min/max to avoid zooming issues + + + this.revertDefaultAxisMinMax(); + } // user has set x-axis min/max externally - hence we need to forcefully set the xaxis min/max + + + if (options$$1.xaxis) { + if (options$$1.xaxis.min || options$$1.xaxis.max) { + this.forceXAxisUpdate(options$$1); + } + /* fixes apexcharts.js#369 and react-apexcharts#46 */ + + + if (options$$1.xaxis.categories && options$$1.xaxis.categories.length && w.config.xaxis.convertedCatToNumeric) { + options$$1 = Defaults.convertCatToNumeric(options$$1); + } + } + + if (w.globals.collapsedSeriesIndices.length > 0) { + this.clearPreviousPaths(); + } + + return this._updateOptions(options$$1, redraw, animate, overwriteInitialConfig); + } + /** + * private method to update Options. + * + * @param {object} options - A new config object can be passed which will be merged with the existing config object + * @param {boolean} redraw - should redraw from beginning or should use existing paths and redraw from there + * @param {boolean} animate - should animate or not on updating Options + * @param {boolean} overwriteInitialConfig - should update the initial config or not + */ + + }, { + key: "_updateOptions", + value: function _updateOptions(options$$1) { + var redraw = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + var animate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + var overwriteInitialConfig = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false; + var charts = this.getSyncedCharts(); + charts.forEach(function (ch) { + var w = ch.w; + w.globals.shouldAnimate = animate; + + if (!redraw) { + w.globals.resized = true; + w.globals.dataChanged = true; + + if (animate) { + ch.series.getPreviousPaths(); + } + } + + if (options$$1 && _typeof(options$$1) === 'object') { + ch.config = new Config(options$$1); + options$$1 = CoreUtils.extendArrayProps(ch.config, options$$1); + w.config = Utils.extend(w.config, options$$1); + + if (overwriteInitialConfig) { + // we need to forget the lastXAxis and lastYAxis is user forcefully overwriteInitialConfig. If we do not do this, and next time when user zooms the chart after setting yaxis.min/max or xaxis.min/max - the stored lastXAxis will never allow the chart to use the updated min/max by user. + w.globals.lastXAxis = []; + w.globals.lastYAxis = []; // After forgetting lastAxes, we need to restore the new config in initialConfig/initialSeries + + w.globals.initialConfig = Utils.extend({}, w.config); + w.globals.initialSeries = JSON.parse(JSON.stringify(w.config.series)); + } + } + + return ch.update(options$$1); + }); + } + /** + * Allows users to update Series after the chart has rendered. + * + * @param {array} series - New series which will override the existing + */ + + }, { + key: "updateSeries", + value: function updateSeries() { + var newSeries = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : []; + var animate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var overwriteInitialSeries = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; + this.revertDefaultAxisMinMax(); + return this._updateSeries(newSeries, animate, overwriteInitialSeries); + } + /** + * Allows users to append a new series after the chart has rendered. + * + * @param {array} newSerie - New serie which will be appended to the existing series + */ + + }, { + key: "appendSeries", + value: function appendSeries(newSerie) { + var animate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var newSeries = this.w.config.series.slice(); + newSeries.push(newSerie); + this.revertDefaultAxisMinMax(); + return this._updateSeries(newSeries, animate); + } + /** + * Private method to update Series. + * + * @param {array} series - New series which will override the existing + */ + + }, { + key: "_updateSeries", + value: function _updateSeries(newSeries, animate) { + var overwriteInitialSeries = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; + var w = this.w; + this.w.globals.shouldAnimate = animate; + w.globals.dataChanged = true; // if user has collapsed some series with legend, we need to clear those + + if (w.globals.allSeriesCollapsed) { + w.globals.allSeriesCollapsed = false; + } + + if (animate) { + this.series.getPreviousPaths(); + } + + var existingSeries; // axis charts + + if (newSeries[0].data) { + existingSeries = newSeries.map(function (s, i) { + return _objectSpread({}, w.config.series[i], { + name: s.name ? s.name : w.config.series[i].name, + type: s.type, + data: s.data + }); + }); + w.config.series = existingSeries; + } else { + // non-axis chart (pie/radialbar) + w.config.series = newSeries.slice(); + } + + if (overwriteInitialSeries) { + w.globals.initialConfig.series = JSON.parse(JSON.stringify(w.config.series)); + w.globals.initialSeries = JSON.parse(JSON.stringify(w.config.series)); + } + + return this.update(); + } + /** + * Get all charts in the same "group" (including the instance which is called upon) to sync them when user zooms in/out or pan. + */ + + }, { + key: "getSyncedCharts", + value: function getSyncedCharts() { + var chartGroups = this.getGroupedCharts(); + var allCharts = [this]; + + if (chartGroups.length) { + allCharts = []; + chartGroups.forEach(function (ch) { + allCharts.push(ch); + }); + } + + return allCharts; + } + /** + * Get charts in the same "group" (excluding the instance which is called upon) to perform operations on the other charts of the same group (eg., tooltip hovering) + */ + + }, { + key: "getGroupedCharts", + value: function getGroupedCharts() { + var _this2 = this; + + return Apex._chartInstances.filter(function (ch) { + if (ch.group) { + return true; + } + }).map(function (ch) { + return _this2.w.config.chart.group === ch.group ? ch.chart : _this2; + }); + } + /** + * Allows users to append Data to series. + * + * @param {array} newData - New data in the same format as series + */ + + }, { + key: "appendData", + value: function appendData(newData) { + var overwriteInitialSeries = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var me = this; + me.w.globals.dataChanged = true; + me.series.getPreviousPaths(); + var newSeries = me.w.config.series.slice(); + + for (var i = 0; i < newSeries.length; i++) { + if (typeof newData[i] !== 'undefined') { + for (var j = 0; j < newData[i].data.length; j++) { + newSeries[i].data.push(newData[i].data[j]); + } + } + } + + me.w.config.series = newSeries; + + if (overwriteInitialSeries) { + me.w.globals.initialSeries = JSON.parse(JSON.stringify(me.w.config.series)); + } + + return this.update(); + } + }, { + key: "update", + value: function update(options$$1) { + var _this3 = this; + + return new Promise$1(function (resolve, reject) { + _this3.clear(); + + var graphData = _this3.create(_this3.w.config.series, options$$1); + + if (!graphData) return resolve(_this3); + + _this3.mount(graphData).then(function () { + if (typeof _this3.w.config.chart.events.updated === 'function') { + _this3.w.config.chart.events.updated(_this3, _this3.w); + } + + _this3.fireEvent('updated', [_this3, _this3.w]); + + _this3.w.globals.isDirty = true; + resolve(_this3); + }).catch(function (e) { + reject(e); + }); + }); + } + }, { + key: "forceXAxisUpdate", + value: function forceXAxisUpdate(options$$1) { + var w = this.w; + + if (typeof options$$1.xaxis.min !== 'undefined') { + w.config.xaxis.min = options$$1.xaxis.min; + w.globals.lastXAxis.min = options$$1.xaxis.min; + } + + if (typeof options$$1.xaxis.max !== 'undefined') { + w.config.xaxis.max = options$$1.xaxis.max; + w.globals.lastXAxis.max = options$$1.xaxis.max; + } + } + /** + * This function reverts the yaxis and xaxis min/max values to what it was when the chart was defined. + * This function fixes an important bug where a user might load a new series after zooming in/out of previous series which resulted in wrong min/max + * Also, this should never be called internally on zoom/pan - the reset should only happen when user calls the updateSeries() function externally + */ + + }, { + key: "revertDefaultAxisMinMax", + value: function revertDefaultAxisMinMax() { + var w = this.w; + w.config.xaxis.min = w.globals.lastXAxis.min; + w.config.xaxis.max = w.globals.lastXAxis.max; + w.config.yaxis.map(function (yaxe, index) { + if (w.globals.zoomed) { + // if user has zoomed, and this function is called + // then we need to get the lastAxis min and max + if (typeof w.globals.lastYAxis[index] !== 'undefined') { + yaxe.min = w.globals.lastYAxis[index].min; + yaxe.max = w.globals.lastYAxis[index].max; + } + } + }); + } + }, { + key: "clear", + value: function clear() { + if (this.zoomPanSelection) { + this.zoomPanSelection.destroy(); + } + + if (this.toolbar) { + this.toolbar.destroy(); + } + + this.animations = null; + this.annotations = null; + this.core = null; + this.grid = null; + this.series = null; + this.responsive = null; + this.theme = null; + this.formatters = null; + this.titleSubtitle = null; + this.legend = null; + this.dimensions = null; + this.options = null; + this.crosshairs = null; + this.zoomPanSelection = null; + this.toolbar = null; + this.w.globals.tooltip = null; + this.clearDomElements(); + } + }, { + key: "killSVG", + value: function killSVG(draw) { + return new Promise$1(function (resolve, reject) { + draw.each(function (i, children) { + this.removeClass('*'); + this.off(); + this.stop(); + }, true); + draw.ungroup(); + draw.clear(); + resolve('done'); + }); + } + }, { + key: "clearDomElements", + value: function clearDomElements() { + var domEls = this.w.globals.dom; + + if (this.el !== null) { + // remove all child elements - resetting the whole chart + while (this.el.firstChild) { + this.el.removeChild(this.el.firstChild); + } + } + + this.killSVG(domEls.Paper); + domEls.Paper.remove(); + domEls.elWrap = null; + domEls.elGraphical = null; + domEls.elLegendWrap = null; + domEls.baseEl = null; + domEls.elGridRect = null; + domEls.elGridRectMask = null; + domEls.elGridRectMarkerMask = null; + domEls.elDefs = null; + } + /** + * Destroy the chart instance by removing all elements which also clean up event listeners on those elements. + */ + + }, { + key: "destroy", + value: function destroy() { + this.clear(); // remove the chart's instance from the global Apex._chartInstances + + var chartID = this.w.config.chart.id; + + if (chartID) { + Apex._chartInstances.forEach(function (c, i) { + if (c.id === chartID) { + Apex._chartInstances.splice(i, 1); + } + }); + } + + window.removeEventListener('resize', this.windowResizeHandler); + window.removeResizeListener(this.el.parentNode, this.parentResizeCallback.bind(this)); + } + /** + * Allows the user to provide data attrs in the element and the chart will render automatically when this method is called by searching for the elements containing 'data-apexcharts' attribute + */ + + }, { + key: "toggleSeries", + value: function toggleSeries(seriesName) { + var targetElement = this.series.getSeriesByName(seriesName); + var seriesCnt = parseInt(targetElement.getAttribute('data:realIndex')); + var isHidden = targetElement.classList.contains('apexcharts-series-collapsed'); + this.legend.toggleDataSeries(seriesCnt, isHidden); + } + }, { + key: "resetToggleSeries", + value: function resetToggleSeries() { + this.legend.resetToggleDataSeries(); + } + }, { + key: "setupEventHandlers", + value: function setupEventHandlers() { + var w = this.w; + var me = this; + var clickableArea = w.globals.dom.baseEl.querySelector(w.globals.chartClass); + var eventList = ['mousedown', 'mousemove', 'touchstart', 'touchmove', 'mouseup', 'touchend']; + eventList.forEach(function (event) { + clickableArea.addEventListener(event, function (e) { + if (e.type === 'mousedown' && e.which === 1) ; else if (e.type === 'mouseup' && e.which === 1 || e.type === 'touchend') { + if (typeof w.config.chart.events.click === 'function') { + w.config.chart.events.click(e, me, w); + } + + me.fireEvent('click', [e, me, w]); + } + }, { + capture: false, + passive: true + }); + }); + this.core.setupBrushHandler(); + } + }, { + key: "addXaxisAnnotation", + value: function addXaxisAnnotation(opts) { + var pushToMemory = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined; + var me = this; + + if (context) { + me = context; + } + + me.annotations.addXaxisAnnotationExternal(opts, pushToMemory, me); + } + }, { + key: "addYaxisAnnotation", + value: function addYaxisAnnotation(opts) { + var pushToMemory = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined; + var me = this; + + if (context) { + me = context; + } + + me.annotations.addYaxisAnnotationExternal(opts, pushToMemory, me); + } + }, { + key: "addPointAnnotation", + value: function addPointAnnotation(opts) { + var pushToMemory = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined; + var me = this; + + if (context) { + me = context; + } + + me.annotations.addPointAnnotationExternal(opts, pushToMemory, me); + } + }, { + key: "clearAnnotations", + value: function clearAnnotations() { + var context = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : undefined; + var me = this; + + if (context) { + me = context; + } + + me.annotations.clearAnnotations(me); + } // This method is never used internally and will be only called externally on the chart instance. + // Hence, we need to keep all these elements in memory when the chart gets updated and redraw again + + }, { + key: "addText", + value: function addText(options$$1) { + var pushToMemory = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true; + var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined; + var me = this; + + if (context) { + me = context; + } + + me.annotations.addText(options$$1, pushToMemory, me); + } + }, { + key: "getChartArea", + value: function getChartArea() { + var el = this.w.globals.dom.baseEl.querySelector('.apexcharts-inner'); + return el; + } + }, { + key: "getSeriesTotalXRange", + value: function getSeriesTotalXRange(minX, maxX) { + return this.coreUtils.getSeriesTotalsXRange(minX, maxX); + } + }, { + key: "getHighestValueInSeries", + value: function getHighestValueInSeries() { + var seriesIndex = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; + var range = new Range$1(this.ctx); + var minYmaxY = range.getMinYMaxY(seriesIndex); + return minYmaxY.highestY; + } + }, { + key: "getLowestValueInSeries", + value: function getLowestValueInSeries() { + var seriesIndex = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0; + var range = new Range$1(this.ctx); + var minYmaxY = range.getMinYMaxY(seriesIndex); + return minYmaxY.lowestY; + } + }, { + key: "getSeriesTotal", + value: function getSeriesTotal() { + return this.w.globals.seriesTotals; + } + }, { + key: "setLocale", + value: function setLocale(localeName) { + this.setCurrentLocaleValues(localeName); + } + }, { + key: "setCurrentLocaleValues", + value: function setCurrentLocaleValues(localeName) { + var locales = this.w.config.chart.locales; // check if user has specified locales in global Apex variable + // if yes - then extend those with local chart's locale + + if (window.Apex.chart && window.Apex.chart.locales && window.Apex.chart.locales.length > 0) { + locales = this.w.config.chart.locales.concat(window.Apex.chart.locales); + } // find the locale from the array of locales which user has set (either by chart.defaultLocale or by calling setLocale() method.) + + + var selectedLocale = locales.filter(function (c) { + return c.name === localeName; + })[0]; + + if (selectedLocale) { + // create a complete locale object by extending defaults so you don't get undefined errors. + var ret = Utils.extend(en, selectedLocale); // store these locale options in global var for ease access + + this.w.globals.locale = ret.options; + } else { + throw new Error('Wrong locale name provided. Please make sure you set the correct locale name in options'); + } + } + }, { + key: "svgUrl", + value: function svgUrl() { + var exp = new Exports(this.ctx); + return exp.svgUrl(); + } + }, { + key: "dataURI", + value: function dataURI() { + var exp = new Exports(this.ctx); + return exp.dataURI(); + } + }, { + key: "paper", + value: function paper() { + return this.w.globals.dom.Paper; + } + }, { + key: "parentResizeCallback", + value: function parentResizeCallback() { + if (this.w.globals.animationEnded) { + this.windowResize(); + } + } + /** + * Handle window resize and re-draw the whole chart. + */ + + }, { + key: "windowResize", + value: function windowResize() { + var _this4 = this; + + clearTimeout(this.w.globals.resizeTimer); + this.w.globals.resizeTimer = window.setTimeout(function () { + _this4.w.globals.resized = true; + _this4.w.globals.dataChanged = false; // we need to redraw the whole chart on window resize (with a small delay). + + _this4.update(); + }, 150); + } + }], [{ + key: "initOnLoad", + value: function initOnLoad() { + var els = document.querySelectorAll('[data-apexcharts]'); + + for (var i = 0; i < els.length; i++) { + var el = els[i]; + var options$$1 = JSON.parse(els[i].getAttribute('data-options')); + var apexChart = new ApexCharts(el, options$$1); + apexChart.render(); + } + } + /** + * This static method allows users to call chart methods without necessarily from the + * instance of the chart in case user has assigned chartID to the targetted chart. + * The chartID is used for mapping the instance stored in Apex._chartInstances global variable + * + * This is helpful in cases when you don't have reference of the chart instance + * easily and need to call the method from anywhere. + * For eg, in React/Vue applications when you have many parent/child components, + * and need easy reference to other charts for performing dynamic operations + * + * @param {string} chartID - The unique identifier which will be used to call methods + * on that chart instance + * @param {function} fn - The method name to call + * @param {object} opts - The parameters which are accepted in the original method will be passed here in the same order. + */ + + }, { + key: "exec", + value: function exec(chartID, fn) { + var chart = this.getChartByID(chartID); + if (!chart) return; + + for (var _len = arguments.length, opts = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { + opts[_key - 2] = arguments[_key]; + } + + switch (fn) { + case 'updateOptions': + { + return chart.updateOptions.apply(chart, opts); + } + + case 'updateSeries': + { + return chart.updateSeries.apply(chart, opts); + } + + case 'appendData': + { + return chart.appendData.apply(chart, opts); + } + + case 'addXaxisAnnotation': + { + return chart.addXaxisAnnotation.apply(chart, opts); + } + + case 'addYaxisAnnotation': + { + return chart.addYaxisAnnotation.apply(chart, opts); + } + + case 'addPointAnnotation': + { + return chart.addPointAnnotation.apply(chart, opts); + } + + case 'clearAnnotations': + { + return chart.clearAnnotations.apply(chart, opts); + } + + case 'destroy': + { + return chart.destroy(); + } + } + } + }, { + key: "merge", + value: function merge(target, source) { + return Utils.extend(target, source); + } + }, { + key: "getChartByID", + value: function getChartByID(chartID) { + var c = Apex._chartInstances.filter(function (ch) { + return ch.id === chartID; + })[0]; + + return c.chart; + } + }]); + + return ApexCharts; + }(); + + return ApexCharts$1; + +})); diff --git a/libs/apexcharts/apexcharts.min.js b/libs/apexcharts/apexcharts.min.js new file mode 100644 index 000000000..1c05584b7 --- /dev/null +++ b/libs/apexcharts/apexcharts.min.js @@ -0,0 +1,6 @@ +/*! + * ApexCharts v3.6.2 + * (c) 2018-2019 Juned Chhipa + * Released under the MIT License. + */ +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).ApexCharts=e()}(this,function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var i=0;i>16,r=i>>8&255,o=255&i;return"#"+(16777216+65536*(Math.round((s-n)*a)+n)+256*(Math.round((s-r)*a)+r)+(Math.round((s-o)*a)+o)).toString(16).slice(1)}},{key:"shadeColor",value:function(t,e){return e.length>7?this.shadeRGBColor(t,e):this.shadeHexColor(t,e)}}],[{key:"bind",value:function(t,e){return function(){return t.apply(e,arguments)}}},{key:"isObject",value:function(e){return e&&"object"===t(e)&&!Array.isArray(e)&&null!=e}},{key:"extend",value:function(t,e){var i=this;"function"!=typeof Object.assign&&(Object.assign=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i1?(e.shift(),this.addProps(s,e,i)):t[e[0]]=i,t}},{key:"clone",value:function(e){if("[object Array]"===Object.prototype.toString.call(e)){for(var i=[],s=0;s0&&void 0!==arguments[0]?arguments[0]:"#999999",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6;"#"!==t.substring(0,1)&&(t="#999999");var i=t.replace("#","");i=i.match(new RegExp("(.{"+i.length/3+"})","g"));for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:"x",i=t.toString().slice();return i=i.replace(/[` ~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,e)}},{key:"negToZero",value:function(t){return t<0?0:t}},{key:"moveIndexInArray",value:function(t,e,i){if(i>=t.length)for(var s=i-t.length+1;s--;)t.push(void 0);return t.splice(i,0,t.splice(e,1)[0]),t}},{key:"extractNumber",value:function(t){return parseFloat(t.replace(/[^\d\.]*/g,""))}},{key:"randomString",value:function(t){for(var e="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s=0;s-1}},{key:"isIE11",value:function(){if(-1!==window.navigator.userAgent.indexOf("MSIE")||window.navigator.appVersion.indexOf("Trident/")>-1)return!0}},{key:"isIE",value:function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}var s=t.indexOf("Edge/");return s>0&&parseInt(t.substring(s+5,t.indexOf(".",s)),10)}}]),i}(),u=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return s(t,[{key:"getDefaultFilter",value:function(t){var e=this.w;t.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),"none"!==e.config.states.normal.filter?this.applyFilter(t,e.config.states.normal.filter.type,e.config.states.normal.filter.value):e.config.chart.dropShadow.enabled&&this.dropShadow(t,e.config.chart.dropShadow)}},{key:"addNormalFilter",value:function(t){var e=this.w;e.config.chart.dropShadow.enabled&&this.dropShadow(t,e.config.chart.dropShadow)}},{key:"addDesaturateFilter",value:function(t){var e=this,i=this.w;t.unfilter(!0);var s=new window.SVG.Filter;s.size("120%","180%","-5%","-40%"),t.filter(function(t){var a=i.config.chart.dropShadow;(s=a.enabled?e.addShadow(t,a):t).colorMatrix("matrix",[0,0,0,0,.5,0,0,0,0,.5,0,0,0,0,.5,0,0,0,1,0]).colorMatrix("saturate",0)}),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse")}},{key:"addLightenFilter",value:function(t,e){var i=this,s=this.w,a=e.intensity;if(!d.isFirefox()){t.unfilter(!0);var n=new window.SVG.Filter;n.size("120%","180%","-5%","-40%"),t.filter(function(t){var e=s.config.chart.dropShadow;(n=e.enabled?i.addShadow(t,e):t).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:a}})}),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse")}}},{key:"addDarkenFilter",value:function(t,e){var i=this,s=this.w,a=e.intensity;if(!d.isFirefox()){t.unfilter(!0);var n=new window.SVG.Filter;n.size("120%","180%","-5%","-40%"),t.filter(function(t){var e=s.config.chart.dropShadow;(n=e.enabled?i.addShadow(t,e):t).componentTransfer({rgb:{type:"linear",slope:a}})}),t.filterer.node.setAttribute("filterUnits","userSpaceOnUse")}}},{key:"applyFilter",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.5;switch(e){case"none":this.addNormalFilter(t);break;case"lighten":this.addLightenFilter(t,{intensity:i});break;case"darken":this.addDarkenFilter(t,{intensity:i});break;case"desaturate":this.addDesaturateFilter(t)}}},{key:"addShadow",value:function(t,e){var i=e.blur,s=e.top,a=e.left,n=e.color,r=e.opacity,o=t.flood(n,r).composite(t.sourceAlpha,"in").offset(a,s).gaussianBlur(i).merge(t.source);return t.blend(t.source,o)}},{key:"dropShadow",value:function(t,e){var i=e.top,s=e.left,a=e.blur,n=e.color,r=e.opacity,o=e.noUserSpaceOnUse;return t.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),t.filter(function(t){var e=null;e=d.isSafari()||d.isFirefox()||d.isIE()?t.flood(n,r).composite(t.sourceAlpha,"in").offset(s,i).gaussianBlur(a):t.flood(n,r).composite(t.sourceAlpha,"in").offset(s,i).gaussianBlur(a).merge(t.source),t.blend(t.source,e)}),o||t.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),t}},{key:"setSelectionFilter",value:function(t,e,i){var s=this.w;if(void 0!==s.globals.selectedDataPoints[e]&&s.globals.selectedDataPoints[e].indexOf(i)>-1){t.node.setAttribute("selected",!0);var a=s.config.states.active.filter;"none"!==a&&this.applyFilter(t,a.type,a.value)}}}]),t}(),g=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.setEasingFunctions()}return s(t,[{key:"setEasingFunctions",value:function(){var t;switch(this.w.config.chart.animations.easing){case"linear":t="-";break;case"easein":t="<";break;case"easeout":t=">";break;case"easeinout":t="<>";break;case"swing":t=function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1};break;case"bounce":t=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375};break;case"elastic":t=function(t){return t===!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1};break;default:t="<>"}this.w.globals.easing=t}},{key:"animateLine",value:function(t,e,i,s){t.attr(e).animate(s).attr(i)}},{key:"animateCircleRadius",value:function(t,e,i,s,a){e||(e=0),t.attr({r:e}).animate(s,a).attr({r:i})}},{key:"animateCircle",value:function(t,e,i,s,a){t.attr({r:e.r,cx:e.cx,cy:e.cy}).animate(s,a).attr({r:i.r,cx:i.cx,cy:i.cy})}},{key:"animateRect",value:function(t,e,i,s,a){t.attr(e).animate(s).attr(i).afterAll(function(){a()})}},{key:"animatePathsGradually",value:function(t){var e=t.el,i=t.j,s=t.pathFrom,a=t.pathTo,n=t.speed,r=t.delay,o=t.strokeWidth,l=this.w,h=0;l.config.chart.animations.animateGradually.enabled&&(h=l.config.chart.animations.animateGradually.delay),l.config.chart.animations.dynamicAnimation.enabled&&l.globals.dataChanged&&(h=0),this.morphSVG(e,i,s,a,n,o,r*h)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(t){t.el.classList.remove("hidden")})}},{key:"morphSVG",value:function(t,e,i,s,a,n,r){var o=this,l=this.w;i||(i=t.attr("pathFrom")),s||(s=t.attr("pathTo")),(!i||i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(l.globals.gridHeight),a=1),(s.indexOf("undefined")>-1||s.indexOf("NaN")>-1)&&(s="M 0 ".concat(l.globals.gridHeight),a=1),l.globals.shouldAnimate||(a=1),t.plot(i).animate(1,l.globals.easing,r).plot(i).animate(a,l.globals.easing,r).plot(s).afterAll(function(){d.isNumber(e)?e===l.globals.series[l.globals.maxValsInArrayIndex].length-2&&l.globals.shouldAnimate&&(l.globals.animationEnded=!0):l.globals.shouldAnimate&&(l.globals.animationEnded=!0,"function"==typeof l.config.chart.events.animationEnd&&l.config.chart.events.animationEnd(o.ctx,l)),o.showDelayedElements()})}}]),t}(),f=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return s(t,[{key:"drawLine",value:function(t,e,i,s){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;return this.w.globals.dom.Paper.line().attr({x1:t,y1:e,x2:i,y2:s,stroke:a,"stroke-dasharray":n,"stroke-width":r})}},{key:"drawRect",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,h=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,c=this.w.globals.dom.Paper.rect();return c.attr({x:t,y:e,width:i>0?i:0,height:s>0?s:0,rx:a,ry:a,fill:n,opacity:r,"stroke-width":null!==o?o:0,stroke:null!==l?l:"none","stroke-dasharray":h}),c}},{key:"drawPolygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#e1e1e1",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"none";return this.w.globals.dom.Paper.polygon(t).attr({fill:i,stroke:e})}},{key:"drawCircle",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w.globals.dom.Paper.circle(2*t);return null!==e&&i.attr(e),i}},{key:"drawPath",value:function(t){var e=t.d,i=void 0===e?"":e,s=t.stroke,a=void 0===s?"#a8a8a8":s,n=t.strokeWidth,r=void 0===n?1:n,o=t.fill,l=t.fillOpacity,h=void 0===l?1:l,c=t.strokeOpacity,d=void 0===c?1:c,u=t.classes,g=t.strokeLinecap,f=void 0===g?null:g,p=t.strokeDashArray,x=void 0===p?0:p,m=this.w;return null===f&&(f=m.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(m.globals.gridHeight)),m.globals.dom.Paper.path(i).attr({fill:o,"fill-opacity":h,stroke:a,"stroke-opacity":d,"stroke-linecap":f,"stroke-width":r,"stroke-dasharray":x,class:u})}},{key:"group",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w.globals.dom.Paper.group();return null!==t&&e.attr(t),e}},{key:"move",value:function(t,e){var i=["M",t,e].join(" ");return i}},{key:"line",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=null;return null===i?s=["L",t,e].join(" "):"H"===i?s=["H",t].join(" "):"V"===i&&(s=["V",e].join(" ")),s}},{key:"curve",value:function(t,e,i,s,a,n){var r=["C",t,e,i,s,a,n].join(" ");return r}},{key:"quadraticCurve",value:function(t,e,i,s){return["Q",t,e,i,s].join(" ")}},{key:"arc",value:function(t,e,i,s,a,n,r){var o="A";arguments.length>7&&void 0!==arguments[7]&&arguments[7]&&(o="a");var l=[o,t,e,i,s,a,n,r].join(" ");return l}},{key:"renderPaths",value:function(t){var e,i=t.i,s=t.j,a=t.realIndex,r=t.pathFrom,o=t.pathTo,l=t.stroke,h=t.strokeWidth,c=t.strokeLinecap,d=t.fill,f=t.animationDelay,p=t.initialSpeed,x=t.dataChangeSpeed,m=t.className,v=t.id,b=t.shouldClipToGrid,y=void 0===b||b,w=t.bindEventsOnPaths,k=void 0===w||w,A=this.w,S=new u(this.ctx),C=new g(this.ctx),L=this.w.config.chart.animations.enabled,z=L&&this.w.config.chart.animations.dynamicAnimation.enabled,M=!!(L&&!A.globals.resized||z&&A.globals.dataChanged&&A.globals.shouldAnimate);M?e=r:(e=o,this.w.globals.animationEnded=!0);var P=A.config.stroke.dashArray,E=0;E=Array.isArray(P)?P[a]:A.config.stroke.dashArray;var T=this.drawPath({d:e,stroke:l,strokeWidth:h,fill:d,fillOpacity:1,classes:m,strokeLinecap:c,strokeDashArray:E});if(T.attr("id","".concat(v,"-").concat(i)),T.attr("index",a),y&&T.attr({"clip-path":"url(#gridRectMask".concat(A.globals.cuid,")")}),"none"!==A.config.states.normal.filter.type)S.getDefaultFilter(T,A.config.states.normal.filter.type,A.config.states.normal.filter.value);else if(A.config.chart.dropShadow.enabled&&(!A.config.chart.dropShadow.enabledSeries||A.config.chart.dropShadow.enabledSeries&&-1!==A.config.chart.dropShadow.enabledSeries.indexOf(a))){var X=A.config.chart.dropShadow;S.dropShadow(T,X)}k&&(T.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,T)),T.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,T)),T.node.addEventListener("mousedown",this.pathMouseDown.bind(this,T))),T.attr({pathTo:o,pathFrom:r});var I={el:T,j:s,pathFrom:r,pathTo:o,strokeWidth:h};return!L||A.globals.resized||A.globals.dataChanged?!A.globals.resized&&A.globals.dataChanged||C.showDelayedElements():C.animatePathsGradually(n({},I,{speed:p,delay:f})),A.globals.dataChanged&&z&&M&&C.animatePathsGradually(n({},I,{speed:x})),T}},{key:"drawPattern",value:function(t,e,i){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return this.w.globals.dom.Paper.pattern(e,i,function(n){"horizontalLines"===t?n.line(0,0,i,0).stroke({color:s,width:a+1}):"verticalLines"===t?n.line(0,0,0,e).stroke({color:s,width:a+1}):"slantedLines"===t?n.line(0,0,e,i).stroke({color:s,width:a}):"squares"===t?n.rect(e,i).fill("none").stroke({color:s,width:a}):"circles"===t&&n.circle(e).fill("none").stroke({color:s,width:a})})}},{key:"drawGradient",value:function(t,e,i,s,a){var n,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,h=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,c=this.w;e=d.hexToRgba(e,s),i=d.hexToRgba(i,a);var u=0,g=1,f=1,p=null;null!==o&&(u=void 0!==o[0]?o[0]/100:0,g=void 0!==o[1]?o[1]/100:1,f=void 0!==o[2]?o[2]/100:1,p=void 0!==o[3]?o[3]/100:null);var x=!("donut"!==c.config.chart.type&&"pie"!==c.config.chart.type&&"bubble"!==c.config.chart.type);if(n=null===l||0===l.length?c.globals.dom.Paper.gradient(x?"radial":"linear",function(t){t.at(u,e,s),t.at(g,i,a),t.at(f,i,a),null!==p&&t.at(p,e,s)}):c.globals.dom.Paper.gradient(x?"radial":"linear",function(t){(Array.isArray(l[h])?l[h]:l).forEach(function(e){t.at(e.offset/100,e.color,e.opacity)})}),x){var m=c.globals.gridWidth/2,v=c.globals.gridHeight/2;"bubble"!==c.config.chart.type?n.attr({gradientUnits:"userSpaceOnUse",cx:m,cy:v,r:r}):n.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===t?n.from(0,0).to(0,1):"diagonal"===t?n.from(0,0).to(1,1):"horizontal"===t?n.from(0,1).to(1,1):"diagonal2"===t&&n.from(0,1).to(2,2);return n}},{key:"drawText",value:function(t){var e,i=this.w,s=t.x,a=t.y,n=t.text,r=t.textAnchor,o=t.fontSize,l=t.fontFamily,h=t.foreColor,c=t.opacity;return r||(r="start"),h||(h=i.config.chart.foreColor),l=l||i.config.chart.fontFamily,(e=Array.isArray(n)?i.globals.dom.Paper.text(function(t){for(var e=0;e-1){var o=i.globals.selectedDataPoints[a].indexOf(n);i.globals.selectedDataPoints[a].splice(o,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var l=i.globals.dom.Paper.select(".apexcharts-series path").members,h=i.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members;l.forEach(function(t){t.node.setAttribute("selected","false"),s.getDefaultFilter(t)}),h.forEach(function(t){t.node.setAttribute("selected","false"),s.getDefaultFilter(t)})}t.node.setAttribute("selected","true"),r="true",void 0===i.globals.selectedDataPoints[a]&&(i.globals.selectedDataPoints[a]=[]),i.globals.selectedDataPoints[a].push(n)}if("true"===r){var c=i.config.states.active.filter;"none"!==c&&s.applyFilter(t,c.type,c.value)}else"none"!==i.config.states.active.filter.type&&s.getDefaultFilter(t);"function"==typeof i.config.chart.events.dataPointSelection&&i.config.chart.events.dataPointSelection(e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:a,dataPointIndex:n,w:i}),this.ctx.fireEvent("dataPointSelection",[e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:a,dataPointIndex:n,w:i}])}},{key:"rotateAroundCenter",value:function(t){var e=t.getBBox();return{x:e.x+e.width/2,y:e.y+e.height/2}}},{key:"getTextRects",value:function(t,e,i,s){var a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],n=this.w,r=this.drawText({x:-200,y:-200,text:t,textAnchor:"start",fontSize:e,fontFamily:i,foreColor:"#fff",opacity:0});s&&r.attr("transform",s),n.globals.dom.Paper.add(r);var o=r.bbox();return a||(o=r.node.getBoundingClientRect()),r.remove(),{width:o.width,height:o.height}}},{key:"placeTextWithEllipsis",value:function(t,e,i){if(t.textContent=e,e.length>0&&t.getSubStringLength(0,e.length)>=i){for(var s=e.length-3;s>0;s-=3)if(t.getSubStringLength(0,s)<=i)return void(t.textContent=e.substring(0,s)+"...");t.textContent="..."}}}],[{key:"setAttrs",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}}]),t}();var p={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},x=function(){function t(){e(this,t),this.yAxis={show:!0,showAlways:!1,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,tickAmount:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:2,labels:{show:!0,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#78909C",offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#78909C",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.xAxisAnnotation={x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.yAxisAnnotation={y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",opacity:.3,offsetX:0,offsetY:0,yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,cssClass:"",padding:{left:5,right:5,top:0,bottom:2}}}},this.pointAnnotation={x:0,y:null,yAxisIndex:0,seriesIndex:0,marker:{size:0,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,radius:2,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,text:void 0,textAnchor:"middle",offsetX:0,offsetY:-15,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,cssClass:"",padding:{left:5,right:5,top:0,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0}}}return s(t,[{key:"init",value:function(){return{annotations:{position:"front",yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"transparent",locales:[p],defaultLocale:"en",dropShadow:{enabled:!1,enabledSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,legendClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,zoomed:void 0,scrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",id:void 0,group:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!1,target:void 0},stacked:!1,stackType:"normal",toolbar:{show:!0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{bar:{horizontal:!1,endingShape:"flat",columnWidth:"70%",barHeight:"70%",distributed:!1,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1},dataLabels:{position:"top"}},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,distributed:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{size:void 0,inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,color:void 0,offsetY:0},value:{show:!0,fontSize:"14px",fontFamily:void 0,color:void 0,offsetY:16,formatter:function(t){return t+"%"}},total:{show:!1,label:"Total",color:"#373d3f",formatter:function(t){return t.globals.seriesTotals.reduce(function(t,e){return t+e},0)/t.globals.series.length+"%"}}}},pie:{size:void 0,customScale:1,offsetX:0,offsetY:0,expandOnClick:!0,dataLabels:{offset:0},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,color:void 0,offsetY:-10},value:{show:!0,fontSize:"20px",fontFamily:void 0,color:void 0,offsetY:10,formatter:function(t){return t}},total:{show:!1,label:"Total",color:"#373d3f",formatter:function(t){return t.globals.seriesTotals.reduce(function(t,e){return t+e},0)}}}}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(t){return t},textAnchor:"middle",offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,colors:void 0},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"sqaures",width:6,height:6,strokeWidth:2}},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1,animate:!1}},yaxis:{lines:{show:!0,animate:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",fontSize:"12px",fontFamily:void 0,width:void 0,height:void 0,formatter:void 0,offsetX:-20,offsetY:0,labels:{colors:void 0,useSeriesColors:!1},markers:{width:12,height:12,strokeWidth:0,strokeColor:"#fff",radius:12,customHTML:void 0,offsetX:0,offsetY:0,onClick:void 0},itemMargin:{horizontal:0,vertical:5},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,fillOpacity:1,shape:"circle",radius:2,offsetX:0,offsetY:0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.15}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.65}}},title:{text:void 0,align:"left",margin:10,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:10,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0},tooltip:{enabled:!0,shared:!0,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(t){return t}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],offsetX:0,offsetY:0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!0,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss"}},axisBorder:{show:!0,color:"#78909C",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#78909C",height:6,offsetX:0,offsetY:0},tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),t}(),m=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.graphics=new f(this.ctx),"bar"===this.w.config.chart.type&&this.w.config.plotOptions.bar.horizontal&&(this.invertAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return s(t,[{key:"drawAnnotations",value:function(){var t=this.w;if(t.globals.axisCharts){for(var e=this.drawYAxisAnnotations(),i=this.drawXAxisAnnotations(),s=this.drawPointAnnotations(),a=t.config.chart.animations.enabled,n=[e,i,s],r=[i.node,e.node,s.node],o=0;o<3;o++)t.globals.dom.elGraphical.add(n[o]),!a||t.globals.resized||t.globals.dataChanged||r[o].classList.add("hidden"),t.globals.delayedElements.push({el:r[o],index:0});this.setOrientations(t.config.annotations.xaxis),this.annotationsBackground()}}},{key:"addXaxisAnnotation",value:function(t,e,i){var s=this.w,a=this.invertAxis?s.globals.minY:s.globals.minX,n=this.invertAxis?s.globals.yRange[0]:s.globals.xRange,r=(t.x-a)/(n/s.globals.gridWidth);if("category"===s.config.xaxis.type||s.config.xaxis.convertedCatToNumeric){var o=s.globals.labels.indexOf(t.x),l=s.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(o+1)+")");r=parseFloat(l.getAttribute("x"))}var h=t.strokeDashArray;if(!(r<0||r>s.globals.gridWidth)){if(null===t.x2){var c=this.graphics.drawLine(r+t.offsetX,0+t.offsetY,r+t.offsetX,s.globals.gridHeight+t.offsetY,t.borderColor,h);e.appendChild(c.node)}else{var d=(t.x2-a)/(n/s.globals.gridWidth);if(ds){var g=s;s=a,a=g}var f=this.graphics.drawRect(0+t.offsetX,a+t.offsetY,n.globals.gridWidth+t.offsetX,s-a,0,t.fillColor,t.opacity,1,t.borderColor,r);e.appendChild(f.node)}var p="right"===t.label.position?n.globals.gridWidth:0,x=this.graphics.drawText({x:p+t.label.offsetX,y:(a||s)+t.label.offsetY-3,text:h,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,foreColor:t.label.style.color,cssClass:"apexcharts-yaxis-annotation-label "+t.label.style.cssClass});x.attr({rel:i}),e.appendChild(x.node)}},{key:"drawYAxisAnnotations",value:function(){var t=this,e=this.w,i=this.graphics.group({class:"apexcharts-yaxis-annotations"});return e.config.annotations.yaxis.map(function(e,s){t.addYaxisAnnotation(e,i.node,s)}),i}},{key:"clearAnnotations",value:function(t){t.w.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations").forEach(function(t){for(;t.firstChild;)t.removeChild(t.firstChild)})}},{key:"addPointAnnotation",value:function(t,e,i){var s=this.w,a=0,n=0,r=0;if(this.invertAxis&&console.warn("Point annotation is not supported in horizontal bar charts."),"string"==typeof t.x){var o=s.globals.labels.indexOf(t.x),l=s.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child("+(o+1)+")");a=parseFloat(l.getAttribute("x"));var h=t.y;null===t.y&&(h=s.globals.series[t.seriesIndex][o]),n=s.globals.gridHeight-(h-s.globals.minYArr[t.yAxisIndex])/(s.globals.yRange[t.yAxisIndex]/s.globals.gridHeight)-parseInt(t.label.style.fontSize)-t.marker.size,r=s.globals.gridHeight-(h-s.globals.minYArr[t.yAxisIndex])/(s.globals.yRange[t.yAxisIndex]/s.globals.gridHeight),s.config.yaxis[t.yAxisIndex].reversed&&(n=(h-s.globals.minYArr[t.yAxisIndex])/(s.globals.yRange[t.yAxisIndex]/s.globals.gridHeight)+parseInt(t.label.style.fontSize)+t.marker.size,r=(h-s.globals.minYArr[t.yAxisIndex])/(s.globals.yRange[t.yAxisIndex]/s.globals.gridHeight))}else a=(t.x-s.globals.minX)/(s.globals.xRange/s.globals.gridWidth),n=s.globals.gridHeight-(parseFloat(t.y)-s.globals.minYArr[t.yAxisIndex])/(s.globals.yRange[t.yAxisIndex]/s.globals.gridHeight)-parseInt(t.label.style.fontSize)-t.marker.size,r=s.globals.gridHeight-(t.y-s.globals.minYArr[t.yAxisIndex])/(s.globals.yRange[t.yAxisIndex]/s.globals.gridHeight),s.config.yaxis[t.yAxisIndex].reversed&&(n=(parseFloat(t.y)-s.globals.minYArr[t.yAxisIndex])/(s.globals.yRange[t.yAxisIndex]/s.globals.gridHeight)-parseInt(t.label.style.fontSize)-t.marker.size,r=(t.y-s.globals.minYArr[t.yAxisIndex])/(s.globals.yRange[t.yAxisIndex]/s.globals.gridHeight));if(!(a<0||a>s.globals.gridWidth)){var c={pSize:t.marker.size,pWidth:t.marker.strokeWidth,pointFillColor:t.marker.fillColor,pointStrokeColor:t.marker.strokeColor,shape:t.marker.shape,radius:t.marker.radius,class:"apexcharts-point-annotation-marker "+t.marker.cssClass},d=this.graphics.drawMarker(a+t.marker.offsetX,r+t.marker.offsetY,c);e.appendChild(d.node);var u=t.label.text?t.label.text:"",g=this.graphics.drawText({x:a+t.label.offsetX,y:n+t.label.offsetY,text:u,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,foreColor:t.label.style.color,cssClass:"apexcharts-point-annotation-label "+t.label.style.cssClass});if(g.attr({rel:i}),e.appendChild(g.node),t.customSVG.SVG){var f=this.graphics.group({class:"apexcharts-point-annotations-custom-svg "+t.customSVG.cssClass});f.attr({transform:"translate(".concat(a+t.customSVG.offsetX,", ").concat(n+t.customSVG.offsetY,")")}),f.node.innerHTML=t.customSVG.SVG,e.appendChild(f.node)}}}},{key:"drawPointAnnotations",value:function(){var t=this,e=this.w,i=this.graphics.group({class:"apexcharts-point-annotations"});return e.config.annotations.points.map(function(e,s){t.addPointAnnotation(e,i.node,s)}),i}},{key:"setOrientations",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=this.w;t.map(function(t,a){if("vertical"===t.label.orientation){var n=null!==i?i:a,r=s.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(n,"']"));if(null!==r){var o=r.getBoundingClientRect();r.setAttribute("x",parseFloat(r.getAttribute("x"))-o.height+4),"top"===t.label.position?r.setAttribute("y",parseFloat(r.getAttribute("y"))+o.width):r.setAttribute("y",parseFloat(r.getAttribute("y"))-o.width);var l=e.graphics.rotateAroundCenter(r),h=l.x,c=l.y;r.setAttribute("transform","rotate(-90 ".concat(h," ").concat(c,")"))}}})}},{key:"addBackgroundToAnno",value:function(t,e){var i=this.w.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),s=t.getBoundingClientRect(),a=e.label.style.padding.left,n=e.label.style.padding.right,r=e.label.style.padding.top,o=e.label.style.padding.bottom;"vertical"===e.label.orientation&&(r=e.label.style.padding.left,o=e.label.style.padding.right,a=e.label.style.padding.top,n=e.label.style.padding.bottom);var l=s.left-i.left-a,h=s.top-i.top-r;return this.graphics.drawRect(l,h,s.width+a+n,s.height+r+o,0,e.label.style.background,1,e.label.borderWidth,e.label.borderColor,0)}},{key:"annotationsBackground",value:function(){var t=this,e=this.w,i=function(i,s,a){var n=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(a,"-annotations .apexcharts-").concat(a,"-annotation-label[rel='").concat(s,"']"));if(n){var r=n.parentNode,o=t.addBackgroundToAnno(n,i);r.insertBefore(o.node,n)}};e.config.annotations.xaxis.map(function(t,e){i(t,e,"xaxis")}),e.config.annotations.yaxis.map(function(t,e){i(t,e,"yaxis")}),e.config.annotations.points.map(function(t,e){i(t,e,"point")})}},{key:"addText",value:function(t,e,i){var s=t.x,a=t.y,n=t.text,r=t.textAnchor,o=t.appendTo,l=void 0===o?".apexcharts-inner":o,h=t.foreColor,c=t.fontSize,d=t.fontFamily,u=t.cssClass,g=t.backgroundColor,f=t.borderWidth,p=t.strokeDashArray,x=t.radius,m=t.borderColor,v=t.paddingLeft,b=void 0===v?4:v,y=t.paddingRight,w=void 0===y?4:y,k=t.paddingBottom,A=void 0===k?2:k,S=t.paddingTop,C=void 0===S?2:S,L=i,z=L.w,M=z.globals.dom.baseEl.querySelector(l),P=this.graphics.drawText({x:s,y:a,text:n,textAnchor:r||"start",fontSize:c||"12px",fontFamily:d||z.config.chart.fontFamily,foreColor:h||z.config.chart.foreColor,cssClass:u});M.appendChild(P.node);var E=P.bbox(),T=this.graphics.drawRect(E.x-b,E.y-C,E.width+b+w,E.height+A+C,x,g,1,f,m,p);return P.before(T),e&&z.globals.memory.methodsToExec.push({context:L,method:L.addText,params:{x:s,y:a,text:n,textAnchor:r,appendTo:l,foreColor:h,fontSize:c,cssClass:u,backgroundColor:g,borderWidth:f,strokeDashArray:p,radius:x,borderColor:m,paddingLeft:b,paddingRight:w,paddingBottom:A,paddingTop:C}}),i}},{key:"addPointAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addXaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addAnnotationExternal",value:function(t){var e=t.params,i=t.pushToMemory,s=t.context,a=t.type,n=t.contextMethod,r=s,o=r.w,l=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(a,"-annotations")),h=l.childNodes.length+1,c=new x,u=Object.assign({},"xaxis"===a?c.xAxisAnnotation:"yaxis"===a?c.yAxisAnnotation:c.pointAnnotation),g=d.extend(u,e);switch(a){case"xaxis":this.addXaxisAnnotation(g,l,h);break;case"yaxis":this.addYaxisAnnotation(g,l,h);break;case"point":this.addPointAnnotation(g,l,h)}var f=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(a,"-annotations .apexcharts-").concat(a,"-annotation-label[rel='").concat(h,"']")),p=this.addBackgroundToAnno(f,g);return l.insertBefore(p.node,f),i&&o.globals.memory.methodsToExec.push({context:r,method:n,params:e}),s}}]),t}(),v=function(){function t(i){e(this,t),this.opts=i}return s(t,[{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(t){this.opts.yaxis[0].labels.show=!1,this.opts.yaxis[0].floating=!0;return d.extend(t,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]}},stroke:{width:0},fill:{opacity:.85},legend:{markers:{shape:"square",radius:2,size:8}},tooltip:{shared:!1},xaxis:{tooltip:{enabled:!1},crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"candlestick",value:function(){return{stroke:{width:1,colors:["#333"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var e=t.seriesIndex,i=t.dataPointIndex,s=t.w;return'
Open: '+s.globals.seriesCandleO[e][i]+'
High: '+s.globals.seriesCandleH[e][i]+'
Low: '+s.globals.seriesCandleL[e][i]+'
Close: '+s.globals.seriesCandleC[e][i]+"
"}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"area",value:function(){return{stroke:{width:4},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"brush",value:function(t){return d.extend(t,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(){var t=this;this.opts.dataLabels=this.opts.dataLabels||{},this.opts.dataLabels.formatter=this.opts.dataLabels.formatter||void 0;var e=this.opts.dataLabels.formatter;this.opts.yaxis.forEach(function(e,i){t.opts.yaxis[i].min=0,t.opts.yaxis[i].max=100}),"bar"===this.opts.chart.type&&(this.opts.dataLabels.formatter=e||function(t){return"number"==typeof t&&t?t.toFixed(0)+"%":t})}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:2,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1,zoom:{enabled:!1}},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square",size:10,offsetY:2}},grid:{padding:{right:20}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"dark",shadeIntensity:.35,inverseColors:!1,stops:[0,100,100]}},padding:{right:0,left:0},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"vertical",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},padding:{right:0,left:0},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.style.fontSize="13px",this.opts.yaxis[0].labels.offsetY=6,{dataLabels:{enabled:!0,style:{colors:["#a8a8a8"],fontSize:"11px"}},stroke:{width:2},markers:{size:3,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1},xaxis:{tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},padding:{right:0,left:0},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0}}}}],[{key:"convertCatToNumeric",value:function(t){t.xaxis.type="numeric",t.xaxis.convertedCatToNumeric=!0,t.xaxis.labels=t.xaxis.labels||{},t.xaxis.labels.formatter=t.xaxis.labels.formatter||function(t){return t},t.chart=t.chart||{},t.chart.zoom=t.chart.zoom||window.Apex.chart&&window.Apex.chart.zoom||{};var e=t.xaxis.labels.formatter,i=t.xaxis.categories&&t.xaxis.categories.length?t.xaxis.categories:t.labels;return i&&i.length&&(t.xaxis.labels.formatter=function(t){return e(i[t-1])}),t.xaxis.categories=[],t.labels=[],t.chart.zoom.enabled=!1,t}}]),t}(),b=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return s(t,[{key:"getStackedSeriesTotals",value:function(){for(var t=this.w,e=[],i=0;i0&&void 0!==arguments[0]?arguments[0]:null;return null===t?this.w.config.series.reduce(function(t,e){return t+e},0):this.w.globals.series[t].reduce(function(t,e){return t+e},0)}},{key:"isSeriesNull",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===t?this.w.config.series.filter(function(t){return null!==t}):this.w.globals.series[t].filter(function(t){return null!==t})).length}},{key:"seriesHaveSameValues",value:function(t){return this.w.globals.series[t].every(function(t,e,i){return t===i[0]})}},{key:"getLargestSeries",value:function(){var t=this.w;t.globals.maxValsInArrayIndex=t.globals.series.map(function(t){return t.length}).indexOf(Math.max.apply(Math,t.globals.series.map(function(t){return t.length})))}},{key:"getLargestMarkerSize",value:function(){var t=this.w,e=0;return t.globals.markers.size.forEach(function(t){e=Math.max(e,t)}),t.globals.markers.largestSize=e,e}},{key:"getSeriesTotals",value:function(){var t=this.w;t.globals.seriesTotals=t.globals.series.map(function(t,e){var i=0;if(Array.isArray(t))for(var s=0;st&&i.globals.seriesX[a][r]1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");e.yaxis[0].reversed&&(e.yaxis[0].opposite=!0),e.xaxis.tooltip.enabled=!1,e.yaxis[0].tooltip.enabled=!1,e.chart.zoom.enabled=!1}return"bar"===e.chart.type&&e.tooltip.shared&&("barWidth"===e.xaxis.crosshairs.width&&e.series.length>1&&(console.warn('crosshairs.width = "barWidth" is only supported in single series, not in a multi-series barChart.'),e.xaxis.crosshairs.width="tickWidth"),e.plotOptions.bar.horizontal&&(e.states.hover.type="none"),e.tooltip.followCursor||(console.warn("followCursor option in shared columns cannot be turned off."),e.tooltip.followCursor=!0)),"candlestick"===e.chart.type&&e.yaxis[0].reversed&&(console.warn("Reversed y-axis in candlestick chart is not supported."),e.yaxis[0].reversed=!1),e.chart.group&&0===e.yaxis[0].labels.minWidth&&console.warn("It looks like you have multiple charts in synchronization. You must provide yaxis.labels.minWidth which must be EQUAL for all grouped charts to prevent incorrect behaviour."),Array.isArray(e.stroke.width)&&"line"!==e.chart.type&&"area"!==e.chart.type&&(console.warn("stroke.width option accepts array only for line and area charts. Reverted back to Number"),e.stroke.width=e.stroke.width[0]),e}}]),i}(),w=function(){function t(){e(this,t)}return s(t,[{key:"globalVars",value:function(t){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:t.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,initialConfig:null,lastXAxis:[],lastYAxis:[],series:[],seriesPercent:[],seriesTotals:[],stackedSeriesTotals:[],seriesX:[],seriesZ:[],labels:[],timelineLabels:[],seriesNames:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],selectedDataPoints:[],ignoreYAxisIndexes:[],padHorizontal:0,maxValsInArrayIndex:0,zoomEnabled:"zoom"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.zoom&&t.chart.zoom.enabled,panEnabled:"pan"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.pan,selectionEnabled:"selection"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.selection,yaxis:null,minY:Number.MIN_VALUE,maxY:-Number.MAX_VALUE,minYArr:[],maxYArr:[],maxX:-Number.MAX_VALUE,initialmaxX:-Number.MAX_VALUE,minX:Number.MIN_VALUE,initialminX:Number.MIN_VALUE,minZ:Number.MIN_VALUE,maxZ:-Number.MAX_VALUE,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yRange:[],zRange:0,xRange:0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,delayedElements:[],axisCharts:!0,isXNumeric:!1,isDataXYZ:!1,resized:!1,resizeTimer:null,comboCharts:!1,comboChartsHasBars:!1,dataChanged:!1,previousPaths:[],seriesXvalues:[],seriesYvalues:[],seriesCandleO:[],seriesCandleH:[],seriesCandleL:[],seriesCandleC:[],allSeriesHasEqualX:!0,dataPoints:0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,yAxisScale:[],xAxisScale:null,xAxisTicksPositions:[],timescaleTicks:[],rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yLabelsCoords:[],yTitleCoords:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null,tooltipOpts:null}}},{key:"init",value:function(t){var e=this.globalVars(t);return e.initialConfig=d.extend({},t),e.initialSeries=JSON.parse(JSON.stringify(e.initialConfig.series)),e.lastXAxis=JSON.parse(JSON.stringify(e.initialConfig.xaxis)),e.lastYAxis=JSON.parse(JSON.stringify(e.initialConfig.yaxis)),e}}]),t}(),k=function(){function t(i){e(this,t),this.opts=i}return s(t,[{key:"init",value:function(){var t=new y(this.opts).init();return{config:t,globals:(new w).init(t)}}}]),t}(),A=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.opts=null,this.seriesIndex=0}return s(t,[{key:"clippedImgArea",value:function(t){var e=this.w,i=e.config,s=parseInt(e.globals.gridWidth),a=parseInt(e.globals.gridHeight),n=s>a?s:a,r=t.image,o=0,l=0;void 0===t.width&&void 0===t.height?void 0!==i.fill.image.width&&void 0!==i.fill.image.height?(o=i.fill.image.width+1,l=i.fill.image.height):(o=n+1,l=n):(o=t.width,l=t.height);var h=document.createElementNS(e.globals.SVGNS,"pattern");f.setAttrs(h,{id:t.patternID,patternUnits:t.patternUnits?t.patternUnits:"userSpaceOnUse",width:o+"px",height:l+"px"});var c=document.createElementNS(e.globals.SVGNS,"image");h.appendChild(c),c.setAttributeNS("http://www.w3.org/1999/xlink","href",r),f.setAttrs(c,{x:0,y:0,preserveAspectRatio:"none",width:o+"px",height:l+"px"}),c.style.opacity=t.opacity,e.globals.dom.elDefs.node.appendChild(h)}},{key:"getSeriesIndex",value:function(t){var e=this.w;return"bar"===e.config.chart.type&&e.config.plotOptions.bar.distributed||"heatmap"===e.config.chart.type?this.seriesIndex=t.seriesNumber:this.seriesIndex=t.seriesNumber%e.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(t){var e=this.w;this.opts=t;var i,s,a,n=this.w.config;this.seriesIndex=this.getSeriesIndex(t);var r=this.getFillColors(),o=r[this.seriesIndex],l=this.getFillType(this.seriesIndex),h=Array.isArray(n.fill.opacity)?n.fill.opacity[this.seriesIndex]:n.fill.opacity,c=o;return t.color&&(o=t.color),-1===o.indexOf("rgb")?c=d.hexToRgba(o,h):o.indexOf("rgba")>-1&&(h="0."+d.getOpacityFromRGBA(r[this.seriesIndex])),"pattern"===l&&(s=this.handlePatternFill(s,o,h,c)),"gradient"===l&&(a=this.handleGradientFill(a,o,h,this.seriesIndex)),n.fill.image.src.length>0&&"image"===l?t.seriesNumber0){if(t.globals.markers.size.length0&&(o=l.group({class:"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(n.globals.cuid,")")),r.x instanceof Array)for(var h=function(t){var h=i;1===i&&0===t&&(h=0),1===i&&1===t&&(h=1);var c="apexcharts-marker";if("line"!==n.config.chart.type&&"area"!==n.config.chart.type||n.globals.comboCharts||n.config.tooltip.intersect||(c+=" no-pointer-events"),Array.isArray(n.config.markers.size)?n.globals.markers.size[e]>0:n.config.markers.size>0){d.isNumber(r.y[t])?c+=" w".concat((Math.random()+1).toString(36).substring(4)):c="apexcharts-nullpoint";var g=a.getMarkerConfig(c,e);n.config.markers.discrete.map(function(t){t.seriesIndex===e&&t.dataPointIndex===h&&(g.pointStrokeColor=t.strokeColor,g.pointFillColor=t.fillColor,g.pSize=t.size)}),(s=l.drawMarker(r.x[t],r.y[t],g)).attr("rel",h),s.attr("j",h),s.attr("index",e),s.node.setAttribute("default-marker-size",g.pSize),new u(a.ctx).setSelectionFilter(s,e,h),a.addEvents(s),o&&o.add(s)}else void 0===n.globals.pointsArray[e]&&(n.globals.pointsArray[e]=[]),n.globals.pointsArray[e].push([r.x[t],r.y[t]])},c=0;cp.x+p.width+2||e>p.y+p.height+2||t+c-1)){var p={x:s,y:a,drawnextLabel:!0};if(g&&(p=this.dataLabelsCorrection(s,a,o,n,r,d,parseInt(c.style.fontSize))),e.globals.zoomed||(s=p.x,a=p.y),p.drawnextLabel){var x=i.drawText({width:100,height:parseInt(c.style.fontSize),x:s,y:a,foreColor:e.globals.dataLabels.style.colors[n],textAnchor:l||c.textAnchor,text:o,fontSize:c.style.fontSize,fontFamily:c.style.fontFamily});if(x.attr({class:"apexcharts-datalabel",cx:s,cy:a}),c.dropShadow.enabled){var m=c.dropShadow;new u(this.ctx).dropShadow(x,m)}h.add(x),void 0===e.globals.lastDrawnDataLabelsIndexes[n]&&(e.globals.lastDrawnDataLabelsIndexes[n]=[]),e.globals.lastDrawnDataLabelsIndexes[n].push(r)}}}}]),t}(),z=function(){function t(i,s){e(this,t),this.ctx=i,this.w=i.w;var a=this.w;this.barOptions=a.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=a.config.stroke.width,this.isNullValue=!1,this.xyRatios=s,null!==this.xyRatios&&(this.xRatio=s.xRatio,this.yRatio=s.yRatio,this.invertedXRatio=s.invertedXRatio,this.invertedYRatio=s.invertedYRatio,this.baseLineY=s.baseLineY,this.baseLineInvertedY=s.baseLineInvertedY),this.minXDiff=Number.MAX_VALUE,this.yaxisIndex=0,this.seriesLen=0}return s(t,[{key:"draw",value:function(t,e){var i=this,s=this.w,a=new f(this.ctx),n=new A(this.ctx),r=new b(this.ctx,s);this.series=r.getLogSeries(t),t=this.series,this.yRatio=r.getLogYRatios(this.yRatio),this.initVariables(t);var o=a.group({class:"apexcharts-bar-series apexcharts-plot-series"});o.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")")),s.config.dataLabels.enabled&&this.totalItems>50&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering.");for(var l=function(r,l){var h,c,u,g,f=void 0,p=void 0,x=void 0,m=void 0,v=[],b=[],y=s.globals.comboCharts?e[r]:r,w=a.group({class:"apexcharts-series ".concat(d.escapeString(s.globals.seriesNames[y])),rel:r+1,"data:realIndex":y});i.ctx.series.addCollapsedClassToSeries(w,y),t[r].length>0&&(i.visibleI=i.visibleI+1);var k,A,S=0;i.yRatio.length>1&&(i.yaxisIndex=y),i.isReversed=s.config.yaxis[i.yaxisIndex]&&s.config.yaxis[i.yaxisIndex].reversed;var C=i.initialPositions();m=C.y,k=C.barHeight,c=C.yDivision,g=C.zeroW,x=C.x,A=C.barWidth,h=C.xDivision,u=C.zeroH,i.horizontal||b.push(x+A/2);for(var L=a.group({class:"apexcharts-datalabels"}),z=function(e,a){void 0===i.series[r][e]||null===t[r][e]?i.isNullValue=!0:i.isNullValue=!1,s.config.stroke.show&&(S=i.isNullValue?0:Array.isArray(i.strokeWidth)?i.strokeWidth[y]:i.strokeWidth);var o=null;o=i.isHorizontal?i.drawBarPaths({indexes:{i:r,j:e,realIndex:y,bc:l},barHeight:k,strokeWidth:S,pathTo:f,pathFrom:p,zeroW:g,x:x,y:m,yDivision:c,elSeries:w}):i.drawColumnPaths({indexes:{i:r,j:e,realIndex:y,bc:l},x:x,y:m,xDivision:h,pathTo:f,pathFrom:p,barWidth:A,zeroH:u,strokeWidth:S,elSeries:w}),f=o.pathTo,p=o.pathFrom,m=o.y,x=o.x,e>0&&b.push(x+A/2),v.push(m);var d=i.barOptions.distributed?e:r,C=null;i.barOptions.colors.ranges.length>0&&i.barOptions.colors.ranges.map(function(i){t[r][e]>=i.from&&t[r][e]<=i.to&&(C=i.color)});var z=n.fillPath({seriesNumber:i.barOptions.distributed?d:y,color:C});w=i.renderSeries({realIndex:y,pathFill:z,j:e,i:r,pathFrom:p,pathTo:f,strokeWidth:S,elSeries:w,x:x,y:m,series:t,barHeight:k,barWidth:A,elDataLabelsWrap:L,visibleSeries:i.visibleI,type:"bar"})},M=0,P=s.globals.dataPoints;M0&&(this.seriesLen=this.seriesLen+1,this.totalItems+=t[s].length),i.globals.isXNumeric){i.globals.seriesX.forEach(function(t,s){t.forEach(function(t,a){if(a>0){var n=t-i.globals.seriesX[s][a-1];e.minXDiff=Math.min(n,e.minXDiff)}})});for(var a=0;ai.globals.minX&&i.globals.seriesX[s][a]0&&(h=l.globals.timelineLabels.length),h<3&&(h=3),this.minXDiff=(l.globals.maxX-l.globals.minX)/h}n=(s=this.minXDiff/this.xRatio)/this.seriesLen*parseInt(this.barOptions.columnWidth)/100}r=l.globals.gridHeight-this.baseLineY[this.yaxisIndex]-(this.isReversed?l.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[this.yaxisIndex]:0),t=l.globals.padHorizontal+(s-n*this.seriesLen)/2}return{x:t,y:e,yDivision:i,xDivision:s,barHeight:a,barWidth:n,zeroH:r,zeroW:o}}},{key:"drawBarPaths",value:function(t){var e=t.indexes,i=t.barHeight,s=t.strokeWidth,a=t.pathTo,n=t.pathFrom,r=t.zeroW,o=t.x,l=t.y,h=t.yDivision,c=t.elSeries,d=this.w,u=new f(this.ctx),g=e.i,p=e.j,x=e.realIndex,m=e.bc;d.globals.isXNumeric&&(l=(d.globals.seriesX[g][p]-d.globals.minX)/this.invertedXRatio-i);var v=l+i*this.visibleI;if(a=u.move(r,v),n=u.move(r,v),d.globals.previousPaths.length>0&&(n=this.getPathFrom(x,p)),o=void 0===this.series[g][p]||null===this.series[g][p]?r:r+this.series[g][p]/this.invertedYRatio-2*(this.isReversed?this.series[g][p]/this.invertedYRatio:0),a=a+u.line(o,v)+u.line(o,v+i-s)+u.line(r,v+i-s)+u.line(r,v),n=n+u.line(r,v)+u.line(r,v+i-s)+u.line(r,v+i-s)+u.line(r,v),d.globals.isXNumeric||(l+=h),this.barOptions.colors.backgroundBarColors.length>0&&0===g){m>=this.barOptions.colors.backgroundBarColors.length&&(m=0);var b=this.barOptions.colors.backgroundBarColors[m],y=u.drawRect(0,v-i*this.visibleI,d.globals.gridWidth,i*this.seriesLen,0,b,this.barOptions.colors.backgroundBarOpacity);c.add(y),y.node.classList.add("apexcharts-backgroundBar")}return{pathTo:a,pathFrom:n,x:o,y:l,barYPosition:v}}},{key:"drawColumnPaths",value:function(t){var e=t.indexes,i=t.x,s=t.y,a=t.xDivision,n=t.pathTo,r=t.pathFrom,o=t.barWidth,l=t.zeroH,h=t.strokeWidth,c=t.elSeries,d=this.w,u=new f(this.ctx),g=e.i,p=e.j,x=e.realIndex,m=e.bc;d.globals.isXNumeric&&(i=(d.globals.seriesX[g][p]-d.globals.minX)/this.xRatio-o/2);var v=i+o*this.visibleI;if(n=u.move(v,l),r=u.move(v,l),d.globals.previousPaths.length>0&&(r=this.getPathFrom(x,p)),s=void 0===this.series[g][p]||null===this.series[g][p]?l:l-this.series[g][p]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[g][p]/this.yRatio[this.yaxisIndex]:0),n=n+u.line(v,s)+u.line(v+o-h,s)+u.line(v+o-h,l)+u.line(v,l),r=r+u.line(v,l)+u.line(v+o-h,l)+u.line(v+o-h,l)+u.line(v,l),d.globals.isXNumeric||(i+=a),this.barOptions.colors.backgroundBarColors.length>0&&0===g){m>=this.barOptions.colors.backgroundBarColors.length&&(m=0);var b=this.barOptions.colors.backgroundBarColors[m],y=u.drawRect(v-o*this.visibleI,0,o*this.seriesLen,d.globals.gridHeight,0,b,this.barOptions.colors.backgroundBarOpacity);c.add(y),y.node.classList.add("apexcharts-backgroundBar")}return{pathTo:n,pathFrom:r,x:i,y:s,barXPosition:v}}},{key:"getPathFrom",value:function(t,e){for(var i,s=this.w,a=0;a0&&parseInt(n.realIndex)===parseInt(t)&&void 0!==s.globals.previousPaths[a].paths[e]&&(i=s.globals.previousPaths[a].paths[e].d)}return i}},{key:"calculateDataLabelsPos",value:function(t){var e=t.x,i=t.y,s=t.i,a=t.j,n=t.realIndex,r=t.series,o=t.barHeight,l=t.barWidth,h=t.visibleSeries,c=t.renderedPath,d=this.w,u=new f(this.ctx),g=Array.isArray(this.strokeWidth)?this.strokeWidth[n]:this.strokeWidth,p=e+parseFloat(l*h),x=i+parseFloat(o*h);d.globals.isXNumeric&&(p=e+parseFloat(l*(h+1))-g,x=i+parseFloat(o*(h+1))-g);var m=e,v=i,b={},y=d.config.dataLabels,w=this.barOptions.dataLabels,k=y.offsetX,A=y.offsetY,S={width:0,height:0};return d.config.dataLabels.enabled&&(S=u.getTextRects(d.globals.yLabelFormatters[0](d.globals.maxY),parseInt(y.style.fontSize))),b=this.isHorizontal?this.calculateBarsDataLabelsPosition({x:e,y:i,i:s,j:a,renderedPath:c,bcy:x,barHeight:o,textRects:S,strokeWidth:g,dataLabelsX:m,dataLabelsY:v,barDataLabelsConfig:w,offX:k,offY:A}):this.calculateColumnsDataLabelsPosition({x:e,y:i,i:s,j:a,renderedPath:c,realIndex:n,bcx:p,bcy:x,barHeight:o,barWidth:l,textRects:S,strokeWidth:g,dataLabelsY:v,barDataLabelsConfig:w,offX:k,offY:A}),c.attr({cy:b.bcy,cx:b.bcx,j:a,val:r[s][a],barHeight:o,barWidth:l}),this.drawCalculatedDataLabels({x:b.dataLabelsX,y:b.dataLabelsY,val:r[s][a],i:n,j:a,dataLabelsConfig:y})}},{key:"calculateColumnsDataLabelsPosition",value:function(t){var e,i=this.w,s=t.i,a=t.j,n=(t.realIndex,t.y),r=t.bcx,o=t.barWidth,l=t.textRects,h=t.dataLabelsY,c=t.barDataLabelsConfig,d=t.strokeWidth,u=t.offX,g=t.offY,f=this.series[s][a]/this.yRatio[this.yaxisIndex],p=i.globals.gridWidth/i.globals.dataPoints;r-=d/2,e=i.globals.isXNumeric?r-o/2+u:r-p+o/2+u;var x=this.series[s][a]<=0;switch(i.config.yaxis[this.yaxisIndex].reversed&&(n-=f),c.position){case"center":h=x?n+f/2+l.height/2+g:n+f/2+l.height/2-g;break;case"bottom":h=x?n+f+l.height+d+g:n+f-l.height/2+d-g;break;case"top":h=x?n-l.height/2-g:n+l.height+g}return{bcx:r,bcy:n,dataLabelsX:e,dataLabelsY:h}}},{key:"calculateBarsDataLabelsPosition",value:function(t){var e=this.w,i=t.x,s=t.i,a=t.j,n=t.bcy,r=t.barHeight,o=t.textRects,l=t.dataLabelsX,h=t.strokeWidth,c=t.barDataLabelsConfig,d=t.offX,u=t.offY,g=n-e.globals.gridHeight/e.globals.dataPoints+r/2+o.height/2+u-3,f=this.series[s][a]/this.invertedYRatio,p=this.series[s][a]<=0;switch(e.config.yaxis[this.yaxisIndex].reversed&&(i+=f),c.position){case"center":l=p?i-f/2-d:i-f/2+d;break;case"bottom":l=p?i-f-h-Math.round(o.width/2)-d:i-f+h+Math.round(o.width/2)+d;break;case"top":l=p?i-h+Math.round(o.width/2)-d:i-h-Math.round(o.width/2)+d}return l<0?l=o.width+h:l+o.width/2>e.globals.gridWidth&&(l=l-o.width-h),{bcx:i,bcy:n,dataLabelsX:l,dataLabelsY:g}}},{key:"drawCalculatedDataLabels",value:function(t){var e=t.x,i=t.y,s=t.val,a=t.i,n=t.j,r=t.dataLabelsConfig,o=this.w,l=new L(this.ctx),h=new f(this.ctx),c=r.formatter,d=null,u=o.globals.collapsedSeriesIndices.indexOf(a)>-1;if(r.enabled&&!u){d=h.group({class:"apexcharts-data-labels"});var g="";null!=s&&(g=c(s,{seriesIndex:a,dataPointIndex:n,w:o})),l.plotDataLabelsText({x:e,y:i,text:g,i:a,j:n,parent:d,dataLabelsConfig:r,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return d}}]),t}(),M=function(t){function i(){return e(this,i),h(this,o(i).apply(this,arguments))}return r(i,z),s(i,[{key:"draw",value:function(t,e){var i=this,s=this.w;this.graphics=new f(this.ctx),this.fill=new A(this.ctx),this.bar=new z(this.ctx,this.xyRatios);var a=new b(this.ctx,s);this.series=a.getLogSeries(t),t=this.series,this.yRatio=a.getLogYRatios(this.yRatio),this.series=t,this.initVariables(t),"100%"===s.config.chart.stackType&&(this.series=s.globals.seriesPercent.slice(),t=this.series),this.totalItems=0,this.prevY=[],this.prevX=[],this.prevYF=[],this.prevXF=[],this.prevYVal=[],this.prevXVal=[],this.xArrj=[],this.xArrjF=[],this.xArrjVal=[],this.yArrj=[],this.yArrjF=[],this.yArrjVal=[];for(var n=0;n0&&(this.totalItems+=t[n].length);var r=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"});r.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")"));for(var o=0,l=0,h=function(a,n){var h=void 0,c=void 0,u=void 0,g=void 0,f=void 0,p=void 0,x=[],m=[],v=s.globals.comboCharts?e[a]:a;i.yRatio.length>1&&(i.yaxisIndex=v),i.isReversed=s.config.yaxis[i.yaxisIndex]&&s.config.yaxis[i.yaxisIndex].reversed;var b,y,w=i.graphics.group({class:"apexcharts-series ".concat(d.escapeString(s.globals.seriesNames[v])),rel:a+1,"data:realIndex":v}),k=i.graphics.group({class:"apexcharts-datalabels"}),A=0,S=i.initialPositions(o,l,u,g,f,p);l=S.y,b=S.barHeight,g=S.yDivision,p=S.zeroW,o=S.x,y=S.barWidth,u=S.xDivision,f=S.zeroH,i.yArrj=[],i.yArrjF=[],i.yArrjVal=[],i.xArrj=[],i.xArrjF=[],i.xArrjVal=[];for(var C=function(e){s.config.stroke.show&&(A=i.isNullValue?0:Array.isArray(i.strokeWidth)?i.strokeWidth[v]:i.strokeWidth);var r=null;r=i.isHorizontal?i.drawBarPaths({indexes:{i:a,j:e,realIndex:v,bc:n},barHeight:b,strokeWidth:A,pathTo:h,pathFrom:c,zeroW:p,x:o,y:l,yDivision:g,elSeries:w}):i.drawColumnPaths({indexes:{i:a,j:e,realIndex:v,bc:n},x:o,y:l,xDivision:u,pathTo:h,pathFrom:c,barWidth:y,zeroH:f,strokeWidth:A,elSeries:w}),h=r.pathTo,c=r.pathFrom,l=r.y,o=r.x,x.push(o),m.push(l);var d=s.config.plotOptions.bar.distributed?e:a,S=null;i.barOptions.colors.ranges.length>0&&i.barOptions.colors.ranges.map(function(i,s){t[a][e]>=i.from&&t[a][e]<=i.to&&(S=i.color)});var C=i.fill.fillPath({seriesNumber:i.barOptions.distributed?d:v,color:S});w=i.renderSeries({realIndex:v,pathFill:C,j:e,i:a,pathFrom:c,pathTo:h,strokeWidth:A,elSeries:w,x:o,y:l,series:t,barHeight:b,barWidth:y,elDataLabelsWrap:k,type:"bar",visibleSeries:0})},L=0;L0){var y=o;this.prevXVal[f-1][p]<0?y=this.series[f][p]>=0?this.prevX[f-1][p]+v-2*(this.isReversed?v:0):this.prevX[f-1][p]:this.prevXVal[f-1][p]>=0&&(y=this.series[f][p]>=0?this.prevX[f-1][p]:this.prevX[f-1][p]-v+2*(this.isReversed?v:0)),e=y}else e=o;if(l=null===this.series[f][p]?e:e+this.series[f][p]/this.invertedYRatio-2*(this.isReversed?this.series[f][p]/this.invertedYRatio:0),this.xArrj.push(l),this.xArrjF.push(Math.abs(e-l)),this.xArrjVal.push(this.series[f][p]),n=this.graphics.move(e,g),r=this.graphics.move(e,g),u.globals.previousPaths.length>0&&(r=this.bar.getPathFrom(x,p,!1)),n=n+this.graphics.line(l,g)+this.graphics.line(l,g+s-a)+this.graphics.line(e,g+s-a)+this.graphics.line(e,g),r=r+this.graphics.line(e,g)+this.graphics.line(e,g+s-a)+this.graphics.line(e,g+s-a)+this.graphics.line(e,g+s-a)+this.graphics.line(e,g),u.config.plotOptions.bar.colors.backgroundBarColors.length>0&&0===f){m>=u.config.plotOptions.bar.colors.backgroundBarColors.length&&(m=0);var w=u.config.plotOptions.bar.colors.backgroundBarColors[m],k=this.graphics.drawRect(0,g,u.globals.gridWidth,s,0,w,u.config.plotOptions.bar.colors.backgroundBarOpacity);d.add(k),k.node.classList.add("apexcharts-backgroundBar")}return{pathTo:n,pathFrom:r,x:l,y:h+=c}}},{key:"drawColumnPaths",value:function(t){var e=t.indexes,i=t.x,s=t.y,a=t.xDivision,n=t.pathTo,r=t.pathFrom,o=t.barWidth,l=t.zeroH,h=t.strokeWidth,c=t.elSeries,d=this.w,u=e.i,g=e.j,f=e.realIndex,p=e.bc;if(d.globals.isXNumeric){var x=d.globals.seriesX[u][g];x||(x=0),i=(x-d.globals.minX)/this.xRatio-o/2}for(var m,v=i,b=0,y=0;y0&&!d.globals.isXNumeric||u>0&&d.globals.isXNumeric&&d.globals.seriesX[u-1][g]===d.globals.seriesX[u][g]){var w=this.prevY[u-1][g];m=this.prevYVal[u-1][g]<0?this.series[u][g]>=0?w-b+2*(this.isReversed?b:0):w:this.series[u][g]>=0?w:w+b-2*(this.isReversed?b:0)}else m=d.globals.gridHeight-l;if(s=m-this.series[u][g]/this.yRatio[this.yaxisIndex]+2*(this.isReversed?this.series[u][g]/this.yRatio[this.yaxisIndex]:0),this.yArrj.push(s),this.yArrjF.push(Math.abs(m-s)),this.yArrjVal.push(this.series[u][g]),n=this.graphics.move(v,m),r=this.graphics.move(v,m),d.globals.previousPaths.length>0&&(r=this.bar.getPathFrom(f,g,!1)),n=n+this.graphics.line(v,s)+this.graphics.line(v+o-h,s)+this.graphics.line(v+o-h,m)+this.graphics.line(v,m),r=r+this.graphics.line(v,m)+this.graphics.line(v+o-h,m)+this.graphics.line(v+o-h,m)+this.graphics.line(v+o-h,m)+this.graphics.line(v,m),d.config.plotOptions.bar.colors.backgroundBarColors.length>0&&0===u){p>=d.config.plotOptions.bar.colors.backgroundBarColors.length&&(p=0);var k=d.config.plotOptions.bar.colors.backgroundBarColors[p],A=this.graphics.drawRect(v,0,o,d.globals.gridHeight,0,k,d.config.plotOptions.bar.colors.backgroundBarOpacity);c.add(A),A.node.classList.add("apexcharts-backgroundBar")}return i+=a,{pathTo:n,pathFrom:r,x:d.globals.isXNumeric?i-a:i,y:s}}}]),i}(),P=function(t){function i(){return e(this,i),h(this,o(i).apply(this,arguments))}return r(i,z),s(i,[{key:"draw",value:function(t,e){var i=this.w,s=new f(this.ctx),a=new A(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick;var n=new b(this.ctx,i);this.series=n.getLogSeries(t),t=this.series,this.yRatio=n.getLogYRatios(this.yRatio),this.initVariables(t);var r=s.group({class:"apexcharts-candlestick-series apexcharts-plot-series"});r.attr("clip-path","url(#gridRectMask".concat(i.globals.cuid,")"));for(var o=0,l=0;o0&&(this.visibleI=this.visibleI+1);var k,S,C=0;this.yRatio.length>1&&(this.yaxisIndex=y);var L=this.initialPositions();x=L.y,k=L.barHeight,p=L.x,S=L.barWidth,h=L.xDivision,c=L.zeroH,v.push(p+S/2);for(var z=s.group({class:"apexcharts-datalabels"}),M=0,P=i.globals.dataPoints;M0&&v.push(p+S/2),m.push(x);var X=a.fillPath({seriesNumber:y,color:E}),I=this.candlestickOptions.wick.useFillColor?E:void 0;w=this.renderSeries({realIndex:y,pathFill:X,lineFill:I,j:M,i:o,pathFrom:g,pathTo:u,strokeWidth:C,elSeries:w,x:p,y:x,series:t,barHeight:k,barWidth:S,elDataLabelsWrap:z,visibleSeries:this.visibleI,type:"candlestick"})}i.globals.seriesXvalues[y]=v,i.globals.seriesYvalues[y]=m,r.add(w)}return r}},{key:"drawCandleStickPaths",value:function(t){var e=t.indexes,i=t.x,s=(t.y,t.xDivision),a=t.pathTo,n=t.pathFrom,r=t.barWidth,o=t.zeroH,l=t.strokeWidth,h=this.w,c=new f(this.ctx),d=e.i,u=e.j,g=!0,p=h.config.plotOptions.candlestick.colors.upward,x=h.config.plotOptions.candlestick.colors.downward,m=this.yRatio[this.yaxisIndex],v=e.realIndex,b=this.getOHLCValue(v,u),y=o,w=o;b.o>b.c&&(g=!1);var k=Math.min(b.o,b.c),A=Math.max(b.o,b.c);h.globals.isXNumeric&&(i=(h.globals.seriesX[d][u]-h.globals.minX)/this.xRatio-r/2);var S=i+r*this.visibleI;return c.move(S,o),n=c.move(S,o),h.globals.previousPaths.length>0&&(n=this.getPathFrom(v,u,!0)),void 0===this.series[d][u]||null===this.series[d][u]?k=o:(k=o-k/m,A=o-A/m,y=o-b.h/m,w=o-b.l/m),a=c.move(S,A)+c.line(S+r/2,A)+c.line(S+r/2,y)+c.line(S+r/2,A)+c.line(S+r,A)+c.line(S+r,k)+c.line(S+r/2,k)+c.line(S+r/2,w)+c.line(S+r/2,k)+c.line(S,k)+c.line(S,A-l/2),h.globals.isXNumeric||(i+=s),{pathTo:a,pathFrom:n,x:i,y:A,barXPosition:S,color:g?p:x}}},{key:"getOHLCValue",value:function(t,e){var i=this.w;return{o:i.globals.seriesCandleO[t][e],h:i.globals.seriesCandleH[t][e],l:i.globals.seriesCandleL[t][e],c:i.globals.seriesCandleC[t][e]}}}]),i}(),E=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return s(t,[{key:"drawXCrosshairs",value:function(){var t=this.w,e=new f(this.ctx),i=new u(this.ctx),s=t.config.xaxis.crosshairs.fill.gradient,a=t.config.xaxis.crosshairs.dropShadow,n=t.config.xaxis.crosshairs.fill.type,r=s.colorFrom,o=s.colorTo,l=s.opacityFrom,h=s.opacityTo,c=s.stops,g=a.enabled,p=a.left,x=a.top,m=a.blur,v=a.color,b=a.opacity,y=t.config.xaxis.crosshairs.fill.color;if(t.config.xaxis.crosshairs.show){"gradient"===n&&(y=e.drawGradient("vertical",r,o,l,h,null,c,null));var w=e.drawRect();1===t.config.xaxis.crosshairs.width&&(w=e.drawLine()),w.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:t.globals.gridHeight,width:d.isNumber(t.config.xaxis.crosshairs.width)?t.config.xaxis.crosshairs.width:0,height:t.globals.gridHeight,fill:y,filter:"none","fill-opacity":t.config.xaxis.crosshairs.opacity,stroke:t.config.xaxis.crosshairs.stroke.color,"stroke-width":t.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":t.config.xaxis.crosshairs.stroke.dashArray}),g&&(w=i.dropShadow(w,{left:p,top:x,blur:m,color:v,opacity:b})),t.globals.dom.elGraphical.add(w)}}},{key:"drawYCrosshairs",value:function(){var t=this.w,e=new f(this.ctx),i=t.config.yaxis[0].crosshairs;if(t.config.yaxis[0].crosshairs.show){var s=e.drawLine(0,0,t.globals.gridWidth,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);s.attr({class:"apexcharts-ycrosshairs"}),t.globals.dom.elGraphical.add(s)}var a=e.drawLine(0,0,t.globals.gridWidth,0,i.stroke.color,0,0);a.attr({class:"apexcharts-ycrosshairs-hidden"}),t.globals.dom.elGraphical.add(a)}}]),t}(),T=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return s(t,[{key:"isValidDate",value:function(t){return!isNaN(this.parseDate(t))}},{key:"getUTCTimeStamp",value:function(t){return Date.parse(t)?new Date(new Date(t).toISOString().substr(0,25)).getTime():t}},{key:"parseDate",value:function(t){var e=Date.parse(t);if(!isNaN(e))return this.getUTCTimeStamp(t);var i=Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "));return i=this.getUTCTimeStamp(i)}},{key:"treatAsUtc",value:function(t){var e=new Date(t);return e.setMinutes(e.getMinutes()-e.getTimezoneOffset()),e}},{key:"formatDate",value:function(t,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=this.w.globals.locale,n=["\0"].concat(c(a.months)),r=["\x01"].concat(c(a.shortMonths)),o=["\x02"].concat(c(a.days)),l=["\x03"].concat(c(a.shortDays));function h(t,e){var i=t+"";for(e=e||2;i.length12?f-12:0===f?12:f;e=(e=(e=(e=e.replace(/(^|[^\\])HH+/g,"$1"+h(f))).replace(/(^|[^\\])H/g,"$1"+f)).replace(/(^|[^\\])hh+/g,"$1"+h(p))).replace(/(^|[^\\])h/g,"$1"+p);var x=i?t.getUTCMinutes():t.getMinutes();e=(e=e.replace(/(^|[^\\])mm+/g,"$1"+h(x))).replace(/(^|[^\\])m/g,"$1"+x);var m=i?t.getUTCSeconds():t.getSeconds();e=(e=e.replace(/(^|[^\\])ss+/g,"$1"+h(m))).replace(/(^|[^\\])s/g,"$1"+m);var v=i?t.getUTCMilliseconds():t.getMilliseconds();e=e.replace(/(^|[^\\])fff+/g,"$1"+h(v,3)),v=Math.round(v/10),e=e.replace(/(^|[^\\])ff/g,"$1"+h(v)),v=Math.round(v/10);var b=f<12?"AM":"PM";e=(e=(e=e.replace(/(^|[^\\])f/g,"$1"+v)).replace(/(^|[^\\])TT+/g,"$1"+b)).replace(/(^|[^\\])T/g,"$1"+b.charAt(0));var y=b.toLowerCase();e=(e=e.replace(/(^|[^\\])tt+/g,"$1"+y)).replace(/(^|[^\\])t/g,"$1"+y.charAt(0));var w=-t.getTimezoneOffset(),k=i||!w?"Z":w>0?"+":"-";if(!i){var A=(w=Math.abs(w))%60;k+=h(Math.floor(w/60))+":"+h(A)}e=e.replace(/(^|[^\\])K/g,"$1"+k);var S=(i?t.getUTCDay():t.getDay())+1;return e=(e=(e=(e=(e=e.replace(new RegExp(o[0],"g"),o[S])).replace(new RegExp(l[0],"g"),l[S])).replace(new RegExp(n[0],"g"),n[u])).replace(new RegExp(r[0],"g"),r[u])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(t,e){var i=this.w;void 0!==i.config.xaxis.min&&(t=i.config.xaxis.min),void 0!==i.config.xaxis.max&&(e=i.config.xaxis.max);var s=new Date(t).getFullYear(),a=new Date(e).getFullYear(),n=new Date(t).getMonth(),r=new Date(e).getMonth(),o=new Date(t).getDate(),l=new Date(e).getDate(),h=new Date(t).getHours(),c=new Date(e).getHours();return{minMinute:new Date(t).getMinutes(),maxMinute:new Date(e).getMinutes(),minHour:h,maxHour:c,minDate:o,maxDate:l,minMonth:n,maxMonth:r,minYear:s,maxYear:a}}},{key:"isLeapYear",value:function(t){return t%4==0&&t%100!=0||t%400==0}},{key:"calculcateLastDaysOfMonth",value:function(t,e,i){return this.determineDaysOfMonths(t,e)-i}},{key:"determineDaysOfYear",value:function(t){var e=365;return this.isLeapYear(t)&&(e=366),e}},{key:"determineRemainingDaysOfYear",value:function(t,e,i){var s=this.daysCntOfYear[e]+i;return e>1&&this.isLeapYear()&&s++,s}},{key:"determineDaysOfMonths",value:function(t,e){var i=30;switch(t=d.monthMod(t),!0){case this.months30.indexOf(t)>-1:2===t&&(i=this.isLeapYear(e)?29:28);break;case this.months31.indexOf(t)>-1:default:i=31}return i}}]),t}(),X=function(){function t(i,s){e(this,t),this.ctx=i,this.w=i.w,this.xRatio=s.xRatio,this.yRatio=s.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.width}return s(t,[{key:"draw",value:function(t){var e=this.w,i=new f(this.ctx),s=i.group({class:"apexcharts-heatmap"});s.attr("clip-path","url(#gridRectMask".concat(e.globals.cuid,")"));var a=e.globals.gridWidth/e.globals.dataPoints,n=e.globals.gridHeight/e.globals.series.length,r=0,o=!1,l=t.slice();e.config.yaxis[0].reversed&&(o=!0,l.reverse());for(var h=o?0:l.length-1;o?h=0;o?h++:h--){var c=i.group({class:"apexcharts-series apexcharts-heatmap-series ".concat(d.escapeString(e.globals.seriesNames[h])),rel:h+1,"data:realIndex":h});if(e.config.chart.dropShadow.enabled){var g=e.config.chart.dropShadow;new u(this.ctx).dropShadow(c,g)}for(var p=0,x=0;xi.globals.maxY?a.colorScale.max:i.globals.maxY);var h=Math.abs(l)+Math.abs(o),d=100*s/(0===h?h-1e-6:h);a.colorScale.ranges.length>0&&a.colorScale.ranges.map(function(t,e){s>=t.from&&s<=t.to&&(r=t.color,o=t.from,l=t.to,h=Math.abs(l)+Math.abs(o),d=100*s/h)});return{color:r,percent:d}}},{key:"calculateHeatmapDataLabels",value:function(t){var e=t.x,i=t.y,s=t.i,a=t.j,n=(t.series,t.rectHeight),r=t.rectWidth,o=this.w,l=o.config.dataLabels,h=new f(this.ctx),c=new L(this.ctx),d=l.formatter,u=null;if(l.enabled){u=h.group({class:"apexcharts-data-labels"});var g=l.offsetX,p=l.offsetY,x=e+r/2+g,m=i+n/2+parseInt(l.style.fontSize)/3+p,v=d(o.globals.series[s][a],{seriesIndex:s,dataPointIndex:a,w:o});c.plotDataLabelsText({x:x,y:m,text:v,i:s,j:a,parent:u,dataLabelsConfig:l})}return u}},{key:"animateHeatMap",value:function(t,e,i,s,a,n){var r=this;new g(this.ctx).animateRect(t,{x:e+s/2,y:i+a/2,width:0,height:0},{x:e,y:i,width:s,height:a},n,function(){r.w.globals.animationEnded=!0})}},{key:"animateHeatColor",value:function(t,e,i,s){t.attr({fill:e}).animate(s).attr({fill:i})}}]),t}(),I=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels;var s=this.w;this.lineColorArr=void 0!==s.globals.stroke.colors?s.globals.stroke.colors:s.globals.colors,this.defaultSize=s.globals.svgHeightthis.fullAngle?e.endAngle=e.endAngle-(s+r):s+r=360&&(l=359.99);var h=Math.PI*(l-90)/180,c=e.centerX+a*Math.cos(o),u=e.centerY+a*Math.sin(o),g=e.centerX+a*Math.cos(h),f=e.centerY+a*Math.sin(h),p=d.polarToCartesian(e.centerX,e.centerY,e.donutSize,l),x=d.polarToCartesian(e.centerX,e.centerY,e.donutSize,r),m=s>180?1:0;return"donut"===n.config.chart.type?["M",c,u,"A",a,a,0,m,1,g,f,"L",p.x,p.y,"A",e.donutSize,e.donutSize,0,m,0,x.x,x.y,"L",c,u,"z"].join(" "):"pie"===n.config.chart.type?["M",c,u,"A",a,a,0,m,1,g,f,"L",e.centerX,e.centerY,"L",c,u].join(" "):["M",c,u,"A",a,a,0,m,1,g,f].join(" ")}},{key:"renderInnerDataLabels",value:function(t,e){var i=this.w,s=new f(this.ctx),a=s.group({class:"apexcharts-datalabels-group",transform:"translate(".concat(e.translateX?e.translateX:0,", ").concat(e.translateY?e.translateY:0,")")}),n=t.total.show;a.node.style.opacity=e.opacity;var r,o,l=e.centerX,h=e.centerY;r=void 0===t.name.color?i.globals.colors[0]:t.name.color,o=void 0===t.value.color?i.config.chart.foreColor:t.value.color;var c=t.value.formatter,d="",u="";if(n?(r=t.total.color,u=t.total.label,d=t.total.formatter(i)):1===i.globals.series.length&&(d=c(i.globals.series[0],i),u=i.globals.seriesNames[0]),t.name.show){var g=s.drawText({x:l,y:h+parseInt(t.name.offsetY),text:u,textAnchor:"middle",foreColor:r,fontSize:t.name.fontSize,fontFamily:t.name.fontFamily});g.node.classList.add("apexcharts-datalabel-label"),a.add(g)}if(t.value.show){var p=t.name.show?parseInt(t.value.offsetY)+16:t.value.offsetY,x=s.drawText({x:l,y:h+p,text:d,textAnchor:"middle",foreColor:o,fontSize:t.value.fontSize,fontFamily:t.value.fontFamily});x.node.classList.add("apexcharts-datalabel-value"),a.add(x)}return a}},{key:"printInnerLabels",value:function(t,e,i,s){var a,n=this.w;s?a=void 0===t.name.color?n.globals.colors[parseInt(s.parentNode.getAttribute("rel"))-1]:t.name.color:n.globals.series.length>1&&t.total.show&&(a=t.total.color);var r=n.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),o=n.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,t.value.formatter)(i,n),s||"function"!=typeof t.total.formatter||(i=t.total.formatter(n)),null!==r&&(r.textContent=e),null!==o&&(o.textContent=i),null!==r&&(r.style.fill=a)}},{key:"printDataLabelsInner",value:function(t,e){var i=this.w,s=t.getAttribute("data:value"),a=i.globals.seriesNames[parseInt(t.parentNode.getAttribute("rel"))-1];i.globals.series.length>1&&this.printInnerLabels(e,a,s,t);var n=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==n&&(n.style.opacity=1)}},{key:"revertDataLabelsInner",value:function(e,i){var s=this.w,a=s.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");if(i.total.show&&s.globals.series.length>1)new t(this.ctx).printInnerLabels(i,i.total.label,i.total.formatter(s));else if(s.globals.selectedDataPoints.length)if(s.globals.selectedDataPoints[0].length>0){var n=s.globals.selectedDataPoints[0],r=s.globals.dom.baseEl.querySelector("#apexcharts-pie-slice-".concat(n));this.printDataLabelsInner(r,i)}else a.style.opacity=0;else(0===s.globals.selectedDataPoints.length||null!==a&&s.globals.series.length>1)&&(a.style.opacity=0)}}]),t}(),Y=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var s=this.w;this.graphics=new f(this.ctx),this.lineColorArr=void 0!==s.globals.stroke.colors?s.globals.stroke.colors:s.globals.colors,this.defaultSize=s.globals.svgHeight0&&(f=e.getPathFrom(r));for(var p=0;p=10?n[h].x>0?(i="start",r+=10):n[h].x<0&&(i="end",r-=10):i="middle",Math.abs(n[h].y)>=t.size-10&&(n[h].y<0?o-=10:n[h].y>0&&(o+=10));var u=c(l,{seriesIndex:-1,dataPointIndex:h,w:e});d.plotDataLabelsText({x:r,y:o,text:u,textAnchor:i,i:h,j:h,parent:a,dataLabelsConfig:s,offsetCorrection:!1})}}),a}},{key:"createPaths",value:function(t,e){var i=this,s=[],a=[],n=[],r=[];if(t.length){a=[this.graphics.move(e.x,e.y)],r=[this.graphics.move(e.x,e.y)];var o=this.graphics.move(t[0].x,t[0].y),l=this.graphics.move(t[0].x,t[0].y);t.forEach(function(e,s){o+=i.graphics.line(e.x,e.y),l+=i.graphics.line(e.x,e.y),s===t.length-1&&(o+="Z",l+="Z")}),s.push(o),n.push(l)}return{linePathsFrom:a,linePathsTo:s,areaPathsFrom:r,areaPathsTo:n}}},{key:"getPathFrom",value:function(t){for(var e=this.w,i=null,s=0;s0&&parseInt(a.realIndex)===parseInt(t)&&void 0!==e.globals.previousPaths[s].paths[0]&&(i=e.globals.previousPaths[s].paths[0].d)}return i}},{key:"getDataPointsPos",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen;t=t||[],e=e||[];for(var s=[],a=0;a=360&&(g=360-Math.abs(this.startAngle)-.1);var p=i.drawPath({d:"",stroke:c,strokeWidth:r*parseInt(h.strokeWidth)/100,fill:"none",strokeOpacity:h.opacity,classes:"apexcharts-radialbar-area"});if(h.dropShadow.enabled){var x=h.dropShadow;a.dropShadow(p,x)}l.add(p),p.attr("id","apexcharts-radialbarTrack-"+o),new I(this.ctx).animatePaths(p,{centerX:t.centerX,centerY:t.centerY,endAngle:g,startAngle:d,size:t.size,i:o,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:e.globals.easing})}return s}},{key:"drawArcs",value:function(t){var e=this.w,i=new f(this.ctx),s=new A(this.ctx),a=new u(this.ctx),n=i.group(),r=this.getStrokeWidth(t);t.size=t.size-r/2;var o=e.config.plotOptions.radialBar.hollow.background,l=t.size-r*t.series.length-this.margin*t.series.length-r*parseInt(e.config.plotOptions.radialBar.track.strokeWidth)/100/2,h=l-e.config.plotOptions.radialBar.hollow.margin;void 0!==e.config.plotOptions.radialBar.hollow.image&&(o=this.drawHollowImage(t,n,l,o));var c=this.drawHollow({size:h,centerX:t.centerX,centerY:t.centerY,fill:o});if(e.config.plotOptions.radialBar.hollow.dropShadow.enabled){var g=e.config.plotOptions.radialBar.hollow.dropShadow;a.dropShadow(c,g)}var p=1;!this.radialDataLabels.total.show&&e.globals.series.length>1&&(p=0);var x=new I(this.ctx),m=null;this.radialDataLabels.show&&(m=x.renderInnerDataLabels(this.radialDataLabels,{hollowSize:l,centerX:t.centerX,centerY:t.centerY,opacity:p})),"back"===e.config.plotOptions.radialBar.hollow.position&&(n.add(c),m&&n.add(m));var v=!1;e.config.plotOptions.radialBar.inverseOrder&&(v=!0);for(var b=v?t.series.length-1:0;v?b>=0:b100?100:t.series[b])/100,z=Math.round(C*L)+this.startAngle,M=void 0;e.globals.dataChanged&&(S=this.startAngle,M=Math.round(C*d.negToZero(e.globals.previousPaths[b])/100)+S),Math.abs(z)+Math.abs(k)>=360&&(z-=.01),Math.abs(M)+Math.abs(S)>=360&&(M-=.01);var P=z-k,E=Array.isArray(e.config.stroke.dashArray)?e.config.stroke.dashArray[b]:e.config.stroke.dashArray,T=i.drawPath({d:"",stroke:w,strokeWidth:r,fill:"none",fillOpacity:e.config.fill.opacity,classes:"apexcharts-radialbar-area",strokeDashArray:E});if(f.setAttrs(T.node,{"data:angle":P,"data:value":t.series[b]}),e.config.chart.dropShadow.enabled){var X=e.config.chart.dropShadow;a.dropShadow(T,X)}this.addListeners(T,this.radialDataLabels);var Y=new I(this.ctx);y.add(T),T.attr({id:"apexcharts-radialArc-"+b,index:0,j:b});var F=0;!Y.initialAnim||e.globals.resized||e.globals.dataChanged||(F=(z-k)/360*e.config.chart.animations.speed,this.animDur=F/(1.2*t.series.length)+this.animDur,this.animBeginArr.push(this.animDur)),e.globals.dataChanged&&(F=(z-k)/360*e.config.chart.animations.dynamicAnimation.speed,this.animDur=F/(1.2*t.series.length)+this.animDur,this.animBeginArr.push(this.animDur)),Y.animatePaths(T,{centerX:t.centerX,centerY:t.centerY,endAngle:z,startAngle:k,prevEndAngle:M,prevStartAngle:S,size:t.size,i:b,totalItems:2,animBeginArr:this.animBeginArr,dur:F,shouldSetPrevPaths:!0,easing:e.globals.easing})}return{g:n,elHollow:c,dataLabels:m}}},{key:"drawHollow",value:function(t){var e=new f(this.ctx).drawCircle(2*t.size);return e.attr({class:"apexcharts-radialbar-hollow",cx:t.centerX,cy:t.centerY,r:t.size,fill:t.fill}),e}},{key:"drawHollowImage",value:function(t,e,i,s){var a=this.w,n=new A(this.ctx),r=(Math.random()+1).toString(36).substring(4),o=a.config.plotOptions.radialBar.hollow.image;if(a.config.plotOptions.radialBar.hollow.imageClipped)n.clippedImgArea({width:i,height:i,image:o,patternID:"pattern".concat(a.globals.cuid).concat(r)}),s="url(#pattern".concat(a.globals.cuid).concat(r,")");else{var l=a.config.plotOptions.radialBar.hollow.imageWidth,h=a.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===l&&void 0===h){var c=a.globals.dom.Paper.image(o).loaded(function(e){this.move(t.centerX-e.width/2+a.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-e.height/2+a.config.plotOptions.radialBar.hollow.imageOffsetY)});e.add(c)}else{var d=a.globals.dom.Paper.image(o).loaded(function(e){this.move(t.centerX-l/2+a.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-h/2+a.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(l,h)});e.add(d)}}return s}},{key:"getStrokeWidth",value:function(t){var e=this.w;return t.size*(100-parseInt(e.config.plotOptions.radialBar.hollow.size))/100/(t.series.length+1)-this.margin}}]),i}(),O=function(){function t(i,s,a){e(this,t),this.ctx=i,this.w=i.w,this.xyRatios=s,this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||a,this.scatter=new C(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.yaxisIndex=0}return s(t,[{key:"draw",value:function(t,e,i){var s=this.w,a=new f(this.ctx),r=new A(this.ctx),o=s.globals.comboCharts?e:s.config.chart.type,l=a.group({class:"apexcharts-".concat(o,"-series apexcharts-plot-series")}),h=new b(this.ctx,s);t=h.getLogSeries(t);var c=this.xyRatios.yRatio;c=h.getLogYRatios(c);for(var u=this.xyRatios.zRatio,g=this.xyRatios.xRatio,p=this.xyRatios.baseLineY,x=[],m=[],v=0,y=0;y1&&(this.yaxisIndex=k),this.isReversed=s.config.yaxis[this.yaxisIndex]&&s.config.yaxis[this.yaxisIndex].reversed;var C=[],z=[],M=s.globals.gridHeight-p[this.yaxisIndex]-(this.isReversed?s.globals.gridHeight:0)+(this.isReversed?2*p[this.yaxisIndex]:0),P=M;M>s.globals.gridHeight&&(P=s.globals.gridHeight),v=w/2;var E=s.globals.padHorizontal+v,T=1;s.globals.isXNumeric&&(E=(s.globals.seriesX[k][0]-s.globals.minX)/g),z.push(E);var X=void 0,I=void 0,Y=void 0,F=void 0,O=[],R=[],D=a.group({class:"apexcharts-series ".concat(d.escapeString(s.globals.seriesNames[k]))}),N=a.group({class:"apexcharts-series-markers-wrap"}),H=a.group({class:"apexcharts-datalabels"});this.ctx.series.addCollapsedClassToSeries(D,k);var W=t[y].length===s.globals.dataPoints;D.attr({"data:longestSeries":W,rel:y+1,"data:realIndex":k}),this.appendPathFrom=!0;var B=E,V=void 0,G=B,_=M,j=0;if(_=this.determineFirstPrevY({i:y,series:t,yRatio:c[this.yaxisIndex],zeroY:M,prevY:_,prevSeriesY:m,lineYPosition:j}).prevY,C.push(_),V=_,null===t[y][0]){for(var U=0;U0){var q=this.checkPreviousPaths({pathFromLine:Y,pathFromArea:F,realIndex:k});Y=q.pathFromLine,F=q.pathFromArea}for(var Z=s.globals.dataPoints>1?s.globals.dataPoints-1:s.globals.dataPoints,$=0;$0&&s.globals.collapsedSeries.length1&&N.node.classList.add("hidden");var it=et.plotChartMarkers(tt,k,$+1);null!==it&&N.add(it)}var st=new L(this.ctx).drawDataLabel(tt,k,$+1);null!==st&&H.add(st)}m.push(C),s.globals.seriesXvalues[k]=z,s.globals.seriesYvalues[k]=C,this.pointsChart||s.globals.delayedElements.push({el:N.node,index:k});var at={i:y,realIndex:k,animationDelay:y,initialSpeed:s.config.chart.animations.speed,dataChangeSpeed:s.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(o),id:"apexcharts-".concat(o)};if(s.config.stroke.show&&!this.pointsChart){var nt=null;nt="line"===o?r.fillPath({seriesNumber:k,i:y}):s.globals.stroke.colors[k];for(var rt=0;rt0;dt--)l.add(x[dt-1]);return l}},{key:"createPaths",value:function(t){var e=t.series,i=t.i,s=t.j,a=t.x,n=t.y,r=t.pX,o=t.pY,l=t.xDivision,h=t.areaBottomY,c=t.linePath,d=t.areaPath,u=t.linePaths,g=t.areaPaths,p=this.w,x=new f(this.ctx),m=Array.isArray(p.config.stroke.curve)?p.config.stroke.curve[i]:p.config.stroke.curve;if("smooth"===m){var v=.35*(a-r);p.globals.hasNullValues?(null!==e[i][s]&&(null!==e[i][s+1]?(c=x.move(r,o)+x.curve(r+v,o,a-v,n,a+1,n),d=x.move(r+1,o)+x.curve(r+v,o,a-v,n,a+1,n)+x.line(a,h)+x.line(r,h)+"z"):(c=x.move(r,o),d=x.move(r,o)+"z")),u.push(c),g.push(d)):(c+=x.curve(r+v,o,a-v,n,a,n),d+=x.curve(r+v,o,a-v,n,a,n)),r=a,o=n,s===e[i].length-2&&(d=d+x.curve(r,o,a,n,a,h)+x.move(a,n)+"z",p.globals.hasNullValues||(u.push(c),g.push(d)))}else null===e[i][s+1]&&(c+=x.move(a,n),d=d+x.line(a-l,h)+x.move(a,n)),null===e[i][s]&&(c+=x.move(a,n),d+=x.move(a,h)),"stepline"===m?(c=c+x.line(a,null,"H")+x.line(null,n,"V"),d=d+x.line(a,null,"H")+x.line(null,n,"V")):"straight"===m&&(c+=x.line(a,n),d+=x.line(a,n)),s===e[i].length-2&&(d=d+x.line(a,h)+x.move(a,n)+"z",u.push(c),g.push(d));return{linePaths:u,areaPaths:g,pX:r,pY:o,linePath:c,areaPath:d}}},{key:"calculatePoints",value:function(t){var e=t.series,i=t.realIndex,s=t.x,a=t.y,n=t.i,r=t.j,o=t.prevY,l=t.categoryAxisCorrection,h=t.xRatio,c=this.w,u=[],g=[];if(0===r){var f=l+c.config.markers.offsetX;c.globals.isXNumeric&&(f=(c.globals.seriesX[i][0]-c.globals.minX)/h+c.config.markers.offsetX),u.push(f),g.push(d.isNumber(e[n][0])?o+c.config.markers.offsetY:null),u.push(s+c.config.markers.offsetX),g.push(d.isNumber(e[n][r+1])?a+c.config.markers.offsetY:null)}else u.push(s+c.config.markers.offsetX),g.push(d.isNumber(e[n][r+1])?a+c.config.markers.offsetY:null);return{x:u,y:g}}},{key:"checkPreviousPaths",value:function(t){for(var e=t.pathFromLine,i=t.pathFromArea,s=t.realIndex,a=this.w,n=0;n0&&parseInt(r.realIndex)===parseInt(s)&&("line"===r.type?(this.appendPathFrom=!1,e=a.globals.previousPaths[n].paths[0].d):"area"===r.type&&(this.appendPathFrom=!1,a.config.stroke.show?(e=a.globals.previousPaths[n].paths[0].d,i=a.globals.previousPaths[n].paths[1].d):i=a.globals.previousPaths[n].paths[0].d))}return{pathFromLine:e,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(t){var e=t.i,i=t.series,s=t.yRatio,a=t.zeroY,n=t.prevY,r=t.prevSeriesY,o=t.lineYPosition,l=this.w;if(void 0!==i[e][0])n=l.config.chart.stacked?(o=e>0?r[e-1][0]:a)-i[e][0]/s+2*(this.isReversed?i[e][0]/s:0):a-i[e][0]/s+2*(this.isReversed?i[e][0]/s:0);else if(l.config.chart.stacked&&e>0&&void 0===i[e][0])for(var h=e-1;h>=0;h--)if(null!==i[h][0]&&void 0!==i[h][0]){n=o=r[h][0];break}return{prevY:n,lineYPosition:o}}}]),t}(),R=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.xaxisFontSize=this.w.config.xaxis.labels.style.fontSize,this.axisFontFamily=this.w.config.xaxis.labels.style.fontFamily,this.isBarHorizontal=!("bar"!==this.w.config.chart.type||!this.w.config.plotOptions.bar.horizontal),this.xaxisForeColors=this.w.config.xaxis.labels.style.colors,this.xAxisoffX=0,"bottom"===this.w.config.xaxis.position&&(this.xAxisoffX=this.w.globals.gridHeight)}return s(t,[{key:"drawYaxis",value:function(t){var e=this.w,i=new f(this.ctx),s=e.config.yaxis[t].labels.style.fontSize,a=e.config.yaxis[t].labels.style.fontFamily,n=i.group({class:"apexcharts-yaxis",rel:t,transform:"translate("+e.globals.translateYAxisX[t]+", 0)"});if(!e.config.yaxis[t].show)return n;var r=i.group({class:"apexcharts-yaxis-texts-g"});n.add(r);var o=e.globals.yAxisScale[t].result.length-1,l=e.globals.gridHeight/o+.1,h=e.globals.translateY,c=e.globals.yLabelFormatters[t],d=e.globals.yAxisScale[t].result.slice();if(e.config.yaxis[t].reversed&&d.reverse(),e.config.yaxis[t].labels.show)for(var u=o;u>=0;u--){var g=d[u];g=c(g,u);var p=e.config.yaxis[t].labels.padding;e.config.yaxis[t].opposite&&0!==e.config.yaxis.length&&(p*=-1);var x=i.drawText({x:p,y:h+o/10+e.config.yaxis[t].labels.offsetY+1,text:g,textAnchor:e.config.yaxis[t].opposite?"start":"end",fontSize:s,fontFamily:a,foreColor:e.config.yaxis[t].labels.style.color,cssClass:"apexcharts-yaxis-label "+e.config.yaxis[t].labels.style.cssClass});r.add(x);var m=i.rotateAroundCenter(x.node);0!==e.config.yaxis[t].labels.rotate&&x.node.setAttribute("transform","rotate(".concat(e.config.yaxis[t].labels.rotate," ").concat(m.x," ").concat(m.y,")")),h+=l}if(void 0!==e.config.yaxis[t].title.text){var v=i.group({class:"apexcharts-yaxis-title"}),b=0;e.config.yaxis[t].opposite&&(b=e.globals.translateYAxisX[t]);var y=i.drawText({x:b,y:e.globals.gridHeight/2+e.globals.translateY,text:e.config.yaxis[t].title.text,textAnchor:"end",foreColor:e.config.yaxis[t].title.style.color,fontSize:e.config.yaxis[t].title.style.fontSize,fontFamily:e.config.yaxis[t].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+e.config.yaxis[t].title.style.cssClass});v.add(y),n.add(v)}var w=e.config.yaxis[t].axisBorder;if(w.show){var k=31+w.offsetX;e.config.yaxis[t].opposite&&(k=-31-w.offsetX);var A=i.drawLine(k,e.globals.translateY+w.offsetY-2,k,e.globals.gridHeight+e.globals.translateY+w.offsetY+2,w.color);n.add(A),this.drawAxisTicks(k,o,w,e.config.yaxis[t].axisTicks,t,l,n)}return n}},{key:"drawYaxisInversed",value:function(t){var e=this.w,i=new f(this.ctx),s=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),a=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});s.add(a);var n=e.globals.yAxisScale[t].result.length-1,r=e.globals.gridWidth/n+.1,o=r+e.config.xaxis.labels.offsetX,l=e.globals.xLabelFormatter,h=e.globals.yAxisScale[t].result.slice();if(e.config.yaxis[t].reversed&&h.reverse(),e.config.xaxis.labels.show)for(var c=n;c>=0;c--){var d=h[c];d=l(d,c);var u=i.drawText({x:e.globals.gridWidth+e.globals.padHorizontal-(o-r+e.config.xaxis.labels.offsetX),y:this.xAxisoffX+e.config.xaxis.labels.offsetY+30,text:"",textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[t]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,cssClass:"apexcharts-xaxis-label "+e.config.xaxis.labels.style.cssClass});a.add(u),u.tspan(d);var g=document.createElementNS(e.globals.SVGNS,"title");g.textContent=d,u.node.appendChild(g),o+=r}if(void 0!==e.config.xaxis.title.text){var p=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),x=i.drawText({x:e.globals.gridWidth/2,y:this.xAxisoffX+parseInt(this.xaxisFontSize)+parseInt(e.config.xaxis.title.style.fontSize)+20,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});p.add(x),s.add(p)}var m=e.config.yaxis[t].axisBorder;if(m.show){var v=i.drawLine(e.globals.padHorizontal+m.offsetX,1+m.offsetY,e.globals.padHorizontal+m.offsetX,e.globals.gridHeight+m.offsetY,m.color);s.add(v)}return s}},{key:"drawAxisTicks",value:function(t,e,i,s,a,n,r){var o=this.w,l=new f(this.ctx),h=o.globals.translateY;if(s.show){!0===o.config.yaxis[a].opposite&&(t+=s.width);for(var c=e;c>=0;c--){var d=h+e/10+o.config.yaxis[a].labels.offsetY-1;this.isBarHorizontal&&(d=n*c);var u=l.drawLine(t+i.offsetX-s.width+s.offsetX,d+s.offsetY,t+i.offsetX+s.offsetX,d+s.offsetY,i.color);r.add(u),h+=n}}}},{key:"yAxisTitleRotate",value:function(t,e){var i=this.w,s=new f(this.ctx),a={width:0,height:0},n={width:0,height:0},r=i.globals.dom.baseEl.querySelector(" .apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-texts-g"));null!==r&&(a=r.getBoundingClientRect());var o=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-title text"));if(null!==o&&(n=o.getBoundingClientRect()),null!==o){var l=this.xPaddingForYAxisTitle(t,a,n,e);o.setAttribute("x",l.xPos-(e?10:0))}if(null!==o){var h=s.rotateAroundCenter(o);e?o.setAttribute("transform","rotate(".concat(i.config.yaxis[t].title.rotate," ").concat(h.x," ").concat(h.y,")")):o.setAttribute("transform","rotate(-".concat(i.config.yaxis[t].title.rotate," ").concat(h.x," ").concat(h.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(t,e,i,s){var a=this.w,n=0,r=0,o=10;return void 0===a.config.yaxis[t].title.text||t<0?{xPos:r,padd:0}:(s?(r=e.width+a.config.yaxis[t].title.offsetX+i.width/2+o/2,0===(n+=1)&&(r-=o/2)):(r=-1*e.width+a.config.yaxis[t].title.offsetX+o/2+i.width/2,this.isBarHorizontal&&(o=25,r=-1*e.width-a.config.yaxis[t].title.offsetX-o)),{xPos:r,padd:o})}},{key:"setYAxisXPosition",value:function(t,e){var i=this,s=this.w,a=0,n=0,r=21,o=1;s.config.yaxis.length>1&&(this.multipleYs=!0),s.config.yaxis.map(function(l,h){var c=s.globals.ignoreYAxisIndexes.indexOf(h)>-1||!l.show||l.floating||0===t[h].width,d=t[h].width+e[h].width;l.opposite?i.isBarHorizontal?(n=s.globals.gridWidth+s.globals.translateX-1,s.globals.translateYAxisX[h]=n-l.labels.offsetX):(n=s.globals.gridWidth+s.globals.translateX+o,c||(o=o+d+20),s.globals.translateYAxisX[h]=n-l.labels.offsetX+20):(a=s.globals.translateX-r,c||(r=r+d+20),s.globals.translateYAxisX[h]=a+l.labels.offsetX)})}}]),t}(),D=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.tooltipKeyFormat="dd MMM"}return s(t,[{key:"xLabelFormat",value:function(t,e){var i=this.w;if("datetime"===i.config.xaxis.type&&void 0===i.config.tooltip.x.formatter)return new T(this.ctx).formatDate(new Date(e),i.config.tooltip.x.format,!0,!0);return t(e)}},{key:"setLabelFormatters",value:function(){var t=this.w;return t.globals.xLabelFormatter=function(t){return t},t.globals.xaxisTooltipFormatter=function(t){return t},t.globals.ttKeyFormatter=function(t){return t},t.globals.ttZFormatter=function(t){return t},t.globals.legendFormatter=function(t){return t},"function"==typeof t.config.tooltip.x.formatter&&(t.globals.ttKeyFormatter=t.config.tooltip.x.formatter),"function"==typeof t.config.xaxis.tooltip.formatter&&(t.globals.xaxisTooltipFormatter=t.config.xaxis.tooltip.formatter),Array.isArray(t.config.tooltip.y)?t.globals.ttVal=t.config.tooltip.y:void 0!==t.config.tooltip.y.formatter&&(t.globals.ttVal=t.config.tooltip.y),void 0!==t.config.tooltip.z.formatter&&(t.globals.ttZFormatter=t.config.tooltip.z.formatter),void 0!==t.config.legend.formatter&&(t.globals.legendFormatter=t.config.legend.formatter),void 0!==t.config.xaxis.labels.formatter?t.globals.xLabelFormatter=t.config.xaxis.labels.formatter:t.globals.xLabelFormatter=function(e){return d.isNumber(e)?"numeric"===t.config.xaxis.type&&t.globals.dataPoints<50?e.toFixed(1):e.toFixed(0):e},t.config.yaxis.forEach(function(e,i){void 0!==e.labels.formatter?t.globals.yLabelFormatters[i]=e.labels.formatter:t.globals.yLabelFormatters[i]=function(i){return d.isNumber(i)?0!==t.globals.yValueDecimal||t.globals.maxY-t.globals.minY<1?i.toFixed(e.decimalsInFloat):i.toFixed(0):i}}),t.globals}},{key:"heatmapLabelFormatters",value:function(){var t=this.w;if("heatmap"===t.config.chart.type){t.globals.yAxisScale[0].result=t.globals.seriesNames.slice();var e=t.globals.seriesNames.reduce(function(t,e){return t.length>e.length?t:e},0);t.globals.yAxisScale[0].niceMax=e,t.globals.yAxisScale[0].niceMin=e}}}]),t}(),N=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w;var s=this.w;this.xaxisLabels=s.globals.labels.slice(),s.globals.timelineLabels.length>0&&(this.xaxisLabels=s.globals.timelineLabels.slice()),this.drawnLabels=[],"top"===s.config.xaxis.position?this.offY=0:this.offY=s.globals.gridHeight+1,this.offY=this.offY+s.config.xaxis.axisBorder.offsetY,this.xaxisFontSize=s.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=s.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=s.config.xaxis.labels.style.colors,this.xaxisBorderWidth=s.config.xaxis.axisBorder.width,this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=s.globals.gridWidth*parseInt(this.xaxisBorderWidth)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth),this.xaxisBorderHeight=s.config.xaxis.axisBorder.height,this.yaxis=s.config.yaxis[0]}return s(t,[{key:"drawXaxis",value:function(){var t,e=this.w,i=new f(this.ctx),s=i.group({class:"apexcharts-xaxis",transform:"translate(".concat(e.config.xaxis.offsetX,", ").concat(e.config.xaxis.offsetY,")")}),a=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});s.add(a);for(var n=e.globals.padHorizontal,r=[],o=0;o0?(p=e.globals.timelineLabels[d].position,g=e.globals.timelineLabels[d].value):"datetime"===e.config.xaxis.type&&void 0===h&&(g=""),(0===(g=g.toString()).indexOf("NaN")||"undefined"===g||0===g.toLowerCase().indexOf("invalid")||g.toLowerCase().indexOf("infinity")>=0||this.drawnLabels.indexOf(g)>=0&&!e.config.xaxis.labels.showDuplicates)&&(g=""),this.drawnLabels.push(g);var x=28;e.globals.rotateXLabels&&(x=22);var m=i.drawText({x:p,y:this.offY+e.config.xaxis.labels.offsetY+x,text:"",textAnchor:"middle",fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[d]:this.xaxisForeColors,cssClass:"apexcharts-xaxis-label "+e.config.xaxis.labels.style.cssClass});a.add(m),i.addTspan(m,g,this.xaxisFontFamily);var v=document.createElementNS(e.globals.SVGNS,"title");v.textContent=g,m.node.appendChild(v),n+=t}if(void 0!==e.config.xaxis.title.text){var b=i.group({class:"apexcharts-xaxis-title"}),y=i.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.offY-parseInt(this.xaxisFontSize)+e.globals.xAxisLabelsHeight+e.config.xaxis.title.offsetY,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});b.add(y),s.add(b)}if(e.config.xaxis.axisBorder.show){var w=0;"bar"===e.config.chart.type&&e.globals.isXNumeric&&(w-=15);var k=i.drawLine(e.globals.padHorizontal+w+e.config.xaxis.axisBorder.offsetX,this.offY,this.xaxisBorderWidth,this.offY,e.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);s.add(k)}return s}},{key:"drawXaxisInversed",value:function(t){var e,i,s=this.w,a=new f(this.ctx),n=s.config.yaxis[0].opposite?s.globals.translateYAxisX[t]:0,r=a.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:t}),o=a.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+n+", 0)"});r.add(o);for(var l=[],h=0;hi.globals.gridWidth)){var a=this.offY+i.config.xaxis.axisTicks.offsetY,n=a+i.config.xaxis.axisTicks.height;if(i.config.xaxis.axisTicks.show){var r=new f(this.ctx).drawLine(t+i.config.xaxis.axisTicks.offsetX,a+i.config.xaxis.offsetY,s+i.config.xaxis.axisTicks.offsetX,n+i.config.xaxis.offsetY,i.config.xaxis.axisTicks.color);e.add(r),r.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var t=this.w,e=[],i=this.xaxisLabels.length,s=t.globals.padHorizontal;if(t.globals.timelineLabels.length>0)for(var a=0;a0){var u=a[a.length-1].getBBox(),g=a[0].getBBox();u.x<-20&&a[a.length-1].parentNode.removeChild(a[a.length-1]),g.x+g.width>t.globals.gridWidth&&a[0].parentNode.removeChild(a[0]);for(var p=0;p2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;if(t===Number.MIN_VALUE&&0===e||!d.isNumber(t)&&!d.isNumber(e)||t===Number.MIN_VALUE&&e===-Number.MAX_VALUE)return t=0,e=s,this.linearScale(t,e,s);t>e?(console.warn("yaxis.min cannot be greater than yaxis.max"),e=t+.1):t===e&&(t=0===t?0:t-.1,e=0===e?2:e+.1);var a=[],n=s+1;n<2?n=2:n>2&&(n-=2);for(var r=(e-t)/n,o=Math.floor(d.log10(r)),l=Math.pow(10,o),h=parseInt(r/l)*l,c=h*Math.floor(t/h),u=h*Math.ceil(e/h),g=c;a.push(g),!((g+=h)>u););if(void 0===this.w.config.yaxis[i].max&&void 0===this.w.config.yaxis[i].min||this.w.config.yaxis[i].forceNiceScale)return{result:a,niceMin:a[0],niceMax:a[a.length-1]};var f=t;(a=[]).push(f);for(var p=Math.abs(e-t)/s,x=0;x<=s-1;x++)f+=p,a.push(f);return{result:a,niceMin:a[0],niceMax:a[a.length-1]}}},{key:"linearScale",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,s=Math.abs(e-t)/i;i===Number.MAX_VALUE&&(i=10,s=1);for(var a=[],n=t;i>=0;)a.push(n),n+=s,i-=1;return{result:a,niceMin:a[0],niceMax:a[a.length-1]}}},{key:"logarithmicScale",value:function(t,e,i,s){(e<0||e===Number.MIN_VALUE)&&(e=.01);for(var a=Math.log(e)/Math.log(10),n=Math.log(i)/Math.log(10),r=Math.abs(i-e)/s,o=[],l=e;s>=0;)o.push(l),l+=r,s-=1;var h=o.map(function(t,s){t<=0&&(t=.01);var r=(n-a)/(i-e),o=Math.pow(10,a+r*(t-a));return Math.round(o/d.roundToBase(o,10))*d.roundToBase(o,10)});return 0===h[0]&&(h[0]=1),{result:h,niceMin:h[0],niceMax:h[h.length-1]}}},{key:"setYScaleForIndex",value:function(t,e,i){var s=this.w.globals,a=this.w.config,n=this.isBarHorizontal?a.xaxis:a.yaxis[t];void 0===s.yAxisScale[t]&&(s.yAxisScale[t]=[]),n.logarithmic?(s.allSeriesCollapsed=!1,s.yAxisScale[t]=this.logarithmicScale(t,e,i,n.tickAmount?n.tickAmount:Math.floor(Math.log10(i)))):i!==-Number.MAX_VALUE&&d.isNumber(i)?(s.allSeriesCollapsed=!1,s.yAxisScale[t]=this.niceScale(e,i,t,n.tickAmount?n.tickAmount:5)):s.yAxisScale[t]=this.linearScale(0,5,5)}},{key:"setMultipleYScales",value:function(){var t=this,e=this.w.globals,i=this.w.config,s=e.minYArr.concat([]),a=e.maxYArr.concat([]),n=[];i.yaxis.forEach(function(r,o){var l=o;i.series.forEach(function(t,i){t.name===r.seriesName&&-1===e.collapsedSeriesIndices.indexOf(i)&&(l=i,o!==i?n.push({index:i,similarIndex:o,alreadyExists:!0}):n.push({index:i}))});var h=s[l],c=a[l];t.setYScaleForIndex(o,h,c)}),this.sameScaleInMultipleAxes(s,a,n)}},{key:"sameScaleInMultipleAxes",value:function(t,e,i){var s=this,a=this.w.config,n=this.w.globals,r=[];i.forEach(function(t){t.alreadyExists&&(void 0===r[t.index]&&(r[t.index]=[]),r[t.index].push(t.index),r[t.index].push(t.similarIndex))}),r.forEach(function(t,e){r.forEach(function(i,s){var a,n;e!==s&&(a=t,n=i,a.filter(function(t){return-1!==n.indexOf(t)})).length>0&&(r[e]=r[e].concat(r[s]))})});var o=r.map(function(t){return t.filter(function(e,i){return t.indexOf(e)===i})}).map(function(t){return t.sort()});r=r.filter(function(t){return!!t});var l=o.slice(),h=l.map(function(t){return JSON.stringify(t)});l=l.filter(function(t,e){return h.indexOf(JSON.stringify(t))===e});var c=[],d=[];t.forEach(function(t,i){l.forEach(function(s,a){s.indexOf(i)>-1&&(void 0===c[a]&&(c[a]=[],d[a]=[]),c[a].push({key:i,value:t}),d[a].push({key:i,value:e[i]}))})});var u=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,Number.MIN_VALUE),g=Array.apply(null,Array(l.length)).map(Number.prototype.valueOf,-Number.MAX_VALUE);c.forEach(function(t,e){t.forEach(function(t,i){u[e]=Math.min(t.value,u[e])})}),d.forEach(function(t,e){t.forEach(function(t,i){g[e]=Math.max(t.value,g[e])})}),t.forEach(function(t,e){d.forEach(function(t,i){var r=u[i],o=g[i];t.forEach(function(i,l){t[l].key===e&&(void 0!==a.yaxis[e].min&&(r="function"==typeof a.yaxis[e].min?a.yaxis[e].min(n.minY):a.yaxis[e].min),void 0!==a.yaxis[e].max&&(o="function"==typeof a.yaxis[e].max?a.yaxis[e].max(n.maxY):a.yaxis[e].max),s.setYScaleForIndex(e,r,o))})})})}},{key:"autoScaleY",value:function(t,e){t||(t=this);var i=[];return t.w.config.series.forEach(function(t){var s,a,n=t.data.find(function(t){return t[0]>=e.xaxis.min})[1];a=s=n,t.data.forEach(function(t){t[0]<=e.xaxis.max&&t[0]>=e.xaxis.min&&(t[1]>a&&null!==t[1]&&(a=t[1]),t[1]1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=this.w.globals,n=-Number.MAX_VALUE,r=Number.MIN_VALUE;null===s&&(s=t+1);var o=a.series,l=o,h=o;"candlestick"===this.w.config.chart.type&&(l=a.seriesCandleL,h=a.seriesCandleH);for(var c=t;cl[c][u]&&l[c][u]<0&&(r=l[c][u])):a.hasNullValues=!0}return{minY:r,maxY:n,lowestY:e,highestY:i}}},{key:"setYRange",value:function(){var t=this.w.globals,e=this.w.config;t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE;var i=Number.MAX_VALUE;if(t.isMultipleYAxis)for(var s=0;s0?h=h+parseFloat(t.series[u][l])+1e-4:c+=parseFloat(t.series[u][l])),u===t.series.length-1&&(r.push(h),o.push(c));for(var g=0;g=0&&i<=10&&(f=0),t.minY=i-5*f/100,t.maxY=t.maxY+5*f/100+.05}e.yaxis.map(function(e,i){void 0!==e.max&&("number"==typeof e.max?t.maxYArr[i]=e.max:"function"==typeof e.max&&(t.maxYArr[i]=e.max(t.maxY)),t.maxY=t.maxYArr[i]),void 0!==e.min&&("number"==typeof e.min?t.minYArr[i]=e.min:"function"==typeof e.min&&(t.minYArr[i]=e.min(t.minY)),t.minY=t.minYArr[i])}),this.isBarHorizontal&&(void 0!==e.xaxis.min&&"number"==typeof e.xaxis.min&&(t.minY=e.xaxis.min),void 0!==e.xaxis.max&&"number"==typeof e.xaxis.max&&(t.maxY=e.xaxis.max)),t.isMultipleYAxis?(this.scales.setMultipleYScales(),t.minY=i,t.yAxisScale.forEach(function(e,i){t.minYArr[i]=e.niceMin,t.maxYArr[i]=e.niceMax})):(this.scales.setYScaleForIndex(0,t.minY,t.maxY),t.minY=t.yAxisScale[0].niceMin,t.maxY=t.yAxisScale[0].niceMax,t.minYArr[0]=t.yAxisScale[0].niceMin,t.maxYArr[0]=t.yAxisScale[0].niceMax)}},{key:"setXRange",value:function(){var t,e=this.w.globals,i=this.w.config,s="numeric"===i.xaxis.type||"datetime"===i.xaxis.type||"category"===i.xaxis.type&&!e.noLabelsProvided;if(e.isXNumeric)for(var a=0;ae.dataPoints&&0!==e.dataPoints&&(t=e.dataPoints-1)):t="dataPoints"===i.xaxis.tickAmount?e.series[e.maxValsInArrayIndex].length-1:i.xaxis.tickAmount,void 0!==i.xaxis.max&&"number"==typeof i.xaxis.max&&(e.maxX=i.xaxis.max),void 0!==i.xaxis.min&&"number"==typeof i.xaxis.min&&(e.minX=i.xaxis.min),void 0!==i.xaxis.range&&(e.minX=e.maxX-i.xaxis.range),e.minX!==Number.MAX_VALUE&&e.maxX!==-Number.MAX_VALUE?e.xAxisScale=this.scales.linearScale(e.minX,e.maxX,t):(e.xAxisScale=this.scales.linearScale(1,t,t),e.noLabelsProvided&&e.labels.length>0&&(e.xAxisScale=this.scales.linearScale(1,e.labels.length,t-1),e.seriesX=e.labels.slice())),s&&(e.labels=e.xAxisScale.result.slice()));if(e.minX===e.maxX)if("datetime"===i.xaxis.type){var l=new Date(e.minX);l.setDate(l.getDate()-2),e.minX=new Date(l).getTime();var h=new Date(e.maxX);h.setDate(h.getDate()+2),e.maxX=new Date(h).getTime()}else("numeric"===i.xaxis.type||"category"===i.xaxis.type&&!e.noLabelsProvided)&&(e.minX=e.minX-2,e.maxX=e.maxX+2)}},{key:"setZRange",value:function(){var t=this.w.globals;if(t.isDataXYZ)for(var e=0;e=t.from&&i<=t.to&&s[e].classList.remove("legend-mouseover-inactive")}}(i.config.plotOptions.heatmap.colorScale.ranges[n])}else"mouseout"===t.type&&a()}},{key:"getActiveSeriesIndex",value:function(){var t=this.w,e=0;if(t.globals.series.length>1)for(var i=t.globals.series.map(function(e,i){return e.length>0&&"bar"!==t.config.series[i].type&&"column"!==t.config.series[i].type?i:-1}),s=0;s1)for(var i=t.config.series.map(function(t,e){return t.data&&t.data.length>0?e:-1}),s=0;s0)for(var s=i.length-1;s>=0;s--)e(i,s,"line");var a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-area-series .apexcharts-series");if(a.length>0)for(var n=a.length-1;n>=0;n--)e(a,n,"area");var r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series .apexcharts-series");if(r.length>0)for(var o=0;o0)for(var h=0;h0)for(var d=0;d0)for(var g=0;g0)for(var v=0;v0)for(var A=0;A0?t:[]});return t}}]),t}(),V=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.lgRect={},this.yAxisWidth=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.xPadRight=0,this.xPadLeft=0,this.isBarHorizontal=!("bar"!==this.w.config.chart.type||!this.w.config.plotOptions.bar.horizontal)}return s(t,[{key:"plotCoords",value:function(){var t=this.w,e=t.globals,i=this.getLegendsRect();e.axisCharts?this.setGridCoordsForAxisCharts(i):this.setGridCoordsForNonAxisCharts(i),this.titleSubtitleOffset(),e.gridHeight=e.gridHeight-t.config.grid.padding.top-t.config.grid.padding.bottom,e.gridWidth=e.gridWidth-t.config.grid.padding.left-t.config.grid.padding.right-this.xPadRight-this.xPadLeft,e.translateX=e.translateX+t.config.grid.padding.left+this.xPadLeft,e.translateY=e.translateY+t.config.grid.padding.top}},{key:"conditionalChecksForAxisCoords",value:function(t,e){var i=this.w;this.xAxisHeight=(t.height+e.height)*i.globals.LINE_HEIGHT_RATIO+15,this.xAxisWidth=t.width,this.xAxisHeight-e.height>i.config.xaxis.labels.maxHeight&&(this.xAxisHeight=i.config.xaxis.labels.maxHeight),i.config.xaxis.labels.minHeight&&this.xAxisHeighti.config.yaxis[0].labels.maxWidth&&(this.yAxisWidth=i.config.yaxis[0].labels.maxWidth))}},{key:"setGridCoordsForAxisCharts",value:function(t){var e=this.w,i=e.globals,s=this.getyAxisLabelsCoords(),a=this.getxAxisLabelsCoords(),n=this.getyAxisTitleCoords(),r=this.getxAxisTitleCoords();e.globals.yLabelsCoords=[],e.globals.yTitleCoords=[],e.config.yaxis.map(function(t,i){e.globals.yLabelsCoords.push({width:s[i].width,index:i}),e.globals.yTitleCoords.push({width:n[i].width,index:i})}),this.conditionalChecksForAxisCoords(a,r),i.translateXAxisY=e.globals.rotateXLabels?this.xAxisHeight/8:-4,i.translateXAxisX=e.globals.rotateXLabels&&e.globals.isXNumeric&&e.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,this.isBarHorizontal&&(i.rotateXLabels=!1,i.translateXAxisY=parseInt(e.config.xaxis.labels.style.fontSize)/1.5*-1),i.translateXAxisY=i.translateXAxisY+e.config.xaxis.labels.offsetY,i.translateXAxisX=i.translateXAxisX+e.config.xaxis.labels.offsetX;var o=this.yAxisWidth,l=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight,i.xAxisHeight=this.xAxisHeight;var h=10;switch(e.config.grid.show&&"radar"!==e.config.chart.type||(o=0,l=35),this.isSparkline&&(t={height:0,width:0},l=0,o=0,h=0),this.additionalPaddingXLabels(a),e.config.legend.position){case"bottom":i.translateY=h,i.translateX=o,i.gridHeight=i.svgHeight-t.height-l-(this.isSparkline?0:e.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-o;break;case"top":i.translateY=t.height+h,i.translateX=o,i.gridHeight=i.svgHeight-t.height-l-(this.isSparkline?0:e.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-o;break;case"left":i.translateY=h,i.translateX=t.width+o,i.gridHeight=i.svgHeight-l-12,i.gridWidth=i.svgWidth-t.width-o;break;case"right":i.translateY=h,i.translateX=o,i.gridHeight=i.svgHeight-l-12,i.gridWidth=i.svgWidth-t.width-o-5;break;default:throw new Error("Legend position not supported")}this.setGridXPosForDualYAxis(n,s),new R(this.ctx).setYAxisXPosition(s,n)}},{key:"setGridCoordsForNonAxisCharts",value:function(t){var e=this.w,i=e.globals,s=0;e.config.legend.show&&!e.config.legend.floating&&(s=20);var a=10,n=0;if("pie"===e.config.chart.type||"donut"===e.config.chart.type?(a+=e.config.plotOptions.pie.offsetY,n+=e.config.plotOptions.pie.offsetX):"radialBar"===e.config.chart.type&&(a+=e.config.plotOptions.radialBar.offsetY,n+=e.config.plotOptions.radialBar.offsetX),!e.config.legend.show)return i.gridHeight=i.svgHeight-35,i.gridWidth=i.gridHeight,i.translateY=a-10,void(i.translateX=n+(i.svgWidth-i.gridWidth)/2);switch(e.config.legend.position){case"bottom":i.gridHeight=i.svgHeight-t.height-35,i.gridWidth=i.gridHeight,i.translateY=a-20,i.translateX=n+(i.svgWidth-i.gridWidth)/2;break;case"top":i.gridHeight=i.svgHeight-t.height-35,i.gridWidth=i.gridHeight,i.translateY=t.height+a,i.translateX=n+(i.svgWidth-i.gridWidth)/2;break;case"left":i.gridWidth=i.svgWidth-t.width-s,i.gridHeight=i.gridWidth,i.translateY=a,i.translateX=n+t.width+s;break;case"right":i.gridWidth=i.svgWidth-t.width-s-5,i.gridHeight=i.gridWidth,i.translateY=a,i.translateX=n+10;break;default:throw new Error("Legend position not supported")}}},{key:"setGridXPosForDualYAxis",value:function(t,e){var i=this.w;i.config.yaxis.map(function(s,a){-1===i.globals.ignoreYAxisIndexes.indexOf(a)&&!i.config.yaxis[a].floating&&i.config.yaxis[a].show&&s.opposite&&(i.globals.translateX=i.globals.translateX-(e[a].width+t[a].width)-parseInt(i.config.yaxis[a].labels.style.fontSize)/1.2-12)})}},{key:"additionalPaddingXLabels",value:function(t){var e=this,i=this.w;if("category"===i.config.xaxis.type&&this.isBarHorizontal||"numeric"===i.config.xaxis.type){var s="line"===i.config.chart.type||"area"===i.config.chart.type;i.config.yaxis.forEach(function(a,n){var r;(!a.show||a.floating||-1!==i.globals.collapsedSeriesIndices.indexOf(n)||s||a.opposite&&e.isBarHorizontal)&&((s&&i.globals.isMultipleYAxis&&-1!==i.globals.collapsedSeriesIndices.indexOf(n)||e.isBarHorizontal&&a.opposite)&&(r=t,i.config.grid.padding.left1&&(i+=10);var s=this.getTitleSubtitleCoords("title"),a=this.getTitleSubtitleCoords("subtitle");e.gridHeight=e.gridHeight-s.height-a.height-i,e.translateY=e.translateY+s.height+a.height+i}},{key:"getTotalYAxisWidth",value:function(){var t=this.w,e=0,i=10,s=function(e){return t.globals.ignoreYAxisIndexes.indexOf(e)>-1};return t.globals.yLabelsCoords.map(function(a,n){var r=t.config.yaxis[n].floating;a.width>0&&!r?(e=e+a.width+i,s(n)&&(e=e-a.width-i)):e+=r||!t.config.yaxis[n].show?0:5}),t.globals.yTitleCoords.map(function(a,n){var r=t.config.yaxis[n].floating;i=parseInt(t.config.yaxis[n].title.style.fontSize),a.width>0&&!r?(e=e+a.width+i,s(n)&&(e=e-a.width-i)):e+=r||!t.config.yaxis[n].show?0:5}),e}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var t,e=this.w,i=e.globals.timelineLabels.slice().map(function(t){return t.value}),s=i.reduce(function(t,e){return void 0===t?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):t.length>e.length?t:e},0);return 1.05*(t=new f(this.ctx).getTextRects(s,e.config.xaxis.labels.style.fontSize)).width*i.length>e.globals.gridWidth&&0!==e.config.xaxis.labels.rotate&&(e.globals.overlappingXLabels=!0),t}},{key:"getxAxisLabelsCoords",value:function(){var t,e=this.w,i=e.globals.labels.slice();if(e.globals.timelineLabels.length>0){var s=this.getxAxisTimeScaleLabelsCoords();t={width:s.width,height:s.height}}else{var a="left"!==e.config.legend.position||"right"!==e.config.legend.position||e.config.legend.floating?0:this.lgRect.width,n=i.reduce(function(t,e){return t.length>e.length?t:e},0);this.isBarHorizontal&&(n=e.globals.yAxisScale[0].result.reduce(function(t,e){return t.length>e.length?t:e},0));var r=e.globals.xLabelFormatter;n=new D(this.ctx).xLabelFormat(r,n);var o=new f(this.ctx),l=o.getTextRects(n,e.config.xaxis.labels.style.fontSize);(t={width:l.width,height:l.height}).width*i.length>e.globals.svgWidth-a-this.yAxisWidth&&0!==e.config.xaxis.labels.rotate?this.isBarHorizontal||(e.globals.rotateXLabels=!0,l=o.getTextRects(n,e.config.xaxis.labels.style.fontSize,e.config.xaxis.labels.style.fontFamily,"rotate(".concat(e.config.xaxis.labels.rotate," 0 0)"),!1),t.height=l.height/1.66):e.globals.rotateXLabels=!1}return e.config.xaxis.labels.show||(t={width:0,height:0}),{width:t.width,height:t.height}}},{key:"getyAxisLabelsCoords",value:function(){var t=this,e=this.w,i=[],s=10;return e.config.yaxis.map(function(a,n){if(a.show&&a.labels.show&&e.globals.yAxisScale[n].result.length){var r=e.globals.yLabelFormatters[n],o=r(e.globals.yAxisScale[n].niceMax,-1);if(void 0!==o&&0!==o.length||(o=e.globals.yAxisScale[n].niceMax),t.isBarHorizontal)s=0,o=r(o=e.globals.labels.slice().reduce(function(t,e){return t.length>e.length?t:e},0),-1);var l=new f(t.ctx).getTextRects(o,a.labels.style.fontSize);i.push({width:l.width+s,height:l.height})}else i.push({width:0,height:0})}),i}},{key:"getxAxisTitleCoords",value:function(){var t=this.w,e=0,i=0;if(void 0!==t.config.xaxis.title.text){var s=new f(this.ctx).getTextRects(t.config.xaxis.title.text,t.config.xaxis.title.style.fontSize);e=s.width,i=s.height}return{width:e,height:i}}},{key:"getyAxisTitleCoords",value:function(){var t=this,e=this.w,i=[];return e.config.yaxis.map(function(e,s){if(e.show&&void 0!==e.title.text){var a=new f(t.ctx).getTextRects(e.title.text,e.title.style.fontSize,e.title.style.fontFamily,"rotate(-90 0 0)",!1);i.push({width:a.width,height:a.height})}else i.push({width:0,height:0})}),i}},{key:"getTitleSubtitleCoords",value:function(t){var e=this.w,i=0,s=0,a="title"===t?e.config.title.floating:e.config.subtitle.floating,n=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(t,"-text"));if(null!==n&&!a){var r=n.getBoundingClientRect();i=r.width,s=e.globals.axisCharts?r.height+5:r.height}return{width:i,height:s}}},{key:"getLegendsRect",value:function(){var t=this.w,e=t.globals.dom.baseEl.querySelector(".apexcharts-legend"),i=Object.assign({},d.getBoundingClientRect(e));return null!==e&&!t.config.legend.floating&&t.config.legend.show?this.lgRect={x:i.x,y:i.y,height:i.height,width:0===i.height?0:i.width}:this.lgRect={x:0,y:0,height:0,width:0},this.lgRect}}]),t}(),G=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w,this.timeScaleArray=[]}return s(t,[{key:"calculateTimeScaleTicks",value:function(t,e){var i=this,s=this.w;if(s.globals.allSeriesCollapsed)return s.globals.labels=[],s.globals.timelineLabels=[],[];var a=new T(this.ctx),r=(e-t)/864e5;this.determineInterval(r),s.globals.disableZoomIn=!1,s.globals.disableZoomOut=!1,r<.005?s.globals.disableZoomIn=!0:r>5e4&&(s.globals.disableZoomOut=!0);var o=a.getTimeUnitsfromTimestamp(t,e),l=s.globals.gridWidth/r,h=l/24,c=h/60,d=Math.floor(24*r),u=Math.floor(24*r*60),g=Math.floor(r),f=Math.floor(r/30),p=Math.floor(r/365),x={minMinute:o.minMinute,minHour:o.minHour,minDate:o.minDate,minMonth:o.minMonth,minYear:o.minYear},m={firstVal:x,currentMinute:x.minMinute,currentHour:x.minHour,currentMonthDate:x.minDate,currentDate:x.minDate,currentMonth:x.minMonth,currentYear:x.minYear,daysWidthOnXAxis:l,hoursWidthOnXAxis:h,minutesWidthOnXAxis:c,numberOfMinutes:u,numberOfHours:d,numberOfDays:g,numberOfMonths:f,numberOfYears:p};switch(this.tickInterval){case"years":this.generateYearScale(m);break;case"months":case"half_year":this.generateMonthScale(m);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(m);break;case"hours":this.generateHourScale(m);break;case"minutes":this.generateMinuteScale(m)}var v=this.timeScaleArray.map(function(t){var e={position:t.position,unit:t.unit,year:t.year,day:t.day?t.day:1,hour:t.hour?t.hour:0,month:t.month+1};return"month"===t.unit?n({},e,{value:t.value+1}):"day"===t.unit||"hour"===t.unit?n({},e,{value:t.value}):"minute"===t.unit?n({},e,{value:t.value,minute:t.value}):t});return v.filter(function(t){var e=1,a=Math.ceil(s.globals.gridWidth/120),n=t.value;void 0!==s.config.xaxis.tickAmount&&(a=s.config.xaxis.tickAmount),v.length>a&&(e=Math.floor(v.length/a));var r=!1,o=!1;switch(i.tickInterval){case"half_year":e=7,"year"===t.unit&&(r=!0);break;case"months":e=1,"year"===t.unit&&(r=!0);break;case"months_fortnight":e=15,"year"!==t.unit&&"month"!==t.unit||(r=!0),30===n&&(o=!0);break;case"months_days":e=10,"month"===t.unit&&(r=!0),30===n&&(o=!0);break;case"week_days":e=8,"month"===t.unit&&(r=!0);break;case"days":e=1,"month"===t.unit&&(r=!0);break;case"hours":"day"===t.unit&&(r=!0);break;case"minutes":n%5!=0&&(o=!0)}if("minutes"===i.tickInterval||"hours"===i.tickInterval){if(!o)return!0}else if((n%e==0||r)&&!o)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(t){var e=this.w,i=this.formatDates(t),s=this.removeOverlappingTS(i);e.globals.timelineLabels=s.slice(),new V(this.ctx).plotCoords()}},{key:"determineInterval",value:function(t){switch(!0){case t>1825:this.tickInterval="years";break;case t>800&&t<=1825:this.tickInterval="half_year";break;case t>180&&t<=800:this.tickInterval="months";break;case t>90&&t<=180:this.tickInterval="months_fortnight";break;case t>60&&t<=90:this.tickInterval="months_days";break;case t>30&&t<=60:this.tickInterval="week_days";break;case t>2&&t<=30:this.tickInterval="days";break;case t>.1&&t<=2:this.tickInterval="hours";break;case t<.1:this.tickInterval="minutes";break;default:this.tickInterval="days"}}},{key:"generateYearScale",value:function(t){var e=t.firstVal,i=t.currentMonth,s=t.currentYear,a=t.daysWidthOnXAxis,n=t.numberOfYears,r=e.minYear,o=0,l=new T(this.ctx);if(e.minDate>1&&e.minMonth>0){var h=l.determineRemainingDaysOfYear(e.minYear,e.minMonth,e.minDate);o=(l.determineDaysOfYear(e.minYear)-h+1)*a,r=e.minYear+1,this.timeScaleArray.push({position:o,value:r,unit:"year",year:r,month:d.monthMod(i+1)})}else 1===e.minDate&&0===e.minMonth&&this.timeScaleArray.push({position:o,value:r,unit:"year",year:s,month:d.monthMod(i+1)});for(var c=r,u=o,g=0;g1){l=(h.determineDaysOfMonths(s+1,e.minYear)-i+1)*n,o=d.monthMod(s+1);var g=a+u,f=d.monthMod(o),p=o;0===o&&(c="year",p=g,f=1,g+=u+=1),this.timeScaleArray.push({position:l,value:p,unit:c,year:g,month:f})}else this.timeScaleArray.push({position:l,value:o,unit:c,year:a,month:d.monthMod(s)});for(var x=o+1,m=l,v=0,b=1;vr.determineDaysOfMonths(e+1,i)?(g=1,o="month",c=e+=1,e):e},g=h,f=u(g,i,s);this.timeScaleArray.push({position:l,value:c,unit:o,year:s,month:d.monthMod(f),day:g});for(var p=l,x=0;xo.determineDaysOfMonths(e+1,a)&&(x=1,e+=1),{month:e,date:x}},c=function(t,e){return t>o.determineDaysOfMonths(e+1,a)?e+=1:e},u=60-e.minMinute,g=u*n,f=e.minHour+1,p=f+1;60===u&&(g=0,p=(f=e.minHour)+1);var x=i,m=c(x,s);this.timeScaleArray.push({position:g,value:f,unit:l,day:x,hour:p,year:a,month:d.monthMod(m)});for(var v=g,b=0;b=24)p=0,l="day",m=h(x+=1,m).month,m=c(x,m);var y=a+Math.floor(m/12)+0;v=0===p&&0===b?u*n:60*n+v;var w=0===p?x:p;this.timeScaleArray.push({position:v,value:w,unit:l,hour:p,day:x,year:y,month:d.monthMod(m)}),p++}}},{key:"generateMinuteScale",value:function(t){var e=t.firstVal,i=t.currentMinute,s=t.currentHour,a=t.currentDate,n=t.currentMonth,r=t.currentYear,o=t.minutesWidthOnXAxis,l=t.numberOfMinutes,h=o-(i-e.minMinute),c=e.minMinute+1,u=c+1,g=a,f=n,p=r,x=s;this.timeScaleArray.push({position:h,value:c,unit:"minute",day:g,hour:x,minute:u,year:p,month:d.monthMod(f)});for(var m=h,v=0;v=60&&(u=0,24===(x+=1)&&(x=0));var b=r+Math.floor(f/12)+0;m=o+m;var y=u;this.timeScaleArray.push({position:m,value:y,unit:"minute",hour:x,minute:u,day:g,year:b,month:d.monthMod(f)}),u++}}},{key:"createRawDateString",value:function(t,e){var i=t.year;return i+="-"+("0"+t.month.toString()).slice(-2),"day"===t.unit?i+="day"===t.unit?"-"+("0"+e).slice(-2):"-01":i+="-"+("0"+(t.day?t.day:"1")).slice(-2),"hour"===t.unit?i+="hour"===t.unit?"T"+("0"+e).slice(-2):"T00":i+="T"+("0"+(t.hour?t.hour:"0")).slice(-2),i+="minute"===t.unit?":"+("0"+e).slice(-2)+":00.000Z":":00:00.000Z"}},{key:"formatDates",value:function(t){var e=this,i=this.w;return t.map(function(t){var s=t.value.toString(),a=new T(e.ctx),n=e.createRawDateString(t,s),r=new Date(Date.parse(n));if(void 0===i.config.xaxis.labels.format){var o="dd MMM",l=i.config.xaxis.labels.datetimeFormatter;"year"===t.unit&&(o=l.year),"month"===t.unit&&(o=l.month),"day"===t.unit&&(o=l.day),"hour"===t.unit&&(o=l.hour),"minute"===t.unit&&(o=l.minute),s=a.formatDate(r,o,!0,!1)}else s=a.formatDate(r,i.config.xaxis.labels.format);return{dateString:n,position:t.position,value:s,unit:t.unit,year:t.year,month:t.month}})}},{key:"removeOverlappingTS",value:function(t){var e=this,i=new f(this.ctx),s=0,a=t.map(function(a,n){if(n>0&&e.w.config.xaxis.labels.hideOverlappingLabels){var r=i.getTextRects(t[s].value).width,o=t[s].position;return a.position>o+r+10?(s=n,a):null}return a});return a=a.filter(function(t){return null!==t})}}]),t}(),_=function(){function t(i,s){e(this,t),this.ctx=s,this.w=s.w,this.el=i,this.coreUtils=new b(this.ctx),this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[]}return s(t,[{key:"setupElements",value:function(){var t=this.w.globals,e=this.w.config,i=e.chart.type;t.axisCharts=["line","area","bar","candlestick","radar","scatter","bubble","heatmap"].indexOf(i)>-1,t.xyCharts=["line","area","bar","candlestick","scatter","bubble"].indexOf(i)>-1,t.chartClass=".apexcharts"+t.cuid,t.dom.baseEl=this.el,t.dom.elWrap=document.createElement("div"),f.setAttrs(t.dom.elWrap,{id:t.chartClass.substring(1),class:"apexcharts-canvas "+t.chartClass.substring(1)}),this.el.appendChild(t.dom.elWrap),t.dom.Paper=new window.SVG.Doc(t.dom.elWrap),t.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(e.chart.offsetX,", ").concat(e.chart.offsetY,")")}),t.dom.Paper.node.style.background=e.chart.background,this.setSVGDimensions(),t.dom.elGraphical=t.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),t.dom.elDefs=t.dom.Paper.defs(),t.dom.elLegendWrap=document.createElement("div"),t.dom.elLegendWrap.classList.add("apexcharts-legend"),t.dom.elWrap.appendChild(t.dom.elLegendWrap),t.dom.Paper.add(t.dom.elGraphical),t.dom.elGraphical.add(t.dom.elDefs)}},{key:"plotChartType",value:function(t,e){var i=this.w,s=i.config,a=i.globals,n={series:[],i:[]},r={series:[],i:[]},o={series:[],i:[]},l={series:[],i:[]},h={series:[],i:[]};a.series.map(function(e,s){void 0!==t[s].type?("column"===t[s].type||"bar"===t[s].type?(i.config.plotOptions.bar.horizontal=!1,l.series.push(e),l.i.push(s)):"area"===t[s].type?(r.series.push(e),r.i.push(s)):"line"===t[s].type?(n.series.push(e),n.i.push(s)):"scatter"===t[s].type?(o.series.push(e),o.i.push(s)):"bubble"===t[s].type||("candlestick"===t[s].type?(h.series.push(e),h.i.push(s)):console.warn("You have specified an unrecognized chart type. Available types for this propery are line/area/column/bar/scatter/bubble")),a.comboCharts=!0):(n.series.push(e),n.i.push(s))});var c=new O(this.ctx,e),d=new P(this.ctx,e),u=new I(this.ctx),g=new F(this.ctx),f=new Y(this.ctx),p=[];if(a.comboCharts){if(r.series.length>0&&p.push(c.draw(r.series,"area",r.i)),l.series.length>0)if(i.config.chart.stacked){var x=new M(this.ctx,e);p.push(x.draw(l.series,l.i))}else{var m=new z(this.ctx,e);p.push(m.draw(l.series,l.i))}if(n.series.length>0&&p.push(c.draw(n.series,"line",n.i)),h.series.length>0&&p.push(d.draw(h.series,h.i)),o.series.length>0){var v=new O(this.ctx,e,!0);p.push(v.draw(o.series,"scatter",o.i))}}else switch(s.chart.type){case"line":p=c.draw(a.series,"line");break;case"area":p=c.draw(a.series,"area");break;case"bar":if(s.chart.stacked)p=new M(this.ctx,e).draw(a.series);else p=new z(this.ctx,e).draw(a.series);break;case"candlestick":p=new P(this.ctx,e).draw(a.series);break;case"heatmap":p=new X(this.ctx,e).draw(a.series);break;case"pie":case"donut":p=u.draw(a.series);break;case"radialBar":p=g.draw(a.series);break;case"radar":p=f.draw(a.series);break;default:p=c.draw(a.series)}return p}},{key:"setSVGDimensions",value:function(){var t=this.w.globals,e=this.w.config;t.svgWidth=e.chart.width,t.svgHeight=e.chart.height;var i=d.getDimensions(this.el),s=e.chart.width.toString().split(/[0-9]+/g).pop();if("%"===s?d.isNumber(i[0])&&(0===i[0].width&&(i=d.getDimensions(this.el.parentNode)),t.svgWidth=i[0]*parseInt(e.chart.width)/100):"px"!==s&&""!==s||(t.svgWidth=parseInt(e.chart.width)),"auto"!==t.svgHeight&&""!==t.svgHeight)if("%"===e.chart.height.toString().split(/[0-9]+/g).pop()){var a=d.getDimensions(this.el.parentNode);t.svgHeight=a[1]*parseInt(e.chart.height)/100}else t.svgHeight=parseInt(e.chart.height);else t.axisCharts?t.svgHeight=t.svgWidth/1.61:t.svgHeight=t.svgWidth;f.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight});var n=e.chart.sparkline.enabled?0:t.axisCharts?14:5;t.dom.Paper.node.parentNode.parentNode.style.minHeight=t.svgHeight+n+"px",t.dom.elWrap.style.width=t.svgWidth+"px",t.dom.elWrap.style.height=t.svgHeight+"px"}},{key:"shiftGraphPosition",value:function(){var t=this.w.globals,e=t.translateY,i={transform:"translate("+t.translateX+", "+e+")"};f.setAttrs(t.dom.elGraphical.node,i)}},{key:"coreCalculations",value:function(){new W(this.ctx).init()}},{key:"resetGlobals",value:function(){var t=this,e=this.w.globals;e.series=[],e.seriesCandleO=[],e.seriesCandleH=[],e.seriesCandleL=[],e.seriesCandleC=[],e.seriesPercent=[],e.seriesX=[],e.seriesZ=[],e.seriesNames=[],e.seriesTotals=[],e.stackedSeriesTotals=[],e.labels=[],e.timelineLabels=[],e.noLabelsProvided=!1,e.timescaleTicks=[],e.resizeTimer=null,e.selectionResizeTimer=null,e.seriesXvalues=t.w.config.series.map(function(t){return[]}),e.seriesYvalues=t.w.config.series.map(function(t){return[]}),e.delayedElements=[],e.pointsArray=[],e.dataLabelsRects=[],e.isXNumeric=!1,e.isDataXYZ=!1,e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE,e.minYArr=[],e.maxYArr=[],e.maxX=-Number.MAX_VALUE,e.minX=Number.MAX_VALUE,e.initialmaxX=-Number.MAX_VALUE,e.initialminX=Number.MAX_VALUE,e.maxDate=0,e.minDate=Number.MAX_VALUE,e.minZ=Number.MAX_VALUE,e.maxZ=-Number.MAX_VALUE,e.yAxisScale=[],e.xAxisScale=null,e.xAxisTicksPositions=[],e.yLabelsCoords=[],e.yTitleCoords=[],e.xRange=0,e.yRange=[],e.zRange=0,e.dataPoints=0}},{key:"isMultipleY",value:function(){if(this.w.config.yaxis.constructor===Array&&this.w.config.yaxis.length>1)return this.w.config.chart.stacked=!1,this.w.globals.isMultipleYAxis=!0,!0}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var t=this,e=this.w;e.globals.ignoreYAxisIndexes=e.globals.collapsedSeries.map(function(e,i){if(t.w.globals.isMultipleYAxis)return e.index})}},{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var t=this.w.config.series.slice(),e=new B(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&t[this.activeSeriesIndex].data.length>0&&null!==t[this.activeSeriesIndex].data[0]&&void 0!==t[this.activeSeriesIndex].data[0].x&&null!==t[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var t=this.w.config.series.slice(),e=new B(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&t[this.activeSeriesIndex].data.length>0&&void 0!==t[this.activeSeriesIndex].data[0]&&null!==t[this.activeSeriesIndex].data[0]&&t[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(t,e){for(var i=this.w.config,s=this.w.globals,a=0;a-1&&(n=this.activeSeriesIndex);for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:this.ctx,i=this.w.config,s=this.w.globals,a=new T(e),n=0;n0?i.labels.slice():i.xaxis.categories.slice(),o=0;o0?i.labels.slice():i.xaxis.categories.slice();l.length>0&&(this.twoDSeriesX=l,s.seriesX.push(this.twoDSeriesX))}s.labels.push(this.twoDSeriesX);var h=t[n].data.map(function(t){return d.parseNumber(t)});s.series.push(h)}s.seriesZ.push(this.threeDSeries),void 0!==t[n].name?s.seriesNames.push(t[n].name):s.seriesNames.push("series-"+parseInt(n+1))}return this.w}},{key:"parseDataNonAxisCharts",value:function(t){var e=this.w.globals,i=this.w.config;e.series=t.slice(),e.seriesNames=i.labels.slice();for(var s=0;s0)i.labels=e.xaxis.categories;else if(e.labels.length>0)i.labels=e.labels.slice();else if(this.fallbackToCategory)i.labels=i.labels[0];else{var s=[];if(i.axisCharts){for(var a=0;a0&&(this.xaxisLabels=s.globals.timelineLabels.slice())}return s(t,[{key:"drawGridArea",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w,i=new f(this.ctx);null===t&&(t=i.group({class:"apexcharts-grid"}));var s=i.drawLine(e.globals.padHorizontal,1,e.globals.padHorizontal,e.globals.gridHeight,"transparent"),a=i.drawLine(e.globals.padHorizontal,e.globals.gridHeight,e.globals.gridWidth,e.globals.gridHeight,"transparent");return t.add(a),t.add(s),t}},{key:"drawGrid",value:function(){var t=this.w,e=new N(this.ctx),i=this.w.globals,s=null;if(i.axisCharts){if(t.config.grid.show)s=this.renderGrid(),i.dom.elGraphical.add(s.el),this.drawGridArea(s.el);else{var a=this.drawGridArea();i.dom.elGraphical.add(a)}null!==s&&e.xAxisLabelCorrections(s.xAxisTickWidth)}}},{key:"createGridMask",value:function(){var t=this.w,e=t.globals,i=new f(this.ctx),s=Array.isArray(t.config.stroke.width)?0:t.config.stroke.width;if(Array.isArray(t.config.stroke.width)){var a=0;t.config.stroke.width.forEach(function(t){a=Math.max(a,t)}),s=a}e.dom.elGridRectMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMask.setAttribute("id","gridRectMask".concat(e.cuid)),e.dom.elGridRectMarkerMask=document.createElementNS(e.SVGNS,"clipPath"),e.dom.elGridRectMarkerMask.setAttribute("id","gridRectMarkerMask".concat(e.cuid)),e.dom.elGridRect=i.drawRect(-s/2,-s/2,e.gridWidth+s,e.gridHeight+s,0,"#fff"),new b(this).getLargestMarkerSize();var n=t.globals.markers.largestSize+t.config.markers.hover.sizeOffset+1;e.dom.elGridRectMarker=i.drawRect(-n,-n,e.gridWidth+2*n,e.gridHeight+2*n,0,"#fff"),e.dom.elGridRectMask.appendChild(e.dom.elGridRect.node),e.dom.elGridRectMarkerMask.appendChild(e.dom.elGridRectMarker.node);var r=e.dom.baseEl.querySelector("defs");r.appendChild(e.dom.elGridRectMask),r.appendChild(e.dom.elGridRectMarkerMask)}},{key:"renderGrid",value:function(){for(var t,e=this.w,i=new f(this.ctx),s=e.config.grid.strokeDashArray,a=i.group({class:"apexcharts-grid"}),n=8,r=0;r2));r++);if(!(!e.config.plotOptions.bar.horizontal||"bar"!==e.config.chart.type)){if(t=n,e.config.grid.xaxis.lines.show||e.config.xaxis.axisTicks.show)for(var o,l=e.globals.padHorizontal,h=e.globals.gridHeight,c=0;c0)for(var w=0;w0&&b0)for(var n=0,r=s.globals.gridHeight/i,o=s.globals.gridWidth,l=0,h=0;l=s.config.grid.row.colors.length&&(h=0);var c=s.config.grid.row.colors[h],d=a.drawRect(0,n,o,r,0,c,s.config.grid.row.opacity);t.add(d),d.node.classList.add("apexcharts-gridRow"),n+=s.globals.gridHeight/i}if(void 0!==s.config.grid.column.colors&&s.config.grid.column.colors.length>0)for(var u=s.globals.padHorizontal,g=s.globals.padHorizontal+s.globals.gridWidth/e,p=s.globals.gridHeight,x=0,m=0;x=s.config.grid.column.colors.length&&(m=0);var v=s.config.grid.column.colors[m],b=a.drawRect(u,0,g,p,0,v,s.config.grid.column.opacity);b.node.classList.add("apexcharts-gridColumn"),t.add(b),u+=s.globals.gridWidth/e}}},{key:"animateLine",value:function(t,e,i){var s=this.w,a=s.config.chart.animations;if(a&&!s.globals.resized&&!s.globals.dataChanged){var n=a.speed;this.anim.animateLine(t,e,i,n)}}}]),t}(),nt=function(){function t(i,s){e(this,t),this.ctx=i,this.w=i.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this)}return s(t,[{key:"init",value:function(){var t=this.w,e=t.globals,i=t.config;if((i.legend.showForSingleSeries&&1===e.series.length||e.series.length>1||!e.axisCharts)&&i.legend.show){for(;e.dom.elLegendWrap.firstChild;)e.dom.elLegendWrap.removeChild(e.dom.elLegendWrap.firstChild);this.drawLegends(),d.isIE11()?document.getElementsByTagName("head")[0].appendChild(this.getLegendStyles()):this.appendToForeignObject(),"bottom"===i.legend.position||"top"===i.legend.position?this.legendAlignHorizontal():"right"!==i.legend.position&&"left"!==i.legend.position||this.legendAlignVertical()}}},{key:"appendToForeignObject",value:function(){var t=this.w.globals,e=document.createElementNS(t.SVGNS,"foreignObject");e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("width",t.svgWidth),e.setAttribute("height",t.svgHeight),t.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),e.appendChild(t.dom.elLegendWrap),e.appendChild(this.getLegendStyles()),t.dom.Paper.node.insertBefore(e,t.dom.elGraphical.node)}},{key:"drawLegends",value:function(){var t=this.w,e=t.config.legend.fontFamily,i=t.globals.seriesNames,s=t.globals.colors.slice();if("heatmap"===t.config.chart.type){var a=t.config.plotOptions.heatmap.colorScale.ranges;i=a.map(function(t){return t.name?t.name:t.from+" - "+t.to}),s=a.map(function(t){return t.color})}for(var n=t.globals.legendFormatter,r=0;r<=i.length-1;r++){var o=n(i[r],{seriesIndex:r,w:t}),l=!1,h=!1;if(t.globals.collapsedSeries.length>0)for(var c=0;c0)for(var d=0;d0?l-10:0)+(h>0?h-10:0)}s.style.position="absolute",n=n+t+i.config.legend.offsetX,r=r+e+i.config.legend.offsetY,s.style.left=n+"px",s.style.top=r+"px","bottom"===i.config.legend.position?(s.style.top="auto",s.style.bottom=10+i.config.legend.offsetY+"px"):"right"===i.config.legend.position&&(s.style.left="auto",s.style.right=25+i.config.legend.offsetX+"px"),s.style.width&&(s.style.width=parseInt(i.config.legend.width)+"px"),s.style.height&&(s.style.height=parseInt(i.config.legend.height)+"px")}},{key:"legendAlignHorizontal",value:function(){var t=this.w;t.globals.dom.baseEl.querySelector(".apexcharts-legend").style.right=0;var e=this.getLegendBBox(),i=new V(this.ctx),s=i.getTitleSubtitleCoords("title"),a=i.getTitleSubtitleCoords("subtitle"),n=0;"bottom"===t.config.legend.position?n=-e.clwh/1.8:"top"===t.config.legend.position&&(n=s.height+a.height+t.config.title.margin+t.config.subtitle.margin-15),this.setLegendWrapXY(20,n)}},{key:"legendAlignVertical",value:function(){var t=this.w,e=this.getLegendBBox(),i=0;"left"===t.config.legend.position&&(i=20),"right"===t.config.legend.position&&(i=t.globals.svgWidth-e.clww-10),this.setLegendWrapXY(i,20)}},{key:"onLegendHovered",value:function(t){var e=this.w,i=t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker");if("heatmap"!==e.config.chart.type)!t.target.classList.contains("inactive-legend")&&i&&new B(this.ctx).toggleSeriesOnHover(t,t.target);else if(i){var s=parseInt(t.target.getAttribute("rel"))-1;this.ctx.fireEvent("legendHover",[this.ctx,s,this.w]),new B(this.ctx).highlightRangeInSeries(t,t.target)}}},{key:"onLegendClick",value:function(t){if(t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker")){var e=parseInt(t.target.getAttribute("rel"))-1,i="true"===t.target.getAttribute("data:collapsed"),s=this.w.config.chart.events.legendClick;"function"==typeof s&&s(this.ctx,e,this.w),this.ctx.fireEvent("legendClick",[this.ctx,e,this.w]);var a=this.w.config.legend.markers.onClick;"function"==typeof a&&t.target.classList.contains("apexcharts-legend-marker")&&(a(this.ctx,e,this.w),this.ctx.fireEvent("legendMarkerClick",[this.ctx,e,this.w])),this.toggleDataSeries(e,i)}}},{key:"getLegendStyles",value:function(){var t=document.createElement("style");t.setAttribute("type","text/css");var e=document.createTextNode("\n \n .apexcharts-legend {\n display: flex;\n overflow: auto;\n padding: 0 10px;\n }\n\n .apexcharts-legend.position-bottom, .apexcharts-legend.position-top {\n flex-wrap: wrap\n }\n .apexcharts-legend.position-right, .apexcharts-legend.position-left {\n flex-direction: column;\n bottom: 0;\n }\n\n .apexcharts-legend.position-bottom.left, .apexcharts-legend.position-top.left, .apexcharts-legend.position-right, .apexcharts-legend.position-left {\n justify-content: flex-start;\n }\n\n .apexcharts-legend.position-bottom.center, .apexcharts-legend.position-top.center {\n justify-content: center; \n }\n\n .apexcharts-legend.position-bottom.right, .apexcharts-legend.position-top.right {\n justify-content: flex-end;\n }\n\n .apexcharts-legend-series {\n cursor: pointer;\n line-height: normal;\n }\n\n .apexcharts-legend.position-bottom .apexcharts-legend-series, .apexcharts-legend.position-top .apexcharts-legend-series{\n display: flex;\n align-items: center;\n }\n\n .apexcharts-legend-text {\n position: relative;\n font-size: 14px;\n }\n\n .apexcharts-legend-text *, .apexcharts-legend-marker * {\n pointer-events: none;\n }\n\n .apexcharts-legend-marker {\n position: relative;\n display: inline-block;\n cursor: pointer;\n margin-right: 3px;\n }\n \n .apexcharts-legend.right .apexcharts-legend-series, .apexcharts-legend.left .apexcharts-legend-series{\n display: inline-block;\n }\n\n .apexcharts-legend-series.no-click {\n cursor: auto;\n }\n\n .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\n display: none !important;\n }\n\n .inactive-legend {\n opacity: 0.45;\n }");return t.appendChild(e),t}},{key:"resetToggleDataSeries",value:function(){var t=this.w,e=[];if(t.globals.axisCharts?t.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex]").forEach(function(t){e.push(parseInt(t.getAttribute("data:realIndex")))}):t.globals.dom.baseEl.querySelectorAll(".apexcharts-series[rel]").forEach(function(t){e.push(parseInt(t.getAttribute("rel"))-1)}),e.sort(),t.globals.collapsedSeries.length>0){for(var i=t.globals.risingSeries.slice(),s=t.config.series.slice(),a=0;a0)for(var a=0;ae.breakpoint?1:e.breakpoint>t.breakpoint?-1:0}).reverse();var n=new y({}),r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=a[0].breakpoint,r=window.innerWidth>0?window.innerWidth:screen.width;if(r>s){var o=b.extendArrayProps(n,i.globals.initialConfig);t=d.extend(o,t),t=d.extend(i.config,t),e.overrideResponsiveOptions(t)}else for(var l=0;l2&&void 0!==arguments[2]?arguments[2]:null,s=this.w,a=e||s.globals.series.length;if(null===i&&(i="bar"===s.config.chart.type&&s.config.plotOptions.bar.distributed||"heatmap"===s.config.chart.type&&s.config.plotOptions.heatmap.colorScale.inverse),i&&(a=s.globals.series[0].length*s.globals.series.length),t.lengthr.globals.gridWidth||d>r.globals.gridHeight?(e.classList.remove("hovering-zoom"),e.classList.remove("hovering-pan")):r.globals.zoomEnabled?(e.classList.remove("hovering-pan"),e.classList.add("hovering-zoom")):r.globals.panEnabled&&(e.classList.remove("hovering-zoom"),e.classList.add("hovering-pan"));var u=Math.round(c/l);n&&(u=Math.ceil(c/l),u-=1);for(var g,f=null,p=null,x=[],m=0;m1?n=this.getFirstActiveXArray(i):r=0;var l=s[n][0],h=i[n][0],c=Math.abs(t-h),d=Math.abs(e-l),u=d+c;return s.map(function(a,n){a.map(function(a,l){var h=Math.abs(e-s[n][l]),g=Math.abs(t-i[n][l]),f=g+h;f0?e:-1}),a=0;a0)for(var s=0;s-1?g[0].parentNode.style.display="none":g[0].parentNode.style.display=o.config.tooltip.items.display)}},{key:"toggleActiveInactiveSeries",value:function(t){var e=this.w;if(t)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var i=e.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group");i&&(i.classList.add("active"),i.style.display=e.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(t){var e=t.i,i=t.j,s=this.w,a=this.ctx.series.filteredSeriesX(),n="",r=null,o=null,l={series:s.globals.series,seriesIndex:e,dataPointIndex:i,w:s},h=s.globals.ttZFormatter;null===i?o=s.globals.series[e]:s.globals.isXNumeric?(n=a[e][i],0===a[e].length&&(n=a[this.tooltipUtil.getFirstActiveXArray(a)][i])):n=void 0!==s.globals.labels[i]?s.globals.labels[i]:"";var c=n;s.globals.isXNumeric&&"datetime"===s.config.xaxis.type?n=new D(this.ctx).xLabelFormat(s.globals.ttKeyFormatter,c):n=s.globals.xLabelFormatter(c,l);return void 0!==s.config.tooltip.x.formatter&&(n=s.globals.ttKeyFormatter(c,l)),s.globals.seriesZ.length>0&&s.globals.seriesZ[0].length>0&&(r=h(s.globals.seriesZ[e][i],s)),{val:o,xVal:n,xAxisTTVal:"function"==typeof s.config.xaxis.tooltip.formatter?s.globals.xaxisTooltipFormatter(c,l):n,zVal:r}}},{key:"handleCustomTooltip",value:function(t){var e=t.i,i=t.j,s=this.w;this.ttCtx.getElTooltip().innerHTML=s.config.tooltip.custom({series:s.globals.series,seriesIndex:e,dataPointIndex:i,w:s})}}]),t}(),ct=function(){function t(i){e(this,t),this.ttCtx=i,this.ctx=i.ctx,this.w=i.w}return s(t,[{key:"moveXCrosshairs",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.ttCtx,s=this.w,a=i.getElXCrosshairs(),n=t-i.xcrosshairsWidth/2,r=s.globals.labels.slice().length;if(null!==e&&(n=s.globals.gridWidth/r*e),"tickWidth"===s.config.xaxis.crosshairs.width||"barWidth"===s.config.xaxis.crosshairs.width?n+i.xcrosshairsWidth>s.globals.gridWidth&&(n=s.globals.gridWidth-i.xcrosshairsWidth):null!==e&&(n+=s.globals.gridWidth/r/2),n<0&&(n=0),n>s.globals.gridWidth&&(n=s.globals.gridWidth),null!==a&&(a.setAttribute("x",n),a.setAttribute("x1",n),a.setAttribute("x2",n),a.setAttribute("y2",s.globals.gridHeight),a.classList.add("active")),i.blxaxisTooltip){var o=n;"tickWidth"!==s.config.xaxis.crosshairs.width&&"barWidth"!==s.config.xaxis.crosshairs.width||(o=n+i.xcrosshairsWidth/2),this.moveXAxisTooltip(o)}}},{key:"moveYCrosshairs",value:function(t){var e=this.ttCtx;null!==e.ycrosshairs&&(f.setAttrs(e.ycrosshairs,{y1:t,y2:t}),f.setAttrs(e.ycrosshairsHidden,{y1:t,y2:t}))}},{key:"moveXAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;if(null!==i.xaxisTooltip){i.xaxisTooltip.classList.add("active");var s=i.xaxisOffY+e.config.xaxis.tooltip.offsetY+e.globals.translateY+1+e.config.xaxis.offsetY;if(t-=i.xaxisTooltip.getBoundingClientRect().width/2,!isNaN(t)){t+=e.globals.translateX;var a;a=new f(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=a.width+"px",i.xaxisTooltip.style.left=t+"px",i.xaxisTooltip.style.top=s+"px"}}}},{key:"moveYAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;null===i.yaxisTTEls&&(i.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var s=parseInt(i.ycrosshairsHidden.getAttribute("y1")),a=e.globals.translateY+s,n=i.yaxisTTEls[t].getBoundingClientRect().height,r=e.globals.translateYAxisX[t]-2;e.config.yaxis[t].opposite&&(r-=26),a-=n/2,-1===e.globals.ignoreYAxisIndexes.indexOf(t)?(i.yaxisTTEls[t].classList.add("active"),i.yaxisTTEls[t].style.top=a+"px",i.yaxisTTEls[t].style.left=r+e.config.yaxis[t].tooltip.offsetX+"px"):i.yaxisTTEls[t].classList.remove("active")}},{key:"moveTooltip",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=this.w,a=this.ttCtx,n=a.getElTooltip(),r=a.tooltipRect,o=null!==i?parseInt(i):1,l=parseInt(t)+o+5,h=parseInt(e)+o/2;if(l>s.globals.gridWidth/2&&(l=l-r.ttWidth-o-15),l>s.globals.gridWidth-r.ttWidth-10&&(l=s.globals.gridWidth-r.ttWidth),l<-20&&(l=-20),s.config.tooltip.followCursor){var c=a.getElGrid().getBoundingClientRect();h=a.e.clientY-c.top-r.ttHeight/2}var d=this.positionChecks(r,l,h);l=d.x,h=d.y,isNaN(l)||(l+=s.globals.translateX,n.style.left=l+"px",n.style.top=h+"px")}},{key:"positionChecks",value:function(t,e,i){var s=this.w;return t.ttHeight+i>s.globals.gridHeight&&(i=s.globals.gridHeight-t.ttHeight+s.globals.translateY),i<0&&(i=0),{x:e,y:i}}},{key:"moveMarkers",value:function(t,e){var i=this.w,s=this.ttCtx;if(i.globals.markers.size[t]>0)for(var a=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-marker")),n=0;nr.globals.gridWidth/2&&(s=h-n.tooltipRect.ttWidth/2+d),n.w.config.tooltip.followCursor){var g=n.getElGrid().getBoundingClientRect();a=n.e.clientY-g.top+r.globals.translateY/2-10}}return{x:s,y:a}}},{key:"handleMarkerTooltip",value:function(t){var e,i,s=t.e,a=t.opt,n=t.x,r=t.y,o=this.w,l=this.ttCtx;if(s.target.classList.contains("apexcharts-marker")){var h=parseInt(a.paths.getAttribute("cx")),c=parseInt(a.paths.getAttribute("cy")),u=parseFloat(a.paths.getAttribute("val"));if(i=parseInt(a.paths.getAttribute("rel")),e=parseInt(a.paths.parentNode.parentNode.parentNode.getAttribute("rel"))-1,l.intersect){var g=d.findAncestor(a.paths,"apexcharts-series");g&&(e=parseInt(g.getAttribute("data:realIndex")))}if(l.tooltipLabels.drawSeriesTexts({ttItems:a.ttItems,i:e,j:i,shared:!l.intersect&&o.config.tooltip.shared}),l.marker.enlargeCurrentPoint(i,a.paths),n=h,r=c-1.4*l.tooltipRect.ttHeight,l.w.config.tooltip.followCursor){var f=l.getElGrid().getBoundingClientRect();r=l.e.clientY-f.top}u<0&&(r=c)}return{x:n,y:r}}},{key:"handleBarTooltip",value:function(t){var e,i,s=t.e,a=t.opt,n=this.w,r=this.ttCtx,o=r.getElTooltip(),l=0,h=0,c=0,d=this.getBarTooltipXY({e:s,opt:a});e=d.i;var u=d.barHeight,g=d.j;if(r.isBarHorizontal&&r.hasBars()||!n.config.tooltip.shared?(h=d.x,c=d.y,i=Array.isArray(n.config.stroke.width)?n.config.stroke.width[e]:n.config.stroke.width,l=h):n.globals.comboCharts||n.config.tooltip.shared||(l/=2),isNaN(c)&&(c=n.globals.svgHeight-r.tooltipRect.ttHeight),h+r.tooltipRect.ttWidth>n.globals.gridWidth?h-=r.tooltipRect.ttWidth:h<0&&(h+=r.tooltipRect.ttWidth),r.w.config.tooltip.followCursor){var f=r.getElGrid().getBoundingClientRect();c=r.e.clientY-f.top}if(null===r.tooltip&&(r.tooltip=n.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),n.config.tooltip.shared||(n.globals.comboChartsHasBars?r.tooltipPosition.moveXCrosshairs(l+i/2):r.tooltipPosition.moveXCrosshairs(l)),!r.fixedTooltip&&(!n.config.tooltip.shared||r.isBarHorizontal&&r.hasBars())){x&&(h=n.globals.gridWidth-h),o.style.left=h+n.globals.translateX+"px";var p=parseInt(a.paths.parentNode.getAttribute("data:realIndex")),x=n.globals.isMultipleYAxis?n.config.yaxis[p].reversed:n.config.yaxis[0].reversed;!x||r.isBarHorizontal&&r.hasBars()||(c=c+u-2*(n.globals.series[e][g]<0?u:0)),r.tooltipRect.ttHeight+c>n.globals.gridHeight?(c=n.globals.gridHeight-r.tooltipRect.ttHeight+n.globals.translateY,o.style.top=c+"px"):o.style.top=c+n.globals.translateY-r.tooltipRect.ttHeight/2+"px"}}},{key:"getBarTooltipXY",value:function(t){var e=t.e,i=t.opt,s=this.w,a=null,n=this.ttCtx,r=0,o=0,l=0,h=0,c=0,d=e.target.classList;if(d.contains("apexcharts-bar-area")||d.contains("apexcharts-candlestick-area")){var u=e.target,g=u.getBoundingClientRect(),f=i.elGrid.getBoundingClientRect(),p=g.height;c=g.height;var x=g.width,m=parseInt(u.getAttribute("cx")),v=parseInt(u.getAttribute("cy"));h=parseFloat(u.getAttribute("barWidth"));var b="touchmove"===e.type?e.touches[0].clientX:e.clientX;a=parseInt(u.getAttribute("j")),r=parseInt(u.parentNode.getAttribute("rel"))-1,s.globals.comboCharts&&(r=parseInt(u.parentNode.getAttribute("data:realIndex"))),n.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:r,j:a,shared:!n.showOnIntersect&&s.config.tooltip.shared}),s.config.tooltip.followCursor?s.config.plotOptions.bar.horizontal?(o=b-f.left+15,l=v-n.dataPointsDividedHeight+p/2-n.tooltipRect.ttHeight/2):(o=s.globals.isXNumeric?m-x/2:m-n.dataPointsDividedWidth+x/2,l=e.clientY-f.top-n.tooltipRect.ttHeight/2-15):s.config.plotOptions.bar.horizontal?((o=m)0&&i.setAttribute("width",e.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var t=this.w,e=this.ttCtx;e.ycrosshairs=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),e.ycrosshairsHidden=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(t,e,i){var s=this.ttCtx,a=this.w,n=a.globals.yLabelFormatters[t];if(s.blyaxisTooltip){var r=s.getElGrid().getBoundingClientRect(),o=(e-r.top)*i.yRatio[t],l=a.globals.maxYArr[t]-a.globals.minYArr[t],h=a.globals.minYArr[t]+(l-o);s.tooltipPosition.moveYCrosshairs(e-r.top),s.yaxisTooltipText[t].innerHTML=n(h),s.tooltipPosition.moveYAxisTooltip(t)}}}]),t}(),ft=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w;var s=this.w;this.tooltipUtil=new lt(this),this.tooltipLabels=new ht(this),this.tooltipPosition=new ct(this),this.marker=new dt(this),this.intersect=new ut(this),this.axesTooltip=new gt(this),this.showOnIntersect=s.config.tooltip.intersect,this.showTooltipTitle=s.config.tooltip.x.show,this.fixedTooltip=s.config.tooltip.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarHorizontal=s.config.plotOptions.bar.horizontal,this.isBarShared=!s.config.plotOptions.bar.horizontal&&s.config.tooltip.shared}return s(t,[{key:"getElTooltip",value:function(t){return t||(t=this),t.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip")}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(t){var e=this.w;this.xyRatios=t,this.blxaxisTooltip=e.config.xaxis.tooltip.enabled&&e.globals.axisCharts,this.blyaxisTooltip=e.config.yaxis[0].tooltip.enabled&&e.globals.axisCharts,this.allTooltipSeriesGroups=[],e.globals.axisCharts||(this.showTooltipTitle=!1);var i=document.createElement("div");if(i.classList.add("apexcharts-tooltip"),i.classList.add(e.config.tooltip.theme),e.globals.dom.elWrap.appendChild(i),e.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var s=new N(this.ctx);this.xAxisTicksPositions=s.getXAxisTicksPositions()}if((e.globals.comboCharts&&!e.config.tooltip.shared||e.config.tooltip.intersect&&!e.config.tooltip.shared||"bar"===e.config.chart.type&&!e.config.tooltip.shared)&&(this.showOnIntersect=!0),0!==e.config.markers.size&&0!==e.globals.markers.largestSize||this.marker.drawDynamicPoints(this),e.globals.collapsedSeries.length!==e.globals.series.length){this.dataPointsDividedHeight=e.globals.gridHeight/e.globals.dataPoints,this.dataPointsDividedWidth=e.globals.gridWidth/e.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=e.config.tooltip.style.fontFamily||e.config.chart.fontFamily,this.tooltipTitle.style.fontSize=e.config.tooltip.style.fontSize,i.appendChild(this.tooltipTitle));var a=e.globals.series.length;(e.globals.xyCharts||e.globals.comboCharts)&&e.config.tooltip.shared&&(a=this.showOnIntersect?1:e.globals.series.length),this.ttItems=this.createTTElements(a),this.addSVGEvents()}}},{key:"createTTElements",value:function(t){for(var e=this.w,i=[],s=this.getElTooltip(),a=0;a0&&this.addPathsEventListeners(u,h);var g=t.globals.dom.baseEl.querySelectorAll(".apexcharts-area-series .apexcharts-marker");g.length>0&&this.addPathsEventListeners(g,h),this.hasBars()&&!t.config.tooltip.shared&&this.addBarsEventListeners(h)}}},{key:"drawFixedTooltipRect",value:function(){var t=this.w,e=this.getElTooltip(),i=e.getBoundingClientRect(),s=i.width+10,a=i.height+10,n=t.config.tooltip.fixed.offsetX,r=t.config.tooltip.fixed.offsetY;return t.config.tooltip.fixed.position.toLowerCase().indexOf("right")>-1&&(n=n+t.globals.svgWidth-s+10),t.config.tooltip.fixed.position.toLowerCase().indexOf("bottom")>-1&&(r=r+t.globals.svgHeight-a-10),e.style.left=n+"px",e.style.top=r+"px",{x:n,y:r,ttWidth:s,ttHeight:a}}},{key:"addPointsEventsListeners",value:function(t){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker");this.addPathsEventListeners(e,t)}},{key:"addBarsEventListeners",value:function(t){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-area, .apexcharts-candlestick-area");this.addPathsEventListeners(e,t)}},{key:"addPathsEventListeners",value:function(t,e){for(var i=this,s=this,a=function(a){var n={paths:t[a],tooltipEl:e.tooltipEl,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:e.ttItems};i.w.globals.tooltipOpts=n;["mousemove","touchmove","mouseout","touchend"].map(function(e){return t[a].addEventListener(e,s.seriesHover.bind(s,n),{capture:!1,passive:!0})})},n=0;nl.top+l.height)this.handleMouseOut(n);else{var d=this.getElTooltip(),u=this.getElXCrosshairs(),g=r.globals.xyCharts||"bar"===r.config.chart.type&&!this.isBarHorizontal&&this.hasBars()&&r.config.tooltip.shared||r.globals.comboCharts&&this.hasBars;if("bar"===r.config.chart.type&&this.isBarHorizontal&&this.hasBars()&&(g=!1),"mousemove"===a.type||"touchmove"===a.type){if(null!==u&&u.classList.add("active"),null!==this.ycrosshairs&&this.blyaxisTooltip&&this.ycrosshairs.classList.add("active"),g&&!this.showOnIntersect){e=(o=this.tooltipUtil.getNearestValues({context:this,hoverArea:n.hoverArea,elGrid:n.elGrid,clientX:h,clientY:c,hasBars:this.hasBars})).j;var f=o.capturedSeries;if(o.hoverX<0||o.hoverX>r.globals.gridWidth)return void this.handleMouseOut(n);if(null!==f){if(null===r.globals.series[f][e])return void n.tooltipEl.classList.remove("active");void 0!==r.globals.series[f][e]?r.config.tooltip.shared&&this.tooltipUtil.isXoverlap(e)&&this.tooltipUtil.isinitialSeriesSameLen()?this.create(this,f,e,n.ttItems):this.create(this,f,e,n.ttItems,!1):this.tooltipUtil.isXoverlap(e)&&this.create(this,0,e,n.ttItems)}else this.tooltipUtil.isXoverlap(e)&&this.create(this,0,e,n.ttItems)}else if("heatmap"===r.config.chart.type){var p=this.intersect.handleHeatTooltip({e:a,opt:n,x:i,y:s});i=p.x,s=p.y,d.style.left=i+"px",d.style.top=s+"px"}else this.hasBars&&this.intersect.handleBarTooltip({e:a,opt:n}),this.hasMarkers&&this.intersect.handleMarkerTooltip({e:a,opt:n,x:i,y:s});if(this.blyaxisTooltip)for(var x=0;xa.globals.gridWidth&&(u=c-d.left-s.ttWidth+o),g<0&&(g=s.ttHeight+20),r.style.left=u+a.globals.translateX+"px",r.style.top=g+"px"}else"mouseout"!==e.type&&"touchend"!==e.type||r.classList.remove("active")}},{key:"deactivateHoverFilter",value:function(){for(var t=this.w,e=new f(this.ctx),i=t.globals.dom.Paper.select(".apexcharts-bar-area"),s=0;s0}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"create",value:function(t,e,i,s){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,n=this.w,r=t;null===a&&(a=n.config.tooltip.shared);var o=this.hasMarkers(),l=this.getElBars();if(a){if(r.tooltipLabels.drawSeriesTexts({ttItems:s,i:e,j:i,shared:!this.showOnIntersect&&n.config.tooltip.shared}),o&&(n.globals.markers.largestSize>0?r.marker.enlargePoints(i):r.tooltipPosition.moveDynamicPointsOnHover(i)),this.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(l),this.barSeriesHeight>0)){var h=new f(this.ctx),c=n.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(i,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(i);for(var d=0;d\n \n \n\n',title:this.localeValues.zoomIn,class:"apexcharts-zoom-in-icon"}),this.t.zoomout&&t.config.chart.zoom.enabled&&s.push({el:this.elZoomOut,icon:"string"==typeof this.t.zoomout?this.t.zoomout:'\n \n \n\n',title:this.localeValues.zoomOut,class:"apexcharts-zoom-out-icon"}),this.t.zoom&&t.config.chart.zoom.enabled&&s.push({el:this.elZoom,icon:"string"==typeof this.t.zoom?this.t.zoom:'\n \n \n \n',title:this.localeValues.selectionZoom,class:t.globals.isTouchDevice?"hidden":"apexcharts-zoom-icon"}),this.t.selection&&t.config.chart.selection.enabled&&s.push({el:this.elSelection,icon:"string"==typeof this.t.selection?this.t.selection:'\n \n \n',title:this.localeValues.selection,class:t.globals.isTouchDevice?"hidden":"apexcharts-selection-icon"}),this.t.pan&&t.config.chart.zoom.enabled&&s.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'\n \n \n \n \n \n \n \n',title:this.localeValues.pan,class:t.globals.isTouchDevice?"hidden":"apexcharts-pan-icon"}),this.t.reset&&t.config.chart.zoom.enabled&&s.push({el:this.elZoomReset,icon:"string"==typeof this.t.reset?this.t.reset:'\n \n \n',title:this.localeValues.reset,class:"apexcharts-reset-zoom-icon"}),this.t.download&&s.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?this.t.download:'',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var a=0;a0&&e.height>0&&this.slDraggableRect.selectize().resize({constraint:{minX:0,minY:0,maxX:t.globals.gridWidth,maxY:t.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var t=this.w,e=this.xyRatios;if(!t.globals.zoomEnabled)if(void 0!==t.globals.selection&&null!==t.globals.selection)this.drawSelectionRect(t.globals.selection);else if(void 0!==t.config.chart.selection.xaxis.min&&void 0!==t.config.chart.selection.xaxis.max){var i=(t.config.chart.selection.xaxis.min-t.globals.minX)/e.xRatio,s={x:i,y:0,width:t.globals.gridWidth-(t.globals.maxX-t.config.chart.selection.xaxis.max)/e.xRatio-i,height:t.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(s),this.makeSelectionRectDraggable(),"function"==typeof t.config.chart.events.selection&&t.config.chart.events.selection(this.ctx,{xaxis:{min:t.config.chart.selection.xaxis.min,max:t.config.chart.selection.xaxis.max},yaxis:{}})}}},{key:"drawSelectionRect",value:function(t){var e=t.x,i=t.y,s=t.width,a=t.height,n=t.translateX,r=t.translateY,o=this.w,l=this.zoomRect,h=this.selectionRect;if(this.dragged||null!==o.globals.selection){var c={transform:"translate("+n+", "+r+")"};o.globals.zoomEnabled&&this.dragged&&(l.attr({x:e,y:i,width:s,height:a,fill:o.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":o.config.chart.zoom.zoomedArea.fill.opacity,stroke:o.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":o.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":o.config.chart.zoom.zoomedArea.stroke.opacity}),f.setAttrs(l.node,c)),o.globals.selectionEnabled&&(h.attr({x:e,y:i,width:s>0?s:0,height:a>0?a:0,fill:o.config.chart.selection.fill.color,"fill-opacity":o.config.chart.selection.fill.opacity,stroke:o.config.chart.selection.stroke.color,"stroke-width":o.config.chart.selection.stroke.width,"stroke-dasharray":o.config.chart.selection.stroke.dashArray,"stroke-opacity":o.config.chart.selection.stroke.opacity}),f.setAttrs(h.node,c))}}},{key:"hideSelectionRect",value:function(t){t&&t.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(t){var e=t.context,i=t.zoomtype,s=this.w,a=e,n=this.gridRect.getBoundingClientRect(),r=a.startX-1,o=a.startY,l=a.clientX-n.left-r,h=a.clientY-n.top-o,c=0,d=0,u={};return(Math.abs(l+r)>s.globals.gridWidth||a.clientX-n.left<0)&&(a.hideSelectionRect(this.zoomRect),a.dragged=!1,a.w.globals.mousedown=!1),r>a.clientX-n.left&&(c=-(l=Math.abs(l))),o>a.clientY-n.top&&(d=-(h=Math.abs(h))),u="x"===i?{x:r,y:0,width:l,height:s.globals.gridHeight,translateX:c,translateY:0}:"y"===i?{x:0,y:o,width:s.globals.gridWidth,height:h,translateX:0,translateY:d}:{x:r,y:o,width:l,height:h,translateX:c,translateY:d},a.drawSelectionRect(u),u}},{key:"selectionDragging",value:function(t,e){var i=this,s=this.w,a=this.xyRatios,n=this.selectionRect,r=0;"resizing"===t&&(r=30),"function"==typeof s.config.chart.events.selection&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var t=i.gridRect.getBoundingClientRect(),e=n.node.getBoundingClientRect(),r=s.globals.xAxisScale.niceMin+(e.left-t.left)*a.xRatio,o=s.globals.xAxisScale.niceMin+(e.right-t.left)*a.xRatio,l=s.globals.yAxisScale[0].niceMin+(t.bottom-e.bottom)*a.yRatio[0],h=s.globals.yAxisScale[0].niceMax-(e.top-t.top)*a.yRatio[0];s.config.chart.events.selection(i.ctx,{xaxis:{min:r,max:o},yaxis:{min:l,max:h}})},r))}},{key:"selectionDrawn",value:function(t){var e=t.context,i=t.zoomtype,s=this.w,a=e,n=this.xyRatios,r=this.ctx.toolbar;if(a.startX>a.endX){var o=a.startX;a.startX=a.endX,a.endX=o}if(a.startY>a.endY){var l=a.startY;a.startY=a.endY,a.endY=l}var h=s.globals.xAxisScale.niceMin+a.startX*n.xRatio,c=s.globals.xAxisScale.niceMin+a.endX*n.xRatio,u=[],g=[];if(s.config.yaxis.forEach(function(t,e){u.push(Math.floor(s.globals.yAxisScale[e].niceMax-n.yRatio[e]*a.startY)),g.push(Math.floor(s.globals.yAxisScale[e].niceMax-n.yRatio[e]*a.endY))}),a.dragged&&(a.dragX>10||a.dragY>10)&&h!==c)if(s.globals.zoomEnabled){var f=d.clone(s.config.yaxis);s.globals.zoomed||(s.globals.lastXAxis=d.clone(s.config.xaxis),s.globals.lastYAxis=d.clone(s.config.yaxis));var p={min:h,max:c};if("xy"!==i&&"y"!==i||f.forEach(function(t,e){f[e].min=g[e],f[e].max=u[e]}),s.config.chart.zoom.autoScaleYaxis){var x=new H(a.ctx);f=x.autoScaleY(a.ctx,{xaxis:p})}if(r){var m=r.getBeforeZoomRange(p,f);m&&(p=m.xaxis?m.xaxis:p,f=m.yaxis?m.yaxe:f)}"x"===i?a.ctx._updateOptions({xaxis:p},!1,a.w.config.chart.animations.dynamicAnimation.enabled):"y"===i?a.ctx._updateOptions({yaxis:f},!1,a.w.config.chart.animations.dynamicAnimation.enabled):a.ctx._updateOptions({xaxis:p,yaxis:f},!1,a.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof s.config.chart.events.zoomed&&r.zoomCallback(p,f),s.globals.zoomed=!0}else if(s.globals.selectionEnabled){var v,b=null;v={min:h,max:c},"xy"!==i&&"y"!==i||(b=d.clone(s.config.yaxis)).forEach(function(t,e){b[e].min=g[e],b[e].max=u[e]}),s.globals.selection=a.selection,"function"==typeof s.config.chart.events.selection&&s.config.chart.events.selection(a.ctx,{xaxis:v,yaxis:b})}}},{key:"panDragging",value:function(t){var e,i=t.context,s=(t.zoomtype,this.w),a=i;if(void 0!==s.globals.lastClientPosition.x){var n=s.globals.lastClientPosition.x-a.clientX,r=s.globals.lastClientPosition.y-a.clientY;Math.abs(n)>Math.abs(r)&&n>0?e="left":Math.abs(n)>Math.abs(r)&&n<0?e="right":Math.abs(r)>Math.abs(n)&&r>0?e="up":Math.abs(r)>Math.abs(n)&&r<0&&(e="down")}s.globals.lastClientPosition={x:a.clientX,y:a.clientY};var o=s.globals.minX,l=s.globals.maxX;this.panScrolled(e,o,l)}},{key:"panScrolled",value:function(t,e,i){var s=this.w,a=this.xyRatios,n=d.clone(s.config.yaxis);"left"===t?(e=s.globals.minX+s.globals.gridWidth/15*a.xRatio,i=s.globals.maxX+s.globals.gridWidth/15*a.xRatio):"right"===t&&(e=s.globals.minX-s.globals.gridWidth/15*a.xRatio,i=s.globals.maxX-s.globals.gridWidth/15*a.xRatio),(es.globals.initialmaxX)&&(e=s.globals.minX,i=s.globals.maxX);var r={min:e,max:i};s.config.chart.zoom.autoScaleYaxis&&(n=new H(me.ctx).autoScaleY(me.ctx,{xaxis:r}));this.ctx._updateOptions({xaxis:{min:e,max:i},yaxis:n},!1,!1),"function"==typeof s.config.chart.events.scrolled&&s.config.chart.events.scrolled(this.ctx,{xaxis:{min:e,max:i}})}}]),i}(),mt=function(){function t(i){e(this,t),this.ctx=i,this.w=i.w}return s(t,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(t){var e=this.w,i="title"===t?e.config.title:e.config.subtitle,s=e.globals.svgWidth/2,a=i.offsetY,n="middle";if("left"===i.align?(s=10,n="start"):"right"===i.align&&(s=e.globals.svgWidth-10,n="end"),s+=i.offsetX,a=a+parseInt(i.style.fontSize)+2,void 0!==i.text){var r=new f(this.ctx).drawText({x:s,y:a,text:i.text,textAnchor:n,fontSize:i.style.fontSize,fontFamily:i.style.fontFamily,foreColor:i.style.color,opacity:1});r.node.setAttribute("class","apexcharts-".concat(t,"-text")),e.globals.dom.Paper.add(r)}}}]),t}();et="undefined"!=typeof window?window:void 0,it=function(e,i){var s=(void 0!==this?this:e).SVG=function(t){if(s.supported)return t=new s.Doc(t),s.parser.draw||s.prepare(),t};if(s.ns="http://www.w3.org/2000/svg",s.xmlns="http://www.w3.org/2000/xmlns/",s.xlink="http://www.w3.org/1999/xlink",s.svgjs="http://svgjs.com/svgjs",s.supported=!0,!s.supported)return!1;s.did=1e3,s.eid=function(t){return"Svgjs"+d(t)+s.did++},s.create=function(t){var e=i.createElementNS(this.ns,t);return e.setAttribute("id",this.eid(t)),e},s.extend=function(){var t,e,i,a;for(e=(t=[].slice.call(arguments)).pop(),a=t.length-1;a>=0;a--)if(t[a])for(i in e)t[a].prototype[i]=e[i];s.Set&&s.Set.inherit&&s.Set.inherit()},s.invent=function(t){var e="function"==typeof t.create?t.create:function(){this.constructor.call(this,s.create(t.create))};return t.inherit&&(e.prototype=new t.inherit),t.extend&&s.extend(e,t.extend),t.construct&&s.extend(t.parent||s.Container,t.construct),e},s.adopt=function(t){return t?t.instance?t.instance:((i="svg"==t.nodeName?t.parentNode instanceof e.SVGElement?new s.Nested:new s.Doc:"linearGradient"==t.nodeName?new s.Gradient("linear"):"radialGradient"==t.nodeName?new s.Gradient("radial"):s[d(t.nodeName)]?new(s[d(t.nodeName)]):new s.Element(t)).type=t.nodeName,i.node=t,t.instance=i,i instanceof s.Doc&&i.namespace().defs(),i.setData(JSON.parse(t.getAttribute("svgjs:data"))||{}),i):null;var i},s.prepare=function(){var t=i.getElementsByTagName("body")[0],e=(t?new s.Doc(t):s.adopt(i.documentElement).nested()).size(2,0);s.parser={body:t||i.documentElement,draw:e.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:e.polyline().node,path:e.path().node,native:s.create("svg")}},s.parser={native:s.create("svg")},i.addEventListener("DOMContentLoaded",function(){s.parser.draw||s.prepare()},!1),s.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},s.utils={map:function(t,e){var i,s=t.length,a=[];for(i=0;i1?1:t,new s.Color({r:~~(this.r+(this.destination.r-this.r)*t),g:~~(this.g+(this.destination.g-this.g)*t),b:~~(this.b+(this.destination.b-this.b)*t)})):this}}),s.Color.test=function(t){return t+="",s.regex.isHex.test(t)||s.regex.isRgb.test(t)},s.Color.isRgb=function(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b},s.Color.isColor=function(t){return s.Color.isRgb(t)||s.Color.test(t)},s.Array=function(t,e){0==(t=(t||[]).valueOf()).length&&e&&(t=e.valueOf()),this.value=this.parse(t)},s.extend(s.Array,{morph:function(t){if(this.destination=this.parse(t),this.value.length!=this.destination.length){for(var e=this.value[this.value.length-1],i=this.destination[this.destination.length-1];this.value.length>this.destination.length;)this.destination.push(i);for(;this.value.length=0;s--)this.value[s]=[this.value[s][0]+t,this.value[s][1]+e];return this},size:function(t,e){var i,s=this.bbox();for(i=this.value.length-1;i>=0;i--)s.width&&(this.value[i][0]=(this.value[i][0]-s.x)*t/s.width+s.x),s.height&&(this.value[i][1]=(this.value[i][1]-s.y)*e/s.height+s.y);return this},bbox:function(){return s.parser.draw||s.prepare(),s.parser.poly.setAttribute("points",this.toString()),s.parser.poly.getBBox()}});for(var a={M:function(t,e,i){return e.x=i.x=t[0],e.y=i.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,e){return e.x=t[2],e.y=t[3],["S",t[0],t[1],t[2],t[3]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},T:function(t,e){return e.x=t[0],e.y=t[1],["T",t[0],t[1]]},Z:function(t,e,i){return e.x=i.x,e.y=i.y,["Z"]},A:function(t,e){return e.x=t[5],e.y=t[6],["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}},n="mlhvqtcsaz".split(""),r=0,o=n.length;r=0;a--)"M"==(s=this.value[a][0])||"L"==s||"T"==s?(this.value[a][1]+=t,this.value[a][2]+=e):"H"==s?this.value[a][1]+=t:"V"==s?this.value[a][1]+=e:"C"==s||"S"==s||"Q"==s?(this.value[a][1]+=t,this.value[a][2]+=e,this.value[a][3]+=t,this.value[a][4]+=e,"C"==s&&(this.value[a][5]+=t,this.value[a][6]+=e)):"A"==s&&(this.value[a][6]+=t,this.value[a][7]+=e);return this},size:function(t,e){var i,s,a=this.bbox();for(i=this.value.length-1;i>=0;i--)"M"==(s=this.value[i][0])||"L"==s||"T"==s?(this.value[i][1]=(this.value[i][1]-a.x)*t/a.width+a.x,this.value[i][2]=(this.value[i][2]-a.y)*e/a.height+a.y):"H"==s?this.value[i][1]=(this.value[i][1]-a.x)*t/a.width+a.x:"V"==s?this.value[i][1]=(this.value[i][1]-a.y)*e/a.height+a.y:"C"==s||"S"==s||"Q"==s?(this.value[i][1]=(this.value[i][1]-a.x)*t/a.width+a.x,this.value[i][2]=(this.value[i][2]-a.y)*e/a.height+a.y,this.value[i][3]=(this.value[i][3]-a.x)*t/a.width+a.x,this.value[i][4]=(this.value[i][4]-a.y)*e/a.height+a.y,"C"==s&&(this.value[i][5]=(this.value[i][5]-a.x)*t/a.width+a.x,this.value[i][6]=(this.value[i][6]-a.y)*e/a.height+a.y)):"A"==s&&(this.value[i][1]=this.value[i][1]*t/a.width,this.value[i][2]=this.value[i][2]*e/a.height,this.value[i][6]=(this.value[i][6]-a.x)*t/a.width+a.x,this.value[i][7]=(this.value[i][7]-a.y)*e/a.height+a.y);return this},equalCommands:function(t){var e,i,a;for(t=new s.PathArray(t),a=this.value.length===t.value.length,e=0,i=this.value.length;a&&el);return n},bbox:function(){return s.parser.draw||s.prepare(),s.parser.path.setAttribute("d",this.toString()),s.parser.path.getBBox()}}),s.Number=s.invent({create:function(t,e){this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-3.4e38:3.4e38:"string"==typeof t?(e=t.match(s.regex.numberAndUnit))&&(this.value=parseFloat(e[1]),"%"==e[5]?this.value/=100:"s"==e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof s.Number&&(this.value=t.valueOf(),this.unit=t.unit)},extend:{toString:function(){return("%"==this.unit?~~(1e8*this.value)/1e6:"s"==this.unit?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(t){return t=new s.Number(t),new s.Number(this+t,this.unit||t.unit)},minus:function(t){return t=new s.Number(t),new s.Number(this-t,this.unit||t.unit)},times:function(t){return t=new s.Number(t),new s.Number(this*t,this.unit||t.unit)},divide:function(t){return t=new s.Number(t),new s.Number(this/t,this.unit||t.unit)},to:function(t){var e=new s.Number(this);return"string"==typeof t&&(e.unit=t),e},morph:function(t){return this.destination=new s.Number(t),t.relative&&(this.destination.value+=this.value),this},at:function(t){return this.destination?new s.Number(this.destination).minus(this).times(t).plus(this):this}}}),s.Element=s.invent({create:function(t){this._stroke=s.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=t)&&(this.type=t.nodeName,this.node.instance=this,this._stroke=t.getAttribute("stroke")||this._stroke)},extend:{x:function(t){return this.attr("x",t)},y:function(t){return this.attr("y",t)},cx:function(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)},cy:function(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)},move:function(t,e){return this.x(t).y(e)},center:function(t,e){return this.cx(t).cy(e)},width:function(t){return this.attr("width",t)},height:function(t){return this.attr("height",t)},size:function(t,e){var i=g(this,t,e);return this.width(new s.Number(i.width)).height(new s.Number(i.height))},clone:function(t){this.writeDataToDom();var e=m(this.node.cloneNode(!0));return t?t.add(e):this.after(e),e},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(t){return this.after(t).remove(),t},addTo:function(t){return t.put(this)},putIn:function(t){return t.add(this)},id:function(t){return this.attr("id",t)},inside:function(t,e){var i=this.bbox();return t>i.x&&e>i.y&&t/,"").replace(/<\/svg>$/,"");e.innerHTML=""+t.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2>")+"";for(var a=0,n=e.firstChild.childNodes.length;a":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)}},s.morph=function(t){return function(e,i){return new s.MorphObj(e,i).at(t)}},s.Situation=s.invent({create:function(t){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new s.Number(t.duration).valueOf(),this.delay=new s.Number(t.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=t.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),s.FX=s.invent({create:function(t){this._target=t,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(e,i,a){"object"===t(e)&&(i=e.ease,a=e.delay,e=e.duration);var n=new s.Situation({duration:e||1e3,delay:a||0,ease:s.easing[i||"-"]||i});return this.queue(n),this},delay:function(t){var e=new s.Situation({duration:t,delay:0,ease:s.easing["-"]});return this.queue(e)},target:function(t){return t&&t instanceof s.Element?(this._target=t,this):this._target},timeToAbsPos:function(t){return(t-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(t){return this.situation.duration/this._speed*t+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=e.requestAnimationFrame(function(){this.step()}.bind(this))},stopAnimFrame:function(){e.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(t){return("function"==typeof t||t instanceof s.Situation)&&this.situations.push(t),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof s.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var t,e,i,a=this.situation;if(a.init)return this;for(t in a.animations)for(i=this.target()[t](),Array.isArray(i)||(i=[i]),Array.isArray(a.animations[t])||(a.animations[t]=[a.animations[t]]),e=i.length;e--;)a.animations[t][e]instanceof s.Number&&(i[e]=new s.Number(i[e])),a.animations[t][e]=i[e].morph(a.animations[t][e]);for(t in a.attrs)a.attrs[t]=new s.MorphObj(this.target().attr(t),a.attrs[t]);for(t in a.styles)a.styles[t]=new s.MorphObj(this.target().style(t),a.styles[t]);return a.initialTransformation=this.target().matrixify(),a.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(t,e){var i=this.active;return this.active=!1,e&&this.clearQueue(),t&&this.situation&&(!i&&this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},reset:function(){if(this.situation){var t=this.situation;this.stop(),this.situation=t,this.atStart()}return this},finish:function(){for(this.stop(!0,!1);this.dequeue().situation&&this.stop(!0,!1););return this.clearQueue().clearCurrent(),this},atStart:function(){return this.at(0,!0)},atEnd:function(){return!0===this.situation.loops&&(this.situation.loops=this.situation.loop+1),"number"==typeof this.situation.loops?this.at(this.situation.loops,!0):this.at(1,!0)},at:function(t,e){var i=this.situation.duration/this._speed;return this.absPos=t,e||(this.situation.reversed&&(this.absPos=1-this.absPos),this.absPos+=this.situation.loop),this.situation.start=+new Date-this.absPos*i,this.situation.finish=this.situation.start+i,this.step(!0)},speed:function(t){return 0===t?this.pause():t?(this._speed=t,this.at(this.absPos,!0)):this._speed},loop:function(t,e){var i=this.last();return i.loops=null==t||t,i.loop=0,e&&(i.reversing=!0),this},pause:function(){return this.paused=!0,this.stopAnimFrame(),this},play:function(){return this.paused?(this.paused=!1,this.at(this.absPos,!0)):this},reverse:function(t){var e=this.last();return e.reversed=void 0===t?!e.reversed:t,this},progress:function(t){return t?this.situation.ease(this.pos):this.pos},after:function(t){var e=this.last();return this.target().on("finished.fx",function i(s){s.detail.situation==e&&(t.call(this,e),this.off("finished.fx",i))}),this._callStart()},during:function(t){var e=this.last(),i=function(i){i.detail.situation==e&&t.call(this,i.detail.pos,s.morph(i.detail.pos),i.detail.eased,e)};return this.target().off("during.fx",i).on("during.fx",i),this.after(function(){this.off("during.fx",i)}),this._callStart()},afterAll:function(t){var e=function e(i){t.call(this),this.off("allfinished.fx",e)};return this.target().off("allfinished.fx",e).on("allfinished.fx",e),this._callStart()},duringAll:function(t){var e=function(e){t.call(this,e.detail.pos,s.morph(e.detail.pos),e.detail.eased,e.detail.situation)};return this.target().off("during.fx",e).on("during.fx",e),this.afterAll(function(){this.off("during.fx",e)}),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(t,e,i){return this.last()[i||"animations"][t]=e,this._callStart()},step:function(t){var e,i,s;(t||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops)?(e=Math.max(this.absPos,0),i=Math.floor(e),!0===this.situation.loops||ithis.lastPos&&n<=a&&(this.situation.once[n].call(this.target(),this.pos,a),delete this.situation.once[n]);return this.active&&this.target().fire("during",{pos:this.pos,eased:a,fx:this,situation:this.situation}),this.situation?(this.eachAt(),1==this.pos&&!this.situation.reversed||this.situation.reversed&&0==this.pos?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=a,this):this},eachAt:function(){var t,e,i,a=this,n=this.target(),r=this.situation;for(t in r.animations)i=[].concat(r.animations[t]).map(function(t){return"string"!=typeof t&&t.at?t.at(r.ease(a.pos),a.pos):t}),n[t].apply(n,i);for(t in r.attrs)i=[t].concat(r.attrs[t]).map(function(t){return"string"!=typeof t&&t.at?t.at(r.ease(a.pos),a.pos):t}),n.attr.apply(n,i);for(t in r.styles)i=[t].concat(r.styles[t]).map(function(t){return"string"!=typeof t&&t.at?t.at(r.ease(a.pos),a.pos):t}),n.style.apply(n,i);if(r.transforms.length){for(i=r.initialTransformation,t=0,e=r.transforms.length;t=0;--i)this[y[i]]=null!=e[y[i]]?e[y[i]]:a[y[i]]},extend:{extract:function(){var t=f(this,0,1),e=f(this,1,0),i=180/Math.PI*Math.atan2(t.y,t.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(i*Math.PI/180)+this.f*Math.sin(i*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(i*Math.PI/180)+this.e*Math.sin(-i*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),skewX:-i,skewY:180/Math.PI*Math.atan2(e.y,e.x),scaleX:Math.sqrt(this.a*this.a+this.b*this.b),scaleY:Math.sqrt(this.c*this.c+this.d*this.d),rotation:i,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new s.Matrix(this)}},clone:function(){return new s.Matrix(this)},morph:function(t){return this.destination=new s.Matrix(t),this},at:function(t){return this.destination?new s.Matrix({a:this.a+(this.destination.a-this.a)*t,b:this.b+(this.destination.b-this.b)*t,c:this.c+(this.destination.c-this.c)*t,d:this.d+(this.destination.d-this.d)*t,e:this.e+(this.destination.e-this.e)*t,f:this.f+(this.destination.f-this.f)*t}):this},multiply:function(t){return new s.Matrix(this.native().multiply(function(t){t instanceof s.Matrix||(t=new s.Matrix(t));return t}(t).native()))},inverse:function(){return new s.Matrix(this.native().inverse())},translate:function(t,e){return new s.Matrix(this.native().translate(t||0,e||0))},scale:function(t,e,i,a){return 1==arguments.length?e=t:3==arguments.length&&(a=i,i=e,e=t),this.around(i,a,new s.Matrix(t,0,0,e,0,0))},rotate:function(t,e,i){return t=s.utils.radians(t),this.around(e,i,new s.Matrix(Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0))},flip:function(t,e){return"x"==t?this.scale(-1,1,e,0):"y"==t?this.scale(1,-1,0,e):this.scale(-1,-1,t,null!=e?e:t)},skew:function(t,e,i,a){return 1==arguments.length?e=t:3==arguments.length&&(a=i,i=e,e=t),t=s.utils.radians(t),e=s.utils.radians(e),this.around(i,a,new s.Matrix(1,Math.tan(e),Math.tan(t),1,0,0))},skewX:function(t,e,i){return this.skew(t,0,e,i)},skewY:function(t,e,i){return this.skew(0,t,e,i)},around:function(t,e,i){return this.multiply(new s.Matrix(1,0,0,1,t||0,e||0)).multiply(i).multiply(new s.Matrix(1,0,0,1,-t||0,-e||0))},native:function(){for(var t=s.parser.native.createSVGMatrix(),e=y.length-1;e>=0;e--)t[y[e]]=this[y[e]];return t},toString:function(){return"matrix("+b(this.a)+","+b(this.b)+","+b(this.c)+","+b(this.d)+","+b(this.e)+","+b(this.f)+")"}},parent:s.Element,construct:{ctm:function(){return new s.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof s.Nested){var t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new s.Matrix(e)}return new s.Matrix(this.node.getScreenCTM())}}}),s.Point=s.invent({create:function(e,i){var s;s=Array.isArray(e)?{x:e[0],y:e[1]}:"object"===t(e)?{x:e.x,y:e.y}:null!=e?{x:e,y:null!=i?i:e}:{x:0,y:0},this.x=s.x,this.y=s.y},extend:{clone:function(){return new s.Point(this)},morph:function(t,e){return this.destination=new s.Point(t,e),this},at:function(t){return this.destination?new s.Point({x:this.x+(this.destination.x-this.x)*t,y:this.y+(this.destination.y-this.y)*t}):this},native:function(){var t=s.parser.native.createSVGPoint();return t.x=this.x,t.y=this.y,t},transform:function(t){return new s.Point(this.native().matrixTransform(t.native()))}}}),s.extend(s.Element,{point:function(t,e){return new s.Point(t,e).transform(this.screenCTM().inverse())}}),s.extend(s.Element,{attr:function(e,i,a){if(null==e){for(e={},a=(i=this.node.attributes).length-1;a>=0;a--)e[i[a].nodeName]=s.regex.isNumber.test(i[a].nodeValue)?parseFloat(i[a].nodeValue):i[a].nodeValue;return e}if("object"===t(e))for(i in e)this.attr(i,e[i]);else if(null===i)this.node.removeAttribute(e);else{if(null==i)return null==(i=this.node.getAttribute(e))?s.defaults.attrs[e]:s.regex.isNumber.test(i)?parseFloat(i):i;"stroke-width"==e?this.attr("stroke",parseFloat(i)>0?this._stroke:null):"stroke"==e&&(this._stroke=i),"fill"!=e&&"stroke"!=e||(s.regex.isImage.test(i)&&(i=this.doc().defs().image(i,0,0)),i instanceof s.Image&&(i=this.doc().defs().pattern(0,0,function(){this.add(i)}))),"number"==typeof i?i=new s.Number(i):s.Color.isColor(i)?i=new s.Color(i):Array.isArray(i)&&(i=new s.Array(i)),"leading"==e?this.leading&&this.leading(i):"string"==typeof a?this.node.setAttributeNS(a,e,i.toString()):this.node.setAttribute(e,i.toString()),!this.rebuild||"font-size"!=e&&"x"!=e||this.rebuild(e,i)}return this}}),s.extend(s.Element,{transform:function(e,i){var a,n;if("object"!==t(e))return a=new s.Matrix(this).extract(),"string"==typeof e?a[e]:a;if(a=new s.Matrix(this),i=!!i||!!e.relative,null!=e.a)a=i?a.multiply(new s.Matrix(e)):new s.Matrix(e);else if(null!=e.rotation)x(e,this),a=i?a.rotate(e.rotation,e.cx,e.cy):a.rotate(e.rotation-a.extract().rotation,e.cx,e.cy);else if(null!=e.scale||null!=e.scaleX||null!=e.scaleY){if(x(e,this),e.scaleX=null!=e.scale?e.scale:null!=e.scaleX?e.scaleX:1,e.scaleY=null!=e.scale?e.scale:null!=e.scaleY?e.scaleY:1,!i){var r=a.extract();e.scaleX=1*e.scaleX/r.scaleX,e.scaleY=1*e.scaleY/r.scaleY}a=a.scale(e.scaleX,e.scaleY,e.cx,e.cy)}else if(null!=e.skew||null!=e.skewX||null!=e.skewY){if(x(e,this),e.skewX=null!=e.skew?e.skew:null!=e.skewX?e.skewX:0,e.skewY=null!=e.skew?e.skew:null!=e.skewY?e.skewY:0,!i){r=a.extract();a=a.multiply((new s.Matrix).skew(r.skewX,r.skewY,e.cx,e.cy).inverse())}a=a.skew(e.skewX,e.skewY,e.cx,e.cy)}else e.flip?("x"==e.flip||"y"==e.flip?e.offset=null==e.offset?this.bbox()["c"+e.flip]:e.offset:null==e.offset?(n=this.bbox(),e.flip=n.cx,e.offset=n.cy):e.flip=e.offset,a=(new s.Matrix).flip(e.flip,e.offset)):null==e.x&&null==e.y||(i?a=a.translate(e.x,e.y):(null!=e.x&&(a.e=e.x),null!=e.y&&(a.f=e.y)));return this.attr("transform",a)}}),s.extend(s.FX,{transform:function(e,i){var a,n,r=this.target();return"object"!==t(e)?(a=new s.Matrix(r).extract(),"string"==typeof e?a[e]:a):(i=!!i||!!e.relative,null!=e.a?a=new s.Matrix(e):null!=e.rotation?(x(e,r),a=new s.Rotate(e.rotation,e.cx,e.cy)):null!=e.scale||null!=e.scaleX||null!=e.scaleY?(x(e,r),e.scaleX=null!=e.scale?e.scale:null!=e.scaleX?e.scaleX:1,e.scaleY=null!=e.scale?e.scale:null!=e.scaleY?e.scaleY:1,a=new s.Scale(e.scaleX,e.scaleY,e.cx,e.cy)):null!=e.skewX||null!=e.skewY?(x(e,r),e.skewX=null!=e.skewX?e.skewX:0,e.skewY=null!=e.skewY?e.skewY:0,a=new s.Skew(e.skewX,e.skewY,e.cx,e.cy)):e.flip?("x"==e.flip||"y"==e.flip?e.offset=null==e.offset?r.bbox()["c"+e.flip]:e.offset:null==e.offset?(n=r.bbox(),e.flip=n.cx,e.offset=n.cy):e.flip=e.offset,a=(new s.Matrix).flip(e.flip,e.offset)):null==e.x&&null==e.y||(a=new s.Translate(e.x,e.y)),a?(a.relative=i,this.last().transforms.push(a),this._callStart()):this)}}),s.extend(s.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(s.regex.transforms).slice(0,-1).map(function(t){var e=t.trim().split("(");return[e[0],e[1].split(s.regex.delimiter).map(function(t){return parseFloat(t)})]}).reduce(function(t,e){return"matrix"==e[0]?t.multiply(p(e[1])):t[e[0]].apply(t,e[1])},new s.Matrix)},toParent:function(t){if(this==t)return this;var e=this.screenCTM(),i=t.screenCTM().inverse();return this.addTo(t).untransform().transform(i.multiply(e)),this},toDoc:function(){return this.toParent(this.doc())}}),s.Transformation=s.invent({create:function(e,i){if(arguments.length>1&&"boolean"!=typeof i)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(e))for(var s=0,a=this.arguments.length;s=0},index:function(t){return[].slice.call(this.node.childNodes).indexOf(t.node)},get:function(t){return s.adopt(this.node.childNodes[t])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(t,e){var i,a,n=this.children();for(i=0,a=n.length;in/r?this.height/r:this.width/n,this.x=i,this.y=a,this.width=n,this.height=r)}else e="string"==typeof e?e.match(u).map(function(t){return parseFloat(t)}):Array.isArray(e)?e:"object"===t(e)?[e.x,e.y,e.width,e.height]:4==arguments.length?[].slice.call(arguments):[0,0,0,0],this.x=e[0],this.y=e[1],this.width=e[2],this.height=e[3]},extend:{toString:function(){return this.x+" "+this.y+" "+this.width+" "+this.height},morph:function(t,e,i,a){return this.destination=new s.ViewBox(t,e,i,a),this},at:function(t){return this.destination?new s.ViewBox([this.x+(this.destination.x-this.x)*t,this.y+(this.destination.y-this.y)*t,this.width+(this.destination.width-this.width)*t,this.height+(this.destination.height-this.height)*t]):this}},parent:s.Container,construct:{viewbox:function(t,e,i,a){return 0==arguments.length?new s.ViewBox(this):this.attr("viewBox",new s.ViewBox(t,e,i,a))}}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach(function(t){s.Element.prototype[t]=function(e){return s.on(this.node,t,e),this}}),s.listeners=[],s.handlerMap=[],s.listenerId=0,s.on=function(t,e,i,a,n){var r=i.bind(a||t.instance||t),o=(s.handlerMap.indexOf(t)+1||s.handlerMap.push(t))-1,l=e.split(".")[0],h=e.split(".")[1]||"*";s.listeners[o]=s.listeners[o]||{},s.listeners[o][l]=s.listeners[o][l]||{},s.listeners[o][l][h]=s.listeners[o][l][h]||{},i._svgjsListenerId||(i._svgjsListenerId=++s.listenerId),s.listeners[o][l][h][i._svgjsListenerId]=r,t.addEventListener(l,r,n||!1)},s.off=function(t,e,i){var a=s.handlerMap.indexOf(t),n=e&&e.split(".")[0],r=e&&e.split(".")[1],o="";if(-1!=a)if(i){if("function"==typeof i&&(i=i._svgjsListenerId),!i)return;s.listeners[a][n]&&s.listeners[a][n][r||"*"]&&(t.removeEventListener(n,s.listeners[a][n][r||"*"][i],!1),delete s.listeners[a][n][r||"*"][i])}else if(r&&n){if(s.listeners[a][n]&&s.listeners[a][n][r]){for(i in s.listeners[a][n][r])s.off(t,[n,r].join("."),i);delete s.listeners[a][n][r]}}else if(r)for(e in s.listeners[a])for(o in s.listeners[a][e])r===o&&s.off(t,[e,r].join("."));else if(n){if(s.listeners[a][n]){for(o in s.listeners[a][n])s.off(t,[n,o].join("."));delete s.listeners[a][n]}}else{for(e in s.listeners[a])s.off(t,e);delete s.listeners[a],delete s.handlerMap[a]}},s.extend(s.Element,{on:function(t,e,i,a){return s.on(this.node,t,e,i,a),this},off:function(t,e){return s.off(this.node,t,e),this},fire:function(t,i){return t instanceof e.Event?this.node.dispatchEvent(t):this.node.dispatchEvent(t=new s.CustomEvent(t,{detail:i,cancelable:!0})),this._event=t,this},event:function(){return this._event}}),s.Defs=s.invent({create:"defs",inherit:s.Container}),s.G=s.invent({create:"g",inherit:s.Container,extend:{x:function(t){return null==t?this.transform("x"):this.transform({x:t-this.x()},!0)},y:function(t){return null==t?this.transform("y"):this.transform({y:t-this.y()},!0)},cx:function(t){return null==t?this.gbox().cx:this.x(t-this.gbox().width/2)},cy:function(t){return null==t?this.gbox().cy:this.y(t-this.gbox().height/2)},gbox:function(){var t=this.bbox(),e=this.transform();return t.x+=e.x,t.x2+=e.x,t.cx+=e.x,t.y+=e.y,t.y2+=e.y,t.cy+=e.y,t}},construct:{group:function(){return this.put(new s.G)}}}),s.Doc=s.invent({create:function(t){t&&("svg"==(t="string"==typeof t?i.getElementById(t):t).nodeName?this.constructor.call(this,t):(this.constructor.call(this,s.create("svg")),t.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:s.Container,extend:{namespace:function(){return this.attr({xmlns:s.ns,version:"1.1"}).attr("xmlns:xlink",s.xlink,s.xmlns).attr("xmlns:svgjs",s.svgjs,s.xmlns)},defs:function(){var t;this._defs||((t=this.node.getElementsByTagName("defs")[0])?this._defs=s.adopt(t):this._defs=new s.Defs,this.node.appendChild(this._defs.node));return this._defs},parent:function(){return this.node.parentNode&&"#document"!=this.node.parentNode.nodeName?this.node.parentNode:null},spof:function(){var t=this.node.getScreenCTM();return t&&this.style("left",-t.e%1+"px").style("top",-t.f%1+"px"),this},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,s.parser.draw&&!s.parser.draw.parentNode&&this.node.appendChild(s.parser.draw),this},clone:function(t){this.writeDataToDom();var e=this.node,i=m(e.cloneNode(!0));return t?(t.node||t).appendChild(i.node):e.parentNode.insertBefore(i.node,e.nextSibling),i}}}),s.extend(s.Element,{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},previous:function(){return this.siblings()[this.position()-1]},forward:function(){var t=this.position()+1,e=this.parent();return e.removeElement(this).add(this,t),e instanceof s.Doc&&e.node.appendChild(e.defs().node),this},backward:function(){var t=this.position();return t>0&&this.parent().removeElement(this).add(this,t-1),this},front:function(){var t=this.parent();return t.node.appendChild(this.node),t instanceof s.Doc&&t.node.appendChild(t.defs().node),this},back:function(){return this.position()>0&&this.parent().removeElement(this).add(this,0),this},before:function(t){t.remove();var e=this.position();return this.parent().add(t,e),this},after:function(t){t.remove();var e=this.position();return this.parent().add(t,e+1),this}}),s.Mask=s.invent({create:function(){this.constructor.call(this,s.create("mask")),this.targets=[]},inherit:s.Container,extend:{remove:function(){for(var t=this.targets.length-1;t>=0;t--)this.targets[t]&&this.targets[t].unmask();return this.targets=[],s.Element.prototype.remove.call(this),this}},construct:{mask:function(){return this.defs().put(new s.Mask)}}}),s.extend(s.Element,{maskWith:function(t){return this.masker=t instanceof s.Mask?t:this.parent().mask().add(t),this.masker.targets.push(this),this.attr("mask",'url("#'+this.masker.attr("id")+'")')},unmask:function(){return delete this.masker,this.attr("mask",null)}}),s.ClipPath=s.invent({create:function(){this.constructor.call(this,s.create("clipPath")),this.targets=[]},inherit:s.Container,extend:{remove:function(){for(var t=this.targets.length-1;t>=0;t--)this.targets[t]&&this.targets[t].unclip();return this.targets=[],this.parent().removeElement(this),this}},construct:{clip:function(){return this.defs().put(new s.ClipPath)}}}),s.extend(s.Element,{clipWith:function(t){return this.clipper=t instanceof s.ClipPath?t:this.parent().clip().add(t),this.clipper.targets.push(this),this.attr("clip-path",'url("#'+this.clipper.attr("id")+'")')},unclip:function(){return delete this.clipper,this.attr("clip-path",null)}}),s.Gradient=s.invent({create:function(t){this.constructor.call(this,s.create(t+"Gradient")),this.type=t},inherit:s.Container,extend:{at:function(t,e,i){return this.put(new s.Stop).update(t,e,i)},update:function(t){return this.clear(),"function"==typeof t&&t.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(t,e,i){return"transform"==t&&(t="gradientTransform"),s.Container.prototype.attr.call(this,t,e,i)}},construct:{gradient:function(t,e){return this.defs().gradient(t,e)}}}),s.extend(s.Gradient,s.FX,{from:function(t,e){return"radial"==(this._target||this).type?this.attr({fx:new s.Number(t),fy:new s.Number(e)}):this.attr({x1:new s.Number(t),y1:new s.Number(e)})},to:function(t,e){return"radial"==(this._target||this).type?this.attr({cx:new s.Number(t),cy:new s.Number(e)}):this.attr({x2:new s.Number(t),y2:new s.Number(e)})}}),s.extend(s.Defs,{gradient:function(t,e){return this.put(new s.Gradient(t)).update(e)}}),s.Stop=s.invent({create:"stop",inherit:s.Element,extend:{update:function(t){return("number"==typeof t||t instanceof s.Number)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new s.Number(t.offset)),this}}}),s.Pattern=s.invent({create:"pattern",inherit:s.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(t){return this.clear(),"function"==typeof t&&t.call(this,this),this},toString:function(){return this.fill()},attr:function(t,e,i){return"transform"==t&&(t="patternTransform"),s.Container.prototype.attr.call(this,t,e,i)}},construct:{pattern:function(t,e,i){return this.defs().pattern(t,e,i)}}}),s.extend(s.Defs,{pattern:function(t,e,i){return this.put(new s.Pattern).update(i).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}}),s.Shape=s.invent({create:function(t){this.constructor.call(this,t)},inherit:s.Element}),s.Bare=s.invent({create:function(t,e){if(this.constructor.call(this,s.create(t)),e)for(var i in e.prototype)"function"==typeof e.prototype[i]&&(this[i]=e.prototype[i])},inherit:s.Element,extend:{words:function(t){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this.node.appendChild(i.createTextNode(t)),this}}}),s.extend(s.Parent,{element:function(t,e){return this.put(new s.Bare(t,e))}}),s.Symbol=s.invent({create:"symbol",inherit:s.Container,construct:{symbol:function(){return this.put(new s.Symbol)}}}),s.Use=s.invent({create:"use",inherit:s.Shape,extend:{element:function(t,e){return this.attr("href",(e||"")+"#"+t,s.xlink)}},construct:{use:function(t,e){return this.put(new s.Use).element(t,e)}}}),s.Rect=s.invent({create:"rect",inherit:s.Shape,construct:{rect:function(t,e){return this.put(new s.Rect).size(t,e)}}}),s.Circle=s.invent({create:"circle",inherit:s.Shape,construct:{circle:function(t){return this.put(new s.Circle).rx(new s.Number(t).divide(2)).move(0,0)}}}),s.extend(s.Circle,s.FX,{rx:function(t){return this.attr("r",t)},ry:function(t){return this.rx(t)}}),s.Ellipse=s.invent({create:"ellipse",inherit:s.Shape,construct:{ellipse:function(t,e){return this.put(new s.Ellipse).size(t,e).move(0,0)}}}),s.extend(s.Ellipse,s.Rect,s.FX,{rx:function(t){return this.attr("rx",t)},ry:function(t){return this.attr("ry",t)}}),s.extend(s.Circle,s.Ellipse,{x:function(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())},y:function(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())},cx:function(t){return null==t?this.attr("cx"):this.attr("cx",t)},cy:function(t){return null==t?this.attr("cy"):this.attr("cy",t)},width:function(t){return null==t?2*this.rx():this.rx(new s.Number(t).divide(2))},height:function(t){return null==t?2*this.ry():this.ry(new s.Number(t).divide(2))},size:function(t,e){var i=g(this,t,e);return this.rx(new s.Number(i.width).divide(2)).ry(new s.Number(i.height).divide(2))}}),s.Line=s.invent({create:"line",inherit:s.Shape,extend:{array:function(){return new s.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(t,e,i,a){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:i,y2:a}:new s.PointArray(t).toLine(),this.attr(t))},move:function(t,e){return this.attr(this.array().move(t,e).toLine())},size:function(t,e){var i=g(this,t,e);return this.attr(this.array().size(i.width,i.height).toLine())}},construct:{line:function(t,e,i,a){return s.Line.prototype.plot.apply(this.put(new s.Line),null!=t?[t,e,i,a]:[0,0,0,0])}}}),s.Polyline=s.invent({create:"polyline",inherit:s.Shape,construct:{polyline:function(t){return this.put(new s.Polyline).plot(t||new s.PointArray)}}}),s.Polygon=s.invent({create:"polygon",inherit:s.Shape,construct:{polygon:function(t){return this.put(new s.Polygon).plot(t||new s.PointArray)}}}),s.extend(s.Polyline,s.Polygon,{array:function(){return this._array||(this._array=new s.PointArray(this.attr("points")))},plot:function(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new s.PointArray(t))},clear:function(){return delete this._array,this},move:function(t,e){return this.attr("points",this.array().move(t,e))},size:function(t,e){var i=g(this,t,e);return this.attr("points",this.array().size(i.width,i.height))}}),s.extend(s.Line,s.Polyline,s.Polygon,{morphArray:s.PointArray,x:function(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)},y:function(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)},width:function(t){var e=this.bbox();return null==t?e.width:this.size(t,e.height)},height:function(t){var e=this.bbox();return null==t?e.height:this.size(e.width,t)}}),s.Path=s.invent({create:"path",inherit:s.Shape,extend:{morphArray:s.PathArray,array:function(){return this._array||(this._array=new s.PathArray(this.attr("d")))},plot:function(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new s.PathArray(t))},clear:function(){return delete this._array,this},move:function(t,e){return this.attr("d",this.array().move(t,e))},x:function(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)},y:function(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)},size:function(t,e){var i=g(this,t,e);return this.attr("d",this.array().size(i.width,i.height))},width:function(t){return null==t?this.bbox().width:this.size(t,this.bbox().height)},height:function(t){return null==t?this.bbox().height:this.size(this.bbox().width,t)}},construct:{path:function(t){return this.put(new s.Path).plot(t||new s.PathArray)}}}),s.Image=s.invent({create:"image",inherit:s.Shape,extend:{load:function(t){if(!t)return this;var i=this,a=new e.Image;return s.on(a,"load",function(){s.off(a);var e=i.parent(s.Pattern);null!==e&&(0==i.width()&&0==i.height()&&i.size(a.width,a.height),e&&0==e.width()&&0==e.height()&&e.size(i.width(),i.height()),"function"==typeof i._loaded&&i._loaded.call(i,{width:a.width,height:a.height,ratio:a.width/a.height,url:t}))}),s.on(a,"error",function(t){s.off(a),"function"==typeof i._error&&i._error.call(i,t)}),this.attr("href",a.src=this.src=t,s.xlink)},loaded:function(t){return this._loaded=t,this},error:function(t){return this._error=t,this}},construct:{image:function(t,e,i){return this.put(new s.Image).load(t).size(e||0,i||e||0)}}}),s.Text=s.invent({create:function(){this.constructor.call(this,s.create("text")),this.dom.leading=new s.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",s.defaults.attrs["font-family"])},inherit:s.Shape,extend:{x:function(t){return null==t?this.attr("x"):this.attr("x",t)},y:function(t){var e=this.attr("y"),i="number"==typeof e?e-this.bbox().y:0;return null==t?"number"==typeof e?e-i:e:this.attr("y","number"==typeof t.valueOf()?t+i:t)},cx:function(t){return null==t?this.bbox().cx:this.x(t-this.bbox().width/2)},cy:function(t){return null==t?this.bbox().cy:this.y(t-this.bbox().height/2)},text:function(t){if(void 0===t){t="";for(var e=this.node.childNodes,i=0,a=e.length;i=0;i--)t.childNodes[i]instanceof e.SVGElement&&m(t.childNodes[i]);return s.adopt(t).id(s.eid(t.nodeName))}function v(t){return null==t.x&&(t.x=0,t.y=0,t.width=0,t.height=0),t.w=t.width,t.h=t.height,t.x2=t.x+t.width,t.y2=t.y+t.height,t.cx=t.x+t.width/2,t.cy=t.y+t.height/2,t}function b(t){return Math.abs(t)>1e-37?t:0}["fill","stroke"].forEach(function(t){var e,i={};i[t]=function(i){if(void 0===i)return this;if("string"==typeof i||s.Color.isRgb(i)||i&&"function"==typeof i.fill)this.attr(t,i);else for(e=l[t].length-1;e>=0;e--)null!=i[l[t][e]]&&this.attr(l.prefix(t,l[t][e]),i[l[t][e]]);return this},s.extend(s.Element,s.FX,i)}),s.extend(s.Element,s.FX,{rotate:function(t,e,i){return this.transform({rotation:t,cx:e,cy:i})},skew:function(t,e,i,s){return 1==arguments.length||3==arguments.length?this.transform({skew:t,cx:e,cy:i}):this.transform({skewX:t,skewY:e,cx:i,cy:s})},scale:function(t,e,i,s){return 1==arguments.length||3==arguments.length?this.transform({scale:t,cx:e,cy:i}):this.transform({scaleX:t,scaleY:e,cx:i,cy:s})},translate:function(t,e){return this.transform({x:t,y:e})},flip:function(t,e){return e="number"==typeof t?t:e,this.transform({flip:t||"both",offset:e})},matrix:function(t){return this.attr("transform",new s.Matrix(6==arguments.length?[].slice.call(arguments):t))},opacity:function(t){return this.attr("opacity",t)},dx:function(t){return this.x(new s.Number(t).plus(this instanceof s.FX?0:this.x()),!0)},dy:function(t){return this.y(new s.Number(t).plus(this instanceof s.FX?0:this.y()),!0)},dmove:function(t,e){return this.dx(t).dy(e)}}),s.extend(s.Rect,s.Ellipse,s.Circle,s.Gradient,s.FX,{radius:function(t,e){var i=(this._target||this).type;return"radial"==i||"circle"==i?this.attr("r",new s.Number(t)):this.rx(t).ry(null==e?t:e)}}),s.extend(s.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(t){return this.node.getPointAtLength(t)}}),s.extend(s.Parent,s.Text,s.Tspan,s.FX,{font:function(e,i){if("object"===t(e))for(i in e)this.font(i,e[i]);return"leading"==e?this.leading(i):"anchor"==e?this.attr("text-anchor",i):"size"==e||"family"==e||"weight"==e||"stretch"==e||"variant"==e||"style"==e?this.attr("font-"+e,i):this.attr(e,i)}}),s.Set=s.invent({create:function(t){Array.isArray(t)?this.members=t:this.clear()},extend:{add:function(){var t,e,i=[].slice.call(arguments);for(t=0,e=i.length;t-1&&this.members.splice(e,1),this},each:function(t){for(var e=0,i=this.members.length;e=0},index:function(t){return this.members.indexOf(t)},get:function(t){return this.members[t]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members},bbox:function(){if(0==this.members.length)return new s.RBox;var t=this.members[0].rbox(this.members[0].doc());return this.each(function(){t=t.merge(this.rbox(this.doc()))}),t}},construct:{set:function(t){return new s.Set(t)}}}),s.FX.Set=s.invent({create:function(t){this.set=t}}),s.Set.inherit=function(){var t=[];for(var e in s.Shape.prototype)"function"==typeof s.Shape.prototype[e]&&"function"!=typeof s.Set.prototype[e]&&t.push(e);for(var e in t.forEach(function(t){s.Set.prototype[t]=function(){for(var e=0,i=this.members.length;e=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory||(this._memory={})}}),s.get=function(t){var e=i.getElementById(function(t){var e=(t||"").toString().match(s.regex.reference);if(e)return e[1]}(t)||t);return s.adopt(e)},s.select=function(t,e){return new s.Set(s.utils.map((e||i).querySelectorAll(t),function(t){return s.adopt(t)}))},s.extend(s.Parent,{select:function(t){return s.select(t,this.node)}});var y="abcdef".split("");if("function"!=typeof e.CustomEvent){var w=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var s=i.createEvent("CustomEvent");return s.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),s};w.prototype=e.Event.prototype,s.CustomEvent=w}else s.CustomEvent=e.CustomEvent;return function(t){for(var i=0,s=["moz","webkit"],a=0;a1&&(s=Math.sqrt(s),M*=s,P*=s);a=(new SVG.Matrix).rotate(E).scale(1/M,1/P).rotate(-E),F=F.transform(a),O=O.transform(a),n=[O.x-F.x,O.y-F.y],o=n[0]*n[0]+n[1]*n[1],r=Math.sqrt(o),n[0]/=r,n[1]/=r,l=o<4?Math.sqrt(1-o/4):0,T===X&&(l*=-1);h=new SVG.Point((O.x+F.x)/2+l*-n[1],(O.y+F.y)/2+l*n[0]),c=new SVG.Point(F.x-h.x,F.y-h.y),d=new SVG.Point(O.x-h.x,O.y-h.y),u=Math.acos(c.x/Math.sqrt(c.x*c.x+c.y*c.y)),c.y<0&&(u*=-1);g=Math.acos(d.x/Math.sqrt(d.x*d.x+d.y*d.y)),d.y<0&&(g*=-1);X&&u>g&&(g+=2*Math.PI);!X&&un.maxX-e.width&&(s=n.maxX-e.width),null!=n.minY&&an.maxY-e.height&&(a=n.maxY-e.height),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:r,y:o},!0):this.el.move(s,a));return i},t.prototype.end=function(t){var e=this.drag(t);this.el.fire("dragend",{event:t,p:e,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(e,i){"function"!=typeof e&&"object"!=typeof e||(i=e,e=!0);var s=this.remember("_draggable")||new t(this);return(e=void 0===e||e)?s.init(i||{},e):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}.call(void 0),function(){function t(t){this.el=t,t.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1}}t.prototype.init=function(t,e){var i=this.el.bbox();for(var s in this.options={},this.el.selectize.defaults)this.options[s]=this.el.selectize.defaults[s],void 0!==e[s]&&(this.options[s]=e[s]);this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(i.x,i.y)),this.options.deepSelect&&-1!==["line","polyline","polygon"].indexOf(this.el.type)?this.selectPoints(t):this.selectRect(t),this.observe(),this.cleanup()},t.prototype.selectPoints=function(t){return this.pointSelection.isSelected=t,this.pointSelection.set?this:(this.pointSelection.set=this.parent.set(),this.drawCircles(),this)},t.prototype.getPointArray=function(){var t=this.el.bbox();return this.el.array().valueOf().map(function(e){return[e[0]-t.x,e[1]-t.y]})},t.prototype.drawCircles=function(){for(var t=this,e=this.getPointArray(),i=0,s=e.length;i0&&this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-i[0]);i=this.checkAspectRatio(i),this.el.move(this.parameters.box.x+i[0],this.parameters.box.y+i[1]).size(this.parameters.box.width-i[0],this.parameters.box.height-i[1])}};break;case"rt":this.calc=function(t,e){var i=this.snapToGrid(t,e,2);if(this.parameters.box.width+i[0]>0&&this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+i[0]);i=this.checkAspectRatio(i),this.el.move(this.parameters.box.x,this.parameters.box.y+i[1]).size(this.parameters.box.width+i[0],this.parameters.box.height-i[1])}};break;case"rb":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.width+i[0]>0&&this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+i[0]);i=this.checkAspectRatio(i),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+i[0],this.parameters.box.height+i[1])}};break;case"lb":this.calc=function(t,e){var i=this.snapToGrid(t,e,1);if(this.parameters.box.width-i[0]>0&&this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+i[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-i[0]);i=this.checkAspectRatio(i),this.el.move(this.parameters.box.x+i[0],this.parameters.box.y).size(this.parameters.box.width-i[0],this.parameters.box.height+i[1])}};break;case"t":this.calc=function(t,e){var i=this.snapToGrid(t,e,2);if(this.parameters.box.height-i[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y+i[1]).height(this.parameters.box.height-i[1])}};break;case"r":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.width+i[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+i[0])}};break;case"b":this.calc=function(t,e){var i=this.snapToGrid(t,e,0);if(this.parameters.box.height+i[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+i[1])}};break;case"l":this.calc=function(t,e){var i=this.snapToGrid(t,e,1);if(this.parameters.box.width-i[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x+i[0],this.parameters.box.y).width(this.parameters.box.width-i[0])}};break;case"rot":this.calc=function(t,e){var i=t+this.parameters.p.x,s=e+this.parameters.p.y,a=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),n=180*(Math.atan2(s-this.parameters.box.y-this.parameters.box.height/2,i-this.parameters.box.x-this.parameters.box.width/2)-a)/Math.PI;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(this.parameters.rotation+n-n%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(t,e){var i=this.snapToGrid(t,e,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),s=this.el.array().valueOf();s[this.parameters.i][0]=this.parameters.pointCoords[0]+i[0],s[this.parameters.i][1]=this.parameters.pointCoords[1]+i[1],this.el.plot(s)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:t}),SVG.on(window,"touchmove.resize",function(t){e.update(t||window.event)}),SVG.on(window,"touchend.resize",function(){e.done()}),SVG.on(window,"mousemove.resize",function(t){e.update(t||window.event)}),SVG.on(window,"mouseup.resize",function(){e.done()})},t.prototype.update=function(t){if(t){var e=this._extractPosition(t),i=this.transformPoint(e.x,e.y),s=i.x-this.parameters.p.x,a=i.y-this.parameters.p.y;this.lastUpdateCall=[s,a],this.calc(s,a),this.el.fire("resizing",{dx:s,dy:a,event:t})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},t.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")},t.prototype.snapToGrid=function(t,e,i,s){var a;return void 0!==s?a=[(i+t)%this.options.snapToGrid,(s+e)%this.options.snapToGrid]:(i=null==i?3:i,a=[(this.parameters.box.x+t+(1&i?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+e+(2&i?0:this.parameters.box.height))%this.options.snapToGrid]),t-=Math.abs(a[0])r.maxX&&(t=r.maxX-a),void 0!==r.minY&&n+er.maxY&&(e=r.maxY-n),[t,e]},t.prototype.checkAspectRatio=function(t){if(!this.options.saveAspectRatio)return t;var e=t.slice(),i=this.parameters.box.width/this.parameters.box.height,s=this.parameters.box.width+t[0],a=this.parameters.box.height-t[1],n=s/a;return ni&&(e[0]=this.parameters.box.width-a*i),e},SVG.extend(SVG.Element,{resize:function(e){return(this.remember("_resizeHandler")||new t(this)).init(e||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}();return function(t,e){void 0===e&&(e={});var i=e.insertAt;if(t&&"undefined"!=typeof document){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===i&&s.firstChild?s.insertBefore(a,s.firstChild):s.appendChild(a),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}}('.apexcharts-canvas {\n position: relative;\n user-select: none;\n /* cannot give overflow: hidden as it will crop tooltips which overflow outside chart area */\n}\n\n/* scrollbar is not visible by default for legend, hence forcing the visibility */\n.apexcharts-canvas ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 6px;\n}\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0,0,0,.5);\n box-shadow: 0 0 1px rgba(255,255,255,.5);\n -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);\n}\n\n.apexcharts-inner {\n position: relative;\n}\n\n.legend-mouseover-inactive {\n transition: 0.15s ease all;\n opacity: 0.20;\n}\n\n.apexcharts-series-collapsed {\n opacity: 0;\n}\n\n.apexcharts-gridline, .apexcharts-text {\n pointer-events: none;\n}\n\n.apexcharts-tooltip {\n border-radius: 5px;\n box-shadow: 2px 2px 6px -4px #999;\n cursor: default;\n font-size: 14px;\n left: 62px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n top: 20px;\n overflow: hidden;\n white-space: nowrap;\n z-index: 12;\n transition: 0.15s ease all;\n}\n.apexcharts-tooltip.light {\n border: 1px solid #e3e3e3;\n background: rgba(255, 255, 255, 0.96);\n}\n.apexcharts-tooltip.dark {\n color: #fff;\n background: rgba(30,30,30, 0.8);\n}\n.apexcharts-tooltip * {\n font-family: inherit;\n}\n\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-line {\n pointer-events: none;\n}\n\n.apexcharts-tooltip.active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-tooltip-title {\n padding: 6px;\n font-size: 15px;\n margin-bottom: 4px;\n}\n.apexcharts-tooltip.light .apexcharts-tooltip-title {\n background: #ECEFF1;\n border-bottom: 1px solid #ddd;\n}\n.apexcharts-tooltip.dark .apexcharts-tooltip-title {\n background: rgba(0, 0, 0, 0.7);\n border-bottom: 1px solid #222;\n}\n\n.apexcharts-tooltip-text-value,\n.apexcharts-tooltip-text-z-value {\n display: inline-block;\n font-weight: 600;\n margin-left: 5px;\n}\n\n.apexcharts-tooltip-text-z-label:empty,\n.apexcharts-tooltip-text-z-value:empty {\n display: none;\n}\n\n.apexcharts-tooltip-text-value, \n.apexcharts-tooltip-text-z-value {\n font-weight: 600;\n}\n\n.apexcharts-tooltip-marker {\n width: 12px;\n height: 12px;\n position: relative;\n top: 0px;\n margin-right: 10px;\n border-radius: 50%;\n}\n\n.apexcharts-tooltip-series-group {\n padding: 0 10px;\n display: none;\n text-align: left;\n justify-content: left;\n align-items: center;\n}\n\n.apexcharts-tooltip-series-group.active .apexcharts-tooltip-marker {\n opacity: 1;\n}\n.apexcharts-tooltip-series-group.active, .apexcharts-tooltip-series-group:last-child {\n padding-bottom: 4px;\n}\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px;\n}\n.apexcharts-tooltip-candlestick {\n padding: 4px 8px;\n}\n.apexcharts-tooltip-candlestick > div {\n margin: 4px 0;\n}\n.apexcharts-tooltip-candlestick span.value {\n font-weight: bold;\n}\n\n.apexcharts-xaxistooltip {\n opacity: 0;\n padding: 9px 10px;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n\tbackground: #ECEFF1;\n border: 1px solid #90A4AE;\n transition: 0.15s ease all;\n}\n\n.apexcharts-xaxistooltip:after, .apexcharts-xaxistooltip:before {\n\tleft: 50%;\n\tborder: solid transparent;\n\tcontent: " ";\n\theight: 0;\n\twidth: 0;\n\tposition: absolute;\n\tpointer-events: none;\n}\n\n.apexcharts-xaxistooltip:after {\n\tborder-color: rgba(236, 239, 241, 0);\n\tborder-width: 6px;\n\tmargin-left: -6px;\n}\n.apexcharts-xaxistooltip:before {\n\tborder-color: rgba(144, 164, 174, 0);\n\tborder-width: 7px;\n\tmargin-left: -7px;\n}\n\n.apexcharts-xaxistooltip-bottom:after, .apexcharts-xaxistooltip-bottom:before {\n bottom: 100%;\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: #ECEFF1;\n}\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: #90A4AE;\n}\n\n.apexcharts-xaxistooltip-top:after, .apexcharts-xaxistooltip-top:before {\n top: 100%;\n}\n.apexcharts-xaxistooltip-top:after {\n border-top-color: #ECEFF1;\n}\n.apexcharts-xaxistooltip-top:before {\n border-top-color: #90A4AE;\n}\n\n.apexcharts-xaxistooltip.active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-yaxistooltip {\n opacity: 0;\n padding: 4px 10px;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n\tbackground: #ECEFF1;\n border: 1px solid #90A4AE;\n}\n\n.apexcharts-yaxistooltip:after, .apexcharts-yaxistooltip:before {\n\ttop: 50%;\n\tborder: solid transparent;\n\tcontent: " ";\n\theight: 0;\n\twidth: 0;\n\tposition: absolute;\n\tpointer-events: none;\n}\n.apexcharts-yaxistooltip:after {\n\tborder-color: rgba(236, 239, 241, 0);\n\tborder-width: 6px;\n\tmargin-top: -6px;\n}\n.apexcharts-yaxistooltip:before {\n\tborder-color: rgba(144, 164, 174, 0);\n\tborder-width: 7px;\n\tmargin-top: -7px;\n}\n\n.apexcharts-yaxistooltip-left:after, .apexcharts-yaxistooltip-left:before {\n left: 100%;\n}\n.apexcharts-yaxistooltip-left:after {\n border-left-color: #ECEFF1;\n}\n.apexcharts-yaxistooltip-left:before {\n border-left-color: #90A4AE;\n}\n\n.apexcharts-yaxistooltip-right:after, .apexcharts-yaxistooltip-right:before {\n right: 100%;\n}\n.apexcharts-yaxistooltip-right:after {\n border-right-color: #ECEFF1;\n}\n.apexcharts-yaxistooltip-right:before {\n border-right-color: #90A4AE;\n}\n\n.apexcharts-yaxistooltip.active {\n opacity: 1;\n}\n\n.apexcharts-xcrosshairs, .apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: 0.15s ease all;\n}\n\n.apexcharts-xcrosshairs.active, .apexcharts-ycrosshairs.active {\n opacity: 1;\n transition: 0.15s ease all;\n}\n\n.apexcharts-ycrosshairs-hidden {\n opacity: 0;\n}\n\n.apexcharts-zoom-rect {\n pointer-events: none;\n}\n.apexcharts-selection-rect {\n cursor: move;\n}\n\n.svg_select_points, .svg_select_points_rot {\n opacity: 0;\n visibility: hidden;\n}\n.svg_select_points_l, .svg_select_points_r {\n cursor: ew-resize;\n opacity: 1;\n visibility: visible;\n fill: #888;\n}\n.apexcharts-canvas.zoomable .hovering-zoom {\n cursor: crosshair\n}\n.apexcharts-canvas.zoomable .hovering-pan {\n cursor: move\n}\n\n.apexcharts-xaxis,\n.apexcharts-yaxis {\n pointer-events: none;\n}\n\n.apexcharts-zoom-icon, \n.apexcharts-zoom-in-icon,\n.apexcharts-zoom-out-icon,\n.apexcharts-reset-zoom-icon, \n.apexcharts-pan-icon, \n.apexcharts-selection-icon,\n.apexcharts-menu-icon, \n.apexcharts-toolbar-custom-icon {\n cursor: pointer;\n width: 20px;\n height: 20px;\n line-height: 24px;\n color: #6E8192;\n text-align: center;\n}\n\n.apexcharts-zoom-icon svg, \n.apexcharts-zoom-in-icon svg,\n.apexcharts-zoom-out-icon svg,\n.apexcharts-reset-zoom-icon svg,\n.apexcharts-menu-icon svg {\n fill: #6E8192;\n}\n.apexcharts-selection-icon svg {\n fill: #444;\n transform: scale(0.76)\n}\n.apexcharts-zoom-icon.selected svg, \n.apexcharts-selection-icon.selected svg, \n.apexcharts-reset-zoom-icon.selected svg {\n fill: #008FFB;\n}\n.apexcharts-selection-icon:not(.selected):hover svg,\n.apexcharts-zoom-icon:not(.selected):hover svg, \n.apexcharts-zoom-in-icon:hover svg, \n.apexcharts-zoom-out-icon:hover svg, \n.apexcharts-reset-zoom-icon:hover svg, \n.apexcharts-menu-icon:hover svg {\n fill: #333;\n}\n\n.apexcharts-selection-icon, .apexcharts-menu-icon {\n position: relative;\n}\n.apexcharts-reset-zoom-icon {\n margin-left: 5px;\n}\n.apexcharts-zoom-icon, .apexcharts-reset-zoom-icon, .apexcharts-menu-icon {\n transform: scale(0.85);\n}\n\n.apexcharts-zoom-in-icon, .apexcharts-zoom-out-icon {\n transform: scale(0.7)\n}\n\n.apexcharts-zoom-out-icon {\n margin-right: 3px;\n}\n\n.apexcharts-pan-icon {\n transform: scale(0.62);\n position: relative;\n left: 1px;\n top: 0px;\n}\n.apexcharts-pan-icon svg {\n fill: #fff;\n stroke: #6E8192;\n stroke-width: 2;\n}\n.apexcharts-pan-icon.selected svg {\n stroke: #008FFB;\n}\n.apexcharts-pan-icon:not(.selected):hover svg {\n stroke: #333;\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n top: 0px;\n right: 3px;\n max-width: 176px;\n text-align: right;\n border-radius: 3px;\n padding: 0px 6px 2px 6px;\n display: flex;\n justify-content: space-between;\n align-items: center; \n}\n\n.apexcharts-toolbar svg {\n pointer-events: none;\n}\n\n.apexcharts-menu {\n background: #fff;\n position: absolute;\n top: 100%;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 3px;\n right: 10px;\n opacity: 0;\n min-width: 110px;\n transition: 0.15s ease all;\n pointer-events: none;\n}\n\n.apexcharts-menu.open {\n opacity: 1;\n pointer-events: all;\n transition: 0.15s ease all;\n}\n\n.apexcharts-menu-item {\n padding: 6px 7px;\n font-size: 12px;\n cursor: pointer;\n}\n.apexcharts-menu-item:hover {\n background: #eee;\n}\n\n@media screen and (min-width: 768px) {\n .apexcharts-toolbar {\n /*opacity: 0;*/\n }\n\n .apexcharts-canvas:hover .apexcharts-toolbar {\n opacity: 1;\n } \n}\n\n.apexcharts-datalabel.hidden {\n opacity: 0;\n}\n\n.apexcharts-pie-label,\n.apexcharts-datalabel, .apexcharts-datalabel-label, .apexcharts-datalabel-value {\n cursor: default;\n pointer-events: none;\n}\n\n.apexcharts-pie-label-delay {\n opacity: 0;\n animation-name: opaque;\n animation-duration: 0.3s;\n animation-fill-mode: forwards;\n animation-timing-function: ease;\n}\n\n.apexcharts-canvas .hidden {\n opacity: 0;\n}\n\n.apexcharts-hide .apexcharts-series-points {\n opacity: 0;\n}\n\n.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events, .apexcharts-radar-series path, .apexcharts-radar-series polygon {\n pointer-events: none;\n}\n\n/* markers */\n\n.apexcharts-marker {\n transition: 0.15s ease all;\n}\n\n@keyframes opaque {\n 0% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}'),"document"in self&&("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))||function(t){if("Element"in t){var e=t.Element.prototype,i=Object,s=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},a=Array.prototype.indexOf||function(t){for(var e=0,i=this.length;e div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e)),i.appendChild(s),t=!0}}(),s.__resizeLast__={},s.__resizeListeners__=[],(s.__resizeTriggers__=document.createElement("div")).className="resize-triggers",s.__resizeTriggers__.innerHTML='
',s.appendChild(s.__resizeTriggers__),e(s),s.addEventListener("scroll",i,!0),h&&s.__resizeTriggers__.addEventListener(h,function(t){"resizeanim"==t.animationName&&e(s)})),s.__resizeListeners__.push(a)},window.removeResizeListener=function(t,e){t&&(t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(e),1),t.__resizeListeners__.length||(t.removeEventListener("scroll",i),t.__resizeTriggers__=!t.removeChild(t.__resizeTriggers__)))}}(),window.Apex={},function(){function i(t,s){e(this,i),this.opts=s,this.ctx=this,this.w=new k(s).init(),this.el=t,this.w.globals.cuid=(Math.random()+1).toString(36).substring(4),this.w.globals.chartID=this.w.config.chart.id?this.w.config.chart.id:this.w.globals.cuid,this.initModules(),this.create=d.bind(this.create,this),this.windowResizeHandler=this.windowResize.bind(this)}return s(i,[{key:"render",value:function(){var t=this;return new q(function(e,i){if(null!==t.el){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),t.w.config.chart.id&&Apex._chartInstances.push({id:t.w.globals.chartID,group:t.w.config.chart.group,chart:t}),t.setLocale(t.w.config.chart.defaultLocale);var s=t.w.config.chart.events.beforeMount;"function"==typeof s&&s(t,t.w),t.fireEvent("beforeMount",[t,t.w]),window.addEventListener("resize",t.windowResizeHandler),window.addResizeListener(t.el.parentNode,t.parentResizeCallback.bind(t));var a=t.create(t.w.config.series,{});if(!a)return e(t);t.mount(a).then(function(){e(a),"function"==typeof t.w.config.chart.events.mounted&&t.w.config.chart.events.mounted(t,t.w),t.fireEvent("mounted",[t,t.w])}).catch(function(t){i(t)})}else i(new Error("Element not found"))})}},{key:"initModules",value:function(){this.animations=new g(this.ctx),this.annotations=new m(this.ctx),this.core=new _(this.el,this),this.grid=new at(this),this.coreUtils=new b(this),this.config=new y({}),this.crosshairs=new E(this.ctx),this.options=new x,this.responsive=new rt(this.ctx),this.series=new B(this.ctx),this.theme=new ot(this.ctx),this.formatters=new D(this.ctx),this.titleSubtitle=new mt(this.ctx),this.legend=new nt(this.ctx),this.toolbar=new pt(this.ctx),this.dimensions=new V(this.ctx),this.zoomPanSelection=new xt(this.ctx),this.w.globals.tooltip=new ft(this.ctx)}},{key:"addEventListener",value:function(t,e){var i=this.w;i.globals.events.hasOwnProperty(t)?i.globals.events[t].push(e):i.globals.events[t]=[e]}},{key:"removeEventListener",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){var s=i.globals.events[t].indexOf(e);-1!==s&&i.globals.events[t].splice(s,1)}}},{key:"fireEvent",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){e&&e.length||(e=[]);for(var s=i.globals.events[t],a=s.length,n=0;n0&&void 0!==arguments[0]?arguments[0]:null,e=this,i=e.w;return new q(function(s,a){if(null===e.el)return a(new Error("Not enough data to display or target element not found"));if((null===t||i.globals.allSeriesCollapsed)&&e.series.handleNoData(),e.core.drawAxis(i.config.chart.type,t.xyRatios),e.grid=new at(e),"back"===i.config.grid.position&&e.grid.drawGrid(),"back"===i.config.annotations.position&&e.annotations.drawAnnotations(),t.elGraph instanceof Array)for(var n=0;n0&&i.globals.memory.methodsToExec.forEach(function(t){t.method(t.params,!1,t.context)}),s(e)})}},{key:"clearPreviousPaths",value:function(){var t=this.w;t.globals.previousPaths=[],t.globals.allSeriesCollapsed=!1,t.globals.collapsedSeries=[],t.globals.collapsedSeriesIndices=[]}},{key:"updateOptions",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=this.w;return t.series&&(t.series[0].data&&(t.series=t.series.map(function(t,e){return n({},a.config.series[e],{name:t.name?t.name:a.config.series[e].name,type:t.type,data:t.data})})),this.revertDefaultAxisMinMax()),t.xaxis&&((t.xaxis.min||t.xaxis.max)&&this.forceXAxisUpdate(t),t.xaxis.categories&&t.xaxis.categories.length&&a.config.xaxis.convertedCatToNumeric&&(t=v.convertCatToNumeric(t))),a.globals.collapsedSeriesIndices.length>0&&this.clearPreviousPaths(),this._updateOptions(t,e,i,s)}},{key:"_updateOptions",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.getSyncedCharts().forEach(function(n){var r=n.w;return r.globals.shouldAnimate=s,i||(r.globals.resized=!0,r.globals.dataChanged=!0,s&&n.series.getPreviousPaths()),e&&"object"===t(e)&&(n.config=new y(e),e=b.extendArrayProps(n.config,e),r.config=d.extend(r.config,e),a&&(r.globals.lastXAxis=[],r.globals.lastYAxis=[],r.globals.initialConfig=d.extend({},r.config),r.globals.initialSeries=JSON.parse(JSON.stringify(r.config.series)))),n.update(e)})}},{key:"updateSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.revertDefaultAxisMinMax(),this._updateSeries(t,e,i)}},{key:"appendSeries",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.w.config.series.slice();return i.push(t),this.revertDefaultAxisMinMax(),this._updateSeries(i,e)}},{key:"_updateSeries",value:function(t,e){var i,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=this.w;return this.w.globals.shouldAnimate=e,a.globals.dataChanged=!0,a.globals.allSeriesCollapsed&&(a.globals.allSeriesCollapsed=!1),e&&this.series.getPreviousPaths(),t[0].data?(i=t.map(function(t,e){return n({},a.config.series[e],{name:t.name?t.name:a.config.series[e].name,type:t.type,data:t.data})}),a.config.series=i):a.config.series=t.slice(),s&&(a.globals.initialConfig.series=JSON.parse(JSON.stringify(a.config.series)),a.globals.initialSeries=JSON.parse(JSON.stringify(a.config.series))),this.update()}},{key:"getSyncedCharts",value:function(){var t=this.getGroupedCharts(),e=[this];return t.length&&(e=[],t.forEach(function(t){e.push(t)})),e}},{key:"getGroupedCharts",value:function(){var t=this;return Apex._chartInstances.filter(function(t){if(t.group)return!0}).map(function(e){return t.w.config.chart.group===e.group?e.chart:t})}},{key:"appendData",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this;i.w.globals.dataChanged=!0,i.series.getPreviousPaths();for(var s=i.w.config.series.slice(),a=0;a1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,s=this;i&&(s=i),s.annotations.addXaxisAnnotationExternal(t,e,s)}},{key:"addYaxisAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,s=this;i&&(s=i),s.annotations.addYaxisAnnotationExternal(t,e,s)}},{key:"addPointAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,s=this;i&&(s=i),s.annotations.addPointAnnotationExternal(t,e,s)}},{key:"clearAnnotations",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=this;t&&(e=t),e.annotations.clearAnnotations(e)}},{key:"addText",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,s=this;i&&(s=i),s.annotations.addText(t,e,s)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(t,e){return this.coreUtils.getSeriesTotalsXRange(t,e)}},{key:"getHighestValueInSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new W(this.ctx).getMinYMaxY(t).highestY}},{key:"getLowestValueInSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new W(this.ctx).getMinYMaxY(t).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"setLocale",value:function(t){this.setCurrentLocaleValues(t)}},{key:"setCurrentLocaleValues",value:function(t){var e=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(e=this.w.config.chart.locales.concat(window.Apex.chart.locales));var i=e.filter(function(e){return e.name===t})[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var s=d.extend(p,i);this.w.globals.locale=s.options}},{key:"svgUrl",value:function(){return new st(this.ctx).svgUrl()}},{key:"dataURI",value:function(){return new st(this.ctx).dataURI()}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.windowResize()}},{key:"windowResize",value:function(){var t=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout(function(){t.w.globals.resized=!0,t.w.globals.dataChanged=!1,t.update()},150)}}],[{key:"initOnLoad",value:function(){for(var t=document.querySelectorAll("[data-apexcharts]"),e=0;e2?s-2:0),n=2;n 0; + this._pointerEvent = Boolean(window.PointerEvent || window.MSPointerEvent); + + this._addEventListeners(); + } // Getters + + + var _proto = Carousel.prototype; + + // Public + _proto.next = function next() { + if (!this._isSliding) { + this._slide(Direction.NEXT); + } + }; + + _proto.nextWhenVisible = function nextWhenVisible() { + // Don't call next when the page isn't visible + // or the carousel or its parent isn't visible + if (!document.hidden && $(this._element).is(':visible') && $(this._element).css('visibility') !== 'hidden') { + this.next(); + } + }; + + _proto.prev = function prev() { + if (!this._isSliding) { + this._slide(Direction.PREV); + } + }; + + _proto.pause = function pause(event) { + if (!event) { + this._isPaused = true; + } + + if (this._element.querySelector(Selector$2.NEXT_PREV)) { + Util.triggerTransitionEnd(this._element); + this.cycle(true); + } + + clearInterval(this._interval); + this._interval = null; + }; + + _proto.cycle = function cycle(event) { + if (!event) { + this._isPaused = false; + } + + if (this._interval) { + clearInterval(this._interval); + this._interval = null; + } + + if (this._config.interval && !this._isPaused) { + this._interval = setInterval((document.visibilityState ? this.nextWhenVisible : this.next).bind(this), this._config.interval); + } + }; + + _proto.to = function to(index) { + var _this = this; + + this._activeElement = this._element.querySelector(Selector$2.ACTIVE_ITEM); + + var activeIndex = this._getItemIndex(this._activeElement); + + if (index > this._items.length - 1 || index < 0) { + return; + } + + if (this._isSliding) { + $(this._element).one(Event$2.SLID, function () { + return _this.to(index); + }); + return; + } + + if (activeIndex === index) { + this.pause(); + this.cycle(); + return; + } + + var direction = index > activeIndex ? Direction.NEXT : Direction.PREV; + + this._slide(direction, this._items[index]); + }; + + _proto.dispose = function dispose() { + $(this._element).off(EVENT_KEY$2); + $.removeData(this._element, DATA_KEY$2); + this._items = null; + this._config = null; + this._element = null; + this._interval = null; + this._isPaused = null; + this._isSliding = null; + this._activeElement = null; + this._indicatorsElement = null; + } // Private + ; + + _proto._getConfig = function _getConfig(config) { + config = _objectSpread({}, Default, config); + Util.typeCheckConfig(NAME$2, config, DefaultType); + return config; + }; + + _proto._handleSwipe = function _handleSwipe() { + var absDeltax = Math.abs(this.touchDeltaX); + + if (absDeltax <= SWIPE_THRESHOLD) { + return; + } + + var direction = absDeltax / this.touchDeltaX; // swipe left + + if (direction > 0) { + this.prev(); + } // swipe right + + + if (direction < 0) { + this.next(); + } + }; + + _proto._addEventListeners = function _addEventListeners() { + var _this2 = this; + + if (this._config.keyboard) { + $(this._element).on(Event$2.KEYDOWN, function (event) { + return _this2._keydown(event); + }); + } + + if (this._config.pause === 'hover') { + $(this._element).on(Event$2.MOUSEENTER, function (event) { + return _this2.pause(event); + }).on(Event$2.MOUSELEAVE, function (event) { + return _this2.cycle(event); + }); + } + + if (this._config.touch) { + this._addTouchEventListeners(); + } + }; + + _proto._addTouchEventListeners = function _addTouchEventListeners() { + var _this3 = this; + + if (!this._touchSupported) { + return; + } + + var start = function start(event) { + if (_this3._pointerEvent && PointerType[event.originalEvent.pointerType.toUpperCase()]) { + _this3.touchStartX = event.originalEvent.clientX; + } else if (!_this3._pointerEvent) { + _this3.touchStartX = event.originalEvent.touches[0].clientX; + } + }; + + var move = function move(event) { + // ensure swiping with one touch and not pinching + if (event.originalEvent.touches && event.originalEvent.touches.length > 1) { + _this3.touchDeltaX = 0; + } else { + _this3.touchDeltaX = event.originalEvent.touches[0].clientX - _this3.touchStartX; + } + }; + + var end = function end(event) { + if (_this3._pointerEvent && PointerType[event.originalEvent.pointerType.toUpperCase()]) { + _this3.touchDeltaX = event.originalEvent.clientX - _this3.touchStartX; + } + + _this3._handleSwipe(); + + if (_this3._config.pause === 'hover') { + // If it's a touch-enabled device, mouseenter/leave are fired as + // part of the mouse compatibility events on first tap - the carousel + // would stop cycling until user tapped out of it; + // here, we listen for touchend, explicitly pause the carousel + // (as if it's the second time we tap on it, mouseenter compat event + // is NOT fired) and after a timeout (to allow for mouse compatibility + // events to fire) we explicitly restart cycling + _this3.pause(); + + if (_this3.touchTimeout) { + clearTimeout(_this3.touchTimeout); + } + + _this3.touchTimeout = setTimeout(function (event) { + return _this3.cycle(event); + }, TOUCHEVENT_COMPAT_WAIT + _this3._config.interval); + } + }; + + $(this._element.querySelectorAll(Selector$2.ITEM_IMG)).on(Event$2.DRAG_START, function (e) { + return e.preventDefault(); + }); + + if (this._pointerEvent) { + $(this._element).on(Event$2.POINTERDOWN, function (event) { + return start(event); + }); + $(this._element).on(Event$2.POINTERUP, function (event) { + return end(event); + }); + + this._element.classList.add(ClassName$2.POINTER_EVENT); + } else { + $(this._element).on(Event$2.TOUCHSTART, function (event) { + return start(event); + }); + $(this._element).on(Event$2.TOUCHMOVE, function (event) { + return move(event); + }); + $(this._element).on(Event$2.TOUCHEND, function (event) { + return end(event); + }); + } + }; + + _proto._keydown = function _keydown(event) { + if (/input|textarea/i.test(event.target.tagName)) { + return; + } + + switch (event.which) { + case ARROW_LEFT_KEYCODE: + event.preventDefault(); + this.prev(); + break; + + case ARROW_RIGHT_KEYCODE: + event.preventDefault(); + this.next(); + break; + + default: + } + }; + + _proto._getItemIndex = function _getItemIndex(element) { + this._items = element && element.parentNode ? [].slice.call(element.parentNode.querySelectorAll(Selector$2.ITEM)) : []; + return this._items.indexOf(element); + }; + + _proto._getItemByDirection = function _getItemByDirection(direction, activeElement) { + var isNextDirection = direction === Direction.NEXT; + var isPrevDirection = direction === Direction.PREV; + + var activeIndex = this._getItemIndex(activeElement); + + var lastItemIndex = this._items.length - 1; + var isGoingToWrap = isPrevDirection && activeIndex === 0 || isNextDirection && activeIndex === lastItemIndex; + + if (isGoingToWrap && !this._config.wrap) { + return activeElement; + } + + var delta = direction === Direction.PREV ? -1 : 1; + var itemIndex = (activeIndex + delta) % this._items.length; + return itemIndex === -1 ? this._items[this._items.length - 1] : this._items[itemIndex]; + }; + + _proto._triggerSlideEvent = function _triggerSlideEvent(relatedTarget, eventDirectionName) { + var targetIndex = this._getItemIndex(relatedTarget); + + var fromIndex = this._getItemIndex(this._element.querySelector(Selector$2.ACTIVE_ITEM)); + + var slideEvent = $.Event(Event$2.SLIDE, { + relatedTarget: relatedTarget, + direction: eventDirectionName, + from: fromIndex, + to: targetIndex + }); + $(this._element).trigger(slideEvent); + return slideEvent; + }; + + _proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) { + if (this._indicatorsElement) { + var indicators = [].slice.call(this._indicatorsElement.querySelectorAll(Selector$2.ACTIVE)); + $(indicators).removeClass(ClassName$2.ACTIVE); + + var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)]; + + if (nextIndicator) { + $(nextIndicator).addClass(ClassName$2.ACTIVE); + } + } + }; + + _proto._slide = function _slide(direction, element) { + var _this4 = this; + + var activeElement = this._element.querySelector(Selector$2.ACTIVE_ITEM); + + var activeElementIndex = this._getItemIndex(activeElement); + + var nextElement = element || activeElement && this._getItemByDirection(direction, activeElement); + + var nextElementIndex = this._getItemIndex(nextElement); + + var isCycling = Boolean(this._interval); + var directionalClassName; + var orderClassName; + var eventDirectionName; + + if (direction === Direction.NEXT) { + directionalClassName = ClassName$2.LEFT; + orderClassName = ClassName$2.NEXT; + eventDirectionName = Direction.LEFT; + } else { + directionalClassName = ClassName$2.RIGHT; + orderClassName = ClassName$2.PREV; + eventDirectionName = Direction.RIGHT; + } + + if (nextElement && $(nextElement).hasClass(ClassName$2.ACTIVE)) { + this._isSliding = false; + return; + } + + var slideEvent = this._triggerSlideEvent(nextElement, eventDirectionName); + + if (slideEvent.isDefaultPrevented()) { + return; + } + + if (!activeElement || !nextElement) { + // Some weirdness is happening, so we bail + return; + } + + this._isSliding = true; + + if (isCycling) { + this.pause(); + } + + this._setActiveIndicatorElement(nextElement); + + var slidEvent = $.Event(Event$2.SLID, { + relatedTarget: nextElement, + direction: eventDirectionName, + from: activeElementIndex, + to: nextElementIndex + }); + + if ($(this._element).hasClass(ClassName$2.SLIDE)) { + $(nextElement).addClass(orderClassName); + Util.reflow(nextElement); + $(activeElement).addClass(directionalClassName); + $(nextElement).addClass(directionalClassName); + var nextElementInterval = parseInt(nextElement.getAttribute('data-interval'), 10); + + if (nextElementInterval) { + this._config.defaultInterval = this._config.defaultInterval || this._config.interval; + this._config.interval = nextElementInterval; + } else { + this._config.interval = this._config.defaultInterval || this._config.interval; + } + + var transitionDuration = Util.getTransitionDurationFromElement(activeElement); + $(activeElement).one(Util.TRANSITION_END, function () { + $(nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(ClassName$2.ACTIVE); + $(activeElement).removeClass(ClassName$2.ACTIVE + " " + orderClassName + " " + directionalClassName); + _this4._isSliding = false; + setTimeout(function () { + return $(_this4._element).trigger(slidEvent); + }, 0); + }).emulateTransitionEnd(transitionDuration); + } else { + $(activeElement).removeClass(ClassName$2.ACTIVE); + $(nextElement).addClass(ClassName$2.ACTIVE); + this._isSliding = false; + $(this._element).trigger(slidEvent); + } + + if (isCycling) { + this.cycle(); + } + } // Static + ; + + Carousel._jQueryInterface = function _jQueryInterface(config) { + return this.each(function () { + var data = $(this).data(DATA_KEY$2); + + var _config = _objectSpread({}, Default, $(this).data()); + + if (typeof config === 'object') { + _config = _objectSpread({}, _config, config); + } + + var action = typeof config === 'string' ? config : _config.slide; + + if (!data) { + data = new Carousel(this, _config); + $(this).data(DATA_KEY$2, data); + } + + if (typeof config === 'number') { + data.to(config); + } else if (typeof action === 'string') { + if (typeof data[action] === 'undefined') { + throw new TypeError("No method named \"" + action + "\""); + } + + data[action](); + } else if (_config.interval && _config.ride) { + data.pause(); + data.cycle(); + } + }); + }; + + Carousel._dataApiClickHandler = function _dataApiClickHandler(event) { + var selector = Util.getSelectorFromElement(this); + + if (!selector) { + return; + } + + var target = $(selector)[0]; + + if (!target || !$(target).hasClass(ClassName$2.CAROUSEL)) { + return; + } + + var config = _objectSpread({}, $(target).data(), $(this).data()); + + var slideIndex = this.getAttribute('data-slide-to'); + + if (slideIndex) { + config.interval = false; + } + + Carousel._jQueryInterface.call($(target), config); + + if (slideIndex) { + $(target).data(DATA_KEY$2).to(slideIndex); + } + + event.preventDefault(); + }; + + _createClass(Carousel, null, [{ + key: "VERSION", + get: function get() { + return VERSION$2; + } + }, { + key: "Default", + get: function get() { + return Default; + } + }]); + + return Carousel; + }(); + /** + * ------------------------------------------------------------------------ + * Data Api implementation + * ------------------------------------------------------------------------ + */ + + + $(document).on(Event$2.CLICK_DATA_API, Selector$2.DATA_SLIDE, Carousel._dataApiClickHandler); + $(window).on(Event$2.LOAD_DATA_API, function () { + var carousels = [].slice.call(document.querySelectorAll(Selector$2.DATA_RIDE)); + + for (var i = 0, len = carousels.length; i < len; i++) { + var $carousel = $(carousels[i]); + + Carousel._jQueryInterface.call($carousel, $carousel.data()); + } + }); + /** + * ------------------------------------------------------------------------ + * jQuery + * ------------------------------------------------------------------------ + */ + + $.fn[NAME$2] = Carousel._jQueryInterface; + $.fn[NAME$2].Constructor = Carousel; + + $.fn[NAME$2].noConflict = function () { + $.fn[NAME$2] = JQUERY_NO_CONFLICT$2; + return Carousel._jQueryInterface; + }; + + /** + * ------------------------------------------------------------------------ + * Constants + * ------------------------------------------------------------------------ + */ + + var NAME$3 = 'collapse'; + var VERSION$3 = '4.3.1'; + var DATA_KEY$3 = 'bs.collapse'; + var EVENT_KEY$3 = "." + DATA_KEY$3; + var DATA_API_KEY$3 = '.data-api'; + var JQUERY_NO_CONFLICT$3 = $.fn[NAME$3]; + var Default$1 = { + toggle: true, + parent: '' + }; + var DefaultType$1 = { + toggle: 'boolean', + parent: '(string|element)' + }; + var Event$3 = { + SHOW: "show" + EVENT_KEY$3, + SHOWN: "shown" + EVENT_KEY$3, + HIDE: "hide" + EVENT_KEY$3, + HIDDEN: "hidden" + EVENT_KEY$3, + CLICK_DATA_API: "click" + EVENT_KEY$3 + DATA_API_KEY$3 + }; + var ClassName$3 = { + SHOW: 'show', + COLLAPSE: 'collapse', + COLLAPSING: 'collapsing', + COLLAPSED: 'collapsed' + }; + var Dimension = { + WIDTH: 'width', + HEIGHT: 'height' + }; + var Selector$3 = { + ACTIVES: '.show, .collapsing', + DATA_TOGGLE: '[data-toggle="collapse"]' + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + + }; + + var Collapse = + /*#__PURE__*/ + function () { + function Collapse(element, config) { + this._isTransitioning = false; + this._element = element; + this._config = this._getConfig(config); + this._triggerArray = [].slice.call(document.querySelectorAll("[data-toggle=\"collapse\"][href=\"#" + element.id + "\"]," + ("[data-toggle=\"collapse\"][data-target=\"#" + element.id + "\"]"))); + var toggleList = [].slice.call(document.querySelectorAll(Selector$3.DATA_TOGGLE)); + + for (var i = 0, len = toggleList.length; i < len; i++) { + var elem = toggleList[i]; + var selector = Util.getSelectorFromElement(elem); + var filterElement = [].slice.call(document.querySelectorAll(selector)).filter(function (foundElem) { + return foundElem === element; + }); + + if (selector !== null && filterElement.length > 0) { + this._selector = selector; + + this._triggerArray.push(elem); + } + } + + this._parent = this._config.parent ? this._getParent() : null; + + if (!this._config.parent) { + this._addAriaAndCollapsedClass(this._element, this._triggerArray); + } + + if (this._config.toggle) { + this.toggle(); + } + } // Getters + + + var _proto = Collapse.prototype; + + // Public + _proto.toggle = function toggle() { + if ($(this._element).hasClass(ClassName$3.SHOW)) { + this.hide(); + } else { + this.show(); + } + }; + + _proto.show = function show() { + var _this = this; + + if (this._isTransitioning || $(this._element).hasClass(ClassName$3.SHOW)) { + return; + } + + var actives; + var activesData; + + if (this._parent) { + actives = [].slice.call(this._parent.querySelectorAll(Selector$3.ACTIVES)).filter(function (elem) { + if (typeof _this._config.parent === 'string') { + return elem.getAttribute('data-parent') === _this._config.parent; + } + + return elem.classList.contains(ClassName$3.COLLAPSE); + }); + + if (actives.length === 0) { + actives = null; + } + } + + if (actives) { + activesData = $(actives).not(this._selector).data(DATA_KEY$3); + + if (activesData && activesData._isTransitioning) { + return; + } + } + + var startEvent = $.Event(Event$3.SHOW); + $(this._element).trigger(startEvent); + + if (startEvent.isDefaultPrevented()) { + return; + } + + if (actives) { + Collapse._jQueryInterface.call($(actives).not(this._selector), 'hide'); + + if (!activesData) { + $(actives).data(DATA_KEY$3, null); + } + } + + var dimension = this._getDimension(); + + $(this._element).removeClass(ClassName$3.COLLAPSE).addClass(ClassName$3.COLLAPSING); + this._element.style[dimension] = 0; + + if (this._triggerArray.length) { + $(this._triggerArray).removeClass(ClassName$3.COLLAPSED).attr('aria-expanded', true); + } + + this.setTransitioning(true); + + var complete = function complete() { + $(_this._element).removeClass(ClassName$3.COLLAPSING).addClass(ClassName$3.COLLAPSE).addClass(ClassName$3.SHOW); + _this._element.style[dimension] = ''; + + _this.setTransitioning(false); + + $(_this._element).trigger(Event$3.SHOWN); + }; + + var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1); + var scrollSize = "scroll" + capitalizedDimension; + var transitionDuration = Util.getTransitionDurationFromElement(this._element); + $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); + this._element.style[dimension] = this._element[scrollSize] + "px"; + }; + + _proto.hide = function hide() { + var _this2 = this; + + if (this._isTransitioning || !$(this._element).hasClass(ClassName$3.SHOW)) { + return; + } + + var startEvent = $.Event(Event$3.HIDE); + $(this._element).trigger(startEvent); + + if (startEvent.isDefaultPrevented()) { + return; + } + + var dimension = this._getDimension(); + + this._element.style[dimension] = this._element.getBoundingClientRect()[dimension] + "px"; + Util.reflow(this._element); + $(this._element).addClass(ClassName$3.COLLAPSING).removeClass(ClassName$3.COLLAPSE).removeClass(ClassName$3.SHOW); + var triggerArrayLength = this._triggerArray.length; + + if (triggerArrayLength > 0) { + for (var i = 0; i < triggerArrayLength; i++) { + var trigger = this._triggerArray[i]; + var selector = Util.getSelectorFromElement(trigger); + + if (selector !== null) { + var $elem = $([].slice.call(document.querySelectorAll(selector))); + + if (!$elem.hasClass(ClassName$3.SHOW)) { + $(trigger).addClass(ClassName$3.COLLAPSED).attr('aria-expanded', false); + } + } + } + } + + this.setTransitioning(true); + + var complete = function complete() { + _this2.setTransitioning(false); + + $(_this2._element).removeClass(ClassName$3.COLLAPSING).addClass(ClassName$3.COLLAPSE).trigger(Event$3.HIDDEN); + }; + + this._element.style[dimension] = ''; + var transitionDuration = Util.getTransitionDurationFromElement(this._element); + $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); + }; + + _proto.setTransitioning = function setTransitioning(isTransitioning) { + this._isTransitioning = isTransitioning; + }; + + _proto.dispose = function dispose() { + $.removeData(this._element, DATA_KEY$3); + this._config = null; + this._parent = null; + this._element = null; + this._triggerArray = null; + this._isTransitioning = null; + } // Private + ; + + _proto._getConfig = function _getConfig(config) { + config = _objectSpread({}, Default$1, config); + config.toggle = Boolean(config.toggle); // Coerce string values + + Util.typeCheckConfig(NAME$3, config, DefaultType$1); + return config; + }; + + _proto._getDimension = function _getDimension() { + var hasWidth = $(this._element).hasClass(Dimension.WIDTH); + return hasWidth ? Dimension.WIDTH : Dimension.HEIGHT; + }; + + _proto._getParent = function _getParent() { + var _this3 = this; + + var parent; + + if (Util.isElement(this._config.parent)) { + parent = this._config.parent; // It's a jQuery object + + if (typeof this._config.parent.jquery !== 'undefined') { + parent = this._config.parent[0]; + } + } else { + parent = document.querySelector(this._config.parent); + } + + var selector = "[data-toggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]"; + var children = [].slice.call(parent.querySelectorAll(selector)); + $(children).each(function (i, element) { + _this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]); + }); + return parent; + }; + + _proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) { + var isOpen = $(element).hasClass(ClassName$3.SHOW); + + if (triggerArray.length) { + $(triggerArray).toggleClass(ClassName$3.COLLAPSED, !isOpen).attr('aria-expanded', isOpen); + } + } // Static + ; + + Collapse._getTargetFromElement = function _getTargetFromElement(element) { + var selector = Util.getSelectorFromElement(element); + return selector ? document.querySelector(selector) : null; + }; + + Collapse._jQueryInterface = function _jQueryInterface(config) { + return this.each(function () { + var $this = $(this); + var data = $this.data(DATA_KEY$3); + + var _config = _objectSpread({}, Default$1, $this.data(), typeof config === 'object' && config ? config : {}); + + if (!data && _config.toggle && /show|hide/.test(config)) { + _config.toggle = false; + } + + if (!data) { + data = new Collapse(this, _config); + $this.data(DATA_KEY$3, data); + } + + if (typeof config === 'string') { + if (typeof data[config] === 'undefined') { + throw new TypeError("No method named \"" + config + "\""); + } + + data[config](); + } + }); + }; + + _createClass(Collapse, null, [{ + key: "VERSION", + get: function get() { + return VERSION$3; + } + }, { + key: "Default", + get: function get() { + return Default$1; + } + }]); + + return Collapse; + }(); + /** + * ------------------------------------------------------------------------ + * Data Api implementation + * ------------------------------------------------------------------------ + */ + + + $(document).on(Event$3.CLICK_DATA_API, Selector$3.DATA_TOGGLE, function (event) { + // preventDefault only for elements (which change the URL) not inside the collapsible element + if (event.currentTarget.tagName === 'A') { + event.preventDefault(); + } + + var $trigger = $(this); + var selector = Util.getSelectorFromElement(this); + var selectors = [].slice.call(document.querySelectorAll(selector)); + $(selectors).each(function () { + var $target = $(this); + var data = $target.data(DATA_KEY$3); + var config = data ? 'toggle' : $trigger.data(); + + Collapse._jQueryInterface.call($target, config); + }); + }); + /** + * ------------------------------------------------------------------------ + * jQuery + * ------------------------------------------------------------------------ + */ + + $.fn[NAME$3] = Collapse._jQueryInterface; + $.fn[NAME$3].Constructor = Collapse; + + $.fn[NAME$3].noConflict = function () { + $.fn[NAME$3] = JQUERY_NO_CONFLICT$3; + return Collapse._jQueryInterface; + }; + + /**! + * @fileOverview Kickass library to create and place poppers near their reference elements. + * @version 1.14.7 + * @license + * Copyright (c) 2016 Federico Zivolo and contributors + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined'; + + var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox']; + var timeoutDuration = 0; + for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) { + if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) { + timeoutDuration = 1; + break; + } + } + + function microtaskDebounce(fn) { + var called = false; + return function () { + if (called) { + return; + } + called = true; + window.Promise.resolve().then(function () { + called = false; + fn(); + }); + }; + } + + function taskDebounce(fn) { + var scheduled = false; + return function () { + if (!scheduled) { + scheduled = true; + setTimeout(function () { + scheduled = false; + fn(); + }, timeoutDuration); + } + }; + } + + var supportsMicroTasks = isBrowser && window.Promise; + + /** + * Create a debounced version of a method, that's asynchronously deferred + * but called in the minimum time possible. + * + * @method + * @memberof Popper.Utils + * @argument {Function} fn + * @returns {Function} + */ + var debounce = supportsMicroTasks ? microtaskDebounce : taskDebounce; + + /** + * Check if the given variable is a function + * @method + * @memberof Popper.Utils + * @argument {Any} functionToCheck - variable to check + * @returns {Boolean} answer to: is a function? + */ + function isFunction(functionToCheck) { + var getType = {}; + return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'; + } + + /** + * Get CSS computed property of the given element + * @method + * @memberof Popper.Utils + * @argument {Eement} element + * @argument {String} property + */ + function getStyleComputedProperty(element, property) { + if (element.nodeType !== 1) { + return []; + } + // NOTE: 1 DOM access here + var window = element.ownerDocument.defaultView; + var css = window.getComputedStyle(element, null); + return property ? css[property] : css; + } + + /** + * Returns the parentNode or the host of the element + * @method + * @memberof Popper.Utils + * @argument {Element} element + * @returns {Element} parent + */ + function getParentNode(element) { + if (element.nodeName === 'HTML') { + return element; + } + return element.parentNode || element.host; + } + + /** + * Returns the scrolling parent of the given element + * @method + * @memberof Popper.Utils + * @argument {Element} element + * @returns {Element} scroll parent + */ + function getScrollParent(element) { + // Return body, `getScroll` will take care to get the correct `scrollTop` from it + if (!element) { + return document.body; + } + + switch (element.nodeName) { + case 'HTML': + case 'BODY': + return element.ownerDocument.body; + case '#document': + return element.body; + } + + // Firefox want us to check `-x` and `-y` variations as well + + var _getStyleComputedProp = getStyleComputedProperty(element), + overflow = _getStyleComputedProp.overflow, + overflowX = _getStyleComputedProp.overflowX, + overflowY = _getStyleComputedProp.overflowY; + + if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) { + return element; + } + + return getScrollParent(getParentNode(element)); + } + + var isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode); + var isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent); + + /** + * Determines if the browser is Internet Explorer + * @method + * @memberof Popper.Utils + * @param {Number} version to check + * @returns {Boolean} isIE + */ + function isIE(version) { + if (version === 11) { + return isIE11; + } + if (version === 10) { + return isIE10; + } + return isIE11 || isIE10; + } + + /** + * Returns the offset parent of the given element + * @method + * @memberof Popper.Utils + * @argument {Element} element + * @returns {Element} offset parent + */ + function getOffsetParent(element) { + if (!element) { + return document.documentElement; + } + + var noOffsetParent = isIE(10) ? document.body : null; + + // NOTE: 1 DOM access here + var offsetParent = element.offsetParent || null; + // Skip hidden elements which don't have an offsetParent + while (offsetParent === noOffsetParent && element.nextElementSibling) { + offsetParent = (element = element.nextElementSibling).offsetParent; + } + + var nodeName = offsetParent && offsetParent.nodeName; + + if (!nodeName || nodeName === 'BODY' || nodeName === 'HTML') { + return element ? element.ownerDocument.documentElement : document.documentElement; + } + + // .offsetParent will return the closest TH, TD or TABLE in case + // no offsetParent is present, I hate this job... + if (['TH', 'TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') { + return getOffsetParent(offsetParent); + } + + return offsetParent; + } + + function isOffsetContainer(element) { + var nodeName = element.nodeName; + + if (nodeName === 'BODY') { + return false; + } + return nodeName === 'HTML' || getOffsetParent(element.firstElementChild) === element; + } + + /** + * Finds the root node (document, shadowDOM root) of the given element + * @method + * @memberof Popper.Utils + * @argument {Element} node + * @returns {Element} root node + */ + function getRoot(node) { + if (node.parentNode !== null) { + return getRoot(node.parentNode); + } + + return node; + } + + /** + * Finds the offset parent common to the two provided nodes + * @method + * @memberof Popper.Utils + * @argument {Element} element1 + * @argument {Element} element2 + * @returns {Element} common offset parent + */ + function findCommonOffsetParent(element1, element2) { + // This check is needed to avoid errors in case one of the elements isn't defined for any reason + if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) { + return document.documentElement; + } + + // Here we make sure to give as "start" the element that comes first in the DOM + var order = element1.compareDocumentPosition(element2) & Node.DOCUMENT_POSITION_FOLLOWING; + var start = order ? element1 : element2; + var end = order ? element2 : element1; + + // Get common ancestor container + var range = document.createRange(); + range.setStart(start, 0); + range.setEnd(end, 0); + var commonAncestorContainer = range.commonAncestorContainer; + + // Both nodes are inside #document + + if (element1 !== commonAncestorContainer && element2 !== commonAncestorContainer || start.contains(end)) { + if (isOffsetContainer(commonAncestorContainer)) { + return commonAncestorContainer; + } + + return getOffsetParent(commonAncestorContainer); + } + + // one of the nodes is inside shadowDOM, find which one + var element1root = getRoot(element1); + if (element1root.host) { + return findCommonOffsetParent(element1root.host, element2); + } else { + return findCommonOffsetParent(element1, getRoot(element2).host); + } + } + + /** + * Gets the scroll value of the given element in the given side (top and left) + * @method + * @memberof Popper.Utils + * @argument {Element} element + * @argument {String} side `top` or `left` + * @returns {number} amount of scrolled pixels + */ + function getScroll(element) { + var side = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top'; + + var upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft'; + var nodeName = element.nodeName; + + if (nodeName === 'BODY' || nodeName === 'HTML') { + var html = element.ownerDocument.documentElement; + var scrollingElement = element.ownerDocument.scrollingElement || html; + return scrollingElement[upperSide]; + } + + return element[upperSide]; + } + + /* + * Sum or subtract the element scroll values (left and top) from a given rect object + * @method + * @memberof Popper.Utils + * @param {Object} rect - Rect object you want to change + * @param {HTMLElement} element - The element from the function reads the scroll values + * @param {Boolean} subtract - set to true if you want to subtract the scroll values + * @return {Object} rect - The modifier rect object + */ + function includeScroll(rect, element) { + var subtract = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; + + var scrollTop = getScroll(element, 'top'); + var scrollLeft = getScroll(element, 'left'); + var modifier = subtract ? -1 : 1; + rect.top += scrollTop * modifier; + rect.bottom += scrollTop * modifier; + rect.left += scrollLeft * modifier; + rect.right += scrollLeft * modifier; + return rect; + } + + /* + * Helper to detect borders of a given element + * @method + * @memberof Popper.Utils + * @param {CSSStyleDeclaration} styles + * Result of `getStyleComputedProperty` on the given element + * @param {String} axis - `x` or `y` + * @return {number} borders - The borders size of the given axis + */ + + function getBordersSize(styles, axis) { + var sideA = axis === 'x' ? 'Left' : 'Top'; + var sideB = sideA === 'Left' ? 'Right' : 'Bottom'; + + return parseFloat(styles['border' + sideA + 'Width'], 10) + parseFloat(styles['border' + sideB + 'Width'], 10); + } + + function getSize(axis, body, html, computedStyle) { + return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? parseInt(html['offset' + axis]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')]) : 0); + } + + function getWindowSizes(document) { + var body = document.body; + var html = document.documentElement; + var computedStyle = isIE(10) && getComputedStyle(html); + + return { + height: getSize('Height', body, html, computedStyle), + width: getSize('Width', body, html, computedStyle) + }; + } + + var classCallCheck = function (instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + }; + + var createClass = function () { + function defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + + return function (Constructor, protoProps, staticProps) { + if (protoProps) defineProperties(Constructor.prototype, protoProps); + if (staticProps) defineProperties(Constructor, staticProps); + return Constructor; + }; + }(); + + + + + + var defineProperty = function (obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + + return obj; + }; + + var _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + + return target; + }; + + /** + * Given element offsets, generate an output similar to getBoundingClientRect + * @method + * @memberof Popper.Utils + * @argument {Object} offsets + * @returns {Object} ClientRect like output + */ + function getClientRect(offsets) { + return _extends({}, offsets, { + right: offsets.left + offsets.width, + bottom: offsets.top + offsets.height + }); + } + + /** + * Get bounding client rect of given element + * @method + * @memberof Popper.Utils + * @param {HTMLElement} element + * @return {Object} client rect + */ + function getBoundingClientRect(element) { + var rect = {}; + + // IE10 10 FIX: Please, don't ask, the element isn't + // considered in DOM in some circumstances... + // This isn't reproducible in IE10 compatibility mode of IE11 + try { + if (isIE(10)) { + rect = element.getBoundingClientRect(); + var scrollTop = getScroll(element, 'top'); + var scrollLeft = getScroll(element, 'left'); + rect.top += scrollTop; + rect.left += scrollLeft; + rect.bottom += scrollTop; + rect.right += scrollLeft; + } else { + rect = element.getBoundingClientRect(); + } + } catch (e) {} + + var result = { + left: rect.left, + top: rect.top, + width: rect.right - rect.left, + height: rect.bottom - rect.top + }; + + // subtract scrollbar size from sizes + var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {}; + var width = sizes.width || element.clientWidth || result.right - result.left; + var height = sizes.height || element.clientHeight || result.bottom - result.top; + + var horizScrollbar = element.offsetWidth - width; + var vertScrollbar = element.offsetHeight - height; + + // if an hypothetical scrollbar is detected, we must be sure it's not a `border` + // we make this check conditional for performance reasons + if (horizScrollbar || vertScrollbar) { + var styles = getStyleComputedProperty(element); + horizScrollbar -= getBordersSize(styles, 'x'); + vertScrollbar -= getBordersSize(styles, 'y'); + + result.width -= horizScrollbar; + result.height -= vertScrollbar; + } + + return getClientRect(result); + } + + function getOffsetRectRelativeToArbitraryNode(children, parent) { + var fixedPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; + + var isIE10 = isIE(10); + var isHTML = parent.nodeName === 'HTML'; + var childrenRect = getBoundingClientRect(children); + var parentRect = getBoundingClientRect(parent); + var scrollParent = getScrollParent(children); + + var styles = getStyleComputedProperty(parent); + var borderTopWidth = parseFloat(styles.borderTopWidth, 10); + var borderLeftWidth = parseFloat(styles.borderLeftWidth, 10); + + // In cases where the parent is fixed, we must ignore negative scroll in offset calc + if (fixedPosition && isHTML) { + parentRect.top = Math.max(parentRect.top, 0); + parentRect.left = Math.max(parentRect.left, 0); + } + var offsets = getClientRect({ + top: childrenRect.top - parentRect.top - borderTopWidth, + left: childrenRect.left - parentRect.left - borderLeftWidth, + width: childrenRect.width, + height: childrenRect.height + }); + offsets.marginTop = 0; + offsets.marginLeft = 0; + + // Subtract margins of documentElement in case it's being used as parent + // we do this only on HTML because it's the only element that behaves + // differently when margins are applied to it. The margins are included in + // the box of the documentElement, in the other cases not. + if (!isIE10 && isHTML) { + var marginTop = parseFloat(styles.marginTop, 10); + var marginLeft = parseFloat(styles.marginLeft, 10); + + offsets.top -= borderTopWidth - marginTop; + offsets.bottom -= borderTopWidth - marginTop; + offsets.left -= borderLeftWidth - marginLeft; + offsets.right -= borderLeftWidth - marginLeft; + + // Attach marginTop and marginLeft because in some circumstances we may need them + offsets.marginTop = marginTop; + offsets.marginLeft = marginLeft; + } + + if (isIE10 && !fixedPosition ? parent.contains(scrollParent) : parent === scrollParent && scrollParent.nodeName !== 'BODY') { + offsets = includeScroll(offsets, parent); + } + + return offsets; + } + + function getViewportOffsetRectRelativeToArtbitraryNode(element) { + var excludeScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + + var html = element.ownerDocument.documentElement; + var relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html); + var width = Math.max(html.clientWidth, window.innerWidth || 0); + var height = Math.max(html.clientHeight, window.innerHeight || 0); + + var scrollTop = !excludeScroll ? getScroll(html) : 0; + var scrollLeft = !excludeScroll ? getScroll(html, 'left') : 0; + + var offset = { + top: scrollTop - relativeOffset.top + relativeOffset.marginTop, + left: scrollLeft - relativeOffset.left + relativeOffset.marginLeft, + width: width, + height: height + }; + + return getClientRect(offset); + } + + /** + * Check if the given element is fixed or is inside a fixed parent + * @method + * @memberof Popper.Utils + * @argument {Element} element + * @argument {Element} customContainer + * @returns {Boolean} answer to "isFixed?" + */ + function isFixed(element) { + var nodeName = element.nodeName; + if (nodeName === 'BODY' || nodeName === 'HTML') { + return false; + } + if (getStyleComputedProperty(element, 'position') === 'fixed') { + return true; + } + var parentNode = getParentNode(element); + if (!parentNode) { + return false; + } + return isFixed(parentNode); + } + + /** + * Finds the first parent of an element that has a transformed property defined + * @method + * @memberof Popper.Utils + * @argument {Element} element + * @returns {Element} first transformed parent or documentElement + */ + + function getFixedPositionOffsetParent(element) { + // This check is needed to avoid errors in case one of the elements isn't defined for any reason + if (!element || !element.parentElement || isIE()) { + return document.documentElement; + } + var el = element.parentElement; + while (el && getStyleComputedProperty(el, 'transform') === 'none') { + el = el.parentElement; + } + return el || document.documentElement; + } + + /** + * Computed the boundaries limits and return them + * @method + * @memberof Popper.Utils + * @param {HTMLElement} popper + * @param {HTMLElement} reference + * @param {number} padding + * @param {HTMLElement} boundariesElement - Element used to define the boundaries + * @param {Boolean} fixedPosition - Is in fixed position mode + * @returns {Object} Coordinates of the boundaries + */ + function getBoundaries(popper, reference, padding, boundariesElement) { + var fixedPosition = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false; + + // NOTE: 1 DOM access here + + var boundaries = { top: 0, left: 0 }; + var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, reference); + + // Handle viewport case + if (boundariesElement === 'viewport') { + boundaries = getViewportOffsetRectRelativeToArtbitraryNode(offsetParent, fixedPosition); + } else { + // Handle other cases based on DOM element used as boundaries + var boundariesNode = void 0; + if (boundariesElement === 'scrollParent') { + boundariesNode = getScrollParent(getParentNode(reference)); + if (boundariesNode.nodeName === 'BODY') { + boundariesNode = popper.ownerDocument.documentElement; + } + } else if (boundariesElement === 'window') { + boundariesNode = popper.ownerDocument.documentElement; + } else { + boundariesNode = boundariesElement; + } + + var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition); + + // In case of HTML, we need a different computation + if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) { + var _getWindowSizes = getWindowSizes(popper.ownerDocument), + height = _getWindowSizes.height, + width = _getWindowSizes.width; + + boundaries.top += offsets.top - offsets.marginTop; + boundaries.bottom = height + offsets.top; + boundaries.left += offsets.left - offsets.marginLeft; + boundaries.right = width + offsets.left; + } else { + // for all the other DOM elements, this one is good + boundaries = offsets; + } + } + + // Add paddings + padding = padding || 0; + var isPaddingNumber = typeof padding === 'number'; + boundaries.left += isPaddingNumber ? padding : padding.left || 0; + boundaries.top += isPaddingNumber ? padding : padding.top || 0; + boundaries.right -= isPaddingNumber ? padding : padding.right || 0; + boundaries.bottom -= isPaddingNumber ? padding : padding.bottom || 0; + + return boundaries; + } + + function getArea(_ref) { + var width = _ref.width, + height = _ref.height; + + return width * height; + } + + /** + * Utility used to transform the `auto` placement to the placement with more + * available space. + * @method + * @memberof Popper.Utils + * @argument {Object} data - The data object generated by update method + * @argument {Object} options - Modifiers configuration and options + * @returns {Object} The data object, properly modified + */ + function computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) { + var padding = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0; + + if (placement.indexOf('auto') === -1) { + return placement; + } + + var boundaries = getBoundaries(popper, reference, padding, boundariesElement); + + var rects = { + top: { + width: boundaries.width, + height: refRect.top - boundaries.top + }, + right: { + width: boundaries.right - refRect.right, + height: boundaries.height + }, + bottom: { + width: boundaries.width, + height: boundaries.bottom - refRect.bottom + }, + left: { + width: refRect.left - boundaries.left, + height: boundaries.height + } + }; + + var sortedAreas = Object.keys(rects).map(function (key) { + return _extends({ + key: key + }, rects[key], { + area: getArea(rects[key]) + }); + }).sort(function (a, b) { + return b.area - a.area; + }); + + var filteredAreas = sortedAreas.filter(function (_ref2) { + var width = _ref2.width, + height = _ref2.height; + return width >= popper.clientWidth && height >= popper.clientHeight; + }); + + var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key; + + var variation = placement.split('-')[1]; + + return computedPlacement + (variation ? '-' + variation : ''); + } + + /** + * Get offsets to the reference element + * @method + * @memberof Popper.Utils + * @param {Object} state + * @param {Element} popper - the popper element + * @param {Element} reference - the reference element (the popper will be relative to this) + * @param {Element} fixedPosition - is in fixed position mode + * @returns {Object} An object containing the offsets which will be applied to the popper + */ + function getReferenceOffsets(state, popper, reference) { + var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; + + var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, reference); + return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition); + } + + /** + * Get the outer sizes of the given element (offset size + margins) + * @method + * @memberof Popper.Utils + * @argument {Element} element + * @returns {Object} object containing width and height properties + */ + function getOuterSizes(element) { + var window = element.ownerDocument.defaultView; + var styles = window.getComputedStyle(element); + var x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0); + var y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0); + var result = { + width: element.offsetWidth + y, + height: element.offsetHeight + x + }; + return result; + } + + /** + * Get the opposite placement of the given one + * @method + * @memberof Popper.Utils + * @argument {String} placement + * @returns {String} flipped placement + */ + function getOppositePlacement(placement) { + var hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' }; + return placement.replace(/left|right|bottom|top/g, function (matched) { + return hash[matched]; + }); + } + + /** + * Get offsets to the popper + * @method + * @memberof Popper.Utils + * @param {Object} position - CSS position the Popper will get applied + * @param {HTMLElement} popper - the popper element + * @param {Object} referenceOffsets - the reference offsets (the popper will be relative to this) + * @param {String} placement - one of the valid placement options + * @returns {Object} popperOffsets - An object containing the offsets which will be applied to the popper + */ + function getPopperOffsets(popper, referenceOffsets, placement) { + placement = placement.split('-')[0]; + + // Get popper node sizes + var popperRect = getOuterSizes(popper); + + // Add position, width and height to our offsets object + var popperOffsets = { + width: popperRect.width, + height: popperRect.height + }; + + // depending by the popper placement we have to compute its offsets slightly differently + var isHoriz = ['right', 'left'].indexOf(placement) !== -1; + var mainSide = isHoriz ? 'top' : 'left'; + var secondarySide = isHoriz ? 'left' : 'top'; + var measurement = isHoriz ? 'height' : 'width'; + var secondaryMeasurement = !isHoriz ? 'height' : 'width'; + + popperOffsets[mainSide] = referenceOffsets[mainSide] + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2; + if (placement === secondarySide) { + popperOffsets[secondarySide] = referenceOffsets[secondarySide] - popperRect[secondaryMeasurement]; + } else { + popperOffsets[secondarySide] = referenceOffsets[getOppositePlacement(secondarySide)]; + } + + return popperOffsets; + } + + /** + * Mimics the `find` method of Array + * @method + * @memberof Popper.Utils + * @argument {Array} arr + * @argument prop + * @argument value + * @returns index or -1 + */ + function find(arr, check) { + // use native find if supported + if (Array.prototype.find) { + return arr.find(check); + } + + // use `filter` to obtain the same behavior of `find` + return arr.filter(check)[0]; + } + + /** + * Return the index of the matching object + * @method + * @memberof Popper.Utils + * @argument {Array} arr + * @argument prop + * @argument value + * @returns index or -1 + */ + function findIndex(arr, prop, value) { + // use native findIndex if supported + if (Array.prototype.findIndex) { + return arr.findIndex(function (cur) { + return cur[prop] === value; + }); + } + + // use `find` + `indexOf` if `findIndex` isn't supported + var match = find(arr, function (obj) { + return obj[prop] === value; + }); + return arr.indexOf(match); + } + + /** + * Loop trough the list of modifiers and run them in order, + * each of them will then edit the data object. + * @method + * @memberof Popper.Utils + * @param {dataObject} data + * @param {Array} modifiers + * @param {String} ends - Optional modifier name used as stopper + * @returns {dataObject} + */ + function runModifiers(modifiers, data, ends) { + var modifiersToRun = ends === undefined ? modifiers : modifiers.slice(0, findIndex(modifiers, 'name', ends)); + + modifiersToRun.forEach(function (modifier) { + if (modifier['function']) { + // eslint-disable-line dot-notation + console.warn('`modifier.function` is deprecated, use `modifier.fn`!'); + } + var fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation + if (modifier.enabled && isFunction(fn)) { + // Add properties to offsets to make them a complete clientRect object + // we do this before each modifier to make sure the previous one doesn't + // mess with these values + data.offsets.popper = getClientRect(data.offsets.popper); + data.offsets.reference = getClientRect(data.offsets.reference); + + data = fn(data, modifier); + } + }); + + return data; + } + + /** + * Updates the position of the popper, computing the new offsets and applying + * the new style.
+ * Prefer `scheduleUpdate` over `update` because of performance reasons. + * @method + * @memberof Popper + */ + function update() { + // if popper is destroyed, don't perform any further update + if (this.state.isDestroyed) { + return; + } + + var data = { + instance: this, + styles: {}, + arrowStyles: {}, + attributes: {}, + flipped: false, + offsets: {} + }; + + // compute reference element offsets + data.offsets.reference = getReferenceOffsets(this.state, this.popper, this.reference, this.options.positionFixed); + + // compute auto placement, store placement inside the data object, + // modifiers will be able to edit `placement` if needed + // and refer to originalPlacement to know the original value + data.placement = computeAutoPlacement(this.options.placement, data.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding); + + // store the computed placement inside `originalPlacement` + data.originalPlacement = data.placement; + + data.positionFixed = this.options.positionFixed; + + // compute the popper offsets + data.offsets.popper = getPopperOffsets(this.popper, data.offsets.reference, data.placement); + + data.offsets.popper.position = this.options.positionFixed ? 'fixed' : 'absolute'; + + // run the modifiers + data = runModifiers(this.modifiers, data); + + // the first `update` will call `onCreate` callback + // the other ones will call `onUpdate` callback + if (!this.state.isCreated) { + this.state.isCreated = true; + this.options.onCreate(data); + } else { + this.options.onUpdate(data); + } + } + + /** + * Helper used to know if the given modifier is enabled. + * @method + * @memberof Popper.Utils + * @returns {Boolean} + */ + function isModifierEnabled(modifiers, modifierName) { + return modifiers.some(function (_ref) { + var name = _ref.name, + enabled = _ref.enabled; + return enabled && name === modifierName; + }); + } + + /** + * Get the prefixed supported property name + * @method + * @memberof Popper.Utils + * @argument {String} property (camelCase) + * @returns {String} prefixed property (camelCase or PascalCase, depending on the vendor prefix) + */ + function getSupportedPropertyName(property) { + var prefixes = [false, 'ms', 'Webkit', 'Moz', 'O']; + var upperProp = property.charAt(0).toUpperCase() + property.slice(1); + + for (var i = 0; i < prefixes.length; i++) { + var prefix = prefixes[i]; + var toCheck = prefix ? '' + prefix + upperProp : property; + if (typeof document.body.style[toCheck] !== 'undefined') { + return toCheck; + } + } + return null; + } + + /** + * Destroys the popper. + * @method + * @memberof Popper + */ + function destroy() { + this.state.isDestroyed = true; + + // touch DOM only if `applyStyle` modifier is enabled + if (isModifierEnabled(this.modifiers, 'applyStyle')) { + this.popper.removeAttribute('x-placement'); + this.popper.style.position = ''; + this.popper.style.top = ''; + this.popper.style.left = ''; + this.popper.style.right = ''; + this.popper.style.bottom = ''; + this.popper.style.willChange = ''; + this.popper.style[getSupportedPropertyName('transform')] = ''; + } + + this.disableEventListeners(); + + // remove the popper if user explicity asked for the deletion on destroy + // do not use `remove` because IE11 doesn't support it + if (this.options.removeOnDestroy) { + this.popper.parentNode.removeChild(this.popper); + } + return this; + } + + /** + * Get the window associated with the element + * @argument {Element} element + * @returns {Window} + */ + function getWindow(element) { + var ownerDocument = element.ownerDocument; + return ownerDocument ? ownerDocument.defaultView : window; + } + + function attachToScrollParents(scrollParent, event, callback, scrollParents) { + var isBody = scrollParent.nodeName === 'BODY'; + var target = isBody ? scrollParent.ownerDocument.defaultView : scrollParent; + target.addEventListener(event, callback, { passive: true }); + + if (!isBody) { + attachToScrollParents(getScrollParent(target.parentNode), event, callback, scrollParents); + } + scrollParents.push(target); + } + + /** + * Setup needed event listeners used to update the popper position + * @method + * @memberof Popper.Utils + * @private + */ + function setupEventListeners(reference, options, state, updateBound) { + // Resize event listener on window + state.updateBound = updateBound; + getWindow(reference).addEventListener('resize', state.updateBound, { passive: true }); + + // Scroll event listener on scroll parents + var scrollElement = getScrollParent(reference); + attachToScrollParents(scrollElement, 'scroll', state.updateBound, state.scrollParents); + state.scrollElement = scrollElement; + state.eventsEnabled = true; + + return state; + } + + /** + * It will add resize/scroll events and start recalculating + * position of the popper element when they are triggered. + * @method + * @memberof Popper + */ + function enableEventListeners() { + if (!this.state.eventsEnabled) { + this.state = setupEventListeners(this.reference, this.options, this.state, this.scheduleUpdate); + } + } + + /** + * Remove event listeners used to update the popper position + * @method + * @memberof Popper.Utils + * @private + */ + function removeEventListeners(reference, state) { + // Remove resize event listener on window + getWindow(reference).removeEventListener('resize', state.updateBound); + + // Remove scroll event listener on scroll parents + state.scrollParents.forEach(function (target) { + target.removeEventListener('scroll', state.updateBound); + }); + + // Reset state + state.updateBound = null; + state.scrollParents = []; + state.scrollElement = null; + state.eventsEnabled = false; + return state; + } + + /** + * It will remove resize/scroll events and won't recalculate popper position + * when they are triggered. It also won't trigger `onUpdate` callback anymore, + * unless you call `update` method manually. + * @method + * @memberof Popper + */ + function disableEventListeners() { + if (this.state.eventsEnabled) { + cancelAnimationFrame(this.scheduleUpdate); + this.state = removeEventListeners(this.reference, this.state); + } + } + + /** + * Tells if a given input is a number + * @method + * @memberof Popper.Utils + * @param {*} input to check + * @return {Boolean} + */ + function isNumeric(n) { + return n !== '' && !isNaN(parseFloat(n)) && isFinite(n); + } + + /** + * Set the style to the given popper + * @method + * @memberof Popper.Utils + * @argument {Element} element - Element to apply the style to + * @argument {Object} styles + * Object with a list of properties and values which will be applied to the element + */ + function setStyles(element, styles) { + Object.keys(styles).forEach(function (prop) { + var unit = ''; + // add unit if the value is numeric and is one of the following + if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && isNumeric(styles[prop])) { + unit = 'px'; + } + element.style[prop] = styles[prop] + unit; + }); + } + + /** + * Set the attributes to the given popper + * @method + * @memberof Popper.Utils + * @argument {Element} element - Element to apply the attributes to + * @argument {Object} styles + * Object with a list of properties and values which will be applied to the element + */ + function setAttributes(element, attributes) { + Object.keys(attributes).forEach(function (prop) { + var value = attributes[prop]; + if (value !== false) { + element.setAttribute(prop, attributes[prop]); + } else { + element.removeAttribute(prop); + } + }); + } + + /** + * @function + * @memberof Modifiers + * @argument {Object} data - The data object generated by `update` method + * @argument {Object} data.styles - List of style properties - values to apply to popper element + * @argument {Object} data.attributes - List of attribute properties - values to apply to popper element + * @argument {Object} options - Modifiers configuration and options + * @returns {Object} The same data object + */ + function applyStyle(data) { + // any property present in `data.styles` will be applied to the popper, + // in this way we can make the 3rd party modifiers add custom styles to it + // Be aware, modifiers could override the properties defined in the previous + // lines of this modifier! + setStyles(data.instance.popper, data.styles); + + // any property present in `data.attributes` will be applied to the popper, + // they will be set as HTML attributes of the element + setAttributes(data.instance.popper, data.attributes); + + // if arrowElement is defined and arrowStyles has some properties + if (data.arrowElement && Object.keys(data.arrowStyles).length) { + setStyles(data.arrowElement, data.arrowStyles); + } + + return data; + } + + /** + * Set the x-placement attribute before everything else because it could be used + * to add margins to the popper margins needs to be calculated to get the + * correct popper offsets. + * @method + * @memberof Popper.modifiers + * @param {HTMLElement} reference - The reference element used to position the popper + * @param {HTMLElement} popper - The HTML element used as popper + * @param {Object} options - Popper.js options + */ + function applyStyleOnLoad(reference, popper, options, modifierOptions, state) { + // compute reference element offsets + var referenceOffsets = getReferenceOffsets(state, popper, reference, options.positionFixed); + + // compute auto placement, store placement inside the data object, + // modifiers will be able to edit `placement` if needed + // and refer to originalPlacement to know the original value + var placement = computeAutoPlacement(options.placement, referenceOffsets, popper, reference, options.modifiers.flip.boundariesElement, options.modifiers.flip.padding); + + popper.setAttribute('x-placement', placement); + + // Apply `position` to popper before anything else because + // without the position applied we can't guarantee correct computations + setStyles(popper, { position: options.positionFixed ? 'fixed' : 'absolute' }); + + return options; + } + + /** + * @function + * @memberof Popper.Utils + * @argument {Object} data - The data object generated by `update` method + * @argument {Boolean} shouldRound - If the offsets should be rounded at all + * @returns {Object} The popper's position offsets rounded + * + * The tale of pixel-perfect positioning. It's still not 100% perfect, but as + * good as it can be within reason. + * Discussion here: https://github.com/FezVrasta/popper.js/pull/715 + * + * Low DPI screens cause a popper to be blurry if not using full pixels (Safari + * as well on High DPI screens). + * + * Firefox prefers no rounding for positioning and does not have blurriness on + * high DPI screens. + * + * Only horizontal placement and left/right values need to be considered. + */ + function getRoundedOffsets(data, shouldRound) { + var _data$offsets = data.offsets, + popper = _data$offsets.popper, + reference = _data$offsets.reference; + var round = Math.round, + floor = Math.floor; + + var noRound = function noRound(v) { + return v; + }; + + var referenceWidth = round(reference.width); + var popperWidth = round(popper.width); + + var isVertical = ['left', 'right'].indexOf(data.placement) !== -1; + var isVariation = data.placement.indexOf('-') !== -1; + var sameWidthParity = referenceWidth % 2 === popperWidth % 2; + var bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1; + + var horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity ? round : floor; + var verticalToInteger = !shouldRound ? noRound : round; + + return { + left: horizontalToInteger(bothOddWidth && !isVariation && shouldRound ? popper.left - 1 : popper.left), + top: verticalToInteger(popper.top), + bottom: verticalToInteger(popper.bottom), + right: horizontalToInteger(popper.right) + }; + } + + var isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent); + + /** + * @function + * @memberof Modifiers + * @argument {Object} data - The data object generated by `update` method + * @argument {Object} options - Modifiers configuration and options + * @returns {Object} The data object, properly modified + */ + function computeStyle(data, options) { + var x = options.x, + y = options.y; + var popper = data.offsets.popper; + + // Remove this legacy support in Popper.js v2 + + var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) { + return modifier.name === 'applyStyle'; + }).gpuAcceleration; + if (legacyGpuAccelerationOption !== undefined) { + console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!'); + } + var gpuAcceleration = legacyGpuAccelerationOption !== undefined ? legacyGpuAccelerationOption : options.gpuAcceleration; + + var offsetParent = getOffsetParent(data.instance.popper); + var offsetParentRect = getBoundingClientRect(offsetParent); + + // Styles + var styles = { + position: popper.position + }; + + var offsets = getRoundedOffsets(data, window.devicePixelRatio < 2 || !isFirefox); + + var sideA = x === 'bottom' ? 'top' : 'bottom'; + var sideB = y === 'right' ? 'left' : 'right'; + + // if gpuAcceleration is set to `true` and transform is supported, + // we use `translate3d` to apply the position to the popper we + // automatically use the supported prefixed version if needed + var prefixedProperty = getSupportedPropertyName('transform'); + + // now, let's make a step back and look at this code closely (wtf?) + // If the content of the popper grows once it's been positioned, it + // may happen that the popper gets misplaced because of the new content + // overflowing its reference element + // To avoid this problem, we provide two options (x and y), which allow + // the consumer to define the offset origin. + // If we position a popper on top of a reference element, we can set + // `x` to `top` to make the popper grow towards its top instead of + // its bottom. + var left = void 0, + top = void 0; + if (sideA === 'bottom') { + // when offsetParent is the positioning is relative to the bottom of the screen (excluding the scrollbar) + // and not the bottom of the html element + if (offsetParent.nodeName === 'HTML') { + top = -offsetParent.clientHeight + offsets.bottom; + } else { + top = -offsetParentRect.height + offsets.bottom; + } + } else { + top = offsets.top; + } + if (sideB === 'right') { + if (offsetParent.nodeName === 'HTML') { + left = -offsetParent.clientWidth + offsets.right; + } else { + left = -offsetParentRect.width + offsets.right; + } + } else { + left = offsets.left; + } + if (gpuAcceleration && prefixedProperty) { + styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)'; + styles[sideA] = 0; + styles[sideB] = 0; + styles.willChange = 'transform'; + } else { + // othwerise, we use the standard `top`, `left`, `bottom` and `right` properties + var invertTop = sideA === 'bottom' ? -1 : 1; + var invertLeft = sideB === 'right' ? -1 : 1; + styles[sideA] = top * invertTop; + styles[sideB] = left * invertLeft; + styles.willChange = sideA + ', ' + sideB; + } + + // Attributes + var attributes = { + 'x-placement': data.placement + }; + + // Update `data` attributes, styles and arrowStyles + data.attributes = _extends({}, attributes, data.attributes); + data.styles = _extends({}, styles, data.styles); + data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles); + + return data; + } + + /** + * Helper used to know if the given modifier depends from another one.
+ * It checks if the needed modifier is listed and enabled. + * @method + * @memberof Popper.Utils + * @param {Array} modifiers - list of modifiers + * @param {String} requestingName - name of requesting modifier + * @param {String} requestedName - name of requested modifier + * @returns {Boolean} + */ + function isModifierRequired(modifiers, requestingName, requestedName) { + var requesting = find(modifiers, function (_ref) { + var name = _ref.name; + return name === requestingName; + }); + + var isRequired = !!requesting && modifiers.some(function (modifier) { + return modifier.name === requestedName && modifier.enabled && modifier.order < requesting.order; + }); + + if (!isRequired) { + var _requesting = '`' + requestingName + '`'; + var requested = '`' + requestedName + '`'; + console.warn(requested + ' modifier is required by ' + _requesting + ' modifier in order to work, be sure to include it before ' + _requesting + '!'); + } + return isRequired; + } + + /** + * @function + * @memberof Modifiers + * @argument {Object} data - The data object generated by update method + * @argument {Object} options - Modifiers configuration and options + * @returns {Object} The data object, properly modified + */ + function arrow(data, options) { + var _data$offsets$arrow; + + // arrow depends on keepTogether in order to work + if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) { + return data; + } + + var arrowElement = options.element; + + // if arrowElement is a string, suppose it's a CSS selector + if (typeof arrowElement === 'string') { + arrowElement = data.instance.popper.querySelector(arrowElement); + + // if arrowElement is not found, don't run the modifier + if (!arrowElement) { + return data; + } + } else { + // if the arrowElement isn't a query selector we must check that the + // provided DOM node is child of its popper node + if (!data.instance.popper.contains(arrowElement)) { + console.warn('WARNING: `arrow.element` must be child of its popper element!'); + return data; + } + } + + var placement = data.placement.split('-')[0]; + var _data$offsets = data.offsets, + popper = _data$offsets.popper, + reference = _data$offsets.reference; + + var isVertical = ['left', 'right'].indexOf(placement) !== -1; + + var len = isVertical ? 'height' : 'width'; + var sideCapitalized = isVertical ? 'Top' : 'Left'; + var side = sideCapitalized.toLowerCase(); + var altSide = isVertical ? 'left' : 'top'; + var opSide = isVertical ? 'bottom' : 'right'; + var arrowElementSize = getOuterSizes(arrowElement)[len]; + + // + // extends keepTogether behavior making sure the popper and its + // reference have enough pixels in conjunction + // + + // top/left side + if (reference[opSide] - arrowElementSize < popper[side]) { + data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowElementSize); + } + // bottom/right side + if (reference[side] + arrowElementSize > popper[opSide]) { + data.offsets.popper[side] += reference[side] + arrowElementSize - popper[opSide]; + } + data.offsets.popper = getClientRect(data.offsets.popper); + + // compute center of the popper + var center = reference[side] + reference[len] / 2 - arrowElementSize / 2; + + // Compute the sideValue using the updated popper offsets + // take popper margin in account because we don't have this info available + var css = getStyleComputedProperty(data.instance.popper); + var popperMarginSide = parseFloat(css['margin' + sideCapitalized], 10); + var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width'], 10); + var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide; + + // prevent arrowElement from being placed not contiguously to its popper + sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0); + + data.arrowElement = arrowElement; + data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty(_data$offsets$arrow, altSide, ''), _data$offsets$arrow); + + return data; + } + + /** + * Get the opposite placement variation of the given one + * @method + * @memberof Popper.Utils + * @argument {String} placement variation + * @returns {String} flipped placement variation + */ + function getOppositeVariation(variation) { + if (variation === 'end') { + return 'start'; + } else if (variation === 'start') { + return 'end'; + } + return variation; + } + + /** + * List of accepted placements to use as values of the `placement` option.
+ * Valid placements are: + * - `auto` + * - `top` + * - `right` + * - `bottom` + * - `left` + * + * Each placement can have a variation from this list: + * - `-start` + * - `-end` + * + * Variations are interpreted easily if you think of them as the left to right + * written languages. Horizontally (`top` and `bottom`), `start` is left and `end` + * is right.
+ * Vertically (`left` and `right`), `start` is top and `end` is bottom. + * + * Some valid examples are: + * - `top-end` (on top of reference, right aligned) + * - `right-start` (on right of reference, top aligned) + * - `bottom` (on bottom, centered) + * - `auto-end` (on the side with more space available, alignment depends by placement) + * + * @static + * @type {Array} + * @enum {String} + * @readonly + * @method placements + * @memberof Popper + */ + var placements = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start']; + + // Get rid of `auto` `auto-start` and `auto-end` + var validPlacements = placements.slice(3); + + /** + * Given an initial placement, returns all the subsequent placements + * clockwise (or counter-clockwise). + * + * @method + * @memberof Popper.Utils + * @argument {String} placement - A valid placement (it accepts variations) + * @argument {Boolean} counter - Set to true to walk the placements counterclockwise + * @returns {Array} placements including their variations + */ + function clockwise(placement) { + var counter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; + + var index = validPlacements.indexOf(placement); + var arr = validPlacements.slice(index + 1).concat(validPlacements.slice(0, index)); + return counter ? arr.reverse() : arr; + } + + var BEHAVIORS = { + FLIP: 'flip', + CLOCKWISE: 'clockwise', + COUNTERCLOCKWISE: 'counterclockwise' + }; + + /** + * @function + * @memberof Modifiers + * @argument {Object} data - The data object generated by update method + * @argument {Object} options - Modifiers configuration and options + * @returns {Object} The data object, properly modified + */ + function flip(data, options) { + // if `inner` modifier is enabled, we can't use the `flip` modifier + if (isModifierEnabled(data.instance.modifiers, 'inner')) { + return data; + } + + if (data.flipped && data.placement === data.originalPlacement) { + // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides + return data; + } + + var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, options.boundariesElement, data.positionFixed); + + var placement = data.placement.split('-')[0]; + var placementOpposite = getOppositePlacement(placement); + var variation = data.placement.split('-')[1] || ''; + + var flipOrder = []; + + switch (options.behavior) { + case BEHAVIORS.FLIP: + flipOrder = [placement, placementOpposite]; + break; + case BEHAVIORS.CLOCKWISE: + flipOrder = clockwise(placement); + break; + case BEHAVIORS.COUNTERCLOCKWISE: + flipOrder = clockwise(placement, true); + break; + default: + flipOrder = options.behavior; + } + + flipOrder.forEach(function (step, index) { + if (placement !== step || flipOrder.length === index + 1) { + return data; + } + + placement = data.placement.split('-')[0]; + placementOpposite = getOppositePlacement(placement); + + var popperOffsets = data.offsets.popper; + var refOffsets = data.offsets.reference; + + // using floor because the reference offsets may contain decimals we are not going to consider here + var floor = Math.floor; + var overlapsRef = placement === 'left' && floor(popperOffsets.right) > floor(refOffsets.left) || placement === 'right' && floor(popperOffsets.left) < floor(refOffsets.right) || placement === 'top' && floor(popperOffsets.bottom) > floor(refOffsets.top) || placement === 'bottom' && floor(popperOffsets.top) < floor(refOffsets.bottom); + + var overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left); + var overflowsRight = floor(popperOffsets.right) > floor(boundaries.right); + var overflowsTop = floor(popperOffsets.top) < floor(boundaries.top); + var overflowsBottom = floor(popperOffsets.bottom) > floor(boundaries.bottom); + + var overflowsBoundaries = placement === 'left' && overflowsLeft || placement === 'right' && overflowsRight || placement === 'top' && overflowsTop || placement === 'bottom' && overflowsBottom; + + // flip the variation if required + var isVertical = ['top', 'bottom'].indexOf(placement) !== -1; + var flippedVariation = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom); + + if (overlapsRef || overflowsBoundaries || flippedVariation) { + // this boolean to detect any flip loop + data.flipped = true; + + if (overlapsRef || overflowsBoundaries) { + placement = flipOrder[index + 1]; + } + + if (flippedVariation) { + variation = getOppositeVariation(variation); + } + + data.placement = placement + (variation ? '-' + variation : ''); + + // this object contains `position`, we want to preserve it along with + // any additional property we may add in the future + data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement)); + + data = runModifiers(data.instance.modifiers, data, 'flip'); + } + }); + return data; + } + + /** + * @function + * @memberof Modifiers + * @argument {Object} data - The data object generated by update method + * @argument {Object} options - Modifiers configuration and options + * @returns {Object} The data object, properly modified + */ + function keepTogether(data) { + var _data$offsets = data.offsets, + popper = _data$offsets.popper, + reference = _data$offsets.reference; + + var placement = data.placement.split('-')[0]; + var floor = Math.floor; + var isVertical = ['top', 'bottom'].indexOf(placement) !== -1; + var side = isVertical ? 'right' : 'bottom'; + var opSide = isVertical ? 'left' : 'top'; + var measurement = isVertical ? 'width' : 'height'; + + if (popper[side] < floor(reference[opSide])) { + data.offsets.popper[opSide] = floor(reference[opSide]) - popper[measurement]; + } + if (popper[opSide] > floor(reference[side])) { + data.offsets.popper[opSide] = floor(reference[side]); + } + + return data; + } + + /** + * Converts a string containing value + unit into a px value number + * @function + * @memberof {modifiers~offset} + * @private + * @argument {String} str - Value + unit string + * @argument {String} measurement - `height` or `width` + * @argument {Object} popperOffsets + * @argument {Object} referenceOffsets + * @returns {Number|String} + * Value in pixels, or original string if no values were extracted + */ + function toValue(str, measurement, popperOffsets, referenceOffsets) { + // separate value from unit + var split = str.match(/((?:\-|\+)?\d*\.?\d*)(.*)/); + var value = +split[1]; + var unit = split[2]; + + // If it's not a number it's an operator, I guess + if (!value) { + return str; + } + + if (unit.indexOf('%') === 0) { + var element = void 0; + switch (unit) { + case '%p': + element = popperOffsets; + break; + case '%': + case '%r': + default: + element = referenceOffsets; + } + + var rect = getClientRect(element); + return rect[measurement] / 100 * value; + } else if (unit === 'vh' || unit === 'vw') { + // if is a vh or vw, we calculate the size based on the viewport + var size = void 0; + if (unit === 'vh') { + size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); + } else { + size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0); + } + return size / 100 * value; + } else { + // if is an explicit pixel unit, we get rid of the unit and keep the value + // if is an implicit unit, it's px, and we return just the value + return value; + } + } + + /** + * Parse an `offset` string to extrapolate `x` and `y` numeric offsets. + * @function + * @memberof {modifiers~offset} + * @private + * @argument {String} offset + * @argument {Object} popperOffsets + * @argument {Object} referenceOffsets + * @argument {String} basePlacement + * @returns {Array} a two cells array with x and y offsets in numbers + */ + function parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) { + var offsets = [0, 0]; + + // Use height if placement is left or right and index is 0 otherwise use width + // in this way the first offset will use an axis and the second one + // will use the other one + var useHeight = ['right', 'left'].indexOf(basePlacement) !== -1; + + // Split the offset string to obtain a list of values and operands + // The regex addresses values with the plus or minus sign in front (+10, -20, etc) + var fragments = offset.split(/(\+|\-)/).map(function (frag) { + return frag.trim(); + }); + + // Detect if the offset string contains a pair of values or a single one + // they could be separated by comma or space + var divider = fragments.indexOf(find(fragments, function (frag) { + return frag.search(/,|\s/) !== -1; + })); + + if (fragments[divider] && fragments[divider].indexOf(',') === -1) { + console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.'); + } + + // If divider is found, we divide the list of values and operands to divide + // them by ofset X and Y. + var splitRegex = /\s*,\s*|\s+/; + var ops = divider !== -1 ? [fragments.slice(0, divider).concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider + 1))] : [fragments]; + + // Convert the values with units to absolute pixels to allow our computations + ops = ops.map(function (op, index) { + // Most of the units rely on the orientation of the popper + var measurement = (index === 1 ? !useHeight : useHeight) ? 'height' : 'width'; + var mergeWithPrevious = false; + return op + // This aggregates any `+` or `-` sign that aren't considered operators + // e.g.: 10 + +5 => [10, +, +5] + .reduce(function (a, b) { + if (a[a.length - 1] === '' && ['+', '-'].indexOf(b) !== -1) { + a[a.length - 1] = b; + mergeWithPrevious = true; + return a; + } else if (mergeWithPrevious) { + a[a.length - 1] += b; + mergeWithPrevious = false; + return a; + } else { + return a.concat(b); + } + }, []) + // Here we convert the string values into number values (in px) + .map(function (str) { + return toValue(str, measurement, popperOffsets, referenceOffsets); + }); + }); + + // Loop trough the offsets arrays and execute the operations + ops.forEach(function (op, index) { + op.forEach(function (frag, index2) { + if (isNumeric(frag)) { + offsets[index] += frag * (op[index2 - 1] === '-' ? -1 : 1); + } + }); + }); + return offsets; + } + + /** + * @function + * @memberof Modifiers + * @argument {Object} data - The data object generated by update method + * @argument {Object} options - Modifiers configuration and options + * @argument {Number|String} options.offset=0 + * The offset value as described in the modifier description + * @returns {Object} The data object, properly modified + */ + function offset(data, _ref) { + var offset = _ref.offset; + var placement = data.placement, + _data$offsets = data.offsets, + popper = _data$offsets.popper, + reference = _data$offsets.reference; + + var basePlacement = placement.split('-')[0]; + + var offsets = void 0; + if (isNumeric(+offset)) { + offsets = [+offset, 0]; + } else { + offsets = parseOffset(offset, popper, reference, basePlacement); + } + + if (basePlacement === 'left') { + popper.top += offsets[0]; + popper.left -= offsets[1]; + } else if (basePlacement === 'right') { + popper.top += offsets[0]; + popper.left += offsets[1]; + } else if (basePlacement === 'top') { + popper.left += offsets[0]; + popper.top -= offsets[1]; + } else if (basePlacement === 'bottom') { + popper.left += offsets[0]; + popper.top += offsets[1]; + } + + data.popper = popper; + return data; + } + + /** + * @function + * @memberof Modifiers + * @argument {Object} data - The data object generated by `update` method + * @argument {Object} options - Modifiers configuration and options + * @returns {Object} The data object, properly modified + */ + function preventOverflow(data, options) { + var boundariesElement = options.boundariesElement || getOffsetParent(data.instance.popper); + + // If offsetParent is the reference element, we really want to + // go one step up and use the next offsetParent as reference to + // avoid to make this modifier completely useless and look like broken + if (data.instance.reference === boundariesElement) { + boundariesElement = getOffsetParent(boundariesElement); + } + + // NOTE: DOM access here + // resets the popper's position so that the document size can be calculated excluding + // the size of the popper element itself + var transformProp = getSupportedPropertyName('transform'); + var popperStyles = data.instance.popper.style; // assignment to help minification + var top = popperStyles.top, + left = popperStyles.left, + transform = popperStyles[transformProp]; + + popperStyles.top = ''; + popperStyles.left = ''; + popperStyles[transformProp] = ''; + + var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, boundariesElement, data.positionFixed); + + // NOTE: DOM access here + // restores the original style properties after the offsets have been computed + popperStyles.top = top; + popperStyles.left = left; + popperStyles[transformProp] = transform; + + options.boundaries = boundaries; + + var order = options.priority; + var popper = data.offsets.popper; + + var check = { + primary: function primary(placement) { + var value = popper[placement]; + if (popper[placement] < boundaries[placement] && !options.escapeWithReference) { + value = Math.max(popper[placement], boundaries[placement]); + } + return defineProperty({}, placement, value); + }, + secondary: function secondary(placement) { + var mainSide = placement === 'right' ? 'left' : 'top'; + var value = popper[mainSide]; + if (popper[placement] > boundaries[placement] && !options.escapeWithReference) { + value = Math.min(popper[mainSide], boundaries[placement] - (placement === 'right' ? popper.width : popper.height)); + } + return defineProperty({}, mainSide, value); + } + }; + + order.forEach(function (placement) { + var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary'; + popper = _extends({}, popper, check[side](placement)); + }); + + data.offsets.popper = popper; + + return data; + } + + /** + * @function + * @memberof Modifiers + * @argument {Object} data - The data object generated by `update` method + * @argument {Object} options - Modifiers configuration and options + * @returns {Object} The data object, properly modified + */ + function shift(data) { + var placement = data.placement; + var basePlacement = placement.split('-')[0]; + var shiftvariation = placement.split('-')[1]; + + // if shift shiftvariation is specified, run the modifier + if (shiftvariation) { + var _data$offsets = data.offsets, + reference = _data$offsets.reference, + popper = _data$offsets.popper; + + var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1; + var side = isVertical ? 'left' : 'top'; + var measurement = isVertical ? 'width' : 'height'; + + var shiftOffsets = { + start: defineProperty({}, side, reference[side]), + end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement]) + }; + + data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]); + } + + return data; + } + + /** + * @function + * @memberof Modifiers + * @argument {Object} data - The data object generated by update method + * @argument {Object} options - Modifiers configuration and options + * @returns {Object} The data object, properly modified + */ + function hide(data) { + if (!isModifierRequired(data.instance.modifiers, 'hide', 'preventOverflow')) { + return data; + } + + var refRect = data.offsets.reference; + var bound = find(data.instance.modifiers, function (modifier) { + return modifier.name === 'preventOverflow'; + }).boundaries; + + if (refRect.bottom < bound.top || refRect.left > bound.right || refRect.top > bound.bottom || refRect.right < bound.left) { + // Avoid unnecessary DOM access if visibility hasn't changed + if (data.hide === true) { + return data; + } + + data.hide = true; + data.attributes['x-out-of-boundaries'] = ''; + } else { + // Avoid unnecessary DOM access if visibility hasn't changed + if (data.hide === false) { + return data; + } + + data.hide = false; + data.attributes['x-out-of-boundaries'] = false; + } + + return data; + } + + /** + * @function + * @memberof Modifiers + * @argument {Object} data - The data object generated by `update` method + * @argument {Object} options - Modifiers configuration and options + * @returns {Object} The data object, properly modified + */ + function inner(data) { + var placement = data.placement; + var basePlacement = placement.split('-')[0]; + var _data$offsets = data.offsets, + popper = _data$offsets.popper, + reference = _data$offsets.reference; + + var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1; + + var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1; + + popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0); + + data.placement = getOppositePlacement(placement); + data.offsets.popper = getClientRect(popper); + + return data; + } + + /** + * Modifier function, each modifier can have a function of this type assigned + * to its `fn` property.
+ * These functions will be called on each update, this means that you must + * make sure they are performant enough to avoid performance bottlenecks. + * + * @function ModifierFn + * @argument {dataObject} data - The data object generated by `update` method + * @argument {Object} options - Modifiers configuration and options + * @returns {dataObject} The data object, properly modified + */ + + /** + * Modifiers are plugins used to alter the behavior of your poppers.
+ * Popper.js uses a set of 9 modifiers to provide all the basic functionalities + * needed by the library. + * + * Usually you don't want to override the `order`, `fn` and `onLoad` props. + * All the other properties are configurations that could be tweaked. + * @namespace modifiers + */ + var modifiers = { + /** + * Modifier used to shift the popper on the start or end of its reference + * element.
+ * It will read the variation of the `placement` property.
+ * It can be one either `-end` or `-start`. + * @memberof modifiers + * @inner + */ + shift: { + /** @prop {number} order=100 - Index used to define the order of execution */ + order: 100, + /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ + enabled: true, + /** @prop {ModifierFn} */ + fn: shift + }, + + /** + * The `offset` modifier can shift your popper on both its axis. + * + * It accepts the following units: + * - `px` or unit-less, interpreted as pixels + * - `%` or `%r`, percentage relative to the length of the reference element + * - `%p`, percentage relative to the length of the popper element + * - `vw`, CSS viewport width unit + * - `vh`, CSS viewport height unit + * + * For length is intended the main axis relative to the placement of the popper.
+ * This means that if the placement is `top` or `bottom`, the length will be the + * `width`. In case of `left` or `right`, it will be the `height`. + * + * You can provide a single value (as `Number` or `String`), or a pair of values + * as `String` divided by a comma or one (or more) white spaces.
+ * The latter is a deprecated method because it leads to confusion and will be + * removed in v2.
+ * Additionally, it accepts additions and subtractions between different units. + * Note that multiplications and divisions aren't supported. + * + * Valid examples are: + * ``` + * 10 + * '10%' + * '10, 10' + * '10%, 10' + * '10 + 10%' + * '10 - 5vh + 3%' + * '-10px + 5vh, 5px - 6%' + * ``` + * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap + * > with their reference element, unfortunately, you will have to disable the `flip` modifier. + * > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373). + * + * @memberof modifiers + * @inner + */ + offset: { + /** @prop {number} order=200 - Index used to define the order of execution */ + order: 200, + /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ + enabled: true, + /** @prop {ModifierFn} */ + fn: offset, + /** @prop {Number|String} offset=0 + * The offset value as described in the modifier description + */ + offset: 0 + }, + + /** + * Modifier used to prevent the popper from being positioned outside the boundary. + * + * A scenario exists where the reference itself is not within the boundaries.
+ * We can say it has "escaped the boundaries" — or just "escaped".
+ * In this case we need to decide whether the popper should either: + * + * - detach from the reference and remain "trapped" in the boundaries, or + * - if it should ignore the boundary and "escape with its reference" + * + * When `escapeWithReference` is set to`true` and reference is completely + * outside its boundaries, the popper will overflow (or completely leave) + * the boundaries in order to remain attached to the edge of the reference. + * + * @memberof modifiers + * @inner + */ + preventOverflow: { + /** @prop {number} order=300 - Index used to define the order of execution */ + order: 300, + /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ + enabled: true, + /** @prop {ModifierFn} */ + fn: preventOverflow, + /** + * @prop {Array} [priority=['left','right','top','bottom']] + * Popper will try to prevent overflow following these priorities by default, + * then, it could overflow on the left and on top of the `boundariesElement` + */ + priority: ['left', 'right', 'top', 'bottom'], + /** + * @prop {number} padding=5 + * Amount of pixel used to define a minimum distance between the boundaries + * and the popper. This makes sure the popper always has a little padding + * between the edges of its container + */ + padding: 5, + /** + * @prop {String|HTMLElement} boundariesElement='scrollParent' + * Boundaries used by the modifier. Can be `scrollParent`, `window`, + * `viewport` or any DOM element. + */ + boundariesElement: 'scrollParent' + }, + + /** + * Modifier used to make sure the reference and its popper stay near each other + * without leaving any gap between the two. Especially useful when the arrow is + * enabled and you want to ensure that it points to its reference element. + * It cares only about the first axis. You can still have poppers with margin + * between the popper and its reference element. + * @memberof modifiers + * @inner + */ + keepTogether: { + /** @prop {number} order=400 - Index used to define the order of execution */ + order: 400, + /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ + enabled: true, + /** @prop {ModifierFn} */ + fn: keepTogether + }, + + /** + * This modifier is used to move the `arrowElement` of the popper to make + * sure it is positioned between the reference element and its popper element. + * It will read the outer size of the `arrowElement` node to detect how many + * pixels of conjunction are needed. + * + * It has no effect if no `arrowElement` is provided. + * @memberof modifiers + * @inner + */ + arrow: { + /** @prop {number} order=500 - Index used to define the order of execution */ + order: 500, + /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ + enabled: true, + /** @prop {ModifierFn} */ + fn: arrow, + /** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */ + element: '[x-arrow]' + }, + + /** + * Modifier used to flip the popper's placement when it starts to overlap its + * reference element. + * + * Requires the `preventOverflow` modifier before it in order to work. + * + * **NOTE:** this modifier will interrupt the current update cycle and will + * restart it if it detects the need to flip the placement. + * @memberof modifiers + * @inner + */ + flip: { + /** @prop {number} order=600 - Index used to define the order of execution */ + order: 600, + /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ + enabled: true, + /** @prop {ModifierFn} */ + fn: flip, + /** + * @prop {String|Array} behavior='flip' + * The behavior used to change the popper's placement. It can be one of + * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid + * placements (with optional variations) + */ + behavior: 'flip', + /** + * @prop {number} padding=5 + * The popper will flip if it hits the edges of the `boundariesElement` + */ + padding: 5, + /** + * @prop {String|HTMLElement} boundariesElement='viewport' + * The element which will define the boundaries of the popper position. + * The popper will never be placed outside of the defined boundaries + * (except if `keepTogether` is enabled) + */ + boundariesElement: 'viewport' + }, + + /** + * Modifier used to make the popper flow toward the inner of the reference element. + * By default, when this modifier is disabled, the popper will be placed outside + * the reference element. + * @memberof modifiers + * @inner + */ + inner: { + /** @prop {number} order=700 - Index used to define the order of execution */ + order: 700, + /** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */ + enabled: false, + /** @prop {ModifierFn} */ + fn: inner + }, + + /** + * Modifier used to hide the popper when its reference element is outside of the + * popper boundaries. It will set a `x-out-of-boundaries` attribute which can + * be used to hide with a CSS selector the popper when its reference is + * out of boundaries. + * + * Requires the `preventOverflow` modifier before it in order to work. + * @memberof modifiers + * @inner + */ + hide: { + /** @prop {number} order=800 - Index used to define the order of execution */ + order: 800, + /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ + enabled: true, + /** @prop {ModifierFn} */ + fn: hide + }, + + /** + * Computes the style that will be applied to the popper element to gets + * properly positioned. + * + * Note that this modifier will not touch the DOM, it just prepares the styles + * so that `applyStyle` modifier can apply it. This separation is useful + * in case you need to replace `applyStyle` with a custom implementation. + * + * This modifier has `850` as `order` value to maintain backward compatibility + * with previous versions of Popper.js. Expect the modifiers ordering method + * to change in future major versions of the library. + * + * @memberof modifiers + * @inner + */ + computeStyle: { + /** @prop {number} order=850 - Index used to define the order of execution */ + order: 850, + /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ + enabled: true, + /** @prop {ModifierFn} */ + fn: computeStyle, + /** + * @prop {Boolean} gpuAcceleration=true + * If true, it uses the CSS 3D transformation to position the popper. + * Otherwise, it will use the `top` and `left` properties + */ + gpuAcceleration: true, + /** + * @prop {string} [x='bottom'] + * Where to anchor the X axis (`bottom` or `top`). AKA X offset origin. + * Change this if your popper should grow in a direction different from `bottom` + */ + x: 'bottom', + /** + * @prop {string} [x='left'] + * Where to anchor the Y axis (`left` or `right`). AKA Y offset origin. + * Change this if your popper should grow in a direction different from `right` + */ + y: 'right' + }, + + /** + * Applies the computed styles to the popper element. + * + * All the DOM manipulations are limited to this modifier. This is useful in case + * you want to integrate Popper.js inside a framework or view library and you + * want to delegate all the DOM manipulations to it. + * + * Note that if you disable this modifier, you must make sure the popper element + * has its position set to `absolute` before Popper.js can do its work! + * + * Just disable this modifier and define your own to achieve the desired effect. + * + * @memberof modifiers + * @inner + */ + applyStyle: { + /** @prop {number} order=900 - Index used to define the order of execution */ + order: 900, + /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ + enabled: true, + /** @prop {ModifierFn} */ + fn: applyStyle, + /** @prop {Function} */ + onLoad: applyStyleOnLoad, + /** + * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier + * @prop {Boolean} gpuAcceleration=true + * If true, it uses the CSS 3D transformation to position the popper. + * Otherwise, it will use the `top` and `left` properties + */ + gpuAcceleration: undefined + } + }; + + /** + * The `dataObject` is an object containing all the information used by Popper.js. + * This object is passed to modifiers and to the `onCreate` and `onUpdate` callbacks. + * @name dataObject + * @property {Object} data.instance The Popper.js instance + * @property {String} data.placement Placement applied to popper + * @property {String} data.originalPlacement Placement originally defined on init + * @property {Boolean} data.flipped True if popper has been flipped by flip modifier + * @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper + * @property {HTMLElement} data.arrowElement Node used as arrow by arrow modifier + * @property {Object} data.styles Any CSS property defined here will be applied to the popper. It expects the JavaScript nomenclature (eg. `marginBottom`) + * @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow. It expects the JavaScript nomenclature (eg. `marginBottom`) + * @property {Object} data.boundaries Offsets of the popper boundaries + * @property {Object} data.offsets The measurements of popper, reference and arrow elements + * @property {Object} data.offsets.popper `top`, `left`, `width`, `height` values + * @property {Object} data.offsets.reference `top`, `left`, `width`, `height` values + * @property {Object} data.offsets.arrow] `top` and `left` offsets, only one of them will be different from 0 + */ + + /** + * Default options provided to Popper.js constructor.
+ * These can be overridden using the `options` argument of Popper.js.
+ * To override an option, simply pass an object with the same + * structure of the `options` object, as the 3rd argument. For example: + * ``` + * new Popper(ref, pop, { + * modifiers: { + * preventOverflow: { enabled: false } + * } + * }) + * ``` + * @type {Object} + * @static + * @memberof Popper + */ + var Defaults = { + /** + * Popper's placement. + * @prop {Popper.placements} placement='bottom' + */ + placement: 'bottom', + + /** + * Set this to true if you want popper to position it self in 'fixed' mode + * @prop {Boolean} positionFixed=false + */ + positionFixed: false, + + /** + * Whether events (resize, scroll) are initially enabled. + * @prop {Boolean} eventsEnabled=true + */ + eventsEnabled: true, + + /** + * Set to true if you want to automatically remove the popper when + * you call the `destroy` method. + * @prop {Boolean} removeOnDestroy=false + */ + removeOnDestroy: false, + + /** + * Callback called when the popper is created.
+ * By default, it is set to no-op.
+ * Access Popper.js instance with `data.instance`. + * @prop {onCreate} + */ + onCreate: function onCreate() {}, + + /** + * Callback called when the popper is updated. This callback is not called + * on the initialization/creation of the popper, but only on subsequent + * updates.
+ * By default, it is set to no-op.
+ * Access Popper.js instance with `data.instance`. + * @prop {onUpdate} + */ + onUpdate: function onUpdate() {}, + + /** + * List of modifiers used to modify the offsets before they are applied to the popper. + * They provide most of the functionalities of Popper.js. + * @prop {modifiers} + */ + modifiers: modifiers + }; + + /** + * @callback onCreate + * @param {dataObject} data + */ + + /** + * @callback onUpdate + * @param {dataObject} data + */ + + // Utils + // Methods + var Popper = function () { + /** + * Creates a new Popper.js instance. + * @class Popper + * @param {HTMLElement|referenceObject} reference - The reference element used to position the popper + * @param {HTMLElement} popper - The HTML element used as the popper + * @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults) + * @return {Object} instance - The generated Popper.js instance + */ + function Popper(reference, popper) { + var _this = this; + + var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; + classCallCheck(this, Popper); + + this.scheduleUpdate = function () { + return requestAnimationFrame(_this.update); + }; + + // make update() debounced, so that it only runs at most once-per-tick + this.update = debounce(this.update.bind(this)); + + // with {} we create a new object with the options inside it + this.options = _extends({}, Popper.Defaults, options); + + // init state + this.state = { + isDestroyed: false, + isCreated: false, + scrollParents: [] + }; + + // get reference and popper elements (allow jQuery wrappers) + this.reference = reference && reference.jquery ? reference[0] : reference; + this.popper = popper && popper.jquery ? popper[0] : popper; + + // Deep merge modifiers options + this.options.modifiers = {}; + Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) { + _this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {}); + }); + + // Refactoring modifiers' list (Object => Array) + this.modifiers = Object.keys(this.options.modifiers).map(function (name) { + return _extends({ + name: name + }, _this.options.modifiers[name]); + }) + // sort the modifiers by order + .sort(function (a, b) { + return a.order - b.order; + }); + + // modifiers have the ability to execute arbitrary code when Popper.js get inited + // such code is executed in the same order of its modifier + // they could add new properties to their options configuration + // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`! + this.modifiers.forEach(function (modifierOptions) { + if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) { + modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state); + } + }); + + // fire the first update to position the popper in the right place + this.update(); + + var eventsEnabled = this.options.eventsEnabled; + if (eventsEnabled) { + // setup event listeners, they will take care of update the position in specific situations + this.enableEventListeners(); + } + + this.state.eventsEnabled = eventsEnabled; + } + + // We can't use class properties because they don't get listed in the + // class prototype and break stuff like Sinon stubs + + + createClass(Popper, [{ + key: 'update', + value: function update$$1() { + return update.call(this); + } + }, { + key: 'destroy', + value: function destroy$$1() { + return destroy.call(this); + } + }, { + key: 'enableEventListeners', + value: function enableEventListeners$$1() { + return enableEventListeners.call(this); + } + }, { + key: 'disableEventListeners', + value: function disableEventListeners$$1() { + return disableEventListeners.call(this); + } + + /** + * Schedules an update. It will run on the next UI update available. + * @method scheduleUpdate + * @memberof Popper + */ + + + /** + * Collection of utilities useful when writing custom modifiers. + * Starting from version 1.7, this method is available only if you + * include `popper-utils.js` before `popper.js`. + * + * **DEPRECATION**: This way to access PopperUtils is deprecated + * and will be removed in v2! Use the PopperUtils module directly instead. + * Due to the high instability of the methods contained in Utils, we can't + * guarantee them to follow semver. Use them at your own risk! + * @static + * @private + * @type {Object} + * @deprecated since version 1.8 + * @member Utils + * @memberof Popper + */ + + }]); + return Popper; + }(); + + /** + * The `referenceObject` is an object that provides an interface compatible with Popper.js + * and lets you use it as replacement of a real DOM node.
+ * You can use this method to position a popper relatively to a set of coordinates + * in case you don't have a DOM node to use as reference. + * + * ``` + * new Popper(referenceObject, popperNode); + * ``` + * + * NB: This feature isn't supported in Internet Explorer 10. + * @name referenceObject + * @property {Function} data.getBoundingClientRect + * A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method. + * @property {number} data.clientWidth + * An ES6 getter that will return the width of the virtual reference element. + * @property {number} data.clientHeight + * An ES6 getter that will return the height of the virtual reference element. + */ + + + Popper.Utils = (typeof window !== 'undefined' ? window : global).PopperUtils; + Popper.placements = placements; + Popper.Defaults = Defaults; + + /** + * ------------------------------------------------------------------------ + * Constants + * ------------------------------------------------------------------------ + */ + + var NAME$4 = 'dropdown'; + var VERSION$4 = '4.3.1'; + var DATA_KEY$4 = 'bs.dropdown'; + var EVENT_KEY$4 = "." + DATA_KEY$4; + var DATA_API_KEY$4 = '.data-api'; + var JQUERY_NO_CONFLICT$4 = $.fn[NAME$4]; + var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key + + var SPACE_KEYCODE = 32; // KeyboardEvent.which value for space key + + var TAB_KEYCODE = 9; // KeyboardEvent.which value for tab key + + var ARROW_UP_KEYCODE = 38; // KeyboardEvent.which value for up arrow key + + var ARROW_DOWN_KEYCODE = 40; // KeyboardEvent.which value for down arrow key + + var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse) + + var REGEXP_KEYDOWN = new RegExp(ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE); + var Event$4 = { + HIDE: "hide" + EVENT_KEY$4, + HIDDEN: "hidden" + EVENT_KEY$4, + SHOW: "show" + EVENT_KEY$4, + SHOWN: "shown" + EVENT_KEY$4, + CLICK: "click" + EVENT_KEY$4, + CLICK_DATA_API: "click" + EVENT_KEY$4 + DATA_API_KEY$4, + KEYDOWN_DATA_API: "keydown" + EVENT_KEY$4 + DATA_API_KEY$4, + KEYUP_DATA_API: "keyup" + EVENT_KEY$4 + DATA_API_KEY$4 + }; + var ClassName$4 = { + DISABLED: 'disabled', + SHOW: 'show', + DROPUP: 'dropup', + DROPRIGHT: 'dropright', + DROPLEFT: 'dropleft', + MENURIGHT: 'dropdown-menu-right', + MENULEFT: 'dropdown-menu-left', + POSITION_STATIC: 'position-static' + }; + var Selector$4 = { + DATA_TOGGLE: '[data-toggle="dropdown"]', + FORM_CHILD: '.dropdown form', + MENU: '.dropdown-menu', + NAVBAR_NAV: '.navbar-nav', + VISIBLE_ITEMS: '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)' + }; + var AttachmentMap = { + TOP: 'top-start', + TOPEND: 'top-end', + BOTTOM: 'bottom-start', + BOTTOMEND: 'bottom-end', + RIGHT: 'right-start', + RIGHTEND: 'right-end', + LEFT: 'left-start', + LEFTEND: 'left-end' + }; + var Default$2 = { + offset: 0, + flip: true, + boundary: 'scrollParent', + reference: 'toggle', + display: 'dynamic' + }; + var DefaultType$2 = { + offset: '(number|string|function)', + flip: 'boolean', + boundary: '(string|element)', + reference: '(string|element)', + display: 'string' + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + + }; + + var Dropdown = + /*#__PURE__*/ + function () { + function Dropdown(element, config) { + this._element = element; + this._popper = null; + this._config = this._getConfig(config); + this._menu = this._getMenuElement(); + this._inNavbar = this._detectNavbar(); + + this._addEventListeners(); + } // Getters + + + var _proto = Dropdown.prototype; + + // Public + _proto.toggle = function toggle() { + if (this._element.disabled || $(this._element).hasClass(ClassName$4.DISABLED)) { + return; + } + + var parent = Dropdown._getParentFromElement(this._element); + + var isActive = $(this._menu).hasClass(ClassName$4.SHOW); + + Dropdown._clearMenus(); + + if (isActive) { + return; + } + + var relatedTarget = { + relatedTarget: this._element + }; + var showEvent = $.Event(Event$4.SHOW, relatedTarget); + $(parent).trigger(showEvent); + + if (showEvent.isDefaultPrevented()) { + return; + } // Disable totally Popper.js for Dropdown in Navbar + + + if (!this._inNavbar) { + /** + * Check for Popper dependency + * Popper - https://popper.js.org + */ + if (typeof Popper === 'undefined') { + throw new TypeError('Bootstrap\'s dropdowns require Popper.js (https://popper.js.org/)'); + } + + var referenceElement = this._element; + + if (this._config.reference === 'parent') { + referenceElement = parent; + } else if (Util.isElement(this._config.reference)) { + referenceElement = this._config.reference; // Check if it's jQuery element + + if (typeof this._config.reference.jquery !== 'undefined') { + referenceElement = this._config.reference[0]; + } + } // If boundary is not `scrollParent`, then set position to `static` + // to allow the menu to "escape" the scroll parent's boundaries + // https://github.com/twbs/bootstrap/issues/24251 + + + if (this._config.boundary !== 'scrollParent') { + $(parent).addClass(ClassName$4.POSITION_STATIC); + } + + this._popper = new Popper(referenceElement, this._menu, this._getPopperConfig()); + } // If this is a touch-enabled device we add extra + // empty mouseover listeners to the body's immediate children; + // only needed because of broken event delegation on iOS + // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html + + + if ('ontouchstart' in document.documentElement && $(parent).closest(Selector$4.NAVBAR_NAV).length === 0) { + $(document.body).children().on('mouseover', null, $.noop); + } + + this._element.focus(); + + this._element.setAttribute('aria-expanded', true); + + $(this._menu).toggleClass(ClassName$4.SHOW); + $(parent).toggleClass(ClassName$4.SHOW).trigger($.Event(Event$4.SHOWN, relatedTarget)); + }; + + _proto.show = function show() { + if (this._element.disabled || $(this._element).hasClass(ClassName$4.DISABLED) || $(this._menu).hasClass(ClassName$4.SHOW)) { + return; + } + + var relatedTarget = { + relatedTarget: this._element + }; + var showEvent = $.Event(Event$4.SHOW, relatedTarget); + + var parent = Dropdown._getParentFromElement(this._element); + + $(parent).trigger(showEvent); + + if (showEvent.isDefaultPrevented()) { + return; + } + + $(this._menu).toggleClass(ClassName$4.SHOW); + $(parent).toggleClass(ClassName$4.SHOW).trigger($.Event(Event$4.SHOWN, relatedTarget)); + }; + + _proto.hide = function hide() { + if (this._element.disabled || $(this._element).hasClass(ClassName$4.DISABLED) || !$(this._menu).hasClass(ClassName$4.SHOW)) { + return; + } + + var relatedTarget = { + relatedTarget: this._element + }; + var hideEvent = $.Event(Event$4.HIDE, relatedTarget); + + var parent = Dropdown._getParentFromElement(this._element); + + $(parent).trigger(hideEvent); + + if (hideEvent.isDefaultPrevented()) { + return; + } + + $(this._menu).toggleClass(ClassName$4.SHOW); + $(parent).toggleClass(ClassName$4.SHOW).trigger($.Event(Event$4.HIDDEN, relatedTarget)); + }; + + _proto.dispose = function dispose() { + $.removeData(this._element, DATA_KEY$4); + $(this._element).off(EVENT_KEY$4); + this._element = null; + this._menu = null; + + if (this._popper !== null) { + this._popper.destroy(); + + this._popper = null; + } + }; + + _proto.update = function update() { + this._inNavbar = this._detectNavbar(); + + if (this._popper !== null) { + this._popper.scheduleUpdate(); + } + } // Private + ; + + _proto._addEventListeners = function _addEventListeners() { + var _this = this; + + $(this._element).on(Event$4.CLICK, function (event) { + event.preventDefault(); + event.stopPropagation(); + + _this.toggle(); + }); + }; + + _proto._getConfig = function _getConfig(config) { + config = _objectSpread({}, this.constructor.Default, $(this._element).data(), config); + Util.typeCheckConfig(NAME$4, config, this.constructor.DefaultType); + return config; + }; + + _proto._getMenuElement = function _getMenuElement() { + if (!this._menu) { + var parent = Dropdown._getParentFromElement(this._element); + + if (parent) { + this._menu = parent.querySelector(Selector$4.MENU); + } + } + + return this._menu; + }; + + _proto._getPlacement = function _getPlacement() { + var $parentDropdown = $(this._element.parentNode); + var placement = AttachmentMap.BOTTOM; // Handle dropup + + if ($parentDropdown.hasClass(ClassName$4.DROPUP)) { + placement = AttachmentMap.TOP; + + if ($(this._menu).hasClass(ClassName$4.MENURIGHT)) { + placement = AttachmentMap.TOPEND; + } + } else if ($parentDropdown.hasClass(ClassName$4.DROPRIGHT)) { + placement = AttachmentMap.RIGHT; + } else if ($parentDropdown.hasClass(ClassName$4.DROPLEFT)) { + placement = AttachmentMap.LEFT; + } else if ($(this._menu).hasClass(ClassName$4.MENURIGHT)) { + placement = AttachmentMap.BOTTOMEND; + } + + return placement; + }; + + _proto._detectNavbar = function _detectNavbar() { + return $(this._element).closest('.navbar').length > 0; + }; + + _proto._getOffset = function _getOffset() { + var _this2 = this; + + var offset = {}; + + if (typeof this._config.offset === 'function') { + offset.fn = function (data) { + data.offsets = _objectSpread({}, data.offsets, _this2._config.offset(data.offsets, _this2._element) || {}); + return data; + }; + } else { + offset.offset = this._config.offset; + } + + return offset; + }; + + _proto._getPopperConfig = function _getPopperConfig() { + var popperConfig = { + placement: this._getPlacement(), + modifiers: { + offset: this._getOffset(), + flip: { + enabled: this._config.flip + }, + preventOverflow: { + boundariesElement: this._config.boundary + } + } // Disable Popper.js if we have a static display + + }; + + if (this._config.display === 'static') { + popperConfig.modifiers.applyStyle = { + enabled: false + }; + } + + return popperConfig; + } // Static + ; + + Dropdown._jQueryInterface = function _jQueryInterface(config) { + return this.each(function () { + var data = $(this).data(DATA_KEY$4); + + var _config = typeof config === 'object' ? config : null; + + if (!data) { + data = new Dropdown(this, _config); + $(this).data(DATA_KEY$4, data); + } + + if (typeof config === 'string') { + if (typeof data[config] === 'undefined') { + throw new TypeError("No method named \"" + config + "\""); + } + + data[config](); + } + }); + }; + + Dropdown._clearMenus = function _clearMenus(event) { + if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH || event.type === 'keyup' && event.which !== TAB_KEYCODE)) { + return; + } + + var toggles = [].slice.call(document.querySelectorAll(Selector$4.DATA_TOGGLE)); + + for (var i = 0, len = toggles.length; i < len; i++) { + var parent = Dropdown._getParentFromElement(toggles[i]); + + var context = $(toggles[i]).data(DATA_KEY$4); + var relatedTarget = { + relatedTarget: toggles[i] + }; + + if (event && event.type === 'click') { + relatedTarget.clickEvent = event; + } + + if (!context) { + continue; + } + + var dropdownMenu = context._menu; + + if (!$(parent).hasClass(ClassName$4.SHOW)) { + continue; + } + + if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $.contains(parent, event.target)) { + continue; + } + + var hideEvent = $.Event(Event$4.HIDE, relatedTarget); + $(parent).trigger(hideEvent); + + if (hideEvent.isDefaultPrevented()) { + continue; + } // If this is a touch-enabled device we remove the extra + // empty mouseover listeners we added for iOS support + + + if ('ontouchstart' in document.documentElement) { + $(document.body).children().off('mouseover', null, $.noop); + } + + toggles[i].setAttribute('aria-expanded', 'false'); + $(dropdownMenu).removeClass(ClassName$4.SHOW); + $(parent).removeClass(ClassName$4.SHOW).trigger($.Event(Event$4.HIDDEN, relatedTarget)); + } + }; + + Dropdown._getParentFromElement = function _getParentFromElement(element) { + var parent; + var selector = Util.getSelectorFromElement(element); + + if (selector) { + parent = document.querySelector(selector); + } + + return parent || element.parentNode; + } // eslint-disable-next-line complexity + ; + + Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) { + // If not input/textarea: + // - And not a key in REGEXP_KEYDOWN => not a dropdown command + // If input/textarea: + // - If space key => not a dropdown command + // - If key is other than escape + // - If key is not up or down => not a dropdown command + // - If trigger inside the menu => not a dropdown command + if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $(event.target).closest(Selector$4.MENU).length) : !REGEXP_KEYDOWN.test(event.which)) { + return; + } + + event.preventDefault(); + event.stopPropagation(); + + if (this.disabled || $(this).hasClass(ClassName$4.DISABLED)) { + return; + } + + var parent = Dropdown._getParentFromElement(this); + + var isActive = $(parent).hasClass(ClassName$4.SHOW); + + if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) { + if (event.which === ESCAPE_KEYCODE) { + var toggle = parent.querySelector(Selector$4.DATA_TOGGLE); + $(toggle).trigger('focus'); + } + + $(this).trigger('click'); + return; + } + + var items = [].slice.call(parent.querySelectorAll(Selector$4.VISIBLE_ITEMS)); + + if (items.length === 0) { + return; + } + + var index = items.indexOf(event.target); + + if (event.which === ARROW_UP_KEYCODE && index > 0) { + // Up + index--; + } + + if (event.which === ARROW_DOWN_KEYCODE && index < items.length - 1) { + // Down + index++; + } + + if (index < 0) { + index = 0; + } + + items[index].focus(); + }; + + _createClass(Dropdown, null, [{ + key: "VERSION", + get: function get() { + return VERSION$4; + } + }, { + key: "Default", + get: function get() { + return Default$2; + } + }, { + key: "DefaultType", + get: function get() { + return DefaultType$2; + } + }]); + + return Dropdown; + }(); + /** + * ------------------------------------------------------------------------ + * Data Api implementation + * ------------------------------------------------------------------------ + */ + + + $(document).on(Event$4.KEYDOWN_DATA_API, Selector$4.DATA_TOGGLE, Dropdown._dataApiKeydownHandler).on(Event$4.KEYDOWN_DATA_API, Selector$4.MENU, Dropdown._dataApiKeydownHandler).on(Event$4.CLICK_DATA_API + " " + Event$4.KEYUP_DATA_API, Dropdown._clearMenus).on(Event$4.CLICK_DATA_API, Selector$4.DATA_TOGGLE, function (event) { + event.preventDefault(); + event.stopPropagation(); + + Dropdown._jQueryInterface.call($(this), 'toggle'); + }).on(Event$4.CLICK_DATA_API, Selector$4.FORM_CHILD, function (e) { + e.stopPropagation(); + }); + /** + * ------------------------------------------------------------------------ + * jQuery + * ------------------------------------------------------------------------ + */ + + $.fn[NAME$4] = Dropdown._jQueryInterface; + $.fn[NAME$4].Constructor = Dropdown; + + $.fn[NAME$4].noConflict = function () { + $.fn[NAME$4] = JQUERY_NO_CONFLICT$4; + return Dropdown._jQueryInterface; + }; + + /** + * ------------------------------------------------------------------------ + * Constants + * ------------------------------------------------------------------------ + */ + + var NAME$5 = 'modal'; + var VERSION$5 = '4.3.1'; + var DATA_KEY$5 = 'bs.modal'; + var EVENT_KEY$5 = "." + DATA_KEY$5; + var DATA_API_KEY$5 = '.data-api'; + var JQUERY_NO_CONFLICT$5 = $.fn[NAME$5]; + var ESCAPE_KEYCODE$1 = 27; // KeyboardEvent.which value for Escape (Esc) key + + var Default$3 = { + backdrop: true, + keyboard: true, + focus: true, + show: true + }; + var DefaultType$3 = { + backdrop: '(boolean|string)', + keyboard: 'boolean', + focus: 'boolean', + show: 'boolean' + }; + var Event$5 = { + HIDE: "hide" + EVENT_KEY$5, + HIDDEN: "hidden" + EVENT_KEY$5, + SHOW: "show" + EVENT_KEY$5, + SHOWN: "shown" + EVENT_KEY$5, + FOCUSIN: "focusin" + EVENT_KEY$5, + RESIZE: "resize" + EVENT_KEY$5, + CLICK_DISMISS: "click.dismiss" + EVENT_KEY$5, + KEYDOWN_DISMISS: "keydown.dismiss" + EVENT_KEY$5, + MOUSEUP_DISMISS: "mouseup.dismiss" + EVENT_KEY$5, + MOUSEDOWN_DISMISS: "mousedown.dismiss" + EVENT_KEY$5, + CLICK_DATA_API: "click" + EVENT_KEY$5 + DATA_API_KEY$5 + }; + var ClassName$5 = { + SCROLLABLE: 'modal-dialog-scrollable', + SCROLLBAR_MEASURER: 'modal-scrollbar-measure', + BACKDROP: 'modal-backdrop', + OPEN: 'modal-open', + FADE: 'fade', + SHOW: 'show' + }; + var Selector$5 = { + DIALOG: '.modal-dialog', + MODAL_BODY: '.modal-body', + DATA_TOGGLE: '[data-toggle="modal"]', + DATA_DISMISS: '[data-dismiss="modal"]', + FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top', + STICKY_CONTENT: '.sticky-top' + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + + }; + + var Modal = + /*#__PURE__*/ + function () { + function Modal(element, config) { + this._config = this._getConfig(config); + this._element = element; + this._dialog = element.querySelector(Selector$5.DIALOG); + this._backdrop = null; + this._isShown = false; + this._isBodyOverflowing = false; + this._ignoreBackdropClick = false; + this._isTransitioning = false; + this._scrollbarWidth = 0; + } // Getters + + + var _proto = Modal.prototype; + + // Public + _proto.toggle = function toggle(relatedTarget) { + return this._isShown ? this.hide() : this.show(relatedTarget); + }; + + _proto.show = function show(relatedTarget) { + var _this = this; + + if (this._isShown || this._isTransitioning) { + return; + } + + if ($(this._element).hasClass(ClassName$5.FADE)) { + this._isTransitioning = true; + } + + var showEvent = $.Event(Event$5.SHOW, { + relatedTarget: relatedTarget + }); + $(this._element).trigger(showEvent); + + if (this._isShown || showEvent.isDefaultPrevented()) { + return; + } + + this._isShown = true; + + this._checkScrollbar(); + + this._setScrollbar(); + + this._adjustDialog(); + + this._setEscapeEvent(); + + this._setResizeEvent(); + + $(this._element).on(Event$5.CLICK_DISMISS, Selector$5.DATA_DISMISS, function (event) { + return _this.hide(event); + }); + $(this._dialog).on(Event$5.MOUSEDOWN_DISMISS, function () { + $(_this._element).one(Event$5.MOUSEUP_DISMISS, function (event) { + if ($(event.target).is(_this._element)) { + _this._ignoreBackdropClick = true; + } + }); + }); + + this._showBackdrop(function () { + return _this._showElement(relatedTarget); + }); + }; + + _proto.hide = function hide(event) { + var _this2 = this; + + if (event) { + event.preventDefault(); + } + + if (!this._isShown || this._isTransitioning) { + return; + } + + var hideEvent = $.Event(Event$5.HIDE); + $(this._element).trigger(hideEvent); + + if (!this._isShown || hideEvent.isDefaultPrevented()) { + return; + } + + this._isShown = false; + var transition = $(this._element).hasClass(ClassName$5.FADE); + + if (transition) { + this._isTransitioning = true; + } + + this._setEscapeEvent(); + + this._setResizeEvent(); + + $(document).off(Event$5.FOCUSIN); + $(this._element).removeClass(ClassName$5.SHOW); + $(this._element).off(Event$5.CLICK_DISMISS); + $(this._dialog).off(Event$5.MOUSEDOWN_DISMISS); + + if (transition) { + var transitionDuration = Util.getTransitionDurationFromElement(this._element); + $(this._element).one(Util.TRANSITION_END, function (event) { + return _this2._hideModal(event); + }).emulateTransitionEnd(transitionDuration); + } else { + this._hideModal(); + } + }; + + _proto.dispose = function dispose() { + [window, this._element, this._dialog].forEach(function (htmlElement) { + return $(htmlElement).off(EVENT_KEY$5); + }); + /** + * `document` has 2 events `Event.FOCUSIN` and `Event.CLICK_DATA_API` + * Do not move `document` in `htmlElements` array + * It will remove `Event.CLICK_DATA_API` event that should remain + */ + + $(document).off(Event$5.FOCUSIN); + $.removeData(this._element, DATA_KEY$5); + this._config = null; + this._element = null; + this._dialog = null; + this._backdrop = null; + this._isShown = null; + this._isBodyOverflowing = null; + this._ignoreBackdropClick = null; + this._isTransitioning = null; + this._scrollbarWidth = null; + }; + + _proto.handleUpdate = function handleUpdate() { + this._adjustDialog(); + } // Private + ; + + _proto._getConfig = function _getConfig(config) { + config = _objectSpread({}, Default$3, config); + Util.typeCheckConfig(NAME$5, config, DefaultType$3); + return config; + }; + + _proto._showElement = function _showElement(relatedTarget) { + var _this3 = this; + + var transition = $(this._element).hasClass(ClassName$5.FADE); + + if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) { + // Don't move modal's DOM position + document.body.appendChild(this._element); + } + + this._element.style.display = 'block'; + + this._element.removeAttribute('aria-hidden'); + + this._element.setAttribute('aria-modal', true); + + if ($(this._dialog).hasClass(ClassName$5.SCROLLABLE)) { + this._dialog.querySelector(Selector$5.MODAL_BODY).scrollTop = 0; + } else { + this._element.scrollTop = 0; + } + + if (transition) { + Util.reflow(this._element); + } + + $(this._element).addClass(ClassName$5.SHOW); + + if (this._config.focus) { + this._enforceFocus(); + } + + var shownEvent = $.Event(Event$5.SHOWN, { + relatedTarget: relatedTarget + }); + + var transitionComplete = function transitionComplete() { + if (_this3._config.focus) { + _this3._element.focus(); + } + + _this3._isTransitioning = false; + $(_this3._element).trigger(shownEvent); + }; + + if (transition) { + var transitionDuration = Util.getTransitionDurationFromElement(this._dialog); + $(this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration); + } else { + transitionComplete(); + } + }; + + _proto._enforceFocus = function _enforceFocus() { + var _this4 = this; + + $(document).off(Event$5.FOCUSIN) // Guard against infinite focus loop + .on(Event$5.FOCUSIN, function (event) { + if (document !== event.target && _this4._element !== event.target && $(_this4._element).has(event.target).length === 0) { + _this4._element.focus(); + } + }); + }; + + _proto._setEscapeEvent = function _setEscapeEvent() { + var _this5 = this; + + if (this._isShown && this._config.keyboard) { + $(this._element).on(Event$5.KEYDOWN_DISMISS, function (event) { + if (event.which === ESCAPE_KEYCODE$1) { + event.preventDefault(); + + _this5.hide(); + } + }); + } else if (!this._isShown) { + $(this._element).off(Event$5.KEYDOWN_DISMISS); + } + }; + + _proto._setResizeEvent = function _setResizeEvent() { + var _this6 = this; + + if (this._isShown) { + $(window).on(Event$5.RESIZE, function (event) { + return _this6.handleUpdate(event); + }); + } else { + $(window).off(Event$5.RESIZE); + } + }; + + _proto._hideModal = function _hideModal() { + var _this7 = this; + + this._element.style.display = 'none'; + + this._element.setAttribute('aria-hidden', true); + + this._element.removeAttribute('aria-modal'); + + this._isTransitioning = false; + + this._showBackdrop(function () { + $(document.body).removeClass(ClassName$5.OPEN); + + _this7._resetAdjustments(); + + _this7._resetScrollbar(); + + $(_this7._element).trigger(Event$5.HIDDEN); + }); + }; + + _proto._removeBackdrop = function _removeBackdrop() { + if (this._backdrop) { + $(this._backdrop).remove(); + this._backdrop = null; + } + }; + + _proto._showBackdrop = function _showBackdrop(callback) { + var _this8 = this; + + var animate = $(this._element).hasClass(ClassName$5.FADE) ? ClassName$5.FADE : ''; + + if (this._isShown && this._config.backdrop) { + this._backdrop = document.createElement('div'); + this._backdrop.className = ClassName$5.BACKDROP; + + if (animate) { + this._backdrop.classList.add(animate); + } + + $(this._backdrop).appendTo(document.body); + $(this._element).on(Event$5.CLICK_DISMISS, function (event) { + if (_this8._ignoreBackdropClick) { + _this8._ignoreBackdropClick = false; + return; + } + + if (event.target !== event.currentTarget) { + return; + } + + if (_this8._config.backdrop === 'static') { + _this8._element.focus(); + } else { + _this8.hide(); + } + }); + + if (animate) { + Util.reflow(this._backdrop); + } + + $(this._backdrop).addClass(ClassName$5.SHOW); + + if (!callback) { + return; + } + + if (!animate) { + callback(); + return; + } + + var backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop); + $(this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration); + } else if (!this._isShown && this._backdrop) { + $(this._backdrop).removeClass(ClassName$5.SHOW); + + var callbackRemove = function callbackRemove() { + _this8._removeBackdrop(); + + if (callback) { + callback(); + } + }; + + if ($(this._element).hasClass(ClassName$5.FADE)) { + var _backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop); + + $(this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration); + } else { + callbackRemove(); + } + } else if (callback) { + callback(); + } + } // ---------------------------------------------------------------------- + // the following methods are used to handle overflowing modals + // todo (fat): these should probably be refactored out of modal.js + // ---------------------------------------------------------------------- + ; + + _proto._adjustDialog = function _adjustDialog() { + var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight; + + if (!this._isBodyOverflowing && isModalOverflowing) { + this._element.style.paddingLeft = this._scrollbarWidth + "px"; + } + + if (this._isBodyOverflowing && !isModalOverflowing) { + this._element.style.paddingRight = this._scrollbarWidth + "px"; + } + }; + + _proto._resetAdjustments = function _resetAdjustments() { + this._element.style.paddingLeft = ''; + this._element.style.paddingRight = ''; + }; + + _proto._checkScrollbar = function _checkScrollbar() { + var rect = document.body.getBoundingClientRect(); + this._isBodyOverflowing = rect.left + rect.right < window.innerWidth; + this._scrollbarWidth = this._getScrollbarWidth(); + }; + + _proto._setScrollbar = function _setScrollbar() { + var _this9 = this; + + if (this._isBodyOverflowing) { + // Note: DOMNode.style.paddingRight returns the actual value or '' if not set + // while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set + var fixedContent = [].slice.call(document.querySelectorAll(Selector$5.FIXED_CONTENT)); + var stickyContent = [].slice.call(document.querySelectorAll(Selector$5.STICKY_CONTENT)); // Adjust fixed content padding + + $(fixedContent).each(function (index, element) { + var actualPadding = element.style.paddingRight; + var calculatedPadding = $(element).css('padding-right'); + $(element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px"); + }); // Adjust sticky content margin + + $(stickyContent).each(function (index, element) { + var actualMargin = element.style.marginRight; + var calculatedMargin = $(element).css('margin-right'); + $(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px"); + }); // Adjust body padding + + var actualPadding = document.body.style.paddingRight; + var calculatedPadding = $(document.body).css('padding-right'); + $(document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px"); + } + + $(document.body).addClass(ClassName$5.OPEN); + }; + + _proto._resetScrollbar = function _resetScrollbar() { + // Restore fixed content padding + var fixedContent = [].slice.call(document.querySelectorAll(Selector$5.FIXED_CONTENT)); + $(fixedContent).each(function (index, element) { + var padding = $(element).data('padding-right'); + $(element).removeData('padding-right'); + element.style.paddingRight = padding ? padding : ''; + }); // Restore sticky content + + var elements = [].slice.call(document.querySelectorAll("" + Selector$5.STICKY_CONTENT)); + $(elements).each(function (index, element) { + var margin = $(element).data('margin-right'); + + if (typeof margin !== 'undefined') { + $(element).css('margin-right', margin).removeData('margin-right'); + } + }); // Restore body padding + + var padding = $(document.body).data('padding-right'); + $(document.body).removeData('padding-right'); + document.body.style.paddingRight = padding ? padding : ''; + }; + + _proto._getScrollbarWidth = function _getScrollbarWidth() { + // thx d.walsh + var scrollDiv = document.createElement('div'); + scrollDiv.className = ClassName$5.SCROLLBAR_MEASURER; + document.body.appendChild(scrollDiv); + var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth; + document.body.removeChild(scrollDiv); + return scrollbarWidth; + } // Static + ; + + Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) { + return this.each(function () { + var data = $(this).data(DATA_KEY$5); + + var _config = _objectSpread({}, Default$3, $(this).data(), typeof config === 'object' && config ? config : {}); + + if (!data) { + data = new Modal(this, _config); + $(this).data(DATA_KEY$5, data); + } + + if (typeof config === 'string') { + if (typeof data[config] === 'undefined') { + throw new TypeError("No method named \"" + config + "\""); + } + + data[config](relatedTarget); + } else if (_config.show) { + data.show(relatedTarget); + } + }); + }; + + _createClass(Modal, null, [{ + key: "VERSION", + get: function get() { + return VERSION$5; + } + }, { + key: "Default", + get: function get() { + return Default$3; + } + }]); + + return Modal; + }(); + /** + * ------------------------------------------------------------------------ + * Data Api implementation + * ------------------------------------------------------------------------ + */ + + + $(document).on(Event$5.CLICK_DATA_API, Selector$5.DATA_TOGGLE, function (event) { + var _this10 = this; + + var target; + var selector = Util.getSelectorFromElement(this); + + if (selector) { + target = document.querySelector(selector); + } + + var config = $(target).data(DATA_KEY$5) ? 'toggle' : _objectSpread({}, $(target).data(), $(this).data()); + + if (this.tagName === 'A' || this.tagName === 'AREA') { + event.preventDefault(); + } + + var $target = $(target).one(Event$5.SHOW, function (showEvent) { + if (showEvent.isDefaultPrevented()) { + // Only register focus restorer if modal will actually get shown + return; + } + + $target.one(Event$5.HIDDEN, function () { + if ($(_this10).is(':visible')) { + _this10.focus(); + } + }); + }); + + Modal._jQueryInterface.call($(target), config, this); + }); + /** + * ------------------------------------------------------------------------ + * jQuery + * ------------------------------------------------------------------------ + */ + + $.fn[NAME$5] = Modal._jQueryInterface; + $.fn[NAME$5].Constructor = Modal; + + $.fn[NAME$5].noConflict = function () { + $.fn[NAME$5] = JQUERY_NO_CONFLICT$5; + return Modal._jQueryInterface; + }; + + /** + * -------------------------------------------------------------------------- + * Bootstrap (v4.3.1): tools/sanitizer.js + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * -------------------------------------------------------------------------- + */ + var uriAttrs = ['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href']; + var ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i; + var DefaultWhitelist = { + // Global attributes allowed on any supplied element below. + '*': ['class', 'dir', 'id', 'lang', 'role', ARIA_ATTRIBUTE_PATTERN], + a: ['target', 'href', 'title', 'rel'], + area: [], + b: [], + br: [], + col: [], + code: [], + div: [], + em: [], + hr: [], + h1: [], + h2: [], + h3: [], + h4: [], + h5: [], + h6: [], + i: [], + img: ['src', 'alt', 'title', 'width', 'height'], + li: [], + ol: [], + p: [], + pre: [], + s: [], + small: [], + span: [], + sub: [], + sup: [], + strong: [], + u: [], + ul: [] + /** + * A pattern that recognizes a commonly useful subset of URLs that are safe. + * + * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts + */ + + }; + var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi; + /** + * A pattern that matches safe data URLs. Only matches image, video and audio types. + * + * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts + */ + + var DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i; + + function allowedAttribute(attr, allowedAttributeList) { + var attrName = attr.nodeName.toLowerCase(); + + if (allowedAttributeList.indexOf(attrName) !== -1) { + if (uriAttrs.indexOf(attrName) !== -1) { + return Boolean(attr.nodeValue.match(SAFE_URL_PATTERN) || attr.nodeValue.match(DATA_URL_PATTERN)); + } + + return true; + } + + var regExp = allowedAttributeList.filter(function (attrRegex) { + return attrRegex instanceof RegExp; + }); // Check if a regular expression validates the attribute. + + for (var i = 0, l = regExp.length; i < l; i++) { + if (attrName.match(regExp[i])) { + return true; + } + } + + return false; + } + + function sanitizeHtml(unsafeHtml, whiteList, sanitizeFn) { + if (unsafeHtml.length === 0) { + return unsafeHtml; + } + + if (sanitizeFn && typeof sanitizeFn === 'function') { + return sanitizeFn(unsafeHtml); + } + + var domParser = new window.DOMParser(); + var createdDocument = domParser.parseFromString(unsafeHtml, 'text/html'); + var whitelistKeys = Object.keys(whiteList); + var elements = [].slice.call(createdDocument.body.querySelectorAll('*')); + + var _loop = function _loop(i, len) { + var el = elements[i]; + var elName = el.nodeName.toLowerCase(); + + if (whitelistKeys.indexOf(el.nodeName.toLowerCase()) === -1) { + el.parentNode.removeChild(el); + return "continue"; + } + + var attributeList = [].slice.call(el.attributes); + var whitelistedAttributes = [].concat(whiteList['*'] || [], whiteList[elName] || []); + attributeList.forEach(function (attr) { + if (!allowedAttribute(attr, whitelistedAttributes)) { + el.removeAttribute(attr.nodeName); + } + }); + }; + + for (var i = 0, len = elements.length; i < len; i++) { + var _ret = _loop(i, len); + + if (_ret === "continue") continue; + } + + return createdDocument.body.innerHTML; + } + + /** + * ------------------------------------------------------------------------ + * Constants + * ------------------------------------------------------------------------ + */ + + var NAME$6 = 'tooltip'; + var VERSION$6 = '4.3.1'; + var DATA_KEY$6 = 'bs.tooltip'; + var EVENT_KEY$6 = "." + DATA_KEY$6; + var JQUERY_NO_CONFLICT$6 = $.fn[NAME$6]; + var CLASS_PREFIX = 'bs-tooltip'; + var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g'); + var DISALLOWED_ATTRIBUTES = ['sanitize', 'whiteList', 'sanitizeFn']; + var DefaultType$4 = { + animation: 'boolean', + template: 'string', + title: '(string|element|function)', + trigger: 'string', + delay: '(number|object)', + html: 'boolean', + selector: '(string|boolean)', + placement: '(string|function)', + offset: '(number|string|function)', + container: '(string|element|boolean)', + fallbackPlacement: '(string|array)', + boundary: '(string|element)', + sanitize: 'boolean', + sanitizeFn: '(null|function)', + whiteList: 'object' + }; + var AttachmentMap$1 = { + AUTO: 'auto', + TOP: 'top', + RIGHT: 'right', + BOTTOM: 'bottom', + LEFT: 'left' + }; + var Default$4 = { + animation: true, + template: '', + trigger: 'hover focus', + title: '', + delay: 0, + html: false, + selector: false, + placement: 'top', + offset: 0, + container: false, + fallbackPlacement: 'flip', + boundary: 'scrollParent', + sanitize: true, + sanitizeFn: null, + whiteList: DefaultWhitelist + }; + var HoverState = { + SHOW: 'show', + OUT: 'out' + }; + var Event$6 = { + HIDE: "hide" + EVENT_KEY$6, + HIDDEN: "hidden" + EVENT_KEY$6, + SHOW: "show" + EVENT_KEY$6, + SHOWN: "shown" + EVENT_KEY$6, + INSERTED: "inserted" + EVENT_KEY$6, + CLICK: "click" + EVENT_KEY$6, + FOCUSIN: "focusin" + EVENT_KEY$6, + FOCUSOUT: "focusout" + EVENT_KEY$6, + MOUSEENTER: "mouseenter" + EVENT_KEY$6, + MOUSELEAVE: "mouseleave" + EVENT_KEY$6 + }; + var ClassName$6 = { + FADE: 'fade', + SHOW: 'show' + }; + var Selector$6 = { + TOOLTIP: '.tooltip', + TOOLTIP_INNER: '.tooltip-inner', + ARROW: '.arrow' + }; + var Trigger = { + HOVER: 'hover', + FOCUS: 'focus', + CLICK: 'click', + MANUAL: 'manual' + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + + }; + + var Tooltip = + /*#__PURE__*/ + function () { + function Tooltip(element, config) { + /** + * Check for Popper dependency + * Popper - https://popper.js.org + */ + if (typeof Popper === 'undefined') { + throw new TypeError('Bootstrap\'s tooltips require Popper.js (https://popper.js.org/)'); + } // private + + + this._isEnabled = true; + this._timeout = 0; + this._hoverState = ''; + this._activeTrigger = {}; + this._popper = null; // Protected + + this.element = element; + this.config = this._getConfig(config); + this.tip = null; + + this._setListeners(); + } // Getters + + + var _proto = Tooltip.prototype; + + // Public + _proto.enable = function enable() { + this._isEnabled = true; + }; + + _proto.disable = function disable() { + this._isEnabled = false; + }; + + _proto.toggleEnabled = function toggleEnabled() { + this._isEnabled = !this._isEnabled; + }; + + _proto.toggle = function toggle(event) { + if (!this._isEnabled) { + return; + } + + if (event) { + var dataKey = this.constructor.DATA_KEY; + var context = $(event.currentTarget).data(dataKey); + + if (!context) { + context = new this.constructor(event.currentTarget, this._getDelegateConfig()); + $(event.currentTarget).data(dataKey, context); + } + + context._activeTrigger.click = !context._activeTrigger.click; + + if (context._isWithActiveTrigger()) { + context._enter(null, context); + } else { + context._leave(null, context); + } + } else { + if ($(this.getTipElement()).hasClass(ClassName$6.SHOW)) { + this._leave(null, this); + + return; + } + + this._enter(null, this); + } + }; + + _proto.dispose = function dispose() { + clearTimeout(this._timeout); + $.removeData(this.element, this.constructor.DATA_KEY); + $(this.element).off(this.constructor.EVENT_KEY); + $(this.element).closest('.modal').off('hide.bs.modal'); + + if (this.tip) { + $(this.tip).remove(); + } + + this._isEnabled = null; + this._timeout = null; + this._hoverState = null; + this._activeTrigger = null; + + if (this._popper !== null) { + this._popper.destroy(); + } + + this._popper = null; + this.element = null; + this.config = null; + this.tip = null; + }; + + _proto.show = function show() { + var _this = this; + + if ($(this.element).css('display') === 'none') { + throw new Error('Please use show on visible elements'); + } + + var showEvent = $.Event(this.constructor.Event.SHOW); + + if (this.isWithContent() && this._isEnabled) { + $(this.element).trigger(showEvent); + var shadowRoot = Util.findShadowRoot(this.element); + var isInTheDom = $.contains(shadowRoot !== null ? shadowRoot : this.element.ownerDocument.documentElement, this.element); + + if (showEvent.isDefaultPrevented() || !isInTheDom) { + return; + } + + var tip = this.getTipElement(); + var tipId = Util.getUID(this.constructor.NAME); + tip.setAttribute('id', tipId); + this.element.setAttribute('aria-describedby', tipId); + this.setContent(); + + if (this.config.animation) { + $(tip).addClass(ClassName$6.FADE); + } + + var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement; + + var attachment = this._getAttachment(placement); + + this.addAttachmentClass(attachment); + + var container = this._getContainer(); + + $(tip).data(this.constructor.DATA_KEY, this); + + if (!$.contains(this.element.ownerDocument.documentElement, this.tip)) { + $(tip).appendTo(container); + } + + $(this.element).trigger(this.constructor.Event.INSERTED); + this._popper = new Popper(this.element, tip, { + placement: attachment, + modifiers: { + offset: this._getOffset(), + flip: { + behavior: this.config.fallbackPlacement + }, + arrow: { + element: Selector$6.ARROW + }, + preventOverflow: { + boundariesElement: this.config.boundary + } + }, + onCreate: function onCreate(data) { + if (data.originalPlacement !== data.placement) { + _this._handlePopperPlacementChange(data); + } + }, + onUpdate: function onUpdate(data) { + return _this._handlePopperPlacementChange(data); + } + }); + $(tip).addClass(ClassName$6.SHOW); // If this is a touch-enabled device we add extra + // empty mouseover listeners to the body's immediate children; + // only needed because of broken event delegation on iOS + // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html + + if ('ontouchstart' in document.documentElement) { + $(document.body).children().on('mouseover', null, $.noop); + } + + var complete = function complete() { + if (_this.config.animation) { + _this._fixTransition(); + } + + var prevHoverState = _this._hoverState; + _this._hoverState = null; + $(_this.element).trigger(_this.constructor.Event.SHOWN); + + if (prevHoverState === HoverState.OUT) { + _this._leave(null, _this); + } + }; + + if ($(this.tip).hasClass(ClassName$6.FADE)) { + var transitionDuration = Util.getTransitionDurationFromElement(this.tip); + $(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); + } else { + complete(); + } + } + }; + + _proto.hide = function hide(callback) { + var _this2 = this; + + var tip = this.getTipElement(); + var hideEvent = $.Event(this.constructor.Event.HIDE); + + var complete = function complete() { + if (_this2._hoverState !== HoverState.SHOW && tip.parentNode) { + tip.parentNode.removeChild(tip); + } + + _this2._cleanTipClass(); + + _this2.element.removeAttribute('aria-describedby'); + + $(_this2.element).trigger(_this2.constructor.Event.HIDDEN); + + if (_this2._popper !== null) { + _this2._popper.destroy(); + } + + if (callback) { + callback(); + } + }; + + $(this.element).trigger(hideEvent); + + if (hideEvent.isDefaultPrevented()) { + return; + } + + $(tip).removeClass(ClassName$6.SHOW); // If this is a touch-enabled device we remove the extra + // empty mouseover listeners we added for iOS support + + if ('ontouchstart' in document.documentElement) { + $(document.body).children().off('mouseover', null, $.noop); + } + + this._activeTrigger[Trigger.CLICK] = false; + this._activeTrigger[Trigger.FOCUS] = false; + this._activeTrigger[Trigger.HOVER] = false; + + if ($(this.tip).hasClass(ClassName$6.FADE)) { + var transitionDuration = Util.getTransitionDurationFromElement(tip); + $(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); + } else { + complete(); + } + + this._hoverState = ''; + }; + + _proto.update = function update() { + if (this._popper !== null) { + this._popper.scheduleUpdate(); + } + } // Protected + ; + + _proto.isWithContent = function isWithContent() { + return Boolean(this.getTitle()); + }; + + _proto.addAttachmentClass = function addAttachmentClass(attachment) { + $(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment); + }; + + _proto.getTipElement = function getTipElement() { + this.tip = this.tip || $(this.config.template)[0]; + return this.tip; + }; + + _proto.setContent = function setContent() { + var tip = this.getTipElement(); + this.setElementContent($(tip.querySelectorAll(Selector$6.TOOLTIP_INNER)), this.getTitle()); + $(tip).removeClass(ClassName$6.FADE + " " + ClassName$6.SHOW); + }; + + _proto.setElementContent = function setElementContent($element, content) { + if (typeof content === 'object' && (content.nodeType || content.jquery)) { + // Content is a DOM node or a jQuery + if (this.config.html) { + if (!$(content).parent().is($element)) { + $element.empty().append(content); + } + } else { + $element.text($(content).text()); + } + + return; + } + + if (this.config.html) { + if (this.config.sanitize) { + content = sanitizeHtml(content, this.config.whiteList, this.config.sanitizeFn); + } + + $element.html(content); + } else { + $element.text(content); + } + }; + + _proto.getTitle = function getTitle() { + var title = this.element.getAttribute('data-original-title'); + + if (!title) { + title = typeof this.config.title === 'function' ? this.config.title.call(this.element) : this.config.title; + } + + return title; + } // Private + ; + + _proto._getOffset = function _getOffset() { + var _this3 = this; + + var offset = {}; + + if (typeof this.config.offset === 'function') { + offset.fn = function (data) { + data.offsets = _objectSpread({}, data.offsets, _this3.config.offset(data.offsets, _this3.element) || {}); + return data; + }; + } else { + offset.offset = this.config.offset; + } + + return offset; + }; + + _proto._getContainer = function _getContainer() { + if (this.config.container === false) { + return document.body; + } + + if (Util.isElement(this.config.container)) { + return $(this.config.container); + } + + return $(document).find(this.config.container); + }; + + _proto._getAttachment = function _getAttachment(placement) { + return AttachmentMap$1[placement.toUpperCase()]; + }; + + _proto._setListeners = function _setListeners() { + var _this4 = this; + + var triggers = this.config.trigger.split(' '); + triggers.forEach(function (trigger) { + if (trigger === 'click') { + $(_this4.element).on(_this4.constructor.Event.CLICK, _this4.config.selector, function (event) { + return _this4.toggle(event); + }); + } else if (trigger !== Trigger.MANUAL) { + var eventIn = trigger === Trigger.HOVER ? _this4.constructor.Event.MOUSEENTER : _this4.constructor.Event.FOCUSIN; + var eventOut = trigger === Trigger.HOVER ? _this4.constructor.Event.MOUSELEAVE : _this4.constructor.Event.FOCUSOUT; + $(_this4.element).on(eventIn, _this4.config.selector, function (event) { + return _this4._enter(event); + }).on(eventOut, _this4.config.selector, function (event) { + return _this4._leave(event); + }); + } + }); + $(this.element).closest('.modal').on('hide.bs.modal', function () { + if (_this4.element) { + _this4.hide(); + } + }); + + if (this.config.selector) { + this.config = _objectSpread({}, this.config, { + trigger: 'manual', + selector: '' + }); + } else { + this._fixTitle(); + } + }; + + _proto._fixTitle = function _fixTitle() { + var titleType = typeof this.element.getAttribute('data-original-title'); + + if (this.element.getAttribute('title') || titleType !== 'string') { + this.element.setAttribute('data-original-title', this.element.getAttribute('title') || ''); + this.element.setAttribute('title', ''); + } + }; + + _proto._enter = function _enter(event, context) { + var dataKey = this.constructor.DATA_KEY; + context = context || $(event.currentTarget).data(dataKey); + + if (!context) { + context = new this.constructor(event.currentTarget, this._getDelegateConfig()); + $(event.currentTarget).data(dataKey, context); + } + + if (event) { + context._activeTrigger[event.type === 'focusin' ? Trigger.FOCUS : Trigger.HOVER] = true; + } + + if ($(context.getTipElement()).hasClass(ClassName$6.SHOW) || context._hoverState === HoverState.SHOW) { + context._hoverState = HoverState.SHOW; + return; + } + + clearTimeout(context._timeout); + context._hoverState = HoverState.SHOW; + + if (!context.config.delay || !context.config.delay.show) { + context.show(); + return; + } + + context._timeout = setTimeout(function () { + if (context._hoverState === HoverState.SHOW) { + context.show(); + } + }, context.config.delay.show); + }; + + _proto._leave = function _leave(event, context) { + var dataKey = this.constructor.DATA_KEY; + context = context || $(event.currentTarget).data(dataKey); + + if (!context) { + context = new this.constructor(event.currentTarget, this._getDelegateConfig()); + $(event.currentTarget).data(dataKey, context); + } + + if (event) { + context._activeTrigger[event.type === 'focusout' ? Trigger.FOCUS : Trigger.HOVER] = false; + } + + if (context._isWithActiveTrigger()) { + return; + } + + clearTimeout(context._timeout); + context._hoverState = HoverState.OUT; + + if (!context.config.delay || !context.config.delay.hide) { + context.hide(); + return; + } + + context._timeout = setTimeout(function () { + if (context._hoverState === HoverState.OUT) { + context.hide(); + } + }, context.config.delay.hide); + }; + + _proto._isWithActiveTrigger = function _isWithActiveTrigger() { + for (var trigger in this._activeTrigger) { + if (this._activeTrigger[trigger]) { + return true; + } + } + + return false; + }; + + _proto._getConfig = function _getConfig(config) { + var dataAttributes = $(this.element).data(); + Object.keys(dataAttributes).forEach(function (dataAttr) { + if (DISALLOWED_ATTRIBUTES.indexOf(dataAttr) !== -1) { + delete dataAttributes[dataAttr]; + } + }); + config = _objectSpread({}, this.constructor.Default, dataAttributes, typeof config === 'object' && config ? config : {}); + + if (typeof config.delay === 'number') { + config.delay = { + show: config.delay, + hide: config.delay + }; + } + + if (typeof config.title === 'number') { + config.title = config.title.toString(); + } + + if (typeof config.content === 'number') { + config.content = config.content.toString(); + } + + Util.typeCheckConfig(NAME$6, config, this.constructor.DefaultType); + + if (config.sanitize) { + config.template = sanitizeHtml(config.template, config.whiteList, config.sanitizeFn); + } + + return config; + }; + + _proto._getDelegateConfig = function _getDelegateConfig() { + var config = {}; + + if (this.config) { + for (var key in this.config) { + if (this.constructor.Default[key] !== this.config[key]) { + config[key] = this.config[key]; + } + } + } + + return config; + }; + + _proto._cleanTipClass = function _cleanTipClass() { + var $tip = $(this.getTipElement()); + var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX); + + if (tabClass !== null && tabClass.length) { + $tip.removeClass(tabClass.join('')); + } + }; + + _proto._handlePopperPlacementChange = function _handlePopperPlacementChange(popperData) { + var popperInstance = popperData.instance; + this.tip = popperInstance.popper; + + this._cleanTipClass(); + + this.addAttachmentClass(this._getAttachment(popperData.placement)); + }; + + _proto._fixTransition = function _fixTransition() { + var tip = this.getTipElement(); + var initConfigAnimation = this.config.animation; + + if (tip.getAttribute('x-placement') !== null) { + return; + } + + $(tip).removeClass(ClassName$6.FADE); + this.config.animation = false; + this.hide(); + this.show(); + this.config.animation = initConfigAnimation; + } // Static + ; + + Tooltip._jQueryInterface = function _jQueryInterface(config) { + return this.each(function () { + var data = $(this).data(DATA_KEY$6); + + var _config = typeof config === 'object' && config; + + if (!data && /dispose|hide/.test(config)) { + return; + } + + if (!data) { + data = new Tooltip(this, _config); + $(this).data(DATA_KEY$6, data); + } + + if (typeof config === 'string') { + if (typeof data[config] === 'undefined') { + throw new TypeError("No method named \"" + config + "\""); + } + + data[config](); + } + }); + }; + + _createClass(Tooltip, null, [{ + key: "VERSION", + get: function get() { + return VERSION$6; + } + }, { + key: "Default", + get: function get() { + return Default$4; + } + }, { + key: "NAME", + get: function get() { + return NAME$6; + } + }, { + key: "DATA_KEY", + get: function get() { + return DATA_KEY$6; + } + }, { + key: "Event", + get: function get() { + return Event$6; + } + }, { + key: "EVENT_KEY", + get: function get() { + return EVENT_KEY$6; + } + }, { + key: "DefaultType", + get: function get() { + return DefaultType$4; + } + }]); + + return Tooltip; + }(); + /** + * ------------------------------------------------------------------------ + * jQuery + * ------------------------------------------------------------------------ + */ + + + $.fn[NAME$6] = Tooltip._jQueryInterface; + $.fn[NAME$6].Constructor = Tooltip; + + $.fn[NAME$6].noConflict = function () { + $.fn[NAME$6] = JQUERY_NO_CONFLICT$6; + return Tooltip._jQueryInterface; + }; + + /** + * ------------------------------------------------------------------------ + * Constants + * ------------------------------------------------------------------------ + */ + + var NAME$7 = 'popover'; + var VERSION$7 = '4.3.1'; + var DATA_KEY$7 = 'bs.popover'; + var EVENT_KEY$7 = "." + DATA_KEY$7; + var JQUERY_NO_CONFLICT$7 = $.fn[NAME$7]; + var CLASS_PREFIX$1 = 'bs-popover'; + var BSCLS_PREFIX_REGEX$1 = new RegExp("(^|\\s)" + CLASS_PREFIX$1 + "\\S+", 'g'); + + var Default$5 = _objectSpread({}, Tooltip.Default, { + placement: 'right', + trigger: 'click', + content: '', + template: '' + }); + + var DefaultType$5 = _objectSpread({}, Tooltip.DefaultType, { + content: '(string|element|function)' + }); + + var ClassName$7 = { + FADE: 'fade', + SHOW: 'show' + }; + var Selector$7 = { + TITLE: '.popover-header', + CONTENT: '.popover-body' + }; + var Event$7 = { + HIDE: "hide" + EVENT_KEY$7, + HIDDEN: "hidden" + EVENT_KEY$7, + SHOW: "show" + EVENT_KEY$7, + SHOWN: "shown" + EVENT_KEY$7, + INSERTED: "inserted" + EVENT_KEY$7, + CLICK: "click" + EVENT_KEY$7, + FOCUSIN: "focusin" + EVENT_KEY$7, + FOCUSOUT: "focusout" + EVENT_KEY$7, + MOUSEENTER: "mouseenter" + EVENT_KEY$7, + MOUSELEAVE: "mouseleave" + EVENT_KEY$7 + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + + }; + + var Popover = + /*#__PURE__*/ + function (_Tooltip) { + _inheritsLoose(Popover, _Tooltip); + + function Popover() { + return _Tooltip.apply(this, arguments) || this; + } + + var _proto = Popover.prototype; + + // Overrides + _proto.isWithContent = function isWithContent() { + return this.getTitle() || this._getContent(); + }; + + _proto.addAttachmentClass = function addAttachmentClass(attachment) { + $(this.getTipElement()).addClass(CLASS_PREFIX$1 + "-" + attachment); + }; + + _proto.getTipElement = function getTipElement() { + this.tip = this.tip || $(this.config.template)[0]; + return this.tip; + }; + + _proto.setContent = function setContent() { + var $tip = $(this.getTipElement()); // We use append for html objects to maintain js events + + this.setElementContent($tip.find(Selector$7.TITLE), this.getTitle()); + + var content = this._getContent(); + + if (typeof content === 'function') { + content = content.call(this.element); + } + + this.setElementContent($tip.find(Selector$7.CONTENT), content); + $tip.removeClass(ClassName$7.FADE + " " + ClassName$7.SHOW); + } // Private + ; + + _proto._getContent = function _getContent() { + return this.element.getAttribute('data-content') || this.config.content; + }; + + _proto._cleanTipClass = function _cleanTipClass() { + var $tip = $(this.getTipElement()); + var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX$1); + + if (tabClass !== null && tabClass.length > 0) { + $tip.removeClass(tabClass.join('')); + } + } // Static + ; + + Popover._jQueryInterface = function _jQueryInterface(config) { + return this.each(function () { + var data = $(this).data(DATA_KEY$7); + + var _config = typeof config === 'object' ? config : null; + + if (!data && /dispose|hide/.test(config)) { + return; + } + + if (!data) { + data = new Popover(this, _config); + $(this).data(DATA_KEY$7, data); + } + + if (typeof config === 'string') { + if (typeof data[config] === 'undefined') { + throw new TypeError("No method named \"" + config + "\""); + } + + data[config](); + } + }); + }; + + _createClass(Popover, null, [{ + key: "VERSION", + // Getters + get: function get() { + return VERSION$7; + } + }, { + key: "Default", + get: function get() { + return Default$5; + } + }, { + key: "NAME", + get: function get() { + return NAME$7; + } + }, { + key: "DATA_KEY", + get: function get() { + return DATA_KEY$7; + } + }, { + key: "Event", + get: function get() { + return Event$7; + } + }, { + key: "EVENT_KEY", + get: function get() { + return EVENT_KEY$7; + } + }, { + key: "DefaultType", + get: function get() { + return DefaultType$5; + } + }]); + + return Popover; + }(Tooltip); + /** + * ------------------------------------------------------------------------ + * jQuery + * ------------------------------------------------------------------------ + */ + + + $.fn[NAME$7] = Popover._jQueryInterface; + $.fn[NAME$7].Constructor = Popover; + + $.fn[NAME$7].noConflict = function () { + $.fn[NAME$7] = JQUERY_NO_CONFLICT$7; + return Popover._jQueryInterface; + }; + + /** + * ------------------------------------------------------------------------ + * Constants + * ------------------------------------------------------------------------ + */ + + var NAME$8 = 'scrollspy'; + var VERSION$8 = '4.3.1'; + var DATA_KEY$8 = 'bs.scrollspy'; + var EVENT_KEY$8 = "." + DATA_KEY$8; + var DATA_API_KEY$6 = '.data-api'; + var JQUERY_NO_CONFLICT$8 = $.fn[NAME$8]; + var Default$6 = { + offset: 10, + method: 'auto', + target: '' + }; + var DefaultType$6 = { + offset: 'number', + method: 'string', + target: '(string|element)' + }; + var Event$8 = { + ACTIVATE: "activate" + EVENT_KEY$8, + SCROLL: "scroll" + EVENT_KEY$8, + LOAD_DATA_API: "load" + EVENT_KEY$8 + DATA_API_KEY$6 + }; + var ClassName$8 = { + DROPDOWN_ITEM: 'dropdown-item', + DROPDOWN_MENU: 'dropdown-menu', + ACTIVE: 'active' + }; + var Selector$8 = { + DATA_SPY: '[data-spy="scroll"]', + ACTIVE: '.active', + NAV_LIST_GROUP: '.nav, .list-group', + NAV_LINKS: '.nav-link', + NAV_ITEMS: '.nav-item', + LIST_ITEMS: '.list-group-item', + DROPDOWN: '.dropdown', + DROPDOWN_ITEMS: '.dropdown-item', + DROPDOWN_TOGGLE: '.dropdown-toggle' + }; + var OffsetMethod = { + OFFSET: 'offset', + POSITION: 'position' + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + + }; + + var ScrollSpy = + /*#__PURE__*/ + function () { + function ScrollSpy(element, config) { + var _this = this; + + this._element = element; + this._scrollElement = element.tagName === 'BODY' ? window : element; + this._config = this._getConfig(config); + this._selector = this._config.target + " " + Selector$8.NAV_LINKS + "," + (this._config.target + " " + Selector$8.LIST_ITEMS + ",") + (this._config.target + " " + Selector$8.DROPDOWN_ITEMS); + this._offsets = []; + this._targets = []; + this._activeTarget = null; + this._scrollHeight = 0; + $(this._scrollElement).on(Event$8.SCROLL, function (event) { + return _this._process(event); + }); + this.refresh(); + + this._process(); + } // Getters + + + var _proto = ScrollSpy.prototype; + + // Public + _proto.refresh = function refresh() { + var _this2 = this; + + var autoMethod = this._scrollElement === this._scrollElement.window ? OffsetMethod.OFFSET : OffsetMethod.POSITION; + var offsetMethod = this._config.method === 'auto' ? autoMethod : this._config.method; + var offsetBase = offsetMethod === OffsetMethod.POSITION ? this._getScrollTop() : 0; + this._offsets = []; + this._targets = []; + this._scrollHeight = this._getScrollHeight(); + var targets = [].slice.call(document.querySelectorAll(this._selector)); + targets.map(function (element) { + var target; + var targetSelector = Util.getSelectorFromElement(element); + + if (targetSelector) { + target = document.querySelector(targetSelector); + } + + if (target) { + var targetBCR = target.getBoundingClientRect(); + + if (targetBCR.width || targetBCR.height) { + // TODO (fat): remove sketch reliance on jQuery position/offset + return [$(target)[offsetMethod]().top + offsetBase, targetSelector]; + } + } + + return null; + }).filter(function (item) { + return item; + }).sort(function (a, b) { + return a[0] - b[0]; + }).forEach(function (item) { + _this2._offsets.push(item[0]); + + _this2._targets.push(item[1]); + }); + }; + + _proto.dispose = function dispose() { + $.removeData(this._element, DATA_KEY$8); + $(this._scrollElement).off(EVENT_KEY$8); + this._element = null; + this._scrollElement = null; + this._config = null; + this._selector = null; + this._offsets = null; + this._targets = null; + this._activeTarget = null; + this._scrollHeight = null; + } // Private + ; + + _proto._getConfig = function _getConfig(config) { + config = _objectSpread({}, Default$6, typeof config === 'object' && config ? config : {}); + + if (typeof config.target !== 'string') { + var id = $(config.target).attr('id'); + + if (!id) { + id = Util.getUID(NAME$8); + $(config.target).attr('id', id); + } + + config.target = "#" + id; + } + + Util.typeCheckConfig(NAME$8, config, DefaultType$6); + return config; + }; + + _proto._getScrollTop = function _getScrollTop() { + return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop; + }; + + _proto._getScrollHeight = function _getScrollHeight() { + return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight); + }; + + _proto._getOffsetHeight = function _getOffsetHeight() { + return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height; + }; + + _proto._process = function _process() { + var scrollTop = this._getScrollTop() + this._config.offset; + + var scrollHeight = this._getScrollHeight(); + + var maxScroll = this._config.offset + scrollHeight - this._getOffsetHeight(); + + if (this._scrollHeight !== scrollHeight) { + this.refresh(); + } + + if (scrollTop >= maxScroll) { + var target = this._targets[this._targets.length - 1]; + + if (this._activeTarget !== target) { + this._activate(target); + } + + return; + } + + if (this._activeTarget && scrollTop < this._offsets[0] && this._offsets[0] > 0) { + this._activeTarget = null; + + this._clear(); + + return; + } + + var offsetLength = this._offsets.length; + + for (var i = offsetLength; i--;) { + var isActiveTarget = this._activeTarget !== this._targets[i] && scrollTop >= this._offsets[i] && (typeof this._offsets[i + 1] === 'undefined' || scrollTop < this._offsets[i + 1]); + + if (isActiveTarget) { + this._activate(this._targets[i]); + } + } + }; + + _proto._activate = function _activate(target) { + this._activeTarget = target; + + this._clear(); + + var queries = this._selector.split(',').map(function (selector) { + return selector + "[data-target=\"" + target + "\"]," + selector + "[href=\"" + target + "\"]"; + }); + + var $link = $([].slice.call(document.querySelectorAll(queries.join(',')))); + + if ($link.hasClass(ClassName$8.DROPDOWN_ITEM)) { + $link.closest(Selector$8.DROPDOWN).find(Selector$8.DROPDOWN_TOGGLE).addClass(ClassName$8.ACTIVE); + $link.addClass(ClassName$8.ACTIVE); + } else { + // Set triggered link as active + $link.addClass(ClassName$8.ACTIVE); // Set triggered links parents as active + // With both
    and
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:vn},Ln="show",xn="out",Pn={HIDE:"hide"+Tn,HIDDEN:"hidden"+Tn,SHOW:"show"+Tn,SHOWN:"shown"+Tn,INSERTED:"inserted"+Tn,CLICK:"click"+Tn,FOCUSIN:"focusin"+Tn,FOCUSOUT:"focusout"+Tn,MOUSEENTER:"mouseenter"+Tn,MOUSELEAVE:"mouseleave"+Tn},Hn="fade",jn="show",Rn=".tooltip-inner",Fn=".arrow",Mn="hover",Wn="focus",Un="click",Bn="manual",qn=function(){function i(t,e){if("undefined"==typeof be)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var t=i.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=p(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),p(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(p(this.getTipElement()).hasClass(jn))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),p.removeData(this.element,this.constructor.DATA_KEY),p(this.element).off(this.constructor.EVENT_KEY),p(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&p(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===p(this.element).css("display"))throw new Error("Please use show on visible elements");var t=p.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){p(this.element).trigger(t);var n=m.findShadowRoot(this.element),i=p.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!i)return;var o=this.getTipElement(),r=m.getUID(this.constructor.NAME);o.setAttribute("id",r),this.element.setAttribute("aria-describedby",r),this.setContent(),this.config.animation&&p(o).addClass(Hn);var s="function"==typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,a=this._getAttachment(s);this.addAttachmentClass(a);var l=this._getContainer();p(o).data(this.constructor.DATA_KEY,this),p.contains(this.element.ownerDocument.documentElement,this.tip)||p(o).appendTo(l),p(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new be(this.element,o,{placement:a,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:Fn},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}}),p(o).addClass(jn),"ontouchstart"in document.documentElement&&p(document.body).children().on("mouseover",null,p.noop);var c=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,p(e.element).trigger(e.constructor.Event.SHOWN),t===xn&&e._leave(null,e)};if(p(this.tip).hasClass(Hn)){var h=m.getTransitionDurationFromElement(this.tip);p(this.tip).one(m.TRANSITION_END,c).emulateTransitionEnd(h)}else c()}},t.hide=function(t){var e=this,n=this.getTipElement(),i=p.Event(this.constructor.Event.HIDE),o=function(){e._hoverState!==Ln&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),p(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(p(this.element).trigger(i),!i.isDefaultPrevented()){if(p(n).removeClass(jn),"ontouchstart"in document.documentElement&&p(document.body).children().off("mouseover",null,p.noop),this._activeTrigger[Un]=!1,this._activeTrigger[Wn]=!1,this._activeTrigger[Mn]=!1,p(this.tip).hasClass(Hn)){var r=m.getTransitionDurationFromElement(n);p(n).one(m.TRANSITION_END,o).emulateTransitionEnd(r)}else o();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(t){p(this.getTipElement()).addClass(Dn+"-"+t)},t.getTipElement=function(){return this.tip=this.tip||p(this.config.template)[0],this.tip},t.setContent=function(){var t=this.getTipElement();this.setElementContent(p(t.querySelectorAll(Rn)),this.getTitle()),p(t).removeClass(Hn+" "+jn)},t.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=bn(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?p(e).parent().is(t)||t.empty().append(e):t.text(p(e).text())},t.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=l({},t.offsets,e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},t._getContainer=function(){return!1===this.config.container?document.body:m.isElement(this.config.container)?p(this.config.container):p(document).find(this.config.container)},t._getAttachment=function(t){return Nn[t.toUpperCase()]},t._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)p(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(t){return i.toggle(t)});else if(t!==Bn){var e=t===Mn?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=t===Mn?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;p(i.element).on(e,i.config.selector,function(t){return i._enter(t)}).on(n,i.config.selector,function(t){return i._leave(t)})}}),p(this.element).closest(".modal").on("hide.bs.modal",function(){i.element&&i.hide()}),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||p(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),p(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?Wn:Mn]=!0),p(e.getTipElement()).hasClass(jn)||e._hoverState===Ln?e._hoverState=Ln:(clearTimeout(e._timeout),e._hoverState=Ln,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===Ln&&e.show()},e.config.delay.show):e.show())},t._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||p(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),p(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?Wn:Mn]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=xn,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===xn&&e.hide()},e.config.delay.hide):e.hide())},t._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},t._getConfig=function(t){var e=p(this.element).data();return Object.keys(e).forEach(function(t){-1!==An.indexOf(t)&&delete e[t]}),"number"==typeof(t=l({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),m.typeCheckConfig(wn,t,this.constructor.DefaultType),t.sanitize&&(t.template=bn(t.template,t.whiteList,t.sanitizeFn)),t},t._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},t._cleanTipClass=function(){var t=p(this.getTipElement()),e=t.attr("class").match(In);null!==e&&e.length&&t.removeClass(e.join(""))},t._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},t._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(p(t).removeClass(Hn),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},i._jQueryInterface=function(n){return this.each(function(){var t=p(this).data(Cn),e="object"==typeof n&&n;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),p(this).data(Cn,t)),"string"==typeof n)){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return kn}},{key:"NAME",get:function(){return wn}},{key:"DATA_KEY",get:function(){return Cn}},{key:"Event",get:function(){return Pn}},{key:"EVENT_KEY",get:function(){return Tn}},{key:"DefaultType",get:function(){return On}}]),i}();p.fn[wn]=qn._jQueryInterface,p.fn[wn].Constructor=qn,p.fn[wn].noConflict=function(){return p.fn[wn]=Sn,qn._jQueryInterface};var Kn="popover",Qn="bs.popover",Vn="."+Qn,Yn=p.fn[Kn],zn="bs-popover",Xn=new RegExp("(^|\\s)"+zn+"\\S+","g"),Gn=l({},qn.Default,{placement:"right",trigger:"click",content:"",template:''}),$n=l({},qn.DefaultType,{content:"(string|element|function)"}),Jn="fade",Zn="show",ti=".popover-header",ei=".popover-body",ni={HIDE:"hide"+Vn,HIDDEN:"hidden"+Vn,SHOW:"show"+Vn,SHOWN:"shown"+Vn,INSERTED:"inserted"+Vn,CLICK:"click"+Vn,FOCUSIN:"focusin"+Vn,FOCUSOUT:"focusout"+Vn,MOUSEENTER:"mouseenter"+Vn,MOUSELEAVE:"mouseleave"+Vn},ii=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),(e.prototype.constructor=e).__proto__=n;var o=i.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(t){p(this.getTipElement()).addClass(zn+"-"+t)},o.getTipElement=function(){return this.tip=this.tip||p(this.config.template)[0],this.tip},o.setContent=function(){var t=p(this.getTipElement());this.setElementContent(t.find(ti),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(ei),e),t.removeClass(Jn+" "+Zn)},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var t=p(this.getTipElement()),e=t.attr("class").match(Xn);null!==e&&0=this._offsets[o]&&("undefined"==typeof this._offsets[o+1]||t 0; + this._pointerEvent = Boolean(window.PointerEvent || window.MSPointerEvent); + + this._addEventListeners(); + } // Getters + + + var _proto = Carousel.prototype; + + // Public + _proto.next = function next() { + if (!this._isSliding) { + this._slide(Direction.NEXT); + } + }; + + _proto.nextWhenVisible = function nextWhenVisible() { + // Don't call next when the page isn't visible + // or the carousel or its parent isn't visible + if (!document.hidden && $(this._element).is(':visible') && $(this._element).css('visibility') !== 'hidden') { + this.next(); + } + }; + + _proto.prev = function prev() { + if (!this._isSliding) { + this._slide(Direction.PREV); + } + }; + + _proto.pause = function pause(event) { + if (!event) { + this._isPaused = true; + } + + if (this._element.querySelector(Selector$2.NEXT_PREV)) { + Util.triggerTransitionEnd(this._element); + this.cycle(true); + } + + clearInterval(this._interval); + this._interval = null; + }; + + _proto.cycle = function cycle(event) { + if (!event) { + this._isPaused = false; + } + + if (this._interval) { + clearInterval(this._interval); + this._interval = null; + } + + if (this._config.interval && !this._isPaused) { + this._interval = setInterval((document.visibilityState ? this.nextWhenVisible : this.next).bind(this), this._config.interval); + } + }; + + _proto.to = function to(index) { + var _this = this; + + this._activeElement = this._element.querySelector(Selector$2.ACTIVE_ITEM); + + var activeIndex = this._getItemIndex(this._activeElement); + + if (index > this._items.length - 1 || index < 0) { + return; + } + + if (this._isSliding) { + $(this._element).one(Event$2.SLID, function () { + return _this.to(index); + }); + return; + } + + if (activeIndex === index) { + this.pause(); + this.cycle(); + return; + } + + var direction = index > activeIndex ? Direction.NEXT : Direction.PREV; + + this._slide(direction, this._items[index]); + }; + + _proto.dispose = function dispose() { + $(this._element).off(EVENT_KEY$2); + $.removeData(this._element, DATA_KEY$2); + this._items = null; + this._config = null; + this._element = null; + this._interval = null; + this._isPaused = null; + this._isSliding = null; + this._activeElement = null; + this._indicatorsElement = null; + } // Private + ; + + _proto._getConfig = function _getConfig(config) { + config = _objectSpread({}, Default, config); + Util.typeCheckConfig(NAME$2, config, DefaultType); + return config; + }; + + _proto._handleSwipe = function _handleSwipe() { + var absDeltax = Math.abs(this.touchDeltaX); + + if (absDeltax <= SWIPE_THRESHOLD) { + return; + } + + var direction = absDeltax / this.touchDeltaX; // swipe left + + if (direction > 0) { + this.prev(); + } // swipe right + + + if (direction < 0) { + this.next(); + } + }; + + _proto._addEventListeners = function _addEventListeners() { + var _this2 = this; + + if (this._config.keyboard) { + $(this._element).on(Event$2.KEYDOWN, function (event) { + return _this2._keydown(event); + }); + } + + if (this._config.pause === 'hover') { + $(this._element).on(Event$2.MOUSEENTER, function (event) { + return _this2.pause(event); + }).on(Event$2.MOUSELEAVE, function (event) { + return _this2.cycle(event); + }); + } + + if (this._config.touch) { + this._addTouchEventListeners(); + } + }; + + _proto._addTouchEventListeners = function _addTouchEventListeners() { + var _this3 = this; + + if (!this._touchSupported) { + return; + } + + var start = function start(event) { + if (_this3._pointerEvent && PointerType[event.originalEvent.pointerType.toUpperCase()]) { + _this3.touchStartX = event.originalEvent.clientX; + } else if (!_this3._pointerEvent) { + _this3.touchStartX = event.originalEvent.touches[0].clientX; + } + }; + + var move = function move(event) { + // ensure swiping with one touch and not pinching + if (event.originalEvent.touches && event.originalEvent.touches.length > 1) { + _this3.touchDeltaX = 0; + } else { + _this3.touchDeltaX = event.originalEvent.touches[0].clientX - _this3.touchStartX; + } + }; + + var end = function end(event) { + if (_this3._pointerEvent && PointerType[event.originalEvent.pointerType.toUpperCase()]) { + _this3.touchDeltaX = event.originalEvent.clientX - _this3.touchStartX; + } + + _this3._handleSwipe(); + + if (_this3._config.pause === 'hover') { + // If it's a touch-enabled device, mouseenter/leave are fired as + // part of the mouse compatibility events on first tap - the carousel + // would stop cycling until user tapped out of it; + // here, we listen for touchend, explicitly pause the carousel + // (as if it's the second time we tap on it, mouseenter compat event + // is NOT fired) and after a timeout (to allow for mouse compatibility + // events to fire) we explicitly restart cycling + _this3.pause(); + + if (_this3.touchTimeout) { + clearTimeout(_this3.touchTimeout); + } + + _this3.touchTimeout = setTimeout(function (event) { + return _this3.cycle(event); + }, TOUCHEVENT_COMPAT_WAIT + _this3._config.interval); + } + }; + + $(this._element.querySelectorAll(Selector$2.ITEM_IMG)).on(Event$2.DRAG_START, function (e) { + return e.preventDefault(); + }); + + if (this._pointerEvent) { + $(this._element).on(Event$2.POINTERDOWN, function (event) { + return start(event); + }); + $(this._element).on(Event$2.POINTERUP, function (event) { + return end(event); + }); + + this._element.classList.add(ClassName$2.POINTER_EVENT); + } else { + $(this._element).on(Event$2.TOUCHSTART, function (event) { + return start(event); + }); + $(this._element).on(Event$2.TOUCHMOVE, function (event) { + return move(event); + }); + $(this._element).on(Event$2.TOUCHEND, function (event) { + return end(event); + }); + } + }; + + _proto._keydown = function _keydown(event) { + if (/input|textarea/i.test(event.target.tagName)) { + return; + } + + switch (event.which) { + case ARROW_LEFT_KEYCODE: + event.preventDefault(); + this.prev(); + break; + + case ARROW_RIGHT_KEYCODE: + event.preventDefault(); + this.next(); + break; + + default: + } + }; + + _proto._getItemIndex = function _getItemIndex(element) { + this._items = element && element.parentNode ? [].slice.call(element.parentNode.querySelectorAll(Selector$2.ITEM)) : []; + return this._items.indexOf(element); + }; + + _proto._getItemByDirection = function _getItemByDirection(direction, activeElement) { + var isNextDirection = direction === Direction.NEXT; + var isPrevDirection = direction === Direction.PREV; + + var activeIndex = this._getItemIndex(activeElement); + + var lastItemIndex = this._items.length - 1; + var isGoingToWrap = isPrevDirection && activeIndex === 0 || isNextDirection && activeIndex === lastItemIndex; + + if (isGoingToWrap && !this._config.wrap) { + return activeElement; + } + + var delta = direction === Direction.PREV ? -1 : 1; + var itemIndex = (activeIndex + delta) % this._items.length; + return itemIndex === -1 ? this._items[this._items.length - 1] : this._items[itemIndex]; + }; + + _proto._triggerSlideEvent = function _triggerSlideEvent(relatedTarget, eventDirectionName) { + var targetIndex = this._getItemIndex(relatedTarget); + + var fromIndex = this._getItemIndex(this._element.querySelector(Selector$2.ACTIVE_ITEM)); + + var slideEvent = $.Event(Event$2.SLIDE, { + relatedTarget: relatedTarget, + direction: eventDirectionName, + from: fromIndex, + to: targetIndex + }); + $(this._element).trigger(slideEvent); + return slideEvent; + }; + + _proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) { + if (this._indicatorsElement) { + var indicators = [].slice.call(this._indicatorsElement.querySelectorAll(Selector$2.ACTIVE)); + $(indicators).removeClass(ClassName$2.ACTIVE); + + var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)]; + + if (nextIndicator) { + $(nextIndicator).addClass(ClassName$2.ACTIVE); + } + } + }; + + _proto._slide = function _slide(direction, element) { + var _this4 = this; + + var activeElement = this._element.querySelector(Selector$2.ACTIVE_ITEM); + + var activeElementIndex = this._getItemIndex(activeElement); + + var nextElement = element || activeElement && this._getItemByDirection(direction, activeElement); + + var nextElementIndex = this._getItemIndex(nextElement); + + var isCycling = Boolean(this._interval); + var directionalClassName; + var orderClassName; + var eventDirectionName; + + if (direction === Direction.NEXT) { + directionalClassName = ClassName$2.LEFT; + orderClassName = ClassName$2.NEXT; + eventDirectionName = Direction.LEFT; + } else { + directionalClassName = ClassName$2.RIGHT; + orderClassName = ClassName$2.PREV; + eventDirectionName = Direction.RIGHT; + } + + if (nextElement && $(nextElement).hasClass(ClassName$2.ACTIVE)) { + this._isSliding = false; + return; + } + + var slideEvent = this._triggerSlideEvent(nextElement, eventDirectionName); + + if (slideEvent.isDefaultPrevented()) { + return; + } + + if (!activeElement || !nextElement) { + // Some weirdness is happening, so we bail + return; + } + + this._isSliding = true; + + if (isCycling) { + this.pause(); + } + + this._setActiveIndicatorElement(nextElement); + + var slidEvent = $.Event(Event$2.SLID, { + relatedTarget: nextElement, + direction: eventDirectionName, + from: activeElementIndex, + to: nextElementIndex + }); + + if ($(this._element).hasClass(ClassName$2.SLIDE)) { + $(nextElement).addClass(orderClassName); + Util.reflow(nextElement); + $(activeElement).addClass(directionalClassName); + $(nextElement).addClass(directionalClassName); + var nextElementInterval = parseInt(nextElement.getAttribute('data-interval'), 10); + + if (nextElementInterval) { + this._config.defaultInterval = this._config.defaultInterval || this._config.interval; + this._config.interval = nextElementInterval; + } else { + this._config.interval = this._config.defaultInterval || this._config.interval; + } + + var transitionDuration = Util.getTransitionDurationFromElement(activeElement); + $(activeElement).one(Util.TRANSITION_END, function () { + $(nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(ClassName$2.ACTIVE); + $(activeElement).removeClass(ClassName$2.ACTIVE + " " + orderClassName + " " + directionalClassName); + _this4._isSliding = false; + setTimeout(function () { + return $(_this4._element).trigger(slidEvent); + }, 0); + }).emulateTransitionEnd(transitionDuration); + } else { + $(activeElement).removeClass(ClassName$2.ACTIVE); + $(nextElement).addClass(ClassName$2.ACTIVE); + this._isSliding = false; + $(this._element).trigger(slidEvent); + } + + if (isCycling) { + this.cycle(); + } + } // Static + ; + + Carousel._jQueryInterface = function _jQueryInterface(config) { + return this.each(function () { + var data = $(this).data(DATA_KEY$2); + + var _config = _objectSpread({}, Default, $(this).data()); + + if (typeof config === 'object') { + _config = _objectSpread({}, _config, config); + } + + var action = typeof config === 'string' ? config : _config.slide; + + if (!data) { + data = new Carousel(this, _config); + $(this).data(DATA_KEY$2, data); + } + + if (typeof config === 'number') { + data.to(config); + } else if (typeof action === 'string') { + if (typeof data[action] === 'undefined') { + throw new TypeError("No method named \"" + action + "\""); + } + + data[action](); + } else if (_config.interval && _config.ride) { + data.pause(); + data.cycle(); + } + }); + }; + + Carousel._dataApiClickHandler = function _dataApiClickHandler(event) { + var selector = Util.getSelectorFromElement(this); + + if (!selector) { + return; + } + + var target = $(selector)[0]; + + if (!target || !$(target).hasClass(ClassName$2.CAROUSEL)) { + return; + } + + var config = _objectSpread({}, $(target).data(), $(this).data()); + + var slideIndex = this.getAttribute('data-slide-to'); + + if (slideIndex) { + config.interval = false; + } + + Carousel._jQueryInterface.call($(target), config); + + if (slideIndex) { + $(target).data(DATA_KEY$2).to(slideIndex); + } + + event.preventDefault(); + }; + + _createClass(Carousel, null, [{ + key: "VERSION", + get: function get() { + return VERSION$2; + } + }, { + key: "Default", + get: function get() { + return Default; + } + }]); + + return Carousel; + }(); + /** + * ------------------------------------------------------------------------ + * Data Api implementation + * ------------------------------------------------------------------------ + */ + + + $(document).on(Event$2.CLICK_DATA_API, Selector$2.DATA_SLIDE, Carousel._dataApiClickHandler); + $(window).on(Event$2.LOAD_DATA_API, function () { + var carousels = [].slice.call(document.querySelectorAll(Selector$2.DATA_RIDE)); + + for (var i = 0, len = carousels.length; i < len; i++) { + var $carousel = $(carousels[i]); + + Carousel._jQueryInterface.call($carousel, $carousel.data()); + } + }); + /** + * ------------------------------------------------------------------------ + * jQuery + * ------------------------------------------------------------------------ + */ + + $.fn[NAME$2] = Carousel._jQueryInterface; + $.fn[NAME$2].Constructor = Carousel; + + $.fn[NAME$2].noConflict = function () { + $.fn[NAME$2] = JQUERY_NO_CONFLICT$2; + return Carousel._jQueryInterface; + }; + + /** + * ------------------------------------------------------------------------ + * Constants + * ------------------------------------------------------------------------ + */ + + var NAME$3 = 'collapse'; + var VERSION$3 = '4.3.1'; + var DATA_KEY$3 = 'bs.collapse'; + var EVENT_KEY$3 = "." + DATA_KEY$3; + var DATA_API_KEY$3 = '.data-api'; + var JQUERY_NO_CONFLICT$3 = $.fn[NAME$3]; + var Default$1 = { + toggle: true, + parent: '' + }; + var DefaultType$1 = { + toggle: 'boolean', + parent: '(string|element)' + }; + var Event$3 = { + SHOW: "show" + EVENT_KEY$3, + SHOWN: "shown" + EVENT_KEY$3, + HIDE: "hide" + EVENT_KEY$3, + HIDDEN: "hidden" + EVENT_KEY$3, + CLICK_DATA_API: "click" + EVENT_KEY$3 + DATA_API_KEY$3 + }; + var ClassName$3 = { + SHOW: 'show', + COLLAPSE: 'collapse', + COLLAPSING: 'collapsing', + COLLAPSED: 'collapsed' + }; + var Dimension = { + WIDTH: 'width', + HEIGHT: 'height' + }; + var Selector$3 = { + ACTIVES: '.show, .collapsing', + DATA_TOGGLE: '[data-toggle="collapse"]' + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + + }; + + var Collapse = + /*#__PURE__*/ + function () { + function Collapse(element, config) { + this._isTransitioning = false; + this._element = element; + this._config = this._getConfig(config); + this._triggerArray = [].slice.call(document.querySelectorAll("[data-toggle=\"collapse\"][href=\"#" + element.id + "\"]," + ("[data-toggle=\"collapse\"][data-target=\"#" + element.id + "\"]"))); + var toggleList = [].slice.call(document.querySelectorAll(Selector$3.DATA_TOGGLE)); + + for (var i = 0, len = toggleList.length; i < len; i++) { + var elem = toggleList[i]; + var selector = Util.getSelectorFromElement(elem); + var filterElement = [].slice.call(document.querySelectorAll(selector)).filter(function (foundElem) { + return foundElem === element; + }); + + if (selector !== null && filterElement.length > 0) { + this._selector = selector; + + this._triggerArray.push(elem); + } + } + + this._parent = this._config.parent ? this._getParent() : null; + + if (!this._config.parent) { + this._addAriaAndCollapsedClass(this._element, this._triggerArray); + } + + if (this._config.toggle) { + this.toggle(); + } + } // Getters + + + var _proto = Collapse.prototype; + + // Public + _proto.toggle = function toggle() { + if ($(this._element).hasClass(ClassName$3.SHOW)) { + this.hide(); + } else { + this.show(); + } + }; + + _proto.show = function show() { + var _this = this; + + if (this._isTransitioning || $(this._element).hasClass(ClassName$3.SHOW)) { + return; + } + + var actives; + var activesData; + + if (this._parent) { + actives = [].slice.call(this._parent.querySelectorAll(Selector$3.ACTIVES)).filter(function (elem) { + if (typeof _this._config.parent === 'string') { + return elem.getAttribute('data-parent') === _this._config.parent; + } + + return elem.classList.contains(ClassName$3.COLLAPSE); + }); + + if (actives.length === 0) { + actives = null; + } + } + + if (actives) { + activesData = $(actives).not(this._selector).data(DATA_KEY$3); + + if (activesData && activesData._isTransitioning) { + return; + } + } + + var startEvent = $.Event(Event$3.SHOW); + $(this._element).trigger(startEvent); + + if (startEvent.isDefaultPrevented()) { + return; + } + + if (actives) { + Collapse._jQueryInterface.call($(actives).not(this._selector), 'hide'); + + if (!activesData) { + $(actives).data(DATA_KEY$3, null); + } + } + + var dimension = this._getDimension(); + + $(this._element).removeClass(ClassName$3.COLLAPSE).addClass(ClassName$3.COLLAPSING); + this._element.style[dimension] = 0; + + if (this._triggerArray.length) { + $(this._triggerArray).removeClass(ClassName$3.COLLAPSED).attr('aria-expanded', true); + } + + this.setTransitioning(true); + + var complete = function complete() { + $(_this._element).removeClass(ClassName$3.COLLAPSING).addClass(ClassName$3.COLLAPSE).addClass(ClassName$3.SHOW); + _this._element.style[dimension] = ''; + + _this.setTransitioning(false); + + $(_this._element).trigger(Event$3.SHOWN); + }; + + var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1); + var scrollSize = "scroll" + capitalizedDimension; + var transitionDuration = Util.getTransitionDurationFromElement(this._element); + $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); + this._element.style[dimension] = this._element[scrollSize] + "px"; + }; + + _proto.hide = function hide() { + var _this2 = this; + + if (this._isTransitioning || !$(this._element).hasClass(ClassName$3.SHOW)) { + return; + } + + var startEvent = $.Event(Event$3.HIDE); + $(this._element).trigger(startEvent); + + if (startEvent.isDefaultPrevented()) { + return; + } + + var dimension = this._getDimension(); + + this._element.style[dimension] = this._element.getBoundingClientRect()[dimension] + "px"; + Util.reflow(this._element); + $(this._element).addClass(ClassName$3.COLLAPSING).removeClass(ClassName$3.COLLAPSE).removeClass(ClassName$3.SHOW); + var triggerArrayLength = this._triggerArray.length; + + if (triggerArrayLength > 0) { + for (var i = 0; i < triggerArrayLength; i++) { + var trigger = this._triggerArray[i]; + var selector = Util.getSelectorFromElement(trigger); + + if (selector !== null) { + var $elem = $([].slice.call(document.querySelectorAll(selector))); + + if (!$elem.hasClass(ClassName$3.SHOW)) { + $(trigger).addClass(ClassName$3.COLLAPSED).attr('aria-expanded', false); + } + } + } + } + + this.setTransitioning(true); + + var complete = function complete() { + _this2.setTransitioning(false); + + $(_this2._element).removeClass(ClassName$3.COLLAPSING).addClass(ClassName$3.COLLAPSE).trigger(Event$3.HIDDEN); + }; + + this._element.style[dimension] = ''; + var transitionDuration = Util.getTransitionDurationFromElement(this._element); + $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); + }; + + _proto.setTransitioning = function setTransitioning(isTransitioning) { + this._isTransitioning = isTransitioning; + }; + + _proto.dispose = function dispose() { + $.removeData(this._element, DATA_KEY$3); + this._config = null; + this._parent = null; + this._element = null; + this._triggerArray = null; + this._isTransitioning = null; + } // Private + ; + + _proto._getConfig = function _getConfig(config) { + config = _objectSpread({}, Default$1, config); + config.toggle = Boolean(config.toggle); // Coerce string values + + Util.typeCheckConfig(NAME$3, config, DefaultType$1); + return config; + }; + + _proto._getDimension = function _getDimension() { + var hasWidth = $(this._element).hasClass(Dimension.WIDTH); + return hasWidth ? Dimension.WIDTH : Dimension.HEIGHT; + }; + + _proto._getParent = function _getParent() { + var _this3 = this; + + var parent; + + if (Util.isElement(this._config.parent)) { + parent = this._config.parent; // It's a jQuery object + + if (typeof this._config.parent.jquery !== 'undefined') { + parent = this._config.parent[0]; + } + } else { + parent = document.querySelector(this._config.parent); + } + + var selector = "[data-toggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]"; + var children = [].slice.call(parent.querySelectorAll(selector)); + $(children).each(function (i, element) { + _this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]); + }); + return parent; + }; + + _proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) { + var isOpen = $(element).hasClass(ClassName$3.SHOW); + + if (triggerArray.length) { + $(triggerArray).toggleClass(ClassName$3.COLLAPSED, !isOpen).attr('aria-expanded', isOpen); + } + } // Static + ; + + Collapse._getTargetFromElement = function _getTargetFromElement(element) { + var selector = Util.getSelectorFromElement(element); + return selector ? document.querySelector(selector) : null; + }; + + Collapse._jQueryInterface = function _jQueryInterface(config) { + return this.each(function () { + var $this = $(this); + var data = $this.data(DATA_KEY$3); + + var _config = _objectSpread({}, Default$1, $this.data(), typeof config === 'object' && config ? config : {}); + + if (!data && _config.toggle && /show|hide/.test(config)) { + _config.toggle = false; + } + + if (!data) { + data = new Collapse(this, _config); + $this.data(DATA_KEY$3, data); + } + + if (typeof config === 'string') { + if (typeof data[config] === 'undefined') { + throw new TypeError("No method named \"" + config + "\""); + } + + data[config](); + } + }); + }; + + _createClass(Collapse, null, [{ + key: "VERSION", + get: function get() { + return VERSION$3; + } + }, { + key: "Default", + get: function get() { + return Default$1; + } + }]); + + return Collapse; + }(); + /** + * ------------------------------------------------------------------------ + * Data Api implementation + * ------------------------------------------------------------------------ + */ + + + $(document).on(Event$3.CLICK_DATA_API, Selector$3.DATA_TOGGLE, function (event) { + // preventDefault only for elements (which change the URL) not inside the collapsible element + if (event.currentTarget.tagName === 'A') { + event.preventDefault(); + } + + var $trigger = $(this); + var selector = Util.getSelectorFromElement(this); + var selectors = [].slice.call(document.querySelectorAll(selector)); + $(selectors).each(function () { + var $target = $(this); + var data = $target.data(DATA_KEY$3); + var config = data ? 'toggle' : $trigger.data(); + + Collapse._jQueryInterface.call($target, config); + }); + }); + /** + * ------------------------------------------------------------------------ + * jQuery + * ------------------------------------------------------------------------ + */ + + $.fn[NAME$3] = Collapse._jQueryInterface; + $.fn[NAME$3].Constructor = Collapse; + + $.fn[NAME$3].noConflict = function () { + $.fn[NAME$3] = JQUERY_NO_CONFLICT$3; + return Collapse._jQueryInterface; + }; + + /** + * ------------------------------------------------------------------------ + * Constants + * ------------------------------------------------------------------------ + */ + + var NAME$4 = 'dropdown'; + var VERSION$4 = '4.3.1'; + var DATA_KEY$4 = 'bs.dropdown'; + var EVENT_KEY$4 = "." + DATA_KEY$4; + var DATA_API_KEY$4 = '.data-api'; + var JQUERY_NO_CONFLICT$4 = $.fn[NAME$4]; + var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key + + var SPACE_KEYCODE = 32; // KeyboardEvent.which value for space key + + var TAB_KEYCODE = 9; // KeyboardEvent.which value for tab key + + var ARROW_UP_KEYCODE = 38; // KeyboardEvent.which value for up arrow key + + var ARROW_DOWN_KEYCODE = 40; // KeyboardEvent.which value for down arrow key + + var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse) + + var REGEXP_KEYDOWN = new RegExp(ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE); + var Event$4 = { + HIDE: "hide" + EVENT_KEY$4, + HIDDEN: "hidden" + EVENT_KEY$4, + SHOW: "show" + EVENT_KEY$4, + SHOWN: "shown" + EVENT_KEY$4, + CLICK: "click" + EVENT_KEY$4, + CLICK_DATA_API: "click" + EVENT_KEY$4 + DATA_API_KEY$4, + KEYDOWN_DATA_API: "keydown" + EVENT_KEY$4 + DATA_API_KEY$4, + KEYUP_DATA_API: "keyup" + EVENT_KEY$4 + DATA_API_KEY$4 + }; + var ClassName$4 = { + DISABLED: 'disabled', + SHOW: 'show', + DROPUP: 'dropup', + DROPRIGHT: 'dropright', + DROPLEFT: 'dropleft', + MENURIGHT: 'dropdown-menu-right', + MENULEFT: 'dropdown-menu-left', + POSITION_STATIC: 'position-static' + }; + var Selector$4 = { + DATA_TOGGLE: '[data-toggle="dropdown"]', + FORM_CHILD: '.dropdown form', + MENU: '.dropdown-menu', + NAVBAR_NAV: '.navbar-nav', + VISIBLE_ITEMS: '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)' + }; + var AttachmentMap = { + TOP: 'top-start', + TOPEND: 'top-end', + BOTTOM: 'bottom-start', + BOTTOMEND: 'bottom-end', + RIGHT: 'right-start', + RIGHTEND: 'right-end', + LEFT: 'left-start', + LEFTEND: 'left-end' + }; + var Default$2 = { + offset: 0, + flip: true, + boundary: 'scrollParent', + reference: 'toggle', + display: 'dynamic' + }; + var DefaultType$2 = { + offset: '(number|string|function)', + flip: 'boolean', + boundary: '(string|element)', + reference: '(string|element)', + display: 'string' + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + + }; + + var Dropdown = + /*#__PURE__*/ + function () { + function Dropdown(element, config) { + this._element = element; + this._popper = null; + this._config = this._getConfig(config); + this._menu = this._getMenuElement(); + this._inNavbar = this._detectNavbar(); + + this._addEventListeners(); + } // Getters + + + var _proto = Dropdown.prototype; + + // Public + _proto.toggle = function toggle() { + if (this._element.disabled || $(this._element).hasClass(ClassName$4.DISABLED)) { + return; + } + + var parent = Dropdown._getParentFromElement(this._element); + + var isActive = $(this._menu).hasClass(ClassName$4.SHOW); + + Dropdown._clearMenus(); + + if (isActive) { + return; + } + + var relatedTarget = { + relatedTarget: this._element + }; + var showEvent = $.Event(Event$4.SHOW, relatedTarget); + $(parent).trigger(showEvent); + + if (showEvent.isDefaultPrevented()) { + return; + } // Disable totally Popper.js for Dropdown in Navbar + + + if (!this._inNavbar) { + /** + * Check for Popper dependency + * Popper - https://popper.js.org + */ + if (typeof Popper === 'undefined') { + throw new TypeError('Bootstrap\'s dropdowns require Popper.js (https://popper.js.org/)'); + } + + var referenceElement = this._element; + + if (this._config.reference === 'parent') { + referenceElement = parent; + } else if (Util.isElement(this._config.reference)) { + referenceElement = this._config.reference; // Check if it's jQuery element + + if (typeof this._config.reference.jquery !== 'undefined') { + referenceElement = this._config.reference[0]; + } + } // If boundary is not `scrollParent`, then set position to `static` + // to allow the menu to "escape" the scroll parent's boundaries + // https://github.com/twbs/bootstrap/issues/24251 + + + if (this._config.boundary !== 'scrollParent') { + $(parent).addClass(ClassName$4.POSITION_STATIC); + } + + this._popper = new Popper(referenceElement, this._menu, this._getPopperConfig()); + } // If this is a touch-enabled device we add extra + // empty mouseover listeners to the body's immediate children; + // only needed because of broken event delegation on iOS + // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html + + + if ('ontouchstart' in document.documentElement && $(parent).closest(Selector$4.NAVBAR_NAV).length === 0) { + $(document.body).children().on('mouseover', null, $.noop); + } + + this._element.focus(); + + this._element.setAttribute('aria-expanded', true); + + $(this._menu).toggleClass(ClassName$4.SHOW); + $(parent).toggleClass(ClassName$4.SHOW).trigger($.Event(Event$4.SHOWN, relatedTarget)); + }; + + _proto.show = function show() { + if (this._element.disabled || $(this._element).hasClass(ClassName$4.DISABLED) || $(this._menu).hasClass(ClassName$4.SHOW)) { + return; + } + + var relatedTarget = { + relatedTarget: this._element + }; + var showEvent = $.Event(Event$4.SHOW, relatedTarget); + + var parent = Dropdown._getParentFromElement(this._element); + + $(parent).trigger(showEvent); + + if (showEvent.isDefaultPrevented()) { + return; + } + + $(this._menu).toggleClass(ClassName$4.SHOW); + $(parent).toggleClass(ClassName$4.SHOW).trigger($.Event(Event$4.SHOWN, relatedTarget)); + }; + + _proto.hide = function hide() { + if (this._element.disabled || $(this._element).hasClass(ClassName$4.DISABLED) || !$(this._menu).hasClass(ClassName$4.SHOW)) { + return; + } + + var relatedTarget = { + relatedTarget: this._element + }; + var hideEvent = $.Event(Event$4.HIDE, relatedTarget); + + var parent = Dropdown._getParentFromElement(this._element); + + $(parent).trigger(hideEvent); + + if (hideEvent.isDefaultPrevented()) { + return; + } + + $(this._menu).toggleClass(ClassName$4.SHOW); + $(parent).toggleClass(ClassName$4.SHOW).trigger($.Event(Event$4.HIDDEN, relatedTarget)); + }; + + _proto.dispose = function dispose() { + $.removeData(this._element, DATA_KEY$4); + $(this._element).off(EVENT_KEY$4); + this._element = null; + this._menu = null; + + if (this._popper !== null) { + this._popper.destroy(); + + this._popper = null; + } + }; + + _proto.update = function update() { + this._inNavbar = this._detectNavbar(); + + if (this._popper !== null) { + this._popper.scheduleUpdate(); + } + } // Private + ; + + _proto._addEventListeners = function _addEventListeners() { + var _this = this; + + $(this._element).on(Event$4.CLICK, function (event) { + event.preventDefault(); + event.stopPropagation(); + + _this.toggle(); + }); + }; + + _proto._getConfig = function _getConfig(config) { + config = _objectSpread({}, this.constructor.Default, $(this._element).data(), config); + Util.typeCheckConfig(NAME$4, config, this.constructor.DefaultType); + return config; + }; + + _proto._getMenuElement = function _getMenuElement() { + if (!this._menu) { + var parent = Dropdown._getParentFromElement(this._element); + + if (parent) { + this._menu = parent.querySelector(Selector$4.MENU); + } + } + + return this._menu; + }; + + _proto._getPlacement = function _getPlacement() { + var $parentDropdown = $(this._element.parentNode); + var placement = AttachmentMap.BOTTOM; // Handle dropup + + if ($parentDropdown.hasClass(ClassName$4.DROPUP)) { + placement = AttachmentMap.TOP; + + if ($(this._menu).hasClass(ClassName$4.MENURIGHT)) { + placement = AttachmentMap.TOPEND; + } + } else if ($parentDropdown.hasClass(ClassName$4.DROPRIGHT)) { + placement = AttachmentMap.RIGHT; + } else if ($parentDropdown.hasClass(ClassName$4.DROPLEFT)) { + placement = AttachmentMap.LEFT; + } else if ($(this._menu).hasClass(ClassName$4.MENURIGHT)) { + placement = AttachmentMap.BOTTOMEND; + } + + return placement; + }; + + _proto._detectNavbar = function _detectNavbar() { + return $(this._element).closest('.navbar').length > 0; + }; + + _proto._getOffset = function _getOffset() { + var _this2 = this; + + var offset = {}; + + if (typeof this._config.offset === 'function') { + offset.fn = function (data) { + data.offsets = _objectSpread({}, data.offsets, _this2._config.offset(data.offsets, _this2._element) || {}); + return data; + }; + } else { + offset.offset = this._config.offset; + } + + return offset; + }; + + _proto._getPopperConfig = function _getPopperConfig() { + var popperConfig = { + placement: this._getPlacement(), + modifiers: { + offset: this._getOffset(), + flip: { + enabled: this._config.flip + }, + preventOverflow: { + boundariesElement: this._config.boundary + } + } // Disable Popper.js if we have a static display + + }; + + if (this._config.display === 'static') { + popperConfig.modifiers.applyStyle = { + enabled: false + }; + } + + return popperConfig; + } // Static + ; + + Dropdown._jQueryInterface = function _jQueryInterface(config) { + return this.each(function () { + var data = $(this).data(DATA_KEY$4); + + var _config = typeof config === 'object' ? config : null; + + if (!data) { + data = new Dropdown(this, _config); + $(this).data(DATA_KEY$4, data); + } + + if (typeof config === 'string') { + if (typeof data[config] === 'undefined') { + throw new TypeError("No method named \"" + config + "\""); + } + + data[config](); + } + }); + }; + + Dropdown._clearMenus = function _clearMenus(event) { + if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH || event.type === 'keyup' && event.which !== TAB_KEYCODE)) { + return; + } + + var toggles = [].slice.call(document.querySelectorAll(Selector$4.DATA_TOGGLE)); + + for (var i = 0, len = toggles.length; i < len; i++) { + var parent = Dropdown._getParentFromElement(toggles[i]); + + var context = $(toggles[i]).data(DATA_KEY$4); + var relatedTarget = { + relatedTarget: toggles[i] + }; + + if (event && event.type === 'click') { + relatedTarget.clickEvent = event; + } + + if (!context) { + continue; + } + + var dropdownMenu = context._menu; + + if (!$(parent).hasClass(ClassName$4.SHOW)) { + continue; + } + + if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $.contains(parent, event.target)) { + continue; + } + + var hideEvent = $.Event(Event$4.HIDE, relatedTarget); + $(parent).trigger(hideEvent); + + if (hideEvent.isDefaultPrevented()) { + continue; + } // If this is a touch-enabled device we remove the extra + // empty mouseover listeners we added for iOS support + + + if ('ontouchstart' in document.documentElement) { + $(document.body).children().off('mouseover', null, $.noop); + } + + toggles[i].setAttribute('aria-expanded', 'false'); + $(dropdownMenu).removeClass(ClassName$4.SHOW); + $(parent).removeClass(ClassName$4.SHOW).trigger($.Event(Event$4.HIDDEN, relatedTarget)); + } + }; + + Dropdown._getParentFromElement = function _getParentFromElement(element) { + var parent; + var selector = Util.getSelectorFromElement(element); + + if (selector) { + parent = document.querySelector(selector); + } + + return parent || element.parentNode; + } // eslint-disable-next-line complexity + ; + + Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) { + // If not input/textarea: + // - And not a key in REGEXP_KEYDOWN => not a dropdown command + // If input/textarea: + // - If space key => not a dropdown command + // - If key is other than escape + // - If key is not up or down => not a dropdown command + // - If trigger inside the menu => not a dropdown command + if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $(event.target).closest(Selector$4.MENU).length) : !REGEXP_KEYDOWN.test(event.which)) { + return; + } + + event.preventDefault(); + event.stopPropagation(); + + if (this.disabled || $(this).hasClass(ClassName$4.DISABLED)) { + return; + } + + var parent = Dropdown._getParentFromElement(this); + + var isActive = $(parent).hasClass(ClassName$4.SHOW); + + if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) { + if (event.which === ESCAPE_KEYCODE) { + var toggle = parent.querySelector(Selector$4.DATA_TOGGLE); + $(toggle).trigger('focus'); + } + + $(this).trigger('click'); + return; + } + + var items = [].slice.call(parent.querySelectorAll(Selector$4.VISIBLE_ITEMS)); + + if (items.length === 0) { + return; + } + + var index = items.indexOf(event.target); + + if (event.which === ARROW_UP_KEYCODE && index > 0) { + // Up + index--; + } + + if (event.which === ARROW_DOWN_KEYCODE && index < items.length - 1) { + // Down + index++; + } + + if (index < 0) { + index = 0; + } + + items[index].focus(); + }; + + _createClass(Dropdown, null, [{ + key: "VERSION", + get: function get() { + return VERSION$4; + } + }, { + key: "Default", + get: function get() { + return Default$2; + } + }, { + key: "DefaultType", + get: function get() { + return DefaultType$2; + } + }]); + + return Dropdown; + }(); + /** + * ------------------------------------------------------------------------ + * Data Api implementation + * ------------------------------------------------------------------------ + */ + + + $(document).on(Event$4.KEYDOWN_DATA_API, Selector$4.DATA_TOGGLE, Dropdown._dataApiKeydownHandler).on(Event$4.KEYDOWN_DATA_API, Selector$4.MENU, Dropdown._dataApiKeydownHandler).on(Event$4.CLICK_DATA_API + " " + Event$4.KEYUP_DATA_API, Dropdown._clearMenus).on(Event$4.CLICK_DATA_API, Selector$4.DATA_TOGGLE, function (event) { + event.preventDefault(); + event.stopPropagation(); + + Dropdown._jQueryInterface.call($(this), 'toggle'); + }).on(Event$4.CLICK_DATA_API, Selector$4.FORM_CHILD, function (e) { + e.stopPropagation(); + }); + /** + * ------------------------------------------------------------------------ + * jQuery + * ------------------------------------------------------------------------ + */ + + $.fn[NAME$4] = Dropdown._jQueryInterface; + $.fn[NAME$4].Constructor = Dropdown; + + $.fn[NAME$4].noConflict = function () { + $.fn[NAME$4] = JQUERY_NO_CONFLICT$4; + return Dropdown._jQueryInterface; + }; + + /** + * ------------------------------------------------------------------------ + * Constants + * ------------------------------------------------------------------------ + */ + + var NAME$5 = 'modal'; + var VERSION$5 = '4.3.1'; + var DATA_KEY$5 = 'bs.modal'; + var EVENT_KEY$5 = "." + DATA_KEY$5; + var DATA_API_KEY$5 = '.data-api'; + var JQUERY_NO_CONFLICT$5 = $.fn[NAME$5]; + var ESCAPE_KEYCODE$1 = 27; // KeyboardEvent.which value for Escape (Esc) key + + var Default$3 = { + backdrop: true, + keyboard: true, + focus: true, + show: true + }; + var DefaultType$3 = { + backdrop: '(boolean|string)', + keyboard: 'boolean', + focus: 'boolean', + show: 'boolean' + }; + var Event$5 = { + HIDE: "hide" + EVENT_KEY$5, + HIDDEN: "hidden" + EVENT_KEY$5, + SHOW: "show" + EVENT_KEY$5, + SHOWN: "shown" + EVENT_KEY$5, + FOCUSIN: "focusin" + EVENT_KEY$5, + RESIZE: "resize" + EVENT_KEY$5, + CLICK_DISMISS: "click.dismiss" + EVENT_KEY$5, + KEYDOWN_DISMISS: "keydown.dismiss" + EVENT_KEY$5, + MOUSEUP_DISMISS: "mouseup.dismiss" + EVENT_KEY$5, + MOUSEDOWN_DISMISS: "mousedown.dismiss" + EVENT_KEY$5, + CLICK_DATA_API: "click" + EVENT_KEY$5 + DATA_API_KEY$5 + }; + var ClassName$5 = { + SCROLLABLE: 'modal-dialog-scrollable', + SCROLLBAR_MEASURER: 'modal-scrollbar-measure', + BACKDROP: 'modal-backdrop', + OPEN: 'modal-open', + FADE: 'fade', + SHOW: 'show' + }; + var Selector$5 = { + DIALOG: '.modal-dialog', + MODAL_BODY: '.modal-body', + DATA_TOGGLE: '[data-toggle="modal"]', + DATA_DISMISS: '[data-dismiss="modal"]', + FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top', + STICKY_CONTENT: '.sticky-top' + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + + }; + + var Modal = + /*#__PURE__*/ + function () { + function Modal(element, config) { + this._config = this._getConfig(config); + this._element = element; + this._dialog = element.querySelector(Selector$5.DIALOG); + this._backdrop = null; + this._isShown = false; + this._isBodyOverflowing = false; + this._ignoreBackdropClick = false; + this._isTransitioning = false; + this._scrollbarWidth = 0; + } // Getters + + + var _proto = Modal.prototype; + + // Public + _proto.toggle = function toggle(relatedTarget) { + return this._isShown ? this.hide() : this.show(relatedTarget); + }; + + _proto.show = function show(relatedTarget) { + var _this = this; + + if (this._isShown || this._isTransitioning) { + return; + } + + if ($(this._element).hasClass(ClassName$5.FADE)) { + this._isTransitioning = true; + } + + var showEvent = $.Event(Event$5.SHOW, { + relatedTarget: relatedTarget + }); + $(this._element).trigger(showEvent); + + if (this._isShown || showEvent.isDefaultPrevented()) { + return; + } + + this._isShown = true; + + this._checkScrollbar(); + + this._setScrollbar(); + + this._adjustDialog(); + + this._setEscapeEvent(); + + this._setResizeEvent(); + + $(this._element).on(Event$5.CLICK_DISMISS, Selector$5.DATA_DISMISS, function (event) { + return _this.hide(event); + }); + $(this._dialog).on(Event$5.MOUSEDOWN_DISMISS, function () { + $(_this._element).one(Event$5.MOUSEUP_DISMISS, function (event) { + if ($(event.target).is(_this._element)) { + _this._ignoreBackdropClick = true; + } + }); + }); + + this._showBackdrop(function () { + return _this._showElement(relatedTarget); + }); + }; + + _proto.hide = function hide(event) { + var _this2 = this; + + if (event) { + event.preventDefault(); + } + + if (!this._isShown || this._isTransitioning) { + return; + } + + var hideEvent = $.Event(Event$5.HIDE); + $(this._element).trigger(hideEvent); + + if (!this._isShown || hideEvent.isDefaultPrevented()) { + return; + } + + this._isShown = false; + var transition = $(this._element).hasClass(ClassName$5.FADE); + + if (transition) { + this._isTransitioning = true; + } + + this._setEscapeEvent(); + + this._setResizeEvent(); + + $(document).off(Event$5.FOCUSIN); + $(this._element).removeClass(ClassName$5.SHOW); + $(this._element).off(Event$5.CLICK_DISMISS); + $(this._dialog).off(Event$5.MOUSEDOWN_DISMISS); + + if (transition) { + var transitionDuration = Util.getTransitionDurationFromElement(this._element); + $(this._element).one(Util.TRANSITION_END, function (event) { + return _this2._hideModal(event); + }).emulateTransitionEnd(transitionDuration); + } else { + this._hideModal(); + } + }; + + _proto.dispose = function dispose() { + [window, this._element, this._dialog].forEach(function (htmlElement) { + return $(htmlElement).off(EVENT_KEY$5); + }); + /** + * `document` has 2 events `Event.FOCUSIN` and `Event.CLICK_DATA_API` + * Do not move `document` in `htmlElements` array + * It will remove `Event.CLICK_DATA_API` event that should remain + */ + + $(document).off(Event$5.FOCUSIN); + $.removeData(this._element, DATA_KEY$5); + this._config = null; + this._element = null; + this._dialog = null; + this._backdrop = null; + this._isShown = null; + this._isBodyOverflowing = null; + this._ignoreBackdropClick = null; + this._isTransitioning = null; + this._scrollbarWidth = null; + }; + + _proto.handleUpdate = function handleUpdate() { + this._adjustDialog(); + } // Private + ; + + _proto._getConfig = function _getConfig(config) { + config = _objectSpread({}, Default$3, config); + Util.typeCheckConfig(NAME$5, config, DefaultType$3); + return config; + }; + + _proto._showElement = function _showElement(relatedTarget) { + var _this3 = this; + + var transition = $(this._element).hasClass(ClassName$5.FADE); + + if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) { + // Don't move modal's DOM position + document.body.appendChild(this._element); + } + + this._element.style.display = 'block'; + + this._element.removeAttribute('aria-hidden'); + + this._element.setAttribute('aria-modal', true); + + if ($(this._dialog).hasClass(ClassName$5.SCROLLABLE)) { + this._dialog.querySelector(Selector$5.MODAL_BODY).scrollTop = 0; + } else { + this._element.scrollTop = 0; + } + + if (transition) { + Util.reflow(this._element); + } + + $(this._element).addClass(ClassName$5.SHOW); + + if (this._config.focus) { + this._enforceFocus(); + } + + var shownEvent = $.Event(Event$5.SHOWN, { + relatedTarget: relatedTarget + }); + + var transitionComplete = function transitionComplete() { + if (_this3._config.focus) { + _this3._element.focus(); + } + + _this3._isTransitioning = false; + $(_this3._element).trigger(shownEvent); + }; + + if (transition) { + var transitionDuration = Util.getTransitionDurationFromElement(this._dialog); + $(this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration); + } else { + transitionComplete(); + } + }; + + _proto._enforceFocus = function _enforceFocus() { + var _this4 = this; + + $(document).off(Event$5.FOCUSIN) // Guard against infinite focus loop + .on(Event$5.FOCUSIN, function (event) { + if (document !== event.target && _this4._element !== event.target && $(_this4._element).has(event.target).length === 0) { + _this4._element.focus(); + } + }); + }; + + _proto._setEscapeEvent = function _setEscapeEvent() { + var _this5 = this; + + if (this._isShown && this._config.keyboard) { + $(this._element).on(Event$5.KEYDOWN_DISMISS, function (event) { + if (event.which === ESCAPE_KEYCODE$1) { + event.preventDefault(); + + _this5.hide(); + } + }); + } else if (!this._isShown) { + $(this._element).off(Event$5.KEYDOWN_DISMISS); + } + }; + + _proto._setResizeEvent = function _setResizeEvent() { + var _this6 = this; + + if (this._isShown) { + $(window).on(Event$5.RESIZE, function (event) { + return _this6.handleUpdate(event); + }); + } else { + $(window).off(Event$5.RESIZE); + } + }; + + _proto._hideModal = function _hideModal() { + var _this7 = this; + + this._element.style.display = 'none'; + + this._element.setAttribute('aria-hidden', true); + + this._element.removeAttribute('aria-modal'); + + this._isTransitioning = false; + + this._showBackdrop(function () { + $(document.body).removeClass(ClassName$5.OPEN); + + _this7._resetAdjustments(); + + _this7._resetScrollbar(); + + $(_this7._element).trigger(Event$5.HIDDEN); + }); + }; + + _proto._removeBackdrop = function _removeBackdrop() { + if (this._backdrop) { + $(this._backdrop).remove(); + this._backdrop = null; + } + }; + + _proto._showBackdrop = function _showBackdrop(callback) { + var _this8 = this; + + var animate = $(this._element).hasClass(ClassName$5.FADE) ? ClassName$5.FADE : ''; + + if (this._isShown && this._config.backdrop) { + this._backdrop = document.createElement('div'); + this._backdrop.className = ClassName$5.BACKDROP; + + if (animate) { + this._backdrop.classList.add(animate); + } + + $(this._backdrop).appendTo(document.body); + $(this._element).on(Event$5.CLICK_DISMISS, function (event) { + if (_this8._ignoreBackdropClick) { + _this8._ignoreBackdropClick = false; + return; + } + + if (event.target !== event.currentTarget) { + return; + } + + if (_this8._config.backdrop === 'static') { + _this8._element.focus(); + } else { + _this8.hide(); + } + }); + + if (animate) { + Util.reflow(this._backdrop); + } + + $(this._backdrop).addClass(ClassName$5.SHOW); + + if (!callback) { + return; + } + + if (!animate) { + callback(); + return; + } + + var backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop); + $(this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration); + } else if (!this._isShown && this._backdrop) { + $(this._backdrop).removeClass(ClassName$5.SHOW); + + var callbackRemove = function callbackRemove() { + _this8._removeBackdrop(); + + if (callback) { + callback(); + } + }; + + if ($(this._element).hasClass(ClassName$5.FADE)) { + var _backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop); + + $(this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration); + } else { + callbackRemove(); + } + } else if (callback) { + callback(); + } + } // ---------------------------------------------------------------------- + // the following methods are used to handle overflowing modals + // todo (fat): these should probably be refactored out of modal.js + // ---------------------------------------------------------------------- + ; + + _proto._adjustDialog = function _adjustDialog() { + var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight; + + if (!this._isBodyOverflowing && isModalOverflowing) { + this._element.style.paddingLeft = this._scrollbarWidth + "px"; + } + + if (this._isBodyOverflowing && !isModalOverflowing) { + this._element.style.paddingRight = this._scrollbarWidth + "px"; + } + }; + + _proto._resetAdjustments = function _resetAdjustments() { + this._element.style.paddingLeft = ''; + this._element.style.paddingRight = ''; + }; + + _proto._checkScrollbar = function _checkScrollbar() { + var rect = document.body.getBoundingClientRect(); + this._isBodyOverflowing = rect.left + rect.right < window.innerWidth; + this._scrollbarWidth = this._getScrollbarWidth(); + }; + + _proto._setScrollbar = function _setScrollbar() { + var _this9 = this; + + if (this._isBodyOverflowing) { + // Note: DOMNode.style.paddingRight returns the actual value or '' if not set + // while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set + var fixedContent = [].slice.call(document.querySelectorAll(Selector$5.FIXED_CONTENT)); + var stickyContent = [].slice.call(document.querySelectorAll(Selector$5.STICKY_CONTENT)); // Adjust fixed content padding + + $(fixedContent).each(function (index, element) { + var actualPadding = element.style.paddingRight; + var calculatedPadding = $(element).css('padding-right'); + $(element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px"); + }); // Adjust sticky content margin + + $(stickyContent).each(function (index, element) { + var actualMargin = element.style.marginRight; + var calculatedMargin = $(element).css('margin-right'); + $(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px"); + }); // Adjust body padding + + var actualPadding = document.body.style.paddingRight; + var calculatedPadding = $(document.body).css('padding-right'); + $(document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px"); + } + + $(document.body).addClass(ClassName$5.OPEN); + }; + + _proto._resetScrollbar = function _resetScrollbar() { + // Restore fixed content padding + var fixedContent = [].slice.call(document.querySelectorAll(Selector$5.FIXED_CONTENT)); + $(fixedContent).each(function (index, element) { + var padding = $(element).data('padding-right'); + $(element).removeData('padding-right'); + element.style.paddingRight = padding ? padding : ''; + }); // Restore sticky content + + var elements = [].slice.call(document.querySelectorAll("" + Selector$5.STICKY_CONTENT)); + $(elements).each(function (index, element) { + var margin = $(element).data('margin-right'); + + if (typeof margin !== 'undefined') { + $(element).css('margin-right', margin).removeData('margin-right'); + } + }); // Restore body padding + + var padding = $(document.body).data('padding-right'); + $(document.body).removeData('padding-right'); + document.body.style.paddingRight = padding ? padding : ''; + }; + + _proto._getScrollbarWidth = function _getScrollbarWidth() { + // thx d.walsh + var scrollDiv = document.createElement('div'); + scrollDiv.className = ClassName$5.SCROLLBAR_MEASURER; + document.body.appendChild(scrollDiv); + var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth; + document.body.removeChild(scrollDiv); + return scrollbarWidth; + } // Static + ; + + Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) { + return this.each(function () { + var data = $(this).data(DATA_KEY$5); + + var _config = _objectSpread({}, Default$3, $(this).data(), typeof config === 'object' && config ? config : {}); + + if (!data) { + data = new Modal(this, _config); + $(this).data(DATA_KEY$5, data); + } + + if (typeof config === 'string') { + if (typeof data[config] === 'undefined') { + throw new TypeError("No method named \"" + config + "\""); + } + + data[config](relatedTarget); + } else if (_config.show) { + data.show(relatedTarget); + } + }); + }; + + _createClass(Modal, null, [{ + key: "VERSION", + get: function get() { + return VERSION$5; + } + }, { + key: "Default", + get: function get() { + return Default$3; + } + }]); + + return Modal; + }(); + /** + * ------------------------------------------------------------------------ + * Data Api implementation + * ------------------------------------------------------------------------ + */ + + + $(document).on(Event$5.CLICK_DATA_API, Selector$5.DATA_TOGGLE, function (event) { + var _this10 = this; + + var target; + var selector = Util.getSelectorFromElement(this); + + if (selector) { + target = document.querySelector(selector); + } + + var config = $(target).data(DATA_KEY$5) ? 'toggle' : _objectSpread({}, $(target).data(), $(this).data()); + + if (this.tagName === 'A' || this.tagName === 'AREA') { + event.preventDefault(); + } + + var $target = $(target).one(Event$5.SHOW, function (showEvent) { + if (showEvent.isDefaultPrevented()) { + // Only register focus restorer if modal will actually get shown + return; + } + + $target.one(Event$5.HIDDEN, function () { + if ($(_this10).is(':visible')) { + _this10.focus(); + } + }); + }); + + Modal._jQueryInterface.call($(target), config, this); + }); + /** + * ------------------------------------------------------------------------ + * jQuery + * ------------------------------------------------------------------------ + */ + + $.fn[NAME$5] = Modal._jQueryInterface; + $.fn[NAME$5].Constructor = Modal; + + $.fn[NAME$5].noConflict = function () { + $.fn[NAME$5] = JQUERY_NO_CONFLICT$5; + return Modal._jQueryInterface; + }; + + /** + * -------------------------------------------------------------------------- + * Bootstrap (v4.3.1): tools/sanitizer.js + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * -------------------------------------------------------------------------- + */ + var uriAttrs = ['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href']; + var ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i; + var DefaultWhitelist = { + // Global attributes allowed on any supplied element below. + '*': ['class', 'dir', 'id', 'lang', 'role', ARIA_ATTRIBUTE_PATTERN], + a: ['target', 'href', 'title', 'rel'], + area: [], + b: [], + br: [], + col: [], + code: [], + div: [], + em: [], + hr: [], + h1: [], + h2: [], + h3: [], + h4: [], + h5: [], + h6: [], + i: [], + img: ['src', 'alt', 'title', 'width', 'height'], + li: [], + ol: [], + p: [], + pre: [], + s: [], + small: [], + span: [], + sub: [], + sup: [], + strong: [], + u: [], + ul: [] + /** + * A pattern that recognizes a commonly useful subset of URLs that are safe. + * + * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts + */ + + }; + var SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi; + /** + * A pattern that matches safe data URLs. Only matches image, video and audio types. + * + * Shoutout to Angular 7 https://github.com/angular/angular/blob/7.2.4/packages/core/src/sanitization/url_sanitizer.ts + */ + + var DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i; + + function allowedAttribute(attr, allowedAttributeList) { + var attrName = attr.nodeName.toLowerCase(); + + if (allowedAttributeList.indexOf(attrName) !== -1) { + if (uriAttrs.indexOf(attrName) !== -1) { + return Boolean(attr.nodeValue.match(SAFE_URL_PATTERN) || attr.nodeValue.match(DATA_URL_PATTERN)); + } + + return true; + } + + var regExp = allowedAttributeList.filter(function (attrRegex) { + return attrRegex instanceof RegExp; + }); // Check if a regular expression validates the attribute. + + for (var i = 0, l = regExp.length; i < l; i++) { + if (attrName.match(regExp[i])) { + return true; + } + } + + return false; + } + + function sanitizeHtml(unsafeHtml, whiteList, sanitizeFn) { + if (unsafeHtml.length === 0) { + return unsafeHtml; + } + + if (sanitizeFn && typeof sanitizeFn === 'function') { + return sanitizeFn(unsafeHtml); + } + + var domParser = new window.DOMParser(); + var createdDocument = domParser.parseFromString(unsafeHtml, 'text/html'); + var whitelistKeys = Object.keys(whiteList); + var elements = [].slice.call(createdDocument.body.querySelectorAll('*')); + + var _loop = function _loop(i, len) { + var el = elements[i]; + var elName = el.nodeName.toLowerCase(); + + if (whitelistKeys.indexOf(el.nodeName.toLowerCase()) === -1) { + el.parentNode.removeChild(el); + return "continue"; + } + + var attributeList = [].slice.call(el.attributes); + var whitelistedAttributes = [].concat(whiteList['*'] || [], whiteList[elName] || []); + attributeList.forEach(function (attr) { + if (!allowedAttribute(attr, whitelistedAttributes)) { + el.removeAttribute(attr.nodeName); + } + }); + }; + + for (var i = 0, len = elements.length; i < len; i++) { + var _ret = _loop(i, len); + + if (_ret === "continue") continue; + } + + return createdDocument.body.innerHTML; + } + + /** + * ------------------------------------------------------------------------ + * Constants + * ------------------------------------------------------------------------ + */ + + var NAME$6 = 'tooltip'; + var VERSION$6 = '4.3.1'; + var DATA_KEY$6 = 'bs.tooltip'; + var EVENT_KEY$6 = "." + DATA_KEY$6; + var JQUERY_NO_CONFLICT$6 = $.fn[NAME$6]; + var CLASS_PREFIX = 'bs-tooltip'; + var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g'); + var DISALLOWED_ATTRIBUTES = ['sanitize', 'whiteList', 'sanitizeFn']; + var DefaultType$4 = { + animation: 'boolean', + template: 'string', + title: '(string|element|function)', + trigger: 'string', + delay: '(number|object)', + html: 'boolean', + selector: '(string|boolean)', + placement: '(string|function)', + offset: '(number|string|function)', + container: '(string|element|boolean)', + fallbackPlacement: '(string|array)', + boundary: '(string|element)', + sanitize: 'boolean', + sanitizeFn: '(null|function)', + whiteList: 'object' + }; + var AttachmentMap$1 = { + AUTO: 'auto', + TOP: 'top', + RIGHT: 'right', + BOTTOM: 'bottom', + LEFT: 'left' + }; + var Default$4 = { + animation: true, + template: '', + trigger: 'hover focus', + title: '', + delay: 0, + html: false, + selector: false, + placement: 'top', + offset: 0, + container: false, + fallbackPlacement: 'flip', + boundary: 'scrollParent', + sanitize: true, + sanitizeFn: null, + whiteList: DefaultWhitelist + }; + var HoverState = { + SHOW: 'show', + OUT: 'out' + }; + var Event$6 = { + HIDE: "hide" + EVENT_KEY$6, + HIDDEN: "hidden" + EVENT_KEY$6, + SHOW: "show" + EVENT_KEY$6, + SHOWN: "shown" + EVENT_KEY$6, + INSERTED: "inserted" + EVENT_KEY$6, + CLICK: "click" + EVENT_KEY$6, + FOCUSIN: "focusin" + EVENT_KEY$6, + FOCUSOUT: "focusout" + EVENT_KEY$6, + MOUSEENTER: "mouseenter" + EVENT_KEY$6, + MOUSELEAVE: "mouseleave" + EVENT_KEY$6 + }; + var ClassName$6 = { + FADE: 'fade', + SHOW: 'show' + }; + var Selector$6 = { + TOOLTIP: '.tooltip', + TOOLTIP_INNER: '.tooltip-inner', + ARROW: '.arrow' + }; + var Trigger = { + HOVER: 'hover', + FOCUS: 'focus', + CLICK: 'click', + MANUAL: 'manual' + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + + }; + + var Tooltip = + /*#__PURE__*/ + function () { + function Tooltip(element, config) { + /** + * Check for Popper dependency + * Popper - https://popper.js.org + */ + if (typeof Popper === 'undefined') { + throw new TypeError('Bootstrap\'s tooltips require Popper.js (https://popper.js.org/)'); + } // private + + + this._isEnabled = true; + this._timeout = 0; + this._hoverState = ''; + this._activeTrigger = {}; + this._popper = null; // Protected + + this.element = element; + this.config = this._getConfig(config); + this.tip = null; + + this._setListeners(); + } // Getters + + + var _proto = Tooltip.prototype; + + // Public + _proto.enable = function enable() { + this._isEnabled = true; + }; + + _proto.disable = function disable() { + this._isEnabled = false; + }; + + _proto.toggleEnabled = function toggleEnabled() { + this._isEnabled = !this._isEnabled; + }; + + _proto.toggle = function toggle(event) { + if (!this._isEnabled) { + return; + } + + if (event) { + var dataKey = this.constructor.DATA_KEY; + var context = $(event.currentTarget).data(dataKey); + + if (!context) { + context = new this.constructor(event.currentTarget, this._getDelegateConfig()); + $(event.currentTarget).data(dataKey, context); + } + + context._activeTrigger.click = !context._activeTrigger.click; + + if (context._isWithActiveTrigger()) { + context._enter(null, context); + } else { + context._leave(null, context); + } + } else { + if ($(this.getTipElement()).hasClass(ClassName$6.SHOW)) { + this._leave(null, this); + + return; + } + + this._enter(null, this); + } + }; + + _proto.dispose = function dispose() { + clearTimeout(this._timeout); + $.removeData(this.element, this.constructor.DATA_KEY); + $(this.element).off(this.constructor.EVENT_KEY); + $(this.element).closest('.modal').off('hide.bs.modal'); + + if (this.tip) { + $(this.tip).remove(); + } + + this._isEnabled = null; + this._timeout = null; + this._hoverState = null; + this._activeTrigger = null; + + if (this._popper !== null) { + this._popper.destroy(); + } + + this._popper = null; + this.element = null; + this.config = null; + this.tip = null; + }; + + _proto.show = function show() { + var _this = this; + + if ($(this.element).css('display') === 'none') { + throw new Error('Please use show on visible elements'); + } + + var showEvent = $.Event(this.constructor.Event.SHOW); + + if (this.isWithContent() && this._isEnabled) { + $(this.element).trigger(showEvent); + var shadowRoot = Util.findShadowRoot(this.element); + var isInTheDom = $.contains(shadowRoot !== null ? shadowRoot : this.element.ownerDocument.documentElement, this.element); + + if (showEvent.isDefaultPrevented() || !isInTheDom) { + return; + } + + var tip = this.getTipElement(); + var tipId = Util.getUID(this.constructor.NAME); + tip.setAttribute('id', tipId); + this.element.setAttribute('aria-describedby', tipId); + this.setContent(); + + if (this.config.animation) { + $(tip).addClass(ClassName$6.FADE); + } + + var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement; + + var attachment = this._getAttachment(placement); + + this.addAttachmentClass(attachment); + + var container = this._getContainer(); + + $(tip).data(this.constructor.DATA_KEY, this); + + if (!$.contains(this.element.ownerDocument.documentElement, this.tip)) { + $(tip).appendTo(container); + } + + $(this.element).trigger(this.constructor.Event.INSERTED); + this._popper = new Popper(this.element, tip, { + placement: attachment, + modifiers: { + offset: this._getOffset(), + flip: { + behavior: this.config.fallbackPlacement + }, + arrow: { + element: Selector$6.ARROW + }, + preventOverflow: { + boundariesElement: this.config.boundary + } + }, + onCreate: function onCreate(data) { + if (data.originalPlacement !== data.placement) { + _this._handlePopperPlacementChange(data); + } + }, + onUpdate: function onUpdate(data) { + return _this._handlePopperPlacementChange(data); + } + }); + $(tip).addClass(ClassName$6.SHOW); // If this is a touch-enabled device we add extra + // empty mouseover listeners to the body's immediate children; + // only needed because of broken event delegation on iOS + // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html + + if ('ontouchstart' in document.documentElement) { + $(document.body).children().on('mouseover', null, $.noop); + } + + var complete = function complete() { + if (_this.config.animation) { + _this._fixTransition(); + } + + var prevHoverState = _this._hoverState; + _this._hoverState = null; + $(_this.element).trigger(_this.constructor.Event.SHOWN); + + if (prevHoverState === HoverState.OUT) { + _this._leave(null, _this); + } + }; + + if ($(this.tip).hasClass(ClassName$6.FADE)) { + var transitionDuration = Util.getTransitionDurationFromElement(this.tip); + $(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); + } else { + complete(); + } + } + }; + + _proto.hide = function hide(callback) { + var _this2 = this; + + var tip = this.getTipElement(); + var hideEvent = $.Event(this.constructor.Event.HIDE); + + var complete = function complete() { + if (_this2._hoverState !== HoverState.SHOW && tip.parentNode) { + tip.parentNode.removeChild(tip); + } + + _this2._cleanTipClass(); + + _this2.element.removeAttribute('aria-describedby'); + + $(_this2.element).trigger(_this2.constructor.Event.HIDDEN); + + if (_this2._popper !== null) { + _this2._popper.destroy(); + } + + if (callback) { + callback(); + } + }; + + $(this.element).trigger(hideEvent); + + if (hideEvent.isDefaultPrevented()) { + return; + } + + $(tip).removeClass(ClassName$6.SHOW); // If this is a touch-enabled device we remove the extra + // empty mouseover listeners we added for iOS support + + if ('ontouchstart' in document.documentElement) { + $(document.body).children().off('mouseover', null, $.noop); + } + + this._activeTrigger[Trigger.CLICK] = false; + this._activeTrigger[Trigger.FOCUS] = false; + this._activeTrigger[Trigger.HOVER] = false; + + if ($(this.tip).hasClass(ClassName$6.FADE)) { + var transitionDuration = Util.getTransitionDurationFromElement(tip); + $(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration); + } else { + complete(); + } + + this._hoverState = ''; + }; + + _proto.update = function update() { + if (this._popper !== null) { + this._popper.scheduleUpdate(); + } + } // Protected + ; + + _proto.isWithContent = function isWithContent() { + return Boolean(this.getTitle()); + }; + + _proto.addAttachmentClass = function addAttachmentClass(attachment) { + $(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment); + }; + + _proto.getTipElement = function getTipElement() { + this.tip = this.tip || $(this.config.template)[0]; + return this.tip; + }; + + _proto.setContent = function setContent() { + var tip = this.getTipElement(); + this.setElementContent($(tip.querySelectorAll(Selector$6.TOOLTIP_INNER)), this.getTitle()); + $(tip).removeClass(ClassName$6.FADE + " " + ClassName$6.SHOW); + }; + + _proto.setElementContent = function setElementContent($element, content) { + if (typeof content === 'object' && (content.nodeType || content.jquery)) { + // Content is a DOM node or a jQuery + if (this.config.html) { + if (!$(content).parent().is($element)) { + $element.empty().append(content); + } + } else { + $element.text($(content).text()); + } + + return; + } + + if (this.config.html) { + if (this.config.sanitize) { + content = sanitizeHtml(content, this.config.whiteList, this.config.sanitizeFn); + } + + $element.html(content); + } else { + $element.text(content); + } + }; + + _proto.getTitle = function getTitle() { + var title = this.element.getAttribute('data-original-title'); + + if (!title) { + title = typeof this.config.title === 'function' ? this.config.title.call(this.element) : this.config.title; + } + + return title; + } // Private + ; + + _proto._getOffset = function _getOffset() { + var _this3 = this; + + var offset = {}; + + if (typeof this.config.offset === 'function') { + offset.fn = function (data) { + data.offsets = _objectSpread({}, data.offsets, _this3.config.offset(data.offsets, _this3.element) || {}); + return data; + }; + } else { + offset.offset = this.config.offset; + } + + return offset; + }; + + _proto._getContainer = function _getContainer() { + if (this.config.container === false) { + return document.body; + } + + if (Util.isElement(this.config.container)) { + return $(this.config.container); + } + + return $(document).find(this.config.container); + }; + + _proto._getAttachment = function _getAttachment(placement) { + return AttachmentMap$1[placement.toUpperCase()]; + }; + + _proto._setListeners = function _setListeners() { + var _this4 = this; + + var triggers = this.config.trigger.split(' '); + triggers.forEach(function (trigger) { + if (trigger === 'click') { + $(_this4.element).on(_this4.constructor.Event.CLICK, _this4.config.selector, function (event) { + return _this4.toggle(event); + }); + } else if (trigger !== Trigger.MANUAL) { + var eventIn = trigger === Trigger.HOVER ? _this4.constructor.Event.MOUSEENTER : _this4.constructor.Event.FOCUSIN; + var eventOut = trigger === Trigger.HOVER ? _this4.constructor.Event.MOUSELEAVE : _this4.constructor.Event.FOCUSOUT; + $(_this4.element).on(eventIn, _this4.config.selector, function (event) { + return _this4._enter(event); + }).on(eventOut, _this4.config.selector, function (event) { + return _this4._leave(event); + }); + } + }); + $(this.element).closest('.modal').on('hide.bs.modal', function () { + if (_this4.element) { + _this4.hide(); + } + }); + + if (this.config.selector) { + this.config = _objectSpread({}, this.config, { + trigger: 'manual', + selector: '' + }); + } else { + this._fixTitle(); + } + }; + + _proto._fixTitle = function _fixTitle() { + var titleType = typeof this.element.getAttribute('data-original-title'); + + if (this.element.getAttribute('title') || titleType !== 'string') { + this.element.setAttribute('data-original-title', this.element.getAttribute('title') || ''); + this.element.setAttribute('title', ''); + } + }; + + _proto._enter = function _enter(event, context) { + var dataKey = this.constructor.DATA_KEY; + context = context || $(event.currentTarget).data(dataKey); + + if (!context) { + context = new this.constructor(event.currentTarget, this._getDelegateConfig()); + $(event.currentTarget).data(dataKey, context); + } + + if (event) { + context._activeTrigger[event.type === 'focusin' ? Trigger.FOCUS : Trigger.HOVER] = true; + } + + if ($(context.getTipElement()).hasClass(ClassName$6.SHOW) || context._hoverState === HoverState.SHOW) { + context._hoverState = HoverState.SHOW; + return; + } + + clearTimeout(context._timeout); + context._hoverState = HoverState.SHOW; + + if (!context.config.delay || !context.config.delay.show) { + context.show(); + return; + } + + context._timeout = setTimeout(function () { + if (context._hoverState === HoverState.SHOW) { + context.show(); + } + }, context.config.delay.show); + }; + + _proto._leave = function _leave(event, context) { + var dataKey = this.constructor.DATA_KEY; + context = context || $(event.currentTarget).data(dataKey); + + if (!context) { + context = new this.constructor(event.currentTarget, this._getDelegateConfig()); + $(event.currentTarget).data(dataKey, context); + } + + if (event) { + context._activeTrigger[event.type === 'focusout' ? Trigger.FOCUS : Trigger.HOVER] = false; + } + + if (context._isWithActiveTrigger()) { + return; + } + + clearTimeout(context._timeout); + context._hoverState = HoverState.OUT; + + if (!context.config.delay || !context.config.delay.hide) { + context.hide(); + return; + } + + context._timeout = setTimeout(function () { + if (context._hoverState === HoverState.OUT) { + context.hide(); + } + }, context.config.delay.hide); + }; + + _proto._isWithActiveTrigger = function _isWithActiveTrigger() { + for (var trigger in this._activeTrigger) { + if (this._activeTrigger[trigger]) { + return true; + } + } + + return false; + }; + + _proto._getConfig = function _getConfig(config) { + var dataAttributes = $(this.element).data(); + Object.keys(dataAttributes).forEach(function (dataAttr) { + if (DISALLOWED_ATTRIBUTES.indexOf(dataAttr) !== -1) { + delete dataAttributes[dataAttr]; + } + }); + config = _objectSpread({}, this.constructor.Default, dataAttributes, typeof config === 'object' && config ? config : {}); + + if (typeof config.delay === 'number') { + config.delay = { + show: config.delay, + hide: config.delay + }; + } + + if (typeof config.title === 'number') { + config.title = config.title.toString(); + } + + if (typeof config.content === 'number') { + config.content = config.content.toString(); + } + + Util.typeCheckConfig(NAME$6, config, this.constructor.DefaultType); + + if (config.sanitize) { + config.template = sanitizeHtml(config.template, config.whiteList, config.sanitizeFn); + } + + return config; + }; + + _proto._getDelegateConfig = function _getDelegateConfig() { + var config = {}; + + if (this.config) { + for (var key in this.config) { + if (this.constructor.Default[key] !== this.config[key]) { + config[key] = this.config[key]; + } + } + } + + return config; + }; + + _proto._cleanTipClass = function _cleanTipClass() { + var $tip = $(this.getTipElement()); + var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX); + + if (tabClass !== null && tabClass.length) { + $tip.removeClass(tabClass.join('')); + } + }; + + _proto._handlePopperPlacementChange = function _handlePopperPlacementChange(popperData) { + var popperInstance = popperData.instance; + this.tip = popperInstance.popper; + + this._cleanTipClass(); + + this.addAttachmentClass(this._getAttachment(popperData.placement)); + }; + + _proto._fixTransition = function _fixTransition() { + var tip = this.getTipElement(); + var initConfigAnimation = this.config.animation; + + if (tip.getAttribute('x-placement') !== null) { + return; + } + + $(tip).removeClass(ClassName$6.FADE); + this.config.animation = false; + this.hide(); + this.show(); + this.config.animation = initConfigAnimation; + } // Static + ; + + Tooltip._jQueryInterface = function _jQueryInterface(config) { + return this.each(function () { + var data = $(this).data(DATA_KEY$6); + + var _config = typeof config === 'object' && config; + + if (!data && /dispose|hide/.test(config)) { + return; + } + + if (!data) { + data = new Tooltip(this, _config); + $(this).data(DATA_KEY$6, data); + } + + if (typeof config === 'string') { + if (typeof data[config] === 'undefined') { + throw new TypeError("No method named \"" + config + "\""); + } + + data[config](); + } + }); + }; + + _createClass(Tooltip, null, [{ + key: "VERSION", + get: function get() { + return VERSION$6; + } + }, { + key: "Default", + get: function get() { + return Default$4; + } + }, { + key: "NAME", + get: function get() { + return NAME$6; + } + }, { + key: "DATA_KEY", + get: function get() { + return DATA_KEY$6; + } + }, { + key: "Event", + get: function get() { + return Event$6; + } + }, { + key: "EVENT_KEY", + get: function get() { + return EVENT_KEY$6; + } + }, { + key: "DefaultType", + get: function get() { + return DefaultType$4; + } + }]); + + return Tooltip; + }(); + /** + * ------------------------------------------------------------------------ + * jQuery + * ------------------------------------------------------------------------ + */ + + + $.fn[NAME$6] = Tooltip._jQueryInterface; + $.fn[NAME$6].Constructor = Tooltip; + + $.fn[NAME$6].noConflict = function () { + $.fn[NAME$6] = JQUERY_NO_CONFLICT$6; + return Tooltip._jQueryInterface; + }; + + /** + * ------------------------------------------------------------------------ + * Constants + * ------------------------------------------------------------------------ + */ + + var NAME$7 = 'popover'; + var VERSION$7 = '4.3.1'; + var DATA_KEY$7 = 'bs.popover'; + var EVENT_KEY$7 = "." + DATA_KEY$7; + var JQUERY_NO_CONFLICT$7 = $.fn[NAME$7]; + var CLASS_PREFIX$1 = 'bs-popover'; + var BSCLS_PREFIX_REGEX$1 = new RegExp("(^|\\s)" + CLASS_PREFIX$1 + "\\S+", 'g'); + + var Default$5 = _objectSpread({}, Tooltip.Default, { + placement: 'right', + trigger: 'click', + content: '', + template: '' + }); + + var DefaultType$5 = _objectSpread({}, Tooltip.DefaultType, { + content: '(string|element|function)' + }); + + var ClassName$7 = { + FADE: 'fade', + SHOW: 'show' + }; + var Selector$7 = { + TITLE: '.popover-header', + CONTENT: '.popover-body' + }; + var Event$7 = { + HIDE: "hide" + EVENT_KEY$7, + HIDDEN: "hidden" + EVENT_KEY$7, + SHOW: "show" + EVENT_KEY$7, + SHOWN: "shown" + EVENT_KEY$7, + INSERTED: "inserted" + EVENT_KEY$7, + CLICK: "click" + EVENT_KEY$7, + FOCUSIN: "focusin" + EVENT_KEY$7, + FOCUSOUT: "focusout" + EVENT_KEY$7, + MOUSEENTER: "mouseenter" + EVENT_KEY$7, + MOUSELEAVE: "mouseleave" + EVENT_KEY$7 + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + + }; + + var Popover = + /*#__PURE__*/ + function (_Tooltip) { + _inheritsLoose(Popover, _Tooltip); + + function Popover() { + return _Tooltip.apply(this, arguments) || this; + } + + var _proto = Popover.prototype; + + // Overrides + _proto.isWithContent = function isWithContent() { + return this.getTitle() || this._getContent(); + }; + + _proto.addAttachmentClass = function addAttachmentClass(attachment) { + $(this.getTipElement()).addClass(CLASS_PREFIX$1 + "-" + attachment); + }; + + _proto.getTipElement = function getTipElement() { + this.tip = this.tip || $(this.config.template)[0]; + return this.tip; + }; + + _proto.setContent = function setContent() { + var $tip = $(this.getTipElement()); // We use append for html objects to maintain js events + + this.setElementContent($tip.find(Selector$7.TITLE), this.getTitle()); + + var content = this._getContent(); + + if (typeof content === 'function') { + content = content.call(this.element); + } + + this.setElementContent($tip.find(Selector$7.CONTENT), content); + $tip.removeClass(ClassName$7.FADE + " " + ClassName$7.SHOW); + } // Private + ; + + _proto._getContent = function _getContent() { + return this.element.getAttribute('data-content') || this.config.content; + }; + + _proto._cleanTipClass = function _cleanTipClass() { + var $tip = $(this.getTipElement()); + var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX$1); + + if (tabClass !== null && tabClass.length > 0) { + $tip.removeClass(tabClass.join('')); + } + } // Static + ; + + Popover._jQueryInterface = function _jQueryInterface(config) { + return this.each(function () { + var data = $(this).data(DATA_KEY$7); + + var _config = typeof config === 'object' ? config : null; + + if (!data && /dispose|hide/.test(config)) { + return; + } + + if (!data) { + data = new Popover(this, _config); + $(this).data(DATA_KEY$7, data); + } + + if (typeof config === 'string') { + if (typeof data[config] === 'undefined') { + throw new TypeError("No method named \"" + config + "\""); + } + + data[config](); + } + }); + }; + + _createClass(Popover, null, [{ + key: "VERSION", + // Getters + get: function get() { + return VERSION$7; + } + }, { + key: "Default", + get: function get() { + return Default$5; + } + }, { + key: "NAME", + get: function get() { + return NAME$7; + } + }, { + key: "DATA_KEY", + get: function get() { + return DATA_KEY$7; + } + }, { + key: "Event", + get: function get() { + return Event$7; + } + }, { + key: "EVENT_KEY", + get: function get() { + return EVENT_KEY$7; + } + }, { + key: "DefaultType", + get: function get() { + return DefaultType$5; + } + }]); + + return Popover; + }(Tooltip); + /** + * ------------------------------------------------------------------------ + * jQuery + * ------------------------------------------------------------------------ + */ + + + $.fn[NAME$7] = Popover._jQueryInterface; + $.fn[NAME$7].Constructor = Popover; + + $.fn[NAME$7].noConflict = function () { + $.fn[NAME$7] = JQUERY_NO_CONFLICT$7; + return Popover._jQueryInterface; + }; + + /** + * ------------------------------------------------------------------------ + * Constants + * ------------------------------------------------------------------------ + */ + + var NAME$8 = 'scrollspy'; + var VERSION$8 = '4.3.1'; + var DATA_KEY$8 = 'bs.scrollspy'; + var EVENT_KEY$8 = "." + DATA_KEY$8; + var DATA_API_KEY$6 = '.data-api'; + var JQUERY_NO_CONFLICT$8 = $.fn[NAME$8]; + var Default$6 = { + offset: 10, + method: 'auto', + target: '' + }; + var DefaultType$6 = { + offset: 'number', + method: 'string', + target: '(string|element)' + }; + var Event$8 = { + ACTIVATE: "activate" + EVENT_KEY$8, + SCROLL: "scroll" + EVENT_KEY$8, + LOAD_DATA_API: "load" + EVENT_KEY$8 + DATA_API_KEY$6 + }; + var ClassName$8 = { + DROPDOWN_ITEM: 'dropdown-item', + DROPDOWN_MENU: 'dropdown-menu', + ACTIVE: 'active' + }; + var Selector$8 = { + DATA_SPY: '[data-spy="scroll"]', + ACTIVE: '.active', + NAV_LIST_GROUP: '.nav, .list-group', + NAV_LINKS: '.nav-link', + NAV_ITEMS: '.nav-item', + LIST_ITEMS: '.list-group-item', + DROPDOWN: '.dropdown', + DROPDOWN_ITEMS: '.dropdown-item', + DROPDOWN_TOGGLE: '.dropdown-toggle' + }; + var OffsetMethod = { + OFFSET: 'offset', + POSITION: 'position' + /** + * ------------------------------------------------------------------------ + * Class Definition + * ------------------------------------------------------------------------ + */ + + }; + + var ScrollSpy = + /*#__PURE__*/ + function () { + function ScrollSpy(element, config) { + var _this = this; + + this._element = element; + this._scrollElement = element.tagName === 'BODY' ? window : element; + this._config = this._getConfig(config); + this._selector = this._config.target + " " + Selector$8.NAV_LINKS + "," + (this._config.target + " " + Selector$8.LIST_ITEMS + ",") + (this._config.target + " " + Selector$8.DROPDOWN_ITEMS); + this._offsets = []; + this._targets = []; + this._activeTarget = null; + this._scrollHeight = 0; + $(this._scrollElement).on(Event$8.SCROLL, function (event) { + return _this._process(event); + }); + this.refresh(); + + this._process(); + } // Getters + + + var _proto = ScrollSpy.prototype; + + // Public + _proto.refresh = function refresh() { + var _this2 = this; + + var autoMethod = this._scrollElement === this._scrollElement.window ? OffsetMethod.OFFSET : OffsetMethod.POSITION; + var offsetMethod = this._config.method === 'auto' ? autoMethod : this._config.method; + var offsetBase = offsetMethod === OffsetMethod.POSITION ? this._getScrollTop() : 0; + this._offsets = []; + this._targets = []; + this._scrollHeight = this._getScrollHeight(); + var targets = [].slice.call(document.querySelectorAll(this._selector)); + targets.map(function (element) { + var target; + var targetSelector = Util.getSelectorFromElement(element); + + if (targetSelector) { + target = document.querySelector(targetSelector); + } + + if (target) { + var targetBCR = target.getBoundingClientRect(); + + if (targetBCR.width || targetBCR.height) { + // TODO (fat): remove sketch reliance on jQuery position/offset + return [$(target)[offsetMethod]().top + offsetBase, targetSelector]; + } + } + + return null; + }).filter(function (item) { + return item; + }).sort(function (a, b) { + return a[0] - b[0]; + }).forEach(function (item) { + _this2._offsets.push(item[0]); + + _this2._targets.push(item[1]); + }); + }; + + _proto.dispose = function dispose() { + $.removeData(this._element, DATA_KEY$8); + $(this._scrollElement).off(EVENT_KEY$8); + this._element = null; + this._scrollElement = null; + this._config = null; + this._selector = null; + this._offsets = null; + this._targets = null; + this._activeTarget = null; + this._scrollHeight = null; + } // Private + ; + + _proto._getConfig = function _getConfig(config) { + config = _objectSpread({}, Default$6, typeof config === 'object' && config ? config : {}); + + if (typeof config.target !== 'string') { + var id = $(config.target).attr('id'); + + if (!id) { + id = Util.getUID(NAME$8); + $(config.target).attr('id', id); + } + + config.target = "#" + id; + } + + Util.typeCheckConfig(NAME$8, config, DefaultType$6); + return config; + }; + + _proto._getScrollTop = function _getScrollTop() { + return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop; + }; + + _proto._getScrollHeight = function _getScrollHeight() { + return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight); + }; + + _proto._getOffsetHeight = function _getOffsetHeight() { + return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height; + }; + + _proto._process = function _process() { + var scrollTop = this._getScrollTop() + this._config.offset; + + var scrollHeight = this._getScrollHeight(); + + var maxScroll = this._config.offset + scrollHeight - this._getOffsetHeight(); + + if (this._scrollHeight !== scrollHeight) { + this.refresh(); + } + + if (scrollTop >= maxScroll) { + var target = this._targets[this._targets.length - 1]; + + if (this._activeTarget !== target) { + this._activate(target); + } + + return; + } + + if (this._activeTarget && scrollTop < this._offsets[0] && this._offsets[0] > 0) { + this._activeTarget = null; + + this._clear(); + + return; + } + + var offsetLength = this._offsets.length; + + for (var i = offsetLength; i--;) { + var isActiveTarget = this._activeTarget !== this._targets[i] && scrollTop >= this._offsets[i] && (typeof this._offsets[i + 1] === 'undefined' || scrollTop < this._offsets[i + 1]); + + if (isActiveTarget) { + this._activate(this._targets[i]); + } + } + }; + + _proto._activate = function _activate(target) { + this._activeTarget = target; + + this._clear(); + + var queries = this._selector.split(',').map(function (selector) { + return selector + "[data-target=\"" + target + "\"]," + selector + "[href=\"" + target + "\"]"; + }); + + var $link = $([].slice.call(document.querySelectorAll(queries.join(',')))); + + if ($link.hasClass(ClassName$8.DROPDOWN_ITEM)) { + $link.closest(Selector$8.DROPDOWN).find(Selector$8.DROPDOWN_TOGGLE).addClass(ClassName$8.ACTIVE); + $link.addClass(ClassName$8.ACTIVE); + } else { + // Set triggered link as active + $link.addClass(ClassName$8.ACTIVE); // Set triggered links parents as active + // With both
    and
"),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(n,i){var a=t.getDatasetMeta(0),o=e.datasets[0],s=a.data[i],l=s&&s.custom||{},u=r.valueAtIndexOrDefault,d=t.options.elements.arc;return{text:n,fillStyle:l.backgroundColor?l.backgroundColor:u(o.backgroundColor,i,d.backgroundColor),strokeStyle:l.borderColor?l.borderColor:u(o.borderColor,i,d.borderColor),lineWidth:l.borderWidth?l.borderWidth:u(o.borderWidth,i,d.borderWidth),hidden:isNaN(o.data[i])||a.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,i,a,r=e.index,o=this.chart;for(n=0,i=(o.data.datasets||[]).length;n=Math.PI?-1:g<-Math.PI?1:0))+f,p={x:Math.cos(g),y:Math.sin(g)},v={x:Math.cos(m),y:Math.sin(m)},y=g<=0&&m>=0||g<=2*Math.PI&&2*Math.PI<=m,b=g<=.5*Math.PI&&.5*Math.PI<=m||g<=2.5*Math.PI&&2.5*Math.PI<=m,x=g<=-Math.PI&&-Math.PI<=m||g<=Math.PI&&Math.PI<=m,_=g<=.5*-Math.PI&&.5*-Math.PI<=m||g<=1.5*Math.PI&&1.5*Math.PI<=m,k=h/100,w={x:x?-1:Math.min(p.x*(p.x<0?1:k),v.x*(v.x<0?1:k)),y:_?-1:Math.min(p.y*(p.y<0?1:k),v.y*(v.y<0?1:k))},M={x:y?1:Math.max(p.x*(p.x>0?1:k),v.x*(v.x>0?1:k)),y:b?1:Math.max(p.y*(p.y>0?1:k),v.y*(v.y>0?1:k))},S={width:.5*(M.x-w.x),height:.5*(M.y-w.y)};u=Math.min(s/S.width,l/S.height),d={x:-.5*(M.x+w.x),y:-.5*(M.y+w.y)}}n.borderWidth=e.getMaxBorderWidth(c.data),n.outerRadius=Math.max((u-n.borderWidth)/2,0),n.innerRadius=Math.max(h?n.outerRadius/100*h:0,0),n.radiusLength=(n.outerRadius-n.innerRadius)/n.getVisibleDatasetCount(),n.offsetX=d.x*n.outerRadius,n.offsetY=d.y*n.outerRadius,c.total=e.calculateTotal(),e.outerRadius=n.outerRadius-n.radiusLength*e.getRingIndex(e.index),e.innerRadius=Math.max(e.outerRadius-n.radiusLength,0),r.each(c.data,function(n,i){e.updateElement(n,i,t)})},updateElement:function(t,e,n){var i=this,a=i.chart,o=a.chartArea,s=a.options,l=s.animation,u=(o.left+o.right)/2,d=(o.top+o.bottom)/2,c=s.rotation,h=s.rotation,f=i.getDataset(),g=n&&l.animateRotate?0:t.hidden?0:i.calculateCircumference(f.data[e])*(s.circumference/(2*Math.PI)),m=n&&l.animateScale?0:i.innerRadius,p=n&&l.animateScale?0:i.outerRadius,v=r.valueAtIndexOrDefault;r.extend(t,{_datasetIndex:i.index,_index:e,_model:{x:u+a.offsetX,y:d+a.offsetY,startAngle:c,endAngle:h,circumference:g,outerRadius:p,innerRadius:m,label:v(f.label,e,a.data.labels[e])}});var y=t._model;this.removeHoverStyle(t),n&&l.animateRotate||(y.startAngle=0===e?s.rotation:i.getMeta().data[e-1]._model.endAngle,y.endAngle=y.startAngle+y.circumference),t.pivot()},removeHoverStyle:function(e){t.DatasetController.prototype.removeHoverStyle.call(this,e,this.chart.options.elements.arc)},calculateTotal:function(){var t,e=this.getDataset(),n=this.getMeta(),i=0;return r.each(n.data,function(n,a){t=e.data[a],isNaN(t)||n.hidden||(i+=Math.abs(t))}),i},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,n,i=0,a=this.index,r=t.length,o=0;o(i=e>i?e:i)?n:i;return i}})}},{25:25,40:40,45:45}],18:[function(t,e,n){"use strict";var i=t(25),a=t(40),r=t(45);i._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(t){function e(t,e){return r.valueOrDefault(t.showLine,e.showLines)}t.controllers.line=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,update:function(t){var n,i,a,o=this,s=o.getMeta(),l=s.dataset,u=s.data||[],d=o.chart.options,c=d.elements.line,h=o.getScaleForId(s.yAxisID),f=o.getDataset(),g=e(f,d);for(g&&(a=l.custom||{},void 0!==f.tension&&void 0===f.lineTension&&(f.lineTension=f.tension),l._scale=h,l._datasetIndex=o.index,l._children=u,l._model={spanGaps:f.spanGaps?f.spanGaps:d.spanGaps,tension:a.tension?a.tension:r.valueOrDefault(f.lineTension,c.tension),backgroundColor:a.backgroundColor?a.backgroundColor:f.backgroundColor||c.backgroundColor,borderWidth:a.borderWidth?a.borderWidth:f.borderWidth||c.borderWidth,borderColor:a.borderColor?a.borderColor:f.borderColor||c.borderColor,borderCapStyle:a.borderCapStyle?a.borderCapStyle:f.borderCapStyle||c.borderCapStyle,borderDash:a.borderDash?a.borderDash:f.borderDash||c.borderDash,borderDashOffset:a.borderDashOffset?a.borderDashOffset:f.borderDashOffset||c.borderDashOffset,borderJoinStyle:a.borderJoinStyle?a.borderJoinStyle:f.borderJoinStyle||c.borderJoinStyle,fill:a.fill?a.fill:void 0!==f.fill?f.fill:c.fill,steppedLine:a.steppedLine?a.steppedLine:r.valueOrDefault(f.steppedLine,c.stepped),cubicInterpolationMode:a.cubicInterpolationMode?a.cubicInterpolationMode:r.valueOrDefault(f.cubicInterpolationMode,c.cubicInterpolationMode)},l.pivot()),n=0,i=u.length;n');var n=t.data,i=n.datasets,a=n.labels;if(i.length)for(var r=0;r'),a[r]&&e.push(a[r]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map(function(n,i){var a=t.getDatasetMeta(0),o=e.datasets[0],s=a.data[i].custom||{},l=r.valueAtIndexOrDefault,u=t.options.elements.arc;return{text:n,fillStyle:s.backgroundColor?s.backgroundColor:l(o.backgroundColor,i,u.backgroundColor),strokeStyle:s.borderColor?s.borderColor:l(o.borderColor,i,u.borderColor),lineWidth:s.borderWidth?s.borderWidth:l(o.borderWidth,i,u.borderWidth),hidden:isNaN(o.data[i])||a.data[i].hidden,index:i}}):[]}},onClick:function(t,e){var n,i,a,r=e.index,o=this.chart;for(n=0,i=(o.data.datasets||[]).length;n0&&!isNaN(t)?2*Math.PI/e:0}})}},{25:25,40:40,45:45}],20:[function(t,e,n){"use strict";var i=t(25),a=t(40),r=t(45);i._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(t){t.controllers.radar=t.DatasetController.extend({datasetElementType:a.Line,dataElementType:a.Point,linkScales:r.noop,update:function(t){var e=this,n=e.getMeta(),i=n.dataset,a=n.data,o=i.custom||{},s=e.getDataset(),l=e.chart.options.elements.line,u=e.chart.scale;void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),r.extend(n.dataset,{_datasetIndex:e.index,_scale:u,_children:a,_loop:!0,_model:{tension:o.tension?o.tension:r.valueOrDefault(s.lineTension,l.tension),backgroundColor:o.backgroundColor?o.backgroundColor:s.backgroundColor||l.backgroundColor,borderWidth:o.borderWidth?o.borderWidth:s.borderWidth||l.borderWidth,borderColor:o.borderColor?o.borderColor:s.borderColor||l.borderColor,fill:o.fill?o.fill:void 0!==s.fill?s.fill:l.fill,borderCapStyle:o.borderCapStyle?o.borderCapStyle:s.borderCapStyle||l.borderCapStyle,borderDash:o.borderDash?o.borderDash:s.borderDash||l.borderDash,borderDashOffset:o.borderDashOffset?o.borderDashOffset:s.borderDashOffset||l.borderDashOffset,borderJoinStyle:o.borderJoinStyle?o.borderJoinStyle:s.borderJoinStyle||l.borderJoinStyle}}),n.dataset.pivot(),r.each(a,function(n,i){e.updateElement(n,i,t)},e),e.updateBezierControlPoints()},updateElement:function(t,e,n){var i=this,a=t.custom||{},o=i.getDataset(),s=i.chart.scale,l=i.chart.options.elements.point,u=s.getPointPositionForValue(e,o.data[e]);void 0!==o.radius&&void 0===o.pointRadius&&(o.pointRadius=o.radius),void 0!==o.hitRadius&&void 0===o.pointHitRadius&&(o.pointHitRadius=o.hitRadius),r.extend(t,{_datasetIndex:i.index,_index:e,_scale:s,_model:{x:n?s.xCenter:u.x,y:n?s.yCenter:u.y,tension:a.tension?a.tension:r.valueOrDefault(o.lineTension,i.chart.options.elements.line.tension),radius:a.radius?a.radius:r.valueAtIndexOrDefault(o.pointRadius,e,l.radius),backgroundColor:a.backgroundColor?a.backgroundColor:r.valueAtIndexOrDefault(o.pointBackgroundColor,e,l.backgroundColor),borderColor:a.borderColor?a.borderColor:r.valueAtIndexOrDefault(o.pointBorderColor,e,l.borderColor),borderWidth:a.borderWidth?a.borderWidth:r.valueAtIndexOrDefault(o.pointBorderWidth,e,l.borderWidth),pointStyle:a.pointStyle?a.pointStyle:r.valueAtIndexOrDefault(o.pointStyle,e,l.pointStyle),hitRadius:a.hitRadius?a.hitRadius:r.valueAtIndexOrDefault(o.pointHitRadius,e,l.hitRadius)}}),t._model.skip=a.skip?a.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var t=this.chart.chartArea,e=this.getMeta();r.each(e.data,function(n,i){var a=n._model,o=r.splineCurve(r.previousItem(e.data,i,!0)._model,a,r.nextItem(e.data,i,!0)._model,a.tension);a.controlPointPreviousX=Math.max(Math.min(o.previous.x,t.right),t.left),a.controlPointPreviousY=Math.max(Math.min(o.previous.y,t.bottom),t.top),a.controlPointNextX=Math.max(Math.min(o.next.x,t.right),t.left),a.controlPointNextY=Math.max(Math.min(o.next.y,t.bottom),t.top),n.pivot()})},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,a=t._model;a.radius=n.hoverRadius?n.hoverRadius:r.valueAtIndexOrDefault(e.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),a.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:r.valueAtIndexOrDefault(e.pointHoverBackgroundColor,i,r.getHoverColor(a.backgroundColor)),a.borderColor=n.hoverBorderColor?n.hoverBorderColor:r.valueAtIndexOrDefault(e.pointHoverBorderColor,i,r.getHoverColor(a.borderColor)),a.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:r.valueAtIndexOrDefault(e.pointHoverBorderWidth,i,a.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t.custom||{},i=t._index,a=t._model,o=this.chart.options.elements.point;a.radius=n.radius?n.radius:r.valueAtIndexOrDefault(e.pointRadius,i,o.radius),a.backgroundColor=n.backgroundColor?n.backgroundColor:r.valueAtIndexOrDefault(e.pointBackgroundColor,i,o.backgroundColor),a.borderColor=n.borderColor?n.borderColor:r.valueAtIndexOrDefault(e.pointBorderColor,i,o.borderColor),a.borderWidth=n.borderWidth?n.borderWidth:r.valueAtIndexOrDefault(e.pointBorderWidth,i,o.borderWidth)}})}},{25:25,40:40,45:45}],21:[function(t,e,n){"use strict";t(25)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),e.exports=function(t){t.controllers.scatter=t.controllers.line}},{25:25}],22:[function(t,e,n){"use strict";var i=t(25),a=t(26),r=t(45);i._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:r.noop,onComplete:r.noop}}),e.exports=function(t){t.Animation=a.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,n,i){var a,r,o=this.animations;for(e.chart=t,i||(t.animating=!0),a=0,r=o.length;a1&&(n=Math.floor(t.dropFrames),t.dropFrames=t.dropFrames%1),t.advance(1+n);var i=Date.now();t.dropFrames+=(i-e)/t.frameDuration,t.animations.length>0&&t.requestAnimationFrame()},advance:function(t){for(var e,n,i=this.animations,a=0;a=e.numSteps?(r.callback(e.onAnimationComplete,[e],n),n.animating=!1,i.splice(a,1)):++a}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},{25:25,26:26,45:45}],23:[function(t,e,n){"use strict";var i=t(25),a=t(45),r=t(28),o=t(48);e.exports=function(t){function e(t){var e=(t=t||{}).data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=a.configMerge(i.global,i[t.type],t.options||{}),t}function n(t){var e=t.options;e.scale?t.scale.options=e.scale:e.scales&&e.scales.xAxes.concat(e.scales.yAxes).forEach(function(e){t.scales[e.id].options=e}),t.tooltip._options=e.tooltips}function s(t){return"top"===t||"bottom"===t}var l=t.plugins;t.types={},t.instances={},t.controllers={},a.extend(t.prototype,{construct:function(n,i){var r=this;i=e(i);var s=o.acquireContext(n,i),l=s&&s.canvas,u=l&&l.height,d=l&&l.width;r.id=a.uid(),r.ctx=s,r.canvas=l,r.config=i,r.width=d,r.height=u,r.aspectRatio=u?d/u:null,r.options=i.options,r._bufferedRender=!1,r.chart=r,r.controller=r,t.instances[r.id]=r,Object.defineProperty(r,"data",{get:function(){return r.config.data},set:function(t){r.config.data=t}}),s&&l?(r.initialize(),r.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return l.notify(t,"beforeInit"),a.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildScales(),t.initToolTip(),l.notify(t,"afterInit"),t},clear:function(){return a.canvas.clear(this),this},stop:function(){return t.animationService.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,i=e.canvas,r=n.maintainAspectRatio&&e.aspectRatio||null,o=Math.max(0,Math.floor(a.getMaximumWidth(i))),s=Math.max(0,Math.floor(r?o/r:a.getMaximumHeight(i)));if((e.width!==o||e.height!==s)&&(i.width=e.width=o,i.height=e.height=s,i.style.width=o+"px",i.style.height=s+"px",a.retinaScale(e,n.devicePixelRatio),!t)){var u={width:o,height:s};l.notify(e,"resize",[u]),e.options.onResize&&e.options.onResize(e,u),e.stop(),e.update(e.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;a.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),a.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),n&&(n.id=n.id||"scale")},buildScales:function(){var e=this,n=e.options,i=e.scales={},r=[];n.scales&&(r=r.concat((n.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(n.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),n.scale&&r.push({options:n.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),a.each(r,function(n){var r=n.options,o=a.valueOrDefault(r.type,n.dtype),l=t.scaleService.getScaleConstructor(o);if(l){s(r.position)!==s(n.dposition)&&(r.position=n.dposition);var u=new l({id:r.id,options:r,ctx:e.ctx,chart:e});i[u.id]=u,u.mergeTicksOptions(),n.isDefault&&(e.scale=u)}}),t.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,n=[],i=[];return a.each(e.data.datasets,function(a,r){var o=e.getDatasetMeta(r),s=a.type||e.config.type;if(o.type&&o.type!==s&&(e.destroyDatasetMeta(r),o=e.getDatasetMeta(r)),o.type=s,n.push(o.type),o.controller)o.controller.updateIndex(r);else{var l=t.controllers[o.type];if(void 0===l)throw new Error('"'+o.type+'" is not a chart type.');o.controller=new l(e,r),i.push(o.controller)}},e),i},resetElements:function(){var t=this;a.each(t.data.datasets,function(e,n){t.getDatasetMeta(n).controller.reset()},t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e=this;if(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),n(e),!1!==l.notify(e,"beforeUpdate")){e.tooltip._data=e.data;var i=e.buildOrUpdateControllers();a.each(e.data.datasets,function(t,n){e.getDatasetMeta(n).controller.buildOrUpdateElements()},e),e.updateLayout(),a.each(i,function(t){t.reset()}),e.updateDatasets(),l.notify(e,"afterUpdate"),e._bufferedRender?e._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:e.render(t)}},updateLayout:function(){var e=this;!1!==l.notify(e,"beforeLayout")&&(t.layoutService.update(this,this.width,this.height),l.notify(e,"afterScaleUpdate"),l.notify(e,"afterLayout"))},updateDatasets:function(){var t=this;if(!1!==l.notify(t,"beforeDatasetsUpdate")){for(var e=0,n=t.data.datasets.length;e=0;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);l.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this,i=n.getDatasetMeta(t),a={meta:i,index:t,easingValue:e};!1!==l.notify(n,"beforeDatasetDraw",[a])&&(i.controller.draw(e),l.notify(n,"afterDatasetDraw",[a]))},getElementAtEvent:function(t){return r.modes.single(this,t)},getElementsAtEvent:function(t){return r.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return r.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var i=r.modes[e];return"function"==typeof i?i(this,t,n):[]},getDatasetAtEvent:function(t){return r.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this,n=e.data.datasets[t];n._meta||(n._meta={});var i=n._meta[e.id];return i||(i=n._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),i},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e0||(a.forEach(function(e){delete t[e]}),delete t._chartjs)}}var a=["push","pop","shift","splice","unshift"];t.DatasetController=function(t,e){this.initialize(t,e)},i.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null===e.xAxisID&&(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null===e.yAxisID&&(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,n=e.dataElementType;return n&&new n({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,n=this,i=n.getMeta(),a=n.getDataset().data||[],r=i.data;for(t=0,e=a.length;ti&&t.insertElements(i,a-i)},insertElements:function(t,e){for(var n=0;n=n[e].length&&n[e].push({}),!n[e][o].type||l.type&&l.type!==n[e][o].type?r.merge(n[e][o],[t.scaleService.getScaleDefaults(s),l]):r.merge(n[e][o],l)}else r._merger(e,n,i,a)}})},r.where=function(t,e){if(r.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return r.each(t,function(t){e(t)&&n.push(t)}),n},r.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var i=0,a=t.length;i=0;i--){var a=t[i];if(e(a))return a}},r.inherits=function(t){var e=this,n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},i=function(){this.constructor=n};return i.prototype=e.prototype,n.prototype=new i,n.extend=r.inherits,t&&r.extend(n.prototype,t),n.__super__=e.prototype,n},r.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},r.almostEquals=function(t,e,n){return Math.abs(t-e)t},r.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},r.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},r.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0==(t=+t)||isNaN(t)?t:t>0?1:-1},r.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},r.toRadians=function(t){return t*(Math.PI/180)},r.toDegrees=function(t){return t*(180/Math.PI)},r.getAngleFromPoint=function(t,e){var n=e.x-t.x,i=e.y-t.y,a=Math.sqrt(n*n+i*i),r=Math.atan2(i,n);return r<-.5*Math.PI&&(r+=2*Math.PI),{angle:r,distance:a}},r.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},r.aliasPixel=function(t){return t%2==0?0:.5},r.splineCurve=function(t,e,n,i){var a=t.skip?e:t,r=e,o=n.skip?e:n,s=Math.sqrt(Math.pow(r.x-a.x,2)+Math.pow(r.y-a.y,2)),l=Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),u=s/(s+l),d=l/(s+l),c=i*(u=isNaN(u)?0:u),h=i*(d=isNaN(d)?0:d);return{previous:{x:r.x-c*(o.x-a.x),y:r.y-c*(o.y-a.y)},next:{x:r.x+h*(o.x-a.x),y:r.y+h*(o.y-a.y)}}},r.EPSILON=Number.EPSILON||1e-14,r.splineCurveMonotone=function(t){var e,n,i,a,o=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),s=o.length;for(e=0;e0?o[e-1]:null,(a=e0?o[e-1]:null,a=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},r.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},r.niceNum=function(t,e){var n=Math.floor(r.log10(t)),i=t/Math.pow(10,n);return(e?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},r.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},r.getRelativePosition=function(t,e){var n,i,a=t.originalEvent||t,o=t.currentTarget||t.srcElement,s=o.getBoundingClientRect(),l=a.touches;l&&l.length>0?(n=l[0].clientX,i=l[0].clientY):(n=a.clientX,i=a.clientY);var u=parseFloat(r.getStyle(o,"padding-left")),d=parseFloat(r.getStyle(o,"padding-top")),c=parseFloat(r.getStyle(o,"padding-right")),h=parseFloat(r.getStyle(o,"padding-bottom")),f=s.right-s.left-u-c,g=s.bottom-s.top-d-h;return n=Math.round((n-s.left-u)/f*o.width/e.currentDevicePixelRatio),i=Math.round((i-s.top-d)/g*o.height/e.currentDevicePixelRatio),{x:n,y:i}},r.getConstraintWidth=function(t){return o(t,"max-width","clientWidth")},r.getConstraintHeight=function(t){return o(t,"max-height","clientHeight")},r.getMaximumWidth=function(t){var e=t.parentNode;if(!e)return t.clientWidth;var n=parseInt(r.getStyle(e,"padding-left"),10),i=parseInt(r.getStyle(e,"padding-right"),10),a=e.clientWidth-n-i,o=r.getConstraintWidth(t);return isNaN(o)?a:Math.min(a,o)},r.getMaximumHeight=function(t){var e=t.parentNode;if(!e)return t.clientHeight;var n=parseInt(r.getStyle(e,"padding-top"),10),i=parseInt(r.getStyle(e,"padding-bottom"),10),a=e.clientHeight-n-i,o=r.getConstraintHeight(t);return isNaN(o)?a:Math.min(a,o)},r.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},r.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||window.devicePixelRatio||1;if(1!==n){var i=t.canvas,a=t.height,r=t.width;i.height=a*n,i.width=r*n,t.ctx.scale(n,n),i.style.height=a+"px",i.style.width=r+"px"}},r.fontString=function(t,e,n){return e+" "+t+"px "+n},r.longestText=function(t,e,n,i){var a=(i=i||{}).data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(a=i.data={},o=i.garbageCollect=[],i.font=e),t.font=e;var s=0;r.each(n,function(e){void 0!==e&&null!==e&&!0!==r.isArray(e)?s=r.measureText(t,a,o,s,e):r.isArray(e)&&r.each(e,function(e){void 0===e||null===e||r.isArray(e)||(s=r.measureText(t,a,o,s,e))})});var l=o.length/2;if(l>n.length){for(var u=0;ui&&(i=r),i},r.numberOfLabelLines=function(t){var e=1;return r.each(t,function(t){r.isArray(t)&&t.length>e&&(e=t.length)}),e},r.color=i?function(t){return t instanceof CanvasGradient&&(t=a.global.defaultColor),i(t)}:function(t){return console.error("Color.js not found!"),t},r.getHoverColor=function(t){return t instanceof CanvasPattern?t:r.color(t).saturate(.5).darken(.1).rgbString()}}},{2:2,25:25,45:45}],28:[function(t,e,n){"use strict";function i(t,e){return t.native?{x:t.x,y:t.y}:u.getRelativePosition(t,e)}function a(t,e){var n,i,a,r,o;for(i=0,r=t.data.datasets.length;i0&&(u=t.getDatasetMeta(u[0]._datasetIndex).data),u},"x-axis":function(t,e){return l(t,e,{intersect:!0})},point:function(t,e){return r(t,i(e,t))},nearest:function(t,e,n){var a=i(e,t);n.axis=n.axis||"xy";var r=s(n.axis),l=o(t,a,n.intersect,r);return l.length>1&&l.sort(function(t,e){var n=t.getArea()-e.getArea();return 0===n&&(n=t._datasetIndex-e._datasetIndex),n}),l.slice(0,1)},x:function(t,e,n){var r=i(e,t),o=[],s=!1;return a(t,function(t){t.inXRange(r.x)&&o.push(t),t.inRange(r.x,r.y)&&(s=!0)}),n.intersect&&!s&&(o=[]),o},y:function(t,e,n){var r=i(e,t),o=[],s=!1;return a(t,function(t){t.inYRange(r.y)&&o.push(t),t.inRange(r.x,r.y)&&(s=!0)}),n.intersect&&!s&&(o=[]),o}}}},{45:45}],29:[function(t,e,n){"use strict";t(25)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){var t=function(t,e){return this.construct(t,e),this};return t.Chart=t,t}},{25:25}],30:[function(t,e,n){"use strict";var i=t(45);e.exports=function(t){function e(t,e){return i.where(t,function(t){return t.position===e})}function n(t,e){t.forEach(function(t,e){return t._tmpIndex_=e,t}),t.sort(function(t,n){var i=e?n:t,a=e?t:n;return i.weight===a.weight?i._tmpIndex_-a._tmpIndex_:i.weight-a.weight}),t.forEach(function(t){delete t._tmpIndex_})}t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var i,a=["fullWidth","position","weight"],r=a.length,o=0;oh&&lt.maxHeight){l--;break}l++,c=u*d}t.labelRotation=l},afterCalculateTickRotation:function(){s.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){s.callback(this.options.beforeFit,[this])},fit:function(){var t=this,a=t.minSize={width:0,height:0},r=i(t._ticks),o=t.options,u=o.ticks,d=o.scaleLabel,c=o.gridLines,h=o.display,f=t.isHorizontal(),g=n(u),m=o.gridLines.tickMarkLength;if(a.width=f?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:h&&c.drawTicks?m:0,a.height=f?h&&c.drawTicks?m:0:t.maxHeight,d.display&&h){var p=l(d)+s.options.toPadding(d.padding).height;f?a.height+=p:a.width+=p}if(u.display&&h){var v=s.longestText(t.ctx,g.font,r,t.longestTextCache),y=s.numberOfLabelLines(r),b=.5*g.size,x=t.options.ticks.padding;if(f){t.longestLabelWidth=v;var _=s.toRadians(t.labelRotation),k=Math.cos(_),w=Math.sin(_)*v+g.size*y+b*(y-1)+b;a.height=Math.min(t.maxHeight,a.height+w+x),t.ctx.font=g.font;var M=e(t.ctx,r[0],g.font),S=e(t.ctx,r[r.length-1],g.font);0!==t.labelRotation?(t.paddingLeft="bottom"===o.position?k*M+3:k*b+3,t.paddingRight="bottom"===o.position?k*b+3:k*S+3):(t.paddingLeft=M/2+3,t.paddingRight=S/2+3)}else u.mirror?v=0:v+=x+b,a.width=Math.min(t.maxWidth,a.width+v),t.paddingTop=g.size/2,t.paddingBottom=g.size/2}t.handleMargins(),t.width=a.width,t.height=a.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){s.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(s.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:s.noop,getPixelForValue:s.noop,getValueForPixel:s.noop,getPixelForTick:function(t){var e=this,n=e.options.offset;if(e.isHorizontal()){var i=(e.width-(e.paddingLeft+e.paddingRight))/Math.max(e._ticks.length-(n?0:1),1),a=i*t+e.paddingLeft;n&&(a+=i/2);var r=e.left+Math.round(a);return r+=e.isFullWidth()?e.margins.left:0}var o=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(o/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var n=(e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft,i=e.left+Math.round(n);return i+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,n=t.max;return t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0},_autoSkip:function(t){var e,n,i,a,r=this,o=r.isHorizontal(),l=r.options.ticks.minor,u=t.length,d=s.toRadians(r.labelRotation),c=Math.cos(d),h=r.longestLabelWidth*c,f=[];for(l.maxTicksLimit&&(a=l.maxTicksLimit),o&&(e=!1,(h+l.autoSkipPadding)*u>r.width-(r.paddingLeft+r.paddingRight)&&(e=1+Math.floor((h+l.autoSkipPadding)*u/(r.width-(r.paddingLeft+r.paddingRight)))),a&&u>a&&(e=Math.max(e,Math.floor(u/a)))),n=0;n1&&n%e>0||n%e==0&&n+e>=u)&&n!==u-1||s.isNullOrUndef(i.label))&&delete i.label,f.push(i);return f},draw:function(t){var e=this,i=e.options;if(i.display){var o=e.ctx,u=r.global,d=i.ticks.minor,c=i.ticks.major||d,h=i.gridLines,f=i.scaleLabel,g=0!==e.labelRotation,m=e.isHorizontal(),p=d.autoSkip?e._autoSkip(e.getTicks()):e.getTicks(),v=s.valueOrDefault(d.fontColor,u.defaultFontColor),y=n(d),b=s.valueOrDefault(c.fontColor,u.defaultFontColor),x=n(c),_=h.drawTicks?h.tickMarkLength:0,k=s.valueOrDefault(f.fontColor,u.defaultFontColor),w=n(f),M=s.options.toPadding(f.padding),S=s.toRadians(e.labelRotation),D=[],C="right"===i.position?e.left:e.right-_,P="right"===i.position?e.left+_:e.right,T="bottom"===i.position?e.top:e.bottom-_,I="bottom"===i.position?e.top+_:e.bottom;if(s.each(p,function(n,r){if(void 0!==n.label){var o,l,c,f,v=n.label;r===e.zeroLineIndex&&i.offset===h.offsetGridLines?(o=h.zeroLineWidth,l=h.zeroLineColor,c=h.zeroLineBorderDash,f=h.zeroLineBorderDashOffset):(o=s.valueAtIndexOrDefault(h.lineWidth,r),l=s.valueAtIndexOrDefault(h.color,r),c=s.valueOrDefault(h.borderDash,u.borderDash),f=s.valueOrDefault(h.borderDashOffset,u.borderDashOffset));var y,b,x,k,w,M,A,O,F,R,L="middle",W="middle",Y=d.padding;if(m){var N=_+Y;"bottom"===i.position?(W=g?"middle":"top",L=g?"right":"center",R=e.top+N):(W=g?"middle":"bottom",L=g?"left":"center",R=e.bottom-N);var z=a(e,r,h.offsetGridLines&&p.length>1);z1);H0)n=t.stepSize;else{var r=i.niceNum(e.max-e.min,!1);n=i.niceNum(r/(t.maxTicks-1),!0)}var o=Math.floor(e.min/n)*n,s=Math.ceil(e.max/n)*n;t.min&&t.max&&t.stepSize&&i.almostWhole((t.max-t.min)/t.stepSize,n/1e3)&&(o=t.min,s=t.max);var l=(s-o)/n;l=i.almostEquals(l,Math.round(l),n/1e3)?Math.round(l):Math.ceil(l),a.push(void 0!==t.min?t.min:o);for(var u=1;u3?n[2]-n[1]:n[1]-n[0];Math.abs(a)>1&&t!==Math.floor(t)&&(a=t-Math.floor(t));var r=i.log10(Math.abs(a)),o="";if(0!==t){var s=-1*Math.floor(r);s=Math.max(Math.min(s,20),0),o=t.toFixed(s)}else o="0";return o},logarithmic:function(t,e,n){var a=t/Math.pow(10,Math.floor(i.log10(t)));return 0===t?"0":1===a||2===a||5===a||0===e||e===n.length-1?t.toExponential():""}}}},{45:45}],35:[function(t,e,n){"use strict";var i=t(25),a=t(26),r=t(45);i._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:r.noop,title:function(t,e){var n="",i=e.labels,a=i?i.length:0;if(t.length>0){var r=t[0];r.xLabel?n=r.xLabel:a>0&&r.indexi.height-e.height&&(o="bottom");var s,l,u,d,c,h=(a.left+a.right)/2,f=(a.top+a.bottom)/2;"center"===o?(s=function(t){return t<=h},l=function(t){return t>h}):(s=function(t){return t<=e.width/2},l=function(t){return t>=i.width-e.width/2}),u=function(t){return t+e.width>i.width},d=function(t){return t-e.width<0},c=function(t){return t<=f?"top":"bottom"},s(n.x)?(r="left",u(n.x)&&(r="center",o=c(n.y))):l(n.x)&&(r="right",d(n.x)&&(r="center",o=c(n.y)));var g=t._options;return{xAlign:g.xAlign?g.xAlign:r,yAlign:g.yAlign?g.yAlign:o}}function d(t,e,n){var i=t.x,a=t.y,r=t.caretSize,o=t.caretPadding,s=t.cornerRadius,l=n.xAlign,u=n.yAlign,d=r+o,c=s+o;return"right"===l?i-=e.width:"center"===l&&(i-=e.width/2),"top"===u?a+=d:a-="bottom"===u?e.height+d:e.height/2,"center"===u?"left"===l?i+=d:"right"===l&&(i-=d):"left"===l?i-=c:"right"===l&&(i+=c),{x:i,y:a}}t.Tooltip=a.extend({initialize:function(){this._model=s(this._options)},getTitle:function(){var t=this,e=t._options.callbacks,i=e.beforeTitle.apply(t,arguments),a=e.title.apply(t,arguments),r=e.afterTitle.apply(t,arguments),o=[];return o=n(o,i),o=n(o,a),o=n(o,r)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return r.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,e){var i=this,a=i._options.callbacks,o=[];return r.each(t,function(t){var r={before:[],lines:[],after:[]};n(r.before,a.beforeLabel.call(i,t,e)),n(r.lines,a.label.call(i,t,e)),n(r.after,a.afterLabel.call(i,t,e)),o.push(r)}),o},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return r.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this,e=t._options.callbacks,i=e.beforeFooter.apply(t,arguments),a=e.footer.apply(t,arguments),r=e.afterFooter.apply(t,arguments),o=[];return o=n(o,i),o=n(o,a),o=n(o,r)},update:function(e){var n,i,a=this,c=a._options,h=a._model,f=a._model=s(c),g=a._active,m=a._data,p={xAlign:h.xAlign,yAlign:h.yAlign},v={x:h.x,y:h.y},y={width:h.width,height:h.height},b={x:h.caretX,y:h.caretY};if(g.length){f.opacity=1;var x=[],_=[];b=t.Tooltip.positioners[c.position](g,a._eventPosition);var k=[];for(n=0,i=g.length;n0&&i.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},i={x:e.x,y:e.y},a=Math.abs(e.opacity<.001)?0:e.opacity,r=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&r&&(this.drawBackground(i,e,t,n,a),i.x+=e.xPadding,i.y+=e.yPadding,this.drawTitle(i,e,t,a),this.drawBody(i,e,t,a),this.drawFooter(i,e,t,a))}},handleEvent:function(t){var e=this,n=e._options,i=!1;if(e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:e._active=e._chart.getElementsAtEventForMode(t,n.mode,n),!(i=!r.arrayEquals(e._active,e._lastActive)))return!1;if(e._lastActive=e._active,n.enabled||n.custom){e._eventPosition={x:t.x,y:t.y};var a=e._model;e.update(!0),e.pivot(),i|=a.x!==e._model.x||a.y!==e._model.y}return i}}),t.Tooltip.positioners={average:function(t){if(!t.length)return!1;var e,n,i=0,a=0,r=0;for(e=0,n=t.length;el;)a-=2*Math.PI;for(;a=s&&a<=l,d=o>=n.innerRadius&&o<=n.outerRadius;return u&&d}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t=this._chart.ctx,e=this._view,n=e.startAngle,i=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,n,i),t.arc(e.x,e.y,e.innerRadius,i,n,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},{25:25,26:26,45:45}],37:[function(t,e,n){"use strict";var i=t(25),a=t(26),r=t(45),o=i.global;i._set("global",{elements:{line:{tension:.4,backgroundColor:o.defaultColor,borderWidth:3,borderColor:o.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=a.extend({draw:function(){var t,e,n,i,a=this,s=a._view,l=a._chart.ctx,u=s.spanGaps,d=a._children.slice(),c=o.elements.line,h=-1;for(a._loop&&d.length&&d.push(d[0]),l.save(),l.lineCap=s.borderCapStyle||c.borderCapStyle,l.setLineDash&&l.setLineDash(s.borderDash||c.borderDash),l.lineDashOffset=s.borderDashOffset||c.borderDashOffset,l.lineJoin=s.borderJoinStyle||c.borderJoinStyle,l.lineWidth=s.borderWidth||c.borderWidth,l.strokeStyle=s.borderColor||o.defaultColor,l.beginPath(),h=-1,t=0;te?1:-1,o=1,s=u.borderSkipped||"left"):(e=u.x-u.width/2,n=u.x+u.width/2,i=u.y,r=1,o=(a=u.base)>i?1:-1,s=u.borderSkipped||"bottom"),d){var c=Math.min(Math.abs(e-n),Math.abs(i-a)),h=(d=d>c?c:d)/2,f=e+("left"!==s?h*r:0),g=n+("right"!==s?-h*r:0),m=i+("top"!==s?h*o:0),p=a+("bottom"!==s?-h*o:0);f!==g&&(i=m,a=p),m!==p&&(e=f,n=g)}l.beginPath(),l.fillStyle=u.backgroundColor,l.strokeStyle=u.borderColor,l.lineWidth=d;var v=[[e,a],[e,i],[n,i],[n,a]],y=["bottom","left","top","right"].indexOf(s,0);-1===y&&(y=0);var b=t(0);l.moveTo(b[0],b[1]);for(var x=1;x<4;x++)b=t(x),l.lineTo(b[0],b[1]);l.fill(),d&&l.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var n=!1;if(this._view){var i=a(this);n=t>=i.left&&t<=i.right&&e>=i.top&&e<=i.bottom}return n},inLabelRange:function(t,e){var n=this;if(!n._view)return!1;var r=a(n);return i(n)?t>=r.left&&t<=r.right:e>=r.top&&e<=r.bottom},inXRange:function(t){var e=a(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=a(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e,n=this._view;return i(this)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{25:25,26:26}],40:[function(t,e,n){"use strict";e.exports={},e.exports.Arc=t(36),e.exports.Line=t(37),e.exports.Point=t(38),e.exports.Rectangle=t(39)},{36:36,37:37,38:38,39:39}],41:[function(t,e,n){"use strict";var i=t(42),n=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,i,a,r){if(r){var o=Math.min(r,i/2),s=Math.min(r,a/2);t.moveTo(e+o,n),t.lineTo(e+i-o,n),t.quadraticCurveTo(e+i,n,e+i,n+s),t.lineTo(e+i,n+a-s),t.quadraticCurveTo(e+i,n+a,e+i-o,n+a),t.lineTo(e+o,n+a),t.quadraticCurveTo(e,n+a,e,n+a-s),t.lineTo(e,n+s),t.quadraticCurveTo(e,n,e+o,n)}else t.rect(e,n,i,a)},drawPoint:function(t,e,n,i,a){var r,o,s,l,u,d;if("object"!=typeof e||"[object HTMLImageElement]"!==(r=e.toString())&&"[object HTMLCanvasElement]"!==r){if(!(isNaN(n)||n<=0)){switch(e){default:t.beginPath(),t.arc(i,a,n,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),u=(o=3*n/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(i-o/2,a+u/3),t.lineTo(i+o/2,a+u/3),t.lineTo(i,a-2*u/3),t.closePath(),t.fill();break;case"rect":d=1/Math.SQRT2*n,t.beginPath(),t.fillRect(i-d,a-d,2*d,2*d),t.strokeRect(i-d,a-d,2*d,2*d);break;case"rectRounded":var c=n/Math.SQRT2,h=i-c,f=a-c,g=Math.SQRT2*n;t.beginPath(),this.roundedRect(t,h,f,g,g,n/2),t.closePath(),t.fill();break;case"rectRot":d=1/Math.SQRT2*n,t.beginPath(),t.moveTo(i-d,a),t.lineTo(i,a+d),t.lineTo(i+d,a),t.lineTo(i,a-d),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(i,a+n),t.lineTo(i,a-n),t.moveTo(i-n,a),t.lineTo(i+n,a),t.closePath();break;case"crossRot":t.beginPath(),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(i-s,a-l),t.lineTo(i+s,a+l),t.moveTo(i-s,a+l),t.lineTo(i+s,a-l),t.closePath();break;case"star":t.beginPath(),t.moveTo(i,a+n),t.lineTo(i,a-n),t.moveTo(i-n,a),t.lineTo(i+n,a),s=Math.cos(Math.PI/4)*n,l=Math.sin(Math.PI/4)*n,t.moveTo(i-s,a-l),t.lineTo(i+s,a+l),t.moveTo(i-s,a+l),t.lineTo(i+s,a-l),t.closePath();break;case"line":t.beginPath(),t.moveTo(i-n,a),t.lineTo(i+n,a),t.closePath();break;case"dash":t.beginPath(),t.moveTo(i,a),t.lineTo(i+n,a),t.closePath()}t.stroke()}}else t.drawImage(e,i-e.width/2,a-e.height/2,e.width,e.height)},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,i){if(n.steppedLine)return"after"===n.steppedLine&&!i||"after"!==n.steppedLine&&i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y),void t.lineTo(n.x,n.y);n.tension?t.bezierCurveTo(i?e.controlPointPreviousX:e.controlPointNextX,i?e.controlPointPreviousY:e.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}};i.clear=n.clear,i.drawRoundedRectangle=function(t){t.beginPath(),n.roundedRect.apply(n,arguments),t.closePath()}},{42:42}],42:[function(t,e,n){"use strict";var i={noop:function(){},uid:function(){var t=0;return function(){return t++}}(),isNullOrUndef:function(t){return null===t||void 0===t},isArray:Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,n){return i.valueOrDefault(i.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)},each:function(t,e,n,a){var r,o,s;if(i.isArray(t))if(o=t.length,a)for(r=o-1;r>=0;r--)e.call(n,t[r],r);else for(r=0;r=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:1===t?1:(n||(n=.3),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,i=1;return 0===t?0:2==(t/=.5)?1:(n||(n=.45),i<1?(i=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/i),t<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-a.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*a.easeInBounce(2*t):.5*a.easeOutBounce(2*t-1)+.5}};e.exports={effects:a},i.easingEffects=a},{42:42}],44:[function(t,e,n){"use strict";var i=t(42);e.exports={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,a,r;return i.isObject(t)?(e=+t.top||0,n=+t.right||0,a=+t.bottom||0,r=+t.left||0):e=n=a=r=+t||0,{top:e,right:n,bottom:a,left:r,height:e+a,width:r+n}},resolve:function(t,e,n){var a,r,o;for(a=0,r=t.length;a
';var a=e.childNodes[0],o=e.childNodes[1];e._reset=function(){a.scrollLeft=1e6,a.scrollTop=1e6,o.scrollLeft=1e6,o.scrollTop=1e6};var s=function(){e._reset(),t()};return r(a,"scroll",s.bind(a,"expand")),r(o,"scroll",s.bind(o,"shrink")),e}function c(t,e){var n=(t[v]||(t[v]={})).renderProxy=function(t){t.animationName===x&&e()};p.each(_,function(e){r(t,e,n)}),t.classList.add(b)}function h(t){var e=t[v]||{},n=e.renderProxy;n&&(p.each(_,function(e){o(t,e,n)}),delete e.renderProxy),t.classList.remove(b)}function f(t,e,n){var i=t[v]||(t[v]={}),a=i.resizer=d(u(function(){if(i.resizer)return e(s("resize",n))}));c(t,function(){if(i.resizer){var e=t.parentNode;e&&e!==a.parentNode&&e.insertBefore(a,e.firstChild),a._reset()}})}function g(t){var e=t[v]||{},n=e.resizer;delete e.resizer,h(t),n&&n.parentNode&&n.parentNode.removeChild(n)}function m(t,e){var n=t._style||document.createElement("style");t._style||(t._style=n,e="/* Chart.js */\n"+e,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(e))}var p=t(45),v="$chartjs",y="chartjs-",b=y+"render-monitor",x=y+"render-animation",_=["animationstart","webkitAnimationStart"],k={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},w=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t="from{opacity:0.99}to{opacity:1}";m(this,"@-webkit-keyframes "+x+"{"+t+"}@keyframes "+x+"{"+t+"}."+b+"{-webkit-animation:"+x+" 0.001s;animation:"+x+" 0.001s;}")},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(a(t,e),n):null},releaseContext:function(t){var e=t.canvas;if(e[v]){var n=e[v].initial;["height","width"].forEach(function(t){var i=n[t];p.isNullOrUndef(i)?e.removeAttribute(t):e.setAttribute(t,i)}),p.each(n.style||{},function(t,n){e.style[n]=t}),e.width=e.width,delete e[v]}},addEventListener:function(t,e,n){var i=t.canvas;if("resize"!==e){var a=n[v]||(n[v]={});r(i,e,(a.proxies||(a.proxies={}))[t.id+"_"+e]=function(e){n(l(e,t))})}else f(i,n,t)},removeEventListener:function(t,e,n){var i=t.canvas;if("resize"!==e){var a=((n[v]||{}).proxies||{})[t.id+"_"+e];a&&o(i,e,a)}else g(i)}},p.addEvent=r,p.removeEvent=o},{45:45}],48:[function(t,e,n){"use strict";var i=t(45),a=t(46),r=t(47),o=r._enabled?r:a;e.exports=i.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},o)},{45:45,46:46,47:47}],49:[function(t,e,n){"use strict";var i=t(25),a=t(40),r=t(45);i._set("global",{plugins:{filler:{propagate:!0}}}),e.exports=function(){function t(t,e,n){var i,a=t._model||{},r=a.fill;if(void 0===r&&(r=!!a.backgroundColor),!1===r||null===r)return!1;if(!0===r)return"origin";if(i=parseFloat(r,10),isFinite(i)&&Math.floor(i)===i)return"-"!==r[0]&&"+"!==r[0]||(i=e+i),!(i===e||i<0||i>=n)&&i;switch(r){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return r;default:return!1}}function e(t){var e,n=t.el._model||{},i=t.el._scale||{},a=t.fill,r=null;if(isFinite(a))return null;if("start"===a?r=void 0===n.scaleBottom?i.bottom:n.scaleBottom:"end"===a?r=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?r=n.scaleZero:i.getBasePosition?r=i.getBasePosition():i.getBasePixel&&(r=i.getBasePixel()),void 0!==r&&null!==r){if(void 0!==r.x&&void 0!==r.y)return r;if("number"==typeof r&&isFinite(r))return e=i.isHorizontal(),{x:e?r:null,y:e?null:r}}return null}function n(t,e,n){var i,a=t[e].fill,r=[e];if(!n)return a;for(;!1!==a&&-1===r.indexOf(a);){if(!isFinite(a))return a;if(!(i=t[a]))return!1;if(i.visible)return a;r.push(a),a=i.fill}return!1}function o(t){var e=t.fill,n="dataset";return!1===e?null:(isFinite(e)||(n="boundary"),d[n](t))}function s(t){return t&&!t.skip}function l(t,e,n,i,a){var o;if(i&&a){for(t.moveTo(e[0].x,e[0].y),o=1;o0;--o)r.canvas.lineTo(t,n[o],n[o-1],!0)}}function u(t,e,n,i,a,r){var o,u,d,c,h,f,g,m=e.length,p=i.spanGaps,v=[],y=[],b=0,x=0;for(t.beginPath(),o=0,u=m+!!r;o');for(var n=0;n'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("");return e.push(""),e.join("")}}),e.exports=function(t){function e(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}function n(e,n){var i=new t.Legend({ctx:e.ctx,options:n,chart:e});o.configure(e,i,n),o.addBox(e,i),e.legend=i}var o=t.layoutService,s=r.noop;return t.Legend=a.extend({initialize:function(t){r.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:s,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:s,beforeSetDimensions:s,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:s,beforeBuildLabels:s,buildLabels:function(){var t=this,e=t.options.labels||{},n=r.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(n=n.filter(function(n){return e.filter(n,t.chart.data)})),t.options.reverse&&n.reverse(),t.legendItems=n},afterBuildLabels:s,beforeFit:s,fit:function(){var t=this,n=t.options,a=n.labels,o=n.display,s=t.ctx,l=i.global,u=r.valueOrDefault,d=u(a.fontSize,l.defaultFontSize),c=u(a.fontStyle,l.defaultFontStyle),h=u(a.fontFamily,l.defaultFontFamily),f=r.fontString(d,c,h),g=t.legendHitBoxes=[],m=t.minSize,p=t.isHorizontal();if(p?(m.width=t.maxWidth,m.height=o?10:0):(m.width=o?10:0,m.height=t.maxHeight),o)if(s.font=f,p){var v=t.lineWidths=[0],y=t.legendItems.length?d+a.padding:0;s.textAlign="left",s.textBaseline="top",r.each(t.legendItems,function(n,i){var r=e(a,d)+d/2+s.measureText(n.text).width;v[v.length-1]+r+a.padding>=t.width&&(y+=d+a.padding,v[v.length]=t.left),g[i]={left:0,top:0,width:r,height:d},v[v.length-1]+=r+a.padding}),m.height+=y}else{var b=a.padding,x=t.columnWidths=[],_=a.padding,k=0,w=0,M=d+b;r.each(t.legendItems,function(t,n){var i=e(a,d)+d/2+s.measureText(t.text).width;w+M>m.height&&(_+=k+a.padding,x.push(k),k=0,w=0),k=Math.max(k,i),w+=M,g[n]={left:0,top:0,width:i,height:d}}),_+=k,x.push(k),m.width+=_}t.width=m.width,t.height=m.height},afterFit:s,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,n=t.options,a=n.labels,o=i.global,s=o.elements.line,l=t.width,u=t.lineWidths;if(n.display){var d,c=t.ctx,h=r.valueOrDefault,f=h(a.fontColor,o.defaultFontColor),g=h(a.fontSize,o.defaultFontSize),m=h(a.fontStyle,o.defaultFontStyle),p=h(a.fontFamily,o.defaultFontFamily),v=r.fontString(g,m,p);c.textAlign="left",c.textBaseline="middle",c.lineWidth=.5,c.strokeStyle=f,c.fillStyle=f,c.font=v;var y=e(a,g),b=t.legendHitBoxes,x=function(t,e,i){if(!(isNaN(y)||y<=0)){c.save(),c.fillStyle=h(i.fillStyle,o.defaultColor),c.lineCap=h(i.lineCap,s.borderCapStyle),c.lineDashOffset=h(i.lineDashOffset,s.borderDashOffset),c.lineJoin=h(i.lineJoin,s.borderJoinStyle),c.lineWidth=h(i.lineWidth,s.borderWidth),c.strokeStyle=h(i.strokeStyle,o.defaultColor);var a=0===h(i.lineWidth,s.borderWidth);if(c.setLineDash&&c.setLineDash(h(i.lineDash,s.borderDash)),n.labels&&n.labels.usePointStyle){var l=g*Math.SQRT2/2,u=l/Math.SQRT2,d=t+u,f=e+u;r.canvas.drawPoint(c,i.pointStyle,l,d,f)}else a||c.strokeRect(t,e,y,g),c.fillRect(t,e,y,g);c.restore()}},_=function(t,e,n,i){var a=g/2,r=y+a+t,o=e+a;c.fillText(n.text,r,o),n.hidden&&(c.beginPath(),c.lineWidth=2,c.moveTo(r,o),c.lineTo(r+i,o),c.stroke())},k=t.isHorizontal();d=k?{x:t.left+(l-u[0])/2,y:t.top+a.padding,line:0}:{x:t.left+a.padding,y:t.top+a.padding,line:0};var w=g+a.padding;r.each(t.legendItems,function(e,n){var i=c.measureText(e.text).width,r=y+g/2+i,o=d.x,s=d.y;k?o+r>=l&&(s=d.y+=w,d.line++,o=d.x=t.left+(l-u[d.line])/2):s+w>t.bottom&&(o=d.x=o+t.columnWidths[d.line]+a.padding,s=d.y=t.top+a.padding,d.line++),x(o,s,e),b[n].left=o,b[n].top=s,_(o,s,e,i),k?d.x+=r+a.padding:d.y+=w})}},handleEvent:function(t){var e=this,n=e.options,i="mouseup"===t.type?"click":t.type,a=!1;if("mousemove"===i){if(!n.onHover)return}else{if("click"!==i)return;if(!n.onClick)return}var r=t.x,o=t.y;if(r>=e.left&&r<=e.right&&o>=e.top&&o<=e.bottom)for(var s=e.legendHitBoxes,l=0;l=u.left&&r<=u.left+u.width&&o>=u.top&&o<=u.top+u.height){if("click"===i){n.onClick.call(e,t.native,e.legendItems[l]),a=!0;break}if("mousemove"===i){n.onHover.call(e,t.native,e.legendItems[l]),a=!0;break}}}return a}}),{id:"legend",beforeInit:function(t){var e=t.options.legend;e&&n(t,e)},beforeUpdate:function(t){var e=t.options.legend,a=t.legend;e?(r.mergeIf(e,i.global.legend),a?(o.configure(t,a,e),a.options=e):n(t,e)):a&&(o.removeBox(t,a),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}}}},{25:25,26:26,45:45}],51:[function(t,e,n){"use strict";var i=t(25),a=t(26),r=t(45);i._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}}),e.exports=function(t){function e(e,i){var a=new t.Title({ctx:e.ctx,options:i,chart:e});n.configure(e,a,i),n.addBox(e,a),e.titleBlock=a}var n=t.layoutService,o=r.noop;return t.Title=a.extend({initialize:function(t){var e=this;r.extend(e,t),e.legendHitBoxes=[]},beforeUpdate:o,update:function(t,e,n){var i=this;return i.beforeUpdate(),i.maxWidth=t,i.maxHeight=e,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:o,beforeSetDimensions:o,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:o,beforeBuildLabels:o,buildLabels:o,afterBuildLabels:o,beforeFit:o,fit:function(){var t=this,e=r.valueOrDefault,n=t.options,a=n.display,o=e(n.fontSize,i.global.defaultFontSize),s=t.minSize,l=r.isArray(n.text)?n.text.length:1,u=r.options.toLineHeight(n.lineHeight,o),d=a?l*u+2*n.padding:0;t.isHorizontal()?(s.width=t.maxWidth,s.height=d):(s.width=d,s.height=t.maxHeight),t.width=s.width,t.height=s.height},afterFit:o,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,n=r.valueOrDefault,a=t.options,o=i.global;if(a.display){var s,l,u,d=n(a.fontSize,o.defaultFontSize),c=n(a.fontStyle,o.defaultFontStyle),h=n(a.fontFamily,o.defaultFontFamily),f=r.fontString(d,c,h),g=r.options.toLineHeight(a.lineHeight,d),m=g/2+a.padding,p=0,v=t.top,y=t.left,b=t.bottom,x=t.right;e.fillStyle=n(a.fontColor,o.defaultFontColor),e.font=f,t.isHorizontal()?(l=y+(x-y)/2,u=v+m,s=x-y):(l="left"===a.position?y+m:x-m,u=v+(b-v)/2,s=b-v,p=Math.PI*("left"===a.position?-.5:.5)),e.save(),e.translate(l,u),e.rotate(p),e.textAlign="center",e.textBaseline="middle";var _=a.text;if(r.isArray(_))for(var k=0,w=0;w<_.length;++w)e.fillText(_[w],0,k,s),k+=g;else e.fillText(_,0,0,s);e.restore()}}}),{id:"title",beforeInit:function(t){var n=t.options.title;n&&e(t,n)},beforeUpdate:function(a){var o=a.options.title,s=a.titleBlock;o?(r.mergeIf(o,i.global.title),s?(n.configure(a,s,o),s.options=o):e(a,o)):s&&(t.layoutService.removeBox(a,s),delete a.titleBlock)}}}},{25:25,26:26,45:45}],52:[function(t,e,n){"use strict";e.exports=function(t){var e={position:"bottom"},n=t.Scale.extend({getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,e=t.getLabels();t.minIndex=0,t.maxIndex=e.length-1;var n;void 0!==t.options.ticks.min&&(n=e.indexOf(t.options.ticks.min),t.minIndex=-1!==n?n:t.minIndex),void 0!==t.options.ticks.max&&(n=e.indexOf(t.options.ticks.max),t.maxIndex=-1!==n?n:t.maxIndex),t.min=e[t.minIndex],t.max=e[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var n=this,i=n.chart.data,a=n.isHorizontal();return i.yLabels&&!a?n.getRightValue(i.datasets[e].data[t]):n.ticks[t-n.minIndex]},getPixelForValue:function(t,e){var n,i=this,a=i.options.offset,r=Math.max(i.maxIndex+1-i.minIndex-(a?0:1),1);if(void 0!==t&&null!==t&&(n=i.isHorizontal()?t.x:t.y),void 0!==n||void 0!==t&&isNaN(e)){var o=i.getLabels();t=n||t;var s=o.indexOf(t);e=-1!==s?s:e}if(i.isHorizontal()){var l=i.width/r,u=l*(e-i.minIndex);return a&&(u+=l/2),i.left+Math.round(u)}var d=i.height/r,c=d*(e-i.minIndex);return a&&(c+=d/2),i.top+Math.round(c)},getPixelForTick:function(t){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null)},getValueForPixel:function(t){var e=this,n=e.options.offset,i=Math.max(e._ticks.length-(n?0:1),1),a=e.isHorizontal(),r=(a?e.width:e.height)/i;return t-=a?e.left:e.top,n&&(t-=r/2),(t<=0?0:Math.round(t/r))+e.minIndex},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",n,e)}},{}],53:[function(t,e,n){"use strict";var i=t(25),a=t(45),r=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:r.formatters.linear}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return o?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,n=e.options,i=e.chart,r=i.data.datasets,o=e.isHorizontal();e.min=null,e.max=null;var s=n.stacked;if(void 0===s&&a.each(r,function(e,n){if(!s){var a=i.getDatasetMeta(n);i.isDatasetVisible(n)&&t(a)&&void 0!==a.stack&&(s=!0)}}),n.stacked||s){var l={};a.each(r,function(r,o){var s=i.getDatasetMeta(o),u=[s.type,void 0===n.stacked&&void 0===s.stack?o:"",s.stack].join(".");void 0===l[u]&&(l[u]={positiveValues:[],negativeValues:[]});var d=l[u].positiveValues,c=l[u].negativeValues;i.isDatasetVisible(o)&&t(s)&&a.each(r.data,function(t,i){var a=+e.getRightValue(t);isNaN(a)||s.data[i].hidden||(d[i]=d[i]||0,c[i]=c[i]||0,n.relativePoints?d[i]=100:a<0?c[i]+=a:d[i]+=a)})}),a.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),i=a.min(n),r=a.max(n);e.min=null===e.min?i:Math.min(e.min,i),e.max=null===e.max?r:Math.max(e.max,r)})}else a.each(r,function(n,r){var o=i.getDatasetMeta(r);i.isDatasetVisible(r)&&t(o)&&a.each(n.data,function(t,n){var i=+e.getRightValue(t);isNaN(i)||o.data[n].hidden||(null===e.min?e.min=i:ie.max&&(e.max=i))})});e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this,n=e.options.ticks;if(e.isHorizontal())t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.width/50));else{var r=a.valueOrDefault(n.fontSize,i.global.defaultFontSize);t=Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(e.height/(2*r)))}return t},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,n=this,i=n.start,a=+n.getRightValue(t),r=n.end-i;return n.isHorizontal()?(e=n.left+n.width/r*(a-i),Math.round(e)):(e=n.bottom-n.height/r*(a-i),Math.round(e))},getValueForPixel:function(t){var e=this,n=e.isHorizontal(),i=n?e.width:e.height,a=(n?t-e.left:e.bottom-t)/i;return e.start+(e.end-e.start)*a},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,e)}},{25:25,34:34,45:45}],54:[function(t,e,n){"use strict";var i=t(45),a=t(34);e.exports=function(t){var e=i.noop;t.LinearScaleBase=t.Scale.extend({getRightValue:function(e){return"string"==typeof e?+e:t.Scale.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var n=i.sign(t.min),a=i.sign(t.max);n<0&&a<0?t.max=0:n>0&&a>0&&(t.min=0)}var r=void 0!==e.min||void 0!==e.suggestedMin,o=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),r!==o&&t.min>=t.max&&(r?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:e,handleDirectionalChanges:e,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),r={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,stepSize:i.valueOrDefault(e.fixedStepSize,e.stepSize)},o=t.ticks=a.generators.linear(r,t);t.handleDirectionalChanges(),t.max=i.max(o),t.min=i.min(o),e.reverse?(o.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{34:34,45:45}],55:[function(t,e,n){"use strict";var i=t(45),a=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:a.formatters.logarithmic}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return l?t.xAxisID===e.id:t.yAxisID===e.id}var e=this,n=e.options,a=n.ticks,r=e.chart,o=r.data.datasets,s=i.valueOrDefault,l=e.isHorizontal();e.min=null,e.max=null,e.minNotZero=null;var u=n.stacked;if(void 0===u&&i.each(o,function(e,n){if(!u){var i=r.getDatasetMeta(n);r.isDatasetVisible(n)&&t(i)&&void 0!==i.stack&&(u=!0)}}),n.stacked||u){var d={};i.each(o,function(a,o){var s=r.getDatasetMeta(o),l=[s.type,void 0===n.stacked&&void 0===s.stack?o:"",s.stack].join(".");r.isDatasetVisible(o)&&t(s)&&(void 0===d[l]&&(d[l]=[]),i.each(a.data,function(t,i){var a=d[l],r=+e.getRightValue(t);isNaN(r)||s.data[i].hidden||(a[i]=a[i]||0,n.relativePoints?a[i]=100:a[i]+=r)}))}),i.each(d,function(t){var n=i.min(t),a=i.max(t);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?a:Math.max(e.max,a)})}else i.each(o,function(n,a){var o=r.getDatasetMeta(a);r.isDatasetVisible(a)&&t(o)&&i.each(n.data,function(t,n){var i=+e.getRightValue(t);isNaN(i)||o.data[n].hidden||(null===e.min?e.min=i:ie.max&&(e.max=i),0!==i&&(null===e.minNotZero||ia?{start:e-n-5,end:e}:{start:e,end:e+n+5}}function l(t){var i,r,l,u=n(t),d=Math.min(t.height/2,t.width/2),c={r:t.width,l:0,t:t.height,b:0},h={};t.ctx.font=u.font,t._pointLabelSizes=[];var f=e(t);for(i=0;ic.r&&(c.r=p.end,h.r=g),v.startc.b&&(c.b=v.end,h.b=g)}t.setReductions(d,c,h)}function u(t){var e=Math.min(t.height/2,t.width/2);t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0)}function d(t){return 0===t||180===t?"center":t<180?"left":"right"}function c(t,e,n,i){if(a.isArray(e))for(var r=n.y,o=1.5*i,s=0;s270||t<90)&&(n.y-=e.h)}function f(t){var i=t.ctx,r=a.valueOrDefault,o=t.options,s=o.angleLines,l=o.pointLabels;i.lineWidth=s.lineWidth,i.strokeStyle=s.color;var u=t.getDistanceFromCenterForValue(o.ticks.reverse?t.min:t.max),f=n(t);i.textBaseline="top";for(var g=e(t)-1;g>=0;g--){if(s.display){var m=t.getPointPosition(g,u);i.beginPath(),i.moveTo(t.xCenter,t.yCenter),i.lineTo(m.x,m.y),i.stroke(),i.closePath()}if(l.display){var v=t.getPointPosition(g,u+5),y=r(l.fontColor,p.defaultFontColor);i.font=f.font,i.fillStyle=y;var b=t.getIndexAngle(g),x=a.toDegrees(b);i.textAlign=d(x),h(x,t._pointLabelSizes[g],v),c(i,t.pointLabels[g]||"",v,f.size)}}}function g(t,n,i,r){var o=t.ctx;if(o.strokeStyle=a.valueAtIndexOrDefault(n.color,r-1),o.lineWidth=a.valueAtIndexOrDefault(n.lineWidth,r-1),t.options.gridLines.circular)o.beginPath(),o.arc(t.xCenter,t.yCenter,i,0,2*Math.PI),o.closePath(),o.stroke();else{var s=e(t);if(0===s)return;o.beginPath();var l=t.getPointPosition(0,i);o.moveTo(l.x,l.y);for(var u=1;u0&&n>0?e:0)},draw:function(){var t=this,e=t.options,n=e.gridLines,i=e.ticks,r=a.valueOrDefault;if(e.display){var o=t.ctx,s=this.getIndexAngle(0),l=r(i.fontSize,p.defaultFontSize),u=r(i.fontStyle,p.defaultFontStyle),d=r(i.fontFamily,p.defaultFontFamily),c=a.fontString(l,u,d);a.each(t.ticks,function(e,a){if(a>0||i.reverse){var u=t.getDistanceFromCenterForValue(t.ticksAsNumbers[a]);if(n.display&&0!==a&&g(t,n,u,a),i.display){var d=r(i.fontColor,p.defaultFontColor);if(o.font=c,o.save(),o.translate(t.xCenter,t.yCenter),o.rotate(s),i.showLabelBackdrop){var h=o.measureText(e).width;o.fillStyle=i.backdropColor,o.fillRect(-h/2-i.backdropPaddingX,-u-l/2-i.backdropPaddingY,h+2*i.backdropPaddingX,l+2*i.backdropPaddingY)}o.textAlign="center",o.textBaseline="middle",o.fillStyle=d,o.fillText(e,0,-u),o.restore()}}}),(e.angleLines.display||e.pointLabels.display)&&f(t)}}});t.scaleService.registerScaleType("radialLinear",y,v)}},{25:25,34:34,45:45}],57:[function(t,e,n){"use strict";function i(t,e){return t-e}function a(t){var e,n,i,a={},r=[];for(e=0,n=t.length;ee&&s=0&&o<=s;){if(i=o+s>>1,a=t[i-1]||null,r=t[i],!a)return{lo:null,hi:r};if(r[e]n))return{lo:a,hi:r};s=i-1}}return{lo:r,hi:null}}function s(t,e,n,i){var a=o(t,e,n),r=a.lo?a.hi?a.lo:t[t.length-2]:t[0],s=a.lo?a.hi?a.hi:t[t.length-1]:t[1],l=s[e]-r[e],u=l?(n-r[e])/l:0,d=(s[i]-r[i])*u;return r[i]+d}function l(t,e){var n=e.parser,i=e.parser||e.format;return"function"==typeof n?n(t):"string"==typeof t&&"string"==typeof i?p(t,i):(t instanceof p||(t=p(t)),t.isValid()?t:"function"==typeof i?i(t):t)}function u(t,e){if(y.isNullOrUndef(t))return null;var n=e.options.time,i=l(e.getRightValue(t),n);return i.isValid()?(n.round&&i.startOf(n.round),i.valueOf()):null}function d(t,e,n,i){var a,r,o,s=e-t,l=_[n],u=l.size,d=l.steps;if(!d)return Math.ceil(s/((i||1)*u));for(a=0,r=d.length;a1?e[1]:i,o=e[0],l=(s(t,"time",r,"pos")-s(t,"time",o,"pos"))/2),a.time.max||(r=e[e.length-1],o=e.length>1?e[e.length-2]:n,u=(s(t,"time",r,"pos")-s(t,"time",o,"pos"))/2)),{left:l,right:u}}function m(t,e){var n,i,a,r,o=[];for(n=0,i=t.length;n=a&&n<=o&&x.push(n);return i.min=a,i.max=o,i._unit=v,i._majorUnit=y,i._minorFormat=d[v],i._majorFormat=d[y],i._table=r(i._timestamps.data,a,o,s.distribution),i._offsets=g(i._table,x,a,o,s),m(x,y)},getLabelForIndex:function(t,e){var n=this,i=n.chart.data,a=n.options.time,r=i.labels&&t=0&&t - * @version 1.2.2 - * @licence MIT - * @preserve - */ -!function(i){if("function"==typeof define&&define.amd)define(["jquery"],i);else if("object"==typeof module&&module.exports){var t=require("jquery");i(t),module.exports=t}else i(jQuery)}(function(i){function t(i){this.init(i)}t.prototype={value:0,size:100,startAngle:-Math.PI,thickness:"auto",fill:{gradient:["#3aeabb","#fdd250"]},emptyFill:"rgba(0, 0, 0, .1)",animation:{duration:1200,easing:"circleProgressEasing"},animationStartValue:0,reverse:!1,lineCap:"butt",insertMode:"prepend",constructor:t,el:null,canvas:null,ctx:null,radius:0,arcFill:null,lastFrameValue:0,init:function(t){i.extend(this,t),this.radius=this.size/2,this.initWidget(),this.initFill(),this.draw(),this.el.trigger("circle-inited")},initWidget:function(){this.canvas||(this.canvas=i("")["prepend"==this.insertMode?"prependTo":"appendTo"](this.el)[0]);var t=this.canvas;if(t.width=this.size,t.height=this.size,this.ctx=t.getContext("2d"),window.devicePixelRatio>1){var e=window.devicePixelRatio;t.style.width=t.style.height=this.size+"px",t.width=t.height=this.size*e,this.ctx.scale(e,e)}},initFill:function(){function t(){var t=i("")[0];t.width=e.size,t.height=e.size,t.getContext("2d").drawImage(g,0,0,r,r),e.arcFill=e.ctx.createPattern(t,"no-repeat"),e.drawFrame(e.lastFrameValue)}var e=this,a=this.fill,n=this.ctx,r=this.size;if(!a)throw Error("The fill is not specified!");if("string"==typeof a&&(a={color:a}),a.color&&(this.arcFill=a.color),a.gradient){var s=a.gradient;if(1==s.length)this.arcFill=s[0];else if(s.length>1){for(var l=a.gradientAngle||0,o=a.gradientDirection||[r/2*(1-Math.cos(l)),r/2*(1+Math.sin(l)),r/2*(1+Math.cos(l)),r/2*(1-Math.sin(l))],h=n.createLinearGradient.apply(n,o),c=0;c=0&&c0&&b-1 in a)}var x=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=function(a,b){for(var c=0,d=a.length;c+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(N),U=new RegExp("^"+L+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),aa=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:d<0?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ba=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ca=function(a,b){return b?"\0"===a?"\ufffd":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},da=function(){m()},ea=ta(function(a){return a.disabled===!0&&("form"in a||"label"in a)},{dir:"parentNode",next:"legend"});try{G.apply(D=H.call(v.childNodes),v.childNodes),D[v.childNodes.length].nodeType}catch(fa){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s=b&&b.ownerDocument,w=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==w&&9!==w&&11!==w)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==w&&(l=Z.exec(a)))if(f=l[1]){if(9===w){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(s&&(j=s.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(l[2])return G.apply(d,b.getElementsByTagName(a)),d;if((f=l[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==w)s=b,r=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(ba,ca):b.setAttribute("id",k=u),o=g(a),h=o.length;while(h--)o[h]="#"+k+" "+sa(o[h]);r=o.join(","),s=$.test(a)&&qa(b.parentNode)||b}if(r)try{return G.apply(d,s.querySelectorAll(r)),d}catch(x){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(P,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return function(b){return"form"in b?b.parentNode&&b.disabled===!1?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&ea(b)===a:b.disabled===a:"label"in b&&b.disabled===a}}function pa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function qa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return!!b&&"HTML"!==b.nodeName},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),v!==n&&(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(n.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){return a.getAttribute("id")===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}}):(d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}},d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c,d,e,f=b.getElementById(a);if(f){if(c=f.getAttributeNode("id"),c&&c.value===a)return[f];e=b.getElementsByName(a),d=0;while(f=e[d++])if(c=f.getAttributeNode("id"),c&&c.value===a)return[f]}return[]}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){if("undefined"!=typeof b.getElementsByClassName&&p)return b.getElementsByClassName(a)},r=[],q=[],(c.qsa=Y.test(n.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){a.innerHTML="";var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+K+"*[*^$|!~]?="),2!==a.querySelectorAll(":enabled").length&&q.push(":enabled",":disabled"),o.appendChild(a).disabled=!0,2!==a.querySelectorAll(":disabled").length&&q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Y.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"*"),s.call(a,"[s!='']:x"),r.push("!=",N)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Y.test(o.compareDocumentPosition),t=b||Y.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?I(k,a)-I(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?I(k,a)-I(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?la(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(S,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.escape=function(a){return(a+"").replace(ba,ca)},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(_,aa),a[3]=(a[3]||a[4]||a[5]||"").replace(_,aa),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return V.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&T.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(_,aa).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:!b||(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(O," ")+" ").indexOf(c)>-1:"|="===b&&(e===c||e.slice(0,c.length+1)===c+"-"))}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(P,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(_,aa),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return U.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(_,aa).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:oa(!1),disabled:oa(!0),checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:pa(function(){return[0]}),last:pa(function(a,b){return[b-1]}),eq:pa(function(a,b,c){return[c<0?c+b:c]}),even:pa(function(a,b){for(var c=0;c=0;)a.push(d);return a}),gt:pa(function(a,b,c){for(var d=c<0?c+b:c;++d1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function va(a,b,c){for(var d=0,e=b.length;d-1&&(f[j]=!(g[j]=l))}}else r=wa(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ya(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ta(function(a){return a===b},h,!0),l=ta(function(a){return I(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];i1&&ua(m),i>1&&sa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(P,"$1"),c,i0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=E.call(i));u=wa(u)}G.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&ga.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=ya(b[c]),f[u]?d.push(f):e.push(f);f=A(a,za(e,d)),f.selector=a}return f},i=ga.select=function(a,b,c,e){var f,i,j,k,l,m="function"==typeof a&&a,n=!e&&g(a=m.selector||a);if(c=c||[],1===n.length){if(i=n[0]=n[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&9===b.nodeType&&p&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(_,aa),b)||[])[0],!b)return c;m&&(b=b.parentNode),a=a.slice(i.shift().value.length)}f=V.needsContext.test(a)?0:i.length;while(f--){if(j=i[f],d.relative[k=j.type])break;if((l=d.find[k])&&(e=l(j.matches[0].replace(_,aa),$.test(i[0].type)&&qa(b.parentNode)||b))){if(i.splice(f,1),a=e.length&&sa(i),!a)return G.apply(c,e),c;break}}}return(m||h(a,n))(e,b,!p,c,!b||$.test(a)&&qa(b.parentNode)||b),c},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("fieldset"))}),ja(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(J,function(a,b,c){var d;if(!c)return a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);r.find=x,r.expr=x.selectors,r.expr[":"]=r.expr.pseudos,r.uniqueSort=r.unique=x.uniqueSort,r.text=x.getText,r.isXMLDoc=x.isXML,r.contains=x.contains,r.escapeSelector=x.escape;var y=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&r(a).is(c))break;d.push(a)}return d},z=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},A=r.expr.match.needsContext;function B(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()}var C=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,D=/^.[^:#\[\.,]*$/;function E(a,b,c){return r.isFunction(b)?r.grep(a,function(a,d){return!!b.call(a,d,a)!==c}):b.nodeType?r.grep(a,function(a){return a===b!==c}):"string"!=typeof b?r.grep(a,function(a){return i.call(b,a)>-1!==c}):D.test(b)?r.filter(b,a,c):(b=r.filter(b,a),r.grep(a,function(a){return i.call(b,a)>-1!==c&&1===a.nodeType}))}r.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?r.find.matchesSelector(d,a)?[d]:[]:r.find.matches(a,r.grep(b,function(a){return 1===a.nodeType}))},r.fn.extend({find:function(a){var b,c,d=this.length,e=this;if("string"!=typeof a)return this.pushStack(r(a).filter(function(){for(b=0;b1?r.uniqueSort(c):c},filter:function(a){return this.pushStack(E(this,a||[],!1))},not:function(a){return this.pushStack(E(this,a||[],!0))},is:function(a){return!!E(this,"string"==typeof a&&A.test(a)?r(a):a||[],!1).length}});var F,G=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,H=r.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||F,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:G.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof r?b[0]:b,r.merge(this,r.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),C.test(e[1])&&r.isPlainObject(b))for(e in b)r.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&(this[0]=f,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):r.isFunction(a)?void 0!==c.ready?c.ready(a):a(r):r.makeArray(a,this)};H.prototype=r.fn,F=r(d);var I=/^(?:parents|prev(?:Until|All))/,J={children:!0,contents:!0,next:!0,prev:!0};r.fn.extend({has:function(a){var b=r(a,this),c=b.length;return this.filter(function(){for(var a=0;a-1:1===c.nodeType&&r.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?r.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?i.call(r(a),this[0]):i.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(r.uniqueSort(r.merge(this.get(),r(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function K(a,b){while((a=a[b])&&1!==a.nodeType);return a}r.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return y(a,"parentNode")},parentsUntil:function(a,b,c){return y(a,"parentNode",c)},next:function(a){return K(a,"nextSibling")},prev:function(a){return K(a,"previousSibling")},nextAll:function(a){return y(a,"nextSibling")},prevAll:function(a){return y(a,"previousSibling")},nextUntil:function(a,b,c){return y(a,"nextSibling",c)},prevUntil:function(a,b,c){return y(a,"previousSibling",c)},siblings:function(a){return z((a.parentNode||{}).firstChild,a)},children:function(a){return z(a.firstChild)},contents:function(a){return B(a,"iframe")?a.contentDocument:(B(a,"template")&&(a=a.content||a),r.merge([],a.childNodes))}},function(a,b){r.fn[a]=function(c,d){var e=r.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=r.filter(d,e)),this.length>1&&(J[a]||r.uniqueSort(e),I.test(a)&&e.reverse()),this.pushStack(e)}});var L=/[^\x20\t\r\n\f]+/g;function M(a){var b={};return r.each(a.match(L)||[],function(a,c){b[c]=!0}),b}r.Callbacks=function(a){a="string"==typeof a?M(a):r.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=e||a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h-1)f.splice(c,1),c<=h&&h--}),this},has:function(a){return a?r.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||b||(f=c=""),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j};function N(a){return a}function O(a){throw a}function P(a,b,c,d){var e;try{a&&r.isFunction(e=a.promise)?e.call(a).done(b).fail(c):a&&r.isFunction(e=a.then)?e.call(a,b,c):b.apply(void 0,[a].slice(d))}catch(a){c.apply(void 0,[a])}}r.extend({Deferred:function(b){var c=[["notify","progress",r.Callbacks("memory"),r.Callbacks("memory"),2],["resolve","done",r.Callbacks("once memory"),r.Callbacks("once memory"),0,"resolved"],["reject","fail",r.Callbacks("once memory"),r.Callbacks("once memory"),1,"rejected"]],d="pending",e={state:function(){return d},always:function(){return f.done(arguments).fail(arguments),this},"catch":function(a){return e.then(null,a)},pipe:function(){var a=arguments;return r.Deferred(function(b){r.each(c,function(c,d){var e=r.isFunction(a[d[4]])&&a[d[4]];f[d[1]](function(){var a=e&&e.apply(this,arguments);a&&r.isFunction(a.promise)?a.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[d[0]+"With"](this,e?[a]:arguments)})}),a=null}).promise()},then:function(b,d,e){var f=0;function g(b,c,d,e){return function(){var h=this,i=arguments,j=function(){var a,j;if(!(b=f&&(d!==O&&(h=void 0,i=[a]),c.rejectWith(h,i))}};b?k():(r.Deferred.getStackHook&&(k.stackTrace=r.Deferred.getStackHook()),a.setTimeout(k))}}return r.Deferred(function(a){c[0][3].add(g(0,a,r.isFunction(e)?e:N,a.notifyWith)),c[1][3].add(g(0,a,r.isFunction(b)?b:N)),c[2][3].add(g(0,a,r.isFunction(d)?d:O))}).promise()},promise:function(a){return null!=a?r.extend(a,e):e}},f={};return r.each(c,function(a,b){var g=b[2],h=b[5];e[b[1]]=g.add,h&&g.add(function(){d=h},c[3-a][2].disable,c[0][2].lock),g.add(b[3].fire),f[b[0]]=function(){return f[b[0]+"With"](this===f?void 0:this,arguments),this},f[b[0]+"With"]=g.fireWith}),e.promise(f),b&&b.call(f,f),f},when:function(a){var b=arguments.length,c=b,d=Array(c),e=f.call(arguments),g=r.Deferred(),h=function(a){return function(c){d[a]=this,e[a]=arguments.length>1?f.call(arguments):c,--b||g.resolveWith(d,e)}};if(b<=1&&(P(a,g.done(h(c)).resolve,g.reject,!b),"pending"===g.state()||r.isFunction(e[c]&&e[c].then)))return g.then();while(c--)P(e[c],h(c),g.reject);return g.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;r.Deferred.exceptionHook=function(b,c){a.console&&a.console.warn&&b&&Q.test(b.name)&&a.console.warn("jQuery.Deferred exception: "+b.message,b.stack,c)},r.readyException=function(b){a.setTimeout(function(){throw b})};var R=r.Deferred();r.fn.ready=function(a){return R.then(a)["catch"](function(a){r.readyException(a)}),this},r.extend({isReady:!1,readyWait:1,ready:function(a){(a===!0?--r.readyWait:r.isReady)||(r.isReady=!0,a!==!0&&--r.readyWait>0||R.resolveWith(d,[r]))}}),r.ready.then=R.then;function S(){d.removeEventListener("DOMContentLoaded",S), -a.removeEventListener("load",S),r.ready()}"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(r.ready):(d.addEventListener("DOMContentLoaded",S),a.addEventListener("load",S));var T=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===r.type(c)){e=!0;for(h in c)T(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,r.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(r(a),c)})),b))for(;h1,null,!0)},removeData:function(a){return this.each(function(){X.remove(this,a)})}}),r.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=W.get(a,b),c&&(!d||Array.isArray(c)?d=W.access(a,b,r.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=r.queue(a,b),d=c.length,e=c.shift(),f=r._queueHooks(a,b),g=function(){r.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return W.get(a,c)||W.access(a,c,{empty:r.Callbacks("once memory").add(function(){W.remove(a,[b+"queue",c])})})}}),r.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length\x20\t\r\n\f]+)/i,la=/^$|\/(?:java|ecma)script/i,ma={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};ma.optgroup=ma.option,ma.tbody=ma.tfoot=ma.colgroup=ma.caption=ma.thead,ma.th=ma.td;function na(a,b){var c;return c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[],void 0===b||b&&B(a,b)?r.merge([a],c):c}function oa(a,b){for(var c=0,d=a.length;c-1)e&&e.push(f);else if(j=r.contains(f.ownerDocument,f),g=na(l.appendChild(f),"script"),j&&oa(g),c){k=0;while(f=g[k++])la.test(f.type||"")&&c.push(f)}return l}!function(){var a=d.createDocumentFragment(),b=a.appendChild(d.createElement("div")),c=d.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),o.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="",o.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var ra=d.documentElement,sa=/^key/,ta=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ua=/^([^.]*)(?:\.(.+)|)/;function va(){return!0}function wa(){return!1}function xa(){try{return d.activeElement}catch(a){}}function ya(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)ya(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=wa;else if(!e)return a;return 1===f&&(g=e,e=function(a){return r().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=r.guid++)),a.each(function(){r.event.add(this,b,e,d,c)})}r.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=W.get(a);if(q){c.handler&&(f=c,c=f.handler,e=f.selector),e&&r.find.matchesSelector(ra,e),c.guid||(c.guid=r.guid++),(i=q.events)||(i=q.events={}),(g=q.handle)||(g=q.handle=function(b){return"undefined"!=typeof r&&r.event.triggered!==b.type?r.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(L)||[""],j=b.length;while(j--)h=ua.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n&&(l=r.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=r.event.special[n]||{},k=r.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&r.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,o,g)!==!1||a.addEventListener&&a.addEventListener(n,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),r.event.global[n]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=W.hasData(a)&&W.get(a);if(q&&(i=q.events)){b=(b||"").match(L)||[""],j=b.length;while(j--)if(h=ua.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){l=r.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&p!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,o,q.handle)!==!1||r.removeEvent(a,n,q.handle),delete i[n])}else for(n in i)r.event.remove(a,n+b[j],c,d,!0);r.isEmptyObject(i)&&W.remove(a,"handle events")}},dispatch:function(a){var b=r.event.fix(a),c,d,e,f,g,h,i=new Array(arguments.length),j=(W.get(this,"events")||{})[b.type]||[],k=r.event.special[b.type]||{};for(i[0]=b,c=1;c=1))for(;j!==this;j=j.parentNode||this)if(1===j.nodeType&&("click"!==a.type||j.disabled!==!0)){for(f=[],g={},c=0;c-1:r.find(e,this,null,[j]).length),g[e]&&f.push(d);f.length&&h.push({elem:j,handlers:f})}return j=this,i\x20\t\r\n\f]*)[^>]*)\/>/gi,Aa=/\s*$/g;function Ea(a,b){return B(a,"table")&&B(11!==b.nodeType?b:b.firstChild,"tr")?r(">tbody",a)[0]||a:a}function Fa(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function Ga(a){var b=Ca.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Ha(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(W.hasData(a)&&(f=W.access(a),g=W.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;c1&&"string"==typeof q&&!o.checkClone&&Ba.test(q))return a.each(function(e){var f=a.eq(e);s&&(b[0]=q.call(this,e,f.html())),Ja(f,b,c,d)});if(m&&(e=qa(b,a[0].ownerDocument,!1,a,d),f=e.firstChild,1===e.childNodes.length&&(e=f),f||d)){for(h=r.map(na(e,"script"),Fa),i=h.length;l")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=r.contains(a.ownerDocument,a);if(!(o.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||r.isXMLDoc(a)))for(g=na(h),f=na(a),d=0,e=f.length;d0&&oa(g,!i&&na(a,"script")),h},cleanData:function(a){for(var b,c,d,e=r.event.special,f=0;void 0!==(c=a[f]);f++)if(U(c)){if(b=c[W.expando]){if(b.events)for(d in b.events)e[d]?r.event.remove(c,d):r.removeEvent(c,d,b.handle);c[W.expando]=void 0}c[X.expando]&&(c[X.expando]=void 0)}}}),r.fn.extend({detach:function(a){return Ka(this,a,!0)},remove:function(a){return Ka(this,a)},text:function(a){return T(this,function(a){return void 0===a?r.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return Ja(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ea(this,a);b.appendChild(a)}})},prepend:function(){return Ja(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ea(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ja(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ja(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(r.cleanData(na(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null!=a&&a,b=null==b?a:b,this.map(function(){return r.clone(this,a,b)})},html:function(a){return T(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!Aa.test(a)&&!ma[(ka.exec(a)||["",""])[1].toLowerCase()]){a=r.htmlPrefilter(a);try{for(;c1)}});function _a(a,b,c,d,e){return new _a.prototype.init(a,b,c,d,e)}r.Tween=_a,_a.prototype={constructor:_a,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||r.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(r.cssNumber[c]?"":"px")},cur:function(){var a=_a.propHooks[this.prop];return a&&a.get?a.get(this):_a.propHooks._default.get(this)},run:function(a){var b,c=_a.propHooks[this.prop];return this.options.duration?this.pos=b=r.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):_a.propHooks._default.set(this),this}},_a.prototype.init.prototype=_a.prototype,_a.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=r.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){r.fx.step[a.prop]?r.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[r.cssProps[a.prop]]&&!r.cssHooks[a.prop]?a.elem[a.prop]=a.now:r.style(a.elem,a.prop,a.now+a.unit)}}},_a.propHooks.scrollTop=_a.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},r.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},r.fx=_a.prototype.init,r.fx.step={};var ab,bb,cb=/^(?:toggle|show|hide)$/,db=/queueHooks$/;function eb(){bb&&(d.hidden===!1&&a.requestAnimationFrame?a.requestAnimationFrame(eb):a.setTimeout(eb,r.fx.interval),r.fx.tick())}function fb(){return a.setTimeout(function(){ab=void 0}),ab=r.now()}function gb(a,b){var c,d=0,e={height:a};for(b=b?1:0;d<4;d+=2-b)c=ca[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function hb(a,b,c){for(var d,e=(kb.tweeners[b]||[]).concat(kb.tweeners["*"]),f=0,g=e.length;f1)},removeAttr:function(a){return this.each(function(){r.removeAttr(this,a)})}}),r.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?r.prop(a,b,c):(1===f&&r.isXMLDoc(a)||(e=r.attrHooks[b.toLowerCase()]||(r.expr.match.bool.test(b)?lb:void 0)),void 0!==c?null===c?void r.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=r.find.attr(a,b), -null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"===b&&B(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d=0,e=b&&b.match(L);if(e&&1===a.nodeType)while(c=e[d++])a.removeAttribute(c)}}),lb={set:function(a,b,c){return b===!1?r.removeAttr(a,c):a.setAttribute(c,c),c}},r.each(r.expr.match.bool.source.match(/\w+/g),function(a,b){var c=mb[b]||r.find.attr;mb[b]=function(a,b,d){var e,f,g=b.toLowerCase();return d||(f=mb[g],mb[g]=e,e=null!=c(a,b,d)?g:null,mb[g]=f),e}});var nb=/^(?:input|select|textarea|button)$/i,ob=/^(?:a|area)$/i;r.fn.extend({prop:function(a,b){return T(this,r.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[r.propFix[a]||a]})}}),r.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&r.isXMLDoc(a)||(b=r.propFix[b]||b,e=r.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=r.find.attr(a,"tabindex");return b?parseInt(b,10):nb.test(a.nodeName)||ob.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),o.optSelected||(r.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),r.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){r.propFix[this.toLowerCase()]=this});function pb(a){var b=a.match(L)||[];return b.join(" ")}function qb(a){return a.getAttribute&&a.getAttribute("class")||""}r.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).addClass(a.call(this,b,qb(this)))});if("string"==typeof a&&a){b=a.match(L)||[];while(c=this[i++])if(e=qb(c),d=1===c.nodeType&&" "+pb(e)+" "){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=pb(d),e!==h&&c.setAttribute("class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).removeClass(a.call(this,b,qb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(L)||[];while(c=this[i++])if(e=qb(c),d=1===c.nodeType&&" "+pb(e)+" "){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=pb(d),e!==h&&c.setAttribute("class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):r.isFunction(a)?this.each(function(c){r(this).toggleClass(a.call(this,c,qb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=r(this),f=a.match(L)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=qb(this),b&&W.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":W.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+pb(qb(c))+" ").indexOf(b)>-1)return!0;return!1}});var rb=/\r/g;r.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=r.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,r(this).val()):a,null==e?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=r.map(e,function(a){return null==a?"":a+""})),b=r.valHooks[this.type]||r.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=r.valHooks[e.type]||r.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(rb,""):null==c?"":c)}}}),r.extend({valHooks:{option:{get:function(a){var b=r.find.attr(a,"value");return null!=b?b:pb(r.text(a))}},select:{get:function(a){var b,c,d,e=a.options,f=a.selectedIndex,g="select-one"===a.type,h=g?null:[],i=g?f+1:e.length;for(d=f<0?i:g?f:0;d-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),r.each(["radio","checkbox"],function(){r.valHooks[this]={set:function(a,b){if(Array.isArray(b))return a.checked=r.inArray(r(a).val(),b)>-1}},o.checkOn||(r.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var sb=/^(?:focusinfocus|focusoutblur)$/;r.extend(r.event,{trigger:function(b,c,e,f){var g,h,i,j,k,m,n,o=[e||d],p=l.call(b,"type")?b.type:b,q=l.call(b,"namespace")?b.namespace.split("."):[];if(h=i=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!sb.test(p+r.event.triggered)&&(p.indexOf(".")>-1&&(q=p.split("."),p=q.shift(),q.sort()),k=p.indexOf(":")<0&&"on"+p,b=b[r.expando]?b:new r.Event(p,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=q.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:r.makeArray(c,[b]),n=r.event.special[p]||{},f||!n.trigger||n.trigger.apply(e,c)!==!1)){if(!f&&!n.noBubble&&!r.isWindow(e)){for(j=n.delegateType||p,sb.test(j+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),i=h;i===(e.ownerDocument||d)&&o.push(i.defaultView||i.parentWindow||a)}g=0;while((h=o[g++])&&!b.isPropagationStopped())b.type=g>1?j:n.bindType||p,m=(W.get(h,"events")||{})[b.type]&&W.get(h,"handle"),m&&m.apply(h,c),m=k&&h[k],m&&m.apply&&U(h)&&(b.result=m.apply(h,c),b.result===!1&&b.preventDefault());return b.type=p,f||b.isDefaultPrevented()||n._default&&n._default.apply(o.pop(),c)!==!1||!U(e)||k&&r.isFunction(e[p])&&!r.isWindow(e)&&(i=e[k],i&&(e[k]=null),r.event.triggered=p,e[p](),r.event.triggered=void 0,i&&(e[k]=i)),b.result}},simulate:function(a,b,c){var d=r.extend(new r.Event,c,{type:a,isSimulated:!0});r.event.trigger(d,null,b)}}),r.fn.extend({trigger:function(a,b){return this.each(function(){r.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];if(c)return r.event.trigger(a,b,c,!0)}}),r.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(a,b){r.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),r.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),o.focusin="onfocusin"in a,o.focusin||r.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){r.event.simulate(b,a.target,r.event.fix(a))};r.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=W.access(d,b);e||d.addEventListener(a,c,!0),W.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=W.access(d,b)-1;e?W.access(d,b,e):(d.removeEventListener(a,c,!0),W.remove(d,b))}}});var tb=a.location,ub=r.now(),vb=/\?/;r.parseXML=function(b){var c;if(!b||"string"!=typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(d){c=void 0}return c&&!c.getElementsByTagName("parsererror").length||r.error("Invalid XML: "+b),c};var wb=/\[\]$/,xb=/\r?\n/g,yb=/^(?:submit|button|image|reset|file)$/i,zb=/^(?:input|select|textarea|keygen)/i;function Ab(a,b,c,d){var e;if(Array.isArray(b))r.each(b,function(b,e){c||wb.test(a)?d(a,e):Ab(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==r.type(b))d(a,b);else for(e in b)Ab(a+"["+e+"]",b[e],c,d)}r.param=function(a,b){var c,d=[],e=function(a,b){var c=r.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(null==c?"":c)};if(Array.isArray(a)||a.jquery&&!r.isPlainObject(a))r.each(a,function(){e(this.name,this.value)});else for(c in a)Ab(c,a[c],b,e);return d.join("&")},r.fn.extend({serialize:function(){return r.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=r.prop(this,"elements");return a?r.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!r(this).is(":disabled")&&zb.test(this.nodeName)&&!yb.test(a)&&(this.checked||!ja.test(a))}).map(function(a,b){var c=r(this).val();return null==c?null:Array.isArray(c)?r.map(c,function(a){return{name:b.name,value:a.replace(xb,"\r\n")}}):{name:b.name,value:c.replace(xb,"\r\n")}}).get()}});var Bb=/%20/g,Cb=/#.*$/,Db=/([?&])_=[^&]*/,Eb=/^(.*?):[ \t]*([^\r\n]*)$/gm,Fb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Gb=/^(?:GET|HEAD)$/,Hb=/^\/\//,Ib={},Jb={},Kb="*/".concat("*"),Lb=d.createElement("a");Lb.href=tb.href;function Mb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(L)||[];if(r.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Nb(a,b,c,d){var e={},f=a===Jb;function g(h){var i;return e[h]=!0,r.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Ob(a,b){var c,d,e=r.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&r.extend(!0,a,d),a}function Pb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}if(f)return f!==i[0]&&i.unshift(f),c[f]}function Qb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}r.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:tb.href,type:"GET",isLocal:Fb.test(tb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Kb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":r.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Ob(Ob(a,r.ajaxSettings),b):Ob(r.ajaxSettings,a)},ajaxPrefilter:Mb(Ib),ajaxTransport:Mb(Jb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m,n,o=r.ajaxSetup({},c),p=o.context||o,q=o.context&&(p.nodeType||p.jquery)?r(p):r.event,s=r.Deferred(),t=r.Callbacks("once memory"),u=o.statusCode||{},v={},w={},x="canceled",y={readyState:0,getResponseHeader:function(a){var b;if(k){if(!h){h={};while(b=Eb.exec(g))h[b[1].toLowerCase()]=b[2]}b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return k?g:null},setRequestHeader:function(a,b){return null==k&&(a=w[a.toLowerCase()]=w[a.toLowerCase()]||a,v[a]=b),this},overrideMimeType:function(a){return null==k&&(o.mimeType=a),this},statusCode:function(a){var b;if(a)if(k)y.always(a[y.status]);else for(b in a)u[b]=[u[b],a[b]];return this},abort:function(a){var b=a||x;return e&&e.abort(b),A(0,b),this}};if(s.promise(y),o.url=((b||o.url||tb.href)+"").replace(Hb,tb.protocol+"//"),o.type=c.method||c.type||o.method||o.type,o.dataTypes=(o.dataType||"*").toLowerCase().match(L)||[""],null==o.crossDomain){j=d.createElement("a");try{j.href=o.url,j.href=j.href,o.crossDomain=Lb.protocol+"//"+Lb.host!=j.protocol+"//"+j.host}catch(z){o.crossDomain=!0}}if(o.data&&o.processData&&"string"!=typeof o.data&&(o.data=r.param(o.data,o.traditional)),Nb(Ib,o,c,y),k)return y;l=r.event&&o.global,l&&0===r.active++&&r.event.trigger("ajaxStart"),o.type=o.type.toUpperCase(),o.hasContent=!Gb.test(o.type),f=o.url.replace(Cb,""),o.hasContent?o.data&&o.processData&&0===(o.contentType||"").indexOf("application/x-www-form-urlencoded")&&(o.data=o.data.replace(Bb,"+")):(n=o.url.slice(f.length),o.data&&(f+=(vb.test(f)?"&":"?")+o.data,delete o.data),o.cache===!1&&(f=f.replace(Db,"$1"),n=(vb.test(f)?"&":"?")+"_="+ub++ +n),o.url=f+n),o.ifModified&&(r.lastModified[f]&&y.setRequestHeader("If-Modified-Since",r.lastModified[f]),r.etag[f]&&y.setRequestHeader("If-None-Match",r.etag[f])),(o.data&&o.hasContent&&o.contentType!==!1||c.contentType)&&y.setRequestHeader("Content-Type",o.contentType),y.setRequestHeader("Accept",o.dataTypes[0]&&o.accepts[o.dataTypes[0]]?o.accepts[o.dataTypes[0]]+("*"!==o.dataTypes[0]?", "+Kb+"; q=0.01":""):o.accepts["*"]);for(m in o.headers)y.setRequestHeader(m,o.headers[m]);if(o.beforeSend&&(o.beforeSend.call(p,y,o)===!1||k))return y.abort();if(x="abort",t.add(o.complete),y.done(o.success),y.fail(o.error),e=Nb(Jb,o,c,y)){if(y.readyState=1,l&&q.trigger("ajaxSend",[y,o]),k)return y;o.async&&o.timeout>0&&(i=a.setTimeout(function(){y.abort("timeout")},o.timeout));try{k=!1,e.send(v,A)}catch(z){if(k)throw z;A(-1,z)}}else A(-1,"No Transport");function A(b,c,d,h){var j,m,n,v,w,x=c;k||(k=!0,i&&a.clearTimeout(i),e=void 0,g=h||"",y.readyState=b>0?4:0,j=b>=200&&b<300||304===b,d&&(v=Pb(o,y,d)),v=Qb(o,v,y,j),j?(o.ifModified&&(w=y.getResponseHeader("Last-Modified"),w&&(r.lastModified[f]=w),w=y.getResponseHeader("etag"),w&&(r.etag[f]=w)),204===b||"HEAD"===o.type?x="nocontent":304===b?x="notmodified":(x=v.state,m=v.data,n=v.error,j=!n)):(n=x,!b&&x||(x="error",b<0&&(b=0))),y.status=b,y.statusText=(c||x)+"",j?s.resolveWith(p,[m,x,y]):s.rejectWith(p,[y,x,n]),y.statusCode(u),u=void 0,l&&q.trigger(j?"ajaxSuccess":"ajaxError",[y,o,j?m:n]),t.fireWith(p,[y,x]),l&&(q.trigger("ajaxComplete",[y,o]),--r.active||r.event.trigger("ajaxStop")))}return y},getJSON:function(a,b,c){return r.get(a,b,c,"json")},getScript:function(a,b){return r.get(a,void 0,b,"script")}}),r.each(["get","post"],function(a,b){r[b]=function(a,c,d,e){return r.isFunction(c)&&(e=e||d,d=c,c=void 0),r.ajax(r.extend({url:a,type:b,dataType:e,data:c,success:d},r.isPlainObject(a)&&a))}}),r._evalUrl=function(a){return r.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},r.fn.extend({wrapAll:function(a){var b;return this[0]&&(r.isFunction(a)&&(a=a.call(this[0])),b=r(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this},wrapInner:function(a){return r.isFunction(a)?this.each(function(b){r(this).wrapInner(a.call(this,b))}):this.each(function(){var b=r(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=r.isFunction(a);return this.each(function(c){r(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){r(this).replaceWith(this.childNodes)}),this}}),r.expr.pseudos.hidden=function(a){return!r.expr.pseudos.visible(a)},r.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},r.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var Rb={0:200,1223:204},Sb=r.ajaxSettings.xhr();o.cors=!!Sb&&"withCredentials"in Sb,o.ajax=Sb=!!Sb,r.ajaxTransport(function(b){var c,d;if(o.cors||Sb&&!b.crossDomain)return{send:function(e,f){var g,h=b.xhr();if(h.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(g in b.xhrFields)h[g]=b.xhrFields[g];b.mimeType&&h.overrideMimeType&&h.overrideMimeType(b.mimeType),b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(Rb[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&a.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(b.hasContent&&b.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}}),r.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),r.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return r.globalEval(a),a}}}),r.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),r.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(e,f){b=r("